Peng Qi
Emperor
So I've been bumping around here looking things up, reading some tutorials, and typing out some XML but...I'm a total noob. Zero experience. Have no idea what I'm doing.
I've written out some things that...I thought were supposed to do things when loaded up but apparently don't. On the bright side I can upload my mod that doesn't do anything to the Workshop and load it into the game OK! Now I have to figure out why it doesn't do anything...
So I have two files in my Solution, which I've named what I want them to do. I'm not sure if this is a problem; should my changes be in the named files I intend them to modify? Or can I just plunk them down anywhere as I'm doing?
Second, I have one file that's supposed to eliminate the WW1 bomber, swap the techs needed for the Battleship and Submarine and needed for WW1 Infantry and Artillery, and move the Destroyer to Replaceable Parts. It is also supposed to update the obsolescence tech for Riflemen, Cannons, and Frigates to match. Here's the code:
It doesn't do anything at all in-game, but at least it doesn't crash. 
The second bit is some tech fiddling. Namely, I'm trying to swap the prerequisite techs for Rifling and Military Science and their location on the in-game tech tree. This code also appears to do nothing!
I almost feel like there's an important tutorial I just haven't read yet that tells me what likely incredibly obvious thing I'm doing wrong here, but if there is I have not yet found it. Can someone clobber me with some supernoob help here?
I've written out some things that...I thought were supposed to do things when loaded up but apparently don't. On the bright side I can upload my mod that doesn't do anything to the Workshop and load it into the game OK! Now I have to figure out why it doesn't do anything...
So I have two files in my Solution, which I've named what I want them to do. I'm not sure if this is a problem; should my changes be in the named files I intend them to modify? Or can I just plunk them down anywhere as I'm doing?
Second, I have one file that's supposed to eliminate the WW1 bomber, swap the techs needed for the Battleship and Submarine and needed for WW1 Infantry and Artillery, and move the Destroyer to Replaceable Parts. It is also supposed to update the obsolescence tech for Riflemen, Cannons, and Frigates to match. Here's the code:
Code:
<GameData>
<!-- TODO: Insert table creation example here. -->
<!-- TODO: Insert table data example here.-->
<!-- Enter your Game Data here. -->
<Units>
<Update>
<Delete Class="UNITCLASS_WWI_BOMBER"/>
</Update>
<Update>
<Set PrereqTech="TECH_REFRIGERATION"/>
<Where Class="UNITCLASS_BATTLESHIP"/>
</Update>
<Update>
<Set PrereqTech="TECH_ELECTRONICS"/>
<Where Class="UNITCLASS_SUBMARINE"/>
</Update>
<Update>
<Set PrereqTech="TECH_REPLACEABLE_PARTS"/>
<Where Class="UNITCLASS_DESTROYER"/>
</Update>
<Update>
<Set PrereqTech="TECH_DYNAMITE"/>
<Where Class="UNITCLASS_GREAT_WAR_INFANTRY"/>
</Update>
<Update>
<Set PrereqTech="TECH_REPLACEABLE_PARTS"/>
<Where Class="UNITCLASS_ARTILLERY"/>
</Update>
<Update>
<Set ObsoleteTech="TECH_DYNAMITE"/>
<Where Class="UNITCLASS_RIFLEMEN"/>
</Update>
<Update>
<Set ObsoleteTech="TECH_REPLACEABLE_PARTS"/>
<Where Class="UNITCLASS_CANNON"/>
</Update>
<Update>
<Set ObsoleteTech="TECH_REFRIGERATION"/>
<Where Class="UNITCLASS_FRIGATE"/>
</Update>
</Units>
</GameData>

The second bit is some tech fiddling. Namely, I'm trying to swap the prerequisite techs for Rifling and Military Science and their location on the in-game tech tree. This code also appears to do nothing!
Code:
<?xml version="1.0" encoding="utf-8"?>
<!-- Created by ModBuddy on 3/28/2015 10:01:52 PM -->
<GameData>
<!-- TODO: Insert table creation example here. -->
<!-- TODO: Insert table data example here.-->
<!-- Enter your Game Data here. -->
<Technologies>
<Update>
<Where TechType="TECH_MILITARY_SCIENCE"/>
<GridX>9</GridX>
<GridY>6</GridY>
</Update>
<Update>
<Where TechType="TECH_RIFLING"/>
<GridX>9</GridX>
<GridY>8</GridY>
</Update>
</Technologies>
<Technology_PrereqTechs>
<Update>
<Where TechType="TECH_MILITARY_SCIENCE"/>
<Set PrereqTech="TECH_ECONOMICS"/>
</Update>
<Update>
<Where TechType="TECH_RIFLING"/>
<Set PrereqTech="TECH_CHEMISTRY"/>
</Update>
<Delete>
<Where TechType="TECH_MILITARY_SCIENCE"/>
<Set PrereqTech="TECH_CHEMISTRY"/>
</Delete>
<Delete>
<Where TechType="TECH_RIFLING"/>
<Set PrereqTech="TECH_ECONOMICS"/>
</Delete>
</Technology_PrereqTechs>
</GameData>
I almost feel like there's an important tutorial I just haven't read yet that tells me what likely incredibly obvious thing I'm doing wrong here, but if there is I have not yet found it. Can someone clobber me with some supernoob help here?
