Log in

View Full Version : FAQs and common errors



Myrddraal
06-21-2004, 16:28
This forum seriously needs a thread like this. Anyone feel free to post ur expriences. I will try to update this list so that all FAQs and common errors are in the first post for easy searching.

I have started on the list, but it is far from done. (if someone feels it is appropriate, it would be good to have this thread stickied)

FAQ:

Q: Can I make new projectiles in ProjectileStats.txt
No this is hard coded, but you can edit existing projectiles. There is an unused projectile called Ninj, you can edit and use this if all you need is one projectile.

Q: Is there a way to make a cavalry unit dismount during battle not at its start? If yes how.
No, sorry.

Q: Is it possible to edit historical events? i.e. change the dates
Its not possible to change the dates, or what they do, but, you can edit the images that appear. Open Medieval-total war/campmap/EPIC.bif using a bif reader and be sure to scroll through each frame to see the pics. I think that the text can also be edited in loc/eng/events.txt could someone confirm this?

Q: Does anyone know if you can change the models in the game, create new ones, change their size or even just the textures?
You can't create new ones, change their size, but u can change the textures. You find them in the 'models' folder. I believe you can also edit the type of projectiles the tower fire, can someone confirm this.

Q: How can I make it so when I end my turn, rather than a year passing, only a season passes (like Shogun)?
No, this is hard coded.

Q: Is it possible to make my faction exist without a king or even creating the illusion that I have no king?
A faction must have a leader.
You might be able to create the illusion that there wasn't one:
1. By making that faction be the only one with a certain culture, copy the piece for armies and paste/rename it as the piece for the king in "campmap\pieces\'name of culture'" folder.
2. Go to the "campmap\portraits\'name of culture'" folder, copy the portraits for general and paste them in the king folder, change all these folders to be called king01, king02 etc.
3. Go to default_faction_specific.txt (or whatever file ur mod uses) in loc/eng folder. Edit the "King " label for your new faction to "" (i.e. nothing)
This will make ur king look like a normal general, but he will still be a king as far a succession is concerned.

Q: How can I set the loyalty of a province?
There are three important factors which control the loyalty.
1. The rebeliousness, which is edited in the startpos text file. This is part of the province attributes tab. The higher the number, the more rebelious it is. I don't think negative numbers are possible.
2. The culture of the region. If you want a faction to be very disloyal to catholics, but loyal to muslims, set it to muslim culture. This is also in the startpos text file.
3. The number of loyalty affecting buildings in the province. Certain buildings affect happiness/loyalty, like forts, churches etc. If you add lots of these buildings, the province will be more loyal.

Q: How do you mod ending/starting dates, so its not 1454?
In the startpos text file, after the entries for early,high and late era, you have to add/edit a line like this:
Code Sample
SetStartDate:: 1087
SetPeriod:: EARLY
SetEarlyPeriodStartDate:: 1087
SetHighPeriodStartDate:: 1205
SetLatePeriodStartDate:: 1321
SetGameEndDate:: 1454
[/QUOTE]
This is where you edit the dates. Important make sure the starting date is the same as the starting date for the start of the starting period, in this case Early. With some of the original startpos text files i.e. early.txt, the SetGameEndDate:: does not exist, you can add this line in in this case.

Q: Can I add new Vices and Virtues?
No but you can edit the names and descriptions of existing ones

Q: How do I add underage heirs at the start?
In the startpos text file. Look for the Add Heir lines.
This is where you add heirs under 16 yrs. old when the game starts.
The 1 or 0 is gender. 1 gives a son and 0 a daughter.
Number from 1-15. This is the heirs starting age.

Q: How do I/Can I add muslim princesses to the game?
Muslim factions can be modded to have princesses. You need to edit the CRUSADERS_UNIT_PROD11.TXT file (Faction who can "build" them and culture in the princess line) and add pics in:
\campmap\Info_Pics\Agents\Muslim
\campmap\review_panel\Agents\Muslim
\campmap\Portraits\Muslim\Princess

Q: Some factions cannot crusade, like the danes, how can I make this availiable?
Using Gnome Editor (preferably) open crusader_build_prod13.txt file.
In column 20, in a space for a CHAPTER_HOUSE (line 31) there is:
Code Sample "{ FN_ENGLISH, FN_FRENCH, FN_GERMAN_HRE, FN_ITALIAN, FN_SPANISH, FN_ARAGONESE, FN_SICILIAN }"[/QUOTE]
You have to add FN_DANISH there, like this:
Code Sample "{ FN_ENGLISH, FN_FRENCH, FN_GERMAN_HRE, FN_ITALIAN, FN_SPANISH, FN_ARAGONESE, FN_SICILIAN, FN_DANISH }"[/QUOTE]
This will then make it possible to build chapter houses. You must then do the same thing for Crusades in the unit prod. Once this is done. Chapter houses and crusades will be avaliable to the danes.

Q: How can I make units more/less likely to be in rebellions
Column 11 in the Unit production file is the rebel composition column. The higher the number the more likely the unit is to be in a rebellion. A (-30) for religious fanatics is not a negative 30. The '-' is marker that designates that at least one of the units in the mix should be this unit. the 30 is the probability. probability increases from zero.

Q: Can I make it so you can deploy more than 16 units in battle at once?
No, unfortunatly this is hard coded.






Common errors/solutions:

Q: I've added a unit called myunit, I get the message ( myunit_Plural )Could not translate.... and I have no idea if anything else comes after the part of the message that can be seen.
This style of error is caused by an error in the description files, "loc\eng\descriptions.txt", in this case, it is the plural name of the unit which is incorrect, if it said "( myunit_Singular )Could not translate...." it would be the singular tag wich is missing or incorrect.

Q: The came CTD's when I can see armies belonging to a certain faction.
This is usually to do with the shields or campmap pieces could someone give me a bit more info to put here

Q: I get this message: Too few values found in element data: column x, data row y where x and y are numbers
The error message your getting normally means you've made a mistake in the unit prod file. Sometimes you can make several errors with unit stats and you'll still be able to load and play. (Although an error will usually surface in the game) Alternativley you then add a unit thats statistically correct and BOOM your game won't open. Very frustrating.The error message should take you directly to the error, although this isn't always the case e.g If you've got multiple errors or columns and lines have become ofset etc
Too few properties generally means somethings missing from that lines (units) stats e.g column ?? line?? to few properties means to make the unit work, there should be a bit more info at that location. You can usually work it out through a bit of deductive logic. Or try to install the units individualy into the main game and see which one stops it working. Hope this helps, I've had to much experience of this myself,

Q: I have made a new faction, but the royal unit appears as Highland Clansmen
In the Gnome editor Column 49 in the unit_prod file designates which faction the the unit is going to be the royal bodyguard for. If none is specified, the royal bodyguard becomes the first unit in the entire list (Highland Clansmen by default). To make your faction have Royal/Ghulam Bodyguards scroll down the list and look for Royal Bodyguards or Ghulam Bodyguards and in column 49 there will be a list of factions. Add your faction to that list.

Q: I have added a new faction which works, but when I made a faction specific unit in the unitprod.txt, when I run the game a message appears saying "FN_FREE21 is not a valid faction" or "FN_XX is not a valid faction" where XX is a number.
You need to add DeclareFaction: lines to each campaign file that use that unit_prod.
OR
You need to make a copy of of the unit and build prod and call them urmod_unit_prod.txt and urmod_build_prod.txt. Rename it as something different, and add this line to your startpos above the start dates:
Code Sample Prodfiles:: UNITPROD "urmod_unit_prod.txt" BUILDINGPROD "urmod_build_prod.txt"[/QUOTE]




Still can find the answer?
Check out the FAQs in the repositary (http://www.totalwar.org/cgi-bin/forum/ikonboard.cgi?act=ST;f=26;t=10127;st=0)

Duke John
06-21-2004, 17:42
Topic not stickied http://www.totalwar.org/forum/non-cgi/emoticons/gc-wink.gif
We already have a stickied CTD topic, so it would be better if you check that one out and see if you can add something.

About the FAQ. It can be enormously long if you want to be complete. That is why I have set up the several chapters in the Repository. I would really appreciate it if anybody could write parts (even just a little paragraph) and with the same format/style as I use.

In the past there were lots of threads that contained interesting information. This thread is usefull, but it doesn't replace any other thread. So the result is only another stickied thread, which we are trying to avoid.

Cheers, Duke John

Myrddraal
06-22-2004, 10:23
I know how long this thread would be, but the idea would be to collect ideas on one page for easy searching. I don't mind that this thread is not stickied, I'll just have to keep updating it http://www.totalwar.org/forum/non-cgi/emoticons/wink.gif


EDIT> Hm. I hadn't really looked around the Repository when I started this... Am I wasting my time here? Honest answers please...

Kekvit Irae
06-22-2004, 11:16
Quote[/b] (Myrddraal @ June 21 2004,10:28)]Q: How do I/Can I add muslim factions to the game?
Muslim factions can be modded to have princesses. You need to edit the CRUSADERS_UNIT_PROD11.TXT file (Faction who can "build" them and culture in the princess line) and add pics in:
\campmap\Info_Pics\Agents\Muslim
\campmap\review_panel\Agents\Muslim
\campmap\Portraits\Muslim\Princess

Q: Some factions cannot crusade, like the danes, how can I make this availiable?
Using Gnome Editor (preferably) open crusader_build_prod13.txt file.
In column 20, in a space for a CHAPTER_HOUSE (line 31) there is:
"{ FN_ENGLISH, FN_FRENCH, FN_GERMAN_HRE, FN_ITALIAN, FN_SPANISH, FN_ARAGONESE, FN_SICILIAN }"
You have to add FN_DANISH there, like this:
"{ FN_ENGLISH, FN_FRENCH, FN_GERMAN_HRE, FN_ITALIAN, FN_SPANISH, FN_ARAGONESE, FN_SICILIAN, FN_DANISH }"
The first question gives an entirely different answer. The question was how to add muslim factions, not muslim agents.
The second question is incomplete, as even if you build a chapter house, you will be unable to build Crusades, and thus the Crusade-specific units will be unavailable. Set both the units and the crusade in the unit_prod file to include the new faction.

Kekvit Irae
06-22-2004, 11:22
Quote[/b] (Myrddraal @ June 21 2004,10:28)]Q: I have made a new faction, but the royal unit appears as Highland Clansmen
In the Gnome editor there is a column which designates which units become bodyguards. I'm not sure which one it is, but the easy way would be to scroll down the list and look for Royal Bodyguards or Ghulam Bodyguards and scroll along till u see a column where there is a whole list of factions in those columns. Add your faction to that list.
Info needs to be added:
Column 49 in the unit_prod file designates which faction the the unit is going to be the royal bodyguard for. If none is specified, the royal bodyguard becomes the first unit in the entire list (Highland Clansmen by default).

Myrddraal
06-22-2004, 12:33
Thx kekvitirae, I've corrected the princesses typo, and ur explanations for the others have been added to the existing ones.

tombom
06-22-2004, 21:02
Q: I have added a new faction, and have made a unit faction specific in the unitprod.txt, but when I run the game a message appears saying "FN_FREE21 is not a valid faction".

You need to add DeclareFaction: lines to each campaign file that use that unit_prod.

Kekvit Irae
06-23-2004, 02:45
Quote[/b] ]Q: Some factions cannot crusade, like the danes, how can I make this availiable?
Using Gnome Editor (preferably) open crusader_build_prod13.txt file.
In column 20, in a space for a CHAPTER_HOUSE (line 31) there is:
"{ FN_ENGLISH, FN_FRENCH, FN_GERMAN_HRE, FN_ITALIAN, FN_SPANISH, FN_ARAGONESE, FN_SICILIAN }"
You have to add FN_DANISH there, like this:
"{ FN_ENGLISH, FN_FRENCH, FN_GERMAN_HRE, FN_ITALIAN, FN_SPANISH, FN_ARAGONESE, FN_SICILIAN, FN_DANISH }"


Quote[/b] ] The second question is incomplete, as even if you build a chapter house, you will be unable to build Crusades, and thus the Crusade-specific units will be unavailable. Set both the units and the crusade in the unit_prod file to include the new faction.


Quote[/b] ]Thx kekvitirae, I've corrected the princesses typo, and ur explanations for the others have been added to the existing ones.

Doesnt look like it :P

Myrddraal
06-23-2004, 08:20
http://www.totalwar.org/forum/non-cgi/emoticons/gc-oops.gif , I updated them all cept that one. I'll do it now

tombom I have added ur question. And I have added another solution to the answer.

Or I will have done in a couple of minutes