Search found 8703 matches

by Necrolis
Fri Sep 13, 2019 2:28 pm
Forum: Code Editing
Topic: Working with Negative Values 1.13c
Replies: 8
Views: 71
South Africa

Re: Working with Negative Values 1.13c

You only have 1 byte of space in the CMP, you are limit to values in the range of [-127,128].
by Necrolis
Wed Sep 11, 2019 2:59 pm
Forum: Code Editing
Topic: [1.13c] Extended Levels (Now with Dlls!)
Replies: 64
Views: 16066
South Africa

Re: [1.13c] Extended Levels (Now with Dlls!)

Update: Got a few more requests to do this, and seeing as I actually had some time, uploaded the edited dll's to this post, my testing was very brief (I just made sure automap files & a few levels loaded, thats it...). Thank you Necrolis for this big update I've been using this in my mod for a year...
by Necrolis
Wed Sep 04, 2019 12:09 pm
Forum: Multimedia
Topic: Importing custom graphics
Replies: 4
Views: 90
South Africa

Re: Importing custom graphics

D2 has a very limited color palette (8bit); especially if you need cross act compatibility. For your case you will need to use the Units palette, these are colors that are available in every act. This is normally referred to as indexed mode mode editors, you can find the palettes in our file center.
by Necrolis
Tue Sep 03, 2019 8:38 pm
Forum: General Mod Making
Topic: How and where did really works MagicFormat etc.
Replies: 2
Views: 102
South Africa

Re: How and where did really works MagicFormat etc.

When it comes to items, the function you'd want to look at in 1.10 is the following:

Code: Select all

/* 
	Date: Fri Sep 03 15:41:33 2010
	Author: Necrolis
	Function: ITEMDESC_Format
	Address: D2Client.0x6FADCFE0
	Comments: 
*/

wchar_t* __cdecl ITEMDESC_Format(wchar_t* pBuffer, const wchar_t* wszFormat, ...)
by Necrolis
Mon Sep 02, 2019 4:48 pm
Forum: General Mod Making
Topic: Color in States?
Replies: 1
Views: 49
South Africa

Re: Color in States?

Paul has a table showing all the PL2 shifts that are available. If you want a specific color not present you need to edit the PL2 file to add it (by overwriting a previous unused color, else you need to hex edit D2Win to allow for a larger PL2 file).
by Necrolis
Wed Aug 21, 2019 11:52 pm
Forum: Multimedia
Topic: Looking for a font...
Replies: 8
Views: 463
South Africa

Re: Looking for a font...

bangbose wrote:
Tue Aug 20, 2019 9:38 am
Okay I opened it with d2font editor but still no clue how to reduce the spacing some pointers would be good..
This is a much better tool, will let you change each glyphs kernings: viewtopic.php?p=480509#p480509
by Necrolis
Wed Aug 21, 2019 11:50 pm
Forum: Tools
Topic: What is the best tool for working with dc6 and txt files?
Replies: 4
Views: 147
South Africa

Re: What is the best tool for working with dc6 and txt files?

Yes, we have plugins for this in the file center, else just use the tool I linked you
by Necrolis
Wed Aug 21, 2019 11:39 pm
Forum: Tools
Topic: What is the best tool for working with dc6 and txt files?
Replies: 4
Views: 147
South Africa

Re: What is the best tool for working with dc6 and txt files?

This pretty much does everything you could want in the easiest manner: viewtopic.php?f=7&t=56721&start=0
by Necrolis
Wed Aug 21, 2019 1:52 pm
Forum: Code Editing
Topic: Randtransform.dat
Replies: 1
Views: 73
South Africa

Re: Randtransform.dat

The 1.10 location for this is: //D2Client.0x6FAAE3C0 const uint8_t* __fastcall PAL_GetMonsterPalette(D2UnitStrc* pMonster) You need to fix the upper bound given to the RandPalette so that it allows for all entries. Looking for this code in other versions should be as easy as looking for the bound ch...
by Necrolis
Fri Aug 16, 2019 3:28 pm
Forum: Multimedia
Topic: Looking for a font...
Replies: 8
Views: 463
South Africa

Re: Looking for a font...

I took the fontformal10 from d2exp.mpq I like how it looks but it appears with huge space gaps like in the picture from the first post. I am not very experienced modder what do I need to do edit the font.tbl file? I got an error when I tried to open it with tbl editor... Or I am not doing something...
by Necrolis
Fri Aug 16, 2019 9:40 am
Forum: Multimedia
Topic: Looking for a font...
Replies: 8
Views: 463
South Africa

Re: Looking for a font...

bangbose wrote:
Fri Aug 16, 2019 12:05 am
Does somebody have any clue how to reduce the spacing between the lines?
There are set by the font loader in D2Win, and are based as a multiplier out of 10 using. The multiplier uses the line height in the font tbl file to determine the final line spacing.
by Necrolis
Fri Aug 09, 2019 7:46 pm
Forum: Code Editing
Topic: [v1.11b] Loading New TXT Files
Replies: 15
Views: 11973
South Africa

Re: [v1.11b] Loading New TXT Files

Please don't double post, put all your questions into a single post. typedef void* (__stdcall * D2COMMON_10496)(void*,char*,BinField*, int* ,DWORD); It's returned by the function, the pointer to int will store the record count being compiled. The question is, where can I find the memory pointer afte...
by Necrolis
Fri Aug 09, 2019 7:44 pm
Forum: Code Editing
Topic: [1.11b]How can I find the definition of INLINE_GetBlizzard TXT()?
Replies: 2
Views: 1953
South Africa

