Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Tech Support (https://forums.graalonline.com/forums/forumdisplay.php?f=7)
-   -   Strings being cut off (NPC set) (https://forums.graalonline.com/forums/showthread.php?t=65651)

Yen 04-26-2006 12:58 AM

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?

KuJi 04-26-2006 04:19 AM

You are listing EVERY item in one string? Why not assign ids, and list their ids or something? O.o

Yen 04-26-2006 04:30 AM

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.

KuJi 04-26-2006 04:32 AM

So wait.. it's fixed now?

Also.. what about multilined flags for rc.. just an idea for stefan if he reads this thread.

Admins 04-26-2006 02:08 PM

Well it looks like being edited with RC, wouldn't know other reasons why it should be cut

xAndrewx 04-26-2006 05:20 PM

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?

Yen 04-26-2006 07:57 PM

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. :/

KuJi 04-26-2006 09:15 PM

Actually, I think it would be cleaner ;o

If I had 100 items... OWW?


All times are GMT +2. The time now is 01:58 AM.

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