April 28 2016 build
| This is the article of a development build of Skyscraper Simulator.|
It has been confirmed a good-faith contribution to the Skyscraper wiki.
This build introduces command line options for Skyscraper, and also the ability to launch specific buildings as a parameter, either on the command line or as a BLD file association on your computer.
To view all of the options, run the Skyscraper executable (skyscraper.exe on Windows) with the "-h" option (or either "-h" or "/h" on Windows). The following example is on Linux:
$ ./skyscraper -h
Usage: skyscraper [-h] [-c] [-f] [-m] [-M] [-p] [-v] [-V] [building filename]
-h, --help show this help message
-c, --no-console hide the console
-f, --fullscreen start up in full-screen mode
-m, --no-menu hide the main menu
-M, --no-music disable the intro music
-p, --no-panel hide the control panel
-v, --verbose enable verbose mode
-V, --version show version
The "bld" files can be associated with Skyscraper on all platforms, and additional code was added to make it work on Mac systems. When you do this, you can double-click the building file and Skyscraper will start, and load that building. The building file still needs to be in the "buildings" folder, and it'll refuse to load anything outside of it (it'll strip the full path name, and only use just the filename).
The global/external doors positioning issue from the previous build has been fixed, by making the doors a child of the new Door Manager object.
Crash reports on Windows now show some detailed script information, like the script error messages, if Skyscraper crashes while loading a script.
32-bit Windows builds have the "large address aware" flag enabled, so that if you're using a 32-bit build on 64-bit Windows, Skyscraper will no longer be limited to just 2GB of memory max, but can use up to 4gb. 32-bit Windows can use more than 2GB (up to 3GB), but you need to boot the system with a special "/3GB" flag for it to work.
I've done some rework of the Mac bundle information, and I also converted the old Skyscraper windows icon (skyscraper.ico) to a Mac icon file, and so the Mac build now uses the same icon instead of the generic one. An issue was also fixed on Mac, where autoloading a building (and loading in the new command line or associated way), would cause the main window to freeze after starting, and the movement and actions to not work.
-removed old Windows-only CodeBlocks file, and rename Linux one
-added converted Mac icon, and added Mac bundle data into tools folder
-queue the creation of the progress dialog, to fix an issue on Mac where the main window would freeze if a building is autoloaded
-DeleteButtons should be run in Load function
-added building "open with" load support for Mac systems
-app should switch current working directory to executable's directory on start, which allows double-clicking on building files outside of the app to start
-added command line options for fullscreen and no-panel modes
-added command line options to disable the intro music, show version and enable verbose mode
-added command line options for showing/hiding the console and main menu
-added command line option support
-enabled large address flag for 32-bit builds, and also included the disabling of inline function expansions
-have GetLineInformation function also return function name
-have crash report show script interpreter state, if a script is loading
-moved global door code into new DoorManager object, to fix positioning issues