XML:IPge: Difference between revisions

From OniGalore
Jump to navigation Jump to search
m (in case someone appears with an old AE version)
m (ignore this)
(8 intermediate revisions by 2 users not shown)
Line 1: Line 1:
==[[OBD:IPge|IPeg]]: item page==
{{XML_File_Header | type=IPge | prev=IGHH | next=Impt | name=Item Page }}
===general notes===
 
{|BORDER=1 CELLSPACING=0 CELLPADDING=2 STYLE="border-style:solid; border-collapse:collapse; empty-cells:show; background-color:#f9f9f9;" align=right
===general information===
|width=160px| name
{|class="wikitable" style="float:right"
|width=80px| global / local
|width=160px| '''name'''
|width=90px| page number
|width=90px| '''global / local'''
|width=90px| '''page number'''
|-
|-
| IPge'''[[Quotes/Items#ammo|ammo]]'''_ballistic.oni
| IPge'''[[Quotes/Items#ammo|ammo]]'''_ballistic.oni
Line 46: Line 47:
| 5
| 5
|}
|}
* See [[XML basic tutorial|HERE]] if you don't know how to convert an oni file into XML and vice versa.
 
* The xml code on this page is compatible with onisplit '''v0.9.61.0'''
* Some '''IPge*.oni''' are global (located in level0_...), other are local, see table.
* Some '''IPge*.oni''' are global (located in level0_...), other are local, see table.
* An item page can be read for first time when player finds an item linked to its page.
* An item page can be read for first time when player finds an item linked to its page.
* An IGPA instance here will make Oni crash.
* An IGPA instance here will make Oni crash.
* Complete new items aren't possible yet (god knows when).
* For additional information on LSI see [[LSI|HERE]].
 
 
 
 
 
 
 
 
 
 
 
 




Line 74: Line 64:


: Every IPge contains one instance of type IGPG.
: Every IPge contains one instance of type IGPG.
: Every IGPG contains two instances of type IGSA.
: 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.
: Every IGSA contains a number of instances of type IGSt.


Line 98: Line 88:


