-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscript.pack
65 lines (52 loc) · 2.21 KB
/
script.pack
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
# var = "value", assign variable a value, can be used in any argument or variable by using %var%
# pack(pattern, dat_folder, zlib_compression)
# output(dst, overwrite) puts all the packed files into a DAT and writes it to disk.
#
# This example is from https://github.com/rotators/Fo1in2
data = "..\..\Fallout2\Fallout1Port\mods\fo1_base"
#pack("%data%\data\*", "data", true)
pack("%data%\*", "", true);
art = "%data%\art"
echo("--- Packing art files from %art% ---")
pack("%art%\backgrnd\*", "art\BACKGRND", true)
pack("%art%\critters\*", "art\CRITTERS", true)
pack("%art%\HEADS\HEADS.LST", "art\HEADS", true)
pack("%art%\intrface\*", "art\INTRFACE", true)
pack("%art%\inven\*", "art\INVEN", true)
pack("%art%\items\*", "art\ITEMS", true)
pack("%art%\misc\*", "art\MISC", true)
pack("%art%\scenery\*", "art\SCENERY", true)
pack("%art%\skilldex\*", "art\SKILLDEX", true)
pack("%art%\SPLASH\*", "art\SPLASH", true)
pack("%art%\Tiles\tiles.lst", "art\TILES", true)
pack("%art%\walls\walls.lst", "art\WALLS", true)
sound = "%data%\sound"
echo("--- Packing sound files from %sound% ---")
pack("%sound%\sfx\*", "sound\SFX", true)
premade = "%data%\premade"
echo("--- Packing premade files from %premade% ---")
pack("%premade%\*", "premade", true)
maps = "%data%\maps"
echo("--- Packing map files from %maps% ---")
pack("%maps%\*", "maps", true)
proto = "%data%\proto"
echo("--- Packing protos files from %proto% ---")
pack("%proto%\critters\*", "proto\CRITTERS", true)
pack("%proto%\items\*", "proto\ITEMS", true)
pack("%proto%\SCENERY\*", "proto\SCENERY", true)
pack("%proto%\Tiles\*", "proto\TILES", false)
pack("%proto%\Walls\*", "proto\WALLS", true)
scripts = "%data%\scripts"
echo("--- Packing script files from %scripts% ---")
pack("%scripts%\*", "scripts", false)
text = "%data%\text\english"
echo("--- Packing text files from %text% ---")
pack("%text%\*", "text\english", false)
pack("%text%\cuts\*", "text\english\cuts", false)
pack("%text%\dialog\*", "text\english\dialog", false)
pack("%text%\game\*", "text\english\game", false)
output("fo1_base.dat", true)
echo("")
echo("All done! Praise the Rat God!")
echo("")
echo("[Press enter to exit]")