-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild_module.bat
71 lines (63 loc) · 2.28 KB
/
build_module.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
@echo off && title building tld for [wait for it]--
set PATH="C:\Python24";"C:\Python26";C:\Python27;%PATH%
set PYTHONPATH=%cd%;%cd%\data;%cd%\header;%cd%\ids;%cd%\process;%cd%\extras
:top
cls
python -B -OO process\process_init.py
python -B -OO process\process_global_variables.py
python -B -OO process\process_strings.py
python -B -OO process\process_skills.py
python -B -OO process\process_music.py
python -B -OO process\process_animations.py
python -B -OO process\process_meshes.py
python -B -OO process\process_sounds.py
python -B -OO process\process_skins.py
python -B -OO process\process_map_icons.py
python -B -OO process\process_factions.py
python -B -OO process\process_items.py
python -B -OO process\process_scenes.py
python -B -OO process\process_troops.py
python -B -OO process\process_particle_sys.py
python -B -OO process\process_scene_props.py
python -B -OO process\process_tableau_materials.py
python -B -OO process\process_presentations.py
python -B -OO process\process_party_tmps.py
python -B -OO process\process_parties.py
python -B -OO process\process_quests.py
python -B -OO process\process_info_pages.py && rem <-- just for wb
python -B -OO process\process_scripts.py
python -B -OO process\process_mission_tmps.py
python -B -OO process\process_game_menus.py
python -B -OO process\process_simple_triggers.py
python -B -OO process\process_dialogs.py
python -B -OO process\process_postfx.py && rem <-- just for wb
python -B -OO process\process_global_variables_unused.py
:: @del *.pyc -- not needed anymore
REM count objects... (mtarini)
set /a cnt=0
set /a max=915
for /f %%a in ('type ".\IDs\ID_items.py"^|find "" /v /c') do set /a cnt=%%a
set /a cnt = cnt-1
IF /I %cnt% LSS %max% (
echo item count: %cnt%/%max% ... ok.
) ELSE (
echo item count: %cnt%/%max% ... ERROR ERROR ERROR TOO MANY!!!.
)
REM
REM
REM count map_icons... (mtarini)
set /a cnt=0
set /a max=256
for /f %%a in ('type ".\IDs\ID_map_icons.py"^|find "" /v /c') do set /a cnt=%%a
IF /I %cnt% LSS %max% (
echo map icons: %cnt%/%max% ... ok.
) ELSE (
echo map icons: %cnt%/%max% ... ERROR ERROR ERROR TOO MANY!!!.
)
REM
REM
echo ______________________________
echo.
echo Script processing has ended.
echo Press any key to restart. . .
pause>nul && goto :top