By default, it is impossible to compile Module System on Linux. But with few lines you can do this.
Of course You need to have installed python, in Debian/Ubuntu based can you do this with Synaptic, Ubuntu Software Center or just this simple command:
Thats all, no Path editing or other Windows ****
This is default code from build_module.bat:
And this is my build_module for Linux:
Just copy and paste to the new file. Now You must replace my path to module system with yours. Then You must make possible to run this file as script. There are two ways:
-in console write:
-right mouse button click on file>Properties>Permissions>Allow to run as program or something like that.
Now You can compile scripts in Linux by running that file.
Of course You need to have installed python, in Debian/Ubuntu based can you do this with Synaptic, Ubuntu Software Center or just this simple command:
Code:
sudo apt-get install python
This is default code from build_module.bat:
Code:
@echo off
python process_init.py
python process_global_variables.py
python process_strings.py
python process_skills.py
python process_music.py
python process_animations.py
python process_meshes.py
python process_sounds.py
python process_skins.py
python process_map_icons.py
python process_factions.py
python process_items.py
python process_scenes.py
python process_troops.py
python process_particle_sys.py
python process_scene_props.py
python process_tableau_materials.py
python process_presentations.py
python process_party_tmps.py
python process_parties.py
python process_quests.py
python process_info_pages.py
python process_scripts.py
python process_mission_tmps.py
python process_game_menus.py
python process_simple_triggers.py
python process_dialogs.py
python process_global_variables_unused.py
python process_postfx.py
@del *.pyc
echo.
echo ______________________________
echo.
echo Script processing has ended.
echo Press any key to exit. . .
pause>nul
And this is my build_module for Linux:
Code:
#!/bin/bash
cd /media/witelon/427EFB097EFAF50F/Gry/Mount*nd/Modules/Sclavinia/Module_system
python process_init.py
python process_global_variables.py
python process_strings.py
python process_skills.py
python process_music.py
python process_animations.py
python process_meshes.py
python process_sounds.py
python process_skins.py
python process_map_icons.py
python process_factions.py
python process_items.py
python process_scenes.py
python process_troops.py
python process_particle_sys.py
python process_scene_props.py
python process_tableau_materials.py
python process_presentations.py
python process_party_tmps.py
python process_parties.py
python process_quests.py
python process_info_pages.py
python process_scripts.py
python process_mission_tmps.py
python process_game_menus.py
python process_simple_triggers.py
python process_dialogs.py
python process_global_variables_unused.py
python process_postfx.py
rm *.pyc
echo \
echo ______________________________
echo \
echo Script processing has ended.
read -n1 -r -p "Press any key to exit. . ."
-in console write:
Code:
chmod +x /path/to/your/file
Now You can compile scripts in Linux by running that file.