Graal Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 04-26-2006, 12:58 AM
Yen Yen is offline
Banned
Yen's Avatar
Join Date: Oct 2005
Location: Nova Scotia, Canada
Posts: 1,085
Yen is an unknown quantity at this point
Send a message via AIM to Yen Send a message via MSN to Yen
Strings being cut off (NPC set)

This totally screwed up my server.
My strings are being cut off after so many characters, as if an RC were setting them.
Unfortunately, only NPCs are setting the strings.
When the NPC went to add a 'Bone Piece' to me, the string got cut off and gave RC chat an error. It should have added '"Bone Piece",crafting/bonepiece,1' to the list, but this is what it did:

clientr.items="Frozen Bow",weapons/bow/frozenbow,1,"Training Sword",weapons/sword/trainingsword,1,"Iron Dagger",weapons/dagger/irondagger,1,"Potion of Life",items/lifepotion,837,"War Hammer",weapons/axe/warhammer,1,"Bone Pi

Is there a fix to this, or do I have to rescript everything?
Reply With Quote
  #2  
Old 04-26-2006, 04:19 AM
KuJi KuJi is offline
Banned
Join Date: Apr 2004
Location: Staten Island, New York
Posts: 2,202
KuJi will become famous soon enough
Send a message via ICQ to KuJi Send a message via AIM to KuJi Send a message via MSN to KuJi Send a message via Yahoo to KuJi
You are listing EVERY item in one string? Why not assign ids, and list their ids or something? O.o
Reply With Quote
  #3  
Old 04-26-2006, 04:30 AM
Yen Yen is offline
Banned
Yen's Avatar
Join Date: Oct 2005
Location: Nova Scotia, Canada
Posts: 1,085
Yen is an unknown quantity at this point
Send a message via AIM to Yen Send a message via MSN to Yen
Because to me, that's very messy.

False alarm, but not really.
I can't explain what happened, but it was something like this:
The string is added, but cut off. Only one entry is added, but the last few letters are cut off.
This destroyed the 3-entry format for items, because a 'fourth' entry was at the end.
However, I opened my attributes and cut the broken entry out of the list and I was able to pick items up again.

It's hard to explain what happened; I have no idea what caused it, because only one function adds to the item list.
Reply With Quote
  #4  
Old 04-26-2006, 04:32 AM
KuJi KuJi is offline
Banned
Join Date: Apr 2004
Location: Staten Island, New York
Posts: 2,202
KuJi will become famous soon enough
Send a message via ICQ to KuJi Send a message via AIM to KuJi Send a message via MSN to KuJi Send a message via Yahoo to KuJi
So wait.. it's fixed now?

Also.. what about multilined flags for rc.. just an idea for stefan if he reads this thread.
Reply With Quote
  #5  
Old 04-26-2006, 02:08 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
Well it looks like being edited with RC, wouldn't know other reasons why it should be cut
Reply With Quote
  #6  
Old 04-26-2006, 05:20 PM
xAndrewx xAndrewx is offline
Registered User
xAndrewx's Avatar
Join Date: Sep 2004
Posts: 5,260
xAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud of
Quote:
Originally Posted by Yen
This totally screwed up my server.
My strings are being cut off after so many characters, as if an RC were setting them.
Unfortunately, only NPCs are setting the strings.
When the NPC went to add a 'Bone Piece' to me, the string got cut off and gave RC chat an error. It should have added '"Bone Piece",crafting/bonepiece,1' to the list, but this is what it did:

clientr.items="Frozen Bow",weapons/bow/frozenbow,1,"Training Sword",weapons/sword/trainingsword,1,"Iron Dagger",weapons/dagger/irondagger,1,"Potion of Life",items/lifepotion,837,"War Hammer",weapons/axe/warhammer,1,"Bone Pi

Is there a fix to this, or do I have to rescript everything?
Just wondering, why don't you use a string for each item instead of all items in one string?
Reply With Quote
  #7  
Old 04-26-2006, 07:57 PM
Yen Yen is offline
Banned
Yen's Avatar
Join Date: Oct 2005
Location: Nova Scotia, Canada
Posts: 1,085
Yen is an unknown quantity at this point
Send a message via AIM to Yen Send a message via MSN to Yen
Quote:
Originally Posted by xAndrewx
Just wondering, why don't you use a string for each item instead of all items in one string?
That's messy, to me. :/
Reply With Quote
  #8  
Old 04-26-2006, 09:15 PM
KuJi KuJi is offline
Banned
Join Date: Apr 2004
Location: Staten Island, New York
Posts: 2,202
KuJi will become famous soon enough
Send a message via ICQ to KuJi Send a message via AIM to KuJi Send a message via MSN to KuJi Send a message via Yahoo to KuJi
Actually, I think it would be cleaner ;o

If I had 100 items... OWW?
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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:38 PM.


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