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 01-11-2005, 01:06 AM
DarkShadows_Legend DarkShadows_Legend is offline
Cult of the Winky
DarkShadows_Legend's Avatar
Join Date: Apr 2003
Location: Florida
Posts: 614
DarkShadows_Legend is on a distinguished road
Send a message via AIM to DarkShadows_Legend
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?
__________________
- Criminal X

"I rather be hated for being myself, than be liked for being what you like best. I go above the influence, not under." - Me
Reply With Quote
  #2  
Old 01-11-2005, 01:21 AM
Skyld Skyld is offline
Script-fu
Skyld's Avatar
Join Date: Jan 2002
Location: United Kingdom
Posts: 3,914
Skyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud of
Send a message via AIM to Skyld
I think so. I had a similar problem.
__________________
Skyld
Reply With Quote
  #3  
Old 01-11-2005, 01:46 PM
JudgeDurst JudgeDurst is offline
Malorian
JudgeDurst's Avatar
Join Date: Jan 2002
Posts: 145
JudgeDurst is on a distinguished road
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
__________________
MrWorry, Lover of Maloria
Reply With Quote
  #4  
Old 01-11-2005, 10:18 PM
Sildae Sildae is offline
Elven sorceress!
Sildae's Avatar
Join Date: Dec 2001
Location: Lothlòrien
Posts: 159
Sildae is on a distinguished road
I think that the length of the string value and the string name together may not exceed 222.
__________________
"The reasonable man adapts himself to the world; the unreasonable one persists in trying to adapt the world to himself. Therefore all progress depends on the unreasonable man."
-- George Bernard Shaw
Reply With Quote
  #5  
Old 01-12-2005, 12:53 AM
konidias konidias is offline
Old Bee
konidias's Avatar
Join Date: Jul 2001
Location: Orlando, FL
Posts: 7,222
konidias will become famous soon enough
Send a message via AIM to 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.
Reply With Quote
  #6  
Old 01-12-2005, 06:31 PM
TB3 TB3 is offline
Registered User
TB3's Avatar
Join Date: May 2001
Location: US of A State of VA
Posts: 658
TB3 is on a distinguished road
Send a message via Yahoo to TB3
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 .
__________________

To the sun of your age, I arise
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 10:16 PM.


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