Author Topic: What in the nine hells is a unix error? (Now TWO additional questions!)  (Read 6311 times)

Offline Zycopath

  • Planewalker
  • *****
  • Posts: 21
First of all, hello everyone. I'm new to modding (created my first joinable NPC earlier today) and even newer to these boards and I must say that the tutorials are worth their virtual weight in gold. Many thanks to those responsible  :)

Anyway, I'm trying to create a kit and while things are going smoother then expected I've run into a problem while trying to WeiDu-install it. I get to pick what to install and it starts appending and copying files, then... I get this:

ERROR: error loading [zGhost/zghostab.2da]
Stopping installation because of error.
Stopping installation because of error.

ERROR Installing [Ghost Kit], rolling back to previous state
Will uninstall   6 files for [SETUP-ZGHOST.TP2] component 0.
Uninstalled      6 files for [SETUP-ZGHOST.TP2] component 0.
ERROR: Unix.Unix_error(20, "stat", "zGhost/zghostab.2da")
PLEASE email the file SETUP-ZGHOST.DEBUG to Zykopat@gmail.com

Since I doubt mailing the debug file to myself will do much good I'm hoping for some advice. Please?  :-\
« Last Edit: February 21, 2007, 05:18:53 AM by Zycopath »

Offline the bigg

  • The Avatar of Fighter / Thieves
  • Planewalker
  • *****
  • Posts: 3804
  • Gender: Male
