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 ]
New Server | HOMM1: info forum | HOMM2: info forum | HOMM3: info forum | HOMM4: info forum | HOMM5: info 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 336 pages long: 1 40 80 120 160 200 240 280 320 ... 324 325 326 327 328 ... 336 · «PREV / NEXT»
igrik
igrik


Adventuring Hero
posted April 05, 2017 09:59 PM

robizeratul said:
where am i doing this wrong ?

!?PI;
!!UN:C4468887/4/6554608;
!!UN:C4468961/4/6554608;

Are you doing so?

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


Supreme Hero
Work at Magic Dimmension
posted April 05, 2017 10:19 PM

igrik said:
robizeratul said:
where am i doing this wrong ?

!?PI;
!!UN:C4468887/4/6554608;
!!UN:C4468961/4/6554608;

Are you doing so?


Would it work on other creatures than champion (if jousting bonus is added via stack experience) ? and why 6554608 ? If I want 25, what number I would use?

PS: memory patches are not saved in savegames, so you may wish to add same lines to !?GM0; (or it was !?GM1; ?)

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


Known Hero
posted April 05, 2017 11:06 PM
Edited by robizeratul at 23:07, 05 Apr 2017.

Thank you! I have no clue if its an engine limitation or something else, but it has 1 huge problem.

when adding attack, all creatures get 75% dmg(sometimes 2 points are needed. i edited the creatures, peasant had 100 dmg without any attack advantage (0 atk vs 0 def). when I got a point the dmg became 175, with 3 points 250 and with 5 325...  

dmg increase works though with champions, but the bug is damn weird!

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


Adventuring Hero
posted April 06, 2017 08:41 AM
Edited by igrik at 12:35, 06 Apr 2017.

robizeratul said:
Thank you! I have no clue if its an engine limitation or something else, but it has 1 huge problem.

when adding attack, all creatures get 75% dmg(sometimes 2 points are needed. i edited the creatures, peasant had 100 dmg without any attack advantage (0 atk vs 0 def). when I got a point the dmg became 175, with 3 points 250 and with 5 325...  

dmg increase works though with champions, but the bug is damn weird!

F*ck)) I expected something like this...
!?PI;
!!UN:C4468887/4/6554608;
!!UN:C4468961/4/6554608;  <-- Remove this

=======

6535680 - 25%
6824736 - 50%
6535688 - 75%

majaczek said:
Would it work on other creatures than champion (if jousting bonus is added via stack experience) ? and why 6554608 ? If I want 25, what number I would use?


Because this is a reference to a number (double C++). To be 25, you need to find this value in exe.

PS: And I don't speak English well to explain correctly

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


Known Hero
posted April 06, 2017 10:07 AM

woow, you are a magician My map has now 2 scripts!!

thanks so much! im happy today!

1 last question. first whats the logic behind editing the number?need to balance it. this is the result i am looking for: 30 attack 30 dmg deals 500 dmg to a creature with 0 defense at max 5 speed(no offense/defense). its hard to figure out the numbers with the damage calculation formula... currently he deals 187 dmg!(with 75% increase)

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


Adventuring Hero
posted April 06, 2017 10:41 AM




1)50 + 50*0*0.752 = 50
2)50 + 50*10*0.752 = 426

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


Known Hero
posted April 06, 2017 11:00 AM

hmm...so, my unit has 30 DMG and 5 speed and attacks a 0 def unit:

30 + 30*5*0.752= 142

with 30 attack: 182. so attack adds 40 dmg.

So do i need:

30 + 30*5*3.000= 480. seems like a good number! could you add 250/275/300 ? thats all I will bother you with!


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


Adventuring Hero
posted April 06, 2017 11:32 AM
Edited by igrik at 11:59, 06 Apr 2017.

robizeratul said:
250/275/300 ? thats all I will bother you with!


6532136 - 300%
no such value - 275%
6554744 - 265.7%
6562632 - 250%

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


Known Hero
posted April 06, 2017 12:13 PM

Works perfectly! I have my first custom unit!!

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


Supreme Hero
Work at Magic Dimmension
posted April 06, 2017 06:30 PM
Edited by majaczek at 18:51, 06 Apr 2017.

igrik said:
robizeratul said:
250/275/300 ? thats all I will bother you with!


6532136 - 300%
no such value - 275%
6554744 - 265.7%
6562632 - 250%


pointer to float or pointer to integer? if there is no such value in exe, it can be in dll I may prepare the dll for replacement of Yona if I can (but in c++). Thanks to you Igrik we have nice replacement for jousting. Or should I add it to Amethyst2 ?

Also I want to be able to add orcs' distance square attack (or what it was in Yona) to other creatures, similair for anticavalry. other things implemented in yona too.

I hope that won't be too much.

EDIT: I see, there is FMUL, so it's float

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


Adventuring Hero
posted April 06, 2017 06:58 PM

majaczek said:
pointer to float or pointer to integer?
EDIT: I see, there is FMUL, so it's float

Not. It's double (8 byte)

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


Supreme Hero
Work at Magic Dimmension
posted April 06, 2017 07:04 PM

