11 Jul 2017 09:13
Manipulation with modules (with the mode of symmetry)
* Add modules - left mouse button
* Removing modules - Ctrl + left mouse button
* Modification of modules - Shift + left mouse button
- exit from the modification - left mouse button (without Shift)
- movement along the main axis Z - 4 6 or A D
- turn on 180 \ 90 degrees - 5 or S
- change the model of the module - + -
- on/off mode of accurate movement (+ - 2.5m) - num 0
* Undo the last addition/delete/modification - Esc
* Moving the entire ship along the main Z axis - < >
Using libraries in the editor
The libraries are located in the <path to the editor>/lib/
Structure of the library <newlib>:
File lib/<newlib>.js - description of materials and models
Subfolder lib/textures/<newlib> - textures of materials
Subfolder lib/models/<newlib> - models in the format obj
It is possible to replace the original modules and materials with own, set to original identifiers in yours file .js (see lib/modules.js and lib/payld_mods.js)
The path to files of textures and models is specified taking as the library folder ("modules/SHW-diff.png", "payld_mods/shield_side.obj")
The "default" material always remains the original
The list of libraries is stored in .json ship files
To add a library to the editor, open the library file via the "Add library" button in the additional options, then open and edit the ship file, save the ship
To delete a library from the .json ship file, temporarily rename the file <newlib>.js, clear the "Create new" editor, load the ship file with error messages, resave the ship file
When exporting a ship to .sss, the library name will be in the path to the .cfg files
Models, textures and materials of the SpaceEngine format should be located in the corresponding SpaceEngine folders, taking as the library name - for example, <path to SpaceEngine>/addons/textures/spacecraft/<newlib> and <path to SpaceEngine>/addons/models/spacecraft/<newlib>
The names of the .sm and .cfg files must match the module identifiers from <newlib>.js
The names of the model materials in the .sml files must match the material names in the .cfg models files