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


Admirable
Omnipresent Hero
Wog refugee
posted November 12, 2017 07:20 PM

You didn't come with a fix for 32k stacks as well? I remember I added your code into my scripts and was working okay, but a plugin would be more universal.
____________
Era II mods and utilities

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


Admirable
Supreme Hero
posted November 12, 2017 08:09 PM

I can add quite a lot of fixes, I only fulfilled original request that I had handy.

Seeing how it's the same to make a plugin for ERA with or without HDmod, I guess most of what is done in SoD_SP can be applied to WoG with enough work to confirm addresses/registers.
____________
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
majaczek
majaczek


Supreme Hero
Work at Magic Dimmension
posted November 13, 2017 08:20 PM

What is the ERM hack-code for calling Hill Fort dialogue for current hero?

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


Admirable
Omnipresent Hero
Wog refugee
posted November 13, 2017 08:45 PM

!!HE#:D;

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


Supreme Hero
Work at Magic Dimmension
posted November 13, 2017 09:47 PM

WOW! Thanks! I believved it needs an ugly SN call, but it is already a legit ERM command... sorry for not deeply reading the erm help

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


Adventuring Hero
Member of the old Wog-team
posted November 16, 2017 09:02 PM

I´ve read the ERM Help/tutorial so head hurts.
I thought that I could understand the coding if I just started from the top, but I guess I am dumb as a goat
All I wanted to do is a script that gives AI X gold each day 7.
That should have been an easy enough task I thought...cant even do that
Even tried First Money as a start, but still dont get it.
AR is the reciver (I think)
E$128 for players, AI (4+8+16+32+64+128)
S$3 for day 7(I think)

When I win the powerball, I am sooo going to hire my own personal ERM coder!!!!!

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


Admirable
Omnipresent Hero
Wog refugee
posted November 16, 2017 09:17 PM

Well, if you tried first money script, you noticed that it does not use neither AR or else you mention there. The first step is to understand how existing scripts work, so take again that script, modify some values and see what happens. You can also add debug commands after specific lines, so you get when a line is occurring exactly, like:

!!IF:M^this script is now running this line^;

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


Admirable
Supreme Hero
posted November 17, 2017 02:55 AM

Salamandre said:
You didn't come with a fix for 32k stacks as well? I remember I added your code into my scripts and was working okay, but a plugin would be more universal.


Now that I have a bit of time, I started putting up more things together, this is the list that I've included/checked so far:

Quote:

* AI can't cast Town Portal on Cursed Ground
* AI can't cast Fly if they don't have it
* Show Subterranean Gates / Monoliths icons on 'View World' and 'View Air'
* 65535 objects patch by AlexSpl
* AI split divide by 0 fix
* Repair Arena Cancel button
* Show Forcefield Shadow
* AI Resurrection-freeze bug
* > 32767 creatures patch



What else should be added?

Some of igrik's fixes ?
Morale/Luck in popup window by igrik ?
____________
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
majaczek
majaczek


Supreme Hero
Work at Magic Dimmension
posted November 17, 2017 02:33 PM


Do you have any Ideas for Potion Effect?
I use coloring from M&M but different set of effects
I already have RBY, PGO, and layered
then some white and some black.
Please point me what some White and black potions could do?

pastebin info

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


Adventuring Hero
Member of the old Wog-team
posted November 17, 2017 05:57 PM

Salamandre said:
Well, if you tried first money script, you noticed that it does not use neither AR or else you mention there. The first step is to understand how existing scripts work, so take again that script, modify some values and see what happens. You can also add debug commands after specific lines, so you get when a line is occurring exactly, like:

!!IF:M^this script is now running this line^;

I am so gratefull that you take your time to try and teach me, even thought I am anoyingly slow in learning this.
I thought I got a bit further, but I got an error at once :/
This is what I made so far
!#TM78&v429=1:S2/999/1/3; (this is from First Money)

999 should stay, to be activated the whole map
1 = Day1, should be 7 to be every 1st day of week
3 = should be 27 (2+3+4+5+6+7)(Human is R&B 0+1 and should not get any)

