~ Forums of Enroth ~
Would you like to react to this message? Create an account in a few clicks or log in to continue.

~ Forums of Enroth ~

The Enroth diehard fan community
 
HomeHome  Latest imagesLatest images  SearchSearch  RegisterRegister  Log inLog in  
Latest topics
» [H3SW v0.8.2] Witch Hunt
LNK2001 Error Icon_minitimeby GodRage Yesterday at 22:56

» 5Kings1Ring
LNK2001 Error Icon_minitimeby GodRage Yesterday at 22:54

» Polskie powitanie
LNK2001 Error Icon_minitimeby rrravyn 2024-11-15, 09:53

» loading simplification
LNK2001 Error Icon_minitimeby badtoper 2024-11-15, 04:37

» Easier Troop Management Between Garrison and Hero in Town
LNK2001 Error Icon_minitimeby badtoper 2024-11-15, 04:05

» Improvements for Hero Management and Turn Confirmation
LNK2001 Error Icon_minitimeby badtoper 2024-11-15, 01:57

» [H3SW v0.8.2] Desert Isle
LNK2001 Error Icon_minitimeby Sir Albe 2024-10-31, 07:56

Poll
Global announcements should be:
Everlasting, 1 for each project.
LNK2001 Error Redbar110%LNK2001 Error Redbar12
 0% [ 0 ]
Temporary, when there is something new to announce.
LNK2001 Error Redbar11100%LNK2001 Error Redbar12
 100% [ 6 ]
Holalala... No idea where the Ultimate artifact is.
LNK2001 Error Redbar110%LNK2001 Error Redbar12
 0% [ 0 ]
Total Votes : 6
Most Viewed Topics
H3SW: General Graphics discussion
Ragoon's Graphics For HoMM3SW
Introduce yourself
H3SW General Discussion
H3SW Map List: Work in progress
H3SW: Dwelling Development
The Floody Land
Forum Admins Feed
Enrothian Fan Art
Heroes III: The Succession Wars v0.8.2 Beta

 

 LNK2001 Error

Go down 
AuthorMessage
DraggonFantasy
Guest
Anonymous



LNK2001 Error Empty
PostSubject: LNK2001 Error   LNK2001 Error Icon_minitime2015-07-21, 04:54

Hello)
I'm trying to modify game method ( army::DoAttack(int) ).
Added this to heroes2_imports.inc:
Code:

IMPORT_?DoAttack@army@@QAEXH@Z = 1
?DoAttack@army@@QAEXH@Z_clone EQU ?DoAttack_orig@army@@QAEXH@Z
And modified combat.h and combat.cpp files:
combat.h - added void DoAttack(int) and void DoAttack_orig(int) declarations to army class.
combat.cpp - added void army::DoAttack(int x) definition.
The problem is when I call DoAttack_orig(x), linker give me an error.
PS, sorry for my english, it isn't my native language Smile


------------

Admin's edit: An additional post by DraggonFantasy was omitted when copying from the old forum, and has been inserted here:

DraggonFantasy' post:

Problem fixed. I deleted heroes2.obj file to perform reassembling and everything works now. Very Happy
Back to top Go down
Darmani_
Guest
Anonymous



LNK2001 Error Empty
PostSubject: Re: LNK2001 Error   LNK2001 Error Icon_minitime2015-07-21, 04:55

Excellent! May I ask what you're modding?

I've been a bit lax lately about uploading the latest versions of the source code. I need to get on that.
Back to top Go down
DraggonFantasy
Guest
Anonymous



LNK2001 Error Empty
PostSubject: Re: LNK2001 Error   LNK2001 Error Icon_minitime2015-07-21, 04:55

I'm making a mod, that extends map-making abilities, adds more Lua functions and triggers etc.
Have already added 16 new functions and 3 new triggers Very Happy
Also fixed the bug with Pandora's Box, when it replace your army with peasants after battle)
Back to top Go down
Daeley
Guest
Anonymous



LNK2001 Error Empty
PostSubject: Re: LNK2001 Error   LNK2001 Error Icon_minitime2015-07-21, 04:56

@DraggonFantasy,

I've been trying to get the game to compile, but seem to be missing a few steps. Could you share what you did/programs you used to make it work? I gave Darmani a ping but he's pretty busy atm so if you could help that would be great. Very Happy

steps I've taken so far (working on a Windows 7 machine):
(1) install Visual studio Express C++ 2010 (I usually develop in Eclipse, and that one was free)
(2) fetch latest from the Mercurial repo and open the VC project (.vcproj file)
(3) compile failed on some include failure
--> fixed by adding (path to to ironfist repo)/ironfist/src/cpp and (...)/ironfist/src/cpp/lib to include path
(4) Compile failed on error "'CString' : undeclared identifier" in file dialog.cpp
--> guess my includes aren't 100% correct yet... quick workaround: comment the code
(5) massive syntax errors on everything in the xerxes folder
--> stuck here... more include issues? Maybe I don't have correct libraries installed?
Back to top Go down
Daeley
Guest
Anonymous



LNK2001 Error Empty
PostSubject: Re: LNK2001 Error   LNK2001 Error Icon_minitime2015-07-21, 04:56

never mind Smile had some more help and fixed all the issues Smile
Back to top Go down
Sponsored content





LNK2001 Error Empty
PostSubject: Re: LNK2001 Error   LNK2001 Error Icon_minitime

Back to top Go down
 
LNK2001 Error
Back to top 
Page 1 of 1
 Similar topics
-
» Install Error
» [H3SW v0.8.0] Game not launching (Assert violation in file...) or lacking VCRUNTIME140.DLL
» [H3SW v0.8.1] Installation problems
» Error message at program startup
» [Ironfist ver 0.8.4] Direct Draw Error

Permissions in this forum:You cannot reply to topics in this forum
~ Forums of Enroth ~ :: Modding Guild :: Heroes of Might and Magic II: Project Ironfist :: Modding and Mapmaking-
Jump to: