Page 1 of 1

Assertion failed - newbie help?

Posted: September 6th, 2019, 12:20 am
by MrSneekz
I was working on the beginner videos for C++ and I was able to do everything thus far (up to pt 4) without any issue on my desktop. My laptop on the other hand for some reason keeps saying Assertion Error when I try to run the debugger. it references line 314 y >= 0 in the graphics.cpp file.

I turned off my desktop but thought it'd be good practice to go through my notes and recreate the steps to my laptop and this happened. :?:

Any help is appreciated...

Re: Assertion failed - newbie help?

Posted: September 6th, 2019, 12:33 am
by MrSneekz
I think i found out my issue... kinda... has something to do with my gfx.PutPixel functions... the numbers it seems do not agree with the barriers of the window.

Re: Assertion failed - newbie help?

Posted: September 6th, 2019, 12:44 am
by MrSneekz
I solved my issue. the compiler doesn't like functions that include : gfx.PutPixel(reticle_x, 4 - reticle_y, 255, gb, gb);
so i initially had a ton of values that were all saying :
2 - reticle_y
3 - reticle_y

etc...

when I needed to be stating :
reticle_y - 5
reticle_y - 2
etc...

Sorry for posting here and then figuring it out myself.

:?

Re: Assertion failed - newbie help?

Posted: September 10th, 2019, 6:52 am
by DEM0N194
It's okay man... figuring it out yourself is the best! But don't hesitate to post again.

Re: Assertion failed - newbie help?

Posted: September 12th, 2019, 9:43 am
by chili
Rubber ducky at its finest :D