Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Adding More Buildings?  (Read 1148 times)

someone12345

  • Bay Watcher
    • View Profile
Adding More Buildings?
« on: November 01, 2015, 05:47:37 pm »

Is there a way to add more buildings and maps? How do you do it? Do you modify the files in the art folder? Which ones? The instructions are not clear.
Logged
GENERATION 26:The first time you see this, copy it into your sig on any forum and add 1 to the generation. Social experime

Purple Gorilla

  • Bay Watcher
    • View Profile
Re: Adding More Buildings?
« Reply #1 on: November 03, 2015, 02:39:19 pm »

Adding new buildings needs recompiling it. If the buildings use a complety new layout, you have to create new entries in the art directory.

What you have to modify in the sourcecode :
* SRC\INCLUDES.H : add a new constant to the enumerated list, (like SITE_RESIDENTIAL_SHELTER)
* SRC\TITLE\LOCATIONS.CPP : add a case to the function initlocation() to give the location a name.
* SRC\TITLE\NEWGAME.CPP : create the new location. Here, you can also duplicate locations, and set if its a safehouse or hidden.
* SRC\SITEMODE\SITEMAP.CPP : give a file, to load a map from, or generate a map with parameters from a file.

The comments in the file SITEMAP.CPP explain, that you need a programe called "Deadly Alien Map Editor" found here : http://dambots.com/dame-editor/
I never added maps, so someone else might help you how to use it.

The first step, is to get the programe compiled (this takes some time). Get a C++ compiler, and the source code from LCS, and compile it. As there is no working MAKEFILE, you have to create your own makefile, or a IDE-project. Use this to compile every CPP file EXCEPT the files in SRC\SANDBOX\ and the DUMPCAPS.CPP. You have also to set the include paths to the SRC\ directory and all its subdirectories. Then, you have to finally link it to the library SRC\CURSES\PDCURSES.LIB.

If the version, you use has sound, you also have to link it to the SDL library. I have never managed to get this work, so good luck. If it doesn't work, you can disable sound by adding "#define DONT_INCLUDE_SDL" to the SRC\INCLUDES.H.