Here's How You Should Be Thinking About Data

Поделиться
HTML-код
  • Опубликовано: 19 дек 2024

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

  • @InfallibleCode
    @InfallibleCode  3 года назад +12

    Sign up for the Level 2 Game Dev Newsletter: eepurl.com/gGb8eP

  • @dago6410
    @dago6410 3 года назад +15

    I just added a CSV of my game's units (strategy game, lots of those in it) into my game and felt kinda bad about it and now i see this and im super validated

    • @InfallibleCode
      @InfallibleCode  3 года назад +2

      Nice! Glad I could provide some validation for ya :D

    • @xXYourShadowDaniXx
      @xXYourShadowDaniXx 2 года назад

      Whats really cool is you could even make some extra code to export those game units to scriptable objects if you wanted to strictly use those for unity projects.

  • @ianlaird8519
    @ianlaird8519 2 года назад +6

    You have so clearly articulated a point that i have been trying to get across to my team for months. Great video!

  • @omnicatalyst
    @omnicatalyst 2 года назад +1

    This channel needs to be the number one link in every single game dev support discord channel.

  • @wafflespawn
    @wafflespawn 3 года назад +11

    Already loving where this series is going! Looking forward to the next one!

  • @ewwitsantonio
    @ewwitsantonio 3 года назад +1

    I just yelled "aw yeahhhh another video!!!" out loud by myself in my apartment. that is how happy i am to see a new vid by you!

  • @Dustyy01
    @Dustyy01 3 года назад +18

    I hope that Barles has also learned this

    • @InfallibleCode
      @InfallibleCode  3 года назад +6

      Oh he definitely learned a lot from this one :D

    • @Dustyy01
      @Dustyy01 3 года назад +1

      @@InfallibleCode Perfect😂

  • @tiger5gaming
    @tiger5gaming 2 года назад

    These videos are extremely high quality; it's borderline criminal how this doesn't have more views

  • @holliscrane4644
    @holliscrane4644 Год назад

    Really love what youre doin with the newsletter a lot of stuff like that is paid but i love how youre letting the knowledge flow.

  • @phildonahue3158
    @phildonahue3158 3 года назад +4

    Super excited for this series refresh! Good luck with it.

  • @SergioLepore
    @SergioLepore 2 года назад +1

    This is such an elegant pattern. Thanks for sharing!

  • @samarthdhroov
    @samarthdhroov 3 года назад +12

    I have been wondering about data and Unity for the last few days and you came up with such an important content today. Cant thank you enough. Good Luck for the journey ahead !!

    • @InfallibleCode
      @InfallibleCode  3 года назад +1

      Wow perfect timing! Glad you found it useful

  • @MrRedpearl
    @MrRedpearl 3 года назад +2

    Excellent. This is immediately applicable for anyone who doesn't understand these principles.

  • @G4M5T3R
    @G4M5T3R 3 года назад +2

    I'm really looking forward to more videos in this format. Welcome back Charles!

    • @InfallibleCode
      @InfallibleCode  3 года назад

      Really appreciate the feedback! It's great to be back :D

  • @robrab2000
    @robrab2000 3 года назад +1

    Oh man, I was really worried (also a bit excited) that I was going to watch this and find out that I'd been doing it all wrong but the video actually validated a lot of things I'm currently doing.. whew! Loving the Level2ness of the vid!

    • @InfallibleCode
      @InfallibleCode  3 года назад +1

      Nice! Glad I could help validate your workflow :D

  • @MaZyYTube
    @MaZyYTube 3 года назад

    To 7:13 : You can also use json and also streaming assets. With streaming assets you do not even need to rebuild the unity game. Just update your file and on next start unity will read new data.
    This may is good or not. People can mod your game this way and can change the csv or json file. If you want to avoid this so better to keep rebuilding or even create your own assetbundle which can be better to make small updates.

  • @alizaidi5610
    @alizaidi5610 3 года назад +1

    It's so nice to have videos like this.

  • @TheSchloteYT
    @TheSchloteYT 3 года назад +1

    Now this is level 2! If the rest of this series is content like this im in good hands!!

  • @olon1993
    @olon1993 3 года назад

    Great video! Loving this format and content.

  • @filipathtc
    @filipathtc 3 года назад +2

    Incredibly well made video. Thank you Charles!

  • @Cloud-Yo
    @Cloud-Yo 3 года назад +2

    This is an awesome overview and video as always. I would love to see more about the csv integration. :)

    • @InfallibleCode
      @InfallibleCode  3 года назад +3

      Coming soon!

    • @Cloud-Yo
      @Cloud-Yo 3 года назад +2

      @@InfallibleCode absolute legend! :D

  • @dusan7873
    @dusan7873 3 года назад +2

    Very nice, can't wait for more!

  • @666iiviietal666
    @666iiviietal666 3 года назад +1

    so glad your back!

  • @adamodimattia
    @adamodimattia 3 года назад +1

    Great video again Charles!

  • @MariferAlcon
    @MariferAlcon 3 года назад +2

    Wow thank you so much!

    • @InfallibleCode
      @InfallibleCode  3 года назад

      Glad it helped!

    • @MariferAlcon
      @MariferAlcon 3 года назад

      @@InfallibleCode this kind of approach i want to do in my project, it help to understand how important this kind of stuff especially I'm using database. Please continue educate us thank you so much.

  • @DragstonDev
    @DragstonDev 3 года назад +3

    This is awesome, I've been wondering how to structure my data for characters and weapons for a SRPG!

    • @InfallibleCode
      @InfallibleCode  3 года назад +1

      Nice! I'm really glad this was helpful :)

  • @THEspindoctor84
    @THEspindoctor84 3 года назад +1

    awesome video! Really looking forward to the new content.

  • @Sovreighn7
    @Sovreighn7 3 года назад +1

    Great video, awaiting more!

  • @dustypants9326
    @dustypants9326 3 года назад +1

    good to see u back

  • @Ryan-ww7un
    @Ryan-ww7un 2 года назад

    Subscribed to the newsletter! btw, I think your site is missing a landing page.

  • @chujies
    @chujies 3 года назад +2

    Amazing content as always and so happy to see you back!!
    I know the point of this video is not the code, but could we maybe have access to the source code of this video? There are some interesting concepts you showed and it would be a great learning experience to dive into it to check out the code!

  • @salos4ever
    @salos4ever 3 года назад +4

    See this is the kind of content I wanted to have when I was starting the course of Game Development at Uni level. It just never happened. Even though I still followed your videos a couple of years back, this format is way way way better and it's so much easier to understand. Can't wait for the next one. #NewBrackeys?

  • @bankshotzombies8165
    @bankshotzombies8165 3 года назад +1

    But what if you want to connect stuff like animations and FX to the weapons?

    • @themaskyyt
      @themaskyyt 3 года назад

      That's a whole different thing then. But, you can, for example, make a system to gather the data for the weapons, another for the FX (animations, sound, particles, etc.), and another for behavior (shooting, reloading, etc.) and then link them together with events. FX and Behavior would wait for a Shoot event to be raised to do something. But of course, that's just one way to do it!

  • @bigjamar
    @bigjamar 3 года назад +1

    excelente..!!muchas gracias!!

  • @XRCADIA
    @XRCADIA 3 года назад +2

    Thanks!

  • @VeneDrummer
    @VeneDrummer 3 года назад

    what are some other great channels that teach cool unity/game dev concepts like this?

  • @stefano4993
    @stefano4993 3 года назад +1

    Thanks for the video! Maybe I missed some Unity feature but how do you access the Load method from the button in the Inspector?

    • @clearsky4049
      @clearsky4049 3 года назад +1

      I'm assuming its the work of an editor script associated with the CsvWeapons class.

    • @InfallibleCode
      @InfallibleCode  3 года назад

      That is correct :)

    • @InfallibleCode
      @InfallibleCode  3 года назад +1

      That's a custom inspector we created for the CsvWeapon class :)

  • @imgekko4142
    @imgekko4142 3 года назад +1

    Fantastic video!

  • @zeon137
    @zeon137 3 года назад +38

    "Data structures are meant to represent things" that's kind of a very bold OOP claim. I don't necessarily agree with some of the ideas presented here, however, in the context of "regular Unity" (not DOTS, not ECS, etc.), this is a very nice video, especially regarding repositories and auto-populating data from different sources. Thank you Charles, I'm glad you're back at making content :)

    • @InfallibleCode
      @InfallibleCode  3 года назад +10

      Thanks for sharing your feedback! I see your point and it's completely valid. But as you said, context is key and in this video we're definitely focusing on more high level data structures as opposed to low level algorithmic type data.

  • @veeaxis3892
    @veeaxis3892 3 года назад

    What's the name of the syntax theme used in the video? I really like the way it looks.

  • @thebebinator
    @thebebinator 3 года назад

    Great new content thanks so much! New format is cool too, although the code snippets could stay on the screen a bit longer. And did Barles get laid off in the merger with thousand ant? :D

  • @AschKris
    @AschKris 3 года назад +1

    Great comeback!

  • @JediMediator
    @JediMediator 3 года назад +1

    I'm not sure my subscription to the newsletter went through correctly. Has the first issue been released already? Also, will it cause problems if I go through the subscription process again, just to make sure?

    • @InfallibleCode
      @InfallibleCode  3 года назад +1

      Shoot me an email at charles@infalliblecode.com and I’ll check for you 👍

  • @pcccmn
    @pcccmn 3 года назад

    hory sheet. Mind blown! Subbedddd

  • @sabatheus
    @sabatheus 3 года назад

    Another consideration is data security. Having data stored in an Excel spreadsheet, or JSON file is going to be easy to get into and edit. Where as Scriptable Objects are going to be a lot harder. I might like to see how a Level 2 would think about this. :D

  • @SubjektDelta
    @SubjektDelta 3 года назад

    When will the unit of work video go live?

  • @KonradGM
    @KonradGM 3 года назад

    regarding data, how would you approach a for instance a databse of 100's items in a game like heroes 3? I am assuming you can create templates with scriptable objects, but what about accesing them and saving them for the player and in database? Should it only be done trough items id's and loaded at runtime?

  • @faridbehrouzi2380
    @faridbehrouzi2380 3 года назад

    Have you sent a newsletter? because I haven't gotten any.

  • @masonmason22
    @masonmason22 3 года назад +1

    Kinda interesting, but I felt you rushed through the code too quickly. I know the code technically doesn't matter, but seeing how the idea is actually applied helps to explain it.

  • @kaiser9321
    @kaiser9321 3 года назад +1

    Sometimes when I watch these videos I question my entire programming history

    • @InfallibleCode
      @InfallibleCode  3 года назад +1

      Haha I feel the same way A LOT of the time. Don't put so much pressure on yourself, though. There's so much to learn and know but what's most important is how you apply the knowledge that you already have :D

  • @gilbertobitt3757
    @gilbertobitt3757 3 года назад +2

    Oohh I miss those infallible code content

  • @panendraommina3474
    @panendraommina3474 2 года назад

    So this is about data structures in unity. Is it necessary to use linked list , stack , heap ,etc .

  • @evilvirraZzz
    @evilvirraZzz 3 года назад

    Большое спасибо за видео. И да, с России тебя тоже смотрят! ;)
    ENG: Thanks a lot for the video!

  • @mehmeh8883
    @mehmeh8883 3 года назад +1

    Thanks barles

  • @shchack5583
    @shchack5583 3 года назад

    Definitely useful!

  • @gbcgiovanni6885
    @gbcgiovanni6885 3 года назад +1

    Loved the video

  • @8bitWatermelon
    @8bitWatermelon Год назад

    What IDE is this please? It looks amazing 👏

  • @RehtseStudio
    @RehtseStudio 3 года назад +2

    LOVE THE VIDEO.
    I"M LEVELING UP💪💪
    Laugh at the CSV part when he said "That's not the point of the exercise"🤣🤣

    • @InfallibleCode
      @InfallibleCode  3 года назад

      Thank you!! Haha yeah the CSV implementation deserves its own video xD

  • @de0o0
    @de0o0 3 года назад

    So using scriptable object to store data is bad idea?

    • @Soraphis91
      @Soraphis91 2 года назад

      No it's not, ScriptableObjects are just fine, but it also highly depends on your workflow. You also could write yourself a custom menu command to generate ScriptableObjects based on an CSV file if that fits your workflow the best.

  • @Layarion
    @Layarion 3 года назад

    Make a video about making your game as modding friendly as possible? with as much modding power as possible? i'd like my modding community to be able to use Unity itself to mod my game.

  • @dago6410
    @dago6410 3 года назад +1

    PLEAASE make the 'unit of work' video soon pls pls pls

  • @halivudestevez2
    @halivudestevez2 2 года назад

    I believe this was a little complex. Even for an advanced developer, or a beginner, this seems to be overwhelming.

  • @fearian
    @fearian 3 года назад +1

    beginner question: Why not define a struct at any point here? Shouldn't we start off with an actual struct, rather than a bunch of arrays?

    • @InfallibleCode
      @InfallibleCode  3 года назад

      Just depends on the project and requirements. Either approach is completely valid

  • @afriendlyfox
    @afriendlyfox 2 года назад

    I don't understand why would we create a whole new class CsvWeapon if we can just add that functionality to the Weapon class

  • @marksmithcollins
    @marksmithcollins 3 года назад +1

    Nice prologue starting with Unity Entities LOL
    Feels it requires overcomplicated work to handle simplest paradigms. Not wrong, but not that intuitive demanding high level design decision for low level assigning attemption.

  • @googleuser4720
    @googleuser4720 3 года назад +1

    You do realise you can reorder elements in arrays in the inspector.

  • @dago6410
    @dago6410 3 года назад +1

    awwww u back

  • @SilverAura
    @SilverAura 3 года назад +2

    I really appreciate the fact that I had to verify my Level 2 Game Dev Newsletter. Not because I like doing more work but because I respect the fact that you wanted to make sure joining what's basically a mailing-list, is an explicit choice.
    The easier I feel it is for me to accidentally sign up for something, the less confident I am that it's going to provide me a service that's appropriately offset by paid sponsorships.
    That little added "Are you sure?" is a bit of (probably faux) reassurance that I'm not signing up to generate ad revenue.

  • @walterjohngallant
    @walterjohngallant 3 года назад +3

    Please stop putting background music in a teaching video. Did you have background music in class? It’s very distracting. You are a great teacher though.

  • @Alperic27
    @Alperic27 3 года назад +1

    bro… seriously??? … ‘Weapons’ … as MONOBEHAVIOR???? … 😂 …… … ….. at least make it scriptableobject .. then … CsvWeapon??? … you manage to negate 30 years of lessons of bad OOP in under 1” … if you worked for me, I would fire you without discussion. and for the record, you are preaching ideas that are at the exact opposite of what the DOTS philosophy is

  • @Havii
    @Havii 3 года назад

    Use Scriptable Objects

  • @KingRecycle69
    @KingRecycle69 3 года назад +2

    Awesome. I learned a lot.