HomeWildfire Games

Allow to enable Cartography at the start of a match.

Description

Allow to enable Cartography at the start of a match.

Adds a checkbox to the game setup to allow players to have Cartography autoresearched from the start of the match.
Refs. https://wildfiregames.com/forum/topic/27265-theres-any-mod-so-you-can-see-what-your-allies-see-from-the-start.

Patch by: @Jammyjamjamman
Differential revision: https://code.wildfiregames.com/D4191
Reviewed by: @Angen
Comments by: @andy5995, @Langbart

Event Timeline

@Freagarach did you check changes done after initial review?

Aye. :) They looked exactly the same as the other options. ^^

bb added a subscriber: bb.Aug 28 2021, 11:44 AM

Will this setting mean there is a useless tech ingame?

In rP25869#53659, @bb wrote:

Will this setting mean there is a useless tech ingame?

No, "Cartography" cannot be researched if the "Allied View" option was enabled. If it was not, you can research Cartography.

Langbart raised a concern with this commit.Oct 11 2021, 4:30 PM

An issue has been discovered that can be observed for the first time with this changeset. See #6356

This commit now has outstanding concerns.Oct 11 2021, 4:30 PM

An issue has been discovered that can be observed for the first time with this changeset. See #6356

This can be fixed in MapExploration.js, by swapping L31 and L32. I can push a fix soon. Should this be done in a new patch?

I can push a fix soon. Should this be done in a new patch?

Yes, please. Link the trac ticket with it. will test tomorrow.

I found some strange behavior that could be caused by this changeset, but I'm not sure, could you take a look at it? #6365

I found some strange behavior that could be caused by this changeset, but I'm not sure, could you take a look at it? #6365

This bug is same fog of war bug. The other units aren't missing, just hidden. (You will see them if you send your units to attack.)

PS: I tested ​Phab:D4305 as there was another error related to [25869] (#6356), but it did not fix the problem.

When I applied D4305, It did fix that bug. However, 0AD does some strange caching + retrieval when loading previous scenario maps played. So if you initially played the map with 0ad svn on or after this commit, then apply D4305 and reload this game again, it will load the map with the same (buggy) settings as used on the game before this patch.

Long story short, apply D4305, start the game, select a different map, then select the Combat Demo (Huge) again and the map should load correctly.

Langbart resigned from this commit.Oct 23 2021, 10:24 PM

I found some strange behavior that could be caused by this changeset, but I'm not sure, could you take a look at it? #6365

This bug is same fog of war bug. The other units aren't missing, just hidden. (You will see them if you send your units to attack.)

PS: I tested ​Phab:D4305 as there was another error related to [25869] (#6356), but it did not fix the problem.

When I applied D4305, It did fix that bug. However, 0AD does some strange caching + retrieval when loading previous scenario maps played. So if you initially played the map with 0ad svn on or after this commit, then apply D4305 and reload this game again, it will load the map with the same (buggy) settings as used on the game before this patch.

Long story short, apply D4305, start the game, select a different map, then select the Combat Demo (Huge) again and the map should load correctly.

Yes, its like you said. D4305 fixes the issue. Will close the ticket as a duplicate.

This commit no longer requires audit.Oct 23 2021, 10:24 PM