the Phrozen Forums
  General Mod Making
  HELP!!!!

Post New Topic  Post A Reply
profile | register | preferences | faq | search

UBBFriend: Email This Page to Someone! next newest topic | next oldest topic
Author Topic:   HELP!!!!
UJN
WarLord

Posts: 227
From: Luleå, Norrbotten, Sverige
Registered: Feb 2002

posted 12 February 2002 01:12     Click Here to See the Profile for UJN   Click Here to Email UJN        Reply w/Quote   
I've created a new item, made an unique version of it, made the Countess on normal always drop it. Created a unique charm.
When I started the game and pressed the Single-player button I got this message:

Assertion Failure
Location: S2Win\src\D2comp.cpp, line#3065
Expression: eType<=ptItemTypesTbl->nSize

I don't really understand what it means.
What have I done wrong?
Can anyone help me?!?

IP Logged

Dragon Warrior
Honorary Warlord

Posts: 280
From: The Planet Vegeta
Registered: Jan 2002

posted 12 February 2002 01:26     Click Here to See the Profile for Dragon Warrior   Click Here to Email Dragon Warrior        Reply w/Quote   
This was one of the first Assertion Errors I got. It may have to do with ItemTypes.txt. Does your new item have a "type" equivalent or is it's type "char". A string I posted a while ago might help.

------------------
"The great secret, is not having bad manners or good manners...but having the same manner for all human souls."
- George Bernard Shaw

IP Logged

Dragon Warrior
Honorary Warlord

Posts: 280
From: The Planet Vegeta
Registered: Jan 2002

posted 12 February 2002 01:28     Click Here to See the Profile for Dragon Warrior   Click Here to Email Dragon Warrior        Reply w/Quote   
http://dynamic2.gamespy.com/~phrozenkeep/ubb/Forum29/HTML/002847.html

That's the link.

------------------
"The great secret, is not having bad manners or good manners...but having the same manner for all human souls."
- George Bernard Shaw

IP Logged

Dragon Warrior
Honorary Warlord

Posts: 280
From: The Planet Vegeta
Registered: Jan 2002

posted 12 February 2002 01:35     Click Here to See the Profile for Dragon Warrior   Click Here to Email Dragon Warrior        Reply w/Quote   
At any rate tell us exactly what you changed in each file you changed. If I spot anything similar to mistakes I've made I'll tell you.

------------------
"The great secret, is not having bad manners or good manners...but having the same manner for all human souls."
- George Bernard Shaw

IP Logged

UJN
WarLord

Posts: 227
From: Luleå, Norrbotten, Sverige
Registered: Feb 2002

posted 12 February 2002 06:25     Click Here to See the Profile for UJN   Click Here to Email UJN        Reply w/Quote   
I've put in this line at the bottom of Itemtypes.txt

Broken Sword swor mele pala 1 1 rarm larm 0 0 0 0 0 1 0 0 0 0 3 4 6 0 1 pal 0 pal 0 weap

Anything wrong with it, it's the first time I create a new item so I'm not very good at it.

IP Logged

UJN
WarLord

Posts: 227
From: Luleå, Norrbotten, Sverige
Registered: Feb 2002

posted 12 February 2002 06:26     Click Here to See the Profile for UJN   Click Here to Email UJN        Reply w/Quote   
That looks a bit strange here, Broken Sword is the name of the item and I hope u understand the rest

IP Logged

UJN
WarLord

Posts: 227
From: Luleå, Norrbotten, Sverige
Registered: Feb 2002

posted 12 February 2002 06:30     Click Here to See the Profile for UJN   Click Here to Email UJN        Reply w/Quote   
And I've added these 2 lines to UniqueItems.txt:

Top of the Broken Sword 100 1 1 10 20 30 cm2 Piece of Sword 5 2000 1 0 0 dmg-max 0 10 10 0 0 0 0 0 0 0 0 0 0 0
Shaft of the Broken Sword 100 1 1 1 0 50 psw Broken Sword 5 2000 1 0 0 pal 0 1 1 vit 0 10 10 0 0 0 0 0 0 0 0 0 0

Hope u can understand it

IP Logged

UJN
WarLord

Posts: 227
From: Luleå, Norrbotten, Sverige
Registered: Feb 2002

posted 12 February 2002 06:33     Click Here to See the Profile for UJN   Click Here to Email UJN        Reply w/Quote   
And this line to weapons.txt:

Broken Sword pswo psw psw 100 5 1 30 35 0 0 2 8 0 0 40 60 50 80 24 1 1 99 72 3072 psw psw xxx xxx 1hs 1hs 5 1hsl 2 2 0 0 0 flpssd invpsw 1 3 0 0 29 1 0 5 0 0 0 0 0 7 0 0 3 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 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 1 2 0 wsd 9ss 0 0

And made the Countess always drop the unique sword on normal.
What's wrong?

IP Logged

UJN
WarLord

Posts: 227
From: Luleå, Norrbotten, Sverige
Registered: Feb 2002

