Most of the entertaining things on my server are in GS2 (its still up as part of AEON on Graal CONline)
But uhm… we dont have GS2 support on here, hows that coming along :B, I wanna upload the world :whatever:
Most of the entertaining things on my server are in GS2 (its still up as part of AEON on Graal CONline)
But uhm… we dont have GS2 support on here, hows that coming along :B, I wanna upload the world :whatever:
lol
GScript 2 is NPC-Server dependant, Torque Bitcode, and client dependant.
While we probably could crack the client, we do not have an NPC-Server and don’t intend to fuss about with Torque’s script engine.
A lot of GS2 commands are easily convertible ;O
player.x -> playerx
player.ani -> setani
setlevel2(level,x,y) -> setlevel2 level,x,y;
with(findimg(1000)) { -> showimg 1000,hello.png,30,30;
image = “hello.png”;
x = 30;
y = 30;
layer = 1; -> changeimgvis 1000,1;
partx = 10; -> changeimgpart 1000,10,20,20,20;
party = 20;
partw = 20;
parth = 20;
}
Sure, we don’t have it all, the newest things, etc etc.
A lot of things are generally obtainable without it with a little work.
whoa whoa wait… what if…someone wrote up a list of all the written changes from GS1 to GS2 like you just did, but, all of them, that way I could sift through the GS2 code and just cut/paste the old commands
can someone do this please :redface:
[QUOTE=skoopa;14783]
whoa whoa wait… what if…someone wrote up a list of all the written changes from GS1 to GS2 like you just did, but, all of them, that way I could sift through the GS2 code and just cut/paste the old commands
can someone do this please :redface:
[/QUOTE]
Maybe if we started doing that more people hosting there PW’s on P2P Graal may attempt to host them here as well. moo? Of course this totally defeats the perpose of what graal is about. Or does it? OoOoO
For the most part, most commands are like this
Command(Param,Param); -> Command Param,Param;
Just remove the ( )'s for the most part. Everything in GS2 is based around functions, GS1 is based mostly around “commands”.
setTimer(0.05); -> timeout = 0.05;
function OnTimeout() -> if (timeout) {
GS1 does not have Params for functions; Eg:
Moot(What,The,Hell);
function Moot(p1,p2,p3) {
setplayerprop #c,#s(p3);
}
Arrays are only single dimensioned in GS1, array[index] = var; ( As opposed to array[index][index] = var; )
You cannot create variables in GS1 (eg: “hello” @ num = 10; )
Variables and Strings are kept very separate and must be defined.
String to Float -> var = strtofloat(string)
Float to String -> setstring string,#v(variable);
To retrieve the value of a string -> #s(string);
player.body -> setplayerprop #8, ;
Sword -> #1
Shield -> #2
Head -> #3
Body -> #8
Chat -> #c
You cannot use with(object){ } without an NPC-Server.
(For cases you could, its literally just “objectname.variable”)
Example:
players[index].x
npcs[index].y
Most cases these are read-only, you cannot edit another player or NPC through these means and all indexes are localized to the client and the objects within the same level.
[QUOTE=Pickle;14784]Maybe if we started doing that more people hosting there PW’s on P2P Graal may attempt to host them here as well. moo? Of course this totally defeats the perpose of what graal is about. Or does it? OoOoO[/QUOTE]
Hopefully not, many of them are very bad, and most likely the ones that would be inclined to do this would be the ones who have the bad playerworlds, except me, im just bored, and dont have gold =/. on GraalCONline
The reason i even say that is because 95% of graal conlines playerworlds are developer## playerworlds with little to no content.
[QUOTE=skoopa;14786]GraalCONline[/QUOTE]
“Unixgraal” or “Official”, much shorter, and seems less forced.
[QUOTE=Beholder;14787]“Unixgraal” or “Official”, much shorter, and seems less forced.[/QUOTE]
duly noted, I’ll go with Unixgraal :fro: my apologies
Any specific commands you might need to convert back to GS1, just lemme know.
Chances are I’ll tell you if its GS1 compatible, a crude method to make it work like it’s GS1 counterpart, or if its just not possible/practical.
Oh, another fun tidbit. Max NPC character limit is 12255 chars. This limit is brought to us by the client’s packeting method. (And believe me, I loathe it more than anyone else here.)