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: ERM help and discussion
Thread: ERM help and discussion This Popular Thread is 407 pages long: 1 50 100 150 200 250 300 350 ... 369 370 371 372 373 ... 400 407 · «PREV / NEXT»
Bersy
Bersy


Honorable
Supreme Hero
posted August 14, 2019 08:33 PM

Tested on 2.8.7, pillars worked. Start a new game.
____________
Heroes 3 Era and everything for it. Releases folder for releases.

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

Tavern Dweller
posted August 14, 2019 10:38 PM

I start a New game and all Time no good

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

Tavern Dweller
posted August 15, 2019 10:06 AM

Hey guys, I am having a little trouble with something that I feel like should be simple, but just struggling with. I'm trying to change the towns creatures belong to and found a code to get them switched. Now I am trying to get them to "belong" to that town and upgrade to specific creatures. The ERM help page says that something like this should work (in this I am trying to get gnolls to belong to the Castle town:

!#MA98/0
!#MA99/0
!#MA:U98/99

But I keep getting told I have the wrong syntax. What should it look like? Thank you guys again, you all have helped a ton.
____________

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


Responsible
Supreme Hero
posted August 15, 2019 05:12 PM

!!MA:O98/0; [Castle]
!!MA:O99/0; [Castle]
!!MA:U98/99; [upg] <--- This is not really necessary as gnolls do upgrade to Marauders as a default

If you actually want them to replace Pikemen then add this
!!UN:T0/0/0/98; [Gnolls]
!!UN:T0/0/1/99; [Marauders]

____________
Not idly do the leaves of Lorien fall.

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


Famous Hero
posted August 16, 2019 12:36 AM

Is it possible to change the Def of the commander for 1 particular hero at a time, without changing the default commander def?

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


Admirable
Omnipresent Hero
Wog refugee
posted August 16, 2019 12:45 AM

yes, check the mod Battle Heroes extra I wrote for Algor's mod Battle Heroes. It picks randomly every battle a new commander def.

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


Famous Hero
posted August 16, 2019 04:01 AM

Salamandre said:
yes, check the mod Battle Heroes extra I wrote for Algor's mod Battle Heroes. It picks randomly every battle a new commander def.


Ok so to change the random effect to permanent, I made the same thing apply to all battleground types (1-22?), and I kept in only one def, so it would stick to that.   I'm not too sure how to apply it to a specific hero consistently though.

!?PI;
!!VRv3:S1R16;
!!SN:L^era.dll^/?y1 Ay1/^RedirectFile^/?y2 Ey2/1/^zm543.def^/^%V3.def^;

!?BF&1000;
!!BA:H0/?y-1 H1/?y-2; store attacker and defender ID in y vars
!!FU&y-1<>90/y-2<>90:E; exit if not hero is not in battle
!!IF&y-1=90:L^^;identifies hero as attacker
!!IF&y-2=90:L^^;identifies hero as defender
!!CO-1:v3; apply to current commander (for current hero) def
!!if&y1>0/y1<23:; all terrain types
!!VRy2:S76;
!!en:;

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


Admirable
Omnipresent Hero
Wog refugee
posted August 16, 2019 04:25 AM

No, that won't work, its voodoo :P

ZVSE


!?BA0&1000; start of battle
!!BA:H0/?y1 H1/?y2;
!!FU&y1<>90/y2<>90:E; quit if no Malekith
!!CO90:D?y1; check if commander is alive
!!FU&y1>0:E;
!!SN:L^era.dll^/?y1 Ay1/^RedirectFile^/?y2 Ey2/1/^ZM179NPC.def^/^CPSYEL.def^; change commander brute graphics to psychic elemental (example)

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


Famous Hero
posted August 16, 2019 05:04 AM

Salamandre said:
No, that won't work, its voodoo :P

ZVSE


!?BA0&1000; start of battle
!!BA:H0/?y1 H1/?y2;
!!FU&y1<>90/y2<>90:E; quit if no Malekith
!!CO90:D?y1; check if commander is alive
!!FU&y1>0:E;
!!SN:L^era.dll^/?y1 Ay1/^RedirectFile^/?y2 Ey2/1/^ZM179NPC.def^/^CPSYEL.def^; change commander brute graphics to psychic elemental (example)



Awesome thank you!

I had a slight panic attack because when I tested it, on the battlefield there was a massive row of dragon skull obstacles in a straight line.  Then i remembered I had that mod enabled lol

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


Honorable
Supreme Hero
posted August 16, 2019 11:18 AM

!!SN:L^era.dll^/?y1 Ay1/^RedirectFile^/?y2 Ey2/1/^ZM179NPC.def^/^CPSYEL.def^; change commander brute graphics to psychic elemental (example)

For Era 2.8.7+ I would use:
!!SN:R^ZM179NPC.def^/^CPSYEL.def^;

