You must be logged in to post messages.
Please login or register

Game Modification & Editor Discussion

Hop to:    
Welcome! You are not logged in. Please Login or Register.8 replies
Total War Heaven » Forums » Game Modification & Editor Discussion » [M2TW] Problem after problem. My VERY simple mod won't load.
Bottom
Topic Subject:[M2TW] Problem after problem. My VERY simple mod won't load.
Guy_Who_Tries
Legionary
posted 27 August 2010 09:50 EDT (US)         
I can't believe that I'm having to ask for help a second time in two days!

I've whittled the problem down to the preferences.cfg file. It appears that when I add the lines:-

[io]
file_first = true

the game crashes right at the start, before the designer logo's ect.

(Extra Info)
If I make the file read only, the game creates a new preferences cfg file and ignores the original.

BTW, my file is called medieval2.preference.cgf
Is this okay? I did try renaming it to just preferences but it wrote a new file again.

Thanks in advance for any help,

Guy_Who_Tries (repeatedly)

Oh! yeah, having the original file as read only without the [io] file_first = true bit doesn't affect the load but my mod doesn't work.

Seriously people, I'm only increasing the number of men in one unit!

[This message has been edited by Guy_Who_Tries (edited 08-29-2010 @ 11:53 AM).]

AuthorReplies:
Mythic_Commodore
Ministerialis
posted 27 August 2010 11:49 EDT (US)     1 / 8       
the game crashes right at the start, before the designer logo's ect.
What that means is that one of the files that the game is loading is causing a crash. Did you delete the descr_geography_new.txt and descr_geography_new.db files? Also, when you save the preferences file as read-only, what name are you saving it under? The proper name is medieval2.preference.cfg My final question is, what code did you edit?

Cyclohexane - it's what's for dinner!
Guy_Who_Tries
Legionary
posted 27 August 2010 12:10 EDT (US)     2 / 8       
yes, I have deleted both of those files.
I'm saving it under *medieval2.preference.cfg* so that should be right.
And the code that I edited was in *export_descr_unit.txt* and the code I edited was just (the Italic and Underlined text):-

type Armored Swordsmen
dictionary Armored_Swordsmen ; Armoured Swordsmen
category infantry
class heavy
voice_type Heavy
banner faction main_infantry
banner holy crusade
soldier Armored_Swordsmen, 100, 0, 1.2
attributes sea_faring, hide_forest, hardy, can_withdraw
formation 1.2, 1.2, 2.4, 2.4, 4, square
stat_health 1, 0
stat_pri 13, 3, no, 0, 0, melee, melee_blade, piercing, sword, 25, 1
;stat_pri_ex 0, 0, 0
stat_pri_attr no
stat_sec 0, 0, no, 0, 0, no, melee_simple, blunt, none, 25, 1
;stat_sec_ex 0, 0, 0
stat_sec_attr no
stat_pri_armour 8, 8, 6, metal
;stat_armour_ex 8, 9, 0, 0, 8, 6, 6, metal
stat_sec_armour 0, 0, flesh
stat_heat 6
stat_ground 1, -2, 3, 2
stat_mental 9, normal, trained
stat_charge_dist 30
stat_fire_delay 0
stat_food 60, 300
stat_cost 1, 610, 150, 90, 70, 610, 4, 150
armour_ug_levels 4, 5
armour_ug_models Armored_Swordsmen, Armored_Swordsmen_ug1
ownership england, slave
era 1 england
era 2 england
;unit_info 13, 0, 22


That's it. I just wanted to change the number of men in the unit to see if It'd work. Then I was going to move on to more complex modding.

Cheers for helping (again)

Guy_Who_Tries
Mythic_Commodore
Ministerialis
posted 27 August 2010 12:58 EDT (US)     3 / 8       
If you made these changes after reading the guide on our website, then you have my apologies as its writer, as this one's my fault. I did some tests and it appears that the 100-soldier limit, which I tested successfully two years ago, only applies to the Kingdoms expansion (which was where I did my tests earlier). If you are playing standard Medieval II, then the unit limit is 60. I'll update the guide to reflect that. Change the number to 60 and it should work

Cyclohexane - it's what's for dinner!

[This message has been edited by Mythic_Commodore (edited 08-27-2010 @ 12:58 PM).]

Guy_Who_Tries
Legionary
posted 27 August 2010 13:15 EDT (US)     4 / 8       
It works. You always seem to get it right first time! Thanks for that! oh, and don't worry about the wrong unit capacity, you've still written a brilliant guide (that I couldn't have done without). And finally I've used my units in battle! (We lost...typical) And so I'm going to spend a bit more time editing. Thanks so much for your help.

Guy_Who_Tries
Terikel Grayhair
Imperator
(id: Terikel706)
posted 27 August 2010 14:58 EDT (US)     5 / 8       
Try learning some tactics, too, while you are at it. They help tons with gaining victories!

|||||||||||||||| A transplanted Viking, born a millennium too late. |||||||||||||||||
|||||||||||||||| Too many Awards to list in Signature, sorry lords...|||||||||||||||||
|||||||||||||||| Listed on my page for your convenience and envy.|||||||||||||||||
Somewhere over the EXCO Rainbow
Master Skald, Order of the Silver Quill, Guild of the Skalds
Champion of the Sepia Joust- Joust I, II, IV, VI, VII, VIII
Guy_Who_Tries
Legionary
posted 29 August 2010 11:50 EDT (US)     6 / 8       
I will, thanks. I don't suppose there's any tactics walkthroughs are there? Thanks.

It's okay, I found them!

[This message has been edited by Guy_Who_Tries (edited 08-29-2010 @ 12:13 PM).]

GodnessOriginal
Legionary
posted 30 August 2020 11:15 EDT (US)     7 / 8       
Sorry, i know it's a very very old post, but the same exact issue is happening to me. I edited a bunch of Vikings Raiders to have: a bit more strenght, 20 men in the unit, an armor piercing. Then added the:
[io]
file_first = true
to the medieval2.preference.cfg and set it as "Read only".

I have the Steam Definitive Edition of Total War: Medieval 2.
I was able to use the unpack_all_bat file fine thanks to the copy all the .dll files on in the unpacker folder.

I have a Windows 10 x64 on this PC but i also have it on a Windows 8.1 x64.

By any chance do you have any solutions?
Terikel Grayhair
Imperator
(id: Terikel706)
posted 31 August 2020 12:34 EDT (US)     8 / 8       
Based on what I read above, I'd like to know what is the standard number of fellows in a unit in your version of the game.

Steam versions are different than CD versions, namely.

Are you tweaking the .cfg file as well, or just the unit files?

|||||||||||||||| A transplanted Viking, born a millennium too late. |||||||||||||||||
|||||||||||||||| Too many Awards to list in Signature, sorry lords...|||||||||||||||||
|||||||||||||||| Listed on my page for your convenience and envy.|||||||||||||||||
Somewhere over the EXCO Rainbow
Master Skald, Order of the Silver Quill, Guild of the Skalds
Champion of the Sepia Joust- Joust I, II, IV, VI, VII, VIII
You must be logged in to post messages.
Please login or register

Hop to:    

Total War Heaven | HeavenGames