Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 07-26-2013, 09:50 PM
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
Yes, that's actually what i was originally using. I started using the above code for debugging purposes so I could see what flags it could see and what flags it couldn't.

Edit: Just found this recent post by Dusty. Sounds like a similar issue except reconnecting does not resolve it
Quote:
Originally Posted by DustyPorViva View Post
Today I logged on and clientr.vars were persisting after being cleared, and despite being removed from flags via clientr-rc, reverted back to older versions upon being modified. The only way to truly clear them was via script. Then getstringkeys() was returning clientr flags that were non-existent.

What fixed these strings of problems? Relogging, apparently. This is the kind of BS that absolutely drives me mad when I try to get anything done scripting.
Reply With Quote
  #2  
Old 07-26-2013, 10:09 PM
DustyPorViva DustyPorViva is offline
Will work for food. Maybe
DustyPorViva's Avatar
Join Date: Sep 2003
Location: Maryland, USA
Posts: 9,589
DustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond repute
Send a message via AIM to DustyPorViva Send a message via MSN to DustyPorViva
Quote:
Originally Posted by Cubical View Post
Edit: Just found this recent post by Dusty. Sounds like a similar issue except reconnecting does not resolve it
According to Stefan, this had to do with subarrays:

Wrong:
PHP Code:
clientr.test = {{"bleh",1},{"foo",1"}};
clientr.test[0][1]++; 
Fine:
PHP Code:
clientr.test = {{"bleh",1},{"foo",1"}};
temp.arr = clientr.test[0];
temp.arr[1]++;
clientr.test[0] = temp.arr; 
Apparently altering subarray values in clientr.strings does not trigger the server to update the information on its side. Gscript treats it like a regular object so the script is keeping track of the changes, but it never saves to the server.

This doesn't sound like what's happening to you, but I figured I'd update on that little issue.

Something similar may be happening with getstringkeys. Maybe Jerret will see this though since I know he's used clientr and getstringkeys for the Easter event on iClassic.
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 11:14 PM.


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