Log in

View Full Version : :) amateur (and I mean AMATEUR) modder needs help!



MJRKUS
08-18-2007, 10:13
Hey everybody, I'm new. After becoming bored with MTW, i started looking at mods.My computer is tiny and i didn't think it could handle any of them.

So I thought that I could make a new one!

I made a copy of the early campaign and named it IRISH (guess where I'm from) and altered the code, meaning to add the Irish into my game.

It was harder than I thought. :dizzy2:
Don't worry, my computer hasn't exploded or anything I just need to know what to do next.

I have the names on, the flags, colours, religion... everything set and i can get into the map and run for as long as i want, but the thing is the units and buildings available. I know which file it is (CRUSADER_UNIT_PROD11, CRUSADER BUILDING_PROD13) to change it and I have Gnome Editor
and made all the (Catholic) units available to me but when i start it it says

UNKNOWN FACTION SPECIFIED: FREE21

I used Free21 to declare it and make it.

Is there anywhere else you have to declare it to get that to Know it?
Note that is not a spelling mistake as I've tried multiple times and when i take my faction name out of those files it works again.

macsen rufus
08-21-2007, 13:09
Hi MJRKUS,

I think I know what your problem is, and there are two solutions. In short, the factions named in the prod files must be declared in EVERY startpos that uses them, and I see you've only added your new faction to the EARLY startpos.

The quick and easy solution is to copy your unit_prod and build_prod files, rename to something else like Irish_unit_prod and Irish_build_prod, and then in your modded startpos file, change the PROD_FILES entry to match.

This means your Irish campaigns will use the 'Irish prod' files, whilst the rest will use the original.

The other solution is to declare your FN_FREE21 in all of the startpos files, and include all the SET_CULTURE, SET_BEHAVIOUR etc etc entries too. This will make the new faction available in all three eras. If you really only want them in EARLY, then all you need to do with the High and Late startpos is to omit the SET_START_LEADER and PLACE_LEADER entires for FN_FREE21 - the game will then start up without them.

If this still doesn't work, you may need to go through a similar process with the Loc/Eng/Faction_specific.txt and the Campmap/Names/Heroes.txt files as well (I'm not sure whether or not undeclared factions appearing here will be a big problem for the unmodded campaigns - you might be lucky...)

Good luck, and let us know how you get on :2thumbsup:

ps we're all amateurs, really, just some of us get more nerdy about it :laugh4:

ULC
08-24-2007, 03:28
Actually, I think it may have to do with the fact that he didn't add the "FN_" part to the production files. I may be wrong, but the way the error message looks, I think thats whats wrong.

naut
08-24-2007, 10:52
This magical guide may be of some assistance to you, it may highlight something you've overlooked, which often happens:

Link. (http://www.box.net/shared/ezgifqq2u8)

I'd say YLaC is right and its down to the missing "FN_" (without quotations).