Re: What in the nine hells is a unix error?
« Reply #1 on: February 19, 2007, 05:00:22 PM »
Unix.Unix_error(20,blah blak) usually means that the file named there is missing.
Author or Co-Author: WeiDU (http://j.mp/bLtjOn) - Widescreen (http://j.mp/aKAiqG) - Generalized Biffing (http://j.mp/aVgw3U) - Refinements (http://j.mp/bLHoCc) - TB#Tweaks (http://j.mp/ba02Eg) - IWD2Tweaks (http://j.mp/98OFYY) - TB#Characters (http://j.mp/ak8J55) - Traify Tool (http://j.mp/g1Ry9A) - Some mods that I won't mention in public
Maintainer: Semi-Multi Clerics (http://j.mp/9UeIwB) - Nalia Mod (http://j.mp/dng9l0) - Nvidia Fix (http://j.mp/aRWjjg)
Code dumps: Detect custom secondary types (http://j.mp/hVzzXG) - Stutter Investigator (http://j.mp/gdtBn8)

If possible, send diffs, translations and other contributions using Git (http://j.mp/aBZFrq).

Offline Zycopath

  • Planewalker
  • *****
  • Posts: 21
Re: What in the nine hells is a unix error?
« Reply #2 on: February 19, 2007, 05:05:27 PM »
That's... odd. 'Cause I'm pretty sure the file is there. Let's see... if I write zGhost/ghostab.2da in the setup.tp2 (placed in BG2 main) it should go into the map zGhost (which exists) and search for the file ghostab.2da (which exist).

I'm afraid I'm still drowning in the sea of Modding. More help would be nice.

And thanks for the advice, bigg. Considering my extremly low experience with this stuff I'm sure you'll end up being right and I'll end up looking stupid  :P
« Last Edit: February 19, 2007, 05:08:06 PM by Zycopath »

Offline the bigg

  • The Avatar of Fighter / Thieves
  • Planewalker
  • *****
  • Posts: 3804
  • Gender: Male
Re: What in the nine hells is a unix error?
« Reply #3 on: February 19, 2007, 05:07:05 PM »
it's zghostab.2da in the error message, not ghostab.2da. perhaps that's the error  :)
Author or Co-Author: WeiDU (http://j.mp/bLtjOn) - Widescreen (http://j.mp/aKAiqG) - Generalized Biffing (http://j.mp/aVgw3U) - Refinements (http://j.mp/bLHoCc) - TB#Tweaks (http://j.mp/ba02Eg) - IWD2Tweaks (http://j.mp/98OFYY) - TB#Characters (http://j.mp/ak8J55) - Traify Tool (http://j.mp/g1Ry9A) - Some mods that I won't mention in public
Maintainer: Semi-Multi Clerics (http://j.mp/9UeIwB) - Nalia Mod (http://j.mp/dng9l0) - Nvidia Fix (http://j.mp/aRWjjg)
Code dumps: Detect custom secondary types (http://j.mp/hVzzXG) - Stutter Investigator (http://j.mp/gdtBn8)

If possible, send diffs, translations and other contributions using Git (http://j.mp/aBZFrq).

Offline Zycopath

  • Planewalker
  • *****
  • Posts: 21
Re: What in the nine hells is a unix error?
« Reply #4 on: February 19, 2007, 05:11:03 PM »
I realized that while waiting for more replies   :-[ ...

Now it's working and look at this, you DID end up being right and I DID end up looking stupid. Oh well, now I'll go check out if it's actually working in the game. Thanks again.

Offline Zycopath

  • Planewalker
  • *****
  • Posts: 21
Re: What in the nine hells is a unix error?
« Reply #5 on: February 19, 2007, 05:40:55 PM »
Okay, this is no longer about the unix error but it feels wrong to start another thread half an hour after the first one so I'm putting it here and hopes somebody read it.

After some work I got the install to work and my kit shows up under thief in the character creation (it really shouldn't be there as it's a NPC-only kit but I put it there to see if it even worked). However, when I pick the kit and start the game my char is nothing but a common thief, no sign of the kit in-game. I once again wish to partake in your collective wisdom, oh forumites.

Offline the bigg

  • The Avatar of Fighter / Thieves
  • Planewalker
  • *****
  • Posts: 3804
  • Gender: Male
Re: What in the nine hells is a unix error?
« Reply #6 on: February 19, 2007, 05:45:52 PM »
After some work I got the install to work and my kit shows up under thief in the character creation (it really shouldn't be there as it's a NPC-only kit but I put it there to see if it even worked).
If that was a question, you should have a line looking like ~K_H_T K_E_T [etc]~ in your tp2. Simply change it to an empty string (~~).

Quote
However, when I pick the kit and start the game my char is nothing but a common thief, no sign of the kit in-game.
Probably you didn't set correctly the kit name lines. Can you paste here your code?
Author or Co-Author: WeiDU (http://j.mp/bLtjOn) - Widescreen (http://j.mp/aKAiqG) - Generalized Biffing (http://j.mp/aVgw3U) - Refinements (http://j.mp/bLHoCc) - TB#Tweaks (http://j.mp/ba02Eg) - IWD2Tweaks (http://j.mp/98OFYY) - TB#Characters (http://j.mp/ak8J55) - Traify Tool (http://j.mp/g1Ry9A) - Some mods that I won't mention in public
Maintainer: Semi-Multi Clerics (http://j.mp/9UeIwB) - Nalia Mod (http://j.mp/dng9l0) - Nvidia Fix (http://j.mp/aRWjjg)
Code dumps: Detect custom secondary types (http://j.mp/hVzzXG) - Stutter Investigator (http://j.mp/gdtBn8)

If possible, send diffs, translations and other contributions using Git (http://j.mp/aBZFrq).

Offline Zycopath

  • Planewalker
  • *****
  • Posts: 21
Re: What in the nine hells is a unix error?
« Reply #7 on: February 19, 2007, 05:52:47 PM »
After some work I got the install to work and my kit shows up under thief in the character creation (it really shouldn't be there as it's a NPC-only kit but I put it there to see if it even worked).
If that was a question, you should have a line looking like ~K_H_T K_E_T [etc]~ in your tp2. Simply change it to an empty string (~~).

It wasn't. I used an empty string at first but then the kit didn't show up anywhere so I added K_H_T to see if the installation did anything at all.

Quote
However, when I pick the kit and start the game my char is nothing but a common thief, no sign of the kit in-game.
Probably you didn't set correctly the kit name lines. Can you paste here your code?
[/quote]

Sure thing...
Quote
BACKUP ~zGhost/backup~
AUTHOR ~Zykopat@gmail.com~

BEGIN ~zghost~

ADD_KIT ~zghost~


  ~zghost                0           0           0           0           0           0           0           0~

  ~zghost 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0~

  ~zghost                -5       +5       -5       0       0       0~

  ~zghost                0       0       0       0       0       0~
 
  ~zghost                0       0       0       0       0      0~

  ~zghost                0       0       0       0       0      0~

  ~zghost                1       1       1       1       1       1       1       1       1~

  ~zghost                0       0       0       0       0       0~

~zGhost/zghosta.tp2~

  ~K_T_H~

~0x00000004 2~

~C!3~

~* * * * * * * * * * * * * * * * * * * *~


  SAY ~Ghost~
  SAY ~Ghost~
  SAY ~GHOST: This poor soul must have died a violent and horrible death and because of this he is denied the pleasures of the afterlife and doomed to haunt the realms until he achives inner peace~

Offline the bigg

  • The Avatar of Fighter / Thieves
  • Planewalker
  • *****
  • Posts: 3804
  • Gender: Male
The strings section looks fine, so the name should show up. However, you may want to add weapon proficiencies, rename the ability file from .tp2 to .2da, and move the lines with stats modifiers to the proper place (swap it with the one below). Perhaps BG2 is hating you because it cannot find some file, or due to invalid values. I cannot even run BG2, so I can't confirm this for you, sadly  :(
Author or Co-Author: WeiDU (http://j.mp/bLtjOn) - Widescreen (http://j.mp/aKAiqG) - Generalized Biffing (http://j.mp/aVgw3U) - Refinements (http://j.mp/bLHoCc) - TB#Tweaks (http://j.mp/ba02Eg) - IWD2Tweaks (http://j.mp/98OFYY) - TB#Characters (http://j.mp/ak8J55) - Traify Tool (http://j.mp/g1Ry9A) - Some mods that I won't mention in public
Maintainer: Semi-Multi Clerics (http://j.mp/9UeIwB) - Nalia Mod (http://j.mp/dng9l0) - Nvidia Fix (http://j.mp/aRWjjg)
Code dumps: Detect custom secondary types (http://j.mp/hVzzXG) - Stutter Investigator (http://j.mp/gdtBn8)

If possible, send diffs, translations and other contributions using Git (http://j.mp/aBZFrq).

Offline Zycopath

  • Planewalker
  • *****
  • Posts: 21
I've skipped the profs on purpose. I'll try the rest though. Thanks once again.

EDIT: Yep. Looks like the game hates me for some reason. I fixed the stuff you mentioned but it still doesn't work and I have no clue on what the problem is. Could it be in the .2da-file?

EDIT2: I just noted something else that might be hint (or not) to someone. While it is possible to pick the kit in char creation the info between the buttons and the portrait shows him as an ordinary thief right after I select it.
« Last Edit: February 19, 2007, 06:23:54 PM by Zycopath »

Offline Rabain

  • Planewalker
  • *****
  • Posts: 281
  • Gender: Male
  • Luck o' the Irish!
Re: What in the nine hells is a unix error? (Now with additional question!)
« Reply #10 on: February 20, 2007, 06:43:13 AM »
You should post your what your tp2 file looks like now.

As far as I am aware so long as your 2da exists at install there should be no problem with selecting the kit.  If the 2da doesn't work properly it just means you won't gain any of the abilities listed in it or it won't work as you intended.

I don't think weidu parses the 2da to make sure if it is setup correctly. "the bigg" can answer that one though.

Touchstone: Wild Elf Fighter
BG2CPM: Dialog Portraits for Everyone!
WTPFamiliars: A new version of the Find Familiar Spell
All at: Border Kingdoms

Offline Zycopath

  • Planewalker
  • *****
  • Posts: 21
Re: What in the nine hells is a unix error? (Now with additional question!)
« Reply #11 on: February 20, 2007, 06:49:37 AM »
Behold my tp2-file in all it's unholy glory!

Quote
BACKUP ~zGhost/backup~
AUTHOR ~Zykopat@gmail.com~

BEGIN ~zghost~

ADD_KIT ~zghost~


  ~zghost                0           0           0           0           0           0           0           0~

  ~zghost 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0~

  ~zghost                0       0       0       0       0       0~

  ~zghost                0       0       0       0       0       0~
 
  ~zghost                0       0       0       0       0      0~

  ~zghost                0       0       0       0       0      0~

  ~zghost                1       1       1       1       1       1       1       1       1~

  ~zghost                0       0       0       0       0       0~

~zGhost/zghosta.2da~

  ~K_T_H~

~0x00000004 2~

~C!3~

~* * * * * * * * * * * * * * * * * * * *~


  SAY ~Ghost~
  SAY ~Ghost~
  SAY ~GHOST: This poor soul must have died a violent and horrible death and because of this he is denied the pleasures of the afterlife and doomed to haunt the realms until he achives inner peace~


Offline the bigg

  • The Avatar of Fighter / Thieves
  • Planewalker
  • *****
  • Posts: 3804
  • Gender: Male
Re: What in the nine hells is a unix error? (Now with additional question!)
« Reply #12 on: February 20, 2007, 07:11:12 AM »
BACKUP ~zGhost/backup~
AUTHOR ~Zykopat@gmail.com~

BEGIN ~zghost~

ADD_KIT ~zghost~


  ~zghost                0           0           0           0           0           0           0           0~

  ~zghost 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0~

  ~zghost                0       0       0       0       0       0~

  ~zghost                0       0       0       0       0       0~
 
  ~zghost                0       0       0       0       0      0~

  ~zghost                0       0       0       0       0      0~

  ~zghost                1       1       1       1       1       1       1       1       1~

  ~zghost                0       0       0       0       0       0~

~zGhost/zghosta.2da~

  ~K_T_H~

~0x00000004 2~

~C!3~

~* * * * * * * * * * * * * * * * * * * *~


  SAY ~Ghost~
  SAY ~Ghost~
  SAY ~GHOST: This poor soul must have died a violent and horrible death and because of this he is denied the pleasures of the afterlife and doomed to haunt the realms until he achives inner peace~
The unusabilities you gave him are those of Fighter (Kensai kit, to be specific). As such, you have to declare the kit as a fighter kit (K_H_F rather than K_H_T), otherwise the game will crap out and use the base class (as you described).
Author or Co-Author: WeiDU (http://j.mp/bLtjOn) - Widescreen (http://j.mp/aKAiqG) - Generalized Biffing (http://j.mp/aVgw3U) - Refinements (http://j.mp/bLHoCc) - TB#Tweaks (http://j.mp/ba02Eg) - IWD2Tweaks (http://j.mp/98OFYY) - TB#Characters (http://j.mp/ak8J55) - Traify Tool (http://j.mp/g1Ry9A) - Some mods that I won't mention in public
Maintainer: Semi-Multi Clerics (http://j.mp/9UeIwB) - Nalia Mod (http://j.mp/dng9l0) - Nvidia Fix (http://j.mp/aRWjjg)
Code dumps: Detect custom secondary types (http://j.mp/hVzzXG) - Stutter Investigator (http://j.mp/gdtBn8)

If possible, send diffs, translations and other contributions using Git (http://j.mp/aBZFrq).

Offline Zycopath

  • Planewalker
  • *****
  • Posts: 21
Re: What in the nine hells is a unix error? (Now with additional question!)
« Reply #13 on: February 20, 2007, 07:22:40 AM »
I see. I gave him the kensai-restrictions 'cause I didn't want him to use armors. Didn't know it had to be compatible with the the base class. I'll try some changes and pray to all avalible gods that it'll work. Thanks.

Offline the bigg

  • The Avatar of Fighter / Thieves
  • Planewalker
  • *****
  • Posts: 3804
  • Gender: Male
Re: What in the nine hells is a unix error? (Now with additional question!)
« Reply #14 on: February 20, 2007, 07:24:31 AM »
You can add the kit unusabilities from multiple kits and/or mix with any class. In your case, use Kensai kit + Thief class, resulting in ~0x00000004 4~.
Author or Co-Author: WeiDU (http://j.mp/bLtjOn) - Widescreen (http://j.mp/aKAiqG) - Generalized Biffing (http://j.mp/aVgw3U) - Refinements (http://j.mp/bLHoCc) - TB#Tweaks (http://j.mp/ba02Eg) - IWD2Tweaks (http://j.mp/98OFYY) - TB#Characters (http://j.mp/ak8J55) - Traify Tool (http://j.mp/g1Ry9A) - Some mods that I won't mention in public
Maintainer: Semi-Multi Clerics (http://j.mp/9UeIwB) - Nalia Mod (http://j.mp/dng9l0) - Nvidia Fix (http://j.mp/aRWjjg)
Code dumps: Detect custom secondary types (http://j.mp/hVzzXG) - Stutter Investigator (http://j.mp/gdtBn8)

If possible, send diffs, translations and other contributions using Git (http://j.mp/aBZFrq).

Offline Zycopath

  • Planewalker
  • *****
  • Posts: 21
Re: What in the nine hells is a unix error? (Now with additional question!)
« Reply #15 on: February 20, 2007, 10:51:30 AM »
Great, now everything's working with the exeption of the innate abilities which I'm still messing around with.

Offline Zycopath

  • Planewalker
  • *****
  • Posts: 21
Re: What in the nine hells is a unix error? (Now TWO additional questions!)
« Reply #16 on: February 21, 2007, 05:26:30 AM »
I'm afraid I'm once again in need of advice (the tutorials are great but they don't cover everything), this time regarding the duration of spells/innate abilities. The kit I'm working on is going to have a few permanent abilities. The first one I added was a Blur-variant with the only difference from Blur being that it's permanent (can they still be dispelled btw?) and after a while it worked like a charm. Then I tried to do the exact same thing to Chill Touch but when I set duration to permanent and "Check Effect" it just says "Useless Duration" and doesn't work in the game. So... what's my problem?

And while I'm on the subject I've got another question, what happens if I manage to get Chill Touch permanently applied and then wishes to apply another permanent spell that "transform" the chars hands (say Ghoul Touch) on a higher level? Does it simply override the Chill Touch, does it cause some sort of error or will it just don't work?

bigg-uni

  • Guest
Re: What in the nine hells is a unix error? (Now TWO additional questions!)
« Reply #17 on: February 21, 2007, 07:42:17 AM »
I'm afraid I'm once again in need of advice (the tutorials are great but they don't cover everything), this time regarding the duration of spells/innate abilities. The kit I'm working on is going to have a few permanent abilities. The first one I added was a Blur-variant with the only difference from Blur being that it's permanent (can they still be dispelled btw?) and after a while it worked like a charm.
There's a setting to resist dispell and ignore magic resistance.
Quote
Then I tried to do the exact same thing to Chill Touch but when I set duration to permanent and "Check Effect" it just says "Useless Duration" and doesn't work in the game. So... what's my problem?
Use a spell that gives him the hand item, rather than editing the C.T. spell

Quote
And while I'm on the subject I've got another question, what happens if I manage to get Chill Touch permanently applied and then wishes to apply another permanent spell that "transform" the chars hands (say Ghoul Touch) on a higher level? Does it simply override the Chill Touch, does it cause some sort of error or will it just don't work?
Not sure; you might want to look in how the Monks hands work though  :)

Offline Zycopath

  • Planewalker
  • *****
  • Posts: 21
Re: What in the nine hells is a unix error? (Now TWO additional questions!)
« Reply #18 on: February 21, 2007, 09:36:11 AM »
Quote
Use a spell that gives him the hand item, rather than editing the C.T. spell

That sounds good. I'll look into the monk thing as well.

Offline Zycopath

  • Planewalker
  • *****
  • Posts: 21
Re: What in the nine hells is a unix error? (Now TWO additional questions!)
« Reply #19 on: February 21, 2007, 01:06:00 PM »
I've created an item with the wanted look and effect but I can't figure out how to make the spell to give the item, I tried using the Create Item in Slot effect to create the item in a weapon slot but that doesn't seem to work at all (either that or I'm doing it all wrong).

Offline Rabain

  • Planewalker
  • *****
  • Posts: 281
  • Gender: Male
  • Luck o' the Irish!
Re: What in the nine hells is a unix error? (Now TWO additional questions!)
« Reply #20 on: February 21, 2007, 01:11:35 PM »
Taking a look at the Spell "Chill Touch" it uses Create Magical Weapon.  I assume what this does is replace all weapons with a "Chill Touch" item in the weapon slot (item is called CHILLT).

So in this instance you want to load up Chill Touch spell and in the effect replace CHILLT with your item name and then save the spell with a different filename.

Touchstone: Wild Elf Fighter
BG2CPM: Dialog Portraits for Everyone!
WTPFamiliars: A new version of the Find Familiar Spell
All at: Border Kingdoms

Offline Zycopath

  • Planewalker
  • *****
  • Posts: 21
Re: What in the nine hells is a unix error? (Now TWO additional questions!)
« Reply #21 on: February 21, 2007, 01:16:04 PM »
The problem is that it's Chill's Create Magical Weapon I can't get permanent, it just results in the "Useless Duration".

EDIT:
I don't get what's wrong. Now I've got a customized spell to Create Magical Weapon (set to permanent) and the customized Chill Touch it creates (set to permanent as well as Don't Vanish which I'm not sure what it does) but it still doesn't work. I get the Chill Touch but after a few rounds it's gone.
« Last Edit: February 21, 2007, 02:47:44 PM by Zycopath »

Offline Rabain

  • Planewalker
  • *****
  • Posts: 281
  • Gender: Male
  • Luck o' the Irish!
Re: What in the nine hells is a unix error? (Now TWO additional questions!)
« Reply #22 on: February 21, 2007, 03:56:21 PM »
It might be that that Effect is hardcoded to require a Duration as I get the same thing!  Changing the Effect to another type that creates items allows you to select Permanent duration with no entry required in Time for duration.

The only way I can get Create Magical Item to work is if the Duration Time is 0.  I don't know if that means the weapon applies and then immediately ceases, I don't have time to test.

Try setting Duration to Permanent and beside that change the Duration Time (N/A field in DLTCEP) to 0.
Touchstone: Wild Elf Fighter
BG2CPM: Dialog Portraits for Everyone!
WTPFamiliars: A new version of the Find Familiar Spell
All at: Border Kingdoms

Offline Zycopath

  • Planewalker
  • *****
  • Posts: 21
Re: What in the nine hells is a unix error? (Now TWO additional questions!)
« Reply #23 on: February 22, 2007, 04:58:41 AM »
I've been messing around with spells and items nonstop for a few hours now but it just won't work. I seems wierd that getting permanent blur is far easier then I expected but getting permanent Chill Touch is goddamn impossible. Well, the positive side is that I'm learning more about basic modding for every stupid friggin' mistake.  ::)

I'm starting to realize that making this kit my first modding project might be a little over my head. No way I'm quitting now though, if I stop posting it's likely because I finally lost my temper and killed the computer. (I'm perfectly sane by the way. I really am!  :P)

Offline Rabain

  • Planewalker
  • *****
  • Posts: 281
  • Gender: Male
  • Luck o' the Irish!
Re: What in the nine hells is a unix error? (Now TWO additional questions!)
« Reply #24 on: February 22, 2007, 06:40:41 AM »
If you are using this kit for a playable npc do you really want to use CreateMagicalWeapon() as this will mean you cannot equip any other weapons at all.

If you do then why not just place the CHILLT item in the weapon slot of the cre file you are using for the npc. This way you don't have to worry about the duration etc as the Chill Touch item will be part and parcel of the npc.

The only downside of this is that it will not work if you are trying to use it as a Kit for the player.

You will need to create an actual npc that can join the party and assign the kit to it in your tp2.
« Last Edit: February 22, 2007, 06:42:44 AM by Rabain »
Touchstone: Wild Elf Fighter
BG2CPM: Dialog Portraits for Everyone!
WTPFamiliars: A new version of the Find Familiar Spell
All at: Border Kingdoms

 

With Quick-Reply you can write a post when viewing a topic without loading a new page. You can still use bulletin board code and smileys as you would in a normal post.

Warning: this topic has not been posted in for at least 120 days.
Unless you're sure you want to reply, please consider starting a new topic.

Name: Email:
Verification:
Type the letters shown in the picture
Listen to the letters / Request another image
Type the letters shown in the picture:
What color is grass?:
What is the seventh word in this sentence?:
What is five minus two (use the full word)?: