fixing my old game engine that apparently doesn't work

Поділитися
Вставка
  • Опубліковано 18 сер 2022
  • Patreon ► / thecherno
    Instagram ► / thecherno
    Twitter ► / thecherno
    Discord ► / discord
    Sparky ► github.com/TheCherno/Sparky

КОМЕНТАРІ • 162

  • @TheCherno
    @TheCherno  Рік тому +325

    Thanks community 👍

  • @squelchedotter
    @squelchedotter Рік тому +318

    If there's one thing I've learned about bug reports, it's to never trust claims of things not working if they don't include the error message...

    • @TheHighborn
      @TheHighborn Рік тому +6

      what if it works, just doesn't work as expected? no error msg then...

    • @squelchedotter
      @squelchedotter Рік тому +41

      @@TheHighborn should have detailed exactly what the issue is, just saying "does not work" is very suspicious

    • @TheHighborn
      @TheHighborn Рік тому

      @@squelchedotter i know dude..

    • @Fractal227
      @Fractal227 Рік тому +5

      haha bug reports? try, uhm uhm “Cant login, needed yesterday”

  • @TheHighborn
    @TheHighborn Рік тому +37

    Community: sparky doesn't run
    Cherno: and I took that personally

  • @hahayes7205
    @hahayes7205 Рік тому +32

    6:37 that's probably the most emotion I've seen this man express

  • @coolbrotherf127
    @coolbrotherf127 Рік тому +116

    Yeah, I couldn't really follow the Hazel Engine series and didn't end up learning much from it. Most of it went over my head and just felt pretty much unintelligible for my level as a programmer. I've learned a lot more since then so I might try it again and see if it's more approachable now.

    • @anon_y_mousse
      @anon_y_mousse Рік тому +1

      It's always great to learn and grow. I'd say make another attempt and keep at it until you succeed.

    • @winter0912
      @winter0912 Рік тому +6

      Same, several years ago I was so lost when I saw some function binding for application events or sth, I just didn't understand it. Now I don't understand what was so hard for me back then

    • @samljer
      @samljer Рік тому +2

      well as someone who did i can tell you with certainty the code is a little convoluted, it could have been done a lot simpler without consequence.

    • @stinkeye1187
      @stinkeye1187 Рік тому

      He said to watch the C++ series first, then it would make things easier.

    • @gamedev_byhobby8872
      @gamedev_byhobby8872 Рік тому

      I can't even make the supposedly easy Open GL tutorials lol. Although I've only tried once and got stuck because of Visual Studio's version differences maybe. Can't load the shaders and it's probably my fault. Gotta keep trying

  • @Gunslinger962
    @Gunslinger962 Рік тому +56

    I think that following the sparky series is a good starting point because it's not professional and allows you learn game engine basics without caring much about how performant the final product is going to be or how the architecture is going to be, once you get an idea you can learn how to make the real thing by watching the hazel series, idk that worked for me

  • @reendevelops
    @reendevelops Рік тому +24

    I was actually just following along Sparky! Although I quit at episode 7 due to the complexity rising, I did manage to learn how OpenGL work, it also introduced me to C++, and how making programs work in general!

    • @RoDDy_
      @RoDDy_ Рік тому +2

      I started with his cpp series then went straight to hazel and quit at the maths video. This time I learnt openGL and a bit of linear algebra gonna try sparky then maybe hazel, Cuz when I watch him work on hazel before I was totally clueless but I'm starting to understand now oh and I'm a fullstack dev by the way but making games and game engines have always been my dream

    • @reendevelops
      @reendevelops Рік тому

      @@RoDDy_ Oh nice. I might give Hazel a shot then. I'm still a newbie game developer so I struggled even more haha.

  • @glenneric1
    @glenneric1 Рік тому +8

    Maybe people need a tutorial on how to setup Visual Studio and work with it! 😁 I laugh but then I put on my serious face.

  • @perkele1989
    @perkele1989 Рік тому +20

    Really cool video to watch, see a lot of similarities to my own life’s path. I also made a “sparky” first (engine that was really a framework). Then I made an actual engine in a full rewrite. Now, 8 years later, I’ve sold that engine. Also started working on a new one because I can’t help myself, may turn the progress into a UA-cam series (first episode this Sunday??)

    • @1catinhat
      @1catinhat Рік тому +1

      I'll subscribe to you just in case

    • @notaboutit3565
      @notaboutit3565 Рік тому +1

      Are you Finnish? 👀

    • @perkele1989
      @perkele1989 Рік тому

      @@notaboutit3565 kyllä, ethnically at least

    • @notaboutit3565
      @notaboutit3565 Рік тому +2

      @@perkele1989 lmao word, saw Perkele and had PTSD flashbacks of My Summer Car 😂

    • @timtom3073
      @timtom3073 Рік тому

      Moro, puhutko suomea? :D

  • @cprn.
    @cprn. Рік тому +11

    You hacked the system with Sparky. Delegated motivation to the community. 👍 I'm usually burned out somewhere after getting the basic physics in, have like 4 half baked game engines on my back, each in different tech. No tests, docs, makefiles and yet, I'm a professional software architect. 😂

  • @ananyamehta6955
    @ananyamehta6955 Рік тому +3

    I am really happy that he remembered sparky!!

  • @custard131
    @custard131 Рік тому +23

    i think one advantage of sparky particularly with people looking to learn is almost all of the development of it is available on the vods
    with hazel the actual engine is better, but i feel like we miss out on seeing a lot of what goes into writing a game engine

  • @melissanivaux4816
    @melissanivaux4816 Рік тому

    I will definitely try it as soon as possible! A friend recommended it to for sharing!

  • @abelrashid5184
    @abelrashid5184 Рік тому +4

    I would like to see a Sparky remastered series focusing on vulkan one day.

    • @Wheagg
      @Wheagg Рік тому

      What's the difference between making a new engine and remaking an engine?

    • @gamedev_byhobby8872
      @gamedev_byhobby8872 Рік тому

      ​@@Wheagg nostalgia plus getting a 1:1 tutorial for what they really want to build themselves

  • @kevingrant4837
    @kevingrant4837 Рік тому +1

    Yo I haven't seen Sparky since your series back on 2016. That series was the reason I was interested in game back in the day.

  • @alpasfly
    @alpasfly Рік тому +2

    Glad to see current cherno acknowledging past cherno

  • @rtpHarry
    @rtpHarry Рік тому +2

    Out of curiosity I tried searching to see what they were talking about, as I was expecting him to switch over to a more detailed bug report at some point. It seems there are some issues that people have experienced in the github issues, plus the tutorials were using the development branch which he didn't try to compile.

    • @mrmartinwatson1
      @mrmartinwatson1 Рік тому

      Even if he did go to those, he's more than likely not going to fix them.

  • @brycejohansen7114
    @brycejohansen7114 Рік тому +1

    Geez, this brings back memories

  • @davidcbeaudoin
    @davidcbeaudoin Рік тому +1

    I wish I had a backup of my old laptop that died, it had my first attempt at coding a game engine. I actually got an ugly single level SHMUP up and running. I'd be curious to see how the code compares to stuff I write now.

  • @srin_meow
    @srin_meow Рік тому

    what is the visual studio theme are you using

  • @wjrasmussen666
    @wjrasmussen666 Рік тому +2

    Thanks for the video, didn't know about sparky. How did you get this to work as javascript? Will hazel be able to run as javascript?

    • @maxinealexander9709
      @maxinealexander9709 Рік тому +2

      emscripten is a complete toolchain that builds c/c++ to web assembly, so not technically JS. Web assembly also has no access to the DOM so it can't run on its own. But with a bit of additional work you can get it to work with JS no problem.

  • @OskarP2601
    @OskarP2601 Рік тому

    what syntax highlighting r u using?

  • @joysaha3927
    @joysaha3927 Рік тому +3

    But I love sparky engine more than hazel.. Don't know why 😂

  • @TheSharkasmCrew
    @TheSharkasmCrew Рік тому

    Interesting, I tried for a while to get my own personal c++ game framework-y thing to build to Javascript (emscripten) but really struggled with it. That project was SDL/cmake/primarily linux, though. I'll have to dig through sparky and see where I was going wrong :)

    • @TheSharkasmCrew
      @TheSharkasmCrew Рік тому

      It may have simply come down to the fact that I wasn't using clang..

  • @anon_y_mousse
    @anon_y_mousse Рік тому +2

    I've never made a game, yet I've watched nearly every video the past few years. Maybe it's weird to be entertained by other people programming, but my own career has been less enjoyable. However, since Sparky is written in C++, I'll definitely give that a look, maybe try writing a game after all these years.

  • @howto-xd6tq
    @howto-xd6tq Рік тому +2

    Keep it going.

  • @YXalr
    @YXalr Рік тому +19

    Sure the test scenes work, but when I type Sparky.makeDoomEternalButBetter() it just doesn't compile for some reason.

  • @lorenizm7393
    @lorenizm7393 Рік тому

    ikr too. i clicked on sotNice tutorialng and now i cant find any tracks and everytNice tutorialng is blank idk what to do

  • @seawardspy-jl4hz
    @seawardspy-jl4hz Рік тому

    Does anyone know where I can find Information on how to make a c# scripting engine? If you can even call it that. Like, what unity uses

  • @macjd4002
    @macjd4002 Рік тому

    It's really work!

  • @matheusmarchetti628
    @matheusmarchetti628 Рік тому +1

    There's only 30 videos about Sparky on the playlist. Can we have the full experience?

  • @lonergothonline
    @lonergothonline Рік тому +7

    I'm pretty sure people who downloaded the code probably thought they'd be an EXE, which did everything for them. you should probably edit the github so that the user doesn't have to do anything.

  • @StarContract
    @StarContract Рік тому

    I've been here since Sparky 😊

  • @samvodopianov9399
    @samvodopianov9399 Рік тому

    Can't cook a barbeque without steak

  • @yunus61
    @yunus61 Рік тому

    At least here it is.

  • @zuztech
    @zuztech Місяць тому

    Is it to late to learn game dev? I'm 35 yrs old and I'm thinking on changing career but IDK if is possible. What Would you recommend ?

  • @tri--
    @tri-- Рік тому +7

    So here is my kind of story with Sparky and it's meaning to me. At the age 11 the concept of programming took me in. It was the greatest goal I'd have to achieve at that time. But I really didn't understand English that much at the age 11, 'cause I'm Turkish so what I'd do is just copy code. I remember making a sketchy game with Scratch (worst game maker tool I've ever used) and I wanted to make a launcher for it, thus I just watched a man coding and copied it. When I was about to be 12, I saw the best thing that happened to me, Sparky Game Engine series. I became a bit familiar with UE and game engines at that time, so the feeling of finally being able to create a very complex tool excited me a lot. But the problem was I didn't know how to code, and didn't know what C++ even was. I just watched the Sparky series, paused every time the legend Cherno wrote a new word, then just type it myself. It always felt good when I saw the same outcome as his. Now I like cancelling projects when I get bored of them, the Sparky copy was one of them. But then I started again, again and again. Countless times of writing everything again. I eventually kind of started to understand English and C++. My first major code in the Sparky clone was changing the viewport with keeping width and height updated, not updating every time. That resumed like that, start 'n end, start 'n end. Eventually I copied the code so much that I started to actually know C++. Now obviously I didn't know stuff like stack and heap and my apps probably had a lot of memory leaks. But because of the Sparky series, I actually started to write code. Now I'm 13 and learned things I didn't know by watching the C++ series such as smart pointers, references, lambdas and much more. Thank you Cherno, you really are the reason who I am today. I really appreciate what you've done, you're truly someone I will never forget about.

    • @monstereugene
      @monstereugene Рік тому +2

      holy, man. good for you! Best of luck with whatever you're doing now!

    • @prenomnom5637
      @prenomnom5637 Рік тому

      Senden ileride büyük adam olacak gibi. Başarılar!

    • @benjaminfranklin329
      @benjaminfranklin329 Рік тому

      Well done, with that kind of persistence and interest, I really hope you can continue and outshine the rest of us!

  • @MrSandshadow
    @MrSandshadow Рік тому +1

    I had a laugh over this one. Gj.

  • @Destroyer19941995
    @Destroyer19941995 Рік тому +1

    Wish you would make a video on how to port to android using visual studio... There aint a single video about that on the entire internet

  • @joelincz8314
    @joelincz8314 Рік тому

    thanks!

  • @TechNova45
    @TechNova45 Рік тому

    I like your color theme, did you set it manually or some plug in?

    • @lavatasche2806
      @lavatasche2806 Рік тому

      its vs2022

    • @TechNova45
      @TechNova45 Рік тому

      @@lavatasche2806 I have VS2022 I'm asking about the colors for example instead of blue for keywords like void, new etc he has red color, I have vs assist too but it doesn't have these custom colors.

    • @lavatasche2806
      @lavatasche2806 Рік тому

      @@TechNova45 my bad. I thought that its just the default for 2022. But I guess not.

    • @ekshalibur
      @ekshalibur Рік тому +1

      its visual assist plugin i think

    • @TechNova45
      @TechNova45 Рік тому

      @@ekshalibur I have visual assist, it doesn't have those extended color customizations, I think you can access more color options in default visual studio settings.

  • @kingelvis19
    @kingelvis19 Рік тому +13

    lol he's so smart. His community is a bunch of novices like me

  • @SamarthCat
    @SamarthCat Рік тому +6

    I am an early bird...
    Anyways I am excited for the next hazel devlog :)

  • @alexzhu4867
    @alexzhu4867 Рік тому

    putting in....they are only visible on the mini soft roll preview, I can’t do sNice tutorialt without seeing what notes are being played...i can’t even

  • @ami6packs
    @ami6packs Рік тому

    Could you please make a video on how to do low level design before the coding?

    • @ami6packs
      @ami6packs Рік тому

      E.g design a chess game.

    • @superscatboy
      @superscatboy Рік тому

      @@ami6packs Do you mean high level?

    • @ami6packs
      @ami6packs Рік тому

      @@superscatboy basically the classes and design pattern required for designing a game.

    • @superscatboy
      @superscatboy Рік тому

      @@ami6packs Ok, you do mean high level. The further you abstract away from the bare metal, the higher the level of abstraction is.

    • @ami6packs
      @ami6packs Рік тому

      @@superscatboy I don't know. In software industries, Writing classes/functions are generally called Low Level Design. High Level design consists of modules on how they interact with each other.

  • @angeldamiangarciaguevara4967

    Soy yo cuando entrego una tarea de programación "Pero en mi compu sí funciona profe, se lo juro"

    • @cprn.
      @cprn. Рік тому

      It means you're not including all dependencies or your profe's compu has a different architecture (either CPU or GPU). As long as all dependencies are there and the binaries were compiled for the right architecture, it has to work - it's just machine code.

  • @ZEN467
    @ZEN467 Рік тому

    can u plz make a tutorial on updated version of it :\

  • @user-qs6xn1oy5d
    @user-qs6xn1oy5d Рік тому +1

    Hello Cherno,
    Thanks so much for your videos. They are both technical and informative. So I have a question for you and I am asking it here because I could not find a place here on this channel or elsewhere where I could ask.
    So I have a software program idea, and actually it is a software suite, but I would start with one program first.
    So... 1st) I would like to say that I am going to be very ambiguous about what this program idea here on UA-cam just bc I want to keep the details mine until it is actually made.
    2nd) I would very likely need C++ due to the need for the program/s to be closer to the hardware layer of the computer and also run fast. But I am open to recommendations beyond C++.
    3rd) I also wanted to ask you because you seem to be incredibly fluent in C++, whereas on my side, I am coming from more of a UX/UI and concept design angle.. I have built prototypes before
    but only know a minimal amount of C++ and don't have time at the moment to dive deep on it.
    4th) The game engine you have built is actually very closely related to the idea/s that I have so I thought you might have some interesting things to say about this.
    Q1 - I wanted to see if you would be interested in exploring this idea mentioned above and might want to work on this project eventually? Basically, would you be potentially interested in helping code an application which would be a visual creation tool. (I can provide more details if interested)
    Q2 - If you would not be interested in discussing this app further in terms of you potentially code it.... would you happen to know where a good resource might be to find developers who are interested in building visual creation apps from scratch? What I offer on my side is the UI design, the concept, and the company name.
    Please let me know your thoughts...
    Thanks and great videos!
    D

  • @BlaymsOff
    @BlaymsOff Рік тому +4

    Perfect clickbait, ig lmao

  • @OneMeanDragon
    @OneMeanDragon Рік тому

    maybe they wanted to build a .net game lol

  • @herrdingenz6295
    @herrdingenz6295 Рік тому +1

    your final statement is sooo wrong .. it should be: DON'T TRUST THE DEVELOPER!!!! :P

  • @onogrirwin
    @onogrirwin Рік тому

    Boy do I love Gay Men jins. Check for input, update, draw...

  • @MartinPHE
    @MartinPHE Рік тому

    Ah maybe they didn't know to build dependencies then core and finally sandbox?

    • @TheCherno
      @TheCherno  Рік тому

      They’re all dependencies so if you just build/run Sandbox it will build them all. I did it incrementally because I expected something would be broken

    • @MartinPHE
      @MartinPHE Рік тому

      @@TheCherno This is why I watch all your videos on c++. ah I understand. big ++ can't wait for more c++ teaching, learn the most from your teaching style big help

  • @manonthedollar
    @manonthedollar Рік тому

    he mad

  • @umen2424
    @umen2424 Рік тому +2

    I can confirm the engine works fine out of the box ,
    But looking at the source code i can see dx 11 implementation which is missing in the tutorial
    Any chance you will do DX 12 series?
    You are doing very good job , thank you !

  • @Mr_Coco_GameDev
    @Mr_Coco_GameDev Рік тому

    Hey,I really like your Video,Can you share your Camera and Len

  • @drmouradraafat2005
    @drmouradraafat2005 Рік тому

    Thanks so much for making tNice tutorials video! You really broke it down well.

  • @teacup3000
    @teacup3000 Рік тому

    „It doesn‘t work“ - well maybe it‘s a you problem 😅

  • @zhulikkulik
    @zhulikkulik 9 місяців тому

    You removed chernocraft and that's why people can't use it. Everyone knows programming is all about chernocraft - tambourine dances, battle cries and a bit of necromancy.

  • @Destroyer19941995
    @Destroyer19941995 Рік тому

    Uuuu niceeee

  • @Diamonddrake
    @Diamonddrake Рік тому +2

    If you don’t know the build order and you don’t know what you don’t need it’s not quite as simple. I know you were being cheeky but videos like this make new people feel dumb and turn them away from programming.

    • @bakedbeings
      @bakedbeings Рік тому +1

      *If* the readme doesn't tell folks to open the sln and build, I agree, and I think adding that instruction is a choice move.

    • @TheCherno
      @TheCherno  Рік тому +3

      There is no build order, you just run Sandbox (the default startup application) and that’s it. I was building it incrementally because I was expecting something to not work along the way.

    • @Diamonddrake
      @Diamonddrake Рік тому +1

      ​@@TheCherno I cloned this repo from git, opened it in VS2019 and hit F5 and it throws a pop up saying there were build errors but they were just out dated windows SDK stuff, retargeted it to an SDK for my version of windows and it ran just fine. Could have been your complainer's issue.

  • @carloscastro4398
    @carloscastro4398 Рік тому

    what is life

  • @matijasonfrece3644
    @matijasonfrece3644 Рік тому

    to brother to

  • @stephenkamenar
    @stephenkamenar Рік тому +4

    "i literally just ran this, could not be easier"
    i hope you're trolling. you had to like unload visual studio projects or something.
    you did not just run it. sure you only had to take 1 step to get it working. but nobody's going to know to do that

    • @victorsarkisov4480
      @victorsarkisov4480 Рік тому

      Yes... Yes they will. Have you ever spent time working a problem out by yourself? You can encounter these types of issues on the daily.

    • @stephenkamenar
      @stephenkamenar Рік тому +2

      @@victorsarkisov4480 not everyone's wasted their life learning/using visual studio

    • @victorsarkisov4480
      @victorsarkisov4480 Рік тому

      @@stephenkamenar It's not learning Visual Studio lol. It's knowing how to actually work with software instead of relying on everyone else to solve everything for you

    • @youtubehandlesux
      @youtubehandlesux Рік тому +1

      @@JohnDoe-ws4iu Boo hoo, why do you want to learn micro$oft's shit IDE and its disgusting build system just to make a game engine. Start smart.

    • @Lamacraft18
      @Lamacraft18 Рік тому

      He did not needed to do that, he already said that he only tried to build one step at a time to see if any errors ocurred. All that was needed was to build the sandbox

  • @HAZARD_LIGHTS
    @HAZARD_LIGHTS Рік тому +2

    Sparky > Hazel

  • @draido-dev
    @draido-dev Рік тому

    I have a question pls, didn't ray tracing is more modern technique to use? I mean yes ray tracing give good results but its performance hungry

  • @mohammedmatar4341
    @mohammedmatar4341 Рік тому

    I just wanted to make s

  • @first9279
    @first9279 Рік тому

    char a = 3;

  • @oamioxmocliox8082
    @oamioxmocliox8082 Рік тому +1

    ;)

  • @adamrushford
    @adamrushford Рік тому

    how is it you've worked for EA when I know things you don't even know. just curious

  • @thomasamathew4058
    @thomasamathew4058 Рік тому +2

    First..

  • @Jkauppa
    @Jkauppa Рік тому +1

    how would you know what not to build, out-of-the-box

    • @sarahkatherine8458
      @sarahkatherine8458 Рік тому

      I would check the dependencies/build order list and disable everything that is not a dependency of any other project, until there is no error left.
      Also just by looking at project name, things with "core" in their name are probably important, and "Sandbox" should be the one I need to play around with.

    • @Jkauppa
      @Jkauppa Рік тому +1

      @@sarahkatherine8458 developers problem

    • @Jkauppa
      @Jkauppa Рік тому +1

      ​@@sarahkatherine8458 out-of-the-box no-fiddle functioning, this is how libraries and engines go to die, its not the users issue to be the detective of the not-working crime, who needs to work anyways, for anyone, God gives for no self-work

    • @victorsarkisov4480
      @victorsarkisov4480 Рік тому

      Skill issue

    • @Jkauppa
      @Jkauppa Рік тому

      @@victorsarkisov4480 not fixing your problems, fix them yourself, amen

  • @kevinkkirimii
    @kevinkkirimii Рік тому

    Compile c++ to java script = wasm

  • @samljer
    @samljer Рік тому +1

    alot less un wanted bad practices in sparky, like the over use of templates.

    • @superscatboy
      @superscatboy Рік тому +1

      For future reference:
      - "a lot" is two words
      - "unwanted" is one word
      - "overuse" is one word
      Take care, friend.

  • @puppergump4117
    @puppergump4117 Рік тому

    By the way hazel 2d is complaining about not having these:
    where are they

  • @ananyamehta6955
    @ananyamehta6955 Рік тому +2

    I am really happy that he remembered sparky!!