|
Thread: Mod for adding new creatures, abilities, projectiles and spells | This thread is pages long: 1 2 3 · «PREV |
|
karmakeld
Responsible
Supreme Hero
|
posted July 23, 2022 03:32 PM |
|
|
Albyx said: Windows started thinking that h4ms.dll is a virus. It didn't happen before, but at some point Windows defender started deleting it. But it works with your version, maybe you had same problem?
I think this is a common issue with Win 8 and surely Win 10. Cant you add it, to safe programs so it wont think it's a virus?
Same goes with Equilibris, likely cause its recognized it as a russian program.
____________
|
|
karmakeld
Responsible
Supreme Hero
|
posted July 23, 2022 03:33 PM |
|
|
kkfkkkfk said: Well done.
All neutral Army will be forcibly divided into 3 groups during the battle in Equilibris.
I wonder if there is any way to change it back.
I dont recall anyone having found where the code for this was changed, other than the Equi team, sadly.
____________
|
|
NimoStar
Responsible
Legendary Hero
Modding the Unmoddable
|
posted July 29, 2022 01:12 PM |
|
|
Quote: Windows started thinking that h4ms.dll is a virus. It didn't happen before, but at some point Windows defender started deleting it. But it works with your version, maybe you had same problem?
Quote: All neutral Army will be forcibly divided into 3 groups during the battle in Equilibris.
I wonder if there is any way to change it back.
Both reasons why I prefer "equiless" versions.
BTW it's not because equilibris is a "russian program" but because their DLL is a pure hex hack.
***
I got this message when opening the pack, any ideas? Missing main is suppossed to be like that?
____________
|
|
kkfkkkfk
Adventuring Hero
Nothing is impossible
|
posted July 29, 2022 01:35 PM |
|
Edited by kkfkkkfk at 13:36, 29 Jul 2022.
|
This is because it lacks h4ms.vcxproj.(Need to create by yourself)
In fact, it is a semi-finished product, and many places need to be improved by ourselves.
You can use H4Zer0 project file.
Delete parts you don't need.
All Creatures Ability can be customized in DLLmain (or Call your own header file)
|
|
NimoStar
Responsible
Legendary Hero
Modding the Unmoddable
|
posted September 03, 2022 01:36 PM |
|
Edited by NimoStar at 13:38, 03 Sep 2022.
|
hey, is there a github repository for this? If there is it isn't linked in the first post
Since the base by rosekavalier is free and open source, I believe this one should be as well as a derivative
____________
|
|
BrucknerHun
Hired Hero
|
posted February 21, 2023 08:05 PM |
|
|
Hello there H4Zer0!
I would like to share with you our Heroes 4 Ultimate discord mdding and playing server, then we can discuss things about modding and all heroes 4 related stuff!
Discord link: https://discord.gg/RKXU23p6bb
I hope that you didnt dissappeared forever! From the time you have last posted, H4 Ultimate also got an update.
And Albyx created H4 Enhacement mod as well, and updated it with better AI features, town conversion and more!!!
We have a very bright future ahead of Heroes 4! Letss goo!
|
|
H4Zer0
Tavern Dweller
|
posted February 23, 2023 12:08 AM |
|
|
NimoStar said: hey, is there a github repository for this? If there is it isn't linked in the first post
Since the base by rosekavalier is free and open source, I believe this one should be as well as a derivative
Sorry for the late reply, I forgot about this thread
Currently there's no Github repo, I've added a direct link to my whole modding folder because in this case just the code
is not enough, you also need the images and resource files etc but maybe I will make a repo just for reference and in the future
when the full mod will be ready I think I will also put it on Mod DB together with its source code.
@BrucknerHun
Thanks for the link, I've just joined your Discord server
I didn't disappear at all, I've just been very busy with work and other things but I'm slowly catching up!
Yes I know, I've been following Albyx's very nice Enhancement mod progress as well.
Lately I've worked mostly on the heroes Advanced Classes, to change them and make them more useful etc.
Very soon I'll also make a post here on HC about some interesting creature abilities formulas that I've found
____________
|
|
Haste
Tavern Dweller
|
posted July 01, 2023 05:27 PM |
|
|
H4Zer0 said: Hi everyone,
I've been working since last year on a mod to balance some buildings and creatures stats mostly to play with a friend that I've also played a lot of H3 in the past.
At the beginning of this year I wanted to see if I can add new creatures and then I actually succeded and in the past few months I've also managed to add new creature abilities,
new ranged projectiles and new spells.
The reason I'm making this post is to share all this information I've discovered (mostly through reverse engineering the exe) on making this mod, which I've named for now "Equilibris++" since
it's based on the Equilibris 3.55 mod, and I'm not planning on releasing it on Mod DB or other sites, at least not in the near future, since there are still many things to do anyway.
Here are the mod files archive, it also includes the HD Mod by Verok:
[url]https://www.mediafire.com/file/pv4798sfwuonypm/eq_patch.zip/file[/url]
[snip]
Very interesting project!
IMO, the biggest obstacle to H4 modding is the sheer amount of manual labor to make even small changes. An idea I've had for a while is to add some kind of Lua support.
Basically, you would add the lua54.dll (350 kb or so) to the game. Then, you would expose h4api to the Lua runtime, and add some hooks. After that, you could write the rest of your code in Lua, using C++ only for the very low-level stuff.
If you wanted to get ambitious, you could even try and refactor this, so you have a function like add_new_creature that appended a new creature ID and made other necessary changes, and then you could modify this in your own code, without having to directly patch the game. You could include all the code, h4r, etc inside of a map file, and then load it using some standardized hook.
What is the upstream of the h4api folder? RoseKavalier's h4api on GitHub seems to be quite different, for example h4ms/h4api/H4Constants.hpp is H4MS/H4API/lib/h4api/H4_Constants.hpp in the git version. Do you have the version without creatures, so you can take a diff and see what exactly has been changed?
Looking at the code: What's going on at the beginning of NewMissiles.h? There are a lot of functions that are multiplying various registers by total_missiles_nr+1. What is their purpose? What are the addresses being patched?
____________
|
|
Pol1123
Tavern Dweller
|
posted December 03, 2023 12:42 AM |
|
|
Hello everyone, I would like to increase the gold income for the city council and town hall, but I have no idea where to start.
|
|
karmakeld
Responsible
Supreme Hero
|
posted December 03, 2023 06:29 PM |
|
|
Pol1123 said: Hello everyone, I would like to increase the gold income for the city council and town hall, but I have no idea where to start.
You need to extract the txt files. Info/settings on Town Hall income is set in one of those
____________
|
|
baronus
Legendary Hero
|
posted December 05, 2023 02:25 PM |
|
|
But its only description of building!
Its more complicated.
First publicated by kkfkkkfk:
Town income
Scrap from my bilingual guide:
Dochod miasto - faktyczny/wykazywany
City income - in fact/ information cell
xxx 49a108/49a2ba e803 = 1000 => 1000
xxx 49a11c/49a2cd fa00 = .250 => .750
xxx 49a121/49a2d2 f401 = .500 => .500
* Trzeba też zmienić opis w tabelce txt.
* Needed changes in txt tables too.
You need change 3 things real income information about income building description.
Recommended values from my mod.
500
1000 x2
2000 x4
All economy must be ballanced eg. units costs!
Mine gives 1000 city 2000 IT think its best proportion. Now mine gives 2x income! Its too much. One minę gives you too powerfull boost.
|
|
pol11234
Tavern Dweller
|
posted December 07, 2023 09:10 PM |
|
|
How to create a plugin that increases revenue from the city council and town hall?
​
____________
|
|
Albyx
Known Hero
|
posted December 07, 2023 11:43 PM |
|
Edited by Albyx at 23:48, 07 Dec 2023.
|
If you have no previous experience in this the fastest way is to use code from this thread as example and remove everything you don't need. At the end you should have Visual Studio project with dllmain.cpp, patcher_x86.hpp and H4API, it's skeleton of pretty much every H4 plugin. Then you add your code to the dllmain, for change of income it's enough to use WriteByte or WriteDword functions to modify values located at given addresses (examples of these function usage are also in H4Zer0 code).
Another cleaner but maybe harder option is to create new c++ dynamic library (dll) project and add plugin "skeleton" files yourself. When you understand what's going on in the project, what extra headers/libraries you need and why, second solution is better.
P.S. Since the same method of plugin creation is used by H3 modders, you can search for H3 plugin creation guides too if there are any.
|
|
kkfkkkfk
Adventuring Hero
Nothing is impossible
|
posted December 08, 2023 08:19 PM |
|
|
For beginners, writing DLLs is very difficult.
The simplest way is to modify the heroes4.exe.
Using hex editor or Ollydbg.
|
|
|