Heroes of Might and Magic Community
please log in.! Register | Today's Posts | Search! | FAQ/Rules | AvatarList | MemberList | Profile

<a href="http://www.game-advertising-online.com/" target=_blank>Game Advertising Online</a><br> banner requires iframes

Heroes 1 (Heroes 2 (Heroes 3 (Heroes 4 (Heroes 5 (Heroes 6 ()

Login:     Username:     Password:    
Heroes Community > Heroes 3.5 - WoG and Beyond > Thread: ERM help and discussion
Thread: ERM help and discussion [ This thread is 228 pages long: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 (115) 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 ]
JimV
JimV


Responsible
Supreme Hero
posted November 12, 2011 07:27 PM

Bersy, of course.  I don't expect any big changes will be necessary, but another pair of eyes is usually helpful for proof-reading.  As I recall, Cepheus also volunteered to proof-read.

Salamandre, thanks for the information.  I will add it to the discussion of object-placement at the end of the UN receiver section, in my next ERM Help update.

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


Honorable
Undefeatable Hero
posted November 12, 2011 07:42 PM
Edited by Salamandre at 19:44, 12 Nov 2011.

Off topic: all dialogs from game are ertified in 99.ert. As Bersy desires that any further updates to the mod do not affect the scripts from the russian version, the english translation must follow precisely the order of %Z vars, which were fitting the russian syntax.

So sometimes is very hard to make things look correct, must adapt to the z vars order. The tedious part of the work was accomplished, now it remains certainly possible to be polished by an english native. Good luck!
____________

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


Responsible
Supreme Hero
posted November 12, 2011 10:27 PM

Since I will have other work soon, I have finally gotten around to making another WoG 3.58f ERM Help update:

CM4 trigger:  Added that this works for left-clicks as well as right-clicks.

OB Trigger:  the post-visit trigger !$OB does not work if the object has been disabled with OB:S.

IF:Q Receiver: Added the form IF:Q#1/#2, where #1 is a conditional flag number, and #2 is the number of a Z-variable.

MA:X Receiver (bit flags for creature abilities):

Revised bit-value 2048 from "no obstacle penalty" to "shoots ray instead of missile" plus reference to HC shooters thread.

OB Receiver:  added note about !$OB trigger, and Bersy's 1000 limit.

UN:I object placement notes at the end of the receiver table:

Added Salamandre's information about placing the buried grail object (36/0).

UN:O:  Added Salamandre's information that the red and yellow squares for a deleted object are changed to object type (OB:T?) zero, but retain their original subtype (OB:U?).

The updated files are at http://www.box.net/s/nv038pb3shsgnsuuum5a

Speaking of my next job, where can I download the English version of the Phoenix Mod?

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


Responsible
Supreme Hero
posted November 13, 2011 03:23 AM

Thanks you.
If you prefer to review the files themselves, then the only necessary thing is translation ( http://wogarchive.ru/file.php?id=180 ).
Other variant is to install the whole mod ( http://heroescommunity.com/viewthread.php3?TID=36772 ), check built-in manual by F1 and every feature specified there.

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


Promising
Famous Hero
posted November 13, 2011 11:33 AM
Edited by solitaire345 at 13:53, 13 Nov 2011.

Merged all notes except one (see below) from Jim's post with my help files. Also moved table of default search paths from UN reeciver page to format J8 to reduce size of UN receiver page Download

OB Receiver: added note about !$OB trigger, and Bersy's 1000 limit.

What is 1000 limit? I searched last few pages and found nothing about it.



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


Responsible
Supreme Hero
posted November 13, 2011 11:57 AM

ERM custom settings set-up with OB affect global static wog table of 1000 items length.

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


Responsible
Supreme Hero
posted November 13, 2011 12:02 PM

The original post is on the top of page 111 on my system:

"I also found in ERM that only 1000 objects can have custom hints or enabled/disabled settings. Static array, as usual."

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


Promising
Famous Hero
posted November 13, 2011 12:20 PM

Ah, I see. I checked back to page 112 only.. Download update
Download full help


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


Adventuring Hero
posted November 13, 2011 12:27 PM

I actually have a problem with Den of Thieves crashing the game when visiting, i tried to disable wogify, but it still crash.

I can't test on SoD because the map is in WoG format.

I used advanced option to change passability on some trees on the maps, can it be the problem ?
____________

My works

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


Promising
Famous Hero
posted November 13, 2011 12:55 PM

I used advanced option to change passability on some trees on the maps, can it be the problem ?
It might be if the trees overlap the entrance of your den of thieves


I can't test on SoD because the map is in WoG format.
If you have map editor's patch, you can click save as and then select map type in the drop-down box in save dialog under the file name.

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


Adventuring Hero
posted November 13, 2011 01:19 PM

Hello

Nothing, absolutly nothing, overlap the den of thieves entrance since it's in the middle of no where

I got the crash log and it says something about angel.dll

Time Stamp: Sun Nov 13 18:16:54 2011


Map Saved with:

WoG Version: 3 . 59
Built on Dec 12 2005

******************************_Exception_(trace_details)_******************************
### Location: 1 : 82
### Location: 8 : 28

EIP = {0x0047B6C5},  Access Violation. Attempt to {read} the inaccessible data at {0x00000008}

The Latest Executed ERM Receiver:

FU&y1<>116:E;
!!VRz2:S^Angel.dll^;
!!SN:Lz2/?v2;
!!VRz3:S^SaveGame^;
!!SN:Av2/z3/?v3;
!!VRz2:S^Qui

Register Context:


EAX = 0x00000000
EBX = 0x000000FF
ECX = 0x05B03C00
EDX = 0x00000004
ESI = 0x05B60FB0
EDI = 0x000001DE
EBP = 0x00289930
ESP = 0x002898F8

Stack Frame:

0x002898F8 : 0x00000000
0x002898FC : 0x00000000
0x00289900 : 0x0000003A
0x00289904 : 0x00000040
0x00289908 : 0x09210028
0x0028990C : 0x000000FF
0x00289910 : 0x000001DE
0x00289914 : 0x00000320
0x00289918 : 0x00000258
0x0028991C : 0x00000640
0x00289920 : 0x05B03970
0x00289924 : 0x05A71D00
0x00289928 : 0x00000000
0x0028992C : 0x00000000
0x00289930 : 0x0028999C
0x00289934 : 0x004EB076
0x00289938 : 0x00000002
0x0028993C : 0x00000004
0x00289940 : 0x00000000
0x00289944 : 0x00000000
0x00289948 : 0x0000003A
0x0028994C : 0x00000040
0x00289950 : 0x09210028
0x00289954 : 0x000000FF
0x00289958 : 0x000001DE
0x0028995C : 0x00000320
0x00289960 : 0x00000258
0x00289964 : 0x00000640
0x00289968 : 0x05A71D00
0x0028996C : 0x00000000
0x00289970 : 0x002899E0
0x00289974 : 0x05B60FB0
0x00289978 : 0xFFFF0001
0x0028997C : 0x00000000
0x00289980 : 0x05A71E28
0x00289984 : 0x05A71DB0
0x00289988 : 0x0048D810
0x0028998C : 0x0048D810
0x00289990 : 0x05A71E28
0x00289994 : 0x05A71DB0
0x00289998 : 0x002899C4
0x0028999C : 0x002899B0
0x002899A0 : 0x005FEAFC
0x002899A4 : 0x002899E0
0x002899A8 : 0x05B60FB0
0x002899AC : 0xFFFF0001
0x002899B0 : 0x002899C8
0x002899B4 : 0x004EAB5F
0x002899B8 : 0x002899E0
0x002899BC : 0x0DDB16F0
0x002899C0 : 0x05B60FB0
0x002899C4 : 0xFFFF0001
0x002899C8 : 0x00289A00
0x002899CC : 0x005FF638
0x002899D0 : 0x002899E0
0x002899D4 : 0x05A71D40
0x002899D8 : 0x0DDB16F0
0x002899DC : 0x0DDB16F0
0x002899E0 : 0x00000200
0x002899E4 : 0x00000002
0x002899E8 : 0x00000000
0x002899EC : 0x00000000
0x002899F0 : 0x00000000
0x002899F4 : 0x00000000
0x002899F8 : 0x00000000
0x002899FC : 0x00000000
0x00289A00 : 0x00289A18
0x00289A04 : 0x005FF20C
0x00289A08 : 0x00000001
0x00289A0C : 0xFFFF0001
0x00289A10 : 0x0000FFFF
0x00289A14 : 0x0FD29ED0
0x00289A18 : 0x00289A34
0x00289A1C : 0x006029C5
0x00289A20 : 0x00000001
0x00289A24 : 0x00000001
0x00289A28 : 0x05A71D40
0x00289A2C : 0x00000000
0x00289A30 : 0x0DDB16F0
0x00289A34 : 0x00289AA8
0x00289A38 : 0x00602B66
0x00289A3C : 0x0DDB16F0
0x00289A40 : 0x00000001
0x00289A44 : 0x00000001
0x00289A48 : 0x0DDB16F0
0x00289A4C : 0x05A71530
0x00289A50 : 0x00000061
0x00289A54 : 0x00000165
0x00289A58 : 0x05DB2657
0x00289A5C : 0x00000008
0x00289A60 : 0x05D85FF4
0x00289A64 : 0x05B60D9C
0x00289A68 : 0x00000001
0x00289A6C : 0x0DDB16F0
0x00289A70 : 0x0000002E
0x00289A74 : 0x00289AB0
0x00289A78 : 0x0063718E
0x00289A7C : 0xFFFFFFFF
0x00289A80 : 0x00289ABC
0x00289A84 : 0x005C9A43
0x00289A88 : 0x05B62DE0
0x00289A8C : 0x0D8B6E70
0x00289A90 : 0x05A71530
0x00289A94 : 0x05A71D40
0x00289A98 : 0x00289A48
0x00289A9C : 0x00289E9C
0x00289AA0 : 0x006389A0
0x00289AA4 : 0x00000007
0x00289AA8 : 0x00289ABC
0x00289AAC : 0x005FFA3D
0x00289AB0 : 0x0DDB16F0
0x00289AB4 : 0x005FFAC0
0x00289AB8 : 0x00000000
0x00289ABC : 0x00289EA8
0x00289AC0 : 0x004A9ED5
0x00289AC4 : 0x00000000
0x00289AC8 : 0x05D89CCA
0x00289ACC : 0x05A71530
0x00289AD0 : 0x0D8B6E70
0x00289AD4 : 0x00000000
0x00289AD8 : 0x00000000
0x00289ADC : 0x00000000
0x00289AE0 : 0x00000000
0x00289AE4 : 0x00000000
0x00289AE8 : 0x00000000
0x00289AEC : 0x00000000
0x00289AF0 : 0x00000000
0x00289AF4 : 0x05D89CCA
0x00289AF8 : 0x05A71530
0x00289AFC : 0x00289B24
0x00289B00 : 0x00289B14
0x00289B04 : 0x0D8B6E70
0x00289B08 : 0x01AE97BC
0x00289B0C : 0x00012CCB
0x00289B10 : 0x01AE97BC
0x00289B14 : 0x05D89CCA
0x00289B18 : 0x05A71530
0x00289B1C : 0x0D8B6E70
0x00289B20 : 0x00000003
0x00289B24 : 0x00289E7C
0x00289B28 : 0x0074CE29
0x00289B2C : 0x05D89CCA
0x00289B30 : 0x05A71530
0x00289B34 : 0x0D8B6E70
0x00289B38 : 0x00000000
0x00289B3C : 0x00000000
0x00289B40 : 0x00000000
0x00289B44 : 0x00000000
0x00289B48 : 0x00000000
0x00289B4C : 0x00000000
0x00289B50 : 0x00000000
0x00289B54 : 0x00000000
0x00289B58 : 0x00000000
0x00289B5C : 0x00000000
0x00289B60 : 0x00000000
0x00289B64 : 0x002A0000
0x00289B68 : 0x00000000
0x00289B6C : 0x00289C10
0x00289B70 : 0x7748AAE1
0x00289B74 : 0x00289C08
0x00289B78 : 0x00000001
0x00289B7C : 0x762B01E4
0x00289B80 : 0x00000000
0x00289B84 : 0x00000000
0x00289B88 : 0x00000000
0x00289B8C : 0x00000000
0x00289B90 : 0x00000000
0x00289B94 : 0x00000000
0x00289B98 : 0x00000000
0x00289B9C : 0x00000000
0x00289BA0 : 0x00000000
0x00289BA4 : 0x00000000
0x00289BA8 : 0x00000000
0x00289BAC : 0x00000000
0x00289BB0 : 0x02C89800
0x00289BB4 : 0x02C895F4
0x00289BB8 : 0x00000001
0x00289BBC : 0x2053534D
0x00289BC0 : 0x6578696D
0x00289BC4 : 0x65732072
0x00289BC8 : 0x7747E36C
0x00289BCC : 0x773A0234
0x00289BD0 : 0x00289D48
0x00289BD4 : 0x02BE01A4
0x00289BD8 : 0x02BE0000
0x00289BDC : 0x101D5488
0x00289BE0 : 0x05BE0000
0x00289BE4 : 0x003A0037
0x00289BE8 : 0x00000032
0x00289BEC : 0x00289CD8
0x00289BF0 : 0x00001A77
0x00289BF4 : 0x00000000
0x00289BF8 : 0x000006F4
0x00289BFC : 0x00360038
0x00289C00 : 0x00000032
0x00289C04 : 0x05BE0000
0x00289C08 : 0x101D5488
0x00289C0C : 0x02BE7AF8
0x00289C10 : 0x77483C74
0x00289C14 : 0x00000018
0x00289C18 : 0x773A028C
0x00289C1C : 0x00000000
0x00289C20 : 0x02C72F80
0x00289C24 : 0x02BE77E8
0x00289C28 : 0x02BE7904
0x00289C2C : 0x02C92210
0x00289C30 : 0x00289C48
0x00289C34 : 0x7748BB15
0x00289C38 : 0x00000008
0x00289C3C : 0x00000000
0x00289C40 : 0x00000000
0x00289C44 : 0x00000000
0x00289C48 : 0x00289CC8
0x00289C4C : 0x7748BA97
0x00289C50 : 0x00000000
0x00289C54 : 0x00000000
0x00289C58 : 0x77490E90
0x00289C5C : 0x00000000
0x00289C60 : 0x00289D40
0x00289C64 : 0x00000008
0x00289C68 : 0x7748BAB5
0x00289C6C : 0x773A02AC
0x00289C70 : 0x00000004
0x00289C74 : 0x00000001
0x00289C78 : 0x00000000
0x00289C7C : 0x00000000
0x00289C80 : 0x00000000
0x00289C84 : 0x00000000
0x00289C88 : 0x00000000
0x00289C8C : 0x00000000
0x00289C90 : 0x00000004
0x00289C94 : 0x00289D84
0x00289C98 : 0x7748389E
0x00289C9C : 0x00000000
0x00289CA0 : 0x77490E90
0x00289CA4 : 0x00000000
0x00289CA8 : 0x00000000
0x00289CAC : 0x00BE0000
0x00289CB0 : 0x00289C6C
0x00289CB4 : 0x00000002
0x00289CB8 : 0x00289E78
0x00289CBC : 0x774C1ECD
0x00289CC0 : 0x00555CEC
0x00289CC4 : 0x76276B9E
0x00289CC8 : 0x7628E54C
0x00289CCC : 0x0000023C
0x00289CD0 : 0x00001670
0x00289CD4 : 0x00000F84
0x00289CD8 : 0x00289E88
0x00289CDC : 0x10880082
____________

My works

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


Responsible
Supreme Hero
posted November 13, 2011 01:34 PM

Sometimes a map gets corrupted and crashes and the last executed ERM was not the real cause (the error message will show it whether it is the cause or not).  To test whether it is, if you post or email me the saved game I can disable the script which contains those commands and see what happens.

I have Era 1.8 installed.  What version of Era are you using (or is it TE)?

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


Promising
Famous Hero
posted November 13, 2011 01:37 PM

Delete all the stack frame.. I don't think this can help in any way..

Did you use any custom scripts? I don't remember any of them using SaveGame function.

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


Responsible
Supreme Hero
posted November 13, 2011 01:46 PM

Try to delete script98.erm and test again.

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


Promising
Famous Hero
posted November 13, 2011 01:55 PM

@Berserker: I posted this in edit of my older post, but you probably didn't notice this, so I bump my message again:
Quote:

@Berserker Do you know how are files h3wog.lod and h3custom.lod loaded?

That code for loading these files was decompiled to this:
Quote:

   if ( LoadFile("h3custom.lod", 1) )
     AddLod(5);



So I created a lod file test.lod with dialog template test.txt and wrote a test script to load my file:


Quote:
ZVSE
!?PI;
!!VRz1:S^test.lod^;
!!SN:Xz1;
!!SN:X?v1;
!!SN:E7815012/1/v1/1; LoadFile("test.lod", 1);
!!SN:E7692379/1/6; AddLod(6)
!!DL1:N^test.txt^;
!!DL1:S1;



However this didn't work as I expected and I got an error from "GetSpreadsheet". What else has to be done to make new lod work?


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


Adventuring Hero
posted November 13, 2011 11:52 PM

@Jim

I have the era from the era + wog package, it is 1.8 or 1.81 i don't remember

I mailed you the map, if you absolutly need a save i'll make one for you

@Bersey
Deleting srcipt 98 don't change anything, but if i understand correctly it just serve to auto save ?
____________

My works

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


Responsible
Supreme Hero
posted November 14, 2011 06:12 AM

Quote:
@Berserker Do you know how are files h3wog.lod and h3custom.lod loaded?

That code for loading these files was decompiled to this:

Look at c:\Era\Tools\Era\Sources\Era 1.9 Delphi\lodman.pas

Era 1.91 automatically loads all lods with *.pak extension and gives them priority over standard ones.

There is global table of static C++ structures TLod (400 bytes each one). All references to this table are redirected in wog to 28077D0. Game calls constructors for all 8 default lods (ZVS renamed two of them to h3wog and h3custom). Then lods are registered as containing defs/bmps-txts/wav-s. ZvsAddLodToList registers lods as having items of all three types.

Quote:
I got the crash log and it says something about angel.dll

Crash is in heroes section.

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


Hired Hero
posted November 14, 2011 07:01 AM

HI!

I have a new question. If I use !# and I load a saved file will it run again? Or only run when I wogified a map? If I make a new hero use !# and in campaign loaded the new map will this recalculate the heroes parameters or uses the settings in maps or what else?

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


Responsible
Supreme Hero
posted November 14, 2011 09:54 AM

Quote:
If I use !# and I load a saved file will it run again?



Click on Tutorials in ERM Help and do a search (Ctrl-F) for !#.  You will see this:

"Finally, instructions are just like receivers, except that they run only one time- when the map begins. They always begin with !#."

Really, there is very little I can tell you which is not in ERM Help.  I don't know why people who want to learn ERM won't read it.

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


Hired Hero
posted November 14, 2011 01:41 PM

I can read and I am a programmer. I did some bank softwares in my country. But you do not answers my question or did not understand.
If ir run when the map are loaded first then is it run when I load a saved game because then the map were loaded again. Some maked ERM working badly when uses in campaign. Changes the parameters of a hero. If a hero has for example 10 spell power in the next scene he has 2 becasuse not use !# but use !!.
I asked If I change !! to !# how will it works? You do not know it I think. Some crash will not crash if I started a new game used wogify and after it I load the old game. I think it is realy error (!# works not good).
I am 43 year old man and has 2 childer and i working at 7 to 17. I making this for my hobby not to be expert. So I only ask not for trouble you.

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
[ This thread is 228 pages long: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 (115) 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 ] < Prev Thread . . . Next Thread >
Post New Poll    Post New Topic    Post New Reply

Page compiled in 0.1345 seconds