Civ 5 modding Noobie Q

shanepg

Chieftain
Joined
Nov 9, 2011
Messages
30
Hi Guys,

This is my first attempt at modding - in any game. I'm not a programmer, but you pros make it all seem so easy I thought I'd give it a go! It would appear I have fallen at the first hurdle!

I,ve read through Kael's (fantastic) pdf (about a million times!) and I've poured through the forum here for the last couple of days and still I can't crack it, so I thought it was time I asked for help.

I've downloaded ModBuddy and VSIso 2010.

I'm starting simple - real simple. I thought I would try and make a warrior cost 10 instead of 40.

Before you read on I've just read somenthing about a lot of answers for noobies involving "VPS" and "Text Keys Duplicate". I've done nothin involving these things, so if I need to updaye a file somewhere before anything will work that might be the answer (?). If so, a detailed explanation would be appreciated.

If not:

Here's what I do, step by step, cos I'm sure it's a real simple mistake that I'm making:

Open ModBuddy
New Mod...
Name it WarriorTen
Right Click "WarriorTen" in Solution explorer
Add new folder, call it XML, add new folder under that called warrior
Right click the warrior folder, Add new item, select Game rules (XML), name it WarriorTen.xml
Amend the code:

<?xml version="1.0" encoding="utf-8"?>
<!-- Created by ModBuddy on 11/11/2011 7:10:22 PM -->
<GameData>
<Units>
<Update>
<Set Cost="10"/>
<Where Type="UNIT_WARRIOR"/>
</Update>
</Units>
</GameData>

Right Click the Project Name (with the yellow V and hammer next to it), hit properties, go to Actions.
Hit Add, ensure OnModActivated, UpdateDatabase - set the file as XML/Warrior/WarriorTen
Save in C:\Users\Shane\Documents\Firaxis ModBuddy\

Close ModBuddy
Open Civ V
Click to Continue, Mods, Accept, Browse Mods, Click the green tick next to WarriorTen (v.1) so it is enabled. I also ensure no other mods are enabled. Hit Back,Single player, Setup Game, Start

Game, Begin your journey, Hit B, Choose production, Look at Warrior and the cost is....40! NOT 10.

Please help prevent something valuable get broken (like my head) and tell me the real simple thing I'm doing wrong.

Thanks.
 
I gotta go cook my (and the wife's) dinner, back in an hour

Moderator Action: Moved to the main forum.
Because the tutorials subforum is only for tutorials ;).
 
I'm sure you did, but just to make sure:

Did you build the solution?

Your code is correct, there should be no errors there. You seemed to have linked to it correctly, no issues there. I'm sure it's just a build issue...
 
Yes. Went to Build and selected build solution.
------ Build started: Project: WarriorTenName, Configuration: Default x86 ------
========== Build: 1 succeeded or up-to-date, 0 failed, 0 skipped ==========

I don't really know what I'm doing though, so if you have some detailed instructions I can run through we will know for sure I've got it right.
 
This is weird. Your code is correct, I just double-checked it. You've built it...so, do me a favor, take a screenshot of the Actions tab of ModBuddy and post it here. I want to see how you linked it.
 
attached
 

Attachments

  • WarriorTenActionsTab.png
    WarriorTenActionsTab.png
    124.7 KB · Views: 50
Thanks, no luck though.
Atached screenshot.
 

Attachments

  • WarriorTenActionsTabnoslash.png
    WarriorTenActionsTabnoslash.png
    102 KB · Views: 34
Scrap that - IT WORKS! I needed to rebuild.
THNAKS
I'm sure I tried it like that before but hey-ho.
Cheers guys.
 
Now it's time to try some fun stuff....
Give me a day or two and I'm sure I'll be back with more daft questions ;-)
 
Back
Top Bottom