XML:IPge: Difference between revisions
Paradox-01 (talk | contribs) (+ temp + cat) |
m (link fix) |
||
(4 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{XML_File_Header | type=IPge | {{XML_File_Header | prev=Impt | type=IPge | next=M3GM | name=Item Page}} | ||
== | ==General information== | ||
{|class="wikitable" style="float:right" | {|class="wikitable" style="float:right" | ||
|width=160px| ''' | |width=160px| '''Name''' | ||
|width=90px| ''' | |width=90px| '''Global/Local''' | ||
|width=90px| ''' | |width=90px| '''Page number''' | ||
|- | |- | ||
| IPge'''[[Quotes/Items#ammo|ammo]]'''_ballistic.oni | | IPge'''[[Quotes/Items#ammo|ammo]]'''_ballistic.oni | ||
Line 48: | Line 48: | ||
|} | |} | ||
* The | * The XML code on this page is compatible with OniSplit '''v0.9.61.0'''. | ||
* Some '''IPge*.oni''' are global (located in level0_...) | * Some '''IPge*.oni''' files are global (located in level0_...) and others are local; see table on right. | ||
* An item page can be read for first time when player finds | * An item page can be read for the first time when the player finds the item that links to the page. | ||
* An IGPA instance here will make Oni crash. | * An IGPA instance here will make Oni crash. | ||
* For additional information on LSIs, see [[LSI|HERE]]. | |||
==BSL support== | |||
* http://ssg.oni2.net/commands.htm#powerup | * http://ssg.oni2.net/commands.htm#powerup | ||
* chr_has_lsi [ai_name:string | script_id:int] - records that the character has the lsi - chr_has_lsi(0) | * chr_has_lsi [ai_name:string | script_id:int] - records that the character has the lsi - chr_has_lsi(0) | ||
==XML structure== | |||
Think of "instances" (#N) as file sections: they run from 1 to N; 0 is the header (it defines the file type, here "IPge"). | |||
Think of "instances" (#N) as file sections | |||
: Every IPge contains one instance of type IGPG. | : Every IPge contains one instance of type IGPG. | ||
Line 66: | Line 65: | ||
: Every IGSA contains a number of instances of type IGSt. | : Every IGSA contains a number of instances of type IGSt. | ||
: IGPG means a page | : IGPG means a page. | ||
: IGSA means a (text) string array | : IGSA means a (text) string array. | ||
: IGSt means a (text) string | : IGSt means a (text) string. | ||
Example from "IPgekeys": | |||
: #0 (IPge instance) links to #1 (IGPG instance) | : #0 (IPge instance) links to #1 (IGPG instance) | ||
: #1 (IGPG instance) links to #3 and #4 (IGSA instances) | : #1 (IGPG instance) links to #3 and #4 (IGSA instances) | ||
: #2 (unknown placeholder, only | : #2 (unknown placeholder, only present in original files) (can be ignored) | ||
: #3 (IGSA instance) links from #5 up to #6 (IGSt instances) | : #3 (IGSA instance) links from #5 up to #6 (IGSt instances) | ||
: #4 (IGSA instance) links to #7 (IGSt instance) | : #4 (IGSA instance) links to #7 (IGSt instance) | ||
==XML tags and options== | |||
'''IPge instance tags''' | '''IPge instance tags''' | ||
: <PageNumber> (item page number) | : <PageNumber> (item page number) | ||
: <Page> (links to IGPG instance) | : <Page> (links to IGPG instance) | ||
'''IGPG instance tags''' | '''IGPG instance tags''' | ||
Line 94: | Line 90: | ||
::: '''Bold''' | ::: '''Bold''' | ||
::: ''Italic'' | ::: ''Italic'' | ||
:: <Color> ([[wikipedia:RGB_color_model# | :: <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 114: | Line 110: | ||
:: <Color> | :: <Color> | ||
:: <Size> | :: <Size> | ||
:: <Flags> ( | :: <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 121: | Line 117: | ||
:: <Text> (contains the actual text but can also create a bare paragraph) | :: <Text> (contains the actual text but can also create a bare paragraph) | ||
==Example== | |||
'''IPgekeys.xml''': | |||
[[Image:XML_IPge.jpg|400px|right|thumb]] | |||
| | |||
<?xml version="1.0" encoding="utf-8"?> | <?xml version="1.0" encoding="utf-8"?> | ||
Line 136: | Line 129: | ||
</IPge> | </IPge> | ||
You can display a | 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]].) | ||
<IGPG id="1"> | <IGPG id="1"> | ||
Line 172: | Line 165: | ||
</IGSt> | </IGSt> | ||
A space between the text tags (<Text> </Text>) can produce a new paragraph. The import ignores that so far but you can fix it by writing "<Text xml:space="preserve"> </Text>". (Not used in this example.) | A space between the text tags (<Text> </Text>) can produce a new paragraph. The import ignores that so far, but you can fix it by writing "<Text xml:space="preserve"> </Text>". (Not used in this example.) | ||
<IGSt id="5"> | <IGSt id="5"> | ||
Line 196: | Line 189: | ||
</Oni> | </Oni> | ||
==Related files== | |||
== | |||
{|class="wikitable" | {|class="wikitable" | ||
!width=120px| | !width=120px| Powerup/LSI | ||
!width=150px| | !width=150px| Object | ||
!width=150px| | !width=150px| Object texture | ||
!width=150px| | !width=150px| Glow texture | ||
!width=180px| | !width=180px| Location | ||
|- | |- | ||
| | | | ||
Line 236: | Line 228: | ||
global (level0) | global (level0) | ||
|- | |- | ||
! LSI | |||
! Object | |||
! Icon texture | |||
! Object texture | |||
! Location | |||
|- | |- | ||
| | | | ||
Line 267: | Line 259: | ||
TXMPlsi_keystex.oni<br> | TXMPlsi_keystex.oni<br> | ||
| | | | ||
local (level1_Final | local (level1_Final)<br> | ||
local (level6_Final | local (level6_Final)<br> | ||
local (level8_Final | local (level8_Final)<br> | ||
local (level12_Final | local (level12_Final)<br> | ||
local (level19_Final | local (level19_Final) | ||
|} | |} | ||
{{XML}} | {{XML}} |
Latest revision as of 14:42, 31 March 2021
IPge : Item Page | ||
---|---|---|
XML
Impt << Other file types >> M3GM |
General information
Name | Global/Local | Page number |
IPgeammo_ballistic.oni | level0 | 0 |
IPgeammo_energy.oni | level0 | 1 |
IPgehypo.oni | level0 | 2 |
IPgeshield.oni | level0 | 3 |
IPgeinvisibility.oni | level0 | 4 |
IPgedatapad.oni (LSI) | level1 | 5 |
IPgeharness.oni (LSI) | level6 | 5 |
IPgetorch.oni (LSI) | level8 | 5 |
IPgezip.oni (LSI) | level12 | 5 |
IPgekeys.oni (LSI) | level19 | 5 |
- The XML code on this page is compatible with OniSplit v0.9.61.0.
- Some IPge*.oni files are global (located in level0_...) and others are local; see table on right.
- An item page can be read for the first time when the player finds the item that links to the page.
- An IGPA instance here will make Oni crash.
- For additional information on LSIs, see HERE.
BSL support
- http://ssg.oni2.net/commands.htm#powerup
- chr_has_lsi [ai_name:string | script_id:int] - records that the character has the lsi - chr_has_lsi(0)
XML structure
Think of "instances" (#N) as file sections: they run from 1 to N; 0 is the header (it defines the file type, here "IPge").
- Every IPge contains one instance of type IGPG.
- Every IGPG contains two instances of type IGSA. (One for the main section, one for the hint section.)
- Every IGSA contains a number of instances of type IGSt.
- IGPG means a page.
- IGSA means a (text) string array.
- IGSt means a (text) string.
Example from "IPgekeys":
- #0 (IPge instance) links to #1 (IGPG instance)
- #1 (IGPG instance) links to #3 and #4 (IGSA instances)
- #2 (unknown placeholder, only present in original files) (can be ignored)
- #3 (IGSA instance) links from #5 up to #6 (IGSt instances)
- #4 (IGSA instance) links to #7 (IGSt instance)
XML tags and options
IPge instance tags
- <PageNumber> (item page number)
- <Page> (links to IGPG instance)
IGPG instance tags
- <Font> (defines the font in case it isn't defined in the IGSt instance; the style is bold by default)
- <Family>
- TSFFTahoma
- <Style>
- Normal
- Bold
- Italic
- <Color> (RGB range, e.g. <Color>255 0 77</Color>)
- <Size> (10 and 12 are usually used)
- <Family>
- <Image> (links to a TXMP or PSpc file)
- <Text1> (links to an IGSA instance (main field))
- <Text2> (links to an IGSA instance (hint field))
IGSA instance tags
- <Strings>
- <Link> (links to an IGSt instance)
IGSt instance tags
- <Font>
- <Family>
- TSFFTahoma
- <Style>
- Normal
- Bold
- Italic
- <Color>
- <Size>
- <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.)
- Family
- Style
- Color
- Size
- <Text> (contains the actual text but can also create a bare paragraph)
- <Family>
Example
IPgekeys.xml:
<?xml version="1.0" encoding="utf-8"?> <Oni> <IPge id="0"> <PageNumber>5</PageNumber> <Page>#1</Page> </IPge>
You can display a small image if you use the image tag in the IGPG instance. (Either a non-animated TXMP or a PSpc.)
<IGPG id="1"> <Font> <Family></Family> <Style>Normal</Style> <Color>0 0 0 0</Color> <Size>0</Size> <Flags></Flags> </Font> <Image>TXMPkeys</Image> <Text1>#3</Text1> <Text2>#4</Text2> </IGPG> <IGSA id="3"> <Strings> <Link>#7</Link> </Strings> </IGSA> <IGSA id="4"> <Strings> <Link>#5</Link> <Link>#6</Link> </Strings> </IGSA> <IGSt id="7"> <Font> <Family></Family> <Style>Normal</Style> <Color>0 0 0 0</Color> <Size>0</Size> <Flags></Flags> </Font> <Text>TRUCK KEYS..........................................</Text> </IGSt>
A space between the text tags (<Text> </Text>) can produce a new paragraph. The import ignores that so far, but you can fix it by writing "<Text xml:space="preserve"> </Text>". (Not used in this example.)
<IGSt id="5"> <Font> <Family></Family> <Style>Normal</Style> <Color>0 0 0 0</Color> <Size>0</Size> <Flags></Flags> </Font> <Text>Hint:</Text> </IGSt> <IGSt id="6"> <Font> <Family></Family> <Style>Normal</Style> <Color>0 0 0 0</Color> <Size>0</Size> <Flags></Flags> </Font> <Text>Maybe the truck can help you get through the doors to the computer core...</Text> </IGSt> </Oni>
Related files
Powerup/LSI | Object | Object texture | Glow texture | Location |
---|---|---|---|---|
ammo_ballistic |
M3GMpowerup_ammo.oni |
TXMPpoweruptex_ammo.oni |
TXMPglowtex_ammo.oni |
global (level0) |
LSI | Object | Icon texture | Object texture | Location |
datapad |
M3GMpowerup_lsi.oni |
TXMPlsi_icon.oni |
TXMPlsi_palmtex.oni |
local (level1_Final) |