Heroes of Might and Magic Community
visiting hero! Register | Today's Posts | Games | Search! | FAQ/Rules | AvatarList | MemberList | Profile


Age of Heroes Headlines:  
5 Oct 2016: Heroes VII development comes to an end.. - read more
6 Aug 2016: Troubled Heroes VII Expansion Release - read more
26 Apr 2016: Heroes VII XPack - Trial by Fire - Coming out in June! - read more
17 Apr 2016: Global Alternative Creatures MOD for H7 after 1.8 Patch! - read more
7 Mar 2016: Romero launches a Piano Sonata Album Kickstarter! - read more
19 Feb 2016: Heroes 5.5 RC6, Heroes VII patch 1.7 are out! - read more
13 Jan 2016: Horn of the Abyss 1.4 Available for Download! - read more
17 Dec 2015: Heroes 5.5 update, 1.6 out for H7 - read more
23 Nov 2015: H7 1.4 & 1.5 patches Released - read more
31 Oct 2015: First H7 patches are out, End of DoC development - read more
5 Oct 2016: Heroes VII development comes to an end.. - read more
[X] Remove Ads
LOGIN:     Username:     Password:         [ Register ]
HOMM1: info forum | HOMM2: info forum | HOMM3: info mods forum | HOMM4: info CTG forum | HOMM5: info mods forum | MMH6: wiki forum | MMH7: wiki forum
Heroes Community > Heroes 4 - Lands of Axeoth > Thread: my HoMM4 cheating attempt
Thread: my HoMM4 cheating attempt
joey_sw
joey_sw

Tavern Dweller
posted June 09, 2008 07:43 AM
Edited by joey_sw at 17:53, 14 Jun 2008.

my HoMM4 cheating attempt

i'm not talking about built in cheat nwcxxxx, but rather cheating by editing memory values using external program.

i use artmoney, anything similar might do the job as well.

i have done it with previous HoMM (2 & 3) all was met with great success, however on hero4 i stumbled

my progress:
i was able to edit hero trait such as spell & skill learned, so it was possible to turn a barbarian into an 5-school magic user
(my friend who witness it dub it as 'blasphemous barbarian')

creature stack are easy to change too
resources? too easy

town? this getting difficult, but i was finaly able to determine a byte that determine wether that town has built for that day or not, so it is possible to fully build-up a town in single day (given enough resources),
in addition to that i also find about 8 bytes that determine which building that current town has, make it possible to give each town grail structure & alter its dwelling buildings


however, my luck end there, as i unable to figured how to edit the artifacts owned by heroes / armies...
any help / hint about the artifact?

EDIT: added picture
____________

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
radar
radar


Responsible
Legendary Hero
Castle/Haven player
posted June 09, 2008 05:40 PM

Sorry, I don't know how to help you. My experience with Artmoney ends at editing the value of money
____________

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
cganya
cganya

Tavern Dweller
posted June 15, 2008 08:26 AM

artmoney

first post.

i cant help op but i would like to know where to get artmoney, i want to be able to "turn on and off" summoning and necromancy for my heroes so i need a skill editor of sorts but i cant find one >.<
____________

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
BAD
BAD


Promising
Known Hero
posted June 15, 2008 08:29 AM
Edited by BAD at 08:30, 15 Jun 2008.

Artmoney is good, but use real professional tools as IDA PRO for instance

The real offsets can't be found with artmoney so easy.

____________

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
joey_sw
joey_sw

Tavern Dweller
posted June 15, 2008 11:34 AM

each main skill and its sub-skill occupies 4 bytes in memory
valid value for that skills are
-1 or FFFFFFFF : Hero hasn't know that skill
0: Hero know the basic level of that skill
1: Advanced
2: Expert
3: Master
4: Grandmaster

editing skills works quite fine, you may enabled more than 5 major skills (and its various sub-skill), and the effect of those skills were there.

anyway, this the memory address' of the data structure for hero:
*due the way the game programmed, the address will change each time player (re-)start or (re-)load the scenario*


for the gender, the value can be 0 (female) or 1 (male)

for the class, valid value are:
00. Knight
01. Priest
02. Lord
03. Mage
04. Death Knight
05. Necromancer
06. Thief
07. Sorcerer
08. Archer
09. Druid
0A. Barbarian
0B. Crusader
0C. Paladin
0D. Prophet
0E. Cardinal
0F. Monk
10. Illusionist
11. Battle Mage
12. Seer
13. Wizard King
14. Wizard
15. Enchanter
16. Reaver
17. Assassin
18. Ninja
19. Dark Lord
1A. Dark Priest
1B. Shadow Mage
1C. Demonologist
1D. Pyromancer
1E. Fireguard
1F. Fire Diviner
20. Witch King
21. Heretic
22. Lich
23. Warlock
24. Warden
25. Beastmaster
26. Bard
27. Beast Lord
28. Summoner
29. Guildmaster
2A. General
2B. Lord Commander
2C. Warlord
2D. Ranger
2E. Field Marshal
2F. Archmage

