This document wil explain to you how you should make your addons.
To make a level addon:
Name your level file addon.tga
Name your background file (if you have one) addon.tga.bg
Now copy both files to the data/levels map and start lbz.
U could make a batch file to automate this. (example: here)
To make a character addon:
Name your character file addon.lcf
Now copy this to the data/characters map and start lbz.
U could make a batch file to automate this. (example: here)
When you would do this, and someone else would get the same idea: the level would be overwritten!
When lbz starts it looks for the addon files and renames them automaticly to the NEXT file in the list.
This method prevents overwriting levels that are already there.
When lbz is loading levels, it looks for files like levelX.tga in the data/levels directory.
(Where X is a number ranging from 0 to 30)
For example:
When it finds level0.tga this file is loaded as a level and added to the level list.
Next lbz checks if the file level0.tga.bg exists... if it does: it is loaded as a background to that level.
When lbz is loading characters, it looks for files like charX.lcf in the data/characters directory.
(Where X is a number ranging from 0 to 20)
For example:
When it finds char0.lcf this file is parsed and a the character in it is created.
It then loads the files that are requered by this character.