|
|
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
|
|
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
|
|
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?
|
|
Salamandre
Admirable
Omnipresent Hero
Wog refugee
|
posted November 13, 2017 08:45 PM |
|
|
|
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
|
|
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!!!!!
|
|
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^;
|
|
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
|
|
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
|
|
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
|
|
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.
|
|
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.
|
|
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
|
|
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
|
|
RoseKavalier
Admirable
Supreme Hero
|
posted November 18, 2017 02:30 PM |
|
|
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
|
|
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
|
|
RerryR
Promising
Supreme Hero
Researching Magic
|
posted November 21, 2017 08:10 AM |
|
|
Thanks for your work with the plugins RoseKavalier!
|
|
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.
|
|
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
|
|
Salamandre
Admirable
Omnipresent Hero
Wog refugee
|
posted November 21, 2017 08:07 PM |
|
|
great job, Rosekavalier
|
|
|