PDA

View Full Version : Adding & Editing Battlemap Models



Lord Adherbal
10-31-2005, 09:57
I'm doing this tutorial because khelvan requested it. I don't have the time to make this very detailed, so I'll stick to the basic outlines.

STEP 1
create the 3D model in max. It is best to import an item file first so you know what scale to work on. Also, when making new walls you have to import the original walls because you cannot change wall heights or dimensions (atleast not until the guys from Zhanghuo TW finally release their tool to the public...)

STEP 2
export the model(s) in cas format (not item). Put them in the data/models_building folder

STEP 3
run the db editor (http://www.totalwar.org/Downloads/Rtw_Uploads/RTWupload/bak-jun-2005/dbedit_v2.zip). I'm not going in detail on how to use this. What you have to do is add a new model entry (or overwrite an existing one), setting your new 3D models in the LOD slots. The values in the boxes next to the LOD slots have to be a sequence of the values "0.00 10.96". The last values in this sequence are the LOD distance values. For example of you have 3 LOD models it will be:
0.00 10.96 0.00
10.96 0.00 10.96 <= repeating sequence
100.00 500.00 4000.00 <= last 3 values are LOD distances

EDIT: this step is now outdated, use Alpaca's method (https://forums.totalwar.org/vb/showthread.php?t=60818) instead

STEP 4
define your new item entry in one of the files in data\descr_building_battle (or create a new file, but then it must first be included in data\descr_building_battle.txt).

STEP 5
use your new item entry in a settlement plan. As soon as you start a game using this plan the game will create an item file from the cas LOD levels (which then become obsolete).

NOTE: changing physical dimensions of battlemap models is not yet possible. A modeller from the Zhanghuo mod is working on a tool for this (and might already have completed it) but so far he refused to release this tool until they have completed their mod. Let's be happy people like Vercingetorix do not behave like this or the only RTW mods we'd have by now would be edited skins.

Nero
04-05-2006, 20:48
Could you clarify how I export a model as .cas when I start with a .item file? I've been editing an existing building model, but it keeps moaning about bones. I even added some bones, linked them etc, but still it doesn't work as expected. Just can't export.

'Mesh xx must have a bone as its parent'

Maybe I'm just too noobish at modelling :P

MaNNyRoCKS
04-08-2006, 03:12
:help: :help: dude help me out im a noob but when i try to export it it says "cannot export without the scene root. verify it exists

mac89
04-09-2006, 00:08
Hey Manny, buildings dont require a sceneroot so how is it possible?!
What model are you exporting?
I doubt he will reply since that post is from 10-31-2005.
You might wanna post http://www.twcenter.net/forums/forumdisplay.php?f=22

MaNNyRoCKS
04-09-2006, 23:41
:laugh4: ohh hey mac i got that covered.. and thanks

Lord Adherbal
04-29-2006, 19:09
models DO require a sceneroot bone. All meshes need to be linked to it. After that you can export.

if you import an item file the root bone should be present IIRC. You just need to ungroup the building so you can edit/delete the different LOD models.

does that solve your problems ?

Lord Adherbal
04-30-2006, 16:55
note that STEP 3 is now outdated. You should use the method described by Alpaca (https://forums.totalwar.org/vb/showthread.php?t=60818).