Graal Forums  

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

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1  
Old 06-01-2013, 10: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
Exclamation New NPCServer

The npcserver has been updated, some servers have been updated already for the changes:

- Having two functions with the same name in the same script is now reported as error
- Having two switch-cases with the same parameter will be displayed as warning
- Look in logs/syntaxerrors.txt to see errors of NPCs in levels
- If a script is updated and has bugs then the server will continue to run the old script (but the script needs to be fixed before the next server restart)
- New script function [level.]findareaplayers(x,y,width,height)
- Fixed a crashing bug when returning TStaticVar or SQL objects in functions

There is also a problem with setting nicks on some servers, there is a new option which is accidently set to false but should be set to true, so add
PHP Code:
enableclientsidenick=true 
if you see problems with setting nick names with "setnick" or RC.
Reply With Quote
  #2  
Old 06-02-2013, 12:23 AM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Very nice, especially the new script function. Thanks!
__________________
Reply With Quote
  #3  
Old 06-02-2013, 12:34 AM
BlueMelon BlueMelon is offline
asdfg
BlueMelon's Avatar
Join Date: Sep 2008
Posts: 1,481
BlueMelon is a splendid one to beholdBlueMelon is a splendid one to beholdBlueMelon is a splendid one to beholdBlueMelon is a splendid one to behold
Nice updates

Can you make echo a log-able function
http://forums.graalonline.com/forums...hp?t=134267946
__________________
http://i.imgur.com/OOJbW.jpg
Reply With Quote
  #4  
Old 06-02-2013, 03:50 AM
Tim_Rocks Tim_Rocks is offline
a true gentlemen
Tim_Rocks's Avatar
Join Date: Aug 2008
Location: USA
Posts: 1,863
Tim_Rocks is a splendid one to beholdTim_Rocks is a splendid one to beholdTim_Rocks is a splendid one to beholdTim_Rocks is a splendid one to beholdTim_Rocks is a splendid one to behold
Quote:
Originally Posted by Stefan View Post
- If a script is updated and has bugs then the server will continue to run the old script (but the script needs to be fixed before the next server restart)
Could this have reverted a script back to a previous state while I'm editing it? I'm curious because I reconnected after I edited a script and everything I did yesterday was reverted to an older version. Does my updated copy just get deleted or moved to a temp file?
__________________
Reply With Quote
  #5  
Old 06-02-2013, 03:56 AM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by Tim_Rocks View Post
Could this have reverted a script back to a previous state while I'm editing it? I'm curious because I reconnected after I edited a script and everything I did yesterday was reverted to an older version. Does my updated copy just get deleted or moved to a temp file?
My guess would be that the script is simply never updated on the npcserver even though the file is (which is why it has to be fixed before the server is restarted).
__________________
Reply With Quote
  #6  
Old 06-02-2013, 05:22 AM
Tim_Rocks Tim_Rocks is offline
a true gentlemen
Tim_Rocks's Avatar
Join Date: Aug 2008
Location: USA
Posts: 1,863
Tim_Rocks is a splendid one to beholdTim_Rocks is a splendid one to beholdTim_Rocks is a splendid one to beholdTim_Rocks is a splendid one to beholdTim_Rocks is a splendid one to behold
Quote:
Originally Posted by cbk1994 View Post
My guess would be that the script is simply never updated on the npcserver even though the file is (which is why it has to be fixed before the server is restarted).
Well that's not going to be fun if the server crashes if there's an error of some kind and I can't correct it before I'm disconnected.
__________________
Reply With Quote
  #7  
Old 06-02-2013, 05:39 AM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by Tim_Rocks View Post
Well that's not going to be fun if the server crashes if there's an error of some kind and I can't correct it before I'm disconnected.
Wouldn't be any different than what we had prior to the update.
__________________
Reply With Quote
  #8  
Old 06-02-2013, 06:01 AM
dylan dylan is offline
AGT
Join Date: Jul 2012
Location: United States
Posts: 60
dylan has a spectacular aura about
Is there any way to enable/disable GS3 strict mode?
__________________

<@Logan> I spent a minute looking at my own code by accident.
<@Logan> I was thinking "What the hell is this guy doing?"
Reply With Quote
  #9  
Old 06-02-2013, 06:04 AM
Cubical Cubical is offline
Banned
Join Date: Feb 2007
Posts: 1,348
Cubical has a brilliant futureCubical has a brilliant futureCubical has a brilliant futureCubical has a brilliant futureCubical has a brilliant futureCubical has a brilliant futureCubical has a brilliant future
Quote:
Originally Posted by dylan View Post
Is there any way to enable/disable GS3 strict mode?
As far as i'm aware you just add //#GS3 to your code however it did not work for me so it may have to be activated on your playerworld. Stefan's initial post unclear but implied that it was implemented but did not specifically state it.
Reply With Quote
  #10  
Old 06-02-2013, 03:44 PM
dylan dylan is offline
AGT
Join Date: Jul 2012
Location: United States
Posts: 60
dylan has a spectacular aura about
Quote:
Originally Posted by Cubical View Post
As far as i'm aware you just add //#GS3 to your code however it did not work for me so it may have to be activated on your playerworld. Stefan's initial post unclear but implied that it was implemented but did not specifically state it.
Yes, I was just wondering if there was a servop that would enable it.

Currently, compiling any script with the //#GS3 tag, GS3 included or not, will return something like this:
PHP Code:
GS3 strict mode is not enabledcannot compile -BB/GS3
Weapon
/GUI-script -BB/GS3 added/updated by dylan 
__________________

<@Logan> I spent a minute looking at my own code by accident.
<@Logan> I was thinking "What the hell is this guy doing?"
Reply With Quote
  #11  
Old 06-02-2013, 05:01 PM
xAndrewx xAndrewx is offline
Registered User
xAndrewx's Avatar
Join Date: Sep 2004
Posts: 5,260
xAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud of
is there any way to make sure all scripts are working fine before we do a restarted?

Lets say someone is updating and doesn't notice an error for example
__________________
Reply With Quote
  #12  
Old 06-02-2013, 06:36 PM
Draenin Draenin is offline
Magnificent Bastard
Draenin's Avatar
Join Date: Dec 2004
Location: Bermuda Triangle
Posts: 6,790
Draenin has much to be proud ofDraenin has much to be proud ofDraenin has much to be proud ofDraenin has much to be proud ofDraenin has much to be proud ofDraenin has much to be proud of
Send a message via AIM to Draenin Send a message via MSN to Draenin Send a message via Yahoo to Draenin
Quote:
Originally Posted by Stefan
- New script function [level.]findareaplayers(x,y,width,height)
Does this return a count of players in the area, or the names of the players?
Reply With Quote
  #13  
Old 06-02-2013, 06:38 PM
xAndrewx xAndrewx is offline
Registered User
xAndrewx's Avatar
Join Date: Sep 2004
Posts: 5,260
xAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud of
the object of the player

HTML Code:
for (temp.p: findareaplayers(this.x, this.y, 10, 10)) {
  temp.p.chat = "hello";
}
__________________
Reply With Quote
  #14  
Old 06-02-2013, 08:56 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
gj
__________________
Need Playerworld or Account support?
GraalOnline/Toonslab Support Center
Reply With Quote
Reply


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 03:28 AM.


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