Skip to content

Commit

Permalink
Sync.
Browse files Browse the repository at this point in the history
  • Loading branch information
Lead0b110010100 authored and Lead0b110010100 committed Nov 30, 2020
1 parent 6cff3e5 commit 886a389
Show file tree
Hide file tree
Showing 134 changed files with 9,262 additions and 10,206 deletions.
1 change: 1 addition & 0 deletions main/Source
1 change: 1 addition & 0 deletions main/locale_germany
50 changes: 26 additions & 24 deletions main/panel.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/sh
#### @martysama0134 start scripts ####
v_base=$PWD
v_base=/usr/home/game/main
v_mt2f=$v_base
v_bakf=$v_base/baks
v_dbf=$v_bakf/db
Expand Down Expand Up @@ -32,14 +32,14 @@ abio () { echo -e "\033[31m$1\033[32m$1\033[33m$1\033[34m$1\033[35m$1\033[36m$1\
r_echo ".:. AdminPanel .:."
gecho "What do you want to do?"
recho "1. Start (start)
1c. Restart (restart and clean)
1i. Start Interactive (starti)
2. Stop (stop|close)
2i. Stop Interactive (stopi|closei)
3. Clean (clean|clear)
33. Clean All (cleanall|clearall)
4. Backup mysql/db (bak1|db|db_backup)
5. Backup game/fs (bak2|fs|fs_backup)
6. Restart (restart)
11. Compile game (compile_game)
12. Clean and Compile game (clean_and_compile_game)
13. Compile db (compile_db)
Expand All @@ -65,24 +65,6 @@ case $phase in
cd $v_base
cecho "start completed"
;;
1c|restartandclean)
cd $v_mt2f
$v_bin stop.py
cd $v_base
cecho "stop completed"

cd $v_mt2f
$v_bin clear.py
cd $v_base
make -C $v_dbf clean
make -C $v_fsf clean
cecho "cleanall completed"

cd $v_mt2f
$v_bin start.py
cd $v_base
cecho "start completed"
;;
1i|starti)
cd $v_mt2f
$v_bin start.py --prompt
Expand Down Expand Up @@ -136,26 +118,46 @@ case $phase in
make -C $v_fsf dump
cecho "bak fs completed"
;;
5|restart)
cd $v_mt2f
$v_bin stop.py
cecho "stop completed"

$v_bin clear.py
make -C $v_dbf clean
make -C $v_fsf clean
cecho "cleanall completed"

cd $v_mt2f/$v_foldername/share/locale/$v_localename/quest
chmod u+x qc
$v_bin pre_qc.py -ac
cd $v_base
cecho "quest completed"

$v_bin start.py
cd $v_base
cecho "start completed"
;;
11|compile_game)
cd $v_gamesrcpath
gmake -j13
gmake -j9
cecho "game src compiled"
;;
12|clean_and_compile_game)
cd $v_gamesrcpath
gmake clean
gmake -j13
gmake -j9
cecho "game src clean compiled"
;;
13|compile_db)
cd $v_dbsrcpath
gmake -j13
gmake -j9
cecho "db src compiled"
;;
14|clean_and_compile_db)
cd $v_dbsrcpath
gmake clean
gmake -j13
gmake -j9
cecho "db src clean compiled"
;;
666|gen)
Expand Down
Loading

0 comments on commit 886a389

Please sign in to comment.