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 3.5 - WoG and Beyond > Thread: How to edit HotA?
Thread: How to edit HotA? This Popular Thread is 111 pages long: 1 10 20 30 40 50 60 70 80 90 ... 92 93 94 95 96 ... 100 110 111 · «PREV / NEXT»
BTB
BTB


Famous Hero
Moist & Creamy
posted May 29, 2021 11:09 AM
Edited by BTB at 11:11, 29 May 2021.

EDIT: actually, looking at what you posted, it looks like you have indeed found the resource output for mines (this actually would start with Sawmills at 278288, then Mercury Labs, Ore pits, etc.)

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


Known Hero
posted May 29, 2021 10:51 PM
Edited by silverG at 20:24, 30 May 2021.

This is true, however, if you want to temper these... first there's the text part in the hex editor which starts at 278288 - changing the values here tell the game to only change what is shown when you capture the mine, NOT the actual output.

for example changing the Sawmill data from 02 00 00 00 to 0A 00 00 00 which is 10/day, the game will show this TEXT only, but will not apply the actual value.

To edit the values themselves go to 277978. These are the actual output values. CHanging these will actually take effect in game.

One again taking the Sawmill 02 00 00 00 as an example 0A 00 00 00 which is 10/day, after the first turn, the 10 units have been applied.

I would strongly recomend changing both values on both the above mentioned addresses (oh and also in the MINEEVNT.TXT as well) for it all to look feasable.

Another question:

IS there a way to make the CRBANKS reset themseves every month or two?
And where is the resource silo output located at?

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


Famous Hero
Moist & Creamy
posted May 31, 2021 02:30 AM

CrBanks resetting would be interesting, but would be kinda broken if the ones with artifacts did. Would have to somehow just be the ones with resources... which I don't see happening.

Resource Silos have been a pain in my ass for awhile. I look for them every once in awhile and never get anywhere. They're buried pretty deep in the code most likely because it's shared by the bonus artifacts at the start of the game routine.

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


Known Hero
posted May 31, 2021 11:45 AM

For the complete CRBanks reset, I wouldn't mind...

For we could sell the Artifacts at the Artifact Merchants for more resources.

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


Famous Hero
Moist & Creamy
posted May 31, 2021 12:09 PM

In any case, it's not really something I'd know how to approach offhand.

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


Responsible
Supreme Hero
posted May 31, 2021 05:04 PM

2BTB: To find something you are interested in, use breakpoints. Resource Silo changes player's resources, so you can set a breakpoint on writing to memory, and your debugger will land you near the code that does that change.

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


Famous Hero
Moist & Creamy
posted May 31, 2021 05:49 PM

Yeah, I got that far. Just got lost trying to backtrace from there.

4BFFA8 - jmp dword ptr [ecx*4+004C01B4]
EAX = resource bonus
ECX = type of resource (1 = Crystal, 2 = Gems)


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


Responsible
Supreme Hero
posted May 31, 2021 09:38 PM

Look there - 0x4B88D6 (the instruction @ 4B8924h adds resources from Resource Silo to player's income, then the instruction @ 4C7EC7h adds them to player's actual resources).

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


Known Hero
posted May 31, 2021 09:53 PM

@AlexSpl

Sorry, but in H3HD I can't find any of those offsets (in HxD edit).

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


Famous Hero
Moist & Creamy
posted June 01, 2021 09:37 AM

silverG said:
@AlexSpl

Sorry, but in H3HD I can't find any of those offsets (in HxD edit).


I added this line to the very beginning of my guide:

Another thing to note is that all addresses specified in this document will be as they would appear in a
hex editor; they will be offset by 400000 during runtime. Thus, 23EA68 in a hex editor will actually be
63EA68 when the game is running. Any code examples given will refer to the runtime addresses, while the
commentary (if applicable) will refer to the addresses as they would be seen in a hex editor.

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


Legendary Hero
Heroes is love, Heroes is life
posted June 01, 2021 12:23 PM

I assume still nobody knows how to edit Cove's Mage Guild?

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


Known Hero
posted June 01, 2021 09:51 PM

Just did some research.... the resource uotput for gold mine is not there where all the other resource buildings are in HxD.

When changing the E8 03 00 00 to DC 05 00 00 which is 1,500; the game still applies the 1,000 Gold as standard.

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


