SphereCommunity
Error with Dialog - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: Script Help (/Forum-Script-Help)
+--- Thread: Error with Dialog (/Thread-Error-with-Dialog)

Pages: 1 2


Error with Dialog - pinku - 08-17-2013 03:29 PM

Hey all again!

I'm using Majesty's Bounty System and right now I'm getting a huge error when I open the dialog.

Let me explain:

Code:
RED NAMES ON THE BOUNTY BOARD MEANS THAT THE PLAYER IS A MURDERER.
BLUE NAMES ON THE BOUNTY BOARD MEANS THAT THE PLAYER IS NOT A MURDERER.

Knowing that:

Code:
[FUNCTION ISMURDERER]
if ( <KILLS> > <SERV.MURDERMINCOUNT> )
return 1
endif
return 0

This function works. So don't worry about it.

Code:
text 99 69 <QVAL (<src.uid.<tag.bountyuid.1>.ismurderer> == 1 ) ? 32 : 02> 0
text 99 90 <QVAL (<src.uid.<tag.bountyuid.2>.ismurderer> == 1 ) ? 32 : 02> 1
text 99 114 <QVAL (<src.uid.<tag.bountyuid.3>.ismurderer> == 1 ) ? 32 : 02> 2
text 99 135 <QVAL (<src.uid.<tag.bountyuid.4>.ismurderer> == 1 ) ? 32 : 02> 3
text 99 159 <QVAL (<src.uid.<tag.bountyuid.5>.ismurderer> == 1 ) ? 32 : 02> 4
text 99 180 <QVAL (<src.uid.<tag.bountyuid.6>.ismurderer> == 1 ) ? 32 : 02> 5
text 99 204 <QVAL (<src.uid.<tag.bountyuid.7>.ismurderer> == 1 ) ? 32 : 02> 6
text 99 225 <QVAL (<src.uid.<tag.bountyuid.8>.ismurderer> == 1 ) ? 32 : 02> 7
text 99 249 <QVAL (<src.uid.<tag.bountyuid.9>.ismurderer> == 1 ) ? 32 : 02> 8
...
...
...

And here's what I got:

Code:
ERROR:(bounty,1441)Undefined symbol 'ismurderer'
ERROR:(bounty,1442)Undefined symbol 'ismurderer'
ERROR:(bounty,1443)Undefined symbol 'ismurderer'
...
...

Honestly, I'm somewhat new to sphere and I haven't had the time to learn much about dialogs. Of course, I can build my owns, but just simple ones. Sad

Can someone help me figure out this one?

Thanks!


RE: Error with Dialog - XuN - 08-17-2013 05:25 PM

Remove the 'src' part, you are calling 2 UID there, 'src' and 'uid.tag.bountyuid.n' so I guess you are using IsMurderer in a sum of uids


RE: Error with Dialog - pinku - 08-17-2013 06:02 PM

Hey, thanks for helping me out. Tongue

I just tested what you said, but I had no lucky with this one.


RE: Error with Dialog - Rattlehead - 08-18-2013 07:44 AM

<uid.<tag0.bountyuid.1>.ismurderer>

try this, for 1 - 9


RE: Error with Dialog - XuN - 08-18-2013 07:49 PM

Since the error say "Undefined symbol 'ismurderer'", the problem must be the function itself, spheresvr isn't loading it, is it in same .scp as dialog? in one different, wich is loaded by default? It gives no problems even pointing to an item (in wich case the error is checking 'kills' methot because they doens't have kills).


RE: Error with Dialog - Rattlehead - 08-18-2013 09:50 PM

agreed, u said the function worked fine, how do u know the function works?


RE: Error with Dialog - darksun84 - 08-19-2013 12:33 AM

Can you post the entire script ? so we can test it too Big Grin


RE: Error with Dialog - RanXerox - 08-19-2013 01:17 AM

(08-17-2013 03:29 PM)pinku Wrote:  
Code:
[FUNCTION ISMURDERER]
if ( <KILLS> > <SERV.MURDERMINCOUNT> )
return 1
endif
return 0
What happens if the reference this function operates on is invalid or not a player? Maybe put an IF statement to figure that out...

Quote:
Code:
text 99 69 <QVAL (<src.uid.<tag.bountyuid.1>.ismurderer> == 1 ) ? 32 : 02> 0
text 99 90 <QVAL (<src.uid.<tag.bountyuid.2>.ismurderer> == 1 ) ? 32 : 02> 1
text 99 114 <QVAL (<src.uid.<tag.bountyuid.3>.ismurderer> == 1 ) ? 32 : 02> 2
text 99 135 <QVAL (<src.uid.<tag.bountyuid.4>.ismurderer> == 1 ) ? 32 : 02> 3
text 99 159 <QVAL (<src.uid.<tag.bountyuid.5>.ismurderer> == 1 ) ? 32 : 02> 4
text 99 180 <QVAL (<src.uid.<tag.bountyuid.6>.ismurderer> == 1 ) ? 32 : 02> 5
text 99 204 <QVAL (<src.uid.<tag.bountyuid.7>.ismurderer> == 1 ) ? 32 : 02> 6
text 99 225 <QVAL (<src.uid.<tag.bountyuid.8>.ismurderer> == 1 ) ? 32 : 02> 7
text 99 249 <QVAL (<src.uid.<tag.bountyuid.9>.ismurderer> == 1 ) ? 32 : 02> 8
...
...
...

What if the TAG has an invalid value? Use TAG0 instead...


RE: Error with Dialog - dagger4k - 08-19-2013 09:54 AM

@ Darksun86
The script is a part of the Darklands script pack
For anyone that wants to see the whole script http://pastebin.com/A8LxKScL


RE: Error with Dialog - Rattlehead - 08-19-2013 11:29 AM

i looked over this, and altho is syntax is outdated, and altho they seems to like to use vars, and altho the original scriptor failed to use the TAG0 syntax when referncing something on the right side of a statement, i dont see any reason why this script shouldnt work perfectly as intended.

if this is a tag0 issue, then its really not the scripts fault, as from what i can tell everytime it references a tag, the tag should be populated, so the tags must not be being set correctly, possibly an installation mistake, i see that u have to insert the uid of both the reward container, and the bulletin board, maybe the references are pointing to the wrong item in the users version?