Jump to content

[Mac OS X] Errors prevent mod installation


ericp07

Recommended Posts

Hello,

 

Looks like I've messed up some things in my mod files...

 

Here's what weidu-mac reports when I attempt to install my mod:

 

WARNING: COMPILE Hinaeari/dialogue/EP#Hin.d with strings from setup.tra

[trigger list near line 33, column 38 of Hinaeari/dialogue/EP#Hin.d] PARSE WARNING at line 33 column 1-32
Near Text: )
	[Local] not found in TRIGGER.IDS
WARNING: cannot verify trigger ~Local("EP#HinJoined","LOCALS",0)~: Parsing.Parse_error
Compiling 1 dialogue file ...
WARNING: COMPILE Hinaeari/dialogue/EP#HinB.d with strings from setup.tra
Compiling 1 dialogue file ...
WARNING: COMPILE Hinaeari/dialogue/EP#HinJ.d with strings from setup.tra

[Hinaeari/dialogue/EP#HinJ.d] PARSE ERROR at line 56 column 1-3
Near Text: 
	syntax error

[Hinaeari/dialogue/EP#HinJ.d]  ERROR at line 56 column 1-3
Near Text: 
	Parsing.Parse_error
ERROR: parsing [Hinaeari/dialogue/EP#HinJ.d]: Parsing.Parse_error
ERROR: compiling [Hinaeari/dialogue/EP#HinJ.d]!
Stopping installation because of error.

ERROR Installing [Hinaeariel Gwaithoron for BGII:SoA/ToB], rolling back to previous state
Will uninstall  57 files for [Hinaeari.tp2] component 0.
Uninstalled	 57 files for [Hinaeari.tp2] component 0.
ERROR: Parsing.Parse_error

 

If anyone is willing to help me fix these issues, please let me know if I need to post any code from the files in question. I figure it's necessary to see the code in order to identify the parse errors, for example.

 

Thanks!

Eric

Link to comment
cannot verify trigger ~Local("EP#HinJoined","LOCALS",0)~: Parsing.Parse_error
You always use Global as a trigger or an action, so it's ~Global("MyVar","LOCALS",1)~ and ~SetGlobal("MyVar","LOCALS",1)~.

 

COMPILE Hinaeari/dialogue/EP#HinB.d with strings from setup.tra
There's a special procedure for traified mods. Don't traify until you've got the code in place.

 

[Hinaeari/dialogue/EP#HinJ.d] PARSE ERROR at line 56 column 1-3

Near Text:

syntax error

 

[Hinaeari/dialogue/EP#HinJ.d] ERROR at line 56 column 1-3

Near Text:

Parsing.Parse_error

ERROR: parsing [Hinaeari/dialogue/EP#HinJ.d]: Parsing.Parse_error

Can't troubleshoot that unless I see EP#HINJ.d
Link to comment
cannot verify trigger ~Local("EP#HinJoined","LOCALS",0)~: Parsing.Parse_error
You always use Global as a trigger or an action, so it's ~Global("MyVar","LOCALS",1)~ and ~SetGlobal("MyVar","LOCALS",1)~.

 

COMPILE Hinaeari/dialogue/EP#HinB.d with strings from setup.tra
There's a special procedure for traified mods. Don't traify until you've got the code in place.

 

[Hinaeari/dialogue/EP#HinJ.d] PARSE ERROR at line 56 column 1-3

Near Text:

syntax error

 

[Hinaeari/dialogue/EP#HinJ.d] ERROR at line 56 column 1-3

Near Text:

Parsing.Parse_error

ERROR: parsing [Hinaeari/dialogue/EP#HinJ.d]: Parsing.Parse_error

Can't troubleshoot that unless I see EP#HINJ.d

 

Embarrassing blunder on the Global/Local issue. Fixed.

 

Here's the content of EP#HinJ.d, still very much a work in progress! So, it's little more than a lump of clay at this point...

 

BEGIN EP#HinJ // Hinaeariel's joined dialogues (scripted/event-based)

I_C_T NALIA 45 EP#HinCommentNaliaJoin
== EP#HinJ IF ~InParty("Nalia") InMyArea("Nalia")~ THEN
~I have never seen anyone look so fancy! Even with your adventuring gear, you look so...formal.~
END

// Insert Nalia's response here

CHAIN
IF ~IsGabber(Player1)~
THEN EP#HinJ PID1
~(Hinaeariel notices you looking at her strangely.)~
= ~Mani naa ta? What is it, <CHARNAME>?~
END

++ ~Just wondering how you're doing.~ + PID1-1
++ ~You’re good company, Hinaeariel!~ + PID1-2
++ ~I was noticing the necklace you wear. Would you mind telling me about it?~ + PID-3

CHAIN
IF ~~ THEN EP#HinJ PID1-1
~I’m well. Thank you for asking!~
EXIT

CHAIN
IF ~~ THEN EP#HinJ PID1-2
~Diolalle! Thank you, <CHARNAME>!~
EXIT

CHAIN
IF ~~ THEN EP#HinJ PID-3
~This is the symbol of the Supreme Ranger and Lady of the Forest, Mielikki. I received it when Needles made me one of them. I treasure it...and I never remove it.~
// Insert CHARNAME's response here
EXIT

INTERJECT PLAYER1 33 TreeofLifeEP#Hin
== PLAYER1 IF ~IsValidForPartyDialog("EP#Hin")~ THEN ~Hinaeariel: the Elven ranger who has been at your side through much adventure~
END

++ ~Hinaeariel, You don’t have to do this, you know. You don’t have to risk your life for mine.~ EXTERN EP#HinJ Option1
++ ~Hinaeariel, you’re a good friend, and I don’t want you harmed. You would be wise to go.~ EXTERN EP#HinJ Option2
++ ~Hinaeariel, are you ready for this?~ EXTERN EP#HinJ Option3

APPEND EP#HinJ
IF ~~ Option1
SAY ~<CHARNAME>, I’m in!~ COPY_TRANS PLAYER1 33
END

IF ~~ Option2
SAY ~No time to be sentimental now. Let’s get this over with!~ COPY_TRANS PLAYER1 33
END

IF ~~ Option3
SAY ~Let’s go!!!~ COPY_TRANS PLAYER1 33
END

 

Please advise.

Thanks,

Eric

Link to comment

And a few pointers: a quick installable fiile.

 

testing.d

BEGIN EP#HinJ // Hinaeariel's joined dialogues (scripted/event-based)

I_C_T NALIA 45 EP#HinCommentNaliaJoin
== EP#HinJ IF ~InParty("Nalia") InMyArea("Nalia")~ THEN ~I have never seen anyone look so fancy! Even with your adventuring gear, you look so...formal.~
END

// Insert Nalia's response here

APPEND ~EP#HinJ~

IF ~IsGabber(Player1)~ THEN PID1
 SAY ~(Hinaeariel notices you looking at her strangely.)~
 = ~Mani naa ta? What is it, <CHARNAME>?~
 ++ ~Just wondering how you're doing.~ + PID1-1
 ++ ~You’re good company, Hinaeariel!~ + PID1-2
 ++ ~I was noticing the necklace you wear. Would you mind telling me about it?~ + PID-3
END

/* CHAIN is way, way overkill here - you are using nuclear warheads to swat flies! You could use  */
// CHAIN ~EP#HinJ~ PID1-1
// ~I’m well. Thank you for asking!~
// EXIT
/* but I think you just wat these as straight blocks in the file; */


IF ~~ PID1-1
 SAY ~I’m well. Thank you for asking!~
 IF ~~ THEN EXIT
END

IF ~~ PID1-2
 SAY ~Diolalle! Thank you, <CHARNAME>!~
 IF ~~ THEN EXIT
END

IF ~~  PID-3
 SAY ~This is the symbol of the Supreme Ranger and Lady of the Forest, Mielikki. I received it when Needles made me one of them. I treasure it...and I never remove it.~
 ++ ~PC Placeholder: Response one~ EXIT
 ++ ~PC Placeholder: Response two~ EXIT
 ++ ~PC Placeholder: Response three~ EXIT
END

IF ~~ Option1
 SAY ~<CHARNAME>, I’m in!~ 
 COPY_TRANS PLAYER1 33
END

IF ~~ Option2
 SAY ~No time to be sentimental now. Let’s get this over with!~ 
 COPY_TRANS PLAYER1 33
END

IF ~~ Option3
 SAY ~Let’s go!!!~ 
 COPY_TRANS PLAYER1 33
END

END // of append to EP#HinJ

/* I suggest using something more other-mod friendly than a strainght INTERJECT... I suggest this: */

/* SoA: Tree of Life Extension, Part A */

/* Add the extension to the bottom of the stack */
EXTEND_BOTTOM ~PLAYER1~ 33
 IF ~InParty("EP#Hin") InMyArea("EP#Hin") !StateCheck("EP#Hin",CD_STATE_NOTVALID) Global("EP#Hintreelife","LOCALS",0)~ EXTERN ~PLAYER1~ EP#HinTreeOfLifeTalk
END

/* SoA: Tree of Life Extension, Part B : Add the initiating state */
APPEND ~PLAYER1~

IF ~~ EP#HinTreeOfLifeTalk
 SAY ~Hinaeariel: the Elven ranger who has been at your side through much adventure~
 ++ ~Hinaeariel, You don’t have to do this, you know. You don’t have to risk your life for mine.~ DO ~SetGlobal("EP#Hintreelife","LOCALS",1)~ EXTERN EP#HinJ Option1
 ++ ~Hinaeariel, you’re a good friend, and I don’t want you harmed. You would be wise to go.~ DO ~SetGlobal("EP#Hintreelife","LOCALS",1)~ EXTERN EP#HinJ Option2
 ++ ~Hinaeariel, are you ready for this?~ DO ~SetGlobal("EP#Hintreelife","LOCALS",1)~ EXTERN EP#HinJ Option3
END

END // of append to PLAYER1

 

with minor edits as shown, this puppy runs out the following entries in PLAYER1:

 

IF ~~ THEN BEGIN 33 // from: 31.1
 SAY #58026 /* ~You turn and regard those who remain in your party.  You feel a need, perhaps, to ascertain their loyalty, their friendship, or to offer a chance to reconsider.~ */
 IF ~True()~ THEN GOTO 53
 IF ~IsValidForPartyDialog("Anomen")
Global("AnomenRomanceActive","GLOBAL",2)~ THEN GOTO 52
 IF ~IsValidForPartyDialog("Aerie")
Global("AerieRomanceActive","GLOBAL",2)~ THEN GOTO 51
 IF ~IsValidForPartyDialog("Viconia")
Global("ViconiaRomanceActive","GLOBAL",2)~ THEN GOTO 50
 IF ~IsValidForPartyDialog("Jaheira")
Global("JaheiraRomanceActive","GLOBAL",2)~ THEN GOTO 49
 IF ~IsValidForPartyDialog("Anomen")
!Global("AnomenRomanceActive","GLOBAL",2)~ THEN GOTO 48
 IF ~IsValidForPartyDialog("Aerie")
!Global("AerieRomanceActive","GLOBAL",2)~ THEN GOTO 47
 IF ~IsValidForPartyDialog("Viconia")
!Global("ViconiaRomanceActive","GLOBAL",2)~ THEN GOTO 46
 IF ~IsValidForPartyDialog("Jaheira")
!Global("JaheiraRomanceActive","GLOBAL",2)~ THEN GOTO 45
 IF ~IsValidForPartyDialog("Cernd")~ THEN GOTO 44
 IF ~IsValidForPartyDialog("Nalia")~ THEN GOTO 43
 IF ~IsValidForPartyDialog("Korgan")~ THEN GOTO 42
 IF ~IsValidForPartyDialog("Keldorn")~ THEN GOTO 41
 IF ~IsValidForPartyDialog("HaerDalis")~ THEN GOTO 40
 IF ~IsValidForPartyDialog("Edwin")~ THEN GOTO 39
 IF ~IsValidForPartyDialog("Jan")~ THEN GOTO 38
 IF ~IsValidForPartyDialog("Mazzy")~ THEN GOTO 37
 IF ~IsValidForPartyDialog("Valygar")~ THEN GOTO 36
 IF ~IsValidForPartyDialog("Minsc")~ THEN GOTO 35
 IF ~IsValidForPartyDialog("Imoen2")~ THEN GOTO 34
 IF ~InParty("EP#Hin")
InMyArea("EP#Hin")
!StateCheck("EP#Hin",STATE_NORMAL)
Global("EP#Hintreelife","LOCALS",0)
~ THEN GOTO 55
END



IF ~~ THEN BEGIN 55 // from: 33.20
 SAY #97920 /* ~Hinaeariel: the Elven ranger who has been at your side through much adventure~ */
 IF ~~ THEN REPLY #97921 /* ~Hinaeariel, You don’t have to do this, you know. You don’t have to risk your life for mine.~ */ DO ~SetGlobal("EP#Hintreelife","LOCALS",1)
~ EXTERN ~EP#HINJ~ 6
 IF ~~ THEN REPLY #97922 /* ~Hinaeariel, you’re a good friend, and I don’t want you harmed. You would be wise to go.~ */ DO ~SetGlobal("EP#Hintreelife","LOCALS",1)
~ EXTERN ~EP#HINJ~ 7
 IF ~~ THEN REPLY #97923 /* ~Hinaeariel, are you ready for this?~ */ DO ~SetGlobal("EP#Hintreelife","LOCALS",1)
~ EXTERN ~EP#HINJ~ 8
END

 

and a decompiled EP#HINJ via DLTECP:

// creator  : DLTCEP_enhanced_WeiDU (version 21700)
// argument : EP#HINJ.DLG
// game		 : .
// source	 : ./override/EP#HINJ.DLG
// dialog	 : ./dialog.tlk
// dialogF  : (none)

BEGIN ~EP#HINJ~

IF ~~ THEN BEGIN 0 // from:
 SAY #97924 /* ~I have never seen anyone look so fancy! Even with your adventuring gear, you look so...formal.~ */
 IF ~~ THEN DO ~SetGlobal("NaliaTalkedTo","LOCALS",1)
~ EXTERN ~NALIA~ 0
END

IF ~IsGabber(Player1)
~ THEN BEGIN 1 // from:
 SAY #97925 /* ~(Hinaeariel notices you looking at her strangely.)~ */
 IF ~~ THEN GOTO 2
END

IF ~~ THEN BEGIN 2 // from: 1.0
 SAY #97926 /* ~Mani naa ta? What is it, <CHARNAME>?~ */
 IF ~~ THEN REPLY #97927 /* ~Just wondering how you're doing.~ */ GOTO 3
 IF ~~ THEN REPLY #97928 /* ~You’re good company, Hinaeariel!~ */ GOTO 4
 IF ~~ THEN REPLY #97929 /* ~I was noticing the necklace you wear. Would you mind telling me about it?~ */ GOTO 5
END

IF ~~ THEN BEGIN 3 // from: 2.0
 SAY #97938 /* ~I’m well. Thank you for asking!~ */
 IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 4 // from: 2.1
 SAY #97930 /* ~Diolalle! Thank you, <CHARNAME>!~ */
 IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 5 // from: 2.2
 SAY #97931 /* ~This is the symbol of the Supreme Ranger and Lady of the Forest, Mielikki. I received it when Needles made me one of them. I treasure it...and I never remove it.~ */
 IF ~~ THEN REPLY #97932 /* ~PC Placeholder: Response one~ */ EXIT
 IF ~~ THEN REPLY #97933 /* ~PC Placeholder: Response two~ */ EXIT
 IF ~~ THEN REPLY #97934 /* ~PC Placeholder: Response three~ */ EXIT
END

IF ~~ THEN BEGIN 6 // from:
 SAY #97935 /* ~<CHARNAME>, I’m in!~ */
 IF ~True()~ THEN EXTERN ~PLAYER1~ 53
 IF ~IsValidForPartyDialog("Anomen")
Global("AnomenRomanceActive","GLOBAL",2)~ THEN EXTERN ~PLAYER1~ 52
 IF ~IsValidForPartyDialog("Aerie")
Global("AerieRomanceActive","GLOBAL",2)~ THEN EXTERN ~PLAYER1~ 51
 IF ~IsValidForPartyDialog("Viconia")
Global("ViconiaRomanceActive","GLOBAL",2)~ THEN EXTERN ~PLAYER1~ 50
 IF ~IsValidForPartyDialog("Jaheira")
Global("JaheiraRomanceActive","GLOBAL",2)~ THEN EXTERN ~PLAYER1~ 49
 IF ~IsValidForPartyDialog("Anomen")
!Global("AnomenRomanceActive","GLOBAL",2)~ THEN EXTERN ~PLAYER1~ 48
 IF ~IsValidForPartyDialog("Aerie")
!Global("AerieRomanceActive","GLOBAL",2)~ THEN EXTERN ~PLAYER1~ 47
 IF ~IsValidForPartyDialog("Viconia")
!Global("ViconiaRomanceActive","GLOBAL",2)~ THEN EXTERN ~PLAYER1~ 46
 IF ~IsValidForPartyDialog("Jaheira")
!Global("JaheiraRomanceActive","GLOBAL",2)~ THEN EXTERN ~PLAYER1~ 45
 IF ~IsValidForPartyDialog("Cernd")~ THEN EXTERN ~PLAYER1~ 44
 IF ~IsValidForPartyDialog("Nalia")~ THEN EXTERN ~PLAYER1~ 43
 IF ~IsValidForPartyDialog("Korgan")~ THEN EXTERN ~PLAYER1~ 42
 IF ~IsValidForPartyDialog("Keldorn")~ THEN EXTERN ~PLAYER1~ 41
 IF ~IsValidForPartyDialog("HaerDalis")~ THEN EXTERN ~PLAYER1~ 40
 IF ~IsValidForPartyDialog("Edwin")~ THEN EXTERN ~PLAYER1~ 39
 IF ~IsValidForPartyDialog("Jan")~ THEN EXTERN ~PLAYER1~ 38
 IF ~IsValidForPartyDialog("Mazzy")~ THEN EXTERN ~PLAYER1~ 37
 IF ~IsValidForPartyDialog("Valygar")~ THEN EXTERN ~PLAYER1~ 36
 IF ~IsValidForPartyDialog("Minsc")~ THEN EXTERN ~PLAYER1~ 35
 IF ~IsValidForPartyDialog("Imoen2")~ THEN EXTERN ~PLAYER1~ 34
END

IF ~~ THEN BEGIN 7 // from:
 SAY #97936 /* ~No time to be sentimental now. Let’s get this over with!~ */
 IF ~True()~ THEN EXTERN ~PLAYER1~ 53
 IF ~IsValidForPartyDialog("Anomen")
Global("AnomenRomanceActive","GLOBAL",2)~ THEN EXTERN ~PLAYER1~ 52
 IF ~IsValidForPartyDialog("Aerie")
Global("AerieRomanceActive","GLOBAL",2)~ THEN EXTERN ~PLAYER1~ 51
 IF ~IsValidForPartyDialog("Viconia")
Global("ViconiaRomanceActive","GLOBAL",2)~ THEN EXTERN ~PLAYER1~ 50
 IF ~IsValidForPartyDialog("Jaheira")
Global("JaheiraRomanceActive","GLOBAL",2)~ THEN EXTERN ~PLAYER1~ 49
 IF ~IsValidForPartyDialog("Anomen")
!Global("AnomenRomanceActive","GLOBAL",2)~ THEN EXTERN ~PLAYER1~ 48
 IF ~IsValidForPartyDialog("Aerie")
!Global("AerieRomanceActive","GLOBAL",2)~ THEN EXTERN ~PLAYER1~ 47
 IF ~IsValidForPartyDialog("Viconia")
!Global("ViconiaRomanceActive","GLOBAL",2)~ THEN EXTERN ~PLAYER1~ 46
 IF ~IsValidForPartyDialog("Jaheira")
!Global("JaheiraRomanceActive","GLOBAL",2)~ THEN EXTERN ~PLAYER1~ 45
 IF ~IsValidForPartyDialog("Cernd")~ THEN EXTERN ~PLAYER1~ 44
 IF ~IsValidForPartyDialog("Nalia")~ THEN EXTERN ~PLAYER1~ 43
 IF ~IsValidForPartyDialog("Korgan")~ THEN EXTERN ~PLAYER1~ 42
 IF ~IsValidForPartyDialog("Keldorn")~ THEN EXTERN ~PLAYER1~ 41
 IF ~IsValidForPartyDialog("HaerDalis")~ THEN EXTERN ~PLAYER1~ 40
 IF ~IsValidForPartyDialog("Edwin")~ THEN EXTERN ~PLAYER1~ 39
 IF ~IsValidForPartyDialog("Jan")~ THEN EXTERN ~PLAYER1~ 38
 IF ~IsValidForPartyDialog("Mazzy")~ THEN EXTERN ~PLAYER1~ 37
 IF ~IsValidForPartyDialog("Valygar")~ THEN EXTERN ~PLAYER1~ 36
 IF ~IsValidForPartyDialog("Minsc")~ THEN EXTERN ~PLAYER1~ 35
 IF ~IsValidForPartyDialog("Imoen2")~ THEN EXTERN ~PLAYER1~ 34
END

IF ~~ THEN BEGIN 8 // from:
 SAY #97937 /* ~Let’s go!!!~ */
 IF ~True()~ THEN EXTERN ~PLAYER1~ 53
 IF ~IsValidForPartyDialog("Anomen")
Global("AnomenRomanceActive","GLOBAL",2)~ THEN EXTERN ~PLAYER1~ 52
 IF ~IsValidForPartyDialog("Aerie")
Global("AerieRomanceActive","GLOBAL",2)~ THEN EXTERN ~PLAYER1~ 51
 IF ~IsValidForPartyDialog("Viconia")
Global("ViconiaRomanceActive","GLOBAL",2)~ THEN EXTERN ~PLAYER1~ 50
 IF ~IsValidForPartyDialog("Jaheira")
Global("JaheiraRomanceActive","GLOBAL",2)~ THEN EXTERN ~PLAYER1~ 49
 IF ~IsValidForPartyDialog("Anomen")
!Global("AnomenRomanceActive","GLOBAL",2)~ THEN EXTERN ~PLAYER1~ 48
 IF ~IsValidForPartyDialog("Aerie")
!Global("AerieRomanceActive","GLOBAL",2)~ THEN EXTERN ~PLAYER1~ 47
 IF ~IsValidForPartyDialog("Viconia")
!Global("ViconiaRomanceActive","GLOBAL",2)~ THEN EXTERN ~PLAYER1~ 46
 IF ~IsValidForPartyDialog("Jaheira")
!Global("JaheiraRomanceActive","GLOBAL",2)~ THEN EXTERN ~PLAYER1~ 45
 IF ~IsValidForPartyDialog("Cernd")~ THEN EXTERN ~PLAYER1~ 44
 IF ~IsValidForPartyDialog("Nalia")~ THEN EXTERN ~PLAYER1~ 43
 IF ~IsValidForPartyDialog("Korgan")~ THEN EXTERN ~PLAYER1~ 42
 IF ~IsValidForPartyDialog("Keldorn")~ THEN EXTERN ~PLAYER1~ 41
 IF ~IsValidForPartyDialog("HaerDalis")~ THEN EXTERN ~PLAYER1~ 40
 IF ~IsValidForPartyDialog("Edwin")~ THEN EXTERN ~PLAYER1~ 39
 IF ~IsValidForPartyDialog("Jan")~ THEN EXTERN ~PLAYER1~ 38
 IF ~IsValidForPartyDialog("Mazzy")~ THEN EXTERN ~PLAYER1~ 37
 IF ~IsValidForPartyDialog("Valygar")~ THEN EXTERN ~PLAYER1~ 36
 IF ~IsValidForPartyDialog("Minsc")~ THEN EXTERN ~PLAYER1~ 35
 IF ~IsValidForPartyDialog("Imoen2")~ THEN EXTERN ~PLAYER1~ 34
END

 

 

This brings up a minor thing - ~ EXTERN ~NALIA~ 0 ? That is the non-joined dialog file. i am assuming this is a comment when the party first meets Nalia in the CC...

 

attached installable files without the weidu...

Link to comment

Yes, that is for when party first meets Nalia.

 

So, the decompiled EP#HinJ.d shown above...should that be the entire content of the file, replacing what's already there?

 

Edit: The link wasn't there when I read this the first time, but now it is, so I'll d/l and check out the attachment.

 

Thanks!

Eric

Link to comment

Out of curiosity, I saved a copy of the test .d file as EP#HinJ.d, copied my original file of the same name elsewhere, then replaced the file in my dialogue folder with the renamed test file. Attempting to then install the mod with weidu-mac results in the following errors:

 

WARNING: COMPILE Hinaeari/dialogue/EP#Hin.d with strings from setup.tra
Compiling 1 dialogue file ...
WARNING: COMPILE Hinaeari/dialogue/EP#HinB.d with strings from setup.tra
Compiling 1 dialogue file ...
WARNING: COMPILE Hinaeari/dialogue/EP#HinJ.d with strings from setup.tra

[Hinaeari/dialogue/EP#HinJ.d] PARSE ERROR at line 10 column 1-2
Near Text: IF
	syntax error

[Hinaeari/dialogue/EP#HinJ.d]  ERROR at line 10 column 1-2
Near Text: IF
	Parsing.Parse_error
ERROR: parsing [Hinaeari/dialogue/EP#HinJ.d]: Parsing.Parse_error
ERROR: compiling [Hinaeari/dialogue/EP#HinJ.d]!
Stopping installation because of error.

ERROR Installing [Hinaeariel Gwaithoron for BGII:SoA/ToB], rolling back to previous state
Will uninstall  57 files for [Hinaeari.tp2] component 0.
Uninstalled	 57 files for [Hinaeari.tp2] component 0.
ERROR: Parsing.Parse_error

 

Clearly, I still need to train myself for what all to spot with such errors, as I'm currently unable to identify the problem in the coding. Please help!

 

Thanks,

Eric

Link to comment

#1 - check to make sure the .d and .tp2 are saved as Mac not Windows

 

#2 - Try the attached whole package above; if the mod folder "testing" with the contents

 

setup-testing.tp2

subfolder "backup" (empty)

subfolder "dlg" (testing.d)

 

doesn't work, we may need to get Steve or the bigg involved for a recheck.

 

Weidu-mac should not be choking on APPEND ~EP#HinJ~ or looking for .tra references in an un-traified file, so something seems odd - either hidden ascii characters or nulls, or some other strangeness -

Link to comment
#1 - check to make sure the .d and .tp2 are saved as Mac not Windows

 

#2 - Try the attached whole package above; if the mod folder "testing" with the contents

 

setup-testing.tp2

subfolder "backup" (empty)

subfolder "dlg" (testing.d)

 

doesn't work, we may need to get Steve or the bigg involved for a recheck.

 

Weidu-mac should not be choking on APPEND ~EP#HinJ~ or looking for .tra references in an un-traified file, so something seems odd - either hidden ascii characters or nulls, or some other strangeness -

 

I could also save as Unix. That's what I do for all my .d and .tp2 files. Encoding options might also be important. I reopened the file, and found that it was corrupted; it was saved as Windows, with Western encoding, so I opened the original again, renamed it, and saved it as Unix with Unicode-8 (no BOM) this time...whatever all that means ???

 

OK, I'll drop the extracted package into my BGII game directory, and install it with weidu-mac...and see what happens.

 

Thanks,

Eric

Link to comment
#1 - check to make sure the .d and .tp2 are saved as Mac not Windows

 

#2 - Try the attached whole package above; if the mod folder "testing" with the contents

 

setup-testing.tp2

subfolder "backup" (empty)

subfolder "dlg" (testing.d)

 

doesn't work, we may need to get Steve or the bigg involved for a recheck.

 

Weidu-mac should not be choking on APPEND ~EP#HinJ~ or looking for .tra references in an un-traified file, so something seems odd - either hidden ascii characters or nulls, or some other strangeness -

 

I could also save as Unix. That's what I do for all my .d and .tp2 files. Encoding options might also be important. I reopened the file, and found that it was corrupted; it was saved as Windows, with Western encoding, so I opened the original again, renamed it, and saved it as Unix with Unicode-8 (no BOM) this time...whatever all that means :hm:

 

OK, I'll drop the extracted package into my BGII game directory, and install it with weidu-mac...and see what happens.

 

Thanks,

Eric

 

Successfully installed ???

What's next?

 

- E

Link to comment

Well, if that worked, the next step is to see hwat it is you have done differently with your .tp2 ???

 

If you don't have a temporary site, go ahead and email it to cmorganbg at gmail dot com, and I will take a look and see what the differences are. Toss me the whole thing .rar'ed (minus the setup-mymod.exe) and i can try to do an install on Windows and see if anything pops up.

Link to comment

Something occurs to me here. I'm wondering if part of this is the Mac CR/LF issue.

 

According to Nythrun, you can code an entire mod on one line, but I'm not sure whether that applies to D files as well as scripts and tp2s.

 

ericp07 comments out his lines with // because he doesn't like /* */, but // comments out the entire line. If you're doing a CR without a LF, what would happen?

Link to comment
ericp07 comments out his lines with // because he doesn't like /* */, but // comments out the entire line. If you're doing a CR without a LF, what would happen?

Probably something bad. When one of my .tp2 files was turned into Mac format recently, WeiDU couldn't parse the comments correctly.

Link to comment

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...