aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/ywalk.1
blob: ca1b56da9f245298ace252fc2508598d75760f0e (plain) (blame)
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
.Dd November 14, 2021
.Dt YWALK 1
.Os
.Sh NAME
.Nm ywalk
.Nd a fast-travel companion for The Elder Scrolls III: Morrowind
.Sh SYNOPSIS
.Nm
.Op Fl T
.Op Fl m Ar modes
.Op Fl M Ar modes
.Op Fl P Ar place
.Op Fl w Ar weighting_mode
.Op Ar place ...
.Nm
.Op Fl h
.Sh DESCRIPTION
.Nm
is a fast-travel companion for The Elder Scrolls III: Morrowind.
It can print out fast-travel information for a given place, or calculate
the quickest fast-travel route between a set of places.
.Pp
Place names are as they appear in the game, for example
.Dq Sadrith Mora
or
.Dq Ald'ruhn .
.Pp
If no
.Ar place
is given,
.Nm
lists all places in its database.
If only one
.Ar place
is given, the program will print out direct connections to and from that
place.
Additionally, a reachability map is printed, showing how easy it is to
travel from the given place to any other on the map.
.Pp
If two or more
.Ar places
are given,
.Nm
will calculate the best route through all of them.
.Pp
The options are as follows:
.Bl -tag -width Ds
.It Fl h
Shows the integrated help page and exits.
.It Fl m Ar modes
Allows only the use of the given modes of transport, separated by
commas.
The modes of transport are as follows:
.Pp
.TS
tab(/);
l |l |l
lb |l |l.
Value/Name/Notes
=
almsivi/Almsivi Intervention/
boat/Boat/
caravan/Caravan/Only in Tamriel Rebuilt
divine/Divine Intervention/
foot/Walking/Used to access Imperial Forts
guide/Guild Guide/
propylon/Propylon Chambers/Includes the Master Index
recall/Recall/
river_strider/River Strider/Only in Tamriel Rebuilt
silt_strider/Silt Strider/
.TE
.It Fl M Ar modes
Avoids the use of the given modes of transport, separated by commas.
.It Fl P Ar place
Avoids traveling through the given place.
This option can be given multiple times.
.It Fl T
Avoids using modes of travel that are based on teleportation.
Specifically this excludes the Guild Guide, any Propylon-based travel,
and the Recall and Intervention spells.
This mode is useful if
.Nm
should find a path that is suitable for escort missions.
.It Fl w Ar weighting_method
Uses the given weighting method when determining the best path.
The weighting methods are as follows:
.Bl -tag -width Ds
.It Sy least-hop
Optimizes for the smallest number of hops between places.
.It Sy least-time
Optimizes for the quickest journey measured by in-game hours.
.El
.Pp
This option overrides any method given in the configuration file.
.El
.Sh CONFIGURATION
Configuration is done using a configuration file.
The file format consists of key-value pairs collected in groups:
.Bd -literal -offset indent
[misc]
data = tr-travels
recall = Tel Uvirith
.Ed
.Pp
The options for the
.Em misc
group are as follows:
.Bl -tag -width Ds
.It Sy data
The base name of the data file to use when building the travel network.
See
.Sx DATA FILES
for more information on the data file format and location.
.Pp
The default installation includes the following data files:
.Bl -tag -width Ds -offset indent
.It Sy goty
Definitions for the vanilla Game of the Year edition of Morrowind.
.It Sy tr-travels
Definitions for the Game of the Year edition of Morrowind including
Tamriel Rebuilt's
.Sy TR_Travels
plugin.
.El
.Pp
The default is
.Sy goty .
.It Sy recall
Specifies which place is accessible through the Recall spell.
This should be one of the places defined in the data file.
.Pp
By default no Recall destination is set.
.It Sy weighting_method
Specifies which weighting method to use.
See the
.Fl w
option for details.
.Pp
The default is
.Sy least-time .
.El
.Sh DATA FILES
.Nm
constructs its travel network by reading connection definitions from a
text file.
A connection definition consists of the origin and destination place,
the mode of transport, and the amount of in-game hours needed to make
the journey.
.Pp
The first line of a data file defines the column names.
Values are separated by the tab character.
.Nm
expects the following column names to be available:
.Bl -tag -width Ds
.It Sy Origin
The origin of a connection.
.It Sy Destination
The destination of a connection.
.It Sy Mode
The mode of transport, given by its full name.
.It Sy Time
The amount of in-game hours needed to complete the journey.
.El
.Pp
The following lines are the connection definitions, with values
separated by the tab character.
.Sh FILES
.Bl -tag -width Ds
.It Pa $XDG_CONFIG_HOME/ywalk/config
The configuration file for
.Nm .
.It Pa $XDG_DATA_HOME/ywalk
The base directory for data files making up the travel network.
.El
.Pp
.Nm
adheres to the XDG Base Directory Specification.
.Pp
If $XDG_CONFIG_HOME is unset or empty, it will default to
.Pa ~/.config .
.Pp
If $XDG_DATA_HOME is unset or empty, it will default to
.Pa ~/.local/share .
.Sh EXAMPLES
To print information about travel options in Vivec:
.Pp
.Dl ywalk Vivec | less
.Pp
To print the shortest path between Vivec and Gnisis:
.Pp
.Dl ywalk Vivec Gnisis
.Pp
To exclude the use of Almsivi and Divine intervention:
.Pp
.Dl ywalk -M almsivi,divine Vivec Gnisis
.Pp
To exclude any teleportation-based transport:
.Pp
.Dl ywalk -T Vivec Gnisis
.Pp
To add an intermediate stop in Vos:
.Pp
.Dl ywalk -T Vivec Vos Gnisis
.Pp
To avoid Ebonheart on the way:
.Pp
.Dl ywalk -T -P Ebonheart Vivec Vos Gnisis
.Pp
To make sure to use the least amount of hops:
.Pp
.Dl ywalk -T -P Ebonheart -w least-hop Vivec Vos Gnisis
.Sh AUTHORS
.An -nosplit
.Nm
was written by
.An Wolfgang Müller Aq Mt wolf@oriole.systems