• 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!

Loading spawn.xml file into map file .otbm

Chemiann

Active Member
Joined
Jun 8, 2010
Messages
197
Reaction score
37
So, the thing is...

I've been working on my edit of RL map, but as I got more and more messy with my files, I've only kept the .otbm file, but none of files with spawn/npcs, just the .otbm file.

I've took again the original (from rl map) spawn.xml file from data/world, I've tried both : just replacing the files, and just opening them in text editor and copying everything, and pasting into the spawn.xml file I got normally going with my edited map

It works now in RME - I see all the spawn ( + the ones I've deleted, just a few snakes and wolves) but... when I'm trying to load the testserver, it's not working :-( It seems like it's trying and failing to load every creature from spawn.

I can run the test without any spawns, with default, empty spawn.xml file, but with the added spawns it's not working !

Do you know, what's going on and how to fix that? I have to keep the edited map, and somehow add the original spawns to it. 1762802684757.webp
 
If it's not as godoyxd says above, it could be a case type issue with the monster name (can't remember if it's converted to lowercase or not in spawns.cpp Spawn::startup()).
 
Last edited:
You probably don't have the monsters in the server "data/monsters" folder or in "monsters.xml" file.
1762857929774.webpI guess it's there, or did you mean something else?
Post automatically merged:

If it's not as godoyxd says above, it could be a case type issue with the monster name (can't remember if it's converted to lowercase or not in spawns.cpp Spawn::startup()).
ooof... could you elaborate, please? Because I'm too green in those things to understand... What do you mean and how to check it?
 
Make sure spawntime isnt 0 in the spawns.xml file. Sometimes even though the map editor has a creature set to a specific value, it'll save the spawntime as 0 but still save the creature location. Easy fix: CTRL the line and make sure to find spawntime="0" and replace with spawntime="120" so itll replace the values on those specific lines. Might be the issue also since it's still loading the creature positions also, so the spawns.xml is being read correctly, just might not show as that depending on your server log. Hope this helps :)
 
Make sure spawntime isnt 0 in the spawns.xml file. Sometimes even though the map editor has a creature set to a specific value, it'll save the spawntime as 0 but still save the creature location. Easy fix: CTRL the line and make sure to find spawntime="0" and replace with spawntime="120" so itll replace the values on those specific lines. Might be the issue also since it's still loading the creature positions also, so the spawns.xml is being read correctly, just might not show as that depending on your server log. Hope this helps :)
1762862065158.webp Unfortunately, not the case :-(

Guys, be aware that I'm a total newbie in such things, so perhaps I'm just doing some basics wrong, idk

are spawns written anywhere else than in this world-spawn.xml file?

btw I've double checked and all my map.otbm and spawn.xml and npc.xml files have matching names, and the same names are written in config.lua
Post automatically merged:

1762872895363.webpBut its also unable to find lots of creatures, so... maybe there's something wrong with monster folder, idk oh boy
Post automatically merged:

Okay, one thing then:

If I'm having the .otbm file and the spawn.xml file, and everything is at the right spot in RME - do I have to bother, if it's not loading while tryin tu run the testserver ? I mean, can I keep working on my map?

Could I, as well, send the files to someone, that could quickly to run any 8.0 server with the map & spawns and check if it works?

Maybe it's something wrong with my server/files, but if I understand it well, it's not really important for now, since all I do is mapping
 
Last edited:
that looks like you have used the wrong .dat or .otb somewhere... this happened to me when I was trying to convert a .dat recently and it messed all the id's up, the monsters all failed to spawn because of that too...

probably you took canary's real map and tried to run it on tfs, and thus your problem... you have to convert it first
 
Back
Top