User Tools

Site Tools


modding:guide:replacing_content_talk_page

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

modding:guide:replacing_content_talk_page [2012/04/08 17:57] – created rpcmodding:guide:replacing_content_talk_page [2014/12/27 04:40] (current) – external edit 127.0.0.1
Line 1: Line 1:
 +This is the Talk Page for [[Replacing Content]]
  
 +======Replacing Content: Talk Page=======
 +
 +====Re: BOMs====
 +
 +> It's looking good. I have not read it thoroughly, but I *do* think that mentioning BOM is a bit too much. 
 +> I mean, is it really an issue? I am just concerned that it will confuse more than help, at the stage most 
 +> people reading this tutorial will be. Most people under a certain age, or non-programmers will never have 
 +> heard of BOM, and happily so - [[/users/alterecco]]
 +
 +>> I have had long and hard struggles with the BOM in my time.  If any of the users want to include Japanese 
 +>> or other languages not covered by ASCII they will want to use Unicode and the BOM will be lurking to 
 +>> trip them up.  I will reword it to make it clearer that most people won't have to worry about it. [[users:ptbptb]]
 +
 +
 +
 +====Re: <ListOptions>=====
 +
 +i think you got it wrong with 
 +<code xml>
 +                <ListOptions
 +               dataFrom=   "player"
 +               list=      "*U"
 +               /></code>
 +
 +note the close tag 
 +
 +<code xml>
 +                <ListOptions
 +               dataFrom=   "player"
 +               list=      "*U"
 +                /  >
 +</code>
 +you shoulnd need the <code xml>  </ListOptions></code> since the / closes the tag after the data is read 
 +
 +> I'm not with you here.  The original ListOptions in Tinkers.xml is 
 +
 +   <ListOptions
 +      dataFrom= "player"
 +      list= "*U"
 +   />
 +
 +> as shown.  The /> is needed because there is no </ListOptions>.
 +> As I need to add code inside the list options element 
 +> ( <ListOptions> ... code goes here ... </ListOptions> ) it needs
 +> an explicit closing tag and the /> is changed into a > on the opening tag. [[..:users:ptbptb]]
 +
 +**examples** 
 +<code xml>
 +<RandomItem count="3d6" 
 + criteria= "aswd -NotForSale;"
 + level= "7"
 + levelCurve= "2"
 + damaged= "100"
 + />
 +
 +<Station type="&stCommonwealthTurret;" imageVariant="2"/>
 +<Ship chance="10" count="1" class="&scSapphireYacht;" orders="gateOnThreat"/></code>
 +
 +And the <globals> can go anywhere in the file as long as they are inside <TranscendenceExtension>(here)</TranscendenceExtension>
 +
 +oh and to overwrite vanilla items use the unid for them defined in the Transcendence.xml 
 +
 +[[/users/sdw195]]
 +
 +> You're right about the UNID.  Thanks for reminding me to change it here. [[..:users:ptbptb]]