unbekannt1984 Posted December 25, 2019 Share Posted December 25, 2019 Hi, I wrote a little (command-)script that finds all Ancient Gateways in your Galaxy. I thought this might be useful for some people here: package.path = package.path .. ";data/scripts/lib/?.lua" package.path = package.path .. ";data/scripts/?.lua" local SectorSpecifics = include ("sectorspecifics") function execute(sender, commandName) local specs = SectorSpecifics() local player = Player(sender) local serverSeed=GameSeed() print("findag working") for y = -499, 500, 1 do for x = -499, 500, 1 do local regular, offgrid, dust = specs.determineFastContent(x, y, serverSeed) if offgrid then specs:initialize(x, y, serverSeed) specs = SectorSpecifics(x, y, serverSeed) if specs.generationTemplate and string.match(specs.generationTemplate.path, "sectors/ancientgates") then print("Ancient Gates found at %i:%i", x, y) end end end end return 0, "", "" end You can put more features into it, modify it to find sectors with other scripts,... But a little warning: checking 1000000 sectors for offgrid-sectors and then checking about 50000 sectors for ancient gateways took my computer about half an hour. If you still want to try anything, put the code above in a file in ~/.steam/SteamApps/common/Avorion/data/scripts/commands/ (who cares about Windows?), findag.lua in my case, and use the command from your chat. Results will be written to the Server-Logs. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now