Total War: MEDIEVAL II - Definitive Edition

Total War: MEDIEVAL II - Definitive Edition

Convert City to Castle Mod
Hello. i'm currently making a mod that allows me to convert High leveled City into Castle, but i realize there is so many need to change because i'm making a new entry for the building, such as textures and building description and any other related files. the problem is i can't seem to find those related file anywhere. any help would be appreciated
Originally posted by Gigantus:
You need to add the additional levels to the top of the relevant EDB entry as well - plus entries in the data\export_buildings file. The building icons will be displayed as default, wouldn't worry about it at this stage.

The settlement_mechanics defines the min and max population required for converting the various settlement levels - which means an entry in there will be required.

That said I doubt you will succeed even with all files in place: if memory serves the conversion 'levels' are one of the hard coded features.

The texture files (most likely you meant the above building icons instead) are linked from within the model files, that's when you go really deep into the rabbit hole - here is a link to a forum dedicated to that: http://www.twcenter.net/forums/forumdisplay.php?2047

They should also be able to tell you if it is possible to do what you you are trying to achieve.
< >
Showing 1-9 of 9 comments
Cult of Tzeentch Oct 28, 2019 @ 10:40pm 
the part of the new entry i made is looks like this, in case it helps to understand what i mean :

large_stone_wall_to_fortress city requires factions { denmark, hre, scotland, france, england, mesoamerican, middle_eastern, eastern_european, greek, southern_european, }
{
capability
{
}
material wooden
construction 2
cost 3200
settlement_min city
upgrades
{
huge_stone_wall_to_citadel
}
}
huge_stone_wall_to_citadel city requires factions { denmark, hre, scotland, france, england, mesoamerican, middle_eastern, eastern_european, greek, southern_european, }
{
capability
{
}
material wooden
construction 2
cost 3200
settlement_min large_city
upgrades
{
}
}

EDIT : by adding these lines below convertion part of Export_desc_buildings.txt only results on exiting the game after a brief loading screen
Last edited by Cult of Tzeentch; Oct 28, 2019 @ 10:42pm
Inardesco Oct 29, 2019 @ 10:20am 
Y dont you just edit the existing conversion?
Cult of Tzeentch Oct 29, 2019 @ 11:21am 
no, the above line is the new entry, i added it myself precisely below large town to castle conversion. editin the existing lines also doesn't seem to work, changed the value convert to 0 - 2 and nothing's changed. anyway i already bypass the loading screen but in the game it's just doesn't work.

http://www.twcenter.net/forums/showthread.php?77459-Converting-Huge-Cities-to-Castles

i found this guide in the forum and experience the similar problem. the convert to castle option only show barracks picture in RTW and simply does nothing when constructed. no conversion.

anyway, i also found you're commenting on older threads about changing some value in settlement_mechanic.xml, i already take a look at those but i don't think it has something to do with conversion.

so, is it iterally hardcoded or such and impossible to do so ?
Inardesco Oct 29, 2019 @ 11:27am 
Thats because the settlement_mechanics.xml have nothing to do with buildings...

You basically have to create a new building from the ground up.
Cult of Tzeentch Oct 29, 2019 @ 9:48pm 
i see. but there seems to be no txt file that define building such as texture file location of a building and variablsles. i already search in data/ui folder and the building texture files are located in this directory, but there is no txt or xml file mentioned this textures in the file content when i search.
The author of this thread has indicated that this post answers the original topic.
Gigantus Oct 30, 2019 @ 6:44pm 
You need to add the additional levels to the top of the relevant EDB entry as well - plus entries in the data\export_buildings file. The building icons will be displayed as default, wouldn't worry about it at this stage.

The settlement_mechanics defines the min and max population required for converting the various settlement levels - which means an entry in there will be required.

That said I doubt you will succeed even with all files in place: if memory serves the conversion 'levels' are one of the hard coded features.

The texture files (most likely you meant the above building icons instead) are linked from within the model files, that's when you go really deep into the rabbit hole - here is a link to a forum dedicated to that: http://www.twcenter.net/forums/forumdisplay.php?2047

They should also be able to tell you if it is possible to do what you you are trying to achieve.
Last edited by Gigantus; Oct 30, 2019 @ 6:50pm
Cult of Tzeentch Oct 30, 2019 @ 7:24pm 
i did make a new entry on edb where the convert settlement part is written and export_buildings in data/text folder, but still the converting process doesn't do anything.

i don't know if the population value also affect the converting process, thought it was just for upgrading... will check that out again then.

thanks for the link, just looked at it and maybe i can find what i needed there.
Cult of Tzeentch Oct 31, 2019 @ 7:36pm 
okay, i would like to confirm that making city, large city, and huge city to convert into castle is impossible as it is a hardcoded features, as many been said in the forums too. been looking for many threads in the forum and steam discussion with "convert_to_castle" keywords and no one seems to make this one succesfully.

however, it is possible to make some castle building, such as archery range, available to build in city by adding some lines from castle building into city building lines, or simply made castle units available in city barracks or city walls... but i'd rather keep it as it is as i want it to be more buildings and units specific.

anyway, i'd like to say thank you for the reply, that now i'm glad to know and had a clear answer
Gigantus Oct 31, 2019 @ 8:48pm 
You are welcome.

In the EDB line you can have 'city' and 'castle' - thus restricting the building to the relevant type of settlement. Omitting an entry all together enables building in both settlement types.

Unless there is a convert_to provision for the building, like for barracks, then the building will be destroyed on conversion of the settlement if it has the city\castle entry.
< >
Showing 1-9 of 9 comments
Per page: 1530 50

Date Posted: Oct 28, 2019 @ 10:38pm
Posts: 9