Hey! For those who like to copy pasta code. Here are the modifications you'll need to make and the mod script he added.
Part 1:
Modify:
Add
player:addScriptOnce("mods/setPreviousSectorAsHomeSector.lua")
after
player:addScriptOnce("story/spawnadventurer.lua")
function onPlayerLogIn(playerIndex)
local player = Player(playerIndex)
Server():broadcastChatMessage("Server", 0, "Player %s joined the galaxy"%_t, player.name)
player:addScriptOnce("headhunter.lua")
player:addScriptOnce("eventscheduler.lua")
player:addScriptOnce("story/spawnswoks.lua")
player:addScriptOnce("story/spawnai.lua")
player:addScriptOnce("story/spawnguardian.lua")
player:addScriptOnce("story/spawnadventurer.lua")
player:addScriptOnce("mods/setPreviousSectorAsHomeSector.lua")
matchResources(player)
end
Part 2:
Mod File Path:
Contents:
function initialize()
Player():registerCallback("onSectorLeft", "onSectorLeft")
end
function onSectorEntered(playerindex, x, y)
Server():broadcastChatMessage("Server", 0, "Handler hit")
Player():setHomeSectorCoordinates(x, y)
end
Try not to upset The AI with your modding...