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: Tribute to Strategists
Thread: Tribute to Strategists This thread is 18 pages long: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 · «PREV / NEXT»
Salamandre
Salamandre


Admirable
Omnipresent Hero
Wog refugee
posted January 17, 2010 01:33 AM
Edited by Salamandre at 02:36, 17 Jan 2010.

The info in Rainalcar pdf is wrong, as it says there are 50% chances to get one stack upgraded. 7 dwarfs will always get 2 battles ones, 14 never. Testes 50 times.

@Edit: you're right, as soon as the location is changed, they get upgraded. But I don't think it is related to battlefield obstacles, as I disabled them.

@Edit II:
It is related to x/y location.
Small map:


Made another small map the creatures located on same squares got upgrades, the others not.

Made a large map, same locations got upgrade. Same for XL.
____________
Era II mods and utilities

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


Known Hero
TOH gamer
posted January 17, 2010 01:39 AM
Edited by Clay_Man at 01:41, 17 Jan 2010.

Salamandre, search for the user "Wub" -> he ran those tests which angelito referred to. The thread name may be "Run, forrest run" (not really sure), it's here in the library.

Edit: check the +qp awarded posts' sticky thread, it's there under Wub

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


Admirable
Omnipresent Hero
Wog refugee
posted January 17, 2010 02:07 AM

Thanks I read. He came to same conclusion + details about how many stacks are  (if one stack, obviously no upgrade). Starting with 2 stacks there is always upgrade on that tile.
____________
Era II mods and utilities

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


Promising
Supreme Hero
WCL owner
posted January 20, 2010 12:38 PM

upgraded stack positions on map:
111000000010000111111111111000000000
000000000001111111111110000000000011
000000001111111111100000000000011111
000011110111111100010000000111001111
111001111111001110000000100011111110
011111110011100000001000111111111111
111111111000000000000111111111110000
111111000000000001111111111110000000
110000100000001110111111100011000000
001000000011101111111100110000000110
000000110001111111011100000001000011
000000011111111111100000000000111111
000011111111111000000000000111111111
111111111111000000000001111011111110
011111110001000000011100111111100111
111100111000000010001111111011110000
111110000000000001111111111100000000
110000000000011111111111100000000000
000000000111111111111000010000000111
000000111011111110001100000001100111
001100011111110111000000010000111111
000111111101111000000000001111111111
111111111110000000000001111111111100
111111100000000000011111111111100010
111100010000000111001111111001100000
000110000000100011111110111100000000
100000001000011111111111000000000000
000000000111111111111000000000001111
000001111111111110000000000011110111
001110111111100011000000011001111111
100111111100110000000110001111111011
111111011110000000000011111111111100
111111100000000000111111111111000000
111000000000000111111111110000100000
000000000001111011111110001000000011
100000001100111111100111000000010001
____________
I play HoMM3 at www.heroes-
III.com

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


Admirable
Omnipresent Hero
Wog refugee
posted January 20, 2010 01:15 PM
Edited by Salamandre at 13:16, 20 Jan 2010.

Great, this is for 36x36, how works for bigger, just pasting the same schema right and down?
____________
Era II mods and utilities

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


Responsible
Supreme Hero
posted January 20, 2010 02:24 PM

Is there any function f(x, y, z) which can help to determine whether an upgraded stack appears?

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


Promising
Supreme Hero
WCL owner
posted January 20, 2010 03:25 PM

Quote:
Great, this is for 36x36, how works for bigger, just pasting the same schema right and down?

no idea. That's result of tests done by Horn.
Quote:
Is there any function f(x, y, z) which can help to determine whether an upgraded stack appears?

i don't think so.
____________
I play HoMM3 at www.heroes-
III.com

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


Promising
Famous Hero
Heroji su zakon
posted January 20, 2010 05:07 PM

The info posted here lately is truly extraordinary.
____________

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


Responsible
Supreme Hero
posted January 21, 2010 08:17 AM

Looking at that nils and ones array one can feel some kind of symmetry. I suppose, such a formula exists. Something like f(x, y, z) = g(x, y, z) mod m...

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


Responsible
Supreme Hero
posted January 22, 2010 07:46 AM bonus applied by angelito on 30 Nov 2011.
Edited by AlexSpl at 07:53, 25 Jan 2010.

Whether an upgraded stack appears or not, depends on the following condition:

([ax + by + cz + d] mod 32768) mod 100 < 50, where
a = 2992.911117
b = 14174.264968
c = 5325.181015
d = 32788.727920
You still get correct results when calculating with only six decimal digits, so I rounded the coefficients.

0 <= x <= 143
0 <= y <= 143

z = 0 for the surface level
z = 1 for the underground

[x] = floor(x)

If the above condition is met, you see an upgraded stack.

So, I think Horn was absolutely right. Here is my result for 36 x 36 map:

111000000010000111111111111000000000
000000000001111111111110000000000011
000000001111111111100000000000011111
000011110111111100010000000111001111
111001111111001110000000100011111110
011111110011100000001000111111111111
111111111000000000000111111111110000
111111000000000001111111111110000000
110000100000001110111111100011000000
001000000011101111111100110000000110
000000110001111111011100000001000011
000000011111111111100000000000111111
000011111111111000000000000111111111
111111111111000000000001111011111110
011111110001000000011100111111100111
111100111000000010001111111011110000
111110000000000001111111111100000000
110000000000011111111111100000000000
000000000111111111111000010000000111
000000111011111110001100000001100111
001100011111110111000000010000111111
000111111101111000000000001111111111
111111111110000000000001111111111100
111111100000000000011111111111100010
111100010000000111001111111001100000
000110000000100011111110111100000000
100000001000011111111111000000000000
000000000111111111111000000000001111
000001111111111110000000000011110111
001110111111100011000000011001111111
100111111100110000000110001111111011
111111011110000000000011111111111100
111111100000000000111111111111000000
111000000000000111111111110000100000
000000000001111011111110001000000011
100000001100111111100111000000010001

