D2Template

This forum is for discussions on how to edit what can not be edited through the txt files, needless to say this isn't about battle net hacking.

Moderators: Nefarius, Havvoric

User avatar
kidpaddle94
Forum Legend
Principality
Posts: 2056
Joined: Thu Aug 13, 2009 2:54 pm
Location: localhost
Canada

Re: D2Template

Post by kidpaddle94 » Thu Jun 25, 2015 9:33 am

Necrolis" wrote:Just a little usability hint: Shift the patch size to the last member in the structure, this allows you to omit it from records where its not used and have it default to zero.
Yes, that is a good idea. Will be updating this soon, thanks for the suggestion.

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

Re: D2Template

Post by devurandom » Fri Oct 16, 2015 7:29 am

Ok... compiled it without errors in VC6, still a noob when it comes to C++ and WinAPI.

Thanks for sharing 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..

kambala
Dark Alliance Beta Test
Crusader
Posts: 70
Joined: Wed Nov 25, 2009 4:32 pm
Location: Moscow
Contact:
Russia

Re: D2Template

Post by kambala » Sun Apr 17, 2016 1:14 pm

@XP in VS2012+: there's a thing called WInXP Toolchain that allows building with modern VC compilers and have XP support
cross-platform tools: K.A.M.B.A.L.A.: Kinetic Artificial Machine Built for Assassination and Logical Analysis

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

Re: D2Template

Post by devurandom » Mon Sep 05, 2016 8:06 pm

Added a new definition to D2Ptrs.h. It allows you to create a function without DLL prefix assigned to the name in code.

Code: Select all

#define D2FUNC2(DLL, NAME, RETURN, CONV, ARGS, OFFSET) \
	typedef RETURN (##CONV##* NAME##_t ) ARGS; \
	static NAME##_t NAME = (NAME##_t )GetDllOffset(DLLOFFSET(DLL , OFFSET));
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
kingpin
Senior Admin
Cherub
Posts: 10905
Joined: Sat Jan 11, 2003 12:51 pm
Contact:
Sweden

Hand-picked

Re: D2Template

Post by kingpin » Fri Jan 06, 2017 4:12 pm

kambala" wrote:@XP in VS2012+: there's a thing called WInXP Toolchain that allows building with modern VC compilers and have XP support
it doesn't support all xp versions, you need to have it patched to patch 3. Because of this I decided myself to stay with vs 2010 then modding in d2. Just a reminder for those with newer compilers.

Jair
Posts: 99
Joined: Sat Jul 16, 2016 8:54 pm

Re: D2Template

Post by Jair » Thu Mar 30, 2017 1:52 am

Link Broken: D2 Template!

User avatar
kidpaddle94
Forum Legend
Principality
Posts: 2056
Joined: Thu Aug 13, 2009 2:54 pm
Location: localhost
Canada

Re: D2Template

Post by kidpaddle94 » Thu Mar 30, 2017 11:54 pm

Jair" wrote:Link Broken: D2 Template!
Fixed all links. Dropbox somehow decided to change how links to share files are handled, so all links were broken.
edit: migrated the project to Github

Post Reply

Return to “Code Editing”