daily pastebin goal
49%
SHARE
TWEET

Untitled

a guest Jul 12th, 2018 56 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ----------------BEGIN modworldgenmain.lua-------------------
  2. local size = GetModConfigData("mapsize")
  3. if GLOBAL.rawget(GLOBAL,"WorldSim") then
  4. local idx = GLOBAL.getmetatable(GLOBAL.WorldSim).__index
  5. local OldSetWorldSize = idx.SetWorldSize
  6. idx.SetWorldSize=function(self, width, height)
  7. OldSetWorldSize(self, size or width, size or height)
  8. end
  9. local OldConvertToTileMap = idx.ConvertToTileMap
  10. idx.ConvertToTileMap=function(self, length)
  11. OldConvertToTileMap(self, size or length)
  12. end
  13. end
  14. ----------------END modworldgenmain.lua-------------------
  15. ----------------BEGIN modinfo.lua----------------------
  16. --[[ other entries... ]]
  17.  
  18. dst_compatible = true
  19. server_only_mod = true
  20.  
  21. configuration_options =
  22. {
  23. {
  24. name = "mapsize",
  25. label = "Map Size",
  26. options =
  27. {
  28. {description = "Default",hover="Use the size from server settings." data = false},
  29. {description = "640", data = 640},
  30. {description = "960", data = 960},
  31. --[[ other entries ]]
  32. },
  33. default = 640,
  34. },
  35. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top