PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : unknown identifier



KGS
07.07.2009, 13:57
I started the tutorial where you make a npc and a quest to give him some bread... I made the dialoge a little bit more complicated but when making the startup file i stuck to the tutorial... The problem is that when i try to rephrase the script this show up

http://img44.imageshack.us/img44/6936/errorri.jpg

(this is my npc)

What i found about unknown identifiers was this :



U:PAR unknown identifier (XXX) - A variable, constant or function is called but hasn't been defined before (for example a log constant or an on_equip function).


But i have no idea how to correct the mistake... (do you need to see the scripts ?)

WernerTWC
07.07.2009, 19:37
Do you have that script what is in that error message? (BAU_66666_HAH .... btw. you can see the error message better in the zspy).


(do you need to see the scripts ?)

Would make it easy i guess.

KGS
07.07.2009, 20:34
Here are the scripts (http://rapidshare.com/files/253141705/scripts.rar.html) (link from rapidshare) they are really short... only the dialog is more than a page. i can't use zspy because my spacer doesn't start if i run it from the starter. (or mby i can but i dont know how :))

Korianous
07.07.2009, 22:00
ZSpy should automatically start, idk why it isn't. Also, are those all your scripts or only the ones you have messed with? My suggestion is, if you haven't already downloaded WernerTWC's English Cleaned Scripts (http://www.worldofgothic.com/dl/?go=dlfile&fileid=126), do so.

Add your own scripts in, and then use the Gothic.src to parse them. If you've already done this, I'll need to have a think, not entirely sure what's causing it.

WernerTWC
07.07.2009, 22:04
Here are the scripts (http://rapidshare.com/files/253141705/scripts.rar.html) (link from rapidshare) they are really short... only the dialog is more than a page. i can't use zspy because my spacer doesn't start if i run it from the starter. (or mby i can but i dont know how :))

In the script "Bau_66666_Hah.d" this line is wrong:

name[0] = "Hah";

correct:

name = "Hah";

(Without that "[0]").

KGS
07.07.2009, 22:19
Removing the '[0]' didn't work but i don't have the scripts Ill download them and try it tomorrow...

A strange thing is that i never wrote the '[0]' in the first place

I didn't really get this about if they were my own scripts i guess they are mine because i followed the tutorial and copied stuff from other scripts and added my details

EDIT : I think the cleaned-up scripts are too much for me because when i added mine 3 I got tons of mistake so i fugred out that i'd have to finish the other scripts just to try mine and I want to start off with something simpler

EDIT 2: Just of curiosity in startup_BURGCAMP.d I exchanged my npc (BAU_66666_Hah) with another random npc and the scripts rephrase just fine... Does that mean that there is a problem with my npc ?

EDIT 3:
Still no luck fixing it ... any new ideas ?

Korianous
09.07.2009, 16:33
You need those Cleaned Scripts to make it work I think, you'll need to fix the errors you're getting. My suggestion:

1) Make sure the cleaned scripts reparse without errors. Debug them if they do, and ensure that they compile error free before moving on.
2) Insert one of your scripts, parse. If it compiles error-free, insert another and repeat. Do this until you find the troublesome script, and then debug it.