Pocket Plane Group

Miscellany, Inc. => Infinity Engine Modding Q&A => Topic started by: Zycopath on February 19, 2007, 04:57:25 PM

Title: What in the nine hells is a unix error? (Now TWO additional questions!)
Post by: Zycopath on February 19, 2007, 04:57:25 PM
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?  :-\
Title: Re: What in the nine hells is a unix error?
Post by: the bigg on February 19, 2007, 05:00:22 PM
Unix.Unix_error(20,blah blak) usually means that the file named there is missing.
Title: Re: What in the nine hells is a unix error?
Post by: Zycopath 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
Title: Re: What in the nine hells is a unix error?
Post by: the bigg on February 19, 2007, 05:07:05 PM
it's zghostab.2da in the error message, not ghostab.2da. perhaps that's the error  :)
Title: Re: What in the nine hells is a unix error?
Post by: Zycopath 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.
Title: Re: What in the nine hells is a unix error?
Post by: Zycopath 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.
Title: Re: What in the nine hells is a unix error?
Post by: the bigg 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?
Title: Re: What in the nine hells is a unix error?
Post by: Zycopath 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~
Title: Re: What in the nine hells is a unix error? (Now with additional question!)
Post by: the bigg on February 19, 2007, 06:02:10 PM
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  :(
Title: Re: What in the nine hells is a unix error? (Now with additional question!)
Post by: Zycopath on February 19, 2007, 06:08:55 PM
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.
Title: Re: What in the nine hells is a unix error? (Now with additional question!)
Post by: Rabain 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.

Title: Re: What in the nine hells is a unix error? (Now with additional question!)
Post by: Zycopath 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~

Title: Re: What in the nine hells is a unix error? (Now with additional question!)
Post by: the bigg 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).
Title: Re: What in the nine hells is a unix error? (Now with additional question!)
Post by: Zycopath 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.
Title: Re: What in the nine hells is a unix error? (Now with additional question!)
Post by: the bigg 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~.
Title: Re: What in the nine hells is a unix error? (Now with additional question!)
Post by: Zycopath 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.
Title: Re: What in the nine hells is a unix error? (Now TWO additional questions!)
Post by: Zycopath 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?
Title: Re: What in the nine hells is a unix error? (Now TWO additional questions!)
Post by: bigg-uni 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  :)
Title: Re: What in the nine hells is a unix error? (Now TWO additional questions!)
Post by: Zycopath 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.
Title: Re: What in the nine hells is a unix error? (Now TWO additional questions!)
Post by: Zycopath 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).
Title: Re: What in the nine hells is a unix error? (Now TWO additional questions!)
Post by: Rabain 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.

