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 350 ... 359 360 361 362 363 ... 400 407 · «PREV / NEXT»
XEricSin
XEricSin


Famous Hero
posted April 13, 2019 06:41 AM

Maybe you should check whether your TB TO TZ .pcx files are of the same size.

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


Supreme Hero
Work at Magic Dimmension
posted April 13, 2019 07:55 AM
Edited by majaczek at 17:29, 13 Apr 2019.

XEricSin said:
Maybe you should check whether your TB TO TZ .pcx files are of the same size.


they are

EDIT: solved. saved BMPs as 8bpp

EDIT: Eric? what are memory adresses for tower town buildings coordinates?

EDIT: scavenged nice function, hope it works
Quote:

--------------------------------------------------------------------------------

**Function to change building position.
!?FU1337;

!!VRy1:S8; //city
!!VRy2:Sx16; //building ID
!!VRy6:S0; //frames num in new def
!!VRy3:S0; //new x
!!VRy4:S0; //new y

!!VRy5:Sy1 *44 +y2 *6 +6859276;

!!UN:Cy5/2/y6;
!!VRy5:+2;
!!UN:Cy5/2/y3;
!!VRy5:+2;
!!UN:Cy5/2/y4;

--------------------------------------------------------------------------------



edited above function for generic use
Quote:


--------------------------------------------------------------------------------

**Function to change building position.
!?FU1337;
!!if&x6=0:;
 !!VRy1:S8; //city
 !!VRy2:Sx16; //building ID
 !!VRy6:S0; //frames num in new def
 !!VRy3:S0; //new x
 !!VRy4:S0; //new y
**    x6:S0  //deprecated use (convenant)
!!el:;
 !!VRy1:Sx1; //city
 !!VRy2:Sx2; //building ID
 !!VRy6:Sx3; //frames num in new def
 !!VRy3:Sx4; //new x
 !!VRy4:Sx5; //new y
**    x6<>0   //new use (any town)
!!en:;

!!VRy5:Sy1 *44 +y2 *6 +6859276;

!!UN:Cy5/2/y6;
!!VRy5:+2;
!!UN:Cy5/2/y3;
!!VRy5:+2;
!!UN:Cy5/2/y4;

--------------------------------------------------------------------------------




EDIT: it  works

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


Promising
Supreme Hero
posted April 13, 2019 07:46 PM

Good boy
____________

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


Known Hero
posted April 14, 2019 02:35 PM
Edited by AlfWithCake at 14:35, 14 Apr 2019.

Is it possible to install new version of ERA on top of old one (specifically, 2.7.7 on 2.7.3) or fresh install only?

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


Supreme Hero
Work at Magic Dimmension
posted April 14, 2019 02:45 PM

Is it possible to trigger Orb of Vulnerability effect without giving the artifact to hero ?

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


Promising
Supreme Hero
posted April 14, 2019 10:35 PM

AlfWithCake said:
Is it possible to install new version of ERA on top of old one (specifically, 2.7.7 on 2.7.3) or fresh install only?

Possible.
____________

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


Supreme Hero
Work at Magic Dimmension
posted April 16, 2019 09:40 PM

Game crashes for me when trying to save via menu. Saving via "S" works. I wish to  fix it
Quote:
Failed to write data at 2094BB48.
EIP: H3era hd.004CE08F. Code: C0000005

> Registers
EAX: 00000000 (int: 0)
ECX: 00000024 (int: 36)
EDC: FFFFFFFF (int: -1)
EBX: 00000000 (int: 0)
ESP: 02B37D4C (int: 45317452, pint: 0x0069FDE7 = 6946279)
EBP: 02B37D84 (int: 45317508, pint: 0x02B380B8 = 45318328)
ESI: 17C53E78 (int: 398802552, pint: 0x17BD4E78 = 398282360)
EDI: 2094BB48 (int: 546618184)

> Callstack
H3era hd.00579FD1
066A0D92
066A0D1F
067F1117
H3era hd.0041AC48
H3era hd.00409C68
065E06B6
065E0643
067F1662
H3era hd.00408999
065E05A6
065E0533
067F1442
Era.26BFC (in PatchApi.pas on line 791)
Era.26CEF
Era.422D1 (in Triggers.pas on line 379)
065C003A
065F071D
065F06A7
02CC00E6
02CC0070
Kernel32.18484
Ntdll.63AB8
Ntdll.63A88