R#1/#2/$3; Set/check/get a resource
#1 - Owner  (2+3+4+5+6+7) (Human is R&B 0+1 and should not get any)
#2 - Resource type (6=gold)
$3 - Resource value (10000)

I dont get the v429 from the ERM, but I know you could save variables.
So I guess that thats it :)
I also dont get the 78 that is before.
And it says s2, but as I read it from the ERMHelp the 2 should be 1,
since the script gives you stuff at Day 1...
But what I mostly is confused about that script, is that it only shows negative numbers in each row for resources, but never were it gives you your gold etc...
And why is it that the TM line dont have double !! but a !#

This was my try to give each player that is Tan, Green, Orange, Purple, Teal and Pink 10000 gold each day 1 on every week.

!#TM1:S2/999/7/27
!!OW:R27/6/$10000

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


Admirable
Omnipresent Hero
Wog refugee
posted November 17, 2017 08:02 PM

RoseKavalier said:

Now that I have a bit of time, I started putting up more things together, this is the list that I've included/checked so far:



That would be fantastic to have those plugins also available for Era. Personally I would prefer to have them separate but is up to you how to deliver. All you said there sounds good, thanks.

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


Admirable
Omnipresent Hero
Wog refugee
posted November 17, 2017 08:09 PM

blackstomper said:


This was my try to give each player that is Tan, Green, Orange, Purple, Teal and Pink 10000 gold each day 1 on every week.
!#TM1:S2/999/7/27
!!OW:R27/6/$10000



Hahaha, the $ for money is not erm command, but I understand you.

Try something easy for a start:

ZVSE

!#TM80:S1/999/1/255; time 80, available to ALL players
!?TM80;
!!OW:C?y1; store in y1 current player
!!OW:Iy1/?y2; get in y2 if player is human (0) or AI (1)
!!FU&y1<1:E; exit if human
!!OW:Ry1/6/d1; add 1 gold to current player
!!IF:L^1 gold added to player %Y1^;

See how you don't need to put timer for specific players but instead you can put condition later. Work with this.

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


Adventuring Hero
Member of the old Wog-team
posted November 17, 2017 08:56 PM

Salamandre said:
blackstomper said:


This was my try to give each player that is Tan, Green, Orange, Purple, Teal and Pink 10000 gold each day 1 on every week.
!#TM1:S2/999/7/27
!!OW:R27/6/$10000



Hahaha, the $ for money is not erm command, but I understand you.

Try something easy for a start:

ZVSE

!#TM80:S1/999/1/255; time 80, available to ALL players
!?TM80;
!!OW:C?y1; store in y1 current player
!!OW:Iy1/?y2; get in y2 if player is human (0) or AI (1)
!!FU&y1<1:E; exit if human
!!OW:Ry1/6/d1; add 1 gold to current player
!!IF:L^1 gold added to player %Y1^;

See how you don't need to put timer for specific players but instead you can put condition later. Work with this.


Hahahaha, happy to entertain ;)
I got it to work now, with your ERM
I added some notes to myself regarding the Player Colour bits works. And when I saw that all functioned perfect, I deleted the last line so I dont get notifications.
As it is now, its 10000 gold every 2 days for all but Red and Blue. Thanks a million Salamandre!!!!

ZVSE

!#TM80:S1/999/2/252; time 80, available to ALL players=255  red=1 blue=2 tan=4 green=8 orange=16 purple=32 teal=64 pink=128   For example, blue, green and purple would be 2+8+32=42
!?TM80;
!!OW:C?y1; store in y1 current player
!!OW:Iy1/?y2; get in y2 if player is human (0) or AI (1)
!!FU&y1<1:E; exit if human
!!OW:Ry1/6/d10000; add 10000 gold to current player

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


Adventuring Hero
Member of the old Wog-team
posted November 17, 2017 09:14 PM

I even got cocky and added lines so I can adjust other Resources too
ZVSE