'''IGPG instance tags'''
'''IGPG instance tags'''
: <nowiki><nowiki><Font></nowiki></nowiki> (defines the font in case it isn't defined in the IGSt instance; the style is bold by default)
: <nowiki><Font></nowiki> (defines the font in case it isn't defined in the IGSt instance; the style is bold by default)
:: <Family>
:: <Family>
::: TSFFTahoma
::: TSFFTahoma
Line 116: Line 106:


'''IGSt instance tags'''
'''IGSt instance tags'''
: <nowiki><nowiki><Font></nowiki></nowiki>
: <nowiki><Font></nowiki>
:: <Family>
:: <Family>
::: TSFFTahoma
::: TSFFTahoma
Line 134: Line 124:


===example===
===example===
{| border=0 cellspacing=20 cellpadding=0 align=right
IPgekeys.xml
| [http://i305.photobucket.com/albums/nn207/unknownfuture/Oni_Galore_Images/XML_modding/IPge.png http://i305.photobucket.com/albums/nn207/unknownfuture/Oni_Galore_Images/XML_modding/IPge_preview.png]
 
|}
[[Image:XML_IPge.jpg|400px|right|thumb]]


  <?xml version="1.0" encoding="utf-8"?>
  <?xml version="1.0" encoding="utf-8"?>
  <Oni Version="0.9.34.0">
  <Oni>
     <Instance id="0" type="IPge">
     <IPge id="0">
         <PageNumber>5</PageNumber>
         <PageNumber>5</PageNumber>
         <Page>#1</Page>
         <Page>#1</Page>
     </Instance>
     </IPge>


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


     <Instance id="1" type="IGPG">
     <IGPG id="1">
         <nowiki><Font></nowiki>
         <nowiki><Font></nowiki>
             <Family></Family>
             <Family></Family>
Line 158: Line 148:
         <Text1>#3</Text1>
         <Text1>#3</Text1>
         <Text2>#4</Text2>
         <Text2>#4</Text2>
     </Instance>
     </IGPG>
     <Instance id="3" type="IGSA">
     <IGSA id="3">
         <Strings>
         <Strings>
             <Link>#7</Link>
             <Link>#7</Link>
         </Strings>
         </Strings>
     </Instance>
     </IGSA>
     <Instance id="4" type="IGSA">
     <IGSA id="4">
         <Strings>
         <Strings>
             <Link>#5</Link>
             <Link>#5</Link>
             <Link>#6</Link>
             <Link>#6</Link>
         </Strings>
         </Strings>
     </Instance>
     </IGSA>
     <Instance id="5" type="IGSt">
     <IGSt id="7">
         <nowiki><Font></nowiki>
         <nowiki><Font></nowiki>
             <Family></Family>
             <Family></Family>
Line 178: Line 168:
             <Flags></Flags>
             <Flags></Flags>
         <nowiki></Font></nowiki>
         <nowiki></Font></nowiki>
         <Text>Hint:</Text>
         <Text>TRUCK KEYS..........................................</Text>
     </Instance>
     </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 IPgekeys.)
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.)


     <Instance id="6" type="IGSt">
     <IGSt id="5">
         <nowiki><Font></nowiki>
         <nowiki><Font></nowiki>
             <Family></Family>
             <Family></Family>
Line 191: Line 181:
             <Flags></Flags>
             <Flags></Flags>
         <nowiki></Font></nowiki>
         <nowiki></Font></nowiki>
         <Text>Maybe the truck can help you get through the doors to the computer core...</Text>
         <Text>Hint:</Text>
     </Instance>
     </IGSt>
     <Instance id="7" type="IGSt">
     <IGSt id="6">
         <nowiki><Font></nowiki>
         <nowiki><Font></nowiki>
             <Family></Family>
             <Family></Family>
Line 201: Line 191:
             <Flags></Flags>
             <Flags></Flags>
         <nowiki></Font></nowiki>
         <nowiki></Font></nowiki>
         <Text>TRUCK KEYS..........................................</Text>
         <Text>Maybe the truck can help you get through the doors to the computer core...</Text>
     </Instance>
     </IGSt>
  </Oni>
  </Oni>




===related files===
===related files===
{|BORDER=1 CELLSPACING=0 CELLPADDING=2 STYLE="border-style:solid; border-collapse:collapse; empty-cells:show; background-color:#f9f9f9;"
{|class="wikitable"
|width=120px| Powerups / LSI
!width=120px| powerups / LSI
|width=150px| M3GM
!width=150px| object
|width=150px| TXMP
!width=150px| object texture
|width=150px| TXMP
!width=150px| glow texture
|width=180px| location
!width=180px| location
|-
|-
|
|
Line 245: Line 235:
global (level0)
global (level0)
|-
|-
| LSI
! LSI
| M3GM
! object
| TXMP
! icon texture
| TXMP
! object texture
| location
! location
|-
|-
|
|
Line 276: Line 266:
TXMPlsi_keystex.oni<br>
TXMPlsi_keystex.oni<br>
|
|
local (level1_Final/NoGlobal)<br>
local (level1_Final)<br>
local (level6_Final/NoGlobal)<br>
local (level6_Final)<br>
local (level8_Final/NoGlobal)<br>
local (level8_Final)<br>
local (level12_Final/NoGlobal)<br>
local (level12_Final)<br>
local (level19_Final/NoGlobal)
local (level19_Final)
|}
|}


'''differences in AE versions'''
{{XML}}
 
LSI location has changed in AE's 2009-7 release, in 2008-8 and older it was "levelX_Final/LSI".

Revision as of 09:26, 28 December 2017

IPge : Item Page
XML modding tips
  • See HERE to start learning about XML modding.
  • See HERE if you are searching for information on how to handle object coordinates.
  • See HERE for some typical modding errors and their causes.
XML.png
XML

IGHH << Other file types >> Impt

switch to OBD page

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 are global (located in level0_...), other are local, see table.
  • An item page can be read for first time when player finds an item linked to its page.
  • An IGPA instance here will make Oni crash.
  • For additional information on LSI see HERE.


BSL support


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 "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 on "IPgekeys":

#0 (IPge instance) links to #1 (IGPG instance)
#1 (IGPG instance) links to #3 and #4 (IGSA instances)
#2 (unknown placeholder, only presented 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)
<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 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..)
Family
Style
Color
Size
<Text> (contains the actual text but can also create a bare paragraph)


example

IPgekeys.xml

XML IPge.jpg
<?xml version="1.0" encoding="utf-8"?>
<Oni>
   <IPge id="0">
       <PageNumber>5</PageNumber>
       <Page>#1</Page>
   </IPge>

You can display a little image if you use the image tag in the IGPG instance. (Either non-animated TXMP or 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

powerups / LSI object object texture glow texture location

ammo_ballistic
ammo_energy
hypo
shield
invisibility
LSI

M3GMpowerup_ammo.oni
M3GMpowerup_cell.oni
M3GMpowerup_hypo.oni
M3GMpowerup_shield.oni
M3GMpowerup_invis.oni
-

TXMPpoweruptex_ammo.oni
TXMPpoweruptex_cell.oni
TXMPpoweruptex_hypo.oni
TXMPpoweruptex_shield.oni
TXMPpoweruptex_invis.oni
-

TXMPglowtex_ammo.oni
TXMPglowtex_cell.oni
TXMPglowtex_hypo.oni
TXMPglowtex_shield.oni
TXMPglowtex_invis.oni
TXMPglowtex_lsi.oni

global (level0)

LSI object icon texture object texture location

datapad
harness
torch
zip
keys

M3GMpowerup_lsi.oni
M3GMpowerup_lsi.oni
M3GMpowerup_lsi.oni
M3GMpowerup_lsi.oni
M3GMpowerup_lsi.oni

TXMPlsi_icon.oni
TXMPlsi_icon.oni
TXMPlsi_icon.oni
TXMPlsi_icon.oni
TXMPlsi_icon.oni

TXMPlsi_palmtex.oni
TXMPlsi_trackertex.oni
TXMPlsi_torchtex.oni
TXMPlsi_ziptex.oni
TXMPlsi_keystex.oni

local (level1_Final)
local (level6_Final)
local (level8_Final)
local (level12_Final)
local (level19_Final)