How To Create A New Editable Database (Full Version)

All Forums >> [New Releases from Matrix Games] >> Armored Brigade >> MODS and Scenarios



Message


Veitikka -> How To Create A New Editable Database (11/23/2018 3:15:13 PM)

This post has the instructions for setting up a new database that you can edit.

Open the game's data\database folder. There you'll find the 'default' folder, which is the official locked database. Make a copy of it. In the new folder, open the 'eras.xml' file. I recommend using an advanced text editor such as Notepad++ when you need to edit the files manually, so the file contents won't be messed up. In the .xml file, you see this line:

<string name="databaseID" value="default" />


You must put your database ID there. For example:

<string name="databaseID" value="myDatabase" />


After this, when you run the settings launcher, you now have your database selectable in the database dropdown menu. Select it, go to the in-game database editor, and the content is editable there!

NOTE: Now the database can have a 'graphics' folder that contains custom graphics files listed in the 'resources_custom.xml'. First the system looks for the sprite file in the database folder, and if it is not found then the file in the standard graphics folder is used instead.




Issue8 -> RE: How To Create A New Editable Database (11/23/2018 5:24:00 PM)

Modding Armored Brigade
First of all, the system needs to be understood: Armored Brigade ships with a default database system. This default system should not be edited. Someone wanting to modify the game needs to create his own custom database, whether it is for new sprites or to change the data to suit his own interests. With this system, he modify whatever he wants, and the original set is always available to restore the original.

First navigate to the data->database folder. In that folder is a 'default' folder, containing all the files for the default units and make a copy of it.


[image]local://upfiles/47125/71356C4FA0674E559F5E30D91547F9D2.jpg[/image]




Issue8 -> RE: How To Create A New Editable Database (11/23/2018 5:24:42 PM)

Second, rename the folder to whatever name you want for you dataset.


[image]local://upfiles/47125/8AF2E61EEF1441328CADD25923731C70.jpg[/image]




Issue8 -> RE: How To Create A New Editable Database (11/23/2018 5:25:47 PM)

Third, open your new dataset folder and find the 'eras.xml' file and open it in a text editor. Find the line at the top and rename from default to the name of your dataset.


[image]local://upfiles/47125/E4EF4B403A55472D8B55D4FC0936B929.jpg[/image]




Issue8 -> RE: How To Create A New Editable Database (11/23/2018 5:26:30 PM)

name the mod in this line


[image]local://upfiles/47125/DADE818C6FEB463791A9DA0569585686.jpg[/image]




Issue8 -> RE: How To Create A New Editable Database (11/23/2018 5:29:05 PM)

Then when you start the game, you can select your custom dataset!


[image]local://upfiles/47125/8C4F7B6BB23E4E37B144A020F7911D33.jpg[/image]




Issue8 -> RE: How To Create A New Editable Database (11/23/2018 5:30:54 PM)

Any changes you want to make can be made to the xml files in the new folder, and the original files will still exist as the default backups




Veitikka -> RE: How To Create A New Editable Database (11/5/2019 3:08:10 AM)

In the first post, added the note about the database custom graphics folder that is supported in the latest builds of the game.




StevieLee -> RE: How To Create A New Editable Database (3/27/2020 7:58:04 PM)

QUESTION: How about adding custom weapon sounds for a mod? I assume that I put the mywpn.wav file in Armored Brigade\data\database\MyProject\sound, then I put an entry for that resource in the resources custom.xml file, but I don't see any samples for the format. Obviously I know I can drop the file in the Armored Brigade\data\sound folder directly, but that isn't helpful if I want to share the finished mod on Steam. Can anyone help?




Veitikka -> RE: How To Create A New Editable Database (3/30/2020 9:54:05 AM)


quote:

ORIGINAL: StevieLee

QUESTION: How about adding custom weapon sounds for a mod? I assume that I put the mywpn.wav file in Armored Brigade\data\database\MyProject\sound, then I put an entry for that resource in the resources custom.xml file, but I don't see any samples for the format. Obviously I know I can drop the file in the Armored Brigade\data\sound folder directly, but that isn't helpful if I want to share the finished mod on Steam. Can anyone help?


We've used mono WAV files, but I'm sure our sound engine (FMOD) supports many other formats.

At the moment we don't support custom weapon sound files for Steam Workshop mods. I think the feature could be easy to add, similar to 'graphics' we have in the database folder.




zeeschuimer -> RE: How To Create A New Editable Database (10/5/2020 9:00:57 PM)

Works fine! I use the OOB's from 'Steel Panthers MBT' as reference. Many countries there with actually all info you need to make other NATO-countries.




mmacguinness -> RE: How To Create A New Editable Database (4/24/2021 1:29:32 PM)

I have added a database to add a faction.
I select the db in settings.
I can open the new db in Databae Editor and I can creat scenarios.
Excellent.

However....

I have been unable to load a flag for the new faction.
I have tried several methods.
In the data/graphics/flags folder:
I have copied and renamed an existing flag file, then edited it in GIMP and saved it. No Joy.
I created a new file in GIMP and saved it. No Joy
I created a new fuilr in Paint. No Joy.

How is it done?




Veitikka -> RE: How To Create A New Editable Database (4/25/2021 9:21:15 AM)


quote:

ORIGINAL: mmacguinness

I have added a database to add a faction.
I select the db in settings.
I can open the new db in Databae Editor and I can creat scenarios.
Excellent.

However....

I have been unable to load a flag for the new faction.
I have tried several methods.
In the data/graphics/flags folder:
I have copied and renamed an existing flag file, then edited it in GIMP and saved it. No Joy.
I created a new file in GIMP and saved it. No Joy
I created a new fuilr in Paint. No Joy.

How is it done?


You have to copy the flag image file to the 'graphics' folder in your new database folder (ideally create a 'flag' folder there) and then add the flag resource name to the resources_custom.xml. For example:

  <sprite name="flag_new" base_angle="0">
    <image file="flag\flag_new.png" />
    <translation origin="top_left"/>
    <rotation origin="top_left"/>
  </sprite>




mmacguinness -> RE: How To Create A New Editable Database (4/25/2021 12:35:29 PM)

OK, but..

In the first post above:

"NOTE: Now the database can have a 'graphics' folder that contains custom graphics files listed in the 'resources_custom.xml'. First the system looks for the sprite file in the database folder, and if it is not found then the file in the standard graphics folder is used instead. "

1. I understood this to mean that a graphics directory in the new db is optional. My new faction will not have any equipment that does not already exist in the AB database. So the only graphic I am adding is the flag, which I added to the original existing flag folder, i.e., the "standard graphics folder" as in the note above..

2. I put a new flag folder with a flag file in the new db folder(copy of Italy flag), and updated the resources_custom.xml file as you suggested. It is still not picking up the flag.

[image]local://upfiles/23918/1B797FEE7270459A9C2B28F32731A85A.jpg[/image]




mmacguinness -> RE: How To Create A New Editable Database (4/25/2021 2:35:31 PM)

OK. Working now.




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
7.53125