Levels packs

Help
2011-09-01
2013-05-20


  • 2011-09-01

    Hello guys,

    First of all, thank you for this game.You realize my childhood dream with Cubosphere. ;-) Therefore, I am working on the French translation.

    I would like to know how can I pack some levels, like the built-in levels of Cubosphere ? I found how to link levels by editing the exit property in my levels files, but I am searching for the way to disable all levels from the user list except the first level of my pack. Is it currently possible ?

    Thank you again.

    Carma001

     
  • Exosphere
    Exosphere
    2011-09-05

    Hi,

    unfortunately, there is no such functionality in Cubo Beta 0.1 yet. But it is a nice idea and it will follow in some of the upcoming releases.
    However, you could create a Mod with your levels for Cubosphere.
    Just create a folder

    <your-cubosphere-data-dir>/mods/<your-mod-name>

    After doing so, you can start the Mod by adding the command-line parameter "-mod your-mod-name", i.e. invoke Cubo with

    cubosphere -mod your-mod-name

    However, at this stage your Mod has actually no modifications, so let's change the levels. Therefore, you'll have to copy the levels out of your

    <your-user-dir>/default/levels/
    to
    <your-cubosphere-data-dir>/mods/<your-mod-name>/levels/

    Now make sure, that the first of your levels is called e01l01.ldef

    After doing so, your Mod should contain your episode!
    However, you will have to change some stuff in order to get a right saving and loading behavior:

    Grap a copy of

    <your-cubosphere-datadir>/menudefs/init.mdef
    to
    <your-cubosphere-data-dir>/mods/<your-mod-name>/menudefs/init.mdef

    and modify it. You will find the line

    GLOBAL_SetVar("NumLevels",195);

    Change the 195 to the actual level count in your Mod.
    The next and last step is to setup the possibilites to save the game. You will therefore have to edit your levels in

    <your-cubosphere-data-dir>/mods/<your-mod-name>/levels/

    with a texteditor.

    Whenever the player shall be able to save after a level, just add the line

    LEVEL_MAY_SAVE=1;

    before the lines

    _-Level Data

    function Level()_

    in the level.

    I hope, this helps.

    Best regards,
    Chriddo

     


  • 2011-09-05

    Hi,

    It's exactely what I expected, and even better.
    Thank you very much for these details.

    Best regards,
    Carma001