Jump to content

How to import a DBC file into FM 2020 Editor?


Shenmue-X
 Share

Recommended Posts

Hi,

I''m trying to import a dbc file from FM 2016 editor to the FM 2020 one but the latter says it failed to load.

 

EDIT: Resolved: When exporting a file from the old FM editor, uncheck "compress editor data files" in the editor settings. Then import the xml file in the newer FM editor.

Edited by Shenmue-X
Link to post
Share on other sites

3 hours ago, Kodiak said:

At fm2016 editor export file as xml file.

Load xml file at fm2020 editor

I didn't find any option to select the save type in 2016.

If I write myself .xml in the file name, the editor still saves as a .dbc file.

If I change the extension myself in Windows Explorer, FM20 Editor spots line errors and can't load.

Edited by Shenmue-X
Link to post
Share on other sites

1 hour ago, Shenmue-X said:

I didn't find any option to select the save type in 2016.

If I write myself .xml in the file name, the editor still saves as a .dbc file.

If I change the extension myself in Windows Explorer, FM20 Editor spots line errors and can't load.

You need to export the file rather than save it. Then you can import the xml into the FM20 editor.

Link to post
Share on other sites

12 minutes ago, Unknown Hacker said:

Can you not import a dbc file into FM20?

Also, I've not used the FM16 Editor for a while but there may be an option in the settings to compress files. Make sure that that is not ticked.

Working. You're my hero!

Export a file without compression leads to generating a xml file instead of a dbc file.

You saved me from months of reworking, although I now need to update myself the birthdate of my players. If you have any tip, do not hesitate.

Link to post
Share on other sites

2 hours ago, Unknown Hacker said:

No worries, glad it worked for you.

As for updating the DoBs manually, perhaps it might be better to do this directly in the XML? I'd definitely make a backup first of course.

 

22 minutes ago, Wolf_pd said:

A search and replace (if possible) in the XML makes more sense yes.

The code is very cryptic for me. I know that each player has an unique ID but I can't figure what is supposed to be the birthday.

Do you know some user guide about xml code by any chance?

Link to post
Share on other sites

From what I read in my XML file, it's unclear whether the data is gathered per ID object or chronologically per user changes. It's like the data per player was sporadically written.

I think I will stick with the FM Editor. I'm going to make a UI script which is juggling FM Editor and Excel. Should not be complicated to design but is still a relatively heavy solution as the FM editor UI is slow after a lot of data has been loaded.

Link to post
Share on other sites

1 hour ago, Wolf_pd said:

Can you post the XML? Maybe I can point you in a good direction.

Thank you. It's an editor data file exclusively focused on creating new players. 

fmf version (from 2016 editor) : http://www.mediafire.com/file/47zg0sla4qyuzkh/file

xml version (100 mb): http://www.mediafire.com/file/epof5lea0dv3zk6/file

Here a sample of the xml file. I believe it's a loop code but it looks too short to gather all the player information I entered. Here, the player is supposed to be "Stuart Chisholm".

Quote

<record>
            <integer id="database_table_type" value="1"/>
            <large id="db_unique_id" value="3390763096881521646"/>
            <unsigned id="property" value="1348890209"/>
            <string id="new_value" value="Stuart"/>
            <integer id="version" value="2278"/>
            <integer id="db_random_id" value="429957082"/>
            <string id="odvl" value=""/>
        </record>
        <record>
            <integer id="database_table_type" value="1"/>
            <large id="db_unique_id" value="3390763096881521646"/>
            <unsigned id="property" value="1349742177"/>
            <string id="new_value" value="Chisholm"/>
            <integer id="version" value="2278"/>
            <integer id="db_random_id" value="521529947"/>
            <string id="odvl" value=""/>
        </record>
        <record>
            <integer id="database_table_type" value="1"/>
            <large id="db_unique_id" value="3390763096881521646"/>
            <unsigned id="property" value="1348690537"/>
            <record id="new_value">
                <integer id="city" value="5202291"/>
            </record>
            <integer id="version" value="2278"/>
            <integer id="db_random_id" value="750600493"/>
            <null id="odvl"/>
        </record>
        <record>
            <integer id="database_table_type" value="1"/>
            <large id="db_unique_id" value="3390763096881521646"/>
            <unsigned id="property" value="1348757102"/>
            <boolean id="new_value" value="true"/>
            <integer id="version" value="2278"/>
            <integer id="db_random_id" value="858479132"/>
            <boolean id="odvl" value="false"/>
        </record>
        <record>
            <integer id="database_table_type" value="1"/>
            <large id="db_unique_id" value="3390763096881521646"/>
            <unsigned id="property" value="1349018995"/>
            <integer id="new_value" value="176"/>
            <integer id="version" value="2278"/>
            <integer id="db_random_id" value="639455523"/>
            <integer id="odvl" value="0"/>
        </record>
        <record>
            <integer id="database_table_type" value="1"/>
            <large id="db_unique_id" value="3390763096881521646"/>
            <unsigned id="property" value="1350002035"/>
            <integer id="new_value" value="72"/>
            <integer id="version" value="2278"/>
            <integer id="db_random_id" value="867354791"/>
            <integer id="odvl" value="0"/>
        </record>
        <record>
            <integer id="database_table_type" value="1"/>
            <large id="db_unique_id" value="3390763096881521646"/>
            <unsigned id="property" value="1348695145"/>
            <record id="new_value">
                <integer id="Ttea" value="680"/>
            </record>
            <integer id="version" value="2278"/>
            <integer id="db_random_id" value="841690960"/>
            <null id="odvl"/>
        </record>
        <record>
            <integer id="database_table_type" value="55"/>
            <large id="db_unique_id" value="-1"/>
            <unsigned id="property" value="1094992978"/>
            <record id="new_value">
                <integer id="database_table_type" value="1"/>
                <unsigned id="dcty" value="2"/>
                <large id="db_unique_id" value="3824420430020633583"/>
                <integer id="nwui" value="1394631657"/>
            </record>
            <integer id="version" value="2278"/>
            <integer id="db_random_id" value="628642152"/>
            <boolean id="is_client_field" value="true"/>
        </record>

 

Edited by Shenmue-X
Link to post
Share on other sites

I know, that's why I said information I entered. But I still can't find the specific information I want.

If I search an ID player in the file, the information around the ID is incomplete as you can see in my quote.

So It leads me to search other mentions of the ID player to get the missing data. Problem, this was the only one occurrence of the ID in the whole file.

Whether the file architecture is some kind of mess or there is another specific ID per person I don't know.

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...