Forum

> > CS2D > Scripts > Cs2d Lua Preprocessor (Jet) | Poll
Forums overviewCS2D overview Scripts overviewLog in to reply

English Cs2d Lua Preprocessor (Jet) | Poll

19 replies
To the start Previous 1 Next To the start

Poll Poll

What do you thinks about Jet script project ?

Only registered users are allowed to vote
I will use it.
0.00% (0)
I will use it if you improve it.
50.00% (2)
I prefer to use normal lua.
50.00% (2)
4 votes cast

old Poll Cs2d Lua Preprocessor (Jet) | Poll

_3yrus
User Off Offline

Quote
Hello guys,
Its second time reviewers declined my upload, so i decided to share it with you to make it better and useful for cs2d coding, uploaded file adress : Jet Script.

Jet Script Code >


please just tell your idea for making this better. if its needed i completely change the code.
think of it , easy hooks, plugins , switching code without restart , custom hooks(to do), it would be great. maybe this project is bigger than I can do alone, so i need you.

i just want cs2d to advance, nothing else, so help me with this.

thanks in advance
edited 12×, last 01.08.17 01:37:08 pm

old Re: Cs2d Lua Preprocessor (Jet) | Poll

Avo
User Off Offline

Quote
File reviewed negatively can still be accessed at author's profile.

@topic: I think you should try something different, your code isn't bad, but I don't think something like your Jet preproccesor is what we really need for CS2D scripting.

old Re: Cs2d Lua Preprocessor (Jet) | Poll

Ajmin
User Off Offline

Quote
Why because experienced coders will never even think about using your lua processor while newbies wont understand a thing about your lua processor or at least about lua. They also got a less varieties of examples for them.
so inorder to count you will have to come up with something really useful and unique.

old Re: Cs2d Lua Preprocessor (Jet) | Poll

_3yrus
User Off Offline

Quote
user Talented Doge has written
I would pretty much like to see something like this:

1
2
3
a++
a+=1
a*=1

added to my do to list, thanks.
--------------------------------------
guys whats ur idea about this hooks syntax :
1
2
3
4
5
6
7
8
9
On:say id,txt {

}

or 

On:say {

}
edited 2×, last 01.08.17 11:11:55 am

old Re: Cs2d Lua Preprocessor (Jet) | Poll

Masea
Super User Off Offline

Quote
user _3yrus has written
guys whats ur idea about this hooks syntax :
1
2
3
4
5
6
7
8
9
On:say id,txt {

}

or 

On:say {

}
Why you do not tell us? I honestly don't get why you waste your time with making hooks usable in a different way. And I don't know where would it help me at. Fewer lines? Not really. That just saves like 15-20~ letter and that's nothing.

Don't get me wrong, I admire and see the effort you are trying to put. However, if it can't be done, then do anything but it.

old Re: Cs2d Lua Preprocessor (Jet) | Poll

Yates
Reviewer Off Offline

Quote
This is my take on how I would like to see a shorter version of hooks:
1
2
3
@<hook> (<params>) {
	-- code
}
(Athook, get it? 10/10)


Example:
1
2
3
@say (id, text) {
	-- code
}

To me this seems the most clean and logical way of doing it. The problem is it doesn't look like normal Lua, and the curly brackets are really out of place.

Would I use it? Dunno, probably not - unless a lot of people start using it and there is syntax configuration written for my IDE of choice.

old Re: Cs2d Lua Preprocessor (Jet) | Poll

_3yrus
User Off Offline

Quote
@user Yates: what if jet script create an normal lua output ? compiling .jet.lua to .lua instead of running the code.
i mean u just write script in for of jet , and then it save a file as .lua that contain ur normal lua, then u can use it anywhere.

old Re: Cs2d Lua Preprocessor (Jet) | Poll

Bowlinghead
User Off Offline

Quote
user _3yrus has written
user Bowlinghead has written
What about some kind of object orientated classes with methods, variables and constructor.
Similiar to:
i did't get u, sorry.


Dont you know UML (I learned it in school)? This.
Object orientated classes are like tables in lua. But way more organized.
Explanation >
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview