View Full Version : bug: War Declared, boat moved to another empire's inland city


spiph
Nov 18, 2007, 09:15 PM
BtS 3.13

Playing just fine, then war is declared on me, and when my turn comes around, truns out my Trireme is now in another Civs landlocked city (see pic)

ori
Nov 19, 2007, 05:56 AM
:band: Welcome to CFC :dance:
and this truly is a good one :lol:
could you also post a save of this - just to ensure that the people who do the bugfixing have all they need :)
Also this should be in the BtS Bug Report Section...

Padma
Nov 19, 2007, 11:35 AM
Thread moved. :)

Civfan333
Nov 19, 2007, 11:38 AM
When war is declared, all of your units are moved to the closest movable space. In this case, you trireme was moved to the closest water space.

spiph
Nov 19, 2007, 09:07 PM
well, you know...duh...but I'd like to think that it wouldn't completely transplant it inland to a single square body of water in a city i don't control.

here's the previous autosave and a save right after it happened (same turn, I don't even think i moved anything else).

ori
Nov 20, 2007, 05:58 AM
good - now lets hope that this gets fixed. I just clicked through the game and at the IBT to 880 AD the war declaration happens and the ship is teleported - not even to that water tile but to the adjacent city which is totally landbound and cannot build any sea related buildings not ships, this should definitely be checked.
However you *could* free your ship by closing borders with them and have it teleported away again, you should rename it to the flying dutchman though :devil:

Bhruic
Nov 20, 2007, 02:39 PM
Well, I can fix it teleporting to a freshwater lake, but there's nothing I can do about it teleporting to an inland sea. I know that's not the case here, so I can fix this particular incident, just commenting in general.

Bh

Bhruic
Nov 20, 2007, 04:33 PM
Actually, I'm not going to fix it in that fashion at all. The problem wasn't that it was teleporting to a freshwater lake, the problem was that it was teleporting city to city. Basically, when the game is trying to find a spot to "bump" a unit, it weights all the tiles on the map, and then picks the lowest weighted tile to move it to. As part of the weighting process, tiles that are in a different area* than tile the unit is currently in are given 3x the weighting, making it very unlikely they'll be chosen.

The problem here is that because the unit was in a city, the area it was in was considered to be land. Therefore every water tile was considered to be in a different area and was given the 3x weighting. So it ended up finding the closest available city and sticking your ship there.

* Two tiles are considered to be part of the same "area", in game terms, if you can travel from one to the other without leaving the current domain. So if it's two land tiles, then you need to be able to travel between them via land, if two water, then via water. A land and water tile are never part of the same area

Bh

spiph
Jan 12, 2008, 10:22 PM
how's this one grab you. 2 things.

1) I start my game back up and find this waiting for me in my first turn: My caravel waiting in the middle of a desert

and 2) same game, a tile bug that was there since the beginning, but I went ahead and took a shot of