Title: Re: What in the nine hells is a unix error? (Now TWO additional questions!)
Post by: Zycopath 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.
Title: Re: What in the nine hells is a unix error? (Now TWO additional questions!)
Post by: Rabain 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.
Title: Re: What in the nine hells is a unix error? (Now TWO additional questions!)
Post by: Zycopath 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)
Title: Re: What in the nine hells is a unix error? (Now TWO additional questions!)
Post by: Rabain 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.
Title: Re: What in the nine hells is a unix error? (Now TWO additional questions!)
Post by: Zycopath on February 22, 2007, 06:49:00 AM
Yeah, the kit is for an NPC so technically I could settle for your solution (I've been thinking about it myself) but the thing is that I want the NPC's "weapon" to get better with levels, hence my wish to make it part of the kit.

And yes, I'm well aware of the fact that no other weapons can be equipped, that's good actually.
Title: Re: What in the nine hells is a unix error? (Now TWO additional questions!)
Post by: the bigg on February 22, 2007, 07:18:37 AM
The 'Arcane Fist' kit (from Sorcerer's Place Collection (http://www.gibberlings3.net/spc)) emulates the Monk kit, by adding a default weapon in the SLOT_FIST that levels up with the user; in particular, the effect you desire to emulate is in files spstuff/arfist/c!affis*.spl.
Title: Re: What in the nine hells is a unix error? (Now TWO additional questions!)
Post by: Rabain on February 22, 2007, 08:03:22 AM
I just tested something.

I edited the CHILLT item so that it called the spell Chill Touch via an Effect and resaved the item as CHILLT2 and equipped in an npcs weapon slot.   

This way when you hit someone the first time the spell is cast and replaces CHILLT2 with CHILLT which is Chill Touch.  The only problem with this is that it is considered spellcasting and the Cowled Wizards weren't very happy!  There might be a spell type that is not considered spellcasting (innate or cleric?)

You can then modify a version of Chill Touch so that it does different things at different levels, you can do this easily with spells as opposed to weapons.

Title: Re: What in the nine hells is a unix error? (Now TWO additional questions!)
Post by: Zycopath on February 22, 2007, 08:14:42 AM
Let's see if I understand you correctly... the NPC got a weapon that looks like Chill Touch and when it's used the actual spell is cast, right? That sounds good, I'll try it out. I'm not sure on how to make it do different stuff at different levels but I can probably work that out myself. Thanks for you help.
Title: Re: What in the nine hells is a unix error? (Now TWO additional questions!)
Post by: Rabain on February 22, 2007, 10:15:28 AM
When you want it to do different things at different levels just add more Extended Header Effects and enter "Required Level".  You can copy effects from the first one to the others then modify each separately.  Hope that made sense!
Title: Re: What in the nine hells is a unix error? (Now TWO additional questions!)
Post by: Nythrun on February 22, 2007, 11:13:07 AM
You'll be wanting innate spells that use effect 143 (create item in slot) using slot 10 (fist) rather than creating a magical weapon.

Flag them as innate rather than wizard, drop them off in your clab file, and you're good to go.
Title: Re: What in the nine hells is a unix error? (Now TWO additional questions!)
Post by: Zycopath on February 22, 2007, 03:39:29 PM
Oh my friggin' god it's actually working. The only thing that's kind of strange is that before the spell is cast for the first time the "glowing hand"  shows up only in weapon slot three and four. I can live with it though, I'm just glad it's finally working :)

EDIT: I've noticed something strange though, while the Chill Touch will remain permanently (or at least after 10+ rests) it's vanished after a load the game and won't come back. The blur and other visual effects stay though.
Title: Re: What in the nine hells is a unix error? (Now TWO additional questions!)
Post by: Rabain on February 23, 2007, 08:31:02 AM
You mean the icon in your hand disappears and doesn't come back?
Title: Re: What in the nine hells is a unix error? (Now TWO additional questions!)
Post by: Zycopath on February 23, 2007, 11:06:50 AM
Yeah, no matter how much I rest the spell is cast as soon as I "awake" but after loading both the spell effect and the actual item are nowhere to be found.
Title: Re: What in the nine hells is a unix error? (Now TWO additional questions!)
Post by: Rabain on February 23, 2007, 01:34:48 PM
What method have you used to place the item in your hand?
Title: Re: What in the nine hells is a unix error? (Now TWO additional questions!)
Post by: Zycopath on February 23, 2007, 02:21:11 PM
At the first level a kit ability applies a custom spell to the character that causes the item to appear. I assume that the problem could be that the spell isn't re-applied upon loading a game but I can't understand why as other applied effects (such as the wizard slayers MR for example) remains if reloaded. In addition, the kit also applies a permanent version of blur which survives a loading.
Title: Re: What in the nine hells is a unix error? (Now TWO additional questions!)
Post by: Rabain on February 23, 2007, 05:39:02 PM
Is it a custom item similar to CHILLT you are creating in the slot?

CHILLT is a one shot attack, it is used and expended after the first attack.

You would need to customise a version of CHILLT that does not expend at all.
Title: Re: What in the nine hells is a unix error? (Now TWO additional questions!)
Post by: Zycopath on February 23, 2007, 06:13:35 PM
I've done that. Like I said, no matter how long I rest (or how many enemies I attack for that matter) the weapon remains, it only vanishes after the game is loaded.
Title: Re: What in the nine hells is a unix error? (Now TWO additional questions!)
Post by: Rabain on February 23, 2007, 06:55:01 PM
Can you show me the extended header settings?  Are you using DLTCEP to edit it? It might be something there.
Title: Re: What in the nine hells is a unix error? (Now TWO additional questions!)
Post by: Zycopath on February 27, 2007, 08:45:54 AM
Yeah, it's DLTCEP. I'll post the settings once I get home as I'm out of town for a few days. No need to rush the answer though as this mod is (hopefully) temporarily on hold. Since I hit problems more or less every step along the way I've begun working on another mod instead to try and learn the basics of the various fields of modding (NPCs, areas, scripting etc.).