Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   New Scripting Engine (GS2) (https://forums.graalonline.com/forums/forumdisplay.php?f=153)
-   -   V6 Script Function Changes (https://forums.graalonline.com/forums/showthread.php?t=134264191)

fowlplay4 08-12-2011 06:36 AM

V6 Script Function Changes
 
2 Attachment(s)
I was curious to see what kind of functionality we may have lost or gained in the latest V6 compared to previous versions. You can see the diff I generated here:

http://fp4.ca/v6diff.html

Enjoy.

Disclaimer: The lines that are removed are only removed from the generated documentation which doesn't necessarily mean they've been removed from the client (most probably are however).

Crono 08-12-2011 06:42 AM

levelorgy - float (read only)

hehehe

WhiteDragon 08-12-2011 07:35 AM

Run it one of the things that make the +s green and the -s red.

fowlplay4 08-12-2011 08:58 PM

Quote:

Originally Posted by WhiteDragon (Post 1663201)
Run it one of the things that make the +s green and the -s red.

Done, looks prettier now.

Crow 08-12-2011 09:30 PM

Why does this even exist?
PHP Code:

enableganimoviereposition boolean 


oo_jazz_oo 08-12-2011 10:22 PM

PHP Code:

defaultwalkspeed float specifies the speed of the default movement (by default 0.5

This is nice. However, speeds 1 and over have bad wall detection.
Thats dissapointing...

DustyPorViva 08-12-2011 10:30 PM

Quote:

Originally Posted by oo_jazz_oo (Post 1663280)
PHP Code:

defaultwalkspeed float specifies the speed of the default movement (by default 0.5

This is nice. However, speeds 1 and over have bad wall detection.
Thats dissapointing...

It was only added for iphone, and they didn't need speeds over 1...

Crow 08-12-2011 10:43 PM

Quote:

Originally Posted by oo_jazz_oo (Post 1663280)
Thats dissapointing...

What's not disappointing is that the default movement system has better wall detection compared to v5. Lizard shield bug and the like are eliminated. And speeds above 1 are stupid anyway ^_^

DustyPorViva 08-12-2011 10:46 PM

Quote:

Originally Posted by Crow (Post 1663285)
What's not disappointing is that the default movement system has better wall detection compared to v5. Lizard shield bug and the like are eliminated. And speeds above 1 are stupid anyway ^_^

Lizard shield bug?

Crow 08-12-2011 10:53 PM

Quote:

Originally Posted by DustyPorViva (Post 1663288)
Lizard shield bug?

The one where you could walk through the blocking tile to the right of you if you had the lizard shield (level 3) and your player.x was 15.5. Many other spots as well. Fixed in v6.

DustyPorViva 08-12-2011 11:00 PM

Quote:

Originally Posted by Crow (Post 1663290)
The one where you could walk through the blocking tile to the right of you if you had the lizard shield (level 3) and your player.x was 15.5. Many other spots as well. Fixed in v6.

Ah ya. I imagine he didn't fix walking through single tile diagonal gaps though. Would probably hear a lot of whining about that.

Crow 08-12-2011 11:03 PM

Quote:

Originally Posted by DustyPorViva (Post 1663292)
Ah ya. I imagine he didn't fix walking through single tile diagonal gaps though. Would probably hear a lot of whining about that.

I, personally, don't even consider this a bug anymore. "It's not a bug, it's a feature."

Well, it has become one.

DrakilorP2P 08-13-2011 02:15 PM

Any idea how these are used?
PHP Code:

TGUIAnimation (TGraalVar):
amplitude float amplitude for moveupdownmoveleftright and zoominout
currenttime 
float
delay 
float the animation starts after the specified number of seconds
duration 
float the animation will last the specified number of seconds
interval 
float interval for moveupdownmoveleftright and zoominout
tabfirstonshow 
boolean calls tabfirst() after showing the controlby default true
timing 
string timing function: 'linear' or 'sinus'sinus is only used for moveupdownmoveleftright and zoominout
transition 
string specifies the animation typefadeoutfadeinmoveoutleftmoveinleftmoveoutrightmoveinrightmoveouttopmoveintopmoveoutbottommoveinbottommoveupdownmoveleftrightflipoutleftflipinleftflipoutrightflipinrightzoominzoomoutzoominoutgrowingrowoutshrinkinshrinkoutrotateoutleftrotateinleftrotateoutrightrotateinright 

PHP Code:

Key (TStaticVar):
backspace integer (read only)
capslock integer (read only)
control integer (read only)
deletekey integer (read only)
down integer (read only)
end integer (read only)
enter integer (read only)
escape integer (read only)
home integer (read only)
insert integer (read only)
left integer (read only)
pgdn integer (read only)
pgup integer (read only)
right integer (read only)
shift integer (read only)
space integer (read only)
tab integer (read only)
up integer (read only)
addlistener(obj)
getascii() - returns integer
getcode
() - returns integer
isaccessible
() - returns boolean
isdown
(int) - returns boolean
istoggled
(int) - returns boolean
removelistener
(obj) - returns boolean 

Also:
PHP Code:

isofflinemode() - returns boolean says if the game is running in offline mode (only for special packaged games


Rave_J 08-13-2011 02:20 PM

did they add function OnMouseGrab () {
what im working on would make it easier if there was

i know there is a startdrag() but
wont work like they way i want it too

cbk1994 08-13-2011 02:33 PM

For the animations,

PHP Code:

temp.animation this.createAnimation();
temp.animation.duration 1;
temp.animation.transition "moveoutleft"

Mostly for iPhone stuff, but it also works on v6 clients. It lets you easily fade in/out or move in/out GUI objects.

fowlplay4 08-13-2011 06:21 PM

isofflinemode() is just for other games that Stefan uses his GS2 engine for.

Key is probably just an internal class, I would guess it's related to the virtual keyboard in someway.

Rave_J 08-13-2011 06:43 PM

Quote:

Originally Posted by fowlplay4 (Post 1663396)
isofflinemode() is just for other games that Stefan uses his GS2 engine for.

Key is probably just an internal class, I would guess it's related to the virtual keyboard in someway.

i want to say he use gs2 for fairyland
so possible that something to do with fairyland

Crow 08-13-2011 07:35 PM

Quote:

Originally Posted by Rave_J (Post 1663397)
i want to say he use gs2 for fairyland
so possible that something to do with fairyland

Quite sure Fairyland doesn't have anything to do with Cyberjoueurs/Eurocenter anymore.

Rave_J 08-13-2011 07:43 PM

not anymore but they were selling graal client as a licenses to business at one time
idk could be for one of there iphone games they have alot of them scripted with gs2

Skyld 09-02-2011 07:52 PM

Quote:

Originally Posted by Crow (Post 1663267)
Why does this even exist?
PHP Code:

enableganimoviereposition boolean 


I think it is something to do with preventing people from changing the player's position using "movie" GANIs so that they cannot jump over walls, etc.

Emera 09-02-2011 07:57 PM

I found this...
PHP Code:

onServerLogin(); 

Surely this is the same as...
PHP Code:

onActionPlayerOnline(); 

Or is there something different about it?

Crow 09-02-2011 08:07 PM

Quote:

Originally Posted by Skyld (Post 1666777)
I think it is something to do with preventing people from changing the player's position using "movie" GANIs so that they cannot jump over walls, etc.

I know. I was just questioning the existence because I believe that it shouldn't be possible to enable it again anyway.

Emera 09-02-2011 08:14 PM

Quote:

Originally Posted by Skyld (Post 1666777)
I think it is something to do with preventing people from changing the player's position using "movie" GANIs so that they cannot jump over walls, etc.

Didn't Classic iPhone have a large problem with that when a "warp" gani was released among the players? And is this how they have been targeting the players who decide to use it?

Cubical 09-03-2011 04:46 PM

I see functions added for 3D, is there a way to use models and stuff now?

Twinny 09-03-2011 07:08 PM

Quote:

Originally Posted by Cubical (Post 1666858)
I see functions added for 3D, is there a way to use models and stuff now?

Yes, it's been available for a while. I had a spinning 3d spaceship the day it was added :)

http://wiki.graal.net/index.php/Crea...lient/TShowImg and check out the .shape part. Windows clients will need to switch to openGL mode (unless that has changed at some point)

Admins 09-03-2011 10:11 PM

Actually 3D support is not part of the current v6 release. It is only enabled in versions where it is actually used (some of our iPhone games like Adrenaline Golf Online).

fowlplay4 09-06-2011 09:00 PM

V6.0.0.7 to V6.0.1.0 Script Functions Diff
http://fp4.ca/v6diff2.html

Removed: TPlayer.shieldimg and TPlayer.swordimg
Added: TTileMap and related functions. (New Level Format Functions)

Skyld 09-06-2011 09:01 PM

Quote:

Originally Posted by Emera (Post 1666779)
I found this...
PHP Code:

onServerLogin(); 

Surely this is the same as...
PHP Code:

onActionPlayerOnline(); 

Or is there something different about it?

onServerLogin is for privileged scripts I think (like the playerlist, serverlist), called clientside when the client logs into a server.

Switch 09-06-2011 09:33 PM

PHP Code:

+  dhd<Íôüð Ã¤Ã°Ã¸ÃÃÃ¸Ã›Ã›() - returns string 

Thank you for the information it was very helpful.

cbk1994 09-07-2011 12:04 AM

Quote:

Originally Posted by Skyld (Post 1667236)
onServerLogin is for privileged scripts I think (like the playerlist, serverlist), called clientside when the client logs into a server.

It can also be used serverside in DBNPCs and weapons.

fowlplay4 09-19-2011 06:28 PM

V6.0.1.0 to V6.0.1.1 Script Functions Diff
http://fp4.ca/v6diff3.html

Returned: TPlayer.shieldimg and TPlayer.swordimg
Removed (or possibly made hidden): TTileMap functions, resolvehost, adddnsentry, that corrupted looking function.
Added: getanglesfromvector(str), getdesktopresolution(), getvectorfromangles(float, float)

Cubical 08-13-2013 08:02 AM

Quote:

Originally Posted by DrakilorP2P (Post 1663374)
Any idea how these are used?
PHP Code:

Key (TStaticVar):
backspace integer (read only)
capslock integer (read only)
control integer (read only)
deletekey integer (read only)
down integer (read only)
end integer (read only)
enter integer (read only)
escape integer (read only)
home integer (read only)
insert integer (read only)
left integer (read only)
pgdn integer (read only)
pgup integer (read only)
right integer (read only)
shift integer (read only)
space integer (read only)
tab integer (read only)
up integer (read only)
addlistener(obj)
getascii() - returns integer
getcode
() - returns integer
isaccessible
() - returns boolean
isdown
(int) - returns boolean
istoggled
(int) - returns boolean
removelistener
(obj) - returns boolean 


Can anyone give me some insight on how these are used or a way to determine key codes with modifiers without actually having to press the key? I know about keydown2(); it's not really what I'm looking for.


All times are GMT +2. The time now is 10:33 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.