igrik said:
majaczek said:
pointer to float or pointer to integer?
EDIT: I see, there is FMUL, so it's float

Not. It's double (8 byte)


Okay thanks, sorry for missconception.
Could you help me with orcs yona-like damage, anti-cavalry and yona-like "armoured" ? I want to replace Yona with new options to amethyst2. I don't mind network part or the thing they  did to archers. (there would be table allowing to add the ability to any monster )

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


Adventuring Hero
posted April 06, 2017 11:42 PM
Edited by szaman at 23:53, 06 Apr 2017.

Quote:
!!UN:C7994541/1/0;


Thanks igrik!

Works perfectly! i see that the !!UN is a real magic for ERA

Just checked the ERM HELP...

Strange... There is no !!UN:C , from where is this syntax?

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


Supreme Hero
posted April 07, 2017 12:39 AM

szaman said:
Strange... There is no !!UN:C , from where is this syntax?

How there is no !!UN:C?

Write/Read an integer at address #
  # - Address in memory (in decimal)
  $1 - Size of integer in bytes (1, 2 or 4)
  $2 - Integer to write (decimal) or name of variable to store value

The problem is you need to know Assembly to get what integer to write.

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


Adventuring Hero
posted April 07, 2017 01:34 AM
Edited by szaman at 01:38, 07 Apr 2017.

Quote:
How there is no !!UN:C?


I meant no !!UN:C in ERM help

....

Is there a way to change description in creatures abilities (eg: Spell Immunity to No Magic) via ERM? or i have to make the changes in txt files?

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


Adventuring Hero
posted April 07, 2017 08:46 AM
Edited by igrik at 08:59, 07 Apr 2017.

szaman said:
Is there a way to change description in creatures abilities (eg: Spell Immunity to No Magic) via ERM? or i have to make the changes in txt files?

by Hawaiing
; -----------------------------------------------------
some of creature magic immunitie in the following table

table address = 0079fed0 (begin with 16#)
NO.=immunitie(creatureID)
0=16#Dwarf/133#
1=17#Battle Dwarf
2=26#Green Dragon/82#Red Dragon/132#Azure Dragon
3=27#Gold Dragon
4=83#Black Dragon/121#
5=112#/127#
6=113#/125#
7=115#/123#
8=NONE

for example:
!!UN:C(7995088 +39 -16)/1/3; Naga Queens has immunity 1-4 lvl spell
!!UN:C(7995088 +83 -16)/1/8; Black Dragons has no spell immunity
!!UN:C(7995088 +19 -16)/1/1; Grand Elves has 40% magic resistanse

tread UN:C (rus)

majaczek said:
Could you help me with orcs yona-like damage, anti-cavalry and yona-like "armoured" ? I want to replace Yona with new options to amethyst2. I don't mind network part or the thing they  did to archers. (there would be table allowing to add the ability to any monster )
I do not have time now. Maybe later. Sorry.

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


Known Hero
posted April 07, 2017 05:12 PM

Can atk points/dmg be manipulated ? 1 atk point gives 5%,can it give more ?  

I want to tripple the effect, 15% bonus dmg/1 point of attack

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


Adventuring Hero
posted April 07, 2017 06:11 PM

robizeratul said:
Can atk points/dmg be manipulated ? 1 atk point gives 5%,can it give more ?  

I want to tripple the effect, 15% bonus dmg/1 point of attack

!!UN:C4468973/4/6532144;  max attack 50000%   (orig 400%)
!!UN:C4468961/4/6781344;  attack   bonus +15% (orig 5%)
!!UN:C4471030/4/6781344;  deffense bonus +15% (orig 2.5%)
* 6781344 - 15%
* 6781352 - 30%

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


Known Hero
posted April 07, 2017 07:00 PM

igrik said:
robizeratul said:
Can atk points/dmg be manipulated ? 1 atk point gives 5%,can it give more ?  

I want to tripple the effect, 15% bonus dmg/1 point of attack

!!UN:C4468973/4/6532144;  max attack 50000%   (orig 400%)
!!UN:C4468961/4/6781344;  attack   bonus +15% (orig 5%)
!!UN:C4471030/4/6781344;  deffense bonus +15% (orig 2.5%)
* 6781344 - 15%
* 6781352 - 30%


perfect! only problem is 15% for def is too big, can it be 5-7.5 ? also does max attack also affect mass defense?

you are very good at this!thanks!

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


Adventuring Hero
posted April 07, 2017 07:39 PM

robizeratul said:
perfect! only problem is 15% for def is too big, can it be 5-7.5 ? also does max attack also affect mass defense?
No. They are different
!!UN:C4471048/4/6535360;  min deff bonus =97.5% /100-2,5%/ (orig =70% /100-30%/)
* 6532184 - 5%
* 6554800 - 7.1%

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Jump To: « Prev Thread . . . Next Thread » This Popular Thread is 336 pages long: 1 40 80 120 160 200 240 280 320 ... 324 325 326 327 328 ... 336 · «PREV / NEXT»
Post New Poll    Post New Topic    Post New Reply

Page compiled in 0.8824 seconds