upg_bitmaps.txt
This text document contains two bitmaps (S + U) for 144 x 144 map.

BG.zip
This archive contains Bitmap Generator (BG.exe)

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


Promising
Supreme Hero
WCL owner
posted January 22, 2010 09:13 AM

2 questions:
1) can you find address of bug in exe? (if you attack guards with upgraded stack inside, then total number of guards after battle is reduced for the number of creatures in upgraded stack). Would be nice to fix this bug by patching ERA exe.
2) can you please post addresses of 143? (0 <= x <= 143). That may be important for future maps with size > 144x144
____________
I play HoMM3 at www.heroes-
III.com

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


Responsible
Supreme Hero
posted January 22, 2010 09:23 AM

Quote:
1) can you find address of bug in exe? (if you attack guards with upgraded stack inside, then total number of guards after battle is reduced for the number of creatures in upgraded stack). Would be nice to fix this bug by patching ERA exe.

I think, yes. It is not a problem.

2. I can try later. Maybe after week-end.
____________

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


Admirable
Omnipresent Hero
Wog refugee
posted January 22, 2010 12:00 PM
Edited by Salamandre at 13:01, 22 Jan 2010.

If anyone is interested, here is the ERM script to disable upgrades when neutrals:

ZVSE
!?BA0&1000;

!!BA:O?y-1/?y-2; attacking and defending owners (-1 for neutral creatures)
!!FU&y-2<>-1:E; exit if not neutral creatures

** Get stacks of neutrals
!!BA:M1/0/?y-3/?y-10 M1/1/?y-4/?y-11 M1/2/?y-5/?y-12 M1/3/?y-6/?y-13 M1/4/?y-7/?y-14 M1/5/?y-8/?y-15 M1/6/?y-9/?y-16;
** replace with all the same kind as first stack
!!BA&y-11>0:M1/1/y-3/y-11;
!!BA&y-12>0:M1/2/y-3/y-12;
!!BA&y-13>0:M1/3/y-3/y-13;
!!BA&y-14>0:M1/4/y-3/y-14;
!!BA&y-15>0:M1/5/y-3/y-15;
!!BA&y-16>0:M1/6/y-3/y-16;

Same quantity, but the upgraded stack is downgraded to the first stack type (which is never upgraded).

In my new map some creatures were replaced but not their upgrade, thus this script is needed, to avoid a mighty gorgon pooping in the middle of gorillas (with death stare and such). May be useful for other modders.


____________
Era II mods and utilities

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


Promising
Supreme Hero
WCL owner
posted January 22, 2010 02:01 PM

Quote:
If anyone is interested, here is the ERM script to disable upgrades when neutrals:


similar script was used in TE (more then 2 years). It would be interesting to get script that shows if upg stack is present (by right-click on adv map) and which restores guard quantity to correct number (if hero quits fight or dies)
____________
I play HoMM3 at www.heroes-
III.com

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


Responsible
Supreme Hero
posted January 22, 2010 03:16 PM
Edited by maretti at 15:17, 22 Jan 2010.

Personally I dont see any need to change anything here. We dont need everything to be made easier. If you cant handle some guards if there are upgrades in, check it out with a scout. I dont find it a problem that the stack will be reduced as long as you only use one scout. This will actually give it aproximatly the same strenght as a stack with no upgrades.

On the other hand the benefit will be that you will have one less rule to administrate.
____________
Crag rules, Orrin and Ivor suck

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


Responsible
Supreme Hero
posted January 25, 2010 12:05 PM
Edited by AlexSpl at 12:30, 25 Jan 2010.

2SAG: I'm making headway Just have taught the mapeditor to create playable 54 x 54 random maps in SoD.

It's simple to create 216 x 216 map as well. I have one (created manually as RMG can't handle such sizes). Though there are troubles with the mini-map (you can point only upper-left 144 x 144 area) but if you close your eyes on this fact it is absolutely playable! So, there are two problems left:
1. How to fix mini-map
2. How to teach RMG to create 216 x 216 maps



____________

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


Admirable
Omnipresent Hero
Wog refugee
posted January 25, 2010 12:30 PM

Would be more impressive if you said 540x540
____________
Era II mods and utilities

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


Responsible
Supreme Hero
posted January 25, 2010 12:33 PM
Edited by AlexSpl at 12:34, 25 Jan 2010.

Re-read my last post. There will be MANY troubles with maps bigger than 256 x 256.
____________

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


Admirable
Omnipresent Hero
Wog refugee
posted January 25, 2010 12:40 PM

I know, already tested them. The minimap can't handle, and I doubt ERM can also identify squares x>144/y>144. If ERM is not modified as well, I don't see any utility...
____________
Era II mods and utilities

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


Responsible
Supreme Hero
posted January 25, 2010 12:51 PM
Edited by AlexSpl at 12:51, 25 Jan 2010.

And what do you think about them? Are they worth spending time in  trying to fix mini-map?
____________

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Jump To: « Prev Thread . . . Next Thread » This thread is 18 pages long: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 · «PREV / NEXT»
Post New Poll    Post New Topic    Post New Reply

Page compiled in 0.0611 seconds