![]() |
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.
|
can also happen if u use tokenize and write the tokens back into the string...
|
Explain please
|
Quote:
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 |
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.
|
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 |
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 |
Ok I have turned off word wrap in the flag list window
|
Problem solved quickly, good job man!
|
Quote:
|
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 :) |
Great!@#!@#!@!!!
|
Quote:
|
Providence.....
|
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.