Unreal & SQL Databases - Part 1 - What? & Why?

Sdílet
Vložit
  • čas přidán 29. 07. 2024
  • First part of a series aimed at people interested in using databases in their Unreal projects.
    I have created a Discord server, the intention being that interested parties can help each other, share tips and tricks, etc. Early days yet, but join up and spread the word: / discord
    Chapters:
    0:00 Intro
    0:24 Why databases for games?
    0:40 What can you use them for?
    1:08 Dont need them for PvP clones!
    1:31 Who is this video for?
    1:53 What are they?
    2:28 Better than DataTables
    3:52 Is it difficult?
    4:25 Are they expensive?
    5:08 Basic example uses
    5:52 User preferences
    7:05 Score tables
    7:56 Achievements
    9:42 A more involved example
    15:17 Outro

Komentáře • 35

  • @FTF-bv3kk
    @FTF-bv3kk Před 22 dny

    Dude, this is great, and I really love the way that you explain things! Thanks!

  • @DragonLordSilv
    @DragonLordSilv Před rokem +6

    This has been the best explanation (verbally and visually) of how databases work in general. Love the fact you show the primary/foreign keys in the tables. I have been studying database engineering the last 5 months and JUST yesterday remembered that games use db's as well. This was perfect for me to see it being layed out. Thank you!

    • @ggamedev
      @ggamedev  Před rokem

      Thanks for the positive feedback :-)
      And yeah, in my opinion a lot more games could make greater use of databases, for more clever and interesting gameplay features.

  • @CyberWolf755
    @CyberWolf755 Před rokem +7

    Wow! I love the comprehensive introduction and going into complex scenarios that SQL databases can be used for.

    • @ggamedev
      @ggamedev  Před rokem

      Thank you very much, kind of you to say so. 🙂

  • @notthings6443
    @notthings6443 Před 3 měsíci +2

    유익한 정보 감사합니다.

  • @susiebaka3388
    @susiebaka3388 Před rokem +1

    thank you. i use RDB in webservices and have had a tough time thinking about how i should implement my games' schemas. this playlist is helpful

  • @djwhooo
    @djwhooo Před rokem

    you got to few subscribers bro

    • @ggamedev
      @ggamedev  Před rokem

      Thanks for the positive comment 🙂
      Slowly those subscriber numbers go up, which means CZcams lets more people know about my vids.

  • @davidtaylor8195
    @davidtaylor8195 Před rokem +1

    Hell yeah let's make a Morrowind-like bro !! :) great vid

    • @ggamedev
      @ggamedev  Před rokem +1

      Now that's what I'm taking about! :-)

  • @cyberaxe_lznj
    @cyberaxe_lznj Před 2 lety

    YOU ROCK!

  • @V4C38
    @V4C38 Před rokem +1

    Good

  • @ashimcredeor1595
    @ashimcredeor1595 Před rokem

    useful

    • @ggamedev
      @ggamedev  Před rokem

      'Useful' was exactly what I was aiming for. Thank you :-)

  • @OriginRow
    @OriginRow Před rokem

    Wonderful explanation 👍....IDK who are those 5 dislikes

    • @ggamedev
      @ggamedev  Před rokem

      Thanks.
      Probably people who dislike my delivery, or sense of humour... because, i mean... databases + games: what's not to like? 😆

  • @DarkSession6208
    @DarkSession6208 Před rokem

    Great Explanation.
    I found this video because i was looking for a way to Store Player Value in a Database on UE5.
    For example :
    Item Unlocked?
    If yes, how many Items does the player have?
    A good example is : a player plays on a dedicated server that handles the NPCs, Trader interaction, Player Position etc.
    But things like Player Level, EXP, Playtime, Items in Inventory etc. should all be saved somewhere else.
    Do i use a SQL database for this too? And if yes, whats a reliable way to prevent data loss, backups every few minutes to another rented SQL server?

    • @ggamedev
      @ggamedev  Před rokem +1

      Generally, for the multi player games, a dedicated server (or a server farm, or 'cloud' servers) are used, especially if there are a huge number of players.
      But that doesn't need to be so in your case; It really depends on how many players you will have and how much total data you will want to store, etc.
      You can certainly start out with a sqlite database on the dedicated game server. It will usually perform faster than a client/server database because its right there.
      Not saying the client/server model is bad - it gives a tonne of extra benefits also.
      If using sqlite - the database is just a file. you can copy it, clone it, move it around, however you want. So you could have some mechanism which takes a copy every 10 minutes or whatever, and stores it on another drive, or even to another machine entirely.
      If using a client/server database, most will have built in mechanisms to perform backups - however there is often 'some' performance hit while this is happening, although it may not actually be noticeable.

  • @CretinousFiend
    @CretinousFiend Před 6 měsíci

    Will this set of videos cover how to save data to the server when a persistent game instance is shut down?

    • @JustinLietz
      @JustinLietz Před 3 měsíci +1

      The data will be saved whenever the insert update or delete queries are run on the database. When you’re writing the code for the game you’d likely have functions and methods that are querying the database for these records and modifying them as the game is running. When you exit the game all that information should still be stored there

  • @alexandrefabretti1174
    @alexandrefabretti1174 Před rokem +1

    Hello
    How can we contact you to develop such things in UE5? I don't know if you are available. Anyway, Ty a lot for your explanations because in my games this is exactly what I was looking for (I am from web development industry). And it seems that is not common to work with databases
    ty man !

    • @ggamedev
      @ggamedev  Před rokem +1

      If you have anything you want to discuss, the easiest way is to jump on the discord server discord.gg/jjy2aJ3hj9
      You can post any questions, or IM me if you have something specific you need to discuss directly.

  • @Alaabale
    @Alaabale Před rokem +3

    Wow now many things i thought is impossible in anime and manhwa RPGs isn't

    • @ggamedev
      @ggamedev  Před rokem +3

      In fact, with a database behind it, you could even make a template project for such games, reusing pretty much the same thing, but having new content in the database for each story + new assets in the unreal project 👍

  • @sanamoawed9522
    @sanamoawed9522 Před rokem +3

    Can u please add tutorials for c++ and my sql?

    • @ggamedev
      @ggamedev  Před rokem +4

      Hi there. I certainly can go down that road, ifs on my todo list, and if I get enough positive feedback for it I definately will; Client/Server databases were my bread and butter for a long time ;-)
      However, as I mention in the video, and other comments I posted elsewhere, the reason I started this series with SQLite, is because its NOT client/server, and its totally free; there is nothing for you to pay for - no server requirement, no set up fees, no monthly bandwidth charges - because there is no server involved.
      For much of the 'SQL goodness' I am trying to expose to game devs, SQLite does everything that is needed.
      Of course, once you get on to multiplayer/online/persistant worlds, that sort of thing, then server databases are absolutely the way to go.
      Certainly a problem for many game devs is *MONEY* though, especially when they are just starting out - they work solo, or in very small groups, trying to find people to work on their games as a team, and it's difficult. The SQL you can learn making a game using SQLite is very much directly transferrable to those client/server database systems, but without the hastle or cost of needing them while you are learning.

  • @halfblue2678
    @halfblue2678 Před rokem

    Panties in a bunch? As I guy, that's a tall order

    • @ggamedev
      @ggamedev  Před rokem +1

      ...They are non gender specific panties.
      They may even be VIRTUAL, covering situations where PANTY_TYPE == COMMANDO
      But I can confirm, as a programmer, they are absolutely BINARY (64 bit) 😉

  • @SavageDarknessGames
    @SavageDarknessGames Před 5 měsíci

    Speciesist, not Racist.

  • @LupusMechanicus
    @LupusMechanicus Před rokem

    thanks for the vidya

  • @knuckles7410
    @knuckles7410 Před rokem +1

    That was painfull to watch. You could have cut at leat 10mn of fat, speaking about your imaginary gameplay and get to talk on how to setup the database.

    • @ggamedev
      @ggamedev  Před rokem +4

      I think maybe you missed the point there: if there was 10 mins of 'fat', then it was 'all' fat. 😄
      The purpose of the video was more to try and 'advertise' database use as an option to game developers, because surprisingly many never realise or consider it for their projects. It wasn't really about specifics, that was intended for other videos
      EDIT: Also, I don't think you are allowed to say my video has 'fat' any more...
      I think its now more acceptable to say 'voluptuous content'