r/Limeoats • u/Facerapeu • May 23 '16
So, what happened to the treetop videos?
title
r/Limeoats • u/NoFaTe121 • Oct 03 '15
Hey, I just wanted to let you know of a problem i ran into.
In episode 9 you wrote this code in level.cpp to calculate the position of a tile in a tileset. Everything works fine with the cave level you created, but it doesnt work for all corner cases when loading a map.
I made a test level with this test_tileset.png and this map. Loading my map with your code looks like this: http://imgur.com/R4Qhmc1
If you compare that to the tileset image you can see that the last column is missing. That is because you get negative values for tsxx.
Here a little fix for that:
int tsxx = (gid - 1) % (tilesetWidth / tileWidth);
tsxx *= tileWidth;
int tsyy = 0;
int amt = ((gid - 1) / (tilesetWidth / tileWidth));
tsyy = tileHeight * amt;Result: http://imgur.com/DofIyGL
This also probably doesn't work with more than one tileset, but that's another problem.
Also, keep up the good work.
r/Limeoats • u/Limeoats • Oct 14 '15
r/Limeoats • u/SealLionGar • Jan 13 '21
Thank you so much for your Cavestory videos, but I'm off to a slow start, how do I compile? I'm using visual studio code.
r/Limeoats • u/Broken_Rose63 • May 10 '19
Loving the video series, so far!
Simple question here:
Why is a graphics object created as a private member in the game class, when ther's a graphics object created in the gameloop? I've tried to use the same object throughout the entire program, but then my game fails to display things properly (it still responds to input and collisions, so I'm 99% sure its merely a graphical issue).
I'm only asking this question as in Episode 16, it was handwaived off as being a 'weird' method. Is there a better way to do this then?
Thanks!
r/Limeoats • u/Limeoats • Oct 10 '15
r/Limeoats • u/sustrak • Oct 10 '15
Hi, as the title says I'm having trouble setting up the SDL2 library on eclipse. I've followed all the steps showed on the first video but eclipse seems that it doesn't link it properly. I've also installed the SDL2 library from the terminal using:
brew install SDL2and imported all the folders to eclipse where SDL2 is.
Here is the error from the eclipse's console:
15:57:39 **** Incremental Build of configuration Debug for project Cavestory ****
make all
Building target: Cavestory
Invoking: Cross G++ Linker
g++ -L/Library/Frameworks/SDL2.framework/Versions/A/Headers -framework SDL2 -framework Cocoa -o "Cavestory" ./Source/Main.o -l/usr/local/Cellar/sdl2/2.0.3/include/SDL2
ld: framework not found SDL2
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [Cavestory] Error 1
15:57:41 Build Finished (took 1s.468ms)If you need more info about my eclipse set up let me know and I try to upload some screenshots.
Thank you.
r/Limeoats • u/Limeoats • Oct 06 '15
r/Limeoats • u/Limeoats • Oct 08 '15
r/Limeoats • u/Limeoats • Oct 09 '15
r/Limeoats • u/Lemiho19 • Jan 31 '18
Hey I'm trying to release the project I created using sdl just as your series has taught and it runs fine in debug mode but when I attempt to do make the release version it can't find the sdl.h then after adding sdl.h it asks for sdlmain.h ect so would it be best to add the entire sdl folder to my project or is there a simple solution to this also should I put the sdl folder inside of my release folder or in my regular folder
Using visual studio 17 on Windows if it matters
r/Limeoats • u/Limeoats • May 05 '16
r/Limeoats • u/Limeoats • Oct 02 '15
r/Limeoats • u/G01denW01f11 • Oct 09 '15
I've been following along through episode 11, and everything's working just fine. Then I swap out my Map 1.tmx for the updated one, and I get Error: Unable to load image.
My project looks something like this:
/CaveStory
/content
/maps
Map 1.tmx
/tilesets
-PrtCave.png
/source
/headers
/srcI print the paths of the tmx and png files as I load them and get
content/maps/Map 1.tmx
content/tilesets/PrtCave.pngI've also tried using ~/workspace/CaveStory/content/tilesets/PrtCave.png, but same error.
I can get the map to load in Tiled if I changed the image source to ../tilesets/PrtCave.png, but still not working in Eclipse.
Any hints?
r/Limeoats • u/Limeoats • May 05 '16
r/Limeoats • u/Limeoats • May 05 '16
r/Limeoats • u/Limeoats • Oct 08 '15
r/Limeoats • u/ripplep • Oct 18 '15
Hey guys, I know this has probably been asked, but I'm really struggling. I've tried Eclipse and Visual Studio and can't seem to get SDL2 working with either of them. Worse off, I may have screwed something up worse when trying to get SDL2 working with Eclipse (as I added mingw to comp and am unsure if I did it right).
Anyone else have a guide or video that seemed to work for them?
r/Limeoats • u/Limeoats • Oct 07 '15
r/Limeoats • u/witfang • May 06 '16
So I just finished episode 11 of Remaking Cavestory in C++, following along with Limeoats as he goes. I made my own collisions map in Tiled, but I have some rather entertaining bugs pop up...
For reference, my map in Tiled looks like this:
I'm pretty sure the "falling through the map" issue has to do with jumping on a slope when I don't have enough room to do so, but I have no idea what the "bouncy slope" issue is. Maybe conflicting re-placements from the different collision elements? At any rate, I'd appreciate input to help squash these bugs if anyone has any, otherwise I hope you get a laugh out of them.
r/Limeoats • u/ripplep • Oct 19 '15
Hey, rather than flooding the subreddit with tons of questions, I thought I'd post a couple here.
The first is in the title. I never thought about it, but I have just been including SDL.h because when I typed SDL2/SDL.h it doesn't work. I'm on episode 4. Is this a problem?
Also, I just reached the end of episode 4 and am now getting linker errors stating that:
'msvcrt.lib' conflicts with use of other libs; use /NODEFAULTLIB:library ...\MSVCRTD.lib(cinitexe.obj)
Now, the program won't run. It was working up until a few minutes ago, even after I included the SDL_image, there didn't seem to be any problems. Any clue as to why that's happening?
P.S. Using Visual Studio 2013
EDIT: I tried uninstalling and reinstalling SDL2 and SDL2_image. That didn't seem to solve the problem. Still getting the same error where 'mvscrt.lib' conflicts
r/Limeoats • u/krashton1 • Jan 17 '17
Finishing lecture 7 on the cavestory program. We generally have a sprite with a transparent background walking around. However, whenever I edit my png with any program, cavestory fails to find the image. I created a short video demonstrating the problem.
https://m.youtube.com/watch?v=v1IT5Soifk8&feature=youtu.be
I'm not sure what to do now. If I use the original and converted pbm file then it works fine (albeit with a black background). But if I create a new png, visual studio can't find the image.
I have tried using a bmp file instead but when I do that, it doesn't seem to save the transparency. Instead it's a white background instead of black. jp2 files have same problem as png.
Sorry for bad formatting, on mobile.
**
EDIT: I finally created a workaround.
First thing I tried was converting to .bmp. Didn't work.
Tried using a pmb to png converter. Didnt work
Tried scrubbing the files of their meta data. Didn't work
Tried using a multitude of programs including paint.net, gimp, ms paint (obviously this one wouldn't work but I was just trying to get image to show up at all after being edited). Didnt work
Tried messing with the bit depths (because the original pmb had a bit depth of 4 and paint.net saved in a minimum of 8). Didnt work.
Tried downloading imageMagick (a mess of a program) to force the image into bit depth 4. Program didnt work.
What did finally work, oddly enough is using paint.net and saving the image in .gif and then loading that into cavestory. Im clueless as to why, bit depth is still not 4 but its working.
**
tl;dr
Save the image in .gif format and load it in visual studio still in .gif. Or once it is saved in .gif, you can even just rename the file extension and enter .png and it will work.
r/Limeoats • u/vecima • Jan 12 '17
Hi All, I've been a software developer for a while, but I haven't done C++ in a long time and I thought I'd try it out with some game developement. I'm following the tutorial on youtube for Remaking Cavestory in C++ (great tutorial so far). I'm on Episode 4. I liked the sound of doing some 64 bit dev, so after a bunch of struggling I got SDL2 to work, scouring the internet and some trial & error I got it set up using the x86_64 libraries with a MinGW-w64 installation. I opted not to copy lib and include files into mingw as suggested by some guides. Instead, I figured I could "point" eclipse at the proper folders and everything should work. This was true up until trying to integrate the SDL_Image library. I have everything set up such that SDL.h is found by the compiler, and SDL_image.h is found by the compiler. That is, the SDL.h and SDL_image.h as referenced by my project code are fine. The problem is the compiler fails on SDL_image.h because IT references SDL.h and that reference is apparently bad.
Windows 10 64 bit (pro I think, though I doubt it matters)
eclipse Neon.2 (4.6.2)
MinGW-w64 (I think 4.3.0)
SDL2 (2.0.5)
SDL_image (2.0.1)Here's where all of my files are:
C:\MinGW-w64\mingw64
C:\MinGW-w64\mingw64\bin
C:\MinGW-w64\mingw64\include
C:\MinGW-w64\mingw64\lib
C:\MinGW-w64\mingw64\x86_64-w64-mingw32
C:\MinGW-w64\mingw64\x86_64-w64-mingw32\bin
C:\MinGW-w64\mingw64\x86_64-w64-mingw32\include
C:\MinGW-w64\mingw64\x86_64-w64-mingw32\lib
F:\Dev\SDL2-2.0.5\x86_64-w64-mingw32
F:\Dev\SDL2-2.0.5\x86_64-w64-mingw32\bin
F:\Dev\SDL2-2.0.5\x86_64-w64-mingw32\include
F:\Dev\SDL2-2.0.5\x86_64-w64-mingw32\lib
F:\Dev\SDL2_image-2.0.1\x86_64-w64-mingw32
F:\Dev\SDL2_image-2.0.1\x86_64-w64-mingw32\bin
F:\Dev\SDL2_image-2.0.1\x86_64-w64-mingw32\include
F:\Dev\SDL2_image-2.0.1\x86_64-w64-mingw32\libIn eclipse I have the following configured:
Project -> Properties -> C/C++ Build -> Settings -> Tool Settings -> GCC C++ Compiler -> Includes:
"${workspace_loc:/cavestory-development/source/headers}"
"F:\Dev\SDL2-2.0.5\x86_64-w64-mingw32\include"
"F:\Dev\SDL2_image-2.0.1\x86_64-w64-mingw32\include"Project -> Properties -> C/C++ Build -> Settings -> Tool Settings -> MinGW C++ Linker -> Libraries:
(top box: Libraries (-l))
SDL2
SDL2main
SDL2_image(bottom box: Library search path (-L)
"F:\Dev\SDL2-2.0.5\x86_64-w64-mingw32\lib"
"F:\Dev\SDL2_image-2.0.1\x86_64-w64-mingw32\lib"Project -> Properties -> C/C++ General -> Paths and Symbols -> Includes -> GNU C++:
/cavestorye-development/source/headers
F:\Dev\SDL2-2.0.5\x86_64-w64-mingw32\include
F:\Dev\SDL2_image-2.0.1\x86_64-w64-mingw32\includeProject -> Properties -> C/C++ General -> Paths and Symbols -> Libraries:
SDL2
SDL2main
SDL2_imageProject -> Properties -> C/C++ General -> Paths and Symbols -> Library Paths:
F:\Dev\SDL2-2.0.5\x86_64-w64-mingw32\lib
F:\Dev\SDL2_image-2.0.1\x86_64-w64-mingw32\libI've also copied all of the DLLs from these two folders into my Debug (where my .exe is created)
F:\Dev\SDL2-2.0.5\x86_64-w64-mingw32\bin
F:\Dev\SDL2_image-2.0.1\x86_64-w64-mingw32\binWhen I build the project, I get the following error:
F:\Dev\SDL2_image-2.0.1\x86_64-w64-mingw32\include/SDL2/SDL_image.h:27:17: fatal error: SDL.h: No such file or directoryIt seems that when the compiler looks at SDL_image.h, it sees that THAT file includes SDL.h, which it can't find. Again, this worked when I was only including SDL2, and broke when I tried to include SDL2_image because the image library references the normal library in a way that can't be reconciled.
Has anyone dealt with this before? Let me know if I've left out any pertinent information.
EDIT: Formatting
r/Limeoats • u/TryingToSit • Jan 10 '16
Hey all -
I am having trouble setting up SDL inside VS2015 to work through the cavestory remake tutorial series. Is anyone familiar with all the steps required to make this happen? And also what type of project I should be making? Win32 console or something else?
Thanks in advance!