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: redraw?
Thread: redraw?
felipe
felipe


Known Hero
Editing Heroes Without Limits
posted March 09, 2013 02:26 PM

redraw?

When I place an object with the comand:

!!UN:I15/13/0/100/0/-1/0;


ERM help:
#1 = x
#2 = y
#3 = Level
#4 = Type of object (Format OB)
#5 = Subtype of object
If you use only 5 parameters you cannot set another terrain type and cancel redraw (terrain=-1, redraw=1)
#6 = Terrain type (Format TR)
#7 = Redraw needed (1) or not (0)


What´s the meaning of redraw? What´s the difference between redraw ans no redraw?

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


Admirable
Omnipresent Hero
Wog refugee
posted March 09, 2013 03:49 PM

The difference between 5 and 7 parameters in command is crashing the game. Use only 5, don't bother about terrain and redraw and you will be fine.

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


Responsible
Supreme Hero
posted March 09, 2013 06:03 PM

Unfortunately this version of the command was superceded by a later version (WoG 3.58f has the later version, some previous version had the one shown) which uses the 6th and 7th parameters for something else. The later version is shown right below the one cited above.

At least that is what I assume. I have not revised ERM Help for this assumption because I was not sure I am reading the minds of the WoG Team correctly, but will probably do so in my next revision.

Meanwhile, the same question applies to the later version, in which the terrain and redraw parameters are the 8th and 9th ones, and to many other ERM commands which have a redraw option.

Redraw means the Adventure Map will be redrawn to show the change immediately as the change is made. No redraw will mean the Adventure Map will not show the change until the next time it is refreshed, such as when a Hero moves.

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


Admirable
Omnipresent Hero
Wog refugee
posted March 09, 2013 06:15 PM

Looks like is inexact concerning UN:I (don't know about other redraws). Using 5 parameters will redraw automatically the map, using 7 will crash it.

At least I get a crash with UN:Ix/y/z/100/0/d/1  where terrain can be ID also, it still crashes.
____________
Era II mods and utilities

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


Responsible
Supreme Hero
posted March 09, 2013 07:34 PM

ERM Help says right after the quote in the first post:

Additional syntax: You can place an object which functions as object type/subtype but looks like an object type2/subtype2.
If you do so then:
 #1 = x
 #2 = y
 #3 = Level
 #4 = Type of object (see Format OB)
 #5 = Subtype of object
 #6 = Type2 of object to look like (see Format OB)
 #7 = Subtype2 of object to look like
If you use only 7 parameters you cannot set another terrain type and cancel redraw (terrain=-1, redraw=1)
 #8 = Terrain type (see Format TR)
 #9 = Redraw needed (1) or not (0)

This conflicts with the first form (#6 and $7 can only be one of two things: terrain and redraw option, or Type2 and Subtype2), so I assume Slava first used them for terrain and redraw and later changed to Type2 and Subtype2. I have used this second form successfully in several scripts, but it requires a valid object type and subtype which fits on the map and is suitable to substitute for the first object type and subtype. Since the text above says that without using the 8th and 9th parameters you cannot cancel redraw, that implies that the default is to redraw.

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


Admirable
Omnipresent Hero
Wog refugee
posted March 09, 2013 07:38 PM

I don't get it why it is called additional syntax, as it does a different thing. Thread starter wants to place an object, not to place an object which looks like another object. Seeing that command crashes the game as it conflicts with second, I suggest to cut the 6th and 7th parameters from Help, as they cause trouble.
____________
Era II mods and utilities

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


Known Hero
Editing Heroes Without Limits
posted March 09, 2013 08:09 PM

Quote:
Unfortunately this version of the command was superceded by a later version (WoG 3.58f has the later version, some previous version had the one shown) which uses the 6th and 7th parameters for something else. The later version is shown right below the one cited above.

At least that is what I assume. I have not revised ERM Help for this assumption because I was not sure I am reading the minds of the WoG Team correctly, but will probably do so in my next revision.

Meanwhile, the same question applies to the later version, in which the terrain and redraw parameters are the 8th and 9th ones, and to many other ERM commands which have a redraw option.

Redraw means the Adventure Map will be redrawn to show the change immediately as the change is made. No redraw will mean the Adventure Map will not show the change until the next time it is refreshed, such as when a Hero moves.


thanks

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


Responsible
Supreme Hero
posted March 09, 2013 08:46 PM
Edited by JimV at 20:48, 09 Mar 2013.

You're welcome.

This would be my guess at what the WoG Team meant to say:

Place an object.
 #1 = x
 #2 = y
 #3 = Level
 #4 = Type of object (see Format OB)
 #5 = Subtype of object

Additional syntax: You can place an object which functions as object type/subtype but looks like an object type2/subtype2.
If you do so then:
 #1 = x
 #2 = y
 #3 = Level
 #4 = Type of object (see Format OB)
 #5 = Subtype of object
 #6 = Type2 of object to look like (see Format OB)
 #7 = Subtype2 of object to look like
If you use only 7 parameters you cannot set another terrain type and cancel redraw (terrain=-1, redraw=1)
 #8 = Terrain type (see Format TR)
 #9 = Redraw needed (0) or not (1) [<-- changed--JV]
The following object types will cause a crash if you place them with UN:I:
114, 115, 122, 123, 138-142, 144-146, 151, 152, 154, 156, 157, 159, 160, 165, 166, 171, 172, 178, 180, 184-189, 191, 194, 196, 202, and 205.

I hesitate to put my words in the WoG Team mouths, but I am guessing that when ERM Help was first written, it was written for an earlier version of WoG in which UN:I had either 5 or 7 parameters and parameters 6 & 7 were for terrain and redraw. Then it was revised to add the Type2 and Subtype2 parameters before the terrain and redraw parameters, but they forgot to revise the first part.

There is also some confusion as to whether 1 means redraw or 0 means redraw. I have not tested this as yet, but my guess is as revised above. Actually, I have never used parameters 8 and 9 - but I have used 6 and 7 (as Type2 and Subtype2) successfully. I use them to insure that the AI players visit a new object, such as the Magic Mushrooms who give Dragons weekly in "Fairie Land". I place a Creature Dwelling which looks like a Mushroom. (This was before I heard of Grayface's patch which allows the same thing in the Map Editor.) ERM also has a method to entice the AI to visit Pyramid objects, but as noted in ERM Help, an AI Hero will not visit an unvisited Pyramid unless it has Expert Wisdom and a powerful army, so a level 1 Creature Dwelling is a better enticement.

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Jump To: « Prev Thread . . . Next Thread »
Post New Poll    Post New Topic    Post New Reply

Page compiled in 0.0500 seconds