|
|
Phoenix4ever
Legendary Hero
Heroes is love, Heroes is life
|
posted October 11, 2024 10:44 PM |
|
|
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.
|
|
AlexSpl
Responsible
Supreme Hero
|
posted October 12, 2024 01:07 PM |
|
|
This was done already by RoseKavalier. Read there and on for details.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
AlexSpl
Responsible
Supreme Hero
|
posted October 13, 2024 04:49 PM |
|
|
|
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.
|
|
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 ...
|
|
Andarch1
Tavern Dweller
|
posted October 15, 2024 06:51 AM |
|
|
That worked perfectly, thank you so much
|
|
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.
|
|
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?
|
|
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.
|
|
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.
|
|
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.
|
|
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...
|
|
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.
|
|
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
|
|
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).
|
|
|