Now on Github: https://github.com/kieranmillar/lem3editI promised myself next time I had a day off, I'd spend it trying to do some programming. I'm seriously amateur-hour at programming so wanted to edit an existing program to as a way to learn.
About 8 years ago Mindless made a Lemmings 3 level editor, lem3edit, then before finishing it decided to redo it in C++, but unfortunately abandoned it before re-implementing some key features... like the ability to save! So I sat down with a tutorial on how to get SDL to work in your environment and today's project became adding in a save ability to Lem3Edit. You can find Mindless's original source code here:
https://bitbucket.org/mindless/lemmings-toolsIt turns out it was pretty easy to add in the save feature, you just do the opposite of loading the level, hah!
So I looked to do a few more things because the save feature got implemented pretty quickly. Now you can cycle an object through all of the object ids so you can actually change what is in the level, this was a heck of a lot tougher to implement because the object ids are not contiguous and jump all over the place! But I got there in the end.
Lastly I made a quick "backgrounds only" view because it was quick to do and it's nice to be able to properly select and edit the backgrounds when they hide behind the terrain.
Unfortunately, making levels looks like it will be an unbelievable pain in the ass with the current interface, so I'll have to revisit this on my next day off and work on this some more. But at least now, if you also use a hex editor to edit some of the other level properties, you can actually make a fully-functioning mod!
P.S. If you want to play around, make sure to read the README file for controls. Note that you can't create new objects or terrain from scratch without copying and pasting existing ones then cycling through the object ids to change what they are. All objects are one of two types, terrain, and everything else.
To use the program, it needs to be put in the folder one step up from the GRAPHICS, LEVELS and STYLES folders. Those are on the CD, so copy your CD contents to your harddrive. And backup all of the files in your level folder! The program only loads levels via a command line argument, so make a shortcut to the exe file and put the level number (e.g. 123) directly after the link to the exe in your shortcut's properties.EDIT: This is no longer how the program works. Read the README file!
I don't know how to use source control, so have uploaded my source to comply with the licencing. Maybe learning source control should be my next mini-project!