Playing "Ardent", I found an odd little bug. It was near the end of "Imperial Escort". I'd defeated the kidnappers' ship and wanted to use Sail To to zap back to the mooring point to go after the kidnappers in the cave. But Peninsula de Zapata did not show up in the Sail To destinations.
First thought: maybe I'd put something in the quest to prevent landing there before fighting the ship, then forgot to cancel it after the battle. A quick check on quest code did not show up anything of the sort, and anyway I couldn't remember having done that.
A bit more digging showed that I could Sail To Peninsula de Zapata if I flew a flag friendly to Spain but not if I flew a hostile flag - and that this happened in other storylines, not just "Ardent". There was nothing odd in Cuba's entry in "PROGRAM\ISLANDS\Islands_init.c". But "PROGRAM\Locations\init\Cuba.c" has this for "Cuba_Shore_06", alias Peninsula de Zapata:
Compare that to "QC_port" in "Quebradas Costillas.c", which uses the same location model:
That made sense. Sail To destinations are indeed controlled by BattleInterface. And ports don't show up if you're flying a hostile flag, forts show up instead - if the port in question has a fort, which "QC_Port" doesn't, and Peninsula de Zapata isn't even a real port.
A bit of console trickery converted Peninsula de Zapata to type "seashore", after which Sail To worked regardless of flag. And the next update is going to have "PROGRAM\Locations\init\Cuba.c" changed to set "Cuba_Shore_06" to type "seashore".
Should Oranjstad on Aruba also be set to something other than "port"? It also has no fort. By comparison, in "Eleuthera.c", Alice Town is set to type "town", probably for similar reason.
First thought: maybe I'd put something in the quest to prevent landing there before fighting the ship, then forgot to cancel it after the battle. A quick check on quest code did not show up anything of the sort, and anyway I couldn't remember having done that.
A bit more digging showed that I could Sail To Peninsula de Zapata if I flew a flag friendly to Spain but not if I flew a hostile flag - and that this happened in other storylines, not just "Ardent". There was nothing odd in Cuba's entry in "PROGRAM\ISLANDS\Islands_init.c". But "PROGRAM\Locations\init\Cuba.c" has this for "Cuba_Shore_06", alias Peninsula de Zapata:
Code:
locations[n].type = "port";
Code:
locations[n].type = "seashore";//"port";//MAXIMUS: ordinary seashore with moorage - not port (changed for correct showing of BattleInterface icons)
A bit of console trickery converted Peninsula de Zapata to type "seashore", after which Sail To worked regardless of flag. And the next update is going to have "PROGRAM\Locations\init\Cuba.c" changed to set "Cuba_Shore_06" to type "seashore".
Should Oranjstad on Aruba also be set to something other than "port"? It also has no fort. By comparison, in "Eleuthera.c", Alice Town is set to type "town", probably for similar reason.