Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Tech Support (https://forums.graalonline.com/forums/forumdisplay.php?f=7)
-   -   long strings (https://forums.graalonline.com/forums/showthread.php?t=15226)

btedji 10-23-2001 03:26 AM

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.

TDO2000 10-23-2001 06:42 AM

can also happen if u use tokenize and write the tokens back into the string...

Admins 10-23-2001 08:20 PM

Explain please

LiquidIce00 10-24-2001 02:03 AM

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

G_yoshi 10-24-2001 02:45 AM

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.

btedji 10-24-2001 03:03 AM

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

Admins 10-25-2001 10:46 PM

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

Admins 10-25-2001 10:55 PM

Ok I have turned off word wrap in the flag list window

Slaktmaster 10-25-2001 11:39 PM

Problem solved quickly, good job man!

btedji 10-26-2001 04:33 AM

Quote:

Originally posted by Stefan
Ok I have turned off word wrap in the flag list window
thanx very much

Admins 10-26-2001 06:56 AM

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 :)

Slaktmaster 10-26-2001 07:28 PM

Great!@#!@#!@!!!

btedji 10-28-2001 04:33 AM

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?

royce 10-29-2001 01:07 AM

Providence.....

Mithica_GP6 11-06-2001 04:58 AM

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]


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

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