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 > Library of Enlightenment > Thread: XXL patch. Play big maps.
Thread: XXL patch. Play big maps. This thread is 22 pages long: 1 10 ... 12 13 14 15 16 ... 20 22 · «PREV / NEXT»
Salamandre
Salamandre


Admirable
Omnipresent Hero
Wog refugee
posted November 15, 2011 05:59 PM
Edited by Salamandre at 17:59, 15 Nov 2011.

I don't know how to do that. Finding objects internal ID require to be able to read h3m format. Some objects which I added in early stage of map design work correctly. But if you add now any pickable object, will not work, number of total objects is 40000+.

I know their ERM type/subtype, but here is different, right?
____________
Era II mods and utilities

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


Responsible
Supreme Hero
posted November 15, 2011 06:04 PM

Can I find ERM types/sybtypes in some manual?

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


Responsible
Supreme Hero
posted November 15, 2011 06:16 PM

Well I suppose ERM types/subtypes are exactly the same as in .h3m

55h = 85 - Resource (Wood, Ore, ..., Gold), right?

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


Admirable
Omnipresent Hero
Wog refugee
posted November 15, 2011 06:48 PM
Edited by Salamandre at 19:01, 15 Nov 2011.

I am not sure. Here is ERM type list. Subtypes are in parentheses when different than zero.

If I make a small map where you can place all visitable objects by right-click, would it help to identify their ID? I can do that.

0 <none>
1 <none>
2 Altar of Sacrifice
3 Anchor Point
4 Arena
5 Artifact [0-143 - Format A1]
6 Pandora's Box
7 Black Market
8 Boat
9 Borderguard [0-7 - Format BG]
10 Keymaster's Tent [0-7 - Format BG]
11 Buoy
12 Campfire
13 Cartographer
14 Swan Pond
15 Cover of Darkness
16 Creature Bank [0-20 - Format CB]
17 Creature Generator 1 [0-95 - Format CG]
18 Creature Generator 2
19 Creature Generator 3
20 Creature Generator 4 [0-1 - Format CG]
21 Cursed Ground
22 Corpse
23 Marletto Tower
24 Derelict Ship
25 Dragon Utopia
26 Event
27 Eye of the Magi
28 Faerie Ring
29 Flotsam
30 Fountain of Fortune
31 Fountain of Youth
32 Garden of Revelation
33 Garrison [0=ordinary, 1=antimagic]
34 Hero [0-155 - FormatH]
35 Hill Fort
36 Grail
37 Hut of the Magi
38 Idol of Fortune
39 Lean To
40 Decorative Object
41 Library of Enlightenment
42 Lighthouse
43 Monolith One Way Entrance [0 -7 - Format M1]
44 Monolith One Way Exit [0 -7 - Format M1]
45 Monolith Two Way [0 -7 - Format M2]
46 Magic Plains
47 School of Magic
48 Magic Spring
49 Magic Well
50 <blank>
51 Mercenary Camp
52 Mermaid
53 Mine [0 - 7 - Format MI]
54 Monster [0 - 196 - Format C]
55 Mystical Garden
56 Oasis
57 Obelisk
58 Redwood Observatory
59 Ocean Bottle
60 Pillar of Fire
61 Star Axis
62 Prison
63 New WoG objects [0 - 74]
64 Rally Flag
65 Random Artifact
66 Random Treasure Artifact
67 Random Minor Artifact
68 Random Major Artifact
69 Random Relic
70 Random Hero
71 Random Monster
72 Random Monster 1
73 Random Monster 2
74 Random Monster 3
75 Random Monster 4
76 Random Resource
77 Random Town
78 Refugee Camp
79 Resource [0 - 7 - Format R]
80 Sanctuary
81 Scholar
82 Sea Chest
83 Seer's Hut
84 Crypt
85 Shipwreck
86 Shipwreck Survivor
87 Shipyard
88 Shrine of Magic Incantation
89 Shrine of Magic Gesture
90 Shrine of Magic Thought
91 Sign
92 Sirens
93 Spell Scroll [0 - 69 - Format SP]
94 Stables
95 Tavern
96 Temple
97 Den of Thieves
98 Town [0 - 8 -FormatT]
99 Trading Post
100 Learning Stone
101 Treasure Chest [UN:B]
102 Tree of Knowledge
103 Subterranean Gate
104 University
105 Wagon
106 War Machine Factory
107 School of War
108 Warrior's Tomb
109 Water Wheel
110 Watering Hole
111 Whirlpool
112 Windmill
113 Witch Hut [0 - 27 - Format SS]
114 Brush
115 Bush
116 Cactus
117 Canyon
118 Crater
119 Dead Vegetation
120 Flowers
121 Frozen Lake
122 Hedge
123 Hill
124 Hole
125 Kelp
126 Lake
127 Lava Flow
128 Lava Lake
129 Mushrooms
130 Log
131 Mandrake
132 Moss
133 Mound
134 Mountain
135 Oak Trees
136 Outcropping
137 Pine Trees
138 Plant
143 River Delta
147 Rock
148 Sand Dune
149 Sand Pit
150 Shrub
151 Skull
152 Stalagmite
153 Stump
154 Tar Pit
155 Trees
156 Vine
157 Volcanic Vent
158 Volcano
159 Willow Trees
160 Yucca Trees
161 Reef
162 Random Monster 5
163 Random Monster 6
164 Random Monster 7
165 Brush
166 Bush
167 Cactus
168 Canyon
169 Crater
170 Dead Vegetation
171 Flowers
172 Frozen Lake
173 Hedge
174 Hill
175 Hole
176 Kelp
177 Lake
178 Lava Flow
179 Lava Lake
180 Mushrooms
181 Log
182 Mandrake
183 Moss
184 Mound
185 Mountain
186 Oak Trees
187 Outcropping
188 Pine Trees
189 Plant
190 River Delta
191 Rock
192 Sand Dune
193 Sand Pit
194 Shrub
195 Skull
196 Stalagmite
197 Stump
198 Tar Pit
199 Trees
200 Vine
201 Volcanic Vent
202 Volcano
203 Willow Trees
204 Yucca Trees
205 Reef
206 Desert Hills
207 Dirt Hills
208 Grass Hills
209 Rough Hills
210 Subterranean Rocks
211 Swamp Foliage
212 Border Gate [0-7 - Format BG]
213 Freelancer's Guild
214 Hero Placeholder
215 Quest Guard
216 Random Dwelling
217 <none>
218 <none>
219 Garrison
220 Mine
221 Trading Post
222 Clover Field
223 Cursed Ground
224 Evil Fog
225 Favourable Winds
226 Fiery Fields
227 Holy Ground
228 Lucid Pools
229 Magic Clouds
230 Magic Plains
231 Rocklands