Re: [1.11b]How can I find the definition of INLINE_GetBlizzard TXT()?

Please don't post this in multiple topics, one place is enough. That function is from my code base, it does nothing more than retrieve a pointer to spgtDataTables, which is a named export from D2Common.dll. if you use the defs strickied in the forums here you can give that pointer a type that allows...
by Necrolis
Mon Aug 05, 2019 10:44 pm
Forum: Code Editing
Topic: Diablo 2 does Not close completely
Replies: 5
Views: 244
South Africa

Re: Diablo 2 does Not close completely

Its quite possible that this issues stems from some bad validation that D2 does on some windows internals (the critical sections it uses, and possibly other things; that code changed as of WinXp and Win7, so their validator is not longer correct). However it make be possible to see when its handling...
by Necrolis
Mon Jul 15, 2019 2:23 pm
Forum: Feedback
Topic: Post Dead Links
Replies: 8
Views: 1725
South Africa

Re: Post Dead Links

http://diabolic.d2mods.info/ Map plugins are now dead links... hoping to avoid the link rot! We are aware of this, we are planning on rebuilding the site, will likely take a week or two to fix. In the mean time if there is a specific map plugin you are after, send me a PM or ping me on Discord I ca...
by Necrolis
Wed Jul 03, 2019 3:42 pm
Forum: General Mod Making
Topic: Act5barb run animation problem
Replies: 2
Views: 313
South Africa

Re: Act5barb run animation problem

It might be worth noting that those wilderness act 5 barbs are hardcoded to move towards Shenk, not sure if this would cause the issue you are experiencing though (as its part of the AI IIRC). I recommend avoiding the AI an duplicating the monstats2 tokens or making new tokens using MergeDCC.
by Necrolis
Mon Jul 01, 2019 8:26 pm
Forum: Code Editing
Topic: how to reduce crush blow?
Replies: 5
Views: 394
South Africa

Re: how to reduce crush blow?

Crushing blow in 1.10 is handled in D2Game.0x6FD04E50, Nefarius has a post on how this function works, IIRC all the values are calculated from a table based on level. How would you know the address? The addresses seem to change all the time for me. Interesting that CB is based on level in 1.10, afa...
by Necrolis
Mon Jul 01, 2019 8:14 pm
Forum: Feedback
Topic: Post Dead Links
Replies: 8
Views: 1725
South Africa

Re: Post Dead Links

https://d2mods.info/forum/viewtopic.php?f=8&t=54596&p=475243&hilit=advanced+c+code+editing#p475243 In the post above, these links are dead: sir_generals Advanced Code Editing Tutorial Joel's Advanced C++ Code Editing Tutorial Joel's D2External These have been updated in the original post; the quote...
by Necrolis
Fri Jun 28, 2019 10:58 am
Forum: Code Editing
Topic: how to reduce crush blow?
Replies: 5
Views: 394
South Africa

Re: how to reduce crush blow?

Crushing blow in 1.10 is handled in D2Game.0x6FD04E50, Nefarius has a post on how this function works, IIRC all the values are calculated from a table based on level.
by Necrolis
Wed Jun 26, 2019 4:38 pm
Forum: Code Editing
Topic: Any idea to extend AutoMagic.txt?
Replies: 11
Views: 344
South Africa

Re: Any idea to extend AutoMagic.txt?

You need only change the 6A 0A to 6A 0D.
Also note that this will break any old chars that have items with automagic.
by Necrolis
Wed Jun 26, 2019 2:32 pm
Forum: Code Editing
Topic: Any idea to extend AutoMagic.txt?
Replies: 11
Views: 344
South Africa

Re: Any idea to extend AutoMagic.txt?

Thats cause you changed the wrong code, you are meant to change the PUSH 0x0B to something higher (they must both match), as an example PUSH 0x0D will give you 4 times the space.
by Necrolis
Wed Jun 26, 2019 2:28 pm
Forum: Code Editing
Topic: Making staffmods more common 1.13c
Replies: 5
Views: 784
South Africa

Re: Making staffmods more common 1.13c

2 mods and 70% for 1 mod (however, should you roll no staffmods and the FORCE_STAFFMOD flag is present, you get 1 staffmod, such as when imbuing). make the numbers (90, 70, 30) lower to increase the chances. What's the FORCE_STAFFMOD flag? The actual numerical flag is 0x20, but you can easily check...
by Necrolis
Tue Jun 25, 2019 4:55 pm
Forum: Code Editing
Topic: Any idea to extend AutoMagic.txt?
Replies: 11
Views: 344
South Africa

Re: Any idea to extend AutoMagic.txt?

What was the crash? what changes did you make?
by Necrolis
Wed Jun 19, 2019 1:50 pm
Forum: Code Editing
Topic: Any idea to extend AutoMagic.txt?
Replies: 11
Views: 344
South Africa

Re: Any idea to extend AutoMagic.txt?

The save code uses 2048 as the upper limit, but just increase this to the number of save bits (this one is the row count, but keep in mind the total limit of all three files must be less than 2^16-1): D2Common, 1.10 //Read 00060CD0 6A 0B PUSH 0B 00060CD2 53 PUSH EBX 00060CD3 E8 0A370200 CALL 000843E...
by Necrolis
Tue Jun 18, 2019 12:58 pm
Forum: Code Editing
Topic: Any idea to extend AutoMagic.txt?
Replies: 11
Views: 344
South Africa

Re: Any idea to extend AutoMagic.txt?

Extend it how exactly? The only limits are the affix id, which are capped at a WORD in size; affix ids are build from the combination of automagic + prefixes + suffixes, so you cannot exceed more than 65k in total.

Go to advanced search