Skip to content

Rename window showing wrong name. #17

@MarcT

Description

@MarcT

You have to come with me on this one, because this requires the user to not understand what he has done wrong.

  1. Create a new YMT. It will be mp_m_freemode_01, and call it test
    image
  2. Save it, it will be called mp_m_freemode_01_test.ymt
  3. Rename it to mp_m_freemode_01_test_02. This is where the user is confused. They rename it from test.
    image
    To mp_m_freemode_01_test_02 and do not pay attention to the fact that they are doing something wrong.
    image
    Notice the new full YMT name correctly tells them it is mp_m_freemode_01_mp_m_freemode_01_test_02, but they ignore that....
  4. Save it again. Notice that it wants to save as mp_m_freemode_01_mp_m_freemode_01_test_02.ymt, but the user thinks, that's not right, and saves it as mp_m_freemode_01_test_02.ymt. Come with me on this please.
  5. Re-open the same mp_m_freemode_01_test_02.ymt you just saved.
  6. Go to the rename window and you will see the new YMT name as mp_m_freemode_01_test_02, but you will also see the new full YMT name as mp_m_freemode_01_test_02 as well.
    image
    It is not until you save the XML and look at the "CPedVariationInfo name" line that you see the error.

This is the issue that happened with Sanriku today. Because his "CPedVariationInfo name" was mp_f_freemode_01_mp_f_terp1, fiveM was expecting his clothing to be named mp_f_freemode_01_mp_f_freemode_01_mp_f_terp1.

This was a user error, but there is a strange edge case on the rename window.

Interestingly when you realize the issue and change the YMT name to test_02 per my example above, it now gets confused.
image
And when you attempt to resave the YMT it runs with this same confusion and assumes the name should be test_02.ymt
You have to force it to be named mp_m_freemode_01_test_02.ymt for it to finally fix itself. Again, this is what I had to do to fix Sanriku's issue today.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions