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 ... 335 336 337 338 339 ... 350 400 407 · «PREV / NEXT»
xericsin
xericsin


Famous Hero
posted November 01, 2017 07:05 AM

igrik said:

!?PI;  and in GM0
!!SN:L^EraPluginserm_hooker.era^/?y1;
!!FU&y1=0:E;
!!SN:Ay1/^SetHook^/?y2;
!!SN:Ey2/1/4608191/3150;


A question from me: is this "EraPluginserm_hooker.era" a file in the era package?

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


Admirable
Omnipresent Hero
Wog refugee
posted November 01, 2017 07:09 AM

No, Bersy released it later.

Download, place in MODS/wog/Eraplugins

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


Famous Hero
posted November 07, 2017 02:14 AM

Salamandre said:
No, Bersy released it later.

Download, place in MODS/wog/Eraplugins


Hah! I have this plugin. There is a missing '/'?
!!SN:L^EraPlugins/erm_hooker.era^/?y1;

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


Known Hero
posted November 08, 2017 10:10 PM

I'm back with my project... and i need help is it possible to create a new hero specialization?

Vampirism - every creature (living or undead) in this hero army will have vampire skill? (like regular vampire lords).

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


Hired Hero
posted November 10, 2017 01:35 PM

Help with new map

Hello everybody! After a long time away from my favorite game, I have decided to make a new map. I have finished with the design of the map and storyline is halfway done as well. Since I am a noob when it comes to scripting, I want some help to add some interesting features in my map (necromancer XL map). If anyone has time and wanna help with script writing and combat design, please let me know! Thanks in advance!

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


Promising
Supreme Hero
Researching Magic
posted November 11, 2017 05:22 PM

oblivious_fool said:
Hello everybody! After a long time away from my favorite game, I have decided to make a new map. I have finished with the design of the map and storyline is halfway done as well. Since I am a noob when it comes to scripting, I want some help to add some interesting features in my map (necromancer XL map). If anyone has time and wanna help with script writing and combat design, please let me know! Thanks in advance!


I could help you with some little scripts here and there but in general, it would be good if you learn ERM by yourself. Usually, scripts which are handed to you are not very useful. You have to able to do stuff on your own especially if it comes to details on your maps and your ideas.
Also for ERM beginners, it's difficult to see how complex a script will be. Some request can be done with a few lines and other wishes can be impossible with ERM.
No one can finish your map for you except you.

But for a start. What do you want to do/script?


@szaman
yes it can be done ofc

There are two ways.
1) someone shows up with a nice UN:C hack which gives your creature vampirism
2) you have to script the effect yourself and give it to all your creatures




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


Admirable
Omnipresent Hero
Wog refugee
posted November 11, 2017 05:27 PM

I don't think UN:C can be useful for that, as UN:C examples, from what I've seen, change global data about a creature, not battle stacks abilities. I think igrik posted some code a few pages before, when behemoths are given vampirism with UN:C, but that means all behemoths, regardless battle side.

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


Promising
Supreme Hero
Researching Magic
posted November 11, 2017 05:47 PM

Salamandre said:
I don't think UN:C can be useful for that, as UN:C examples, from what I've seen, change global data about a creature, not battle stacks abilities. I think igrik posted some code a few pages before, when behemoths are given vampirism with UN:C, but that means all behemoths, regardless battle side.


You are probably right something like this:

!!UN:C7994481/1/2; death stare to behemoths id_96
!!UN:C7994482/1/2; death stare to behemoths id_97
!!UN:C7994541/1/2; death stare to behemoths id_156

would not work and would be permanent. Would need something different here. Well sry szaman

What I once did as a little trick:
you can change the creature ID right before the attack to Vampires and set it back to normal after the attack. By doing this your creature will get all abilities from vampire
But it will also show you the wrong name in Battle Log. Maybe you can find a way around it

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


Admirable
Omnipresent Hero
Wog refugee
posted November 11, 2017 06:29 PM

The script is already done, the map "the dragon slaughter has vampirism given to battle stacks. However needs somebody with erm decent knowledge to properly extract it and clean all tds specific conditions.

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


Admirable
Supreme Hero
posted November 12, 2017 03:42 AM
Edited by RoseKavalier at 03:47, 12 Nov 2017.

Topic: AI waterwalk/fly bug & AI town portal on cursed ground fixes

Are there any examples of plugins for ERA? I've seen Yona code (not too familiar with Delphi, it's not too different but...)
If not anyone savvy enough with ERM could do it with erm_hooker.era, the hooks are both relatively short.

