hagamablabla Posted May 6, 2015 Share Posted May 6, 2015 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"> . Quote Link to comment Share on other sites More sharing options...
Max_Caine Posted May 6, 2015 Share Posted May 6, 2015 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. Quote Link to comment Share on other sites More sharing options...
hagamablabla Posted May 6, 2015 Author Share Posted May 6, 2015 Man, this is much easier to read in an Excel table. Thanks for the help! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.