Jump to content

How to add "vanilla" items to "vanilla" creatures in BG2?


Recommended Posts

The nightmare continue…I have modified yet my tp2 like you have suggested, Mike, and I have an error message…

// Dragon Scales

COPY_EXISTING ~gorsal.cre~ ~override~
ADD_CRE_ITEM ~scaler~ #0 #0 #0 ~NONE~ ~INV~

COPY_EXISTING ~dracblac.cre~ ~override~
ADD_CRE_ITEM ~scaleb~ #0 #0 #0 ~NONE~ ~IN
 

here the Debug file:

WeiDU v 24600 Log

 E:\Baldurs Gate II\setup-Artemus.exe
 version = 24600
[.\CHITIN.KEY] loaded, 590481 bytes
[.\CHITIN.KEY] 182 BIFFs, 41788 resources
[./Autorun.ini] loaded, 1228 bytes
[./baldur.ini] loaded, 3187 bytes
Possible HD/CD Path: [E:\Baldurs Gate II]
Possible HD/CD Path: [E:\Baldurs Gate II\data\]
Possible HD/CD Path: [E:\Baldurs Gate II\data\]
Possible HD/CD Path: [E:\Baldurs Gate II\data\]
Possible HD/CD Path: [E:\Baldurs Gate II\data\]
Possible HD/CD Path: [E:\Baldurs Gate II\data\]
Possible HD/CD Path: [E:\Baldurs Gate II\data\]
[./goglog.ini] loaded, 52355 bytes
[./Keymap.ini] loaded, 5621 bytes
[.\dialog.tlk] loaded, 9921992 bytes
[.\dialog.tlk] 75625 string entries
[.\dialogf.tlk] loaded, 9997872 bytes
[.\dialogf.tlk] 75625 string entries

[ARTEMUS/SETUP-ARTEMUS.TP2] PARSE ERROR at line 44 column 1-14
Near Text: /
    GLR parse error

[ARTEMUS/SETUP-ARTEMUS.TP2]  ERROR at line 44 column 1-14
Near Text: /
    Parsing.Parse_error
ERROR: parsing [ARTEMUS/SETUP-ARTEMUS.TP2]: Parsing.Parse_error
ERROR: problem parsing TP file [ARTEMUS/SETUP-ARTEMUS.TP2]: Parsing.Parse_error

FATAL ERROR: Parsing.Parse_error

        WeiDU Timings
load TLK                         0.000
parsing .log files               0.000
loading files                    0.000
unmarshal KEY                    0.016
Parsing TP2 files                0.016
stuff not covered elsewhere      0.016
unmarshal TLK                    0.047
TOTAL                            0.094
 

Link to comment

Well’ I’ve corrected this little copy error, and I’ve yet a message error…

 

 

WeiDU v 24600 Log

 E:\Baldurs Gate II\setup-Artemus.exe
 version = 24600
[.\CHITIN.KEY] loaded, 590481 bytes
[.\CHITIN.KEY] 182 BIFFs, 41788 resources
[./Autorun.ini] loaded, 1228 bytes
[./baldur.ini] loaded, 3187 bytes
Possible HD/CD Path: [E:\Baldurs Gate II]
Possible HD/CD Path: [E:\Baldurs Gate II\data\]
Possible HD/CD Path: [E:\Baldurs Gate II\data\]
Possible HD/CD Path: [E:\Baldurs Gate II\data\]
Possible HD/CD Path: [E:\Baldurs Gate II\data\]
Possible HD/CD Path: [E:\Baldurs Gate II\data\]
Possible HD/CD Path: [E:\Baldurs Gate II\data\]
[./goglog.ini] loaded, 52355 bytes
[./Keymap.ini] loaded, 5621 bytes
[.\dialog.tlk] loaded, 9921992 bytes
[.\dialog.tlk] 75625 string entries
[.\dialogf.tlk] loaded, 9997872 bytes
[.\dialogf.tlk] 75625 string entries

[ARTEMUS/SETUP-ARTEMUS.TP2] PARSE ERROR at line 74 column 1-6
Near Text: README
    GLR parse error

[ARTEMUS/SETUP-ARTEMUS.TP2]  ERROR at line 74 column 1-6
Near Text: README
    Parsing.Parse_error
ERROR: parsing [ARTEMUS/SETUP-ARTEMUS.TP2]: Parsing.Parse_error
ERROR: problem parsing TP file [ARTEMUS/SETUP-ARTEMUS.TP2]: Parsing.Parse_error

FATAL ERROR: Parsing.Parse_error

        WeiDU Timings
