Three functions a day...
This morning I removed the compiling errors from the new files with the basic functions I ported. I'll add some more stuff for basic viewing characters/objects with inventory. After that, I'll add these files to the SVN. I changed the characters to have the inventory as an array instead of a linked list, because it's much easier to handle for loading, display and writing it back to a 'spawn.txt' file.
The editor has now a strange display of the map if textures are switched off, but I don't care at the moment. It displays correct as the map is drawn textured.
It also has an own working directory 'editor' in the games directory. And I'll add a menu point 'play it!' ASAP. With this one I add a stub to the 'play'-part of the editor for easy extension.
'PLAYER 1' to 'PLAYER 4' are placeholders with positions for characters exported characters from another map, is that correct? And where (in which directory) do I find the exported characters?
Are the empty slots needed for the default players in the 'spawn.txt' file ?
I think about a 'savegame' directory for the exported characters, what do you think ?
And how should I display the 'random treasure' in the Inventory of the editor (Name and Icon)?
Using SDL: I invested a lot of time into the functions to work with SDL, so I have no desire to change that. I don't like to load multiple libraries either. That's why the editor only supports bmp-files at the moment.