Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   String length limit? (https://forums.graalonline.com/forums/showthread.php?t=56998)

DarkShadows_Legend 01-11-2005 01:06 AM

String length limit?
 
I had ran into a problem where I had used a string list to save the name of all the images of items collected by the player, but I continuously had a problem where when I logged on later I would notice that the string got chopped off after a certain charatcer. I wasn't sure if I had done something wrong when adding on to the string list.
I used the command
NPC Code:

addstring list,value;



I believe the problem I have encountered is that there might be a limit to how long a string can be. I counted all the characters within the string and got up to about 200 characters in all. I have pretty much figured out what to do if this is the case.

Do any of you know if there is a limit to how long a string can be?

Skyld 01-11-2005 01:21 AM

I think so. I had a similar problem.

JudgeDurst 01-11-2005 01:46 PM

There are horrible string length restrictions :(

I'm not sure if dbnpcs have these restrictions as i still haven't managed to fill one up yet

Sildae 01-11-2005 10:18 PM

I think that the length of the string value and the string name together may not exceed 222.

konidias 01-12-2005 12:53 AM

I discovered this problem longggg ago. I don't actually think there is a limit to the string length. I believe Stefan said there is no limit, except that strings get cut after 200 or so characters ONLY when viewing the strings via player profiles in RC, or the server string list, etc. I'm pretty sure the strings still read and write fine through npcs. Test it if you want.

The one problem with strings that long is that they will mess things up if you save the data in the server flags or account attributes. Like... it will be fine if you don't open up someone's attributes and save them. You can view them all you want, but if you save them, it messes up.

I believe it's mainly just a problem with those text fields only displaying so many characters, not that the string can only be a certain size to work.

TB3 01-12-2005 06:31 PM

Quote:

Originally Posted by konidias
I discovered this problem longggg ago. I don't actually think there is a limit to the string length. I believe Stefan said there is no limit, except that strings get cut after 200 or so characters ONLY when viewing the strings via player profiles in RC, or the server string list, etc. I'm pretty sure the strings still read and write fine through npcs. Test it if you want.

The one problem with strings that long is that they will mess things up if you save the data in the server flags or account attributes. Like... it will be fine if you don't open up someone's attributes and save them. You can view them all you want, but if you save them, it messes up.

I believe it's mainly just a problem with those text fields only displaying so many characters, not that the string can only be a certain size to work.

client.strings will not set past a certain length and if they do set after that length by any ammount it cannot be read clientside. As I was using string lists to save buddy information and couldnt figure out why my list sections were getting lost it was because it cuts the string at its limit.
This is the same for server and serverr flags
However this. thiso. have no limit
Im not sure about level. or local. strings as i rarely use them .


All times are GMT +2. The time now is 08:41 PM.

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