Skip to content

Is there anyone here?

karnagekarnage Member Posts: 92
I stick to old games and I do like to mod, though I'm generally years behind everyone else, and such is the case here.

I've attempted my first mod but can't compile. I'm hoping there are modders here who can help me out?

Comments

  • CrevsDaakCrevsDaak Member Posts: 7,155
    @mlnevese what I understood is that he had trouble creating a mod :P

    Try with 1) the latest version of WeiDU (there is a link by CamDawg in one of the links @mlnevese posted). 2) If you are having problems compiling a determinate file type, if it is a BCS, NearInfinity is the best option, for everything else, you have DLTCEP.
  • mlnevesemlnevese Member, Moderator Posts: 10,214
    @crevsdaak The bg ee mods link has a modding tutorials section as well... and it's good to take a look on how other mods works anyway :)
  • karnagekarnage Member Posts: 92
    I was very cryptic and brief because most of the threads and forums I have found are dead. I didn't want to waste typing space, LoL.

    This is my very (very) first attempt at creating any kind of mod for BGII, other than user AI scripts for PCs.

    THANKS guys for a quick response and for offering your assistance to a rank amateur!

    ---------------------------------------------------------------------------------
    Okay, I am trying to add an NPC called "Vondo". I am, for the most part, following directions found here:

    http://forums.pocketplane.net/index.php?PHPSESSID=824d9d8ff304425354b3e3760fb792eb&topic=52.0

    Using this .tp2 script:

    BACKUP ~zkwmodvondo\backup~
    AUTHOR ~ghreyfain@pocketplane.net~ // dead email
    BEGIN ~Vondo the NPC for BG2:ToB~


    // The following is the copying of Vondo's .cre file, as well as assigning his sound-set. See the file sndslot.ids for a listing of sounds you can add.

    COPY ~zkwmodvondo\J#Vondo.cre~ ~override\J#Vondo.cre~
    SAY NAME1 ~Vondo~
    SAY NAME2 ~Vondo~
    SAY SELECT_COMMON4 ~Blah blah blah.~ [Vondo1] // [Vondo1] is the name of the .wav
    SAY SELECT_COMMON5 ~Give the word.~ [Vondo2]
    SAY SELECT_COMMON6 ~Point the way.~ [Vondo3]
    SAY SELECT_ACTION1 ~I'm on the job.~ [Vondo4]
    SAY SELECT_ACTION2 ~As you wish.~ [Vondo5]

    // The following is telling WeiDU to compile the following .d files

    COMPILE ~zkwmodvondo\J#Vondo.d~

    // The following is compilling the script and placing it in the override. We haven't actually made a script yet, though, so this isn't necessary. (I have, but that's not the problem .... )

    COMPILE ~zkwmodvondo\J#Vondo.baf~

    // The following is appending what we wrote in AR1000.baf to the bottom of
    // AR1000.bcs

    EXTEND_TOP ~Ar1000.bcs~ ~zkwmodvondo\ar1000.baf~

    -------------------------------------------------------------------------------

    I am getting THIS in my .DEBUG file:


    WeiDU v 23600 Log

    C:\BG2\ZKWMODSETUP.EXE
    [./CHITIN.KEY] loaded, 590551 bytes
    [./CHITIN.KEY] 182 BIFFs, 41793 resources
    [./Autorun.ini] loaded, 1452 bytes
    [./baldur.ini] loaded, 3577 bytes
    Possible HD/CD Path: [C:\BG2\]
    Possible HD/CD Path: [C:\BG2\English]
    Possible HD/CD Path: [C:\BG2\CD1]
    Possible HD/CD Path: [C:\BG2\CD2]
    Possible HD/CD Path: [C:\BG2\English]
    Possible HD/CD Path: [C:\BG2\CD2]
    Possible HD/CD Path: [C:\BG2\English]
    Possible HD/CD Path: [C:\BG2\CD3]
    Possible HD/CD Path: [C:\BG2\English]
    Possible HD/CD Path: [C:\BG2\CD4]
    Possible HD/CD Path: [C:\BG2\CD5]
    [./desktop.ini] loaded, 51 bytes
    [./Keymap.ini] loaded, 5615 bytes
    [./Mplaynow.ini] loaded, 230 bytes
    [./dialog.tlk] loaded, 8692747 bytes
    [./dialog.tlk] 74107 string entries

    Install Component [Vondo the NPC for BG2:ToB]?
    [I]nstall, or [N]ot Install or [Q]uit?
    Installing [Vondo the NPC for BG2:ToB]
    Copying and patching 1 file ...
    ERROR: error loading [zkwmodvondo\J#Vondo.cre]
    Stopping installation because of error.

    ERROR Installing [Vondo the NPC for BG2:ToB], rolling back to previous state
    Unable to Unlink [zkwmodvondo\backup/0/OTHER.0]: Unix.Unix_error(1, "unlink", "zkwmodvondo\\backup/0/OTHER.0")
    [zkwmodvondo\backup/0/UNSETSTR.0] SET_STRING uninstall info not found
    Will uninstall 0 files for [ZKWMODSETUP.TP2] component 0.
    Uninstalled 0 files for [ZKWMODSETUP.TP2] component 0.
    Unable to Unlink [zkwmodvondo\backup/0/READLN.0]: Unix.Unix_error(20, "unlink", "zkwmodvondo\\backup/0/READLN.0")
    Unable to Unlink [zkwmodvondo\backup/0/READLN.0.TEXT]: Unix.Unix_error(20, "unlink", "zkwmodvondo\\backup/0/READLN.0.TEXT")
    ERROR: Unix.Unix_error(20, "stat", "zkwmodvondo\\J#Vondo.cre")
    PLEASE email the file ZKWMODSETUP.DEBUG to ghreyfain@pocketplane.net

    Install Component [Vondo the NPC for BG2:ToB]?
    [I]nstall, or [N]ot Install or [Q]uit? Saving This Log:

    NOT INSTALLED DUE TO ERRORS Vondo the NPC for BG2:ToB

    WeiDU Timings
    OUTER_INNER_PATCH_SAVE 0.000
    <<<<<<<< 0.000
    load TLK 0.000
    tp2 uninstall 0.000
    DEFINE_PATCH_FUNCTION 0.000
    DEFINE_ACTION_FUNCTION 0.000
    OUTER_SET 0.000
    INCLUDE 0.000
    parsing .log files 0.000
    Parsing TP2 files 0.000
    eval_pe 0.000
    DEFINE_ACTION_MACRO 0.000
    OUTER_INNER_PATCH 0.000
    READ_* 0.000
    loading files 0.000
    DEFINE_PATCH_MACRO 0.000
    COPY 0.000
    process_patch2 0.016
    unmarshal KEY 0.047
    stuff not covered elsewhere 0.062
    unmarshal TLK 0.062
    Parsing TPA files 0.094
    TOTAL 0.281


    ----------

    I can "cheat" Vondo into the game and by compiling the dialogue and other files independently from the DOS prompt, and he appears just fine and acts as he is scripted to act. The last glitch I have with that is that Vondo does not have a name and I can't give him one.

    I can't seem to use WeiDU to compile into the AR1000.BCS file independent of the TP2 file as I have been able to with the .d and other files.
  • karnagekarnage Member Posts: 92
    (This is BGII Soa btw)
  • karnagekarnage Member Posts: 92
    (I have the latest WeiDU, v. 63-something)
  • karnagekarnage Member Posts: 92
    Hey, nevermind every bit of this, the issue was so simple and obvious, it is absolutely embarassing!

    Incorrect filenames; the filenames in my .tp2 file did not match the true filenames, LoL.

    But now, I have a different problem.

    Permission is denied to dialog.tlk; I have ran DOS command attrib -r -s on both the parent folder and the file to no avail. Windows (Vista) still shows "read only" attribute for my main folder but not for dialog.tlk; and I am not installed in the "Programs" folder.

    Ideas?
  • karnagekarnage Member Posts: 92
    Moving to modding forum with my questions. Thanks for a warm welcome. I believe I will enjoy my time here.
  • CrevsDaakCrevsDaak Member Posts: 7,155
    @karnage I were never able of doing an NPC, but I will see how I can help.
    karnage said:



    COMPILE ~zkwmodvondo\J#Vondo.d~

    // The following is compilling the script and placing it in the override. We haven't actually made a script yet, though, so this isn't necessary. (I have, but that's not the problem .... )

    COMPILE ~zkwmodvondo\J#Vondo.baf~

    // The following is appending what we wrote in AR1000.baf to the bottom of
    // AR1000.bcs

    EXTEND_TOP ~Ar1000.bcs~ ~zkwmodvondo\ar1000.baf~

    I think you should use EXTEND_BOTTOM, but I am not very sure.
    You can use this read me to see what you have wrong or just to read it.

    @mlnevese totally agreed, it helps a lot, but I thought you've misunderstood the question :)
  • WispWisp Member Posts: 1,102
    CrevsDaak said:


    I think you should use EXTEND_BOTTOM, but I am not very sure.

    Rule of thumb: unless you know you need EXTEND_TOP and take proper precautions, you should use EXTEND_BOTTOM.
  • karnagekarnage Member Posts: 92
    Thank you!
Sign In or Register to comment.