Is there a reason why when we come into a game the map cant...

« Back

412 days, 3 hours, 49 minutes ago
Profile Image
procrustes
Is there a reason why when we come into a game the map cant...Write Reply
Is there a reason why when we come into a game the map cant automatically be zoned onto out home planet? A silly simple lazy(?) thing that just makes it easier.
412 days, 2 hours, 58 minutes ago
Profile Image
hijk
RE: Is there a reason why when we come into a game the map cant...Write Reply
YES. Focus the map on Homeworld on load . . .
If anyone can identify the variables that would need to be set to hold a default map view x,y position, I'd be happy to take a stab at writing the plugin script to do it.
412 days, 2 hours, 53 minutes ago
Profile Image
glyn
RE: Is there a reason why when we come into a game the map cant...Write Reply
And for Sphere maps have the homeworld in the center of the Starmap.
412 days, 2 hours, 4 minutes ago
Profile Image
mcnimble
RE: Is there a reason why when we come into a game the map cant...Write Reply
Bounding Box around planets owned, center in the middle. Works for single starting planet, as well as a group.

Remember position in a plugin-specific note (goes onto the NU server, per game).

Re-center each turn on that location (of course).

But if location falls outside bounding box, recompute. HW lost, who knows.

If there are no owned planets, use ships (wandering tribes scenario)
412 days, 1 hours, 56 minutes ago
Profile Image
hijk
RE: Is there a reason why when we come into a game the map cant...Write Reply
Just found vgap.map.centerMap() which takes x,y args. The function does exactly what it sounds like it should do by name. It just needs to be wrapped inside some control statements to determine x,y based on map type, planets or ships, etc. Will give it a try. Stay tuned.
411 days, 21 hours, 22 minutes ago
Profile Image
hijk
RE: Is there a reason why when we come into a game the map cant...Write Reply
@Procrustes - Here's a simple plugin that just defaults to HomeWorld location for map focus (https://github.com/hijk-planetsnu/NuPlugs). I'll work out in future an input form to allow users to select how the focus should be determined. But since I too was really tired of scrolling the map to start playing a turn, I wanted to start with just a HW centering task.
410 days, 11 hours, 16 minutes ago
Profile Image
procrustes
RE: Is there a reason why when we come into a game the map cant...Write Reply
Thanks all
410 days, 10 hours, 55 minutes ago
Profile Image
procrustes
RE: Is there a reason why when we come into a game the map cant...Write Reply
Although can i ask
@Hijk how I install from here? I'm not familiar with this site and there is no nice install button.
410 days, 8 hours, 4 minutes ago
Profile Image
drgirasol
RE: Is there a reason why when we come into a game the map cant...Write Reply
Check out https://chmeee.org/#planets.nu