Need help fixing Unhandled Error

Post here about all aspects of D2 mod making whether it's information, problems or whatever. Please specify whether your post is relating to Classic D2 or the Expansion.

Moderator: Nizari

Post Reply
User avatar
Tomkomaster
Posts: 96
Joined: Thu Feb 07, 2008 1:15 am
Slovakia

Need help fixing Unhandled Error

Post by Tomkomaster » Sun Feb 24, 2019 7:11 pm

I tried to add a new skill, but when I level up and try to learn the new skill (click on its icon in the skilltree), I get an Unhandled exception error. Tried to delete and create an entirely new one, I get the same error. Tried to copy an existing skill to a new line, get the same error. Of course I modified the Skills.txt, Skilldesc.txt, Missiles.txt, change the ID to the next one, changed the names to not be duplicates, but nothing is working. I cannot add new skills to the game.

I'm using Diablo 2 1.13c version, with Plugy and Basemod plugin. Even added the rebased Storm.dll to it. Please help me fix this error.

Code: Select all

18:52:41.394  ***** UNHANDLED EXCEPTION: ACCESS_VIOLATION (c0000005)
18:52:41.394  Fault address:  6FD9FD2B 01:0004ED2B C:\Program Files (x86)\Diablo II\MODS\Tomkomod\D2Common.dll
18:52:41.394  eax:00000000 ebx:00000000 ecx:6fdefed8 edx:0a34fef0 esi:09ed2800
18:52:41.394  edi:00000000 ebp:00000198 esp:0018f654 eip:6fd9fd2b flg:00210246
18:52:41.394  cs:0023 ds:002b es:002b ss:002b fs:0053 gs:002b

hellfreezer
Posts: 32
Joined: Thu Jan 31, 2019 6:57 am

Re: Need help fixing Unhandled Error

Post by hellfreezer » Mon Feb 25, 2019 6:00 am

Is the skill added to a certain class or did it replace an existing spell. I haven't worked extensively with skills but I know each class must have the same number of skills. Have you tried putting the new skill on an item as an oskill?

User avatar
Tomkomaster
Posts: 96
Joined: Thu Feb 07, 2008 1:15 am
Slovakia

Re: Need help fixing Unhandled Error

Post by Tomkomaster » Mon Feb 25, 2019 6:33 am

I wanted to replace an existing skill. Removed the 'ama' from 'charclass' column from 'Fire Arrow' skill and added it to my new skill, so every character has the same amount of skills. I haven't tried it as an oskill, let me just test it.

User avatar
Nizari
Site Admin
Paladin
Posts: 115
Joined: Fri Feb 16, 2018 11:39 pm
Poland

Re: Need help fixing Unhandled Error

Post by Nizari » Mon Feb 25, 2019 7:13 am

Did you remove Fire Arrow from amazon's skill tree in skilldesc.txt?

User avatar
Tomkomaster
Posts: 96
Joined: Thu Feb 07, 2008 1:15 am
Slovakia

Re: Need help fixing Unhandled Error

Post by Tomkomaster » Mon Feb 25, 2019 7:18 am

Yes, I set the the SkillPage, SkillRow and SkillColumn to 0.

User avatar
HarvestWombs
Senior Moderator
Arch-Angel
Posts: 1019
Joined: Wed May 25, 2011 11:50 pm
United States of America

Re: Need help fixing Unhandled Error

Post by HarvestWombs » Mon Feb 25, 2019 7:37 am

Just for reference, you don't have to set the skilldesc's to zero to remove it from the page, you only need to remove the char code from skills.
Official Phrozen Keep Discord
Common Modding tools: link
My Resource Packs: link

User avatar
Tomkomaster
Posts: 96
Joined: Thu Feb 07, 2008 1:15 am
Slovakia

Re: Need help fixing Unhandled Error

Post by Tomkomaster » Mon Feb 25, 2019 7:51 am

Tried disabling Plugy and basemod, then replaced the DLL with the original ones from 1.13c, but still the same error occurs, so its not because of the DLL changes I made.

As for the txt changes, here are is a skill I added, plus the modified FireArrow:

Skills.txt

Code: Select all

Fire Arrow	7		fire arrow	4										firearrow	1																																																																												11					firearrow													1	0		rng		miss										A1	A1	xx				1													1									1	20													1		1				1	5	24	1	1																																12	damage synergy	1	10	9						8	128														fire	1	2	3	6	12	24	4	2	3	7	14	27	(skill('Exploding Arrow'.blvl)) * par8								256	1000
Barrage	420	ama	barragedesc											barragecenter																																																																																		barragecenter													1	0		rng		miss										A1	A1	A1				1													1									1	20													1						0	8	6	3	1																																		1								8	64																																				0
Skilldesc.txt

