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: Portal plugin
Thread: Portal plugin
Albyx
Albyx


Known Hero
posted July 12, 2022 09:38 AM
Edited by Albyx at 09:41, 12 Jul 2022.

Portal plugin

This plugin allows to add new creatures to portal or set the default one.
To use it you need files from H4Zero mode and his h4ms project.
You need to include portal.h file into dllmain.cpp, then add functions you want to DllMain function.

Descriptions:

FixRecruitScreen - makes attack and defense values to be correct on recruiting screens (before they were rounded down and sometimes differed from real stats).

SetDefaultPortalCreature - sets creature that appears after building portal (waspwort in original game). Creature code is set in default_portal_creature variable in portal.h

SetPortalCreatures - changes creatures in portal.
Creatures are set in codes_array. If you add or remove creatures, also change creature_count variable.


Link to the file: https://www.mediafire.com/file/fdgzznzk83ul3gn/Portal.h/file

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

Tavern Dweller
posted July 12, 2022 04:17 PM

Very nice job and plugin you made! Thank you for the fixes and the Creature Portal new creatures options.

I'm very glad that you found my mod useful.

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


Adventuring Hero
Nothing is impossible
posted July 18, 2022 06:06 PM

Thats a good work.

SetDefaultPortalCreature doesn't seem to work.

I see that the default in the code is WATER_ELEMENTAL.
But it's still Waspwort in the game.
I confirm that I have called these functions in DLLMAIN.

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


Known Hero
posted July 18, 2022 08:03 PM

kkfkkkfk said:
Thats a good work.

SetDefaultPortalCreature doesn't seem to work.

I see that the default in the code is WATER_ELEMENTAL.
But it's still Waspwort in the game.
I confirm that I have called these functions in DLLMAIN.


Which version of the game do you have? You also should try with newly built portal, because in saves previous value is stored I guess.

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


Adventuring Hero
Nothing is impossible
posted July 19, 2022 08:31 AM

It really needs new building.
If you already have a portal at the beginning of game, it is still Waspwort.

 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.0182 seconds