PDA

View Full Version : Glorious Modding



CountMRVHS
05-03-2004, 02:30
Hi all,

I have a question for modders. I'm working on my Dark Age campaign, based on the Viking map, and I've been toying with the idea of adding GAs. I know you may be thinking it can't be done, but I think I know some of the limitations and I'm curious if someone can help me get started.

This is the area of the startpos file that I'm working with:

//========================================
// Glory goal conquest reward multiplier.
//
// This value represents the multiplier applied
// to points gained for conquering enemy regions.
//
// RegOwnersFile::custom file - setup who
// should own what region at what era,
// see regowner_table file, the year is not modable...
//========================================

GGConquestReward:: FN_01 1.0
GGConquestReward:: FN_02 1.0
GGConquestReward:: FN_03 1.0
GGConquestReward:: FN_04 1.0
GGConquestReward:: FN_05 1.0
GGConquestReward:: FN_06 1.0
GGConquestReward:: FN_07 1.0
GGConquestReward:: FN_08 1.0
GGConquestReward:: FN_09 1.0
GGConquestReward:: FN_10 1.0
GGConquestReward:: FN_11 1.0
GGConquestReward:: FN_12 1.0
GGConquestReward:: FN_13 1.0
GGConquestReward:: FN_14 1.0
GGConquestReward:: FN_15 1.0
GGConquestReward:: FN_16 1.0

//========================================
// Glory goals only aplicable for main campaign
//========================================

GloriousToggle:: true


As you can see, I've added a few factions to the Viking map

I changed the GloriousToggle to true and gave each faction a simple 1 conquered provine = 1 point scoring system just to see if it worked.

I went to the campaign menu and was greeted with 2 options instead of the usual one:

Attain victory through conquest,

and

Attain victory through glorious achievements.

So far so good. I clicked the achievements button and started a campaign as the Strathclyders.

When my campaign started up, the GA button was flashing in the lowerleft corner, just like it should.

I clicked the button, and there was an instant crash to desktop.

I wasn't too surprised, in fact I was rather expecting it to happen, but I wonder how I can actually implement this and make it work?

I understand that I would be limited in that I could only have conquest GAs, but I could change the values for each faction... a large faction like the Mercians might have to conquer 4 provinces to get a single point, for example, whereas a small faction like the Irish would be able to get a point by taking only one province by conquest.

I know it's not much, but it would be great for people like me who, when they're playing the Scots, don't want necessarily to have to take over the whole of England. Instead, you could keep track of who was winning in the GA department, and make just enough conquests to ensure that you came out ahead. Instead of conquering 60 or 100 percent of the map, your victory would be based on being the top military power -- a fine distinction, but one which might make a difference for some people.

It might not work at all but I would love to at least try this out. Can anyone help me with any ideas on how to get the GA screen to come up in the campaign?

Any input on this, or referrals to other posts, will be much appreciated

CountMRVHS

HopAlongBunny
05-03-2004, 05:42
Copied post to Alchemists Lab

If anyone can answer it, they will...unless that was the wrong forum...oh well http://www.totalwar.org/forum/non-cgi/emoticons/wave.gif

Duke John
05-03-2004, 09:06
The crash was caused because you pressed the GA button. The result was that the engine tried to look up which regions are homelands. In the file regowner_table located in the base directory all these homelands are written down. Even if you don't have homelands I believe that you must have entries of the factions. I don't know the detail of this, but you should run search on this in either the Engineers Guild or Alchemist Lab. As far as I know the crash was caused by regowner_table. The VI campaign doesn't have GA, so it isn't just setting a variable to true, although it appears so.

It is possible, but I believe that it is a hard nut to crack.

Good luck,
Duke John

CountMRVHS
05-03-2004, 12:18
Thanks for posting that for me, HopAlongBunny - I didn't realize that I had been promoted to Senior patron until after I posted yesterday

@DukeJohn - ahh, so there IS a homeland component... I'll have a look at that file. I assume that's what the following section was all about:

// RegOwnersFile::custom file - setup who
// should own what region at what era,
// see regowner_table file, the year is not modable...
//========================================


Kinda sounded like Homelands but I wasn't sure.

I'll have a look at that stuff. Thanks again

Duke John
05-03-2004, 12:19
See this thread (http://www.totalwar.org/cgi-bin/forum/ikonboard.cgi?act=ST;f=26;t=14828) for more information.

Kaatar
05-03-2004, 12:53
Also, you'll need a picture for each new faction of that big banner that appears when you click on the GA button.

CountMRVHS
05-03-2004, 21:28
Thanks for the replies guys

Although looking at that thread, DukeJohn, is somewhat of a downer...

First of all, I added a *bunch* of new factions, and that looks like it might mess things up
Second, I changed the dates around quite a bit, and that looks like it might mess things up
Third, I'm trying to do this for the Viking campaign map, and I don't think anyone has tried that yet

I'll have a look at the file and see if I can make any headway whatsoever...

Thanks for the input http://www.totalwar.org/forum/non-cgi/emoticons/gc-dizzy2.gif