-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathREADME
More file actions
87 lines (69 loc) · 3.69 KB
/
README
File metadata and controls
87 lines (69 loc) · 3.69 KB
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
FS Tools 1.2
Copyright (C) 2009-2012 Jakob Klein, mail@kleinjakob.at
This file is part of FS Tools.
FS Tools is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
FS Tools is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with FS Tools. If not, see <http://www.gnu.org/licenses/>.
Prerequisites:
A working FS9 toolchain for modeling and exporting models. Usually
consiting of GMax, MDL Commander, MakeMDL.
A UNIX-oid operating system (GNU/Linux, GNU/Hurd, Mac Darwin, Mac OSX)
or atleast a UNIX-oid environment like Cygwin for Windows.
Some common tools like GNU bash, sed, grep, cut, cat, ... usually these
are all available if you have a UNIX-oid environment (bash-shell) already.
Additionally you need Perl 5.x, under most GNU/Linux and Mac OSX this is
already available for you too - in case it isn't you can install it very
easily. Consult your systems manuals, but under GNU/Linux open your
package manager and search for Perl and install it.
e.g. apt-get install perl or yum install perl
Under Cygwin you have to run setup.exe again to change any packages in
your Cygwin configuration. On the page where it asks you for packages
search for perl and install the base package.
If you want the tool to compile the modified .asm files directly, you
have to download the updated BGL-Compiler for FS9 (BGLC_9.exe) freely
available on the internet and install the wine Windows API emulator under
GNU/Linux.
e.g. apt-get install wine or yum install wine
Installation:
Unpack the contents of this archive into any folder you like. Please
check that user privileges and the executeable flag is set under UNIX-oid
systems (should be ok if the files come from a .tar archive, but .zip
archieves destroy these flags). If you have downloaded the BGLC_9.exe
unpack it and place it in the same folder as the scripts.
Now you can run this script set from the Console/Terminal Emulator by
cd'ing to the directory where these tools are and using it as described
below.
Useage:
./fstools.sh [Option] | [Arguments]
Possible Options:
--version Prints a short information about the version of this script.
--help Prints this short text on invocation.
--licence Prints the Licence under which this program is released.
Optional Arguments:
If you give arguments, you have to give all four, or none at all.
By giving the arguments you skip the interactive qestionaire about the
input and output folders, the mother input file and the bright materials
table.
Argument 1: absolute input folder name ending in a trailing slash (/)
e.g. "/path/to/input/folder/"
Argument 2: absolute output folder name ending in a trailing slash (/)
e.g. "/path/to/output/folder/"
Argument 3: name of the mother file in the input folder
e.g. "motherfile.asm"
Argument 4: name of the bright materials table file in the input folder
e.g. "brightmaterials.csv"
Coming together as:
./fstools.sh "/path/to/input/folder/" "/path/to/output/folder/"
"motherfile.asm" "brightmaterials.csv"
Bugs and Contact:
Github Repository: <https://github.com/kleinjakob/FS-Tools>
Bitbucket Repository: <https://bitbucket.org/kleinjakob/fs-tools>
Author:
Jakob Klein <http://kleinjakob.at/> mail@kleinjakob.at