Random maps - amount of TCs in small maps IMPLEMENTED

Post Reply
User avatar
Detros
Posts: 460
Joined: Sun Dec 11, 2016 12:01 pm

Random maps - amount of TCs in small maps IMPLEMENTED

Post by Detros »

There is a lot of 20x20 random maps. The settings for amount of generated TCs seem to not work properly for them sometimes.

When there are 2 players the game generates
  • 8 TCs for "few" option
  • 8 TCs for "normal" option
  • 12 TCs for "many" option
Why are "few" and "normal" the same? Shouldn't "normal" generate 10 TCs?
For 30x30 maps the amount of TCs seems to go: 14/18/26.
Stratego (dev)
Site Admin
Posts: 15741
Joined: Fri Apr 25, 2014 9:28 pm

Re: Random maps - amount of TCs in small maps

Post by Stratego (dev) »

the current logic is:

few: divider = 80;
normal: divider = 60;
many: divider = 40;
countNeutralTCs = mapSizeColumns * mapSizeRows / divider; (20*20 = 400 so on few: 5 on normal: 6,67)
countNeutralTCs = rounding countNeutralTCs (few:5 or normal:6)


so it should be different, will check.
Stratego (dev)
Site Admin
Posts: 15741
Joined: Fri Apr 25, 2014 9:28 pm

Re: Random maps - amount of TCs in small maps

Post by Stratego (dev) »

ok, i have a fix on it
uos 10

now it works like above

and in this case the tc-s:
When there are 2 players the game generates
- 8 TCs for "few" option
- 12 TCs for "normal" option
- 14 TCs for "many" option

is it ok, or too much?
(it is likely that we have more TC-s now as before...)
please check by
1. NOT downloading the update and bount other cases too eg: 2 player on 30x30 map, 2 player on 40x40 map, 4 player on 40x40 map, 6 players 20x20 map, 6players 40x40 map (these blue ones are important!)
2. and now downloading the new and countingthe same

thanks!
Stratego (dev)
Site Admin
Posts: 15741
Joined: Fri Apr 25, 2014 9:28 pm

Re: Random maps - amount of TCs in small maps IMPLEMENTED

Post by Stratego (dev) »

just realized counting TC-s on large maps can not be manually.
so i am doing these from code.

new logic:
6 players 20x20 map:
FEW: 08-31 09:13:18.570: V/generateTCs(2994): countNeutralTCs:5 countNeutralTCByEachPlayer:1 countNeutralTCAtNonplayerTerritory:-1
NORMAL: 08-31 09:15:49.230: V/generateTCs(2994): countNeutralTCs:7 countNeutralTCByEachPlayer:1 countNeutralTCAtNonplayerTerritory:1
MANY: 08-31 09:17:23.680: V/generateTCs(2994): countNeutralTCs:10 countNeutralTCByEachPlayer:2 countNeutralTCAtNonplayerTerritory:-2

6 players 40x40 map:
FEW: 08-31 09:15:01.480: V/generateTCs(2994): countNeutralTCs:20 countNeutralTCByEachPlayer:2 countNeutralTCAtNonplayerTerritory:8
NORMAL: 08-31 09:18:11.170: V/generateTCs(2994): countNeutralTCs:27 countNeutralTCByEachPlayer:3 countNeutralTCAtNonplayerTerritory:9
MANY: 08-31 09:18:40.830: V/generateTCs(2994): countNeutralTCs:40 countNeutralTCByEachPlayer:3 countNeutralTCAtNonplayerTerritory:22

old logic:
6 players 20x20 map:
FEW: 08-31 09:23:59.230: V/generateTCs(6150): countNeutralTCs:5 countNeutralTCByEachPlayer:1 countNeutralTCAtNonplayerTerritory:-1
NORMAL: 08-31 09:23:17.430: V/generateTCs(6150): countNeutralTCs:6 countNeutralTCByEachPlayer:1 countNeutralTCAtNonplayerTerritory:0
MANY: 08-31 09:21:47.280: V/generateTCs(6150): countNeutralTCs:10 countNeutralTCByEachPlayer:2 countNeutralTCAtNonplayerTerritory:-2

6 players 40x40 map:
FEW: 08-31 09:25:30.530: V/generateTCs(6150): countNeutralTCs:20 countNeutralTCByEachPlayer:2 countNeutralTCAtNonplayerTerritory:8
NORMAL: 08-31 09:24:46.450: V/generateTCs(6150): countNeutralTCs:26 countNeutralTCByEachPlayer:3 countNeutralTCAtNonplayerTerritory:8
MANY:08-31 09:22:56.510: V/generateTCs(6150): countNeutralTCs:40 countNeutralTCByEachPlayer:3 countNeutralTCAtNonplayerTerritory:22
Stratego (dev)
Site Admin
Posts: 15741
Joined: Fri Apr 25, 2014 9:28 pm

Re: Random maps - amount of TCs in small maps IMPLEMENTED

Post by Stratego (dev) »

ok, this is good news, because we will not have invalid random maps.
(because on map making only one thing is checked on each map: "will there be place to place the maximal amount of TC-s?" so a MAX player (6) and MANY TC setting is calculated and checked if TC-s are able to put down or not.)

now i see the 6 player MANY TC setting have not changed, so passed.
sirlindsley
Posts: 30
Joined: Thu Jan 08, 2015 2:52 am

Re: Random maps - amount of TCs in small maps IMPLEMENTED

Post by sirlindsley »

On the map, "The Great Throne",
5 players, many TC produces 10 TC.
4 players, many TC produces 12 TC.
Post Reply

Return to “Solved/Answered”