![Moros Smith](/img/default-banner.jpg)
- 14
- 13 051
Moros Smith
Приєднався 28 жов 2014
PGEtinker aka I finally did something cool
This is a presentation I gave on the OneLoneCoder Discord server about PGEtinker, and the things that make it work.
X/Twitter: x.com/Moros1138
Github: github.com/Moros1138
OneLoneCoder Discord: discord.gg/WhwHUMV
Support PGEtinker
PGEtinker: pgetinker.com
Patreon: www.patreon.com/PGEtinker
Merch Store: store.pgetinker.com
X/Twitter: x.com/Moros1138
Github: github.com/Moros1138
OneLoneCoder Discord: discord.gg/WhwHUMV
Support PGEtinker
PGEtinker: pgetinker.com
Patreon: www.patreon.com/PGEtinker
Merch Store: store.pgetinker.com
Переглядів: 37
Відео
Staging PGEtinker
Переглядів 522 місяці тому
This video is edited from a voice chat session on the OneLoneCoder Discord server in which I shared my screen and demonstrated the process of staging and deploying an update to PGEtinker. Got questions? Leave a comment!
PGEtinker | Interactively build olcPixelGameEngine programs right inside your browser!
Переглядів 503 місяці тому
PGEtinker is an interactive web app that allows you to build olcPixelGameEngine application right inside your browser! Patreon: patreon.com/PGEtinker OLC Discord: discord.gg/WhwHUMV
1 Hour Drawing, In Real-time
Переглядів 3511 місяців тому
In this video I draw with a timer set for 1 hour. After which the picture is finished... Are you an artist? Show me your 1 Hour Drawing!
Chocolatey's Emscripten package is Broken... sorta Let's work around it!
Переглядів 992 роки тому
Chocolatey's Emscripten package is Broken... sorta. Let's work around it! In this video I discuss a bug in the emscripten package hosted by chocolatey and a relatively simple way to get back on track! PGE Template Project on Github: github.com/Moros1138/pge-template-project Chocolatey: chocolatey.org Navigate to EMSDK folder cd %localappdata%\emsdk Update EMSDK to the latest version git pull In...
Building Web Based olcPixelGameEngine Applications using CMake and Emscripten
Переглядів 1,2 тис.2 роки тому
Recently, I made a video to demonstrate a CMake script I made to make starting truly cross platform olcPixelGameEngine applications quickly! What I didn't demonstrate was that this cmake script could also be used to build using emscripten! That's right, PGE on web pages! YAY!!! PGE Template Project on Github: github.com/Moros1138/pge-template-project Chocolatey: chocolatey.org Install Git: choc...
Building cross platform olcPixelGameEngine applications using CMake!
Переглядів 1,6 тис.2 роки тому
In this video I demonstrate a CMake script I made to make starting truly cross platform olcPixelGameEngine applications quickly! I hope the script and this video are useful to you in some way! PGE Template Project on Github: github.com/Moros1138/pge-template-project Chocolatey: chocolatey.org Visual Studio: visualstudio.microsoft.com/downloads/ Homebrew: brew.sh 00:00 Introduction 00:16 Windows...
Quick Underground Map for my D&D Campaign
Переглядів 553 роки тому
This map took me about 8 minutes to draw. Sped up the playback to fit the music because I'm too lazy to edit music today. Hope you like it. Credit for Music: "Future Gladiator" Kevin MacLeod (incompetech.com) Licensed under Creative Commons: By Attribution 4.0 License creativecommons.org/licenses/by/4.0/
Let's Make An olc::PixelGameEngine Application using Code::Blocks on Windows
Переглядів 3,9 тис.4 роки тому
# Let's Make An olc::PixelGameEngine Application with MinGW ua-cam.com/video/jnI1gMxtrB4/v-deo.html # OneLoneCoder - olcPixelGameEngine github.com/OneLoneCoder/olcPixelGameEngine -Download olcPixelGameEngine.h header file -Download olcExampleProgram.cpp source file # Code::Blocks www.codeblocks.org/
Let's Make An olc::PixelGameEngine Application using MinGW
Переглядів 6 тис.4 роки тому
# OneLoneCoder - olcPixelGameEngine github.com/OneLoneCoder/olcPixelGameEngine 1. MSYS2 Website www.msys2.org 2. UPDATE MSYS2 -Initial Update pacman -Syu -Secondary Update pacman -Su 3. INSTALL MinGW -64-bit system pacman -S mingw-w64-x86_64-gcc -32-bit system pacman -S mingw-w64-i686-gcc 4. INSTALL Make -64-bit system pacman -S mingw-w64-x86_64-make -32-bit system pacman -S mingw-w64-i686-make...
Asteroids with olcPixelGameEngine and olcPGEX_Particles
Переглядів 3104 роки тому
Asteroids with olcPixelGameEngine and olcPGEX_Particles You can see the particle engine in action when asteroids are destroyed! olcPixelGameEngine by Javidx9 github.com/OneLoneCoder/olcPixelGameEngine olcPGEX_Particles by Moros1138 github.com/Moros1138/olcPGEX_Particles Graphic Assets provided for free by Kenney! www.kenney.nl/
GetHome - PGE 1 vs PGE 2
Переглядів 834 роки тому
A side by side showing GetHome using the olcPixelGameEngine version 1 and version 2, side by side.
Nice demo! Thanks for taking the effort of putting this up yt. It's really fascinating to see PGE tinker develop end evolve, cheers!
I would totally be using this if Rust wasn't dramatically more sane than C++!!!
Perhaps you'll find this more to your liking play.rust-lang.org/ 😄 thanks for watching
Good stuff! Can't wait to see people make awesome things with PGEtinker
same here!
cant thank you enough for this. I have been losing my mind trying to find answers as a beginner, turns out I was using an old version of mingw.
what if you already have mingw installed?
thank you so much!! I finally got it working because of your video and template on Mac M1
This is one of the most helpful foundational videos for installing a vendor-agnostic C++ setup I have ever seen. Thank you!!!
Thank you so much for this Moros! it really helped me out
You are the best. All over the Internet, you are the only one who made a guide with an explanation that is relevant for October 2022 THANK YOU!😁
Nice!
🤭 𝔭𝔯𝔬𝔪𝔬𝔰𝔪
There are many videos were they use cmake, I never understand how that work or why needed. Need look that again one day.
If you have a specific question about it, I'm happy to answer anything to the best of my ability.
Excellent video! Thank you for the thoroughness. World bee nice to see a follow up on how to package for distribution.
Thanks for the praise! Sadly dist packaging is one of my personal weak points. I may do something about it in the future, if I'm able to figure it out and understand it enough to make something that'll be useful to others.
Are you use the mingw on linux for building the windows app , you should edit the file olcPixelGameEngine.h at lines : 2535 :Shlwapi.lib to shlwapi.lib 2555 Shlwapi.h to shlwapi.h at compiling use command : i686-w64-mingw32-g++ -o olcExampleProgram.exe olcExampleProgram.cpp -luser32 -lgdi32 -lopengl32 -lgdiplus -lshlwapi -ldwmapi -lstdc++fs -static -std=c++17 sorry for my english 😬
In file included from olcExampleProgram.cpp:2:0: olcPixelGameEngine.h:387:36: fatal error: experimental/filesystem: No such file or directory #include <experimental/filesystem> :/ please advice
generally speaking, when you encounter problems like this it's because you're trying to use the wrong version of mingw on windows. the easiest way to tell whether or not you're using the right version is to type in "g++ -v" and see if it says MSYS Build, or words to that effect in the output. If it does not, there are a couple possible reasons. First, you may have installed multiple versions of mingw, and there is conflicting gcc/g++/mingw32-make et al. in your PATH.... that would be the first place I would check because the other possible reasons involve not actually following the instructions of the video (and I don't wanna say that, so don't make me say that) you can join the OLC discord if you need more help. discord.gg/WhwHUMV
Little remark. If you use cygwin packet manager instead of mingw you must manualy #define __WIN32 and __#define__ __MINGW32__ right before #include "olcPixelGameEngine.h", otherwise there's apear some errors.
cygwin is beyond the scope of these instructions, if I ever make a cygwin specific tutorial I'll be sure to include this tidbit of info. Thanks!
Thank you sir!
You are welcome!
Is it a good idea to add MAKE to our system_path as well?
in retrospect, probably not, best to leave it mingw32-make, and call that. when i made this video i didn't consider path contamination and the idea of installing multiple toolchains
I wish I knew this was here when I started with OLC::PGE a few months ago. I had no problem with the gcc that shipped with my OS, but setting the flags right and CB looking for .o files that it never generated (still happens with release, but debug works) because Im not using linker files. (I knew it was a strictly a CB issue because it all worked in terminal fine).
@@moros1138 The specific issue I had was with how codeblocks handles compiling. It assumes (strongly) that everyone is using linker files. But I was compiling direct from .cpp to exe. When the second command tries to execute on the .o files it fails because there are no .o files - it then cleans up after itself deleting the executable that had generated. I did eventually figure it out
@@TheFinagle I'm glad you got it all sorted!
i followed all the steps, but when I run the program it only shows a white screen instead of noise, what should i do?
Sounds like you're running it in a VM without graphics acceleration enabled, but without further details I can't really be helpful to you.
Wow.. Nice tutorial... Very easy one to follow.. Why did you stop making tutorials... Please continue...
This seems like a very nice video, unfortunately it does not come with a gdb.exe file. Thus, I can't debug in VSCode. Sadly, I have to look for yet another different compiler.
Update: I fixed it. All I had to do, was to launch MSYS as administrator. Sigh. Why does programming have to be this stupid sometimes? ///////////////////////////////////////////////////////////////////////////////////////////// I got to step 2 and once I type 'pacman -Syu' the following appears in the MSYS window: :: Synchronizing package databases... error: failed to update mingw32 (unable to lock database) error: failed to update mingw64 (unable to lock database) error: failed to update msys (unable to lock database) error: failed to synchronize all databases After that I tried out all the other commands listed in the description and it only says the following: error: failed to init transaction (unable to lock database) error: could not lock database: Permission denied What do? Please halp. I'm on Windows 10, 64bit, have reinstalled MSYS and restarted the computer but nothing helps.
@@moros1138 I thought the aim of programming was to reduce the chaos of the ocean. Well, looks like we've created so much control structures of our own that we unintentionally built our very own sea with its very own kind of chaos. Anyway, happy coding and good night.
I'm trying it on windows with code::blocks.. but I get a compile error on fs_path.h line 237 stating: no match for 'operator!=' ....... On linux everyting works, exept for the sound extension, which gives me compile errors too.. Can you help in any way ?
Thank's very much for this video! Stay safe. :)
If only MSYS64 didn't give errors - bash: xxxx command not found Only thing that works is "ls /usr/bin/"
this sounds, to me, like you've installed the main package without installing the mingw compiler, both I cover in detail in this tutorial.
waaaait, how did you run the example program from within windows and it opened from within your linux desktop 7:12
good catch! i was waiting for someone to notice that. I daily drive linux, therefore all my windows based stuff is in a VM and at the time my VM didn't support proper hardware acceleration, which left the PGE window as a blank white screen. To make the video, I did a jump cut with the linux window in front to "fake" it :)
Very interesting indeed
works in cmd but not in codeblocks
thank you so much!!!
It worked perfectly first time for me by following closely your instructions. The two videos on the subject are very clear and enjoyable. Thank you for your work!
I got an error: At line 237 "no match for 'operator!=' (operand types are 'std:: filesystem::__cxxll::path' and 'std:: filesystem::__cxxll::path')
Great work! Thank you so much.
HaHaHa, first not compiled and next watching the second tutorial about MinGW and now works perfectly.
glad you got it working in the end.
Thanks to this video guide, now understand the usefulness of MSYS2. Thank you Moros for making this 👏🏾
You are a savior! I'm starting to hate MinGW with all my heart!
Yea, If it's possible for you. I recommend using Visual Studio Community. It's free and is generally much better for windows development.
after building i am getting an error at 237... saying "D:\Cblocks\CodeBlocks\MinGW\lib\gcc\x86_64-w64-mingw32\8.1.0\include\c++\bits\fs_path.h|237|error: no match for 'operator!=' (operand types are 'std::filesystem::__cxx11::path' and 'std::filesystem::__cxx11::path')|"........PLEASE HELP , HOW CAN I FIX THIS ISSUE ??!!
Thank you for both videos. In version 2.07 of olcPixelGameEngine you also need to add Dwmapi lib (-lDwmapi).
Hello Bro, fatal error: experimental/filesystem: No such file or directory I am getting this error at line 243 [code]#include <experimental/filesystem>[/code]
check my pinned comment. typically those who are having problems have not installed or configured the proper version of mingw... run "g++ - v" and check that you are using MSYS2 version of mingw. if it does not say MSYS2 in the output of that command, then you should follow my tutorial on installing MSYS2.
@@moros1138 Thank you I think I haven't installed msys2 version
@@humzauddin6692 no problem.. when you do.. make sure you remove the other version from your system path, to make sure you actually use the correct version! I have a video with a tutorial in my pinned comment :)
@@moros1138 I seem to be missing std=c++ 17 on my CodeBlock, I think it is the reason it is not working properly do you know how can I add it to my system? Also, I don't understand. Whose version should I manual remove from my system path? I haven't linked anything to the system path. I have used to the 64bit version that's compatible with my system.
@@humzauddin6692 yes you need to add in linker path -std=c++17 or c++2a
Thank you so much. I've been using my school's linux server for most cpp dev, so I really needed some help setting it up in windows.
Thank you sir.
Thank you a lot ! You save me a lot of time, and I was struggling a lot. I'll also credit you in my project. Thanks again, cheers !
You are very welcome!
THIS TUTORIAL EXPECTS that you have followed my previous tutorial and have installed the proper version of MinGW. If you are encountering problems, trying running "g++ -v" from a command prompt and check that you are using MinGW from MSYS2.. If you are not, you are using the wrong version of MinGW and it is likely the reason you are encountering problems. ua-cam.com/video/jnI1gMxtrB4/v-deo.html
Do you know if there is a way to use the pixel game engine with visual studio code? I can't get it to run.
There is most definitely a way to do it! I use Visual Studio Code religiously. But the method will be slightly different depending on what OS and compiler you're using. I just made a gist with a couple scenarios. Build tasks.json examples for GCC on Linux and MinGW on Windows. gist.github.com/Moros1138/517fae660164587053d97c8b5dc59d03
@@moros1138 Wow thanks so much! I still have one problem tho, i copied the tasks.json and added it to my project but when i try to run it i get the error: file format is not recognized; treating as linker script. do you maybe know why?
I haven't the slightest idea without the details of your build environment. What compiler are you using? What OS? Also, if you're so inclined, you might consider joining the OneLoneCoder discord server. discord.gg/WhwHUMV
@@moros1138 sorry, i'm using windows and MinGW. oops that error was because i hit ctrl+shift+b while on the tasks.son tab. I've tried it on olcExampleProgram.cpp but now i get a whole bunch of errors that don't make any sense. too much errors for the terminal window to show, even when scrolling all the way up.
@@larsh943 just wanted to follow up here, so people coming here don't think I just left you hanging!... we solved the issue via discord. The problem ultimately was having multiple versions of MinGW installed and in the system path. We got it sorted out!
nice tutorial, Moros. Btw I'm Coderish
I'm javidx9 and I approve of this message XD
Awesome work, great tone, good pace.