Code: Select all

barragedesc	1	1	1	1	0	0	SkillnameBarrage	SkillsdBarrage	SkillsdBarrage	SkillnameBarrage	StrSkill3	5												1				1					12	StrSkill20		12+(6*(lvl-1))		7	StrSkill9		12+(6*(lvl-1))																						73	WeapDamsk		1	2	18	DescBlank				3	DescMaxLevel	DescLvlBas	max((min((2+((ulvl-6)/6)),21)),2))																																					0
Missiles.txt

Code: Select all

teethexplodeyellow	763	1		1																																																					13		3		213	175	128	0	0	0	BoneGhostTrail	1024	13	16																							1		1								1																																													1																						0
barragearrow	764	1		1																																																	24	24			20				255	255	255	1	0	0	Arrow	1024	1	16					3	1		1		1							1				1						1		1	1					1				4		8		64																																		6	32			weapon_bow_1				teethexplodeyellow															0
barragecenter	765	19		15					1	frequency	19	increment									1	frequency	19	increment																																	12	6			255	255	255	1	0	2	null	1024	2	16								1		1							1					1																	4		8																																					1								barragearrow							barragearrow							0

User avatar
devurandom
Forum Regular
Angel
Posts: 897
Joined: Sat Mar 07, 2015 9:07 pm
United States of America

Re: Need help fixing Unhandled Error

Post by devurandom » Mon Feb 25, 2019 8:49 am

Curious if you take out the rebased storm.dll what effect does that have ?
newer OS's can force relocation on rebased dlls, which can lead to crashes.
Assembly Reference | 1.13d Code Edits | UVLoD | BaseMod Plugin

Fiat paper money is the most elaborate and well devised form of slavery the world has ever seen..

User avatar
Tomkomaster
Posts: 96
Joined: Thu Feb 07, 2008 1:15 am
Slovakia

Re: Need help fixing Unhandled Error

Post by Tomkomaster » Mon Feb 25, 2019 11:46 am

Removed the rebased storm.dll, tried it again, the same error came up with different addresses I guess.

Code: Select all

11:43:17.969  ***** UNHANDLED EXCEPTION: ACCESS_VIOLATION (c0000005)
11:43:17.969  Fault address:  6FD9FD2B 01:0004ED2B C:\Program Files (x86)\Diablo II\MODS\Tomkomod\D2Common.dll
11:43:17.969  eax:00000000 ebx:00000000 ecx:6fdefed8 edx:0a54fef0 esi:06c92800
11:43:17.969  edi:00000000 ebp:00000198 esp:0018f654 eip:6fd9fd2b flg:00210246
11:43:17.969  cs:0023 ds:002b es:002b ss:002b fs:0053 gs:002b

User avatar
devurandom
Forum Regular
Angel
Posts: 897
Joined: Sat Mar 07, 2015 9:07 pm
United States of America

Re: Need help fixing Unhandled Error

Post by devurandom » Mon Feb 25, 2019 12:34 pm

Error above is a crash in a subfunction called from GetSkillLevel
Assembly Reference | 1.13d Code Edits | UVLoD | BaseMod Plugin

Fiat paper money is the most elaborate and well devised form of slavery the world has ever seen..

User avatar
Tomkomaster
Posts: 96
Joined: Thu Feb 07, 2008 1:15 am
Slovakia

Re: Need help fixing Unhandled Error

Post by Tomkomaster » Mon Feb 25, 2019 3:18 pm

Thank you, but I don't understand what that means, what is wrong :( Is it something I changed accidentally? Can it be fixed somehow?

User avatar
devurandom
Forum Regular
Angel
Posts: 897
Joined: Sat Mar 07, 2015 9:07 pm
United States of America

Re: Need help fixing Unhandled Error

Post by devurandom » Mon Feb 25, 2019 4:29 pm

seems like its crashing on GetSkillLevel of the new skill. That's about all I can tell from it.
Assembly Reference | 1.13d Code Edits | UVLoD | BaseMod Plugin

Fiat paper money is the most elaborate and well devised form of slavery the world has ever seen..

User avatar
Tomkomaster
Posts: 96
Joined: Thu Feb 07, 2008 1:15 am
Slovakia

Re: Need help fixing Unhandled Error

Post by Tomkomaster » Mon Feb 25, 2019 4:40 pm

