FOUND - Console Command to Reveal Whole Map for All Players (ANewReignBeta)
Following A New Reign Beta, I wanted to quickly generate a whole bunch of different caves and quickly view the map, to observe the patterns in world generation.
Even better if I could reveal the entire map not just for myself, but for other players on the server, too.
I checked a bunch of websites and mods, but couldn't find anything that worked for all players in A New Reign Beta on a Dedicated Server with Caves.
So I dug through the source code (started with Ocuvigil code, lol) and managed to hack it together myself.
Here is the command:
for k,v in pairs(AllPlayers) do for x=-1600,1600,35 do for y=-1600,1600,35 do v.player_classified.MapExplorer:RevealArea(x,0,y) end end end
It is a bit of a hack, it assumes that x=-1600,1600 and y=-1600,1600 are sufficiently large to cover your entire map.
This is true for a world of default size, but if you generate a world that is much larger, you might need to make those numbers even bigger.
Please note that the whole server hiccups and freezes for a moment when you run it.