XML:WPge: Difference between revisions

378 bytes removed ,  6 December 2023
m
wikilinked Data Comlink
m (Edition -> AE)
m (wikilinked Data Comlink)
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{XML_File_Header | type=WPge | prev=WMM | next=AKEV | name=Weapon Page }}
{{XML_File_Header | prev=WMM | type=WPge | next=AISA | name=Weapon Page}}


===general information===
==General information==
* The xml code on this page is compatible with onisplit '''v0.9.61.0'''
* The XML on this page is compatible with OniSplit '''v0.9.61.0'''.
* '''WPge*.oni''' are global. (They can be found in AE/AEInstaller/vanilla/level0_Final.dat)
* WPges are global (level0_Final.dat).
* A weapon page can be read for first time when player finds a weapon linked to its page.
* A weapon page becomes available to read under the [[Data Comlink]]'s Weapons tab when the player finds the weapon linked to that page.
* An IGPA instance here will make Oni crash.
* An IGPA instance here will make Oni crash.


 
==XML structure==
===XML structure===
Think of "instances" (#N) as file sections, they go from 1 to N. 0 is the header (it defines the file type, here "WPge").
Think of "instances" (#N) as file sections, they go from 1 to N. 0 is the header (it defines the file type, here "WPge").


Line 19: Line 18:
: IGSt means a (text) string
: IGSt means a (text) string


 
Example from WPgew1_tap:
example on "WPgew1_tap":


: #0  (WPge instance) links to #1 (IGPG instance)
: #0  (WPge instance) links to #1 (IGPG instance)
: #1  (unknown placeholder, only presented in original files) (can be ignored)
: #1  (unknown placeholder, only present in original files) (can be ignored)
: #2  (IGPG instance) links to #4 and #5 (IGSA instances)
: #2  (IGPG instance) links to #4 and #5 (IGSA instances)
: #3  (unknown placeholder, only presented in original files) (can be ignored)
: #3  (unknown placeholder, only present in original files) (can be ignored)
: #4  (IGSA instance) links from #9 up to #14 (IGSt instances)
: #4  (IGSA instance) links from #9 up to #14 (IGSt instances)
: #5  (IGSA instance) links from #6 up to #8 (IGSt instances)
: #5  (IGSA instance) links from #6 up to #8 (IGSt instances)


 
==XML tags and options==
===XML tags and options===
'''WPge instance tags'''
'''WPge instance tags'''
: <WeaponClass> (file name without prefix "ONWC" and suffix ".oni")
: <WeaponClass> (file name without prefix "ONWC" and suffix ".oni")
Line 43: Line 40:
::: '''Bold'''
::: '''Bold'''
::: ''Italic''
::: ''Italic''
:: <Color> ([[wikipedia:RGB_color_model#The_24-bit_RGB_representation|RGB]] range, e.g. <Color>255 0 77</Color>)
:: <Color> ([[wikipedia:RGB_color_model#Numeric_representations|RGB]] range, e.g. <Color>255 0 77</Color>)
:: <Size> (10 and 12 are usually used)
:: <Size> (10 and 12 are usually used)
: <Image> (links to a TXMP or PSpc file)
: <Image> (links to a TXMP or PSpc file)
Line 63: Line 60:
:: <Color>
:: <Color>
:: <Size>
:: <Size>
:: <Flags> (Every IGSt can use own properties. The <Flag> tag let you enable these. Add "Size" when you want to get a new font size, add "Color" when you want to get a new font color, etc..)
:: <Flags> (Every IGSt can have its own properties. The <Flag> tag let you enable these. Add "Size" when you want to get a new font size, add "Color" when you want to get a new font color, etc.)
::: <font style="color:#777">Family</font>
::: <font style="color:#777">Family</font>
::: Style
::: Style
Line 70: Line 67:
:: <Text> (contains the actual text but can also create a bare paragraph (see example at instance #13))
:: <Text> (contains the actual text but can also create a bare paragraph (see example at instance #13))


 
==Example==
===example===
[[Image:XML_WPge_w1_tap.jpg|thumb|200px]]
{| border=0 cellspacing=20 cellpadding=0 align=right
[[Image:XML_WPge_Silenced_Machine_Gun.jpg|thumb|200px]]
| [http://i305.photobucket.com/albums/nn207/unknownfuture/Oni_Galore_Images/XML_modding/WPge_tap.png http://i305.photobucket.com/albums/nn207/unknownfuture/Oni_Galore_Images/XML_modding/WPge_tap_preview.png]<br>
[http://i305.photobucket.com/albums/nn207/unknownfuture/Oni_Galore_Images/XML_modding/WPge.png http://i305.photobucket.com/albums/nn207/unknownfuture/Oni_Galore_Images/XML_modding/WPge_preview.png]
|}


  <?xml version="1.0" encoding="utf-8"?>
  <?xml version="1.0" encoding="utf-8"?>
Line 84: Line 78:
     </WPge>
     </WPge>


You can display a little image if you use the image tag in the IGPG instance. (Either non-animated TXMP or [[XML:PSpc|PSpc]].)
You can display a small image if you use the image tag in the IGPG instance. (Either a non-animated TXMP or a [[XML:PSpc|PSpc]].)


<Text2> is used for the hint field -- see screenshot.
<Text2> is used for the hint field see examples at right.


     <IGPG id="2">
     <IGPG id="2">
Line 101: Line 95:
     </IGPG>
     </IGPG>


Instance #13 has a space between the text tags (<Text> </Text>) to produce a new paragraph. The import ignores that so far but you can fix it by writing "<Text xml:space="preserve"> </Text>".
Instance #13 uses a space between the text tags (<Text> </Text>) to produce a new paragraph. OniSplit currently ignores that space, but you can fix it by writing "<Text xml:space="preserve"> </Text>".


     <IGSA id="4">
     <IGSA id="4">