posted 12 February 2002 06:35     Click Here to See the Profile for UJN   Click Here to Email UJN        Reply w/Quote   
Noticed that I havn't changed the Exep. and Elite versions of the sword, it's the same as for the short sword I copied.
What should I write instead if I don't want it to have exep. and elite versions?

IP Logged

UJN
WarLord

Posts: 227
From: Luleå, Norrbotten, Sverige
Registered: Feb 2002

posted 12 February 2002 06:36     Click Here to See the Profile for UJN   Click Here to Email UJN        Reply w/Quote   
Oh, I putted everything in the bottom of the files (maybe that's important, I don't know)

IP Logged

Myhrginoc
Honorary Warlord

Posts: 1326
From: Percussion U
Registered: Dec 2001

posted 12 February 2002 23:05     Click Here to See the Profile for Myhrginoc   Click Here to Email Myhrginoc        Reply w/Quote   
What are you trying to accomplish altogether? It looks to me like you have defined several unique pieces that are part of a Broken Sword. Then you have a Broken Sword weapon, and an new item type. Is it your intention that somebody reforges the Sword That Was Broken? (Probably a cube recipe for that.)

I see a few problems. In ItemTypes, you have three type codes, swor, mele and pala. So you want a paladin-only sword. But none of those are new codes, so you have not defined a new type yet. Later on in Weapons you have Broken Sword pswo, so you need pswo in ItemTypes. I would consider pswo swor pala in ItemTypes, because swor is >already< equivalent to mele. Lastly, you have four pieces in uniques.txt which really need to be defined in misc since they are not useable as weapons in and of themselves. So you make four new misc objects, make unique versions of them, and define in TreasureClassEx where they drop. If the Countess is to drop the completed sword, why define the pieces?

IP Logged

UJN
WarLord

Posts: 227
From: Luleå, Norrbotten, Sverige
Registered: Feb 2002

posted 12 February 2002 23:51     Click Here to See the Profile for UJN   Click Here to Email UJN        Reply w/Quote   
My idea is to make 2 unique charms that are pieces of the sword and the shaft is a sword.
The shaft will always be dropped by Nihlantak on Hell, and the charms can be dropped by normal monsters. If u have all 3 pieces then u can put them in the cube and get the whole sword.
I just made the countess drop it so I can c if it looks as it should.
When I thinked of this problem, and how many wrongs I can do while doing all this, I thought it's better to just make a new sword, not a Pal only sword, that means I don't have to do anything in Itemtypes.txt, I think...
Then, I need to know one thing:
How do I change the Broken sword into a sword, and not a Pal only sword?
I think that's easy, but it's the first time I create a new item, I think I've written this before, so I'm not very good at it.

IP Logged

Myhrginoc
Honorary Warlord

Posts: 1326
From: Percussion U
Registered: Dec 2001

posted 13 February 2002 00:01     Click Here to See the Profile for Myhrginoc   Click Here to Email Myhrginoc        Reply w/Quote   
If you aren't making the pieces, and it's just an ordinary sword, you don't need to edit any file except uniques.txt.

IP Logged

UJN
WarLord

Posts: 227
From: Luleå, Norrbotten, Sverige
Registered: Feb 2002

posted 13 February 2002 06:09     Click Here to See the Profile for UJN   Click Here to Email UJN        Reply w/Quote   
I'm making the pieces but they're charms so I don't have to do anything about them in Itemtypes.txt
It's only the shaft, and later the whole sword, that is a weapon.
So, I'm keeping everything in weapons.txt as it is, delete the line in Itemtypes.txt and edit the line in Uniqueitems.txt, is that right?

IP Logged

Apocalypse Demon
Moderator

Posts: 4023
From: Mississauga, Ontario
Registered: Oct 2001

posted 13 February 2002 09:20     Click Here to See the Profile for Apocalypse Demon   Click Here to Email Apocalypse Demon        Reply w/Quote   
No. As stated before, make your ingredients of the sword in misc.txt, not weapons.txt unless you want people to be wielding the broken parts as well.

IP Logged

UJN
WarLord

Posts: 227
From: Luleå, Norrbotten, Sverige
Registered: Feb 2002

posted 13 February 2002 11:01     Click Here to See the Profile for UJN   Click Here to Email UJN        Reply w/Quote   
And that's what I want!!!!
U should be able to use the Shaft of the Broken Sword as a weapon, that's why I made it in weapons.txt
But, u should not be able to use the other pieces that's why I made it (there's only one more piece, yet) as a charm. When it's a charm it won't be useless but not as good as it will be as a sword.
Then, I should have my Broken Sword in weapons.txt and not in misc.txt
And the charm's just unique so it does only exist in the text file with uniques, not in any other file, I think.
Is everything clear to everybody now?

IP Logged

Myhrginoc
Honorary Warlord

Posts: 1326
From: Percussion U
Registered: Dec 2001

posted 13 February 2002 21:57     Click Here to See the Profile for Myhrginoc   Click Here to Email Myhrginoc        Reply w/Quote   
If you plan on having a custom graphic for your weapon piece that is a charm (or one graphic for each charm), you will need new lines in misc.txt...otherwise your two unique charms will look like any other charm and NOT like a piece of a sword. Then the new misc types would be the base types in uniqueitems.txt.