> Stack
02B37D38: 17CA25F4 (int: 399123956, pint: 0x00000000)
02B37D3C: 00000010 (int: 16)
02B37D40: 00000008 (int: 8)
02B37D44: H3era hd.00537090 (int: 5468304, pint: 0x51EC8B55 = 1374456661)
02B37D48: H3era hd.005BC5E0 (int: 6014432, pint: 0x51EC8B55 = 1374456661)
02B37D4C*: H3era hd.0069FDE7 (int: 6946279, pint: 0x00004000 = 16384)
02B37D50: 00000000 (int: 0)
02B37D54: 02B38384 (int: 45319044, pint: 0x00641CBC = 6560956)
02B37D58: 17C53E78 (int: 398802552, pint: 0x17BD4E78 = 398282360)
02B37D5C: 17C739B4 (int: 398932404, pint: 0x661C3600 = 1713124864)
02B37D60: 17C739C4 (int: 398932420, pint: 0x494F4A00 = 1229933056)
02B37D64: 17C736E4 (int: 398931684, pint: 0x00000000)
02B37D68: 17C73520 (int: 398931232, pint: 0x00000000)
02B37D6C: FFFFFFF8 (int: -8)
02B37D70: 00000000 (int: 0)
02B37D74: 0004E7D0 (int: 321488)
02B37D78: 02B380AC (int: 45318316, pint: 0x02B39D64 = 45325668)
02B37D7C: H3era hd.0062CAB5 (int: 6474421, pint: 0x64DC78B8 = 1692170424, str: "¸xÜdx00")
02B37D80: 0000001A (int: 26)
02B37D84: 02B380B8 (int: 45318328, pint: 0x02B38330 = 45318960)
02B37D88: H3era hd.00579FD1 (int: 5742545, pint: 0xC03302EB)
02B37D8C: 02B38384 (int: 45319044, pint: 0x00641CBC = 6560956)
02B37D90: 00000008 (int: 8)
02B37D94: 00000001 (int: 1)
02B37D98: 1C00001C (int: 469762076)
02B37D9C: 02B37DB0 (int: 45317552, pint: 0x747FF160 = 1954541920)
02B37DA0: Ntdll.2B128 (int: 2008920360, pint: 0x0004C25D = 311901)
02B37DA4: 0000001C (int: 28)
02B37DA8: 00000004 (int: 4)
02B37DAC: Kernelbase.1AFE38 (int: 1954545208, pint: 0x00000001)
02B37DB0: Kernelbase.1AF160 (int: 1954541920, pint: 0x746C3198 = 1953247640, str: "&#152;1lt&#344;0ltx0C")
02B37DB4: Ntdll.435B7 (int: 2009019831, pint: 0x83002683)
02B37DB8: 00000138 (int: 312)
02B37DBC: FFFFED98 (int: -4712)
02B37DC0: FFFFFFBA (int: -70)
02B37DC4: 02B37E88 (int: 45317768, pint: 0x00000000)
02B37DC8: 00000000 (int: 0)
02B37DCC: 00000080 (int: 128)
02B37DD0: 02BB97D0 (int: 45848528, pint: 0x02BBB70C = 45856524)
02B37DD4: 02B90000 (int: 45678592, pint: 0xCDFAB764)


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


Famous Hero
posted April 17, 2019 08:10 AM
Edited by XEricSin at 08:11, 17 Apr 2019.

majaczek said:
Is it possible to trigger Orb of Vulnerability effect without giving the artifact to hero ?


I remember I posted this before. Somewhere.

By Hawaiing. May need hooker plugin.
*FU101050-101099
*z801-z802
**************************Main**************************
*Modifies the internal function<004D9460> that checks equipped artifacts*
*z801 stores hooker,z802 stores equipment flags for left and right heroes*
*z801(98B3E8),z802(Left 98B5E8,right 98B6E8)

!?BA0&1000;
!!FU101050:P0;
!!DO101051/10008040/10008551/1:P;

!?BA1&1000;
!!FU101050:P1;

!?FU101050&x1=0;[set hook]
*004D94C9 - e9 1a 1f 4b 00 - jmp 0098b3e8
*004D94CE - 90  - nop
*004D94CF - 90  - nop
!!UN:C5084361/1/233;
!!UN:C5084362/4/4923162;
!!UN:C5084366/2/37008;
*z801 assembly codes*
!!UN:C10007528/4/141921106;
!!UN:C10007532/1/161;
!!UN:C10007533/4/6919200;
!!UN:C10007537/2/37003;
!!UN:C10007539/4/21452;
!!UN:C10007543/4/326421049;
!!UN:C10007547/2/37003;
!!UN:C10007549/4/21456;
!!UN:C10007553/4/326421049;
!!UN:C10007557/4/1583005745;
!!UN:C10007561/4/311901;
!!UN:C10007565/1/144;
!!UN:C10007566/4/2257240113;
!!UN:C10007570/4/10008040;
!!UN:C10007574/4/3224439019;
!!UN:C10007578/2/34442;
!!UN:C10007580/4/10008296;
!!UN:C10007584/4/1963063427;
!!UN:C10007588/4/1566464736;
!!UN:C10007592/4/2415920322;
!!UN:C10007596/1/0;