load TLK                         0.000
parsing .log files               0.000
loading files                    0.000
unmarshal KEY                    0.016
Parsing TP2 files                0.016
stuff not covered elsewhere      0.031
unmarshal TLK                    0.063
TOTAL                            0.125
 

Link to comment

Voila and thank you for your help

 

tp2

    /////////////////////////////////////////////////////////////////////////////////////////////////////////
    /////////////////////////////////////////////////////////////////////////////////////////////////////////
    //    Mod Artemus Jansen pour BG2ToB par Prof Errata     //
    /////////////////////////////////////////////////////////////////////////////////////////////////////////
    /////////////////////////////////////////////////////////////////////////////////////////////////////////

BACKUP ~Artemus\backup~
AUTHOR ~Prof Errata~

LANGUAGE ~Francais~
         ~french~
         ~Artemus/translations/french/dialog.tra~

BEGIN @10

// Creature Stuff

COPY ~Artemus/creatureArtemusS.bmp/~ ~override~
COPY ~Artemus/creature/ARTEMUS.CRE~ ~override/ARTEMUS.CRE~
  SAY NAME1 @11

// Stores

COPY ~Artemus/store/Artemus.STO~ ~override/Artemus.STO~
  SAY NAME2 @12

// Dialogues

APPEND ~STATE.IDS~ ~0x80101FEF CD_STATE_NOTVALID~ UNLESS ~CD_STATE_NOTVALID~

COMPILE
  ~Artemus/dialogue/Artemus.d~

// Dragon Scales

BEGIN ~Adding Items~ DESIGNATED 1

COPY_EXISTING ~gorsal.cre~ ~override~
ADD_CRE_ITEM ~scaler~ #0 #0 #0 ~NONE~ ~INV~

COPY_EXISTING ~dracblac.cre~ ~override~
ADD_CRE_ITEM ~scaleb~ #0 #0 #0 ~NONE~ ~INV~

//Items

COPY ~Artemus/Items/PEARMCAM.ITM~ ~override/PEARMCAM.itm~
SAY NAME1 @200
SAY NAME2 @201

COPY ~Artemus/Items/PEEPEDOG.ITM~ ~override\PEEPEDOG.itm~
SAY NAME1 @210
SAY NAME2 @211

COPY ~Artemus/Items/PEFLEALC.ITM~ ~override\PEFLEALC.itm~
SAY NAME1 @220
SAY NAME2 @221

COPY ~Artemus/Items/PEMASCUT.ITM~ ~override\PEMASCUT.itm~
SAY NAME1 @230
SAY NAME2 @231

COPY ~Artemus/Items/PEROBMAG.ITM~ ~override\PEROBMAG.itm~
SAY NAME1 @240
SAY NAME2 @241

COPY ~Artemus/Items/PESTAFLA.ITM~ ~override\PESTAFLA.itm~
SAY NAME1 @250
SAY NAME2 @251

// Scripts Extensions

EXTEND_BOTTOM ~ar0702.bcs~ ~Artemus/baf/Artemus.baf~

AT_INTERACTIVE_EXIT ~VIEW Kaya/ModKaya.txt~
 

 

Link to comment

The text "README" does not appear in this tp2. Is this the one that produced the above error debug?

But I spot something. I do assume that here:

AT_INTERACTIVE_EXIT ~VIEW Kaya/ModKaya.txt~

