QUESTION My SDK cannot load persistence. What should I do?

Discussion in 'Tracks' started by CHJ, Jul 25, 2022.

  1. CHJ

    CHJ New Member

    Joined:
    Jul 25, 2022
    Messages:
    7
    Likes Received:
    2
    Every time I set the material, click Save persistence, and then load persistence. I can't load it. Who knows, help me.
     
  2. CHJ

    CHJ New Member

    Joined:
    Jul 25, 2022
    Messages:
    7
    Likes Received:
    2
  3. fughettaboutit

    fughettaboutit aka leBluem

    Joined:
    Jul 21, 2014
    Messages:
    1,113
    Likes Received:
    378
    you dont understand this:

    When you do "Save persistence" then all changes you made to materials and objects will be saved.

    When you then do "Load persistence" , nothing will change, because you just saved just that.

    Its meant mostly for the next time you load the track or if you change the persistence file manually. Its just a text file, same name as your fbx, with "....fbx.ini" extension
     
  4. CHJ

    CHJ New Member

    Joined:
    Jul 25, 2022
    Messages:
    7
    Likes Received:
    2
    [​IMG]There is this file, but when I open the track and execute "load persistence", I cannot load the previously set material parameters.
     

    Attached Files:

  5. Johnr777

    Johnr777 Moderator

    Joined:
    Jul 26, 2017
    Messages:
    1,048
    Likes Received:
    613
    You dont "load persistance", it works automatically when you open the FBX
     
  6. CHJ

    CHJ New Member

    Joined:
    Jul 25, 2022
    Messages:
    7
    Likes Received:
    2
    But every time I open the FBX file, I have to reset the material parameters, which is a troublesome thing
     
  7. fughettaboutit

    fughettaboutit aka leBluem

    Joined:
    Jul 21, 2014
    Messages:
    1,113
    Likes Received:
    378
    Are all material names called like "FBX material..." ?

    Then this fbx has no materials assigned to objects/meshes!
     
  8. CHJ

    CHJ New Member

    Joined:
    Jul 25, 2022
    Messages:
    7
    Likes Received:
    2
    [​IMG]我的模型已分配材料并调整了材料参数
     

    Attached Files:

  9. John Harding

    John Harding Active Member

    Joined:
    Aug 5, 2021
    Messages:
    68
    Likes Received:
    127
    Do you have the images in a folder called 'texture'?
    The editor will only reload images to this path. If you open to the persistence file, you'll see there is no path specified, it's just the filename. If not, I think you'll have to post some files to see if we can recreate the issue.
     
  10. CHJ

    CHJ New Member

    Joined:
    Jul 25, 2022
    Messages:
    7
    Likes Received:
    2
    upload_2022-7-29_18-51-42.png My tracks can enter the game normally. " Texture'file contains maps
     
  11. AccAkut

    AccAkut Active Member

    Joined:
    Sep 4, 2017
    Messages:
    121
    Likes Received:
    104
    make sure you only use normal basic latin letters for the names of materials or objects in the fbx file. If you use special characters the persistence file will just stop being created the moment it comes to a name with those in it. Happened a lot to me with accidently use of ä, ö or ü.
     
    John Harding likes this.
  12. CHJ

    CHJ New Member

    Joined:
    Jul 25, 2022
    Messages:
    7
    Likes Received:
    2
    Thank you very much for this question. I found that one of my material names is Chinese.
     
    AccAkut and John Harding like this.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice