Jerkuh said:
I found some points to look at.
The first one is that when i want to op the module folder he asks where it is but i already said to the program where the module system folder is in.
In the module_info.py you can read the exact location of the module folder.
Second point is maybe an function that copies the files from the module folder to the dedicated server folder.
I am realy looking forward to that. And if your busy with making that copy button i would also prefer beside the play button an button that opens the batch file of choice to start the dedicated server.
As third and last i would like as people said before to create an modifiable list so you can create your own.
But now i got a problem, i need to use the header_common file. So when you add the function to make a modifiable list please add all .py files to be able to modify, if it is posible let the program scan for all the py files so that i can also add my own py files in the list.
This to ideas will make my work for the mod im creating right now (Heroes and Warriors) much easier becouse i constantly need to test the mod with the dedicated server tool.
For right now a big thanks for how far the tool is right now becouse it just makes it easier to work!
1- This program reads the module path since the first alpha, it works fine for me so far, in case it cannot be found ask the user, that path will be saved in your registry until the path it's no more more, then asks again. Tested.
2- The compile button launches the first bat file found, edit it to run extra batch commands as moving files or starting server. As example this it's a possible one:
Code:
rem EXAMPLE BATCH FILE BY SWYTER
@echo off
@cls
@title Batch file by Swyter - Enjoy
@color 1f
@echo -Here we go Jerkuh!
@echo.
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 copy server side files and run dedicated. . .
pause>nul
echo.
echo -Copying server side module files and running dedicated
copy /y "C:\Program Files\Mount&Blade Warband\modules\SWC\*.txt" "C:\Program Files\Mount&Blade Warband Dedicated\modules\SWC\"
rem now we're going to start the server
start "C:\Program Files\Mount&Blade Warband Dedicated\mb_warband_dedicated.exe -r mycustomscript.ini -m Native"
Or, if you want, make a symbolic directory so the server module folder it's the same that the output one, open you console and type:
Code:
mkdir /J "folder-link-to-create" "folder to point"
Code:
mkdir /J "C:\Program Files\Mount&Blade Warband Dedicated\Modules\physical_SWC_Link_folder" "C:\Program Files\Mount&Blade Warband\Modules\SWC"
Contact me if you want another one.
3- The program generates the current list in real time. So it currently detects the _module???.py naming structure.
I probably add the customize list option in the following version. But you can currently choose custom module_ files.