I Hate Data Structures in Unreal Engine ( and how to fix them )

Поделиться
HTML-код
  • Опубликовано: 4 окт 2024
  • Data structures in Unreal Engine have been broken and buggy for nearly 10 years. I'm done using them, and I show what I'm using instead of structures for my RPG/Souls-like inventory system.
    Check out my Unreal Engine marketplace assets:
    Physical Material Profiles - Footsteps and Impacts
    www.unrealengi...
    AI Jump Navigation Links
    www.unrealengi...
    Advanced Mobile Camera - Enhanced Input
    www.unrealengi...

Комментарии • 14

  • @Dahvidownz
    @Dahvidownz 5 дней назад +2

    If you save all then change the struct. Save only the struct asset. Close engine. DON'T save all changes. Reopen project and you shouldnt have issues

  • @blindphoenix
    @blindphoenix День назад

    I made a change to a struct, had errors, I ended up remaking the structure and redoing all references.
    Lessons learnt

    • @peanut_games
      @peanut_games  День назад

      9 years of this 💀
      source control is great but I'd rather it just not happen, even if I have to rework my systems

  • @MattemIgnorum
    @MattemIgnorum 5 дней назад

    I had NO idea that structs were so, like... Volatile? I'll be careful, considering I just implemented them into this thing I'm working on, houguh :O This is a good heads up!

    • @peanut_games
      @peanut_games  5 дней назад +1

      @@MattemIgnorum lmao yeah, it's funny in a ridiculous way how sensitive they are, and for so long. Basically you can't modify them at all once you start to reference them, and like the other comment says - if you really must then back it up first / use source control. I thought simply changing a default integer value would be okay but apparently not 😆

  • @ryanjdevlin87
    @ryanjdevlin87 14 часов назад

    To fix any of these struct errors I always backup the project before editing them. Then change the struct. rename the struct to whatever u want. fix up redirectors. rename the struct back to its original name. Fix up redirectors again and this should fix all cooking and build errors with structs. I dont think I ever had a decent size project compile first shot without renaming a struct or two really quick

    • @peanut_games
      @peanut_games  13 часов назад +1

      100%, I wish I could offer a solution to actually stabilize them. I've heard C++ structs are okay, even a long time ago, but that's a barrier for a lot of people. Maybe I'll make a video about that some time. I haven't had the time to get visual studio and blueprint to actually cooperate.

    • @ryanjdevlin87
      @ryanjdevlin87 12 часов назад

      @@peanut_games me neither man IDK how they do it but I've used Visual Studio for 15 years in other languages but with unreal no matter what I do I cant even get the third person template to compile without a ton of errors I've just gave up every time and stuck to blueprints. If it wasn't for all the compilation errors with visual studio I would probably have written almost everything in C++ for optimization but its just to big a headache. I've even spent money on plugins because I needed C++ functionality plenty of times lol :)

  • @LOL1423derp92
    @LOL1423derp92 5 дней назад

    the one thing that you need to understand about structures in unreal, is you try not to modify them. Figure out first what variables you need, then create the structure and dont mess with it. If you need to modify it, backup your project. Thats just how structures are.

    • @peanut_games
      @peanut_games  5 дней назад +1

      Believe me I knew this going into this project after it happened a million times in my game. Had everything set up for the last year but god forbid I changed an int thinking it'd be okay. But a huge point in my case is, this is an asset, I absolutely cannot have people buying and wanting to modify values only to have it explode. It needs to be customizable.

    • @MaMa-rc4eo
      @MaMa-rc4eo 3 дня назад +1

      "Thats just how structures are." xD yes, unusable. at least the BP version of it.

    • @MaMa-rc4eo
      @MaMa-rc4eo 3 дня назад

      i think the correct solution for this is to define the structs in c++

  • @BooneyTune
    @BooneyTune 5 дней назад +1

    Tutorials on RUclips teach beginners this way because it's faster and easier. I find it to be evil and devious to not warn beginners of the dangers.

  • @BooneyTune
    @BooneyTune 5 дней назад

    Tutorials on RUclips teach beginners this way because it's faster and easier. I find it to be evil and devious to not warn beginners of the dangers.