Then maybe I will start from the beginning of creating my mod, adding there the txt files one by one, and maybe I will figure out the problem that way. By the way, can it be because of too much data in the tbl files, like maximum number of lines a tbl can hold? Cuz Im using just the expansionstring.tbl file, ive added to it every single new string entry.

hellfreezer
Posts: 32
Joined: Thu Jan 31, 2019 6:57 am

Re: Need help fixing Unhandled Error

Post by hellfreezer » Mon Feb 25, 2019 6:44 pm

At what character level does your new skill unlock?

User avatar
Tomkomaster
Posts: 96
Joined: Thu Feb 07, 2008 1:15 am
Slovakia

Re: Need help fixing Unhandled Error

Post by Tomkomaster » Tue Feb 26, 2019 10:55 am

Level 1, wanted to test it but I keep getting the error


EDIT:

Finally managed to resolve this issue, and guess what: Not my new skills was the problem, but actually the Nizari & Jetaman goblin plugin. They have too long names for their Skills.txt and missiles.txt entries. A very simple fix is just to abbreviate the goblin skill and missile names (of course modifying the srvmissile and cltmissile column in skills.txt too), to something like from GildedBaronDeathExtraGoldDropMaker1 to GBDeathExtraGoldDropMaker1, and it fixes the problem.

User avatar
Nizari
Site Admin
Paladin
Posts: 115
Joined: Fri Feb 16, 2018 11:39 pm
Poland

Re: Need help fixing Unhandled Error

Post by Nizari » Tue Feb 26, 2019 12:35 pm

What do you mean by too long name? The length is ok and never caused problems to anyone, including me.

Edit: I have to admit I was a bit wrong there (not completly though, as the current naming can't give you an error, however duplicating the missile and changing its number is a different story). It seems I must update the plugin, will fix some other small things too.

User avatar
Tomkomaster
Posts: 96
Joined: Thu Feb 07, 2008 1:15 am
Slovakia

Re: Need help fixing Unhandled Error

Post by Tomkomaster » Tue Feb 26, 2019 4:01 pm

I will upload a test mod, reproducing the bug I had later today, so you can see for yourself. Im at work now.

Edit: then maybe that was it,as you said. I have added 5 from each goblin (1 for each act), and just changed the number in their names, which gave me the unhandled error. I thought that it was my new skill that was wrong, but when I tested it on clean mod, it worked, so I started to test each and every skill individually i added. When I get to the goblins, it started to giving me the error. I checked every entry I had, if theyre linked properly. When nothing worked, I just started to rename them, giving them shorter names, and for me, it worked, i no longer get an unhadled error, and all of my new skills worked, as they should. Thats why I thought that the problem was with the too long names.

User avatar
devurandom
Forum Regular
Angel
Posts: 897
Joined: Sat Mar 07, 2015 9:07 pm
United States of America

Re: Need help fixing Unhandled Error

Post by devurandom » Tue Feb 26, 2019 8:13 pm

Seems like many places the Txt limits on string length is 31 char.
:-|
Assembly Reference | 1.13d Code Edits | UVLoD | BaseMod Plugin

Fiat paper money is the most elaborate and well devised form of slavery the world has ever seen..

User avatar
Tomkomaster
Posts: 96
Joined: Thu Feb 07, 2008 1:15 am
Slovakia

Re: Need help fixing Unhandled Error

Post by Tomkomaster » Tue Feb 26, 2019 11:19 pm

I didn't know that, so that's why it was giving me the errors.

User avatar
devurandom
Forum Regular
Angel
Posts: 897
Joined: Sat Mar 07, 2015 9:07 pm
United States of America

Re: Need help fixing Unhandled Error

Post by devurandom » Wed Feb 27, 2019 12:20 am

I don't have a definite answer, since I haven't created binfield def's for the txt files your using in this.
Assembly Reference | 1.13d Code Edits | UVLoD | BaseMod Plugin

Fiat paper money is the most elaborate and well devised form of slavery the world has ever seen..

User avatar
Nizari
Site Admin
Paladin
Posts: 115
Joined: Fri Feb 16, 2018 11:39 pm
Poland

Re: Need help fixing Unhandled Error

Post by Nizari » Wed Feb 27, 2019 7:32 am

Any txt field that gets referenced is limited to 32 chars. It isn't going to give you an error though. As long as first 32 chars are unique, other ones will get ignored. That's why original treasure goblin can't cause error, but copying and renaming specific missiles with only number change, which is after 32th char, can.

Post Reply

Return to “General Mod Making”