Matrix Games Forums

Forums  Register  Login  Photo Gallery  Member List  Search  Calendars  FAQ 

My Profile  Inbox  Address Book  My Subscription  My Forums  Log Out

How To Create A New Editable Database

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
  Printable Version
All Forums >> [New Releases from Matrix Games] >> Armored Brigade >> MODS and Scenarios >> How To Create A New Editable Database Page: [1]
Login
Message << Older Topic   Newer Topic >>
How To Create A New Editable Database - 11/23/2018 3:15:13 PM   
Veitikka


Posts: 1304
Joined: 6/25/2007
From: Finland
Status: offline
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.


< Message edited by Veitikka -- 11/5/2019 3:03:56 AM >


_____________________________

Know thyself!
Post #: 1
RE: How To Create A New Editable Database - 11/23/2018 5:24:00 PM   
Issue8


Posts: 129
Joined: 12/15/2013
Status: offline
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.





Attachment (1)

(in reply to Veitikka)
Post #: 2
RE: How To Create A New Editable Database - 11/23/2018 5:24:42 PM   
Issue8


Posts: 129
Joined: 12/15/2013
Status: offline
Second, rename the folder to whatever name you want for you dataset.





Attachment (1)

(in reply to Issue8)
Post #: 3
RE: How To Create A New Editable Database - 11/23/2018 5:25:47 PM   
Issue8


Posts: 129
Joined: 12/15/2013
Status: offline
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.





Attachment (1)

(in reply to Issue8)
Post #: 4
RE: How To Create A New Editable Database - 11/23/2018 5:26:30 PM   
Issue8


Posts: 129
Joined: 12/15/2013
Status: offline
name the mod in this line





Attachment (1)

< Message edited by Issue8 -- 11/23/2018 5:27:53 PM >

(in reply to Issue8)
Post #: 5
RE: How To Create A New Editable Database - 11/23/2018 5:29:05 PM   
Issue8


Posts: 129
Joined: 12/15/2013
Status: offline
Then when you start the game, you can select your custom dataset!





Attachment (1)

(in reply to Issue8)
Post #: 6
RE: How To Create A New Editable Database - 11/23/2018 5:30:54 PM   
Issue8


Posts: 129
Joined: 12/15/2013
Status: offline
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

(in reply to Issue8)
Post #: 7
RE: How To Create A New Editable Database - 11/5/2019 3:08:10 AM   
Veitikka


Posts: 1304
Joined: 6/25/2007
From: Finland
Status: offline
In the first post, added the note about the database custom graphics folder that is supported in the latest builds of the game.


_____________________________

Know thyself!

(in reply to Issue8)
Post #: 8
RE: How To Create A New Editable Database - 3/27/2020 7:58:04 PM   
StevieLee

 

Posts: 13
Joined: 2/10/2020
Status: offline
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?

< Message edited by StevieLee -- 3/27/2020 8:17:24 PM >

(in reply to Veitikka)
Post #: 9
RE: How To Create A New Editable Database - 3/30/2020 9:54:05 AM   
Veitikka


Posts: 1304
Joined: 6/25/2007
From: Finland
Status: offline

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.


_____________________________

Know thyself!

(in reply to StevieLee)
Post #: 10
RE: How To Create A New Editable Database - 10/5/2020 9:00:57 PM   
zeeschuimer


Posts: 17
Joined: 6/7/2016
From: The Netherlands
Status: offline
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.

(in reply to Veitikka)
Post #: 11
RE: How To Create A New Editable Database - 4/24/2021 1:29:32 PM   
mmacguinness

 

Posts: 95
Joined: 2/3/2007
Status: offline
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?

(in reply to zeeschuimer)
Post #: 12
RE: How To Create A New Editable Database - 4/25/2021 9:21:15 AM   
Veitikka


Posts: 1304
Joined: 6/25/2007
From: Finland
Status: offline

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>


_____________________________

Know thyself!

(in reply to mmacguinness)
Post #: 13
RE: How To Create A New Editable Database - 4/25/2021 12:35:29 PM   
mmacguinness

 

Posts: 95
Joined: 2/3/2007
Status: offline
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.




Attachment (1)

(in reply to Veitikka)
Post #: 14
RE: How To Create A New Editable Database - 4/25/2021 2:35:31 PM   
mmacguinness

 

Posts: 95
Joined: 2/3/2007
Status: offline
OK. Working now.

(in reply to mmacguinness)
Post #: 15
Page:   [1]
All Forums >> [New Releases from Matrix Games] >> Armored Brigade >> MODS and Scenarios >> How To Create A New Editable Database Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts


Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI

2.813