|
|
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?
|
|
Salamandre
Admirable
Omnipresent Hero
Wog refugee
|
posted November 01, 2017 07:09 AM |
|
|
No, Bersy released it later.
Download, place in MODS/wog/Eraplugins
|
|
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;
|
|
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).
|
|
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!
|
|
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
|
|
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.
|
|
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
|
|
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.
|
|
RoseKavalier
Admirable
Supreme Hero
|
posted November 12, 2017 03:42 AM |
|
|
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
|
|
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.
|
|
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
|
|
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;
|
|
RoseKavalier
Admirable
Supreme Hero
|
posted November 12, 2017 03:17 PM |
|
|
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
|
|
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.
|
|
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
|
|
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?
|
|
RoseKavalier
Admirable
Supreme Hero
|
posted November 12, 2017 05:01 PM |
|
|
|
Salamandre
Admirable
Omnipresent Hero
Wog refugee
|
posted November 12, 2017 05:43 PM |
|
|
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?
|
|
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
|
|
|