Level Editors

Started by Lemming122, April 18, 2014, 05:52:39 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

ccexplore

Try emailing them to my ccexplore at yahoo address.  You probably want to zip them up (especially the VSR) to reduce sizes, hopefully enough so that yahoo doesn't drop the attachments due to size.  No need to send me the extracted levels, just the EXE and VSR (and really probably just the EXE) suffices.

I already tried both the demo and non-demo versions of the game as downloaded from the web, and since even on your version you seem to be getting the exact same errors, I'm still not optimistic about it all. http://www.lemmingsforums.com/Smileys/lemmings/undecided.gif" alt=":-\" title="Undecided" class="smiley" />   But I'll take a look anyway.

DragonsLover

I like dragons! They're the center of my life! I'll never forget them...

DragonsLover

I really think http://tcrf.net/Lemmings_Paintball" class="bbc_link" target="_blank">THIS is going to interest you. They even show the dialog boxes that I could also get myself through ResourceHacker.

The level editor was clearly inside, but as stated: "...the EXE only contains code to display one dialog: the About box. It seems that prior to release, the developers decided to simply render the level editor unusable rather than removing it completely."

They tell how to make the /EDIT@ command working by changing one byte in the executable to double the amount of memory available. I tried and it indeed works, but there's no edition possible.

Now the trick is to make these windows usable again and if you manage to get this to work... http://www.lemmingsforums.com/Smileys/lemmings/thumbsup.gif" alt=":thumbsup:" title="Thumbs Up" class="smiley" /> Otherwise, what a shame. http://www.lemmingsforums.com/Smileys/lemmings/sad.gif" alt=":(" title="Sad" class="smiley" />
I like dragons! They're the center of my life! I'll never forget them...

ccexplore

Hmm, I wish you've found this earlier as it basically collaborates some findings I've had with what I've done so far.  That would've saved me quite some time and give more confidence in some of my unreported findings.

One thing I did not mention is the same conclusion noted on the website, that I too can only find code displaying the About box dialog.  Basically there are only a small set of functions from Windows that consume dialog box resources, and by doing a search to track all places where the code is calling those functions, I only found the one place that is hard-coded to the About box dialog resource.  The only reason I held back on reporting this is because theoretically there may be other more indirect ways that the Windows function call may happen that is not caught by the fairly simplistic searches I performed, however I do consider that unlikely, since there would be little reason for the editor code to be written to go through more roundabout ways to invoke the function compared to the expected normal way it did so with loading the About dialog (code for which I did find with my simple searches).

Also note that in the EXE has resource for the menu as well, but it contains no extra commands aside from the normal ones available.  Even a search for extra strings that may suggest extra menu commands added dynamically to the menu yields nothing so far.  This suggests there is no entry point from the menu to any of the dialogs, which is also consistent with finding no code whatsoever that seems to do anything with any of the dialog resources except About.  Basically unless they for some reason decide to re-code the editor user interface without making use of those dialog resources, the more logical conclusion is that the editor functionalities have been stripped out.  The final nail in the coffin is the observation that the error with the /EDIT@ is due to memory, but increasing the memory, while fixing the error abort, did not yield a working editor mode.

So sorry, I think all the information so far strongly suggests that the programming for editor functionality is probably removed in the game EXE, especially given that no snippets of code can be found by both me and that guy on that website, to load any of the dialog resources except About.  Since the resources go through a different compiler than the code, it is not unexpected that they may have set things up to strip out the code for the editor during compilation, but forgot to do so (or did not set it up correctly) to strip out the dialog resources.

If the code are indeed removed from EXE, then there is no easy way to "make these windows usable again" short of basically rewriting the editor yourself and then shoehorn it back into the EXE via hacking.  At that point you might as well just write your own separate editor program.  I will grant you that it is difficult to rule out 100% that the editor code is truly removed without going through a detailed and time-consuming disassembly of the game (outside of the quick tricks we've already tried), but with all the evidence thus far pointing more towards the possibility of no editor code left in the EXE, and the game being relatively unpopular, I don't feel motivated to do more involved investigations that seems likely to yield negative results anyway.