Jump to content

researches.xml Help?


Recommended Posts

I'm trying to remove the requirements for research in the xml. I wanted to use regex to speed things along, but I can't see a pattern in the lines. For example, take this section:

<Row ss:AutoFitHeight="0" ss:Height="38.25" ss:StyleID="s72">   <Cell ss:StyleID="s77"><Data ss:Type="String">Researches.BaseUpgrade</Data></Cell>   <Cell><Data ss:Type="Number">120</Data></Cell>   <Cell ss:StyleID="s73"><Data ss:Type="String">BaseStructures</Data></Cell>   <Cell ss:StyleID="s74"><Data ss:Type="String">Researches.AlienBaseFacilities</Data></Cell>   <Cell ss:StyleID="s74"/>   <Cell ss:StyleID="s74"><Data ss:Type="String">UnlockKnowledge( "Researches.BaseUpgrade" );UnlockBuilding("NanotechWorkshop");UnlockBuilding("QuantumLaboratory");UpgradeBuilding("Workshop", "NanotechWorkshop");UpgradeBuilding("Laboratory","QuantumLaboratory");SetCurrentBackgroundLevel("2");</Data></Cell>   <Cell ss:StyleID="s77"><Data ss:Type="String">Researches.BaseUpgrade</Data></Cell>  </Row>  <Row ss:AutoFitHeight="0" ss:Height="25.5">   <Cell ss:StyleID="s72"><Data ss:Type="String">Researches.ElectroshockGrenade</Data></Cell>   <Cell ss:StyleID="s72"><Data ss:Type="Number">160</Data></Cell>   <Cell ss:StyleID="s73"><Data ss:Type="String">Weaponary</Data></Cell>   <Cell ss:StyleID="s72"><Data ss:Type="String">Researches.AlienElectronics</Data></Cell>   <Cell ss:StyleID="s75"/>   <Cell ss:StyleID="s75"><Data ss:Type="String">UnlockItem("weapon.grenade.shock");UnlockKnowledge( "Researches.ElectroshockGrenade" );</Data></Cell>   <Cell ss:StyleID="s72"><Data ss:Type="String">Researches.ElectroshockGrenade</Data></Cell>  </Row>

I don't understand why the research requirement line for the first block is

<Cell ss:StyleID="s74">

, while for the second it is

<Cell ss:StyleID="s72">

.

Link to comment
Share on other sites

I can help you here. A number of .xml files are actually Excel spreadsheets translated into XML files. Researches.xml is one of those. If you don't have Excel or a suitible spreadsheet program which can emulate excel files, you'll just have to ignore <Cell> comments and the like.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...