forked from feartec/benzin
-
Notifications
You must be signed in to change notification settings - Fork 9
/
xmlantut.txt
204 lines (165 loc) · 11.2 KB
/
xmlantut.txt
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
===============================================================================
XMLAN Tutorial v0.1 Für Benzin By SquidMan
===============================================================================
General Format ........................................................ [LAN01]
Animation Types ....................................................... [LAN02]
RLPA .............................................................. [LAN03]
RLVC .............................................................. [LAN04]
RLMC .............................................................. [LAN05]
RLTP .............................................................. [LAN06]
RLVI .............................................................. [LAN07]
RLTS .............................................................. [LAN08]
RLIM .............................................................. [LAN09]
===============================================================================
General Format Für Benzin [LAN01]
===============================================================================
This section explains the general formatting for XMLAN files.
XMLAN is simply an alternate naming to help distinguish between a source file
for BRLAN or BRLYT (the latter uses XMLYT). As you may have guessed, the name
is a portmonteau of XML and BRLAN. This is because the format is XML.
To create an XMLAN file, you must start the file with:
<?xml version="1.0"?>
Now you must add your XMLAN entry:
<xmlan framesize="#">
Change the # in there to the maximum amount of frames before looping.
Don't forget to close the XMLAN tag at the end of your file!
</xmlan>
Now for the real substance of the XMLAN. For every "tag" (every image with
animation has at least 1 "tag") add the following:
<tag name="xxxx" type="YYYY" format="zzzz">
xxxx needs to be replaced with the name of the tag in the XMLYT, YYYY needs to
be an Animation type (look at the Animation Types section), and zzzz needs to
be replaced by either Normal or Alpha. You must use Alpha for any RLVC tag that
uses alpha. Like the XMLAN tag, make sure to close this.
For each "entry" in the tag (each animation has an entry) add:
<entry type="xxxx">
Where xxxx is the animation type (see the page for the tag that you are using
for names).
Then, inside of the entry, you put your "triplets" (The value for the entry at
a specified point)
<triplet>
<frame>xxxx</frame>
<value>yyyy</value>
<blend>zzzz</blend>
</triplet>
xxxx is the frame to have the set value, yyyy is the value to set, and zzzz is
the blending value (so it doesn't appear all choppy). Check the entry type's
info to see what the value affects.
You need multiple triplets for an animation. If you only have one, it will just
be static. Very boring =].
===============================================================================
Animation Types Für Benzin [LAN02]
===============================================================================
TODO....
-------------------------------------------------------------------------------
>>>> RLPA Für Benzin [LAN03]
-------------------------------------------------------------------------------
TODO: Maybe more description....
This is probably the most used tag type of all, it handles many different
actions in one. Because of this, the entry types have been Macroed to make it
easier to read.
Macro table:
/-----------------------------------------------------------------------------\
| Macro | ID# | Value |
|-----------------|------|----------------------------------------------------|
| X Translation | 0x00 | The X location relative to the starting position. |
| Y Translation | 0x01 | The Y location relative to the starting position. |
| Z Translation | 0x02 | The Z location relative to the starting position. |
| X Rotate | 0x03 | The X rotation relative to the starting rotation. |
| Y Rotate | 0x04 | The Y rotation relative to the starting rotation. |
| Z Rotate | 0x05 | The Z rotation relative to the starting rotation. |
| X Scale | 0x06 | X zooming relative to starting X zoom. |
| Y Scale | 0x07 | Y zooming relative to starting Y zoom. |
| Width | 0x08 | X width. To perform clipping. |
| Height | 0x09 | Y width. To perform clipping. |
| 0x0A | 0x0A | Unknown. |
| 0x0B | 0x0B | Unknown. |
| 0x0C | 0x0C | Unknown. |
| 0x0D | 0x0D | Unknown. |
| 0x0E | 0x0E | Unknown. |
| 0x0F | 0x0F | Unknown. |
\-----------------------------------------------------------------------------/
-------------------------------------------------------------------------------
>>>> RLVC Für Benzin [LAN04]
-------------------------------------------------------------------------------
TODO: Add more info...
This tag type is for vertex colors. The only use of it that I've seen is with
the entry type being 16.
/-----------------------------------------------------------------------------\
| Entry Type | Value |
|---------------------|-------------------------------------------------------|
| Top Left Red | Red color element of top left vertex |
| Top Left Green | Green color element of top left vertex |
| Top Left Blue | Blue color element of top left vertex |
| Top Left Alpha | Alpha color element of top left vertex |
| Top Right Red | Red color element of top right vertex |
| Top Right Green | Green color element of top right vertex |
| Top Right Blue | Blue color element of top right vertex |
| Top Right Alpha | Alpha color element of top right vertex |
| Bottom Left Red | Red color element of bottom left vertex |
| Bottom Left Green | Green color element of bottom left vertex |
| Bottom Left Blue | Blue color element of bottom left vertex |
| Bottom Left Alpha | Alpha color element of bottom left vertex |
| Bottom Right Red | Red color element of bottom right vertex |
| Bottom Right Green | Green color element of bottom right vertex |
| Bottom Right Blue | Blue color element of bottom right vertex |
| Bottom Right Alpha | Alpha color element of bottom right vertex |
| 16 | Alpha. |
\-----------------------------------------------------------------------------/
-------------------------------------------------------------------------------
>>>> RLMC Für Benzin [LAN05]
-------------------------------------------------------------------------------
TODO: Add more info...
This tag type is for material colors
/-----------------------------------------------------------------------------\
| Entry Type | Value |
|---------------------|-------------------------------------------------------|
| MatColor Red | Red color element of MatColor |
| MatColor Green | Green color element of MatColor |
| MatColor Blue | Blue color element of MatColor |
| MatColor Alpha | Alpha color element of MatColor |
| Forecolor Red | Red color element of Forecolor |
| Forecolor Green | Green color element of Forecolor |
| Forecolor Blue | Blue color element of Forecolor |
| Forecolor Alpha | Alpha color element of Forecolor |
| Backcolor Red | Red color element of Backcolor |
| Backcolor Green | Green color element of Backcolor |
| Backcolor Blue | Blue color element of Backcolor |
| Backcolor Alpha | Alpha color element of Backcolor |
| TevReg3Color Red | Red color element of TevReg3 |
| TevReg3Color Green | Green color element of TevReg3 |
| TevReg3Color Blue | Blue color element of TevReg3 |
| TevReg3Color Alpha | Alpha color element of TevReg3 |
| TevKColor1 Red | Red color element of TevKColor1 |
| TevKColor1 Green | Green color element of TevKColor1 |
| TevKColor1 Blue | Blue color element of TevKColor1 |
| TevKColor1 Alpha | Alpha color element of TevKColor1 |
| TevKColor2 Red | Red color element of TevKColor2 |
| TevKColor2 Green | Green color element of TevKColor2 |
| TevKColor2 Blue | Blue color element of TevKColor2 |
| TevKColor2 Alpha | Alpha color element of TevKColor2 |
| TevKColor3 Red | Red color element of TevKColor3 |
| TevKColor3 Green | Green color element of TevKColor3 |
| TevKColor3 Blue | Blue color element of TevKColor3 |
| TevKColor3 Alpha | Alpha color element of TevKColor3 |
| TevKColor4 Red | Red color element of TevKColor4 |
| TevKColor4 Green | Green color element of TevKColor4 |
| TevKColor4 Blue | Blue color element of TevKColor4 |
| TevKColor4 Alpha | Alpha color element of TevKColor4 |
\-----------------------------------------------------------------------------/
-------------------------------------------------------------------------------
>>>> RLTP Für Benzin [LAN06]
-------------------------------------------------------------------------------
TODO....
-------------------------------------------------------------------------------
>>>> RLVI Für Benzin [LAN07]
-------------------------------------------------------------------------------
TODO....
-------------------------------------------------------------------------------
>>>> RLTS Für Benzin [LAN08]
-------------------------------------------------------------------------------
TODO....
-------------------------------------------------------------------------------
>>>> RLIM Für Benzin [LAN09]
-------------------------------------------------------------------------------
TODO....