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 118 pages long: 1 2 3 4 5 ... 20 40 60 80 100 ... 114 115 116 117 118 · «PREV / NEXT»
Phoenix4ever
Phoenix4ever


Legendary Hero
Heroes is love, Heroes is life
posted October 11, 2024 10:44 PM
Edited by Phoenix4ever at 22:44, 11 Oct 2024.

SilverG said:
I would like to edit the University (if possible) so that it can also make you unlearn skills for a price...

That would be amazing.
Witch Hut too, if possible.

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


Responsible
Supreme Hero
posted October 12, 2024 01:07 PM

This was done already by RoseKavalier. Read there and on for details.

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

Tavern Dweller
posted October 12, 2024 10:49 PM

Can someone convert the .idb file to .i64? I downloaded IDA 9.0 Free, and the free version doesn't seem to have that capability. The .idb format is no longer supported in IDA 9.0, which is why the conversion is necessary. Many thanks in advance.

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


Responsible
Supreme Hero
posted October 12, 2024 11:18 PM

Try to convert it to .i64 with one of the previous version (8.3 free, I think, could do it just fine) and then upgrade to .i64 of 9.0 free.

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

Tavern Dweller
posted October 13, 2024 12:28 AM

AlexSpl said:
Try to convert it to .i64 with one of the previous version (8.3 free, I think, could do it just fine) and then upgrade to .i64 of 9.0 free.


I don't see a way to obtain any earlier version than 9.0 on their website. That's the other issue.

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


Responsible
Supreme Hero
posted October 13, 2024 06:35 AM

I haven't tried 9.0 yet, but according to its release notes it coverts .idb to .i64 automatically (which may not work in the free version, as I understand your statement). Probably, some software sites are still keeping 8.3 or 8.4 versions, if you don't mind to download from such sites. I'll see if I still have old installers later to convert the database for you, or you can send PM to the author (void_17) for help.

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

Tavern Dweller
posted October 13, 2024 11:23 AM

That's what I thought as well until I watched a YouTube video going over the new features (https://www.youtube.com/watch?v=c9ehQfLY-d4). In the video, the person has the Pro version of v9.0, and it shows the list of files in the root directory. The file upg32.exe (which the person mentions in the component that does the auto-conversion) is not present in the Free version of IDA 9.0.

So I would either have to pay $365 to get the Home version of 9.0 (which hopefully would contain the converter component), or worst case $1K+ for the Pro version.

I looked for IDA 8.3/8.4 on such sites that you mention, but the latest version I can find is IDA 7.x. That was consistent across all the sites I tried.

I've spent several hours researching this today and trying different things that didn't work, so if there is a quick (and preferably free) solution to this, I would really appreciate the guidance. This might help other people avoid the same problem too.

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


Responsible
Supreme Hero
posted October 13, 2024 04:49 PM

Tried this?

https://docs.hex-rays.com/user-guide/user-interface/database-conversion-from-idb-to-i64

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

Tavern Dweller
posted October 13, 2024 08:30 PM

AlexSpl said:
Tried this?

