Graal Forums  

Go Back   Graal Forums > Development Forums > Tech Support
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 10-23-2001, 03:26 AM
btedji btedji is offline
bryan986
btedji's Avatar
Join Date: Apr 2001
Location: Force 10
Posts: 1,153
btedji is on a distinguished road
Send a message via ICQ to btedji Send a message via AIM to btedji Send a message via Yahoo to btedji
long strings

If you have set a really long string, like all the color names in one string, and then set the string again when the old one is still there, pieces of the old string get left behind and the new one is set. After a couple of times of setting the string, the flag list gets really clogged. Yes, I know there is work arounds but sometimes that is hard to do.
Reply With Quote
  #2  
Old 10-23-2001, 06:42 AM
TDO2000 TDO2000 is offline
Registered User
TDO2000's Avatar
Join Date: Jul 2001
Location: Germany
Posts: 655
TDO2000 is on a distinguished road
can also happen if u use tokenize and write the tokens back into the string...
__________________
No Webhost at the moment
Reply With Quote
  #3  
Old 10-23-2001, 08:20 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
Explain please
Reply With Quote
  #4  
Old 10-24-2001, 02:03 AM
LiquidIce00 LiquidIce00 is offline
RadioActive Monkeeh
LiquidIce00's Avatar
Join Date: Apr 2001
Location: dirty south
Posts: 2,112
LiquidIce00 is on a distinguished road
Send a message via ICQ to LiquidIce00 Send a message via AIM to LiquidIce00 Send a message via Yahoo to LiquidIce00
Quote:
Originally posted by Stefan
Explain please
for example if you set a string like:
setstring whateverstring,hello how are you today? I am good and so on;

or something long .. then when you do
setstring whateverstring,;
there might be pieces of the string behind .. like if you check your strings it wouldnt be empty it would have a part of it like
"good and so on" ...
get it ?
^_^ ezier if u try it urself hehe..
I think you had fixed either the level editor or the rc to support long strings but i think one of them still has this problem
__________________
LiquidIce *Owner* (UnholyNation)
-UN Website
http://www.unholynation.com
-UN Forum
http://forums.unholynation.com
-
-the thinker
-

-
onwall2 for nonp2p (i suck at onwall)
Reply With Quote
  #5  
Old 10-24-2001, 02:45 AM
G_yoshi G_yoshi is offline
Forbidden
G_yoshi's Avatar
Join Date: Mar 2001
Posts: 7,206
G_yoshi will become famous soon enough
Send a message via AIM to G_yoshi
hehe, I had this problem with some of my gralat chests giving out infinite gralats. I had scripted them to work similar to the hardcoded chests (the flags control part) by doing the #co#x#y#levelname. In places where there were long level names it just truncated the flag when reading even though, in the player's flag list the whole flag was there. I asume it is some security feature built in to prevent an overflow or something.
__________________
Reply With Quote
  #6  
Old 10-24-2001, 03:03 AM
btedji btedji is offline
bryan986
btedji's Avatar
Join Date: Apr 2001
Location: Force 10
Posts: 1,153
btedji is on a distinguished road
Send a message via ICQ to btedji Send a message via AIM to btedji Send a message via Yahoo to btedji
i found out the exact length of the string to have the error

if you have a string that is longer than one line in the flag list whatever is past the one line will be left in the flag list when the string gets set again

use this code:

if(playerenters)
{setstring string,this is a really long string so it will leave pieces of itself behind;
}

go into the level once then go back into the editor, thats ok but then if you go into the level again everthing from 'will' and after will be left in the flag list in addition to the new string which got set again when you went into the level
Reply With Quote
  #7  
Old 10-25-2001, 10:46 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
Haven't tested it in offline mode. The only problem
I know of is that older RCs has truncated the strings in
the flag list, but now there are scrollbars
Reply With Quote
  #8  
Old 10-25-2001, 10:55 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
Ok I have turned off word wrap in the flag list window
Reply With Quote
  #9  
Old 10-25-2001, 11:39 PM
Slaktmaster Slaktmaster is offline
man with the mastahplan
Slaktmaster's Avatar
Join Date: Apr 2001
Location: Half-way over the river styx
Posts: 4,422
Slaktmaster is an unknown quantity at this point
Send a message via ICQ to Slaktmaster Send a message via AIM to Slaktmaster
Problem solved quickly, good job man!
Reply With Quote
  #10  
Old 10-26-2001, 04:33 AM
btedji btedji is offline
bryan986
btedji's Avatar
Join Date: Apr 2001
Location: Force 10
Posts: 1,153
btedji is on a distinguished road
Send a message via ICQ to btedji Send a message via AIM to btedji Send a message via Yahoo to btedji
Quote:
Originally posted by Stefan
Ok I have turned off word wrap in the flag list window
thanx very much
Reply With Quote
  #11  
Old 10-26-2001, 06:56 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
Ok I found another bug, with npcserver only:
when there is a comma in the flag then it is
sent 'corrupted' to the npcserver the next
time you are logging into the server
(like client.flag=1,2,3 is sent as
client.flag=1
2
3
to the npcserver).
I have fixed it, with the next server restart it will
also work on your favoured server
Reply With Quote
  #12  
Old 10-26-2001, 07:28 PM
Slaktmaster Slaktmaster is offline
man with the mastahplan
Slaktmaster's Avatar
Join Date: Apr 2001
Location: Half-way over the river styx
Posts: 4,422
Slaktmaster is an unknown quantity at this point
Send a message via ICQ to Slaktmaster Send a message via AIM to Slaktmaster
Great!@#!@#!@!!!
Reply With Quote
  #13  
Old 10-28-2001, 04:33 AM
btedji btedji is offline
bryan986
btedji's Avatar
Join Date: Apr 2001
Location: Force 10
Posts: 1,153
btedji is on a distinguished road
Send a message via ICQ to btedji Send a message via AIM to btedji Send a message via Yahoo to btedji
Quote:
Originally posted by Stefan
Ok I found another bug, with npcserver only:
when there is a comma in the flag then it is
sent 'corrupted' to the npcserver the next
time you are logging into the server
(like client.flag=1,2,3 is sent as
client.flag=1
2
3
to the npcserver).
I have fixed it, with the next server restart it will
also work on your favoured server
whats ur favoured server besides graalclassic and graal2k1?
Reply With Quote
  #14  
Old 10-29-2001, 01:07 AM
royce royce is offline
Banned
royce's Avatar
Join Date: Sep 2001
Location: Yakitinzen, China
Posts: 2,271
royce is on a distinguished road
Send a message via AIM to royce
Providence.....
Reply With Quote
  #15  
Old 11-06-2001, 04:58 AM
Mithica_GP6 Mithica_GP6 is offline
Registered User
Join Date: Aug 2001
Location: Newzealand
Posts: 13
Mithica_GP6 is on a distinguished road
Send a message via AIM to Mithica_GP6
Err

Yo This dont have nething to do with this post
but lol
Um i noticed stefan was on it and
ive found a big big bug stefan i can test mah own npc's
online on another server like Shaded Legends and stuff
email me and ill tell u it mah email is
[email protected]
__________________
Howard James Campbell
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 04:01 PM.


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