• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

Question about map downloading in config.lua

Gunmetalx

Member
Joined
Sep 13, 2016
Messages
56
Reaction score
9
Sorry if this had been answered already, i searched around and didnt find anything. In an effort to learn I had a question about how this actually works in the config file.

LUA:
-- Map
-- Note: Set mapName without .otbm at the end.
-- Note: If toggleDownloadMap is set to false, the mapDownloadUrl will not be used.
-- Note: If a map with the same name already exists in the world folder, the map will not be downloaded, even if toggleDownloadMap is set to true.
toggleDownloadMap = true
mapDownloadUrl = "https://github.com/opentibiabr/canary/releases/download/v3.2.0/otservbr.otbm"
mapName = "otservbr"
mapAuthor = "OpenTibiaBR"



I see it has a description but I just wanted clarification. Does this download the RL map from the URL and set the file name to otservbr. Afterwards, does it ignore downloading it again on server startup if the file name is never changed? If so, if I ever edited the map and changed the file name and then started up the server, would it overwrite my map file?
 
Bump. If anyone is able to give me some clarification on this. Im assuming I can set toggledownladmap to false after initial server start? Or is it beneficial to leave it as true?
 
It only checks by the file name if it exists and won't download if it does. So if you change the file name then it will redownload the map but won't remove your previous one with new name.
 
Back
Top