Exporting a custom garrisonable building model for Empire, Napolen and Shogun
Exporting a custom building model to TED and Shogun2
If everything was correct, you now should be able to place your custom building in TED:
Edit 1:
If you want to make a wall/fence "vaultable" (=soldiers can jump over it), you have to name the spline "piece01_destruct01_vwall" instead of "piece01_destruct01_hard".
In PFM you have to use the building class "vaultable wall"
Edit 2: You are now able to create new garrisonable buildings for Empire, Napoleon and Shogun 2!
Last edited by Primergy; May 15, 2014 at 11:00 AM.
In theory yes - but I'm not sure if it's enough to change it in the db tables to a vaultable wall, or if you also have to do a bit of hex editing with the .cs2.parsed file of the zen wall.
Re: Exporting a custom garrisonable building model for Empire, Napolen and Shogun
There are two ways - you can add cannons similar to how it's done for "bow towers" and the "star forts". In 3ds max place a helper object (those green cubes) there where you want the arrows/shells/etc. coming out, naming it "arrow01" (or so), and then exporting it together with the other building objects. You can find out the real naming by examining the bow tower with a hex editor. Problem is, it shoots 360 degrees. Maybe you can stop this 360° firing by using the terrain to block shots.
The second way (= coastal gun batteries) is more complicated. Taw made a converter for the model_building_db file. This enabled me to extract the EF Lines code for the coastal batteries, but I didn't managed it to create a working custom battery.
Re: Exporting a custom garrisonable building model for Empire, Napolen and Shogun
Hmm. It looks like that your models were converted correctly but it fails with adding it to a pack file. Could you show us your BoB-Settings? Btw, the orange errors are normaly not critical, was there another error in red?
Re: Exporting a custom garrisonable building model for Empire, Napolen and Shogun
Actually there is a red error. I tried to do the same and found the same problem. The user LawAbidingGypsy had a red error (same as I), which is the selected one.
In fact, the step in BoB that shows a red error is when gettint the DB models_building_tables
However, I don't know where I can see BoB settings, so that I can send it to you.
Re: Exporting a custom garrisonable building model for Empire, Napolen and Shogun
Originally Posted by Primergy
There are two ways - you can add cannons similar to how it's done for "bow towers" and the "star forts". In 3ds max place a helper object (those green cubes) there where you want the arrows/shells/etc. coming out, naming it "arrow01" (or so), and then exporting it together with the other building objects. You can find out the real naming by examining the bow tower with a hex editor. Problem is, it shoots 360 degrees. Maybe you can stop this 360° firing by using the terrain to block shots.
The second way (= coastal gun batteries) is more complicated. Taw made a converter for the model_building_db file. This enabled me to extract the EF Lines code for the coastal batteries, but I didn't managed it to create a working custom battery.
The emitter doesn't work. Isn't there any special thing i need to do to make it work?
Re: Exporting a custom garrisonable building model for Empire, Napolen and Shogun
Originally Posted by Primergy
If i remember it correctly, i also had to add a projectile in some building-related DB table.
Besides that the usual stuff applies - correct naming, selecting it when exporting
Yeah sorry, i already figured things out. Sadly the gun placement system like etw/ntw doesn't work anymore in shogun 2 (fots). This is due that the EFLine system in Shogun 2 is different than in previous games. I could still add a gun trough the cannon placement (meta) data. But units do not use it. But i figured out how to use emitters using different projectiles. Btw, emitters can fire only 180 degrees firing line. Except the vanilla projectile that was specially made for towers (or walls). I guess it has to do with the battle entity. Building forts like etw/ntw for Fots currently.
Re: Exporting a custom garrisonable building model for Empire, Napolen and Shogun
Hi all, sorry for the late reply, I do believe it was due to a problem with the file path. I'm sure it's been brought up before, but if you have your mod tools in the regular steamapps/common/shogun2 filepath, the directory is too long and it messes with the functionality of the mod tools, especially BOB and subsequently MMS.
By changing my mod tools location to :c/Mod tools (creating a new file in local disk) the problem was solved instantly