!?FU101050&x1=1;[restore]
*004D94C9 - 33 c0 - xor eax,eax
*004D94CB - 5e  - pop esi
*004D94CC - 5d  - pop ebp
*004D94CD - c2 04 00 - ret 0004
!!UN:C5084361/4/1566490675;
!!UN:C5084365/2/1218;
!!UN:C5084367/1/0;

!?FU101051;[clear memory]
!!UN:Cx16/1/0;

!?FU101052;[set or read equipped artifacts]
*x1=0 left, 1 right
*x2=art(1-170)
*x3=value to set or read (1=equipped)
*x4=0 set, 1 read
!!FU|x1<0/x1>1/x2<1/x2>170/x4<0/x4>1:E;
!!VRy1:Sx1 *256 +x2 +10008040;
!!UN&x4=0:Cy1/1/x3;
!!UN&x4=1:Cy1/1/?x3;
**************************END Main**************************

!?BA0&1000; [Add artifacts below]
!!FU101052:P0/91/1/0; [left hero gets art 91]
.....

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


Supreme Hero
Work at Magic Dimmension
posted April 17, 2019 04:16 PM
Edited by majaczek at 16:44, 18 Apr 2019.

help please with consecutive crash on mainmenu-save
Gdrive_debug_era

already fixed (hopefully)

EDIT:  How to change artifacts bought by AI in blacksmith? I wish to do something like "buy all machines at blacksmith.dll" but with new artifacts from emerald, and only for AI (for PC I did nice !?DL dialog)

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


Famous Hero
posted April 19, 2019 04:53 AM

If it is for AI, why don't you just add that artifact to the hero using HE command?

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


Supreme Hero
Work at Magic Dimmension
posted April 19, 2019 07:09 AM
Edited by majaczek at 17:48, 19 Apr 2019.

XEricSin said:
If it is for AI, why don't you just add that artifact to the hero using HE command?


I wish to rid of old war machines arts. It happens sometimes that AI buys old ones

EDIT: Solved just locked buying artifacts 4-5-6

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


Hired Hero
posted April 19, 2019 07:05 PM
Edited by TheSamaritan at 19:14, 19 Apr 2019.

I'm new to erm how should i begin?

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


Supreme Hero
Work at Magic Dimmension
posted April 19, 2019 08:15 PM

TheSamaritan said:
I'm new to erm how should i begin?

- read erm help
- read example scripts
- while reading example scripts look to  erm help


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


Hired Hero
posted April 19, 2019 08:42 PM

I did read a lot of erm help and I looked at some scripts.Now What?

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


Promising
Supreme Hero
posted April 19, 2019 11:12 PM

Launch ERM editor. Write your first small script. Save script as *.erm file. Name of the filde should be the same as name of your map.
____________

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


Hired Hero
posted April 20, 2019 08:01 AM

avatar said:
Launch ERM editor. Write your first small script. Save script as *.erm file. Name of the filde should be the same as name of your map.

How can i get It I use notepad.How to download ERM Editor

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


Promising
Supreme Hero
posted April 20, 2019 09:03 AM

Notepad is fine, erm scripts/files are plain text. ERM scripts works only with WoG/ERA. Erm Scripter is integral part of this platforms (like map editor). Look for erm editor.exe in your heroes3 folders.
____________

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


Hired Hero
posted April 20, 2019 10:17 AM
Edited by TheSamaritan at 10:24, 20 Apr 2019.

I don't have it! Is there a download link or sth


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


Supreme Hero
Work at Magic Dimmension
posted April 20, 2019 11:03 AM

TheSamaritan said:
I don't have it! Is there a download link or sth




it's in tools subfolder

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


Admirable
Omnipresent Hero
Wog refugee
posted April 20, 2019 11:04 AM

Oh boy, you won't get far if it starts like this.

 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 350 ... 359 360 361 362 363 ... 400 407 · «PREV / NEXT»
Post New Poll    Post New Topic    Post New Reply

Page compiled in 0.6521 seconds