Known Hero
posted June 04, 2021 10:25 AM
Edited by silverG at 14:09, 04 Jun 2021.

Hello,

how do I unban these creatures from the Refugee Camps? (I forgot, and lost all data from my backup txt file )

Refugee Camps specifically ban six creatures at the following addresses:

Sharpshooters 0C902B Enchanters 0C903A
---------------------- ----------------------
Azure Dragons 0C8FEF Faerie Dragons 0C900D
Crystal Dragons 0C8FFE Rust Dragons 0C901C

And for:

--------------
ELEMENTAL ORBS
--------------

These are specified at 0E5A02 (Air), 0E5A4F (Earth), 0E5A9A (Fire), and 0E5ADE (Water).

The 50% damage bonus is a DWORD pointer located at 0E5B17 (30 EB 63 00, or 50%).

Other values you can set are 25% (14 83 67 00), 20% (28 83 67 00), or 10% (F0 82 67 00).

(Note: these values differ from the ones above since they're actually 1.XX, not 0.XX)

is it possible to take the damage bonus to 75%?

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


Famous Hero
Moist & Creamy
posted June 04, 2021 03:23 PM

silverG said:


Hello,

how do I unban these creatures from the Refugee Camps?


Specify an invalid creature ID, like 7A.

silverG said:


is it possible to take the damage bonus to 75%?


You can make the bonus anything you want. Use the float to hex converter and search the code for the desired value. If it's not found, you can create your own in any free space.

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


Known Hero
posted June 04, 2021 07:24 PM

BTB said:
silverG said:


Hello,

how do I unban these creatures from the Refugee Camps?


Specify an invalid creature ID, like 7A.

silverG said:


is it possible to take the damage bonus to 75%?


You can make the bonus anything you want. Use the float to hex converter and search the code for the desired value. If it's not found, you can create your own in any free space.


Cool, thanks BTB.

One more question though

Is it possible for the dwelling bonus in a town, instead of the External Dwelings +1 (BONUS) to change it to the actual number which the dwelling spawns the creatures?

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


Famous Hero
Moist & Creamy
posted June 04, 2021 08:39 PM

Maybe? Seems kinda broken. Off-hand, I'd guess it needs some free space since +1 bonuses are usually INC commands.

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


Known Hero
posted June 05, 2021 09:04 PM
Edited by silverG at 23:53, 05 Jun 2021.

The growth bonuses of the Citadel and Castle can be changed to your liking with a long
patch starting at 1BFFF7 and ending at 1C004F:


Where can we change the text which is shown at the growth?

For example if I wanted the Citadel to double and the Castle to triple the growth, when I click on the unit icon in the bottom left corner, it still states
BASIC GROWTH +XX
Citadel +YY (original 50%) - not the changed value
Castel + ZZ (original 100%) - not the changed value

but in the header it shows the changed values for the growth.

and the gold mine output still doesn't work, should we edit all the E8 03 00 00?

And I've just got an error report, game crashed:

e-mail: baratorch@yandex.ru

[HOMM3 HD CRASH LOG]

Log
{
compability_dir = C:GOG GamesHeroes of Might and Magic 3 Complete_HD3_DataCompability#com_en
EXE_VERSION & SOD
SUCCESS: DO PARALLEL
No Files.ini for 'C:GOG GamesHeroes of Might and Magic 3 Complete_HD3_DataCompability#com_en'

}

HOMM3 HD version: 5.2 R38
Time {   06/05/2021 23:28:24 }

GUN:  [9991_9W97_9975_V25X.GSMHM4487TKFP MENV GLHSRYZ 487TY]

Exception
{
  Module: Heroes3.exe
  Adress:      [ 0x004E5B15 ]
  Code:        EXCEPTION_ACCESS_VIOLATION
  Flags:       0x00000000
  Information: read of address: 0x3FE00000
}

Context { EAX: 0x0000000C, ECX: 0x07689377, EDX: 0x006854A0, EBX: 0x0000000F, ESP: 0x00199580, EBP: 0x00199594, ESI: 0x076891EA, EDI: 0x00000201 }

Call stack
{
  [ 0x004E59D0 ] called from [ 0x005275FC ]
  [ 0x005275C0 ] called from [ 0x00527975 ]
  [ 0x005278B0 ] called from [ 0x00527AF2 ]
  [ 0x00527A90 ] called from [ 0x00433DA4 ]
  [ 0x00433C60 ] called from [ 0x00433BC4 ]
  [ 0x00433BB0 ] called from [ 0x00433B4A ]
  [ 0x00433B40 ] called from [ 0x0049F570 ]
  [ 0x0049F450 ] called from [ 0x004A82DE ]
  [ 0x004A8160 ] called from [ 0x004ACA04 ]
  [ 0x004AC990 ] called from [ 0x0042FE6D ]
  [ 0x0042FC50 ] called from [ 0x004302E5 ]
  [ 0x0042FEE0 ] called from [ 0x00526EB0 ]
  [ 0x00526C90 ] called from [ 0x00526A51 ]
  [ 0x005266D0 ] called from [ 0x0052647F ]
  [ 0x00526360 ] called from [ 0x00408B38 ]
  ? called from before [ HD_SOD.dll+0x1E10E ]
  [ HD_SOD.dll+0x1E040 ] called from [ 0x046410B5 ]
  [ HD_SOD.dll+0x8D900 ] called from [ 0x069B0EA3 ]
  [ HD_SOD.dll+0xA7DF0 ] called from [ 0x069B1A80 ]
  ? called from before [ 0x07664060 ]
}

Call stack V2
{
  004E5B15 (Heroes3: 00400000): (?): (?)
  00527601 (Heroes3: 00400000): (?): (?)
  0052797A (Heroes3: 00400000): (?): (?)
  00527AF7 (Heroes3: 00400000): (?): (?)
  00433DA9 (Heroes3: 00400000): (?): (?)
  00433BC9 (Heroes3: 00400000): (?): (?)
  00433B4F (Heroes3: 00400000): (?): (?)
  0049F575 (Heroes3: 00400000): (?): (?)
  004A82E3 (Heroes3: 00400000): (?): (?)
  004ACA09 (Heroes3: 00400000): (?): (?)
  0042FE72 (Heroes3: 00400000): (?): (?)
  004302EA (Heroes3: 00400000): (?): (?)
  00526EB5 (Heroes3: 00400000): (?): (?)
  00526A56 (Heroes3: 00400000): (?): (?)
  00526484 (Heroes3: 00400000): (?): (?)
  00408B3D (Heroes3: 00400000): (?): (?)
  052EE10E (HD_SOD: 052D0000): (?): (?)
  046410BA (?): (?): (?)
  069B0EA8 (?): (?): (?)
  069B1A85 (?): (?): (?)
  053314A5 (HD_SOD: 052D0000): (?): Start
  58C66AF9 (patcher_x86: 58C60000): (?): (?)
  069B1EDE (?): (?): (?)
  069B1EEC (?): (?): (?)
  74312F17 (KERNELBASE: 74210000): (?): InitOnceExecuteOnce
  58C66AF9 (patcher_x86: 58C60000): (?): (?)
  004EC68A (Heroes3: 00400000): (?): (?)
  069E0813 (?): (?): (?)
  004F051B (Heroes3: 00400000): (?): (?)
  052EF37E (HD_SOD: 052D0000): (?): (?)
  04641B2F (?): (?): (?)
  069E02A8 (?): (?): (?)
  1000DC93 (_HD3_: 10000000): (?): HdCommon_Set
  028E0067 (?): (?): (?)
  74798654 (KERNEL32: 74780000): (?): BaseThreadInitThunk
  77154A47 (ntdll: 770F0000): (?): RtlGetAppContainerNamedObjectPath
  77154A17 (ntdll: 770F0000): (?): RtlGetAppContainerNamedObjectPath
}

Modules
{
  0x00400000: Heroes3.exe (size: 0x002CD000, entry point: 0x0061A884) - C:GOG GamesHeroes of Might and Magic 3 Complete_HD3_DataHeroes3.exe
  0x10000000: _HD3_.dll (size: 0x0004A000, entry point: 0x1001AD0C) - C:GOG GamesHeroes of Might and Magic 3 Complete_HD3_.dll
  0x58C60000: patcher_x86.dll (size: 0x00079000, entry point: 0x58C703D3) - C:GOG GamesHeroes of Might and Magic 3 Completepatcher_x86.dll
  0x001E0000: smackw32.dll (size: 0x0001B000, entry point: 0x001EC0B0) - C:GOG GamesHeroes of Might and Magic 3 Completesmackw32.dll
  0x02830000: binkw32.dll (size: 0x0002B000, entry point: 0x02841705) - C:GOG GamesHeroes of Might and Magic 3 Completebinkw32.dll
  0x028B0000: IFC20.dll (size: 0x00023000, entry point: 0x028BF04E) - C:GOG GamesHeroes of Might and Magic 3 CompleteIFC20.dll
  0x5BA30000: HD_UPD.dll (size: 0x0003C000, entry point: 0x5BA35405) - C:GOG GamesHeroes of Might and Magic 3 CompleteHD_UPD.dll
  0x04C10000: HD_MCR.dll (size: 0x002EB000, entry point: 0x04DCE73C) - C:GOG GamesHeroes of Might and Magic 3 CompleteHD_MCR.dll
  0x04F00000: HD_TC2.dll (size: 0x003CC000, entry point: 0x04F0BBC6) - C:GOG GamesHeroes of Might and Magic 3 CompleteHD_TC2.dll
  0x04580000: HD_SCX2.dll (size: 0x00021000, entry point: 0x04586346) - C:GOG GamesHeroes of Might and Magic 3 CompleteHD_SCX2.dll
  0x052D0000: HD_SOD.dll (size: 0x010F5000, entry point: 0x053BD7C8) - C:GOG GamesHeroes of Might and Magic 3 CompleteHD_SOD.dll
  0x045D0000: HW_SOD.dll (size: 0x00050000, entry point: 0x046018B7) - C:GOG GamesHeroes of Might and Magic 3 CompleteHW_SOD.dll
  0x21100000: Mss32.dll (size: 0x0005F000, entry point: 0x2112F2E5) - C:GOG GamesHeroes of Might and Magic 3 Complete_HD3_DataMss32.dll
  0x5B9E0000: cursors.dll (size: 0x0004A000, entry point: 0x00000000) - C:GOG GamesHeroes of Might and Magic 3 Complete_HD3_DataCommoncursors.dll
  0x26F00000: Mp3dec.asi (size: 0x0002A000, entry point: 0x26F0A805) - C:GOG GamesHeroes of Might and Magic 3 Complete_HD3_DataMp3dec.asi
}

Command Line
{
  <#com_en>
}

Main INI
{

<Version> = 5002331

<Language> = "#en.ini"

<Graphics.Resolution> = 1180, 664

<Graphics.Mode> = 5

<Graphics.ComplexFilter> = 2

<Graphics.Threads> = 12

<Graphics.SimpleFilter> = 2

<Graphics.SystemCursors> = 1

<HD+> = 1

<HD+.Settings> = 0, 0, 0, 0, 0, 1, 0, 60000, 60000, 0, 0, 0, 6, 0

<Misc.TournamentSaver> = 1

<Misc.BattleSaver> = 1

<Packs>

<Sys.NoCD> = 1

<Sys.CPU.ReduceUsage> = 0

<Sys.WriteToIniInsteadRegistry> = 1

<UI.AdvMgr.SkipMapMsgs> = 1

<UI.Battle.Queue> = 0

<UI.Battle.ShowAlwaysHeroInfo> = 1

<UI.ClipCursor> = 1

<UI.DarkTransitions> = 1

<UI.Ext.ScenarioMgr.Settings> = 4, 144, 2, 8, 0, 0, -1, 0, 0, 0, 0, 0, 1, 1

<UI.Ext.ScenarioMgr.Folders> = 1

<UI.Ext.TownMgr.AvailableInsteadGrowth> = 1

<UI.HiRezCore> = 1

<UI.QuickArmyManagementMode> = 0

<UI.RecruitDlg.AutoSet> = 1

<UI.RecruitDlg.AutoSet.Max> = 0

<UI.Tavern.InviteHero> = 0

<Update.CheckAtStart> = 1

<OpenGL.VGL.Version> = 1

<OpenGL.FixedRefreshRate> = 1

<OpenGL.Interpolation> = 2

<OpenGL.Upscaling> = 2

<OpenGL.SingleWindow>

<OpenGL.Renderer>

<OpenGL.UpdateMode>

<OpenGL.SmoothMapScroll>

<OpenGL.SmoothHeroMove>

<OpenGL.Aspect>

<OpenGL.VSync>

<OpenGL.Colors.HueSat>

<OpenGL.Colors.RgbInput>

<OpenGL.Colors.RedInput>

<OpenGL.Colors.GreenInput>

<OpenGL.Colors.BlueInput>

<OpenGL.Colors.RgbGamma>

<OpenGL.Colors.RedGamma>

<OpenGL.Colors.GreenGamma>

<OpenGL.Colors.BlueGamma>

<OpenGL.Colors.RgbOutput>

<OpenGL.Colors.RedOutput>

<OpenGL.Colors.GreenOutput>

<OpenGL.Colors.BlueOutput>

<Show Intro> = 1

<AppPath> = "C:GOG GamesHeroes of Might and Magic 3 Complete"

<Music Volume> = 0

<Sound Volume> = 0

<Last Music Volume> = 0

<Last Sound Volume> = 0

<Walk Speed> = 4

<Computer Walk Speed> = 3

<Show Route> = 0

<Move Reminder> = 1

<Quick Combat> = 0

<Video Subtitles> = 1

<Town Outlines> = 1

<Animate SpellBook> = 1

<Window Scroll Speed> = 2

<Bink Video> = 0

<Blackout Computer> = 0

<First Time> = 0

<Test Decomp> = 0

<Test Read> = 0

<Test Blit> = 0

<Unique System ID> = "UU5"

<Network Default Name> = "Player"

<Autosave> = 1

<Show Combat Grid> = 0

<Show Combat Mouse Hex> = 1

<Combat Shade Level> = 1

<Combat Army Info Level> = 1

<Combat Auto Creatures> = 1

<Combat Auto Spells> = 1

<Combat Catapult> = 1

<Combat Ballista> = 1

<Combat First Aid Tent> = 1

<Combat Speed> = 2

<Main Game Show Menu> = 1

<Main Game X> = 10

<Main Game Y> = 10

<Main Game Full Screen> = 1

<CDDrive>

<HD.QuickCombat> = 0
}

HKLMSOFTWAREMicrosoftWindows NTCurrentVersion
{
  'Windows 10 Pro'  '6.3'  '16299.rs3_release.170928-1534'
}

GetVersionEx { 6.2.9200 () 0x100-0x1 }

Some ingame values
{
  FullScreen Mode = 1
  Game Type       = 0
  Network Game    = 0

            Me: 3
  Active Player: 1
  Day = 1 32
  Map file = Player 2021.06.05 21;17 default.h3m
  Last RMG Seed = 0
}

This constantly hapens when I visit my 1st town to get creatures - be it at day 2 of the next week or day 6....or anywhere inbetween.


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


Famous Hero
Moist & Creamy
posted June 06, 2021 04:09 PM

Ok, that whole report... way too much. If the game crashes after you change something, you're mostly only interested in the address where it happened.

Assuming you're making changes one by one, does this still happen if you undo the last one you made?

The Citadel/Castle changes aren't ones I've actually tested myself, it's an AlexSpl hack. I could probably look at it and see what the problem is, but first we gotta figure out what's making your game crash.

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


Known Hero
posted June 06, 2021 08:00 PM
Edited by silverG at 20:35, 06 Jun 2021.

I've reset the Citadel/Castle hax...

The game crashes every time i visit my town.

I am positive about this, tried it multiple times.

As soon as my hero enters ANY town for that matter, wether I garrision him and take him out at the same time, or not, the game crashes as soon as I click on END TURN and pink is about to end his turn.

This crash happens ONLY in HoMM3 HD not in Vanila Homm3 SoD.

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


Famous Hero
Moist & Creamy
posted June 06, 2021 10:43 PM

Does it happen in a completely unmodified version of the HD.exe?

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Jump To: « Prev Thread . . . Next Thread » This Popular Thread is 111 pages long: 1 10 20 30 40 50 60 70 80 90 ... 92 93 94 95 96 ... 100 110 111 · «PREV / NEXT»
Post New Poll    Post New Topic    Post New Reply

Page compiled in 0.0970 seconds