[+] Added new ERM command SN:R^old resource name^/^new resource name^, redirecting lod/pac/mp3 resources to other names.
   The command is a thin wrapper over RedirectFile exported function. Pass empty name as new resource name to remove
   redirection. All applied redirections are local, stored in saved game and reverted on map exit.
   '*.mp3' redirection works on all mp3 files at once.
   
   Example:
   !#SN:R^crgrif.def^/^croc.def^; let Royal Griffins look like Rocs (portraits are not changed)

   Game unloads not used resources, thus many resources can be dynamically redirected during playing.
   If resource is used in Hero Screen, perform redirection before Hero Screen is shown (and resource is cached).

   Custom interface skins may also be implemented, allowing user to switch themes right in the game (saved game
   loading may be necessary for visual update).

____________
Heroes 3 Era and everything for it. Releases folder for releases.

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


Admirable
Omnipresent Hero
Wog refugee
posted August 16, 2019 12:14 PM

Nice additions and much needed documentation.

So, fansofheroes, to unload the change, just use empty name

!!SN:R^ZM179NPC.def^/^^;

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


Famous Hero
posted August 18, 2019 04:34 AM

Salamandre said:
Nice additions and much needed documentation.

So, fansofheroes, to unload the change, just use empty name

!!SN:R^ZM179NPC.def^/^^;



I'm not 100% sure, but I don't think I'm using era greater than 2.8.7+

I'm using the HD mod.  Maybe in it's updates it incorporates newer era versions, but I honestly don't know.  All I know how to do is to make new defs lol.  you all have been my life line for this tech stuff :)

Sal, the line you gave me works well, and I don't get any errors.  Bersey, the condensed line gives me errors so I'm thinking its because I dont have era 2.8.7+


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


Honorable
Supreme Hero
posted August 18, 2019 10:30 AM

Right click on "Authors" from main menu shows Era version.
____________
Heroes 3 Era and everything for it. Releases folder for releases.

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


Admirable
Omnipresent Hero
Wog refugee
posted August 18, 2019 12:51 PM

For english version, CREDITS

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


Promising
Supreme Hero
Researching Magic
posted August 18, 2019 06:48 PM

Can someone tell me where the starting skills and spells for the heroes are stored? Are they hardcoded? I can't find them, I only found specialty descriptions.
Reason is in random map hero selection, when using AC mod, they are displayed wrong. Not to big of a problem, but if possible to change them in reasonable amount of time/work I would do it.

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


Famous Hero
posted August 19, 2019 05:25 PM

Salamandre said:
For english version, CREDITS



and there it is, 2.7.7 lol


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


Supreme Hero
Work at Magic Dimmension
posted August 21, 2019 02:36 PM



how to call such function:
Quote:


extern "C" __declspec(dllexport) void ChangeCreatureTable(int target, char* buf)



in ERM code? (I know I need to use SN:L and dll name is Amethyst_something.dll but thats all)

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


Honorable
Supreme Hero
posted August 21, 2019 04:51 PM

!!SN:L^amethyst.dll^?y1 Ay1/^ChangeCreatureTable^/?y2 Ey2/1/Target/Buf;
____________
Heroes 3 Era and everything for it. Releases folder for releases.

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


Supreme Hero
Work at Magic Dimmension
posted August 21, 2019 05:09 PM

Bersy said:
!!SN:L^amethyst.dll^?y1 Ay1/^ChangeCreatureTable^/?y2 Ey2/1/Target/Buf;


Really thanks! if someone asks me again I point here :P

PS: could you look at issue with battery.dll/battery2.dll ? I described the problem in main era thread on the forum :)

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


Famous Hero
posted August 23, 2019 06:09 PM
Edited by fanofheroes at 18:11, 23 Aug 2019.

Salamandre said:
Nice additions and much needed documentation.

So, fansofheroes, to unload the change, just use empty name

!!SN:R^ZM179NPC.def^/^^;



Sal, I noticed that when I use the commander def switch erm, the heroes of the same class I have set to the default have the normal defs until I used my customized hero's commander def.  then afterwards for every battle, the non-default hero commanders have the same commander def as the customized hero.  will this line (or something similar cause when i tested it, it didn't work) help keep the target hero with their new commander def unaffected, and the default heroes normal?

(for Malekith)
!!SN90:L^era.dll^/?y1 Ay1/^RedirectFile^/?y2 Ey2/1/^ZM179NPC.def^/^CPSYEL.def^; change commander

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Jump To: « Prev Thread . . . Next Thread » This Popular Thread is 407 pages long: 1 50 100 150 200 250 300 350 ... 369 370 371 372 373 ... 400 407 · «PREV / NEXT»
Post New Poll    Post New Topic    Post New Reply

Page compiled in 0.1278 seconds