Post Reply 
 
Thread Rating:
  • 1 Votes - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Error with Dialog
Author Message
pinku
Journeyman
*

Posts: 118
Likes Given: 4
Likes Received: 2 in 2 posts
Joined: Apr 2013
Reputation: 4



Post: #1
Error with Dialog
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!
08-17-2013 03:29 PM
Find all posts by this user Like Post Quote this message in a reply
XuN
Sphere Developer
*****

Posts: 852
Likes Given: 102
Likes Received: 156 in 119 posts
Joined: Jul 2013
Reputation: 30



Post: #2
RE: Error with Dialog
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
08-17-2013 05:25 PM
Find all posts by this user Like Post Quote this message in a reply
pinku
Journeyman
*

Posts: 118
Likes Given: 4
Likes Received: 2 in 2 posts
Joined: Apr 2013
Reputation: 4



Post: #3
RE: Error with Dialog
Hey, thanks for helping me out. Tongue

I just tested what you said, but I had no lucky with this one.
08-17-2013 06:02 PM
Find all posts by this user Like Post Quote this message in a reply
Rattlehead
Master
**

Posts: 290
Likes Given: 3
Likes Received: 8 in 6 posts
Joined: Jun 2012
Reputation: 8



Post: #4
RE: Error with Dialog
<uid.<tag0.bountyuid.1>.ismurderer>

try this, for 1 - 9

[Image: matts_siggy.gif]
08-18-2013 07:44 AM
Find all posts by this user Like Post Quote this message in a reply
XuN
Sphere Developer
*****

Posts: 852
Likes Given: 102
Likes Received: 156 in 119 posts
Joined: Jul 2013
Reputation: 30



Post: #5
RE: Error with Dialog
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).
08-18-2013 07:49 PM
Find all posts by this user Like Post Quote this message in a reply
Rattlehead
Master
**

Posts: 290
Likes Given: 3
Likes Received: 8 in 6 posts
Joined: Jun 2012
Reputation: 8



Post: #6
RE: Error with Dialog
agreed, u said the function worked fine, how do u know the function works?

[Image: matts_siggy.gif]
08-18-2013 09:50 PM
Find all posts by this user Like Post Quote this message in a reply
darksun84
Sir Spamalot
****

Posts: 1,687
Likes Given: 246
Likes Received: 162 in 151 posts
Joined: Mar 2012
Reputation: 35



Post: #7
RE: Error with Dialog
Can you post the entire script ? so we can test it too Big Grin
08-19-2013 12:33 AM
Find all posts by this user Like Post Quote this message in a reply
RanXerox
Master
**

Posts: 550
Likes Given: 1
Likes Received: 12 in 9 posts
Joined: Dec 2010
Reputation: 19



Post: #8
RE: Error with Dialog
(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...
(This post was last modified: 08-23-2013 03:36 AM by RanXerox.)
08-19-2013 01:17 AM
Find all posts by this user Like Post Quote this message in a reply
dagger4k
Journeyman
*

Posts: 194
Likes Given: 1
Likes Received: 12 in 12 posts
Joined: Mar 2012
Reputation: 0



Post: #9
RE: Error with Dialog
@ Darksun86
The script is a part of the Darklands script pack
For anyone that wants to see the whole script http://pastebin.com/A8LxKScL
08-19-2013 09:54 AM
Find all posts by this user Like Post Quote this message in a reply
Rattlehead
Master
**

Posts: 290
Likes Given: 3
Likes Received: 8 in 6 posts
Joined: Jun 2012
Reputation: 8



Post: #10
RE: Error with Dialog
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?

[Image: matts_siggy.gif]
08-19-2013 11:29 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)