-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
executable file
·73 lines (64 loc) · 1.78 KB
/
install.sh
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
72
73
#!/usr/bin/bash
clear
echo "running first-time-install"
echo -e "running git pull...\n > git pull"
git pull
echo -e "\> git pull\ndone."
source libs/lib_var.sh
var.init
echo "making settings.txt..."
echo "disable_logging=false
watch_log=false
no_animations=false
terminal='echo \"set a terminal in the settings to watch the log.\"'
save_on_pauze=true
autosave_time=20
" >> settings.txt
echo "done"
echo "making game profiles..."
mkdir profiles
cd profiles
var.math profile profile=1
while [[ $(var.get profile) -le 3 ]]
do
if [[ -f $(var.get profile).save ]]
then
echo "profile $(var.get profile) already here..."
[[ "$(var.get no_animations)" == false ]] && sleep 0.1
source "$(var.get profile).save"
rm "$(var.get profile).save"
else
var.set map map.1.1
var.set inv ' wood_pickaxe '
var.set holding ''
var.set coins 0
var.set gen_1_5_ticks 601
var.set gen_2_6_ticks 1201
var.set gen_1_5_left_stone 3
var.set gen_2_6_left_iron 6
fi
touch "$(var.get profile).save"
echo -n "
# this is your gamesave.
# please don't modify it, that's called cheating.
# and, you wont have the right stuff to get to the end...
var.set profile $(var.get profile)
var.set map $map
var.set inv '$(var.get inv)'
var.set holding '$(var.get holding)'
var.set coins $(var.get coins)
var.set achivements' $(var.get achivements) '
var.set gen_1_5_ticks $(var.get gen_1_5_ticks)
var.set gen_1_5_left_stone $(var.get gen_1_5_left_stone)
var.set gen_2_6_ticks $(var.get gen_2_6_ticks)
var.set gen_2_6_left_iron $(var.get gen_2_6_left_iron)
" >> "$(var.get profile).save"
var.math profile profile++
done
cd ..
echo "done"
echo "making logs folder..."
mkdir logs
echo "done"
read -p "press enter to enter the game." -s
clear