Rookie: My mod isn't working

Daddicus

Chieftain
Joined
Aug 28, 2010
Messages
47
I've got all the basics down now (how to start typing, etc.), and I'm able to get my mod loaded into the game. I can verify through the options dialog that it's running.

However, it doesn't work. The purpose of this mod is to simply remove from the warlord handicap scope the ability for a goody hut to turn out either maps or barbarian locations. I might make it more complicated later, but for now it's simple. Well, I still get maps from goody huts, so I know it's not doing what I intended (although, probably exactly what I TOLD it :)).

Here's the code:

Spoiler :

<?xml version="1.0" encoding="utf-8"?>
<!-- Created by ModBuddy on 4/30/2011 12:02:13 PM -->
<GameData>
..<!-- TODO: Insert table creation example here. -->

..<!-- TODO: Insert table data example here.-->
..<!-- Enter your Game Data here. -->
..<HandicapInfo_Goodies>
....<delete>
......<Row>
........<HandicapType>HANDICAP_WARLORD</HandicapType>
........<GoodyType>GOODY_MAP</GoodyType>
......</Row>
......<Row>
........<HandicapType>HANDICAP_WARLORD</HandicapType>
........<GoodyType>GOODY_REVEAL_NEARBY_BARBS</GoodyType>
......</Row>
....</delete>
..</HandicapInfo_Goodies>
</GameData>


Can someone take a quick look and see if they can discern what I'm doing wrong?
 
Can someone take a quick look and see if they can discern what I'm doing wrong?

It's not the right syntax for a Delete. You don't put a <Row> inside it; it stands by itself, and syntactically, it's the same as the Where command on an <Update>, with the implicit AND format.

The way you'd write it is:

Code:
<GameData>
  <HandicapInfo_Goodies>
    <Delete HandicapType="HANDICAP_WARLORD" GoodyType="GOODY_MAP"/>
    <Delete HandicapType="HANDICAP_WARLORD" GoodyType="GOODY_REVEAL_NEARBY_BARBS"/>
  </HandicapInfo_Goodies>
</GameData>

Oh, and board note: if you want to get indentation to show up correctly, use the CODE declaration (inside brackets, of course). Quote my response to see what I'm talking about. And if you want to pair it with the Spoiler tag to hide large blocks, then the CODE goes inside the SPOILER, not outside.
 
It's not the right syntax for a Delete. You don't put a <Row> inside it; it stands by itself, and syntactically, it's the same as the Where command on an <Update>, with the implicit AND format.

The way you'd write it is:

Code:
<GameData>
  <HandicapInfo_Goodies>
    <Delete HandicapType="HANDICAP_WARLORD" GoodyType="GOODY_MAP"/>
    <Delete HandicapType="HANDICAP_WARLORD" GoodyType="GOODY_REVEAL_NEARBY_BARBS"/>
  </HandicapInfo_Goodies>
</GameData>

Oh, and board note: if you want to get indentation to show up correctly, use the CODE declaration (inside brackets, of course). Quote my response to see what I'm talking about. And if you want to pair it with the Spoiler tag to hide large blocks, then the CODE goes inside the SPOILER, not outside.

Thanks for both tips! Your code worked, and I'll remember the code and quote things for next time!

Jim
 
OK, back to the drawing board. I had all kinds of troubles with saved games and making it work, so I started over. This is the text I've got now:

Spoiler :
Code:
<?xml version="1.0" encoding="utf-8"?>
<!-- Created by ModBuddy on 5/3/2011 11:04:30 PM -->
<GameData>
  <!-- TODO: Insert table creation example here. -->
 
  <!-- TODO: Insert table data example here.-->
  
  <!-- Enter your Game Data here. -->
	<HandicapInfo_Goodies>
		<Delete HandicapType="HANDICAP_WARLORD" GoodyType="GOODY_MAP"/>
		<Delete HandicapType="HANDICAP_WARLORD" GoodyType="GOODY_REVEAL_NEARBY_BARBS"/>
	</HandicapInfo_Goodies>  
</GameData>

It looks identical to the mod I thought was working, but I've confirmed it doesn't. Since one can only tell if it is failing, and then only if you see a "map" or "barbarian locations" item show up. It's possible the old one "worked" only by random chance.

Is there something else I need to do to make this work? As far as I can tell, this is the only entry in the game files that deals with maps/barbs (for handicap warlord), but I must be missing something.

I want to move on to more interesting mods, but it seems logical to get this simple one working first.

Thanks for any help you can offer!
 
Back
Top Bottom