well this combine with the fast travel message bypass script and the move the character around the map script, I think we can just fast travel where ever we want....that's on the surface.
this script here is used at the camp naming menu, it will give it the name BOAT. so that the other script can find it in the pool of sites as it's the only one with that name... as DF doesn't really give first names or nicknames to Sites.
function nameboat()
dfhack.gui.getCurViewscreen().name.first_name="BOAT"
dfhack.gui.getCurViewscreen().name.nickname="CampBoat"
end
once the boat is 'crafted' you can use this script here to move the boat to your location which grants access to moving around the map which allows for ease of use of fast traveling out of ocean and mountain areas. I haven't testing what this does with say the site if you exit the travel menu but it's good for making trips across vast oceans(probably should look into the disappearing camp bit I think it tied to the other Site position coordinates being really Really off from the global min/max coordinates)
function teleportboat()
for k,v in pairs(df.global.world.world_data.sites) do
if v.name.first_name=="BOAT" then
print("boat name", df.global.world.world_data.sites[k].name.nickname)
for ki,vi in pairs(df.global.world.armies.all) do
if vi.flags[0]== true then
local Nor=vi.pos.y
local Norc=(vi.pos.y)
local Dor=vi.pos.x
local Dorc=(vi.pos.x)
Noro=(math.floor(Nor/3))
Doro=(math.floor(Dor/3))
Norco=(math.floor(Norc/3))
Dorco=(math.floor(Dorc/3))
v.global_min_y=Noro-1
v.global_min_x=Doro-1
v.global_max_y=Norco+1
v.global_max_x=Dorco+1
end
end
end
end
end
edit: does Dfhack 44.12-r2 figure anything out with ui_advmode.unk_1 and ui_advmode.unk_2 since I think those are the global map positions unk_1 being x and unk_2 being y making unk_3 being z.
probably means I have to edit this script to use that instead of searching for the adventurer's army.
edit 2: ok so the advmode ui travel menu markings doesn't update when you unload the map so I do need both scripts to summon the Boa...landmass