there is a tilda (~) at the wrong place. I guess it should be (I'm not sure how to use AT_INTERACTIVE_EXIT , though).

AT_INTERACTIVE_EXIT VIEW ~Kaya/ModKaya.txt~

Is this the readme, though? Standard is to call the readme at the beginning and also add the version number os it is displayed in the debug file - spares a lot of hassle:

VERSION ~Beta 4~ //pre
README ~c#brage/readme.c#brage.%LANGUAGE%.html~ ~readme.c#brage.english.html~

right after the AUTHOR tag.

btw: the AUTHOR  tag is supposed to give a place where people can get help if they run into install errors with your mod, it will be displayed if installation terminates due to an install error. That would be an email address or a forum link, usually. In case you weren't aware.

Link to comment

here the .d file:

 

BEGIN ~PEARTEMU~ 

    // presentation Artemus
IF ~True()~ THEN BEGIN 0 
SAY @100 
+ ~OR(4) !InParty("Jan") 
     !InMyArea("Jan") 
     StateCheck("Jan",CD_STATE_NOTVALID) 
     Global("xx_janchain_run","LOCALS",0)~ + @101 DO ~StartStore("ARTEMUSt",LastTalkedToBy(Myself))~ EXIT
+ ~OR(4) !InParty("Jan") 
     !InMyArea("Jan") 
     StateCheck("Jan",CD_STATE_NOTVALID) 
     Global("xx_janchain_run","LOCALS",0)~ + @102 + au_revoir
IF ~InParty("Jan") InMyArea("Jan") !StateCheck("Jan",CD_STATE_NOTVALID)
Global("xx_janchain_run","LOCALS",0)~ THEN DO ~SetGlobal("xx_janchain_run","LOCALS",1)~ + jan_chain
END

IF ~~ THEN au_revoir
SAY @103 
= @104 
IF ~~ THEN EXIT
END

CHAIN
IF ~~ THEN ~PEARTEMU~ jan_chain
@105
== JanJ @106
== ~Artemus~ @107
== JanJ @108
== ~Artemus~ @109
== JanJ @110
== ~Artemus~ @111
END
++ @101 DO ~StartStore("ARTEMUS",LastTalkedToBy(Myself))~ EXIT
++ @102 + au_revoir??

 

 

 

Link to comment

I’ve deleted the ?? at the end and made an install; this time another message of error:

 

 

Install Component [Mod Artemus Jansen (Necessite Throne of Bhaal)]?
nstall, or [N]ot Install or [Q]uit? 
Installing [Mod Artemus Jansen (Necessite Throne of Bhaal)]
Copying 1 file ...
[Artemus/creature/ArtemusS.bmp] loaded, 7014 bytes
override/ArtemusS.bmp copied to Artemus\backup/0/ArtemusS.bmp, 7014 bytes
Copied [Artemus/creature/ArtemusS.bmp] to [override/ArtemusS.bmp]
Copying and patching 1 file ...
[Artemus/creature/ARTEMUS.CRE] loaded, 1748 bytes
Copied [Artemus/creature/ARTEMUS.CRE] to [override/ARTEMUS.CRE]
Copying and patching 1 file ...
[Artemus/store/Artemus.STO] loaded, 464 bytes
Copied [Artemus/store/Artemus.STO] to [override/Artemus.STO]
Appending to files ...
[./override/STATE.IDS] loaded, 1611 bytes
Not appending [0x80101FEF CD_STATE_NOTVALID...] to [STATE.IDS] because it DOES contains [CD_STATE_NOTVALID]
Compiling 1 dialogue file ...
[./override/TRIGGER.IDS] loaded, 9409 bytes
[./override/ACTION.IDS] loaded, 13450 bytes
[./override/OBJECT.IDS] loaded, 1735 bytes
[./override/STATE.IDS] loaded, 1611 bytes
Processing 1 dialogues/scripts ...
Adding PEARTEMU to internal list of available DLGs
[./override/JANJ.DLG] loaded, 23415 bytes
[JANJ.DLG] loaded

ERROR locating resource for 'CHAIN3'
Resource [ARTEMUS.DLG] not found in KEY file:
    [./chitin.key]
ERROR: preprocessing APPEND_EARLY [Artemus/dialogue/Artemus.d]: Failure("resource [ARTEMUS.DLG] not found for 'CHAIN3'")
Stopping installation because of error.

ERROR Installing [Mod Artemus Jansen (Necessite Throne of Bhaal)], rolling back to previous state
Unable to Unlink [Artemus\backup/0/OTHER.0]: Unix.Unix_error(1, "unlink", "Artemus\\backup/0/OTHER.0")
[Artemus\backup/0/UNSETSTR.0] SET_STRING uninstall info not found
Will uninstall   3 files for [ARTEMUS/SETUP-ARTEMUS.TP2] component 0.
  Restoring backed-up [Artemus\backup/0/ArtemusS.bmp]
Artemus\backup/0/ArtemusS.bmp copied to override/ArtemusS.bmp, 7014 bytes
Uninstalled      3 files for [ARTEMUS/SETUP-ARTEMUS.TP2] component 0.
Unable to Unlink [Artemus\backup/0/READLN.0]: Unix.Unix_error(20, "unlink", "Artemus\\backup/0/READLN.0")
Unable to Unlink [Artemus\backup/0/READLN.0.TEXT]: Unix.Unix_error(20, "unlink", "Artemus\\backup/0/READLN.0.TEXT")

Link to comment

Dear Jastey, I’ve made the modifications, but here I had yet another message of error…

 

Here the dialog file:  ARTEMUS.d   (in the dialogue folder)

BEGIN ~PEARTEMU~ 

    // presentation Artemus
IF ~True()~ THEN BEGIN 0 
SAY @100 
+ ~OR(4) !InParty("Jan") 
     !InMyArea("Jan") 
     StateCheck("Jan",CD_STATE_NOTVALID) 
     Global("xx_janchain_run","LOCALS",0)~ + @101 DO ~StartStore("ARTEMUS",LastTalkedToBy(Myself))~ EXIT
+ ~OR(4) !InParty("Jan") 
     !InMyArea("Jan") 
     StateCheck("Jan",CD_STATE_NOTVALID) 
     Global("xx_janchain_run","LOCALS",0)~ + @102 + au_revoir
IF ~InParty("Jan") InMyArea("Jan") !StateCheck("Jan",CD_STATE_NOTVALID)
Global("xx_janchain_run","LOCALS",0)~ THEN DO ~SetGlobal("xx_janchain_run","LOCALS",1)~ + jan_chain
END

IF ~~ THEN au_revoir
SAY @103 
= @104 
IF ~~ THEN EXIT
END

CHAIN
IF ~~ THEN ~PEARTEMU~ jan_chain
@105
== JanJ @106
== ~Artemus~ @107
== JanJ @108
== ~Artemus~ @109
== JanJ @110
== ~Artemus~ @111
END
++ @101 DO ~StartStore("ARTEMUS",LastTalkedToBy(Myself))~ EXIT
++ @102 + au_revoir??

 

 

And the DEBUG file (SETUP-ARTEMUS.DEBUG):

Install Component [Mod Artemus Jansen (Necessite Throne of Bhaal)]?
nstall, or [N]ot Install or [Q]uit? 
Installing [Mod Artemus Jansen (Necessite Throne of Bhaal)]
Copying 1 file ...
[Artemus/creature/ArtemusS.bmp] loaded, 7014 bytes
override/ArtemusS.bmp copied to Artemus\backup/0/ArtemusS.bmp, 7014 bytes
Copied [Artemus/creature/ArtemusS.bmp] to [override/ArtemusS.bmp]
Copying and patching 1 file ...
[Artemus/creature/ARTEMUS.CRE] loaded, 1748 bytes
Copied [Artemus/creature/ARTEMUS.CRE] to [override/ARTEMUS.CRE]
Copying and patching 1 file ...
[Artemus/store/Artemus.STO] loaded, 464 bytes
Copied [Artemus/store/Artemus.STO] to [override/Artemus.STO]
Appending to files ...
[./override/STATE.IDS] loaded, 1611 bytes
Not appending [0x80101FEF CD_STATE_NOTVALID...] to [STATE.IDS] because it DOES contains [CD_STATE_NOTVALID]
Compiling 1 dialogue file ...
[./override/TRIGGER.IDS] loaded, 9409 bytes
[./override/ACTION.IDS] loaded, 13450 bytes
[./override/OBJECT.IDS] loaded, 1735 bytes
[./override/STATE.IDS] loaded, 1611 bytes

[Artemus/dialogue/ARTEMUS.d] LEXER ERROR at line 35 column 1-19
Near Text: ?
    invalid character [?]

[Artemus/dialogue/ARTEMUS.d]  ERROR at line 35 column 1-19
Near Text: ?
    Parsing.Parse_error
ERROR: parsing [Artemus/dialogue/ARTEMUS.d]: Parsing.Parse_error
ERROR: compiling [Artemus/dialogue/ARTEMUS.d]!
Stopping installation because of error.

ERROR Installing [Mod Artemus Jansen (Necessite Throne of Bhaal)], rolling back to previous state
Unable to Unlink [Artemus\backup/0/OTHER.0]: Unix.Unix_error(1, "unlink", "Artemus\\backup/0/OTHER.0")
[Artemus\backup/0/UNSETSTR.0] SET_STRING uninstall info not found
Will uninstall   3 files for [ARTEMUS/SETUP-ARTEMUS.TP2] component 0.
  Restoring backed-up [Artemus\backup/0/ArtemusS.bmp]
Artemus\backup/0/ArtemusS.bmp copied to override/ArtemusS.bmp, 7014 bytes
Uninstalled      3 files for [ARTEMUS/SETUP-ARTEMUS.TP2] component 0.
Unable to Unlink [Artemus\backup/0/READLN.0]: Unix.Unix_error(20, "unlink", "Artemus\\backup/0/READLN.0")
Unable to Unlink [Artemus\backup/0/READLN.0.TEXT]: Unix.Unix_error(20, "unlink", "Artemus\\backup/0/READLN.0.TEXT")

Link to comment

Join the conversation

You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...