What you need:
waterwalk/fly
*Given a hero, check if hero has access to 'Fly' and 'Waterwalk'?
*Is waterwalk already cast?

town portal on cursed ground
*Given a hero, check if ground under is Cursed Ground
If there's no way to do this, is there a way to call a function with a set of arguments?

Salamandre said:
The script is already done, the map "the dragon slaughter has vampirism given to battle stacks. However needs somebody with erm decent knowledge to properly extract it and clean all tds specific conditions.

Alternatively if I understand correctly, with erm_hooker.era you can change the register holding the creature ID before switch() of special abilities and be done with it.
____________
My Let's Plays: Metataxer's Revenge - The Empire of The World 2

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


Admirable
Omnipresent Hero
Wog refugee
posted November 12, 2017 04:15 AM

Here is an example of era plugin, it allows viewing what spells are in guild even if you don't have a book. I don't know how to read/open it, but I think you have the tools.

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


Admirable
Supreme Hero
posted November 12, 2017 06:26 AM

That's basically a hex patch that could be done with UN:C.

0x5CEA83 = 0x74EB
0x5CEACD = 0x0028


For the two AI fixes, we need to insert a decent amount of code which requires a hook.
____________
My Let's Plays: Metataxer's Revenge - The Empire of The World 2

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


Promising
Known Hero
posted November 12, 2017 09:09 AM

Salamandre said:
Here is an example of era plugin, it allows viewing what spells are in guild even if you don't have a book. I don't know how to read/open it, but I think you have the tools.


!!UN:C6089347/2/29931;
!!UN:C6089421/2/40;

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


Admirable
Supreme Hero
posted November 12, 2017 03:17 PM
Edited by RoseKavalier at 15:52, 12 Nov 2017.

Salamandre said:
I don't think era plugins use erm but rather direct addresses, like your plugins. I can't read them so not 100% sure.

For ERA, igrik tells me you can straight up use plugin that works with HDmod.

I can make one specifically for these 2 fixes (so it is as lightweight as possible), then I guess you can tell ERA to load the dll file and it will handle the rest - as long as you have patcher_x86 in the root folder probably.
Will that work for you?

EDIT: apparently just need to place plugin in WoG/EraPlugins

EDIT2: here you go, unfortunately I don't have a save with the bugs for ERA so I can't test. However basic inspection with OllyDbg showed it links and code is the same so technically should be no problem.

(ERA) AI_cheats plugin
____________
My Let's Plays: Metataxer's Revenge - The Empire of The World 2

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


Hired Hero
posted November 12, 2017 03:43 PM

I know that probably much of the stuff I 'd like has already been implemented in some way. I am looking for town conversion, animate dead spell buff, custom hero specializations, both for combat and adventure map, artifact buffing, a superb end game undead creature, creature upgrades (monsters given specific abilities). I have designs and ideas but I cannot do the coding by myself, as I am mostly interested in designing maps and storytelling. I was thinking about releasing SoD version, but i prefer the possibilities wog gives in mapmaking.

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


Promising
Known Hero
posted November 12, 2017 03:54 PM

RoseKavalier said:
For ERA, igrik tells me you can straight up use plugin that works with HDmod.

Will work. Because ERA uses patcher_x86 even without the HD-mod

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


Admirable
Omnipresent Hero
Wog refugee
posted November 12, 2017 04:47 PM

Can igrik convert the dll in bin files so it fits the plugins format? Or is something specific?

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


Admirable
Supreme Hero
posted November 12, 2017 05:01 PM

Salamandre said:
Can igrik convert the dll in bin files so it fits the plugins format? Or is something specific?

Just dump it here?

____________
My Let's Plays: Metataxer's Revenge - The Empire of The World 2

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


Admirable
Omnipresent Hero
Wog refugee
posted November 12, 2017 05:43 PM
Edited by Salamandre at 18:36, 12 Nov 2017.

Thanks, much appreciated. I will try to test everything and see

Edit: what should I look for, what exactly this plugin fixes? Level up, town portal, fly and?

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


Admirable
Supreme Hero
posted November 12, 2017 06:49 PM

This one only prevents AI from casting Town Portal on Cursed Ground & casting 'Fly' when they don't have it.

The first one is relatively easy to test, just box in AI and give him Town Portal.
Second one... I don't have an easy way to reproduce the behavior.

For level-ups, I have to convert my old code first, probably later today. The thing I never liked with it was that I couldn't make up my mind if I should limit experience to level 6424 and prevent overflow to level 0... or keep overflow while allowing fast level-ups.
____________
My Let's Plays: Metataxer's Revenge - The Empire of The World 2

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

Page compiled in 0.5170 seconds