-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathopenmw.yml
222 lines (220 loc) · 6.41 KB
/
openmw.yml
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
---
- hosts: localhost
gather_facts: no
connection: local
vars:
hosting_dir: "/home/mark/Downloads" # this should not use tilde
tasks:
- name: Install dependencies
pacman:
name: "{{ item }}"
state: latest
with_items:
- boost # C++ boost library
- bullet # the physics engine
- cmake # used to manage the build process
- doxygen # a documentation system for C++
- ffmpeg # for sound decoding and BINK video playback
- git # well, listing just in case…
- mygui # GUI toolkit
- openal # for sound playback
- openscenegraph # OpenGL rendering toolkit
- sdl2 # input and windowing
- unshield # extracts CAB files from InstallShield installers
become: yes
- name: Ensure the hosting directory is present
file:
path: "{{ hosting_dir }}"
state: directory
- name: Grab the OpenMW repository
git:
repo: "https://github.com/openmw/openmw.git"
dest: "{{ hosting_dir }}/openmw"
version: master
- name: Create the build directory (OpenMW)
file:
path: "{{ hosting_dir }}/openmw/build"
state: directory
- name: Generate regular make file (OpenMW)
command: "cmake ../"
args:
chdir: "{{ hosting_dir }}/openmw/build"
- name: Build OpenMW
command: "make"
args:
chdir: "{{ hosting_dir }}/openmw/build"
- name: Install OpenMW
command: "make install"
args:
chdir: "{{ hosting_dir }}/openmw/build"
become: yes
- name: Grab the Pelagiad font
git:
repo: "https://github.com/Isaskar/Pelagiad.git"
dest: "{{ hosting_dir }}/Pelagiad"
version: master
- name: Install the Pelagiad font
copy:
src: "{{ hosting_dir }}/Pelagiad/{{ item }}"
dest: "/usr/local/share/games/openmw/resources/mygui/{{ item }}"
with_items:
- "Pelagiad.ttf"
- "openmw_font.xml"
become: yes
- name: Setup video settings
ini_file:
dest: "~/.config/openmw/settings.cfg"
section: "Video"
option: "{{ item.option }}"
value: "{{ item.value }}"
with_items:
- option: resolution x
value: 1920
- option: resolution y
value: 1080
- option: antialiasing
value: 8
- option: fullscreen
value: true
- option: framerate limit
value: 60
- name: Setup camera settings
ini_file:
dest: "~/.config/openmw/settings.cfg"
section: "Camera"
option: "{{ item.option }}"
value: "{{ item.value }}"
with_items:
- option: field of view
value: 70
- option: small feature culling pixel size
value: 2
- option: viewing distance
value: 60000
- name: Setup GUI settings
ini_file:
dest: "~/.config/openmw/settings.cfg"
section: "GUI"
option: "{{ item.option }}"
value: "{{ item.value }}"
with_items:
- option: menu transparency
value: 0.884888
- option: subtitles
value: true
- name: Setup game settings
ini_file:
dest: "~/.config/openmw/settings.cfg"
section: "Game"
option: "{{ item.option }}"
value: "{{ item.value }}"
with_items:
- option: difficulty
value: 1
- option: show owned
value: 1
- option: show effect duration
value: true
- option: best attack
value: true
- option: show projectile damage
value: true
- option: show melee info
value: true
- option: show enchant chance
value: true
- name: Setup general settings
ini_file:
dest: "~/.config/openmw/settings.cfg"
section: "General"
option: "{{ item.option }}"
value: "{{ item.value }}"
with_items:
- option: anisotropy
value: 16
- option: texture mipmap
value: linear
- name: Setup water settings
ini_file:
dest: "~/.config/openmw/settings.cfg"
section: "Water"
option: "{{ item.option }}"
value: "{{ item.value }}"
with_items:
- option: reflect actors
value: true
- option: refraction
value: true
- option: rtt size
value: 2048
- option: shader
value: true
- name: Setup input settings
ini_file:
dest: "~/.config/openmw/settings.cfg"
section: "Input"
option: "{{ item.option }}"
value: "{{ item.value }}"
with_items:
- option: always run
value: true
- name: Setup Windows settings
ini_file:
dest: "~/.config/openmw/settings.cfg"
section: "Windows"
option: "{{ item.option }}"
value: "{{ item.value }}"
with_items:
- option: inventory h
value: 0.568519
- option: inventory w
value: 0.415625
- option: inventory x
value: 0
- option: inventory y
value: 0.431481
- option: map h
value: 0.218519
- option: map w
value: 0.139062
- option: map x
value: 0.860417
- option: map y
value: 0
- option: dialogue h
value: 0.808333
- option: dialogue w
value: 0.809896
- option: dialogue x
value: 0.0947917
- option: dialogue y
value: 0.0944444
- name: Setup cells settings
ini_file:
dest: "~/.config/openmw/settings.cfg"
section: "Cells"
option: "{{ item.option }}"
value: "{{ item.value }}"
with_items:
- option: exterior cell load distance
value: 3
- option: preload num threads
value: 3
- name: Setup terrain settings
ini_file:
dest: "~/.config/openmw/settings.cfg"
section: "Terrain"
option: "{{ item.option }}"
value: "{{ item.value }}"
with_items:
- option: distant terrain
value: true
- name: Setup HUD settings
ini_file:
dest: "~/.config/openmw/settings.cfg"
section: "HUD"
option: "{{ item.option }}"
value: "{{ item.value }}"
with_items:
- option: crosshair
value: true