[url=https://docs.hex-rays.com/user-guide/user-interface/database-conversion-from-idb-to-i64]https://docs.hex-rays.com/user-guide/user-interface/database-conversion-from-idb-to-i64[/url]


Yep it didn't work. I think that worked in 8.x, but now that it's "automated" in 9.x, that command doesn't seem to do anything except give me the same error message that I get when trying to open it thru the menu.

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


Responsible
Supreme Hero
posted October 14, 2024 02:20 PM
Edited by AlexSpl at 15:02, 15 Oct 2024.

Well, I did a small research. Even tried several freeware versions of IDA myself, starting from 8.4 down to 7.0 The problem is... none of them can convert .idb to .i64 or even open .idb (32-bit databases). So, I guess, the only solution is to contact the author and ask him to convert .idb to .i64.

Well, you can also try this conversion, but I'm not sure if it was done correctly, as the database shrank twice in size

{password} was the first Alchemist to perfect the art of converting useless soft metals into ...

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

Tavern Dweller
posted October 15, 2024 06:51 AM

That worked perfectly, thank you so much

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


Responsible
Supreme Hero
posted October 16, 2024 10:28 AM
Edited by AlexSpl at 10:48, 16 Oct 2024.

Quote:
can someone tell me the adresses for the Endless Bag, Purse and Sack of Gold where the gold bonuses are written at, please? (HH3 HD)

Now, when you have the database, look at the method game::ComputeDailyGold() and change the following lines as you like -

v12 = v24 + 1000 * playerData::NumOfGivenArtifact(v5, ARTIFACT_ENDLESS_SACK_OF_GOLD);
v13 = v12 + 750 * playerData::NumOfGivenArtifact(v5, ARTIFACT_ENDLESS_BAG_OF_GOLD);
v14 = v13 + 500 * playerData::NumOfGivenArtifact(v5, ARTIFACT_ENDLESS_PURSE_OF_GOLD);


This fragment starts at 4C76F7h.

Yet, for a hex patch you have to know the assembly language

004C76F7 push    73h
004C76F9 mov     ecx, ebx
004C76FB call    int playerData::NumOfGivenArtifact(int)const; this returns number of sacks in eax
004C7700 lea     ecx, [eax+eax*2]; ecx = sacks * 3
004C7703 push    74h
004C7705 lea     eax, [eax+ecx*8]; eax = sacks + ecx * 8 = sacks + sacks * 3 * 8 = sacks * 25
004C7708 mov     ecx, ebx
004C770A lea     edx, [eax+eax*4]; edx = sacks * 25 * 5 = sacks * 125
004C770D mov     eax, [ebp+var_4]
004C7710 lea     edi, [eax+edx*8]; edi = total_gold + sacks * 125 * 8 = total_gold + sacks * 1000


Well, all this is just to multiply by 1,000 So, I recommend to optimize this code or just write C++ style plugins to make your changes.

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


Known Hero
posted October 16, 2024 04:26 PM

AlexSpl said:
Quote:
can someone tell me the adresses for the Endless Bag, Purse and Sack of Gold where the gold bonuses are written at, please? (HH3 HD)

Now, when you have the database, look at the method game::ComputeDailyGold() and change the following lines as you like -

v12 = v24 + 1000 * playerData::NumOfGivenArtifact(v5, ARTIFACT_ENDLESS_SACK_OF_GOLD);
v13 = v12 + 750 * playerData::NumOfGivenArtifact(v5, ARTIFACT_ENDLESS_BAG_OF_GOLD);
v14 = v13 + 500 * playerData::NumOfGivenArtifact(v5, ARTIFACT_ENDLESS_PURSE_OF_GOLD);




Thanks AlexSpl as always... but how do I fin those segments? That's what I don't know v12 = v24 etc... where can I search for that?

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


Responsible
Supreme Hero
posted October 16, 2024 10:22 PM

I'll share some '101' courses taking this case as an example. But I need to know what changes you like to see.

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


Known Hero
posted October 17, 2024 08:03 AM
Edited by SilverG at 08:28, 17 Oct 2024.

Hello AlexSpl,

that would be awesome. Thanks.

Well for starters I'd like to know how can new Artifacts be made/implemented, can special abilities be given to other units too, not just removing one unit type and adding the number of a new unit, finally - this is kind of... I don't know how to describe it.. So here goes:

I have tweaked via HxD the resources each Resource Silo gives to a specific town + additional Gold, yet as soon as the Silos are built and the player right clicks on the Town, the game crashes - note: this crash does not happen when you click on the AI town and they have the Silo too. What can be done to mitigate this issue?

There are more questions, but even I know, dear Alex, that you are human and don't need too much headache.

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


Responsible
Supreme Hero
posted October 17, 2024 12:26 PM
Edited by AlexSpl at 12:28, 17 Oct 2024.

Quote:
Well for starters I'd like to know how can new Artifacts be made/implemented, can special abilities be given to other units too, not just removing one unit type and adding the number of a new unit, finally - this is kind of... I don't know how to describe it..

As I said before, such complex tasks cannot be easily done via hex-editing. And even if you dare, it would be a time-consuming affair.

Quote:
I have tweaked via HxD the resources each Resource Silo gives to a specific town + additional Gold, yet as soon as the Silos are built and the player right clicks on the Town, the game crashes - note: this crash does not happen when you click on the AI town and they have the Silo too. What can be done to mitigate this issue?

This is the example of a more appropriate task for hex-editing. I think your game crashes because of some error in your patch, or your patch is incomplete, so you have to write additional code to handle human towns. Let me see your patch.

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


Known Hero
posted October 17, 2024 12:57 PM

AlexSpl said:
Quote:
Well for starters I'd like to know how can new Artifacts be made/implemented, can special abilities be given to other units too, not just removing one unit type and adding the number of a new unit, finally - this is kind of... I don't know how to describe it..



I wish these to be done via IDA.

As for the Resource Silo tweaks, I have ONLY changed the STATIC values of the specific resource types. Nothing more...

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


Responsible
Supreme Hero
posted October 17, 2024 08:25 PM

Quote:
I wish these to be done via IDA.

Alas, all the changes you make apply only to an IDA database, not the game. You have two ways - a) IDA + FASM; b) IDA + plugins (applicable only for the original game with the HD mod).

Quote:
As for the Resource Silo tweaks, I have ONLY changed the STATIC values of the specific resource types. Nothing more...

I recommend to use TxtEdit to avoid errors when editing txt resources. If you changed values in your executable, re-check them thouroughly, as you might have overwritten important data (such as code, another data, etc.) due to human error.

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


Known Hero
posted October 17, 2024 09:18 PM

AlexSpl said:
Quote:
I wish these to be done via IDA.

Alas, all the changes you make apply only to an IDA database, not the game. You have two ways - a) IDA + FASM; b) IDA + plugins (applicable only for the original game with the HD mod).


I am using HD mod. >D

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


Responsible
Supreme Hero
posted October 17, 2024 11:41 PM

Quote:
I am using HD mod. >D

You have no choice after all Every confusing problem has a solution (well, in Heroes world), you just have to spend some time to locate it.

Btw, changing cost should not have such an effect, so try to make your changes again after a fresh installation. I'm sure, the culprit is one of your other pathes (even if they seemed to work normally before).

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Jump To: Next Thread » This Popular Thread is 118 pages long: 1 2 3 4 5 ... 20 40 60 80 100 ... 114 115 116 117 118 · «PREV / NEXT»
Post New Poll    Post New Topic    Post New Reply

Page compiled in 0.2304 seconds