Whypay Posted May 14, 2021 Share Posted May 14, 2021 I would like to create a mod that changes the names of the sectors displayed on the map. Is it possible to overwrite/extend this function in scripts/lib/sectornamegenerator.lua: function SectorNameGenerator.generateSectorName(x, y, count, seed) For example to return the current sector name but with a prefix like this: return "prefix" .. name Link to comment Share on other sites More sharing options...
Whypay Posted May 15, 2021 Author Share Posted May 15, 2021 SectorNameGenerator.generateSectorName_orig = SectorNameGenerator.generateSectorName function SectorNameGenerator.generateSectorName(x, y, count, seed) return "Prefix " .. SectorNameGenerator.generateSectorName_orig(x, y, count, seed) end 1 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