Note: Some objects have snow versions. here they are:
- Learning Stone (type 100, subtype 1)
- Idol (t:38, s:1)
- Library (t:41, s:1)
- Witch hut (t:113, s:1)
- Subter. Entrance (t:103, s:1)
- Knowledge Tree (t:102, s:1)
- Tavern (t:95, s:1)
____________
Era II mods and utilities

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


Admirable
Omnipresent Hero
Wog refugee
posted November 15, 2011 08:26 PM

So far I tested:

Creature banks, creature dwellings, bonus objects (learning stone etc), windmills, water mills and seer huts do not need ID swap. They work.

Border gates, quest gates, resources, chests, monsters, artefacts and towns need ID swap. First do not vanish when picked/defeated, towns do not update when build something inside.
____________
Era II mods and utilities

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


Responsible
Supreme Hero
posted November 15, 2011 08:47 PM
Edited by AlexSpl at 20:49, 15 Nov 2011.

Thanks. Indeed, an object number is considered as a signed word (-32768 .. 32767). I have found the instructions causing the problem. I'm thinking about patching the executable, if possible.

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


Promising
Known Hero
posted November 15, 2011 09:22 PM

AlexSpl, can you say where problem? Address or function.
____________
Hundreds of DEFs

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


Responsible
Supreme Hero
posted November 15, 2011 09:23 PM bonus applied by angelito on 16 Nov 2011.

Well, the problem has been successfully solved. Have you noticed weird problems with saving/loading? These have been solved too. I think I'll post my patch after some testing. Now you can place up to 65535 objects on a map.

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


Responsible
Supreme Hero
posted November 15, 2011 09:27 PM

2itsjustme: OK, but again - this hasn't been tested properly. Change the byte at AA82E to B7. That simple.

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


Responsible
Supreme Hero
posted November 15, 2011 09:31 PM

OK, the problem with load/save still remains Should think how to fix it. Though it is a start after all

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


Promising
Known Hero
posted November 15, 2011 09:47 PM

Yes, worked!
movsx -> movzx?

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


Admirable
Omnipresent Hero
Wog refugee
posted November 15, 2011 09:50 PM

wow hold on a bit guys, what this means? Itsjust me just sent me an exe which works. Means you genius and all problems gone?!
____________
Era II mods and utilities

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


Responsible
Supreme Hero
posted November 15, 2011 09:54 PM

Nope, there is another one with load/save. I think it has the same origin.

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


Admirable
Omnipresent Hero
Wog refugee
posted November 15, 2011 09:55 PM

I could place 65000 objects, its just that they could not be deleted in game. Ok, waiting for the Grail.
____________
Era II mods and utilities

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


Responsible
Supreme Hero
posted November 15, 2011 10:01 PM

Now they should behave in a correct way. So, I think you may wish to move further and finish this awesome map?

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


Admirable
Omnipresent Hero
Wog refugee
posted November 15, 2011 10:02 PM

It works great until I load game, then exits to desktop without warning.
____________
Era II mods and utilities

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


Responsible
Supreme Hero
posted November 15, 2011 10:06 PM

Yes I wrote about it already. But I think I could fix it too, soon.

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


Admirable
Omnipresent Hero
Wog refugee
posted November 15, 2011 10:07 PM

Fantastic work, and so fast.

Thank you both of you.
____________
Era II mods and utilities

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


Responsible
Supreme Hero
posted November 16, 2011 12:25 AM

Noticed that that bug with loading is present only when you save a game on 111. Try, for example, to save a game on 112 and it just disappears. Very strange...

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


Admirable
Omnipresent Hero
Wog refugee
posted November 16, 2011 12:28 AM
Edited by Salamandre at 00:29, 16 Nov 2011.

You are right. Then it is not noticeable, firstly there is nothing to pick/fight on first day, secondly I can disable save on first day only if really necessary. Just hoping that the day variable is not some redundant data which may come again later...
____________
Era II mods and utilities

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Jump To: « Prev Thread . . . Next Thread » This thread is 22 pages long: 1 10 ... 12 13 14 15 16 ... 20 22 · «PREV / NEXT»
Post New Poll    Post New Topic    Post New Reply

Page compiled in 0.0579 seconds