If you don't care that these special charms look like charms, then yes, you only need uniqueitems.txt.

[This message has been edited by Myhrginoc (edited 13 February 2002).]

IP Logged

UJN
WarLord

Posts: 227
From: Luleå, Norrbotten, Sverige
Registered: Feb 2002

posted 14 February 2002 11:57     Click Here to See the Profile for UJN   Click Here to Email UJN        Reply w/Quote   
OK, didn't know that (as I've said a lot of times, I'm a newbie)
Then I just have to put 2 new lines in the BOTTOM of misc.txt and then edit the unique txt.
What do I have to change with the sword to make it a normal sword and not a pal only sword, both in weapons.txt and the unique txt?

IP Logged

justanothermodder
Knight

Posts: 76
From: Somewhere, Il, USA
Registered: Jul 2001

posted 14 February 2002 16:47     Click Here to See the Profile for justanothermodder   Click Here to Email justanothermodder        Reply w/Quote   
Ok, if you want the sword to be of use to everybody just enter 'swor' in the type column of weapons.txt. (without the quotes)

If you don't want exceptional, elite versions enter 'psw' (your new weapon code)

And if you decide to make your new sword paladian only again, all you have to change in the itemtypes.txt that you have written is change 'swor' in the code column to 'pswo', put 'swor' in the Equiv1 col, and 'pala' in the Equiv2 col. Remeber to add this at the end of the file, else read your initial post. And then put the 'pswo' back in the type column of weapons.txt.

Thus your line would look like this: (itemtypes.txt)
Broken Sword pswo swor pala 1 1 rarm larm 0 0 0 0 0 1 0 0 0 0 3 4 6 0 1 pal 0 pal 0 weap

And last but not least, your error message was the result of inserting lines into the middle (begining) of one of the files. Some files let you, others don't, and itemtypes.txt is one of the ones that don't.

Hope this helps

Happy Valentines Day to all the readers of the Board

IP Logged

UJN
WarLord

Posts: 227
From: Luleå, Norrbotten, Sverige
Registered: Feb 2002

posted 14 February 2002 23:32     Click Here to See the Profile for UJN   Click Here to Email UJN        Reply w/Quote   
Then something must be really wrong 'cause as I wrote I always put the new line in the bottom of the txt files i edited.

IP Logged

UJN
WarLord

Posts: 227
From: Luleå, Norrbotten, Sverige
Registered: Feb 2002

posted 15 February 2002 07:51     Click Here to See the Profile for UJN   Click Here to Email UJN        Reply w/Quote   
Removed the last line in itemtypes.txt and edited the weapons.txt and the uniques txt.
I thought everything was going to word this time so I started the game, pressed the Singleplayer buttom and...
Same damn problem again!!!!!
Can't be anything wrong with Itemtypes.txt because then I tried to use my backup copy of it but it didn't work this time either
I'm getting really mad at this stupid problem, but I won't give up until it works, and I really appreciate all the help u guys support me with
But don't stop yet, I still need help!

IP Logged

justanothermodder
Knight

Posts: 76
From: Somewhere, Il, USA
Registered: Jul 2001

posted 15 February 2002 19:52     Click Here to See the Profile for justanothermodder   Click Here to Email justanothermodder        Reply w/Quote   
Ok.

You are still getting the first error, right?

Are you running a .txt or bin mod?

Either way, go into the data/global/excel directory and delete all of the bin files, and try to run Diablo again.

If the problem is not resolved this way then move your .txt files to a backup directory and then copy them (one at a time) to the data/global/excel folder and keep trying till you find the problem.

Just remember whenever you come up with this error (probally any) to delete the bin files before you run Diablo again.

Once you find the file with the error, you can either find the extra line and delete it or you can re-enter all of your changes in it.

If packing into a patch file then you want to copy the new .bin files into the same area as the rest of your files.

Last thing, you may also want to create a new char to test this.

Thought I would add the unmodded amount of rows to each file:

filename lastrow Row A Info
Itemtypes 104 skull
Uniqueitems 385 Ironward
Weapons 307 MatriarhalJavelin

[This message has been edited by justanothermodder (edited 15 February 2002).]

IP Logged

UJN
WarLord

Posts: 227
From: Luleå, Norrbotten, Sverige
Registered: Feb 2002

posted 16 February 2002 02:03     Click Here to See the Profile for UJN   Click Here to Email UJN        Reply w/Quote   
Finally, the stupid little error is gone!!!
I can't believe it was that easy...
The only thing I had to do was to delete all the bin files!
Thanks a lot for the help everybody!!!!
I promise I'll never ask u about this kind of problem again

IP Logged

All times are Central Standard Time

next newest topic | next oldest topic

Administrative Options: Close Topic | Archive/Move | Delete Topic
Post New Topic  Post A Reply
Hop to:

Contact Us | The PhrozenKeep

© PhrozenKeep.com . all buttons made by the Evilenglishman . swords and shields by DigiBO.


Ultimate Bulletin Board 5.47c