ra2 icon indicating copy to clipboard operation
ra2 copied to clipboard

US Spy Sat doesn't seem to work.

Open beigexperience opened this issue 6 years ago • 9 comments

You might know this already but the spy sat radar map revealer of the Americans doesn't seem to work.

I have absolutely no idea what I'm doing but changing the basic RevealsShroud Range to a big number seems to mimick the desired effect until it bumps up against MaximumTileSearchRange from OpenRA.Game/Map/MapGrid.cs. This is probably not the proper solution.

I've just started reading through the code, but as far as I understand you'd want to encapsulate the shroud revealing logic in some sort of "trait" I guess you call it that's invoked on power gained to the building/power loss right?

beigexperience avatar Jan 20 '18 03:01 beigexperience

We probably want to abuse the GPSPower or create a similar trait, yes.

abcdefg30 avatar Jan 20 '18 11:01 abcdefg30

Do note that fog of war is the reason why RA1 got GPS icons instead of the full-map-reveal it had. I'm not sure if recreating the shroud/FoW removal entirely wiith spysats would be good.

GraionDilach avatar Jan 20 '18 14:01 GraionDilach

~~Hmm, the visual studio .sln solution file seems to be broken?~~ nevermind

beigexperience avatar Jan 21 '18 09:01 beigexperience

It seems to me like this one can only be fixed with changes to Shroud.cs in OpenRA (e.g. splitting the disable flag to work for shroud and fog separately or adding a new SourceType). It seems impossible atm to temporarily disable the shroud without also disabling fog of war and affecting exploration data permanently.

Nihilianth avatar Jan 10 '19 01:01 Nihilianth

Well in RA2 OG, GPS satellite it would reveal all map and fog of war, and it was a major advantage in both single and multiplayer game. I don't know if OpenRA decided to GPS icons for multiplayer balance, or if it was like that in the original RA game.

RA2 GPS had it's shortcomings and advantages of course in relation to RA1. Since it was based on a building, it was deployed instantly if we had the energy for it, but if it was not powered or destroyed that effect was disabled. It also functions as a backup radar building. In RA1 we had to wait to finish deploying the satellite, but if the tech center was destroyed, the effect was still in usage, as long we had the radar powered.

https://cnc.fandom.com/wiki/Global_Positioning_System

https://cnc.fandom.com/wiki/Spy_satellite_(Red_Alert_2)

IMHO, aside from a balance issue, we should mantain the OG behavior.

In relation to implementation, the spy satellite building should have a trait, that as long the building was powered, it revealed all fog and map ( except of course if the opponent had the gap generator) . This would implement the OG behavior, mantain some balance and encapsulated the behavior for other mods.

sorcerer86pt avatar Apr 16 '19 18:04 sorcerer86pt

Westwood had no implementation of fog of war before TS and even the implementation within TS/RA2 was broken, which is why they were disabled entirely, with only the sprite remaining among the shipped assets.

WW RA2 reshrouded the map when the SpySat was lost, exactly the way a Spy infiltration would have.

GraionDilach avatar Apr 17 '19 08:04 GraionDilach

First part, I didn't even knew that. The second, yeah, that's completely true.

sorcerer86pt avatar Apr 17 '19 09:04 sorcerer86pt

anyone will do anything on this issue?

sorcerer86pt avatar Feb 13 '20 15:02 sorcerer86pt

We may have to wait a little bit before we can take action on this. @Mailaender's patch is not yet included on release 20200503 😞

Shin-Aska avatar Jun 07 '20 07:06 Shin-Aska

So was the RA2 US sat implemented? Should this be closed? Also happy new year.

beigexperience avatar Dec 31 '22 17:12 beigexperience

The base engine was updated, but the new trait was not yet added: https://github.com/OpenRA/ra2/pull/802

Mailaender avatar Dec 31 '22 18:12 Mailaender