SphereCommunity
A "problem" with opening a Dialog - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: Script Help (/Forum-Script-Help)
+--- Thread: A "problem" with opening a Dialog (/Thread-A-problem-with-opening-a-Dialog)



A "problem" with opening a Dialog - Shidhun - 07-11-2012 02:39 AM

Hi,

after trying to figure out what is wrong for a few day's, i now try my luck at this forum Smile

The Problem is the following Error :

Code:
17:34:4c:Setup_Start acct='0000000000', char='0000', IP='0.0.0.0'
17:34:ERROR:(Rassensystem_Rassenwahl.scp,623)Undefined symbol 'd_charerstellung'
17:34:ERROR:(Rassensystem_Rassenwahl.scp,623)Invalid RES_DIALOG.

My Problem is, that i really don't understand why there is a problem opening the said dialog.

The Script is a combined race-/class-System. After picking your desired race and answering the right multiple-choice questions for creating this specific race, you of course get the Race-Flag and then a Gump for the selection of your desired class openes.. or in this case it should open.

Code:
if <argchk> = 3
    tag.klasse = <hval <src.GetClass> | <def.rasse_mensch>>
    color=colors_skin
    body=c_man
    sysmessage @180 test
    update
    if <def.klassensystem_moveaftercreate>
        src.go <def.klassensystem_moveaftercreate_p>
    else
        src.go 2670,2165,0
    endif
    dialog d_charerstellung //<.........................here is the Line 623
return 0
else
dialog d_rassenwahl
endif
return 0

The Gump-Dialog itself works perfectly on my sphere-installation at home. I even tried to shorten the individual Gump-Dialog just in case if the Error was caused by too many pages. But this didn't change anything.

So, what Problem can there possibly be? As mentioned, opening the dialog on my sphere at home works without any problem. The Problem happens to occur only on our gameserver.

Perhaps somebody has an idea what might be the problem. (Perhaps some interference with other scripts, or a setting in the ini perhaps?)

thanks


RE: A "problem" with opening a Dialog - Extreme - 07-11-2012 02:47 AM

Hi,
can you open this dialog using .dialog d_charerstellung ?
If not, check the name or if its on scripts.
This error, undefined symbol occur when you don't have the dialog in scripts..

Check it and tell us.


RE: A "problem" with opening a Dialog - Shidhun - 07-11-2012 03:26 AM

*facepalm*

i dont know why, but your hint was right. The Script didn't load. Allthough i don't know why it did load at home, but not on our server.

There seemed to be a problem with the filename. It had two underscores (i hope this is the right translation of what i mean Tongue) like

scripts/class_system/classes_gumps_new.scp

allthough this version worked at home (it loaded correctly), it didn't work right on our server. I had to rename the file to reduce the "underscores" to a maximum of 1 --> classes_newgumps.scp.

This is really ... weird.

EDIT : Next time i know that i should try to open all dialogs ig per hand Tongue

But thanks Extreme, now it works as it should.


RE: A "problem" with opening a Dialog - Extreme - 07-11-2012 03:44 AM

You're welcome =D
The 'underscores' is 'underlines'.
I think its don't affect to sphere load them, because sphere have sphere_serv_triggers.scp as example.
Maybe is because you don't set in spheretables.scp to load your folder 'class_system' or the underline in this folder name don't works (never tested it, I never used underline in folder names to know)