!#TM80:S1/999/2/252; time 80, available to ALL players=255  S1/999/?/252 ?=dag red=1 blue=2 tan=4 green=8 orange=16 purple=32 teal=64 pink=128   For example, blue, green and purple would be 2+8+32=42
!?TM80;
!!OW:C?y1; store in y1 current player
!!OW:Iy1/?y2; get in y2 if player is human (0) or AI (1)
!!FU&y1<1:E; exit if human
!!OW:Ry1/6/d10000; add 10000 GOLD to current player
!!OW:Ry1/0/d11; add 11 WOOD to current player
!!OW:Ry1/2/d11; add 11 ORE to current player
!!OW:Ry1/1/d11; add 11 MERCURY to current player
!!OW:Ry1/3/d11; add 11 SULFUR to current player
!!OW:Ry1/4/d11; add 11 CRYSTAL to current player
!!OW:Ry1/5/d11; add 11 GEM to current player

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


Admirable
Supreme Hero
posted November 18, 2017 02:30 PM
Edited by RoseKavalier at 23:51, 20 Nov 2017.

Salamandre said:
RoseKavalier said:

Now that I have a bit of time, I started putting up more things together, this is the list that I've included/checked so far:



That would be fantastic to have those plugins also available for Era. Personally I would prefer to have them separate but is up to you how to deliver. All you said there sounds good, thanks.

I guess bug fixes can go in one plugin while "improvements" should be separated.

igrik's Morale/Luck plugin is already made public by himself on DF2, I'll link it when I can access the forum.
The others I'll try to make at some point today.

EDIT:
igrik's post
link to his plugin

NOTE these will only work with ERA or WOG, they are disabled otherwise.
3 plugins

1) AI cheats
* AI cannot cast Town Portal on cursed ground
* AI cannot cast Fly if it lacks the spell

2) Fixes to various bugs
* division by 0 crash from AI splitting shooters
* 65535 objects patch by AlexSpl
* Repaired Arena Cancel button
* Fixed infinite AI-loop related to 'Resurrection' (and other cases)
* Forcefield shadow now shown
* You can safely have 2,000,000,000+ creatures without overflow (previously: 32,767)

3) Improvements
* Monoliths and Subterranean Gates icons now visible on 'View World' and 'View Air'
* The Cancel buttons for Tavern and Unit Split have been updated to match other similar Cancel buttons (igrik)
* The 'Cast Spell' button of Faerie Dragons is now correctly positioned
* Hovering over the 'Cast Spell' button of Faerie Dragons now shows the correct hint 'Cast Spell' in the status bar (previously: Sawmill)

[4] Morale/Luck display is linked above, by igrik.

Installation: place plugins here, or wherever your Heroes3 folder lies.


At some point I will get around to update the experience fix.

I only checked if these worked with "vanilla" ERA, I can't say what might happen with various scripts.
____________
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
bloodsucker
bloodsucker


Legendary Hero
posted November 20, 2017 11:58 PM

blackstomper said:
I am sooo going to hire my own personal ERM coder!!!!!

Been there

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


Promising
Supreme Hero
Researching Magic
posted November 21, 2017 08:10 AM

Thanks for your work with the plugins RoseKavalier!

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


Honorable
Supreme Hero
posted November 21, 2017 05:48 PM

RoseKavalie, have your shared bug fix dll sources anywhere? It would be nice to include many of them, but compatibility with ERM is a must. So it's always nice to have ability to check the sources.

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


Admirable
Supreme Hero
posted November 21, 2017 07:52 PM

Bersy said:
RoseKavalie, have your shared bug fix dll sources anywhere? It would be nice to include many of them, but compatibility with ERM is a must. So it's always nice to have ability to check the sources.

I will message you on WoG forum later today.
____________
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 21, 2017 08:07 PM

great job, Rosekavalier

 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 ... 336 337 338 339 340 ... 350 400 407 · «PREV / NEXT»
Post New Poll    Post New Topic    Post New Reply

Page compiled in 0.4932 seconds