Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Renaming the Database

Discussion in 'Game Foundation' started by satchell, Jan 21, 2020.

  1. satchell

    satchell

    Joined:
    Jul 2, 2014
    Posts:
    107
    Edit: Sorry, I meant _Catalog_Inventories not Categories

    Unity 2019.3.0f5 Game Foundation preview 3 -0.2.0
    After creating the GameFoundationDatabase and inputting some data points I renamed the database to MyDatabase. That caused the _Catalog_Categories to be renamed to GameFoundationDatabase. After changing the database name back to GameFoundationDatabase categories was renamed again to MyDatabase, essentially taking the previous name of the main database. Something else to note when I was changing the database name with variations, using _Catalog_Categories to correct the first issue didn't work it only changes _Catalog_Stats to the previous database name. Then would return to _Catalog_Stats when the name is changed to not reflect _Catalog_...

    Is this a bug? Should I avoid renaming the Database?

    Thank you,

    DBase.PNG
     
    Last edited: Jan 21, 2020
  2. richj_unity

    richj_unity

    Unity Technologies

    Joined:
    Sep 23, 2019
    Posts:
    40
    Thanks for reporting this, it seems like a confusing issue. How exactly did you rename the database file? From within the Project window, or from the OS file browser (outside of Unity)?
     
    satchell likes this.
  3. satchell

    satchell

    Joined:
    Jul 2, 2014
    Posts:
    107
    Hello, sorry for the confusion. So if I create a 'new' database from the Create dialog menu and rename it the tables aren't renamed. Renaming the GameFoundationDatabase that is provided from the Package Manager install has the issues.

    I should have edited my original post with "Create a new database don't rename the GameFoundationDatabase".

    Thanks @richj_unity
     
  4. erika_d

    erika_d

    Unity Technologies

    Joined:
    Jan 20, 2016
    Posts:
    413
    Hi @satchell

    We're still having a little trouble reproducing this. Could you walk us through what you're doing with very explicit steps to reproduce? (Is it only on a brand new install of game foundation from pacman? Are you right-clicking on the database and clicking rename? Or double clicking it? Or editing the asset file directly? for example)

    Also we just released a new version, and I believe this version shouldn't include a GameFoundationDatabase with Package Manager (it gets created the first time you open a GameFoundation editor window instead). Can you check whether maybe that solves the problem? And maybe check whether you experience the same issue in a clean, blank project with only game foundation installed?

    Some things to note about the way the database generation works: If the GameFoundationDatabaseSettings file (previously just called GameFoundationSettings) has a reference to a database object and then that database object gets renamed, the reference should remain linking it, and only the database (not any of the catalogs inside it) should be renamed. If the GameFoundationDatabaseSettings file doesn't have a reference to the database object, then the database is renamed, then a game foundation editor window is opened, a brand new Database object will be created and referenced by the settings file.

    Since none of that is supposed to rename any catalogs within the database, we definitely want to try to reproduce this issue to figure out what's going on! Thanks again.
     
    satchell likes this.
  5. satchell

    satchell

    Joined:
    Jul 2, 2014
    Posts:
    107
    Hi @erika_d, The steps to reproduce and video demonstrating the catalog rename bug.
    1. create a new project using Unity 2019.3.2f1
    2. From the pacman add Game Foundation preview.5 - 0.3.0
    3. Locate the GameFoundationDatabase and rename it via double click


    Thanks-

    Edit: When I check the settings file's Database Field it will only accept the Catalog named ...Database or a created from the dialog menu database properly renamed.
     
    Last edited: Feb 22, 2020
    erika_d and mingz-unity like this.
  6. erika_d

    erika_d

    Unity Technologies

    Joined:
    Jan 20, 2016
    Posts:
    413
    Hi @satchell,

    That's so weird! Thanks so much for the very helpful video and, again, for reporting the issue. We'll take a look at it!
     
    satchell and mingz-unity like this.
  7. richj_unity

    richj_unity

    Unity Technologies

    Joined:
    Sep 23, 2019
    Posts:
    40
    satchell and erika_d like this.