* archmage will overide if applicable,
* other advanced class will overide if there more than 1 major skill learned and the current value still in basic class

tip: the easiest way to find the offset is search for sequence 3 of 4-byte-integer (Exp - Gender - Class), then auto apply offset against Exp address

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
BAD
BAD


Promising
Known Hero
posted June 15, 2008 06:55 PM
Edited by BAD at 19:00, 15 Jun 2008.

@ joey_sw

These aren't the real offsets because the location is changed everytime and is DMA...As I said try to use IDA or a real debugger to find the real offsets that won't change

I'll post more in Heroes IV Modding



____________

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
cganya
cganya

Tavern Dweller
posted June 16, 2008 03:51 AM

what program/s do you use to see and change these values?
____________

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
joey_sw
joey_sw

Tavern Dweller
posted June 16, 2008 12:09 PM

@ cganya
any program that can (search,) read & write other process memory can get job done.

(listed according to my techyness score )

artmoney: http://www.artmoney.ru/
tsearch: http://wpepro.net/index.php?categoryid=9
IDA: http://www.hex-rays.com/idapro/overview.htm

... and more

@ BAD
i'm looking forward for your very informative & helpful post
i'll elaborte what you find.



status update:
i found pointer(s) on creature stack structure & hero's data structure that point into artifact data structure offsets ... (i quess even artifact is DMA-ed)

however, it seems data on artifact quite complicated as i only able to change what artifact look like (and thus where it can be equiped), BUT... the artifact' name, description, effect were still the old one.

example:
i can chage leather armor artifact, into swordlooking artifact (and its now equipable on right hand), but:

if i hover the mouse it still read "Leather" and,
if i right click it, it give description of Leather armor,
when i try equip & de-equip it, hero stat change according to values of Leather armor have

it still a rough long way...

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
cganya
cganya

Tavern Dweller
posted June 17, 2008 05:55 AM

well i finished that troublesome campain. but i want to still be able to make these changes. i have no experiance hex editing so i go cross eyed when i open up free ida ^.^;

if anyone wants to help me, lets start with changeing a hero's gender (thought that would be a neat feature)
____________

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
andyblast
andyblast


posted July 23, 2008 01:34 PM

@joey_sw:

Hi there,

What I do is generally search for XP & apply offset against the Hero stat table from Artmoney site (actually the that table has erroneously shifted the descriptions one row down relative to addresses & skips summoning skill too).

This works best if hero's XP is 3 figures (>99) which yields manageable no. of results.

Problem: Despite extensively trying, I couldn't find move points or other basic stats. Can you please post that table of yours? Also, a couple lines on changing town allowing build-up would be swell.

Thanks.

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
joey_sw
joey_sw

Tavern Dweller
posted August 28, 2008 06:58 PM

the table

sorry for late reply
the artmoney table for homm4
link: http://www.mediafire.com/?2xmj390lml4

about move point, each stack has its own move points
suppose your hero has another accompanying creaturs / other heroes, each of their move point must be "freezed" if you want that unit moves unlimitedly.

my table empoly groups, make sure to activate view tree group on Artmoney interface option.

among the groups, town data is the most difficult to pin-point by searching.

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
andyblast
andyblast


posted February 23, 2009 08:16 AM

AM table taken off from above link :(

Quote:
sorry for late reply
the artmoney table for homm4
link: http://www.mediafire.com/?2xmj390lml4



Please post the same table if possible somewhere as I need it for the new PC, old one is gone

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
andyblast
andyblast


posted March 06, 2009 03:25 PM

Does anyone else have this table & can upload?

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
andyblast
andyblast


posted April 28, 2011 11:40 AM

Still desperately need that table if anyone's got it, please help

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Lagren
Lagren

Tavern Dweller
posted February 17, 2014 11:50 PM

Any1

Well, I know that the topic is a bit old, but there is no information about editing items in Heroes 4 in the whole Internet...

The most what I have achieved in this field(besides standard change of picture) is copying items.
However I have no idea how to actually create new ones.

The problem is, every time the game load the values of items are changing, they are in right places(searched in relation to experience).
So for example values(I do not know which one is responsible for what for now) Ring of Health is 95996641, 45, 146301029, 17, 146301029, 17 etc..
and next time totally different(besides this low values 45, 17, 17, 63 and 203 are still for Ring of Health, but they are apparently not ones responsible for real stats of Item.

Any help is welcomed, BAD, you wrote something about hex editing guide, but it doesn't exist currently, maybe you know something?

Cheers

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
scbw1234
scbw1234


Hired Hero
posted May 17, 2014 03:05 PM

I was hoping the OP would create an memory or saved game editor after some research.
____________

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Jump To: « Prev Thread . . . Next Thread »
Post New Poll    Post New Topic    Post New Reply

Page compiled in 0.0576 seconds