Graal Forums  

Go Back   Graal Forums > Graal V6 forums > Announcements
FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1  
Old 04-02-2005, 07:12 PM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
Exclamation New npcserver version (5th Update)

A new npcserver has been uploaded which uses new optimized onwall check and uses the "dummy" npcs for that too (npcs that don't have scripts or only clientside stuff, which were not blocking on serverside before). If possible restart both npcserver and gserver because they also use more precise player positions now (more smooth movement of other players).

In the new scripting engine you can also use setshape2 now. The weapons have been fixed:

Variables and functions for handling the weapon scripts:

player.weapons[] - array of objects
player.findweapon("name") - object
player.weapon - object, current weapon, clientside only
findweaponnpc("name") - object, find 'global' weapon object, serverside only

Automatic mappings for compatibility:

weaponscount -> player.weapons.size()
findweapon("name") -> player.findweapon("name")
hasweapon(name) -> (player.findweapon("name")!=NULL)
#w -> player.weapon.name (clientside only)
#w(index) -> player.weapons[index].name
#W -> player.weapon.image (clientside only)
#W(index) -> player.weapons[index].image


Update:
New stuff for new scripting engine:
- fixed the problem of local npc syntax errors being displayed on RC chat, they are all put into syntaxerrors.txt now
- variables like this.pi or this.switch are working now and dont give errors anymore (pi, switch etc. are reserved words and were not allowed inside variable names before)

Update2:
- optimized saving of npcs, it is not called anymore if not needed, so it's speeding up the npcserver start and taking less cpu time
- if the script exceeds the loop limit of 10000 (e.g. in a for-loop) or is not finding a function then it is displaying the script line (serverside only)
- the number of active npcs is correctly displayed

Update3:
- if you have a variable that is 0 then strlen will return 0. Example:
this.myvar = 0; setplayerprop #c,length: strlen(#s(this.myvar));
This should help for better compatibility, since in the new engine it is meant to be 0==false=="". If you do this.myvar = "0"; then it will display the length 1 like it should be (since it is a string then).
- player.join("classname") is working now, so you can let the player join a class (onCreated() will be invoked the first time it joins a class) and call scripting functions like player.additem("testitem") if you have defined a public function additem() in the joined class. Example:
Control-NPC:
PHP Code:
function onActionPlayerOnline() {
  
player.join("testclass");
  
player.dosomething();
  
player.trigger("attack",123);

testclass:
PHP Code:
function onCreated() {
  echo(
"oncreated for " player.account);
}
public function 
dosomething() {
  echo(
"dosomething for " player.account);
}
function 
onAttack(val) {
  echo(
"onAttack for " player.account " - " val);

Remarks:
- obj.trigger(event,parameters) is a replacement for "callnpc" in the new scripting engine
- in the above code you actually don't need to do "player.account", you can also directly access the account name or other attributes of the player without using the "player." in front because the script is run for the player, so you could do echo("new player: " @ account)

Update4:
- number-to-string conversion modified again to fix problems with the update3: when outputing zero it is correctly displaying "0", but when an empty string is received from the client it is not longer converted to "0"

Update5:
- tiletype(x,y) and levelobject.tiletype(x,y) return the tile type for the giving position, works with both old and new tileset and also npcs that use setshape2. Set the newtilesets=true option in the server options if you are using the new tileset format, or list the levels that use new tilesets with newtilesetlevels=...,.. On clientside only tiletype(x,y) for new tilesets is working, except you are using the latest version of v4, then you have the same functionality like on serverside.
- findlevel(name) returns the level object for the specified level name. Gmaps are one big level, so don't use the name of map part levels with this.
- levelobject.tiles[x,y] works now (instead of just tiles[x,y] from the current level)
Reply With Quote
  #2  
Old 04-02-2005, 07:50 PM
Rick Rick is offline
PipBoy Extraordinaire!
Rick's Avatar
Join Date: Jul 2004
Location: Long Beach, California.
Posts: 831
Rick is on a distinguished road
Yay!

[edit]
The admin panel isn't letting me stop the gserver...
Reply With Quote
  #3  
Old 04-02-2005, 10:13 PM
falco10291029 falco10291029 is offline
BEst User EVER!
Join Date: Apr 2004
Posts: 1,186
falco10291029 is on a distinguished road
I cant get on my admin panel because of ip....
__________________
BEst Insult ever: If I had a dollar for every brain you DIDNT have, i'd have one dollar!
Reply With Quote
  #4  
Old 04-02-2005, 10:49 PM
Gambet Gambet is offline
Registered User
Join Date: Oct 2003
Posts: 2,712
Gambet is on a distinguished road
Very nice update .
Reply With Quote
  #5  
Old 04-02-2005, 10:52 PM
Fry Fry is offline
Registered User
Fry's Avatar
Join Date: Sep 2001
Location: Germany
Posts: 384
Fry has a spectacular aura about
Looks good, these findweapon things could become useful.

Now if I'd just have VIP >
__________________
Graal Statistics

Top 3 servers at the moment (players):


Reply With Quote
  #6  
Old 04-04-2005, 03:35 PM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
I will also restart the servers later this week, just need to make sure there are no big problems with the new version of the npcserver.
Reply With Quote
  #7  
Old 04-04-2005, 03:43 PM
Spark910 Spark910 is offline
Ex-Graal Global
Spark910's Avatar
Join Date: Oct 2001
Location: England
Posts: 10,892
Spark910 has a spectacular aura about
Quote:
Originally Posted by Stefan
I will also restart the servers later this week, just need to make sure there are no big problems with the new version of the npcserver.
There appears to be issues, frequent crashes. I logged 2 in GK Serveroptions for you, but there were 2-3 more that I didn't handle.
__________________
--Spark911
Reply With Quote
  #8  
Old 04-04-2005, 04:01 PM
coreys coreys is offline
N-Pulse Assistant Manager
coreys's Avatar
Join Date: Mar 2005
Posts: 2,180
coreys has a spectacular aura about
Send a message via AIM to coreys Send a message via MSN to coreys Send a message via Yahoo to coreys
Quote:
Originally Posted by Spark910
There appears to be issues, frequent crashes. I logged 2 in GK Serveroptions for you, but there were 2-3 more that I didn't handle.
=O
What are all the issue's, are the frequent crashes the only thing?
__________________

Quote:
*SlikRick: so should I even ask about your aim status?
*Xor: well if you want to
*Xor: but i am LARPING
*SlikRick: While on a computer?
*Xor: yes
*Xor: in my living room
*SlikRick: ahh
*Xor: i have a fort setup to hide from beasts
Reply With Quote
  #9  
Old 04-04-2005, 04:34 PM
Gambet Gambet is offline
Registered User
Join Date: Oct 2003
Posts: 2,712
Gambet is on a distinguished road
Quote:
Originally Posted by Spark910
There appears to be issues, frequent crashes. I logged 2 in GK Serveroptions for you, but there were 2-3 more that I didn't handle.

Also, all the Zone problems that it caused were really annoying.
Reply With Quote
  #10  
Old 04-04-2005, 07:18 PM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
Graal Kingdoms is not using new server versions,
and on Zone it was not related to the new npcserver (problem with the playermovement script and a problem with the battlecontrol npc timeout stopping)
Reply With Quote
  #11  
Old 04-04-2005, 08:06 PM
Gambet Gambet is offline
Registered User
Join Date: Oct 2003
Posts: 2,712
Gambet is on a distinguished road
Quote:
Originally Posted by Stefan
and on Zone it was not related to the new npcserver (problem with the playermovement script and a problem with the battlecontrol npc timeout stopping)

But things were working fine before the new update on the npc server.
Reply With Quote
  #12  
Old 04-05-2005, 08:39 AM
Lance Lance is offline
dark overlord
Lance's Avatar
Join Date: Sep 2003
Location: Space Jam Mountain
Posts: 5,072
Lance is on a distinguished road
Quote:
Originally Posted by Gambet
But things were working fine before the new update on the npc server.
post hoc ergo propter hoc etc
Reply With Quote
  #13  
Old 04-07-2005, 10:01 PM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
The battleground control npc was stopping two times because it exceeded the loop limit (10000 iterations), when I get time I will try to fix the scripts. May be too many explosions at once or so.
Reply With Quote
  #14  
Old 04-08-2005, 12:16 AM
p2p_Sir_Link p2p_Sir_Link is offline
Banned
p2p_Sir_Link's Avatar
Join Date: Nov 2004
Posts: 425
p2p_Sir_Link is an unknown quantity at this point
All I know, is that after the update, my server is extremly laggy.
Reply With Quote
  #15  
Old 04-08-2005, 01:31 PM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
Quote:
Originally Posted by p2p_Sir_Link
All I know, is that after the update, my server is extremly laggy.
Which server?
Reply With Quote
  #16  
Old 04-08-2005, 01:36 PM
Malinko Malinko is offline
Unholy Nation
Join Date: Mar 2004
Location: Massachusetts, U.S.A.
Posts: 1,782
Malinko is on a distinguished road
Send a message via AIM to Malinko
Seems good to me.
Reply With Quote
  #17  
Old 04-11-2005, 03:49 PM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
Added script line display if a script exceeds the loop limit, also speeded up the npcserver (see the first post to see the updates)
Reply With Quote
  #18  
Old 04-12-2005, 01:09 AM
p2p_Sir_Link p2p_Sir_Link is offline
Banned
p2p_Sir_Link's Avatar
Join Date: Nov 2004
Posts: 425
p2p_Sir_Link is an unknown quantity at this point
Quote:
Originally Posted by Stefan
Which server?
Kalypso.
Reply With Quote
  #19  
Old 04-18-2005, 03:42 PM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
New update for strlen() and player.join, read the first post for more information
Reply With Quote
  #20  
Old 04-18-2005, 05:29 PM
Bartjuh1992 Bartjuh1992 is offline
Banned
Bartjuh1992's Avatar
Join Date: Nov 2004
Location: Netherlands
Posts: 79
Bartjuh1992 is on a distinguished road
Send a message via ICQ to Bartjuh1992 Send a message via AIM to Bartjuh1992 Send a message via MSN to Bartjuh1992 Send a message via Yahoo to Bartjuh1992
Nice
Reply With Quote
  #21  
Old 04-18-2005, 05:45 PM
contiga contiga is offline
Graal2001 Administration
contiga's Avatar
Join Date: Jul 2004
Location: Netherlands
Posts: 419
contiga is an unknown quantity at this point
Send a message via ICQ to contiga Send a message via AIM to contiga Send a message via MSN to contiga Send a message via Yahoo to contiga
Red face Lol..

When will you make a script document with all the Gs2 commands? And will we be able to use Gs2 offline too?
Reply With Quote
  #22  
Old 04-18-2005, 05:51 PM
Fry Fry is offline
Registered User
Fry's Avatar
Join Date: Sep 2001
Location: Germany
Posts: 384
Fry has a spectacular aura about
Quote:
Originally Posted by contiga
When will you make a script document with all the Gs2 commands? And will we be able to use Gs2 offline too?
There is a documentation in the Graal Wiki, if you want (http://ilfirin.org/graal/GScript).
__________________
Graal Statistics

Top 3 servers at the moment (players):


Reply With Quote
  #23  
Old 04-18-2005, 09:09 PM
Ajira Ajira is offline
Poont.
Join Date: Oct 2004
Location: NY, USA
Posts: 477
Ajira is on a distinguished road
Quote:
Originally Posted by Stefan
New update for strlen() and player.join
I love you for this. ^_^
__________________
Liek omigosh.

Reply With Quote
  #24  
Old 04-22-2005, 03:15 AM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
Quote:
Originally Posted by contiga
When will you make a script document with all the Gs2 commands? And will we be able to use Gs2 offline too?
There will not be new scripting for offline mode, with the editor you can only do old scripting (which will still work in new engine but with limited functionality of course). But it is planned that there will be an online editor with built-in script editor (it can do syntaxhightlighting, already used on Graal3D servers).
Reply With Quote
  #25  
Old 05-06-2005, 04:53 PM
TheJames TheJames is offline
Atrius Manager
TheJames's Avatar
Join Date: Dec 2004
Posts: 581
TheJames can only hope to improve
Same Problems!

Quote:
Originally Posted by Rick
Yay!
The admin panel isn't letting me stop the gserver...
Quote:
Originally Posted by falco10291029
I cant get on my admin panel because of ip....

Same things here. I can't get on because of my IP. No one's fixed it. Also the Buttons on Admin Panel arn't working correctly.
__________________
Contact me on Skype: "skype.sam.lorenz"

James,
Manager of Atrius
Reply With Quote
  #26  
Old 05-06-2005, 08:59 PM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
Quote:
Originally Posted by TheJames
Same things here. I can't get on because of my IP. No one's fixed it. Also the Buttons on Admin Panel arn't working correctly.
Yes the buttons make problems, but the admin panel should work of your Admin-Playerworld account is working. Also most of the classic servers can be restarted now using the admin panel.
Reply With Quote
  #27  
Old 05-10-2005, 05:21 PM
Matt Matt is offline
iZone Administrator
Matt's Avatar
Join Date: Apr 2005
Location: United States
Posts: 2,690
Matt is a jewel in the roughMatt is a jewel in the rough
Quote:
Originally Posted by TheJames
Same things here. I can't get on because of my IP. No one's fixed it. Also the Buttons on Admin Panel arn't working correctly.
Some buttons aren't supposed to work for the Owners. Only the Graal Administration. Such as the accounts access in ADCP. If you need your IP fixed on your Playerworld ADCP set up a support ticket. An Administrator will read and fix your problem as soon as they can.It would be best to refer here:

http://forums.graalonline.com/forums...ad.php?t=56199
__________________
Need Playerworld or Account support?
GraalOnline/Toonslab Support Center
Reply With Quote
  #28  
Old 05-30-2005, 07:01 AM
hottstuff911 hottstuff911 is offline
Scripter
hottstuff911's Avatar
Join Date: Jan 2005
Location: USA
Posts: 23
hottstuff911 is on a distinguished road
Send a message via AIM to hottstuff911
Any globel nat or higher like STEFAN (my friend ) can you teach me how to use gs2 because i work on a server that uses gs2 and most of my scripts dont work because it so i want to learn gs2 PLEASE.
__________________

~Contact Info~
Aim: Grind64RyGuy
Email: [email protected]
Client Status:
Reply With Quote
  #29  
Old 05-30-2005, 04:22 PM
KuJi KuJi is offline
Banned
Join Date: Apr 2004
Location: Staten Island, New York
Posts: 2,202
KuJi will become famous soon enough
Send a message via ICQ to KuJi Send a message via AIM to KuJi Send a message via MSN to KuJi Send a message via Yahoo to KuJi
I have a gscript2 question:

Gscript2 only works serverside ( for v2 )?

And:

Does it work in npcs that are serverside? (Local Npcs)
Reply With Quote
  #30  
Old 05-30-2005, 04:41 PM
protagonist protagonist is offline
Banned
protagonist's Avatar
Join Date: May 2003
Location: CAW
Posts: 5,586
protagonist is on a distinguished road
Send a message via AIM to protagonist Send a message via MSN to protagonist
Quote:
Originally Posted by Lance
post hoc ergo propter hoc etc
Vos tendo narro English?
Reply With Quote
  #31  
Old 05-30-2005, 05:14 PM
Ajira Ajira is offline
Poont.
Join Date: Oct 2004
Location: NY, USA
Posts: 477
Ajira is on a distinguished road
Quote:
Originally Posted by KuJi
I have a gscript2 question:

Gscript2 only works serverside ( for v2 )?

And:

Does it work in npcs that are serverside? (Local Npcs)
Yes.
__________________
Liek omigosh.

Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 09:50 PM.


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