Assertion failed - newbie help?

The Partridge Family were neither partridges nor a family. Discuss.
Post Reply
MrSneekz
Posts: 9
Joined: September 6th, 2019, 12:07 am

Assertion failed - newbie help?

Post by MrSneekz » September 6th, 2019, 12:20 am

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...
Attachments
Solution.zip
I hope this is right...
(751 Bytes) Not downloaded yet

MrSneekz
Posts: 9
Joined: September 6th, 2019, 12:07 am

Re: Assertion failed - newbie help?

Post by MrSneekz » September 6th, 2019, 12:33 am

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.

MrSneekz
Posts: 9
Joined: September 6th, 2019, 12:07 am

Re: Assertion failed - newbie help?

Post by MrSneekz » September 6th, 2019, 12:44 am

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.

:?

User avatar
DEM0N194
Posts: 28
Joined: April 15th, 2017, 4:14 pm
Location: Slovakia
Contact:

Re: Assertion failed - newbie help?

Post by DEM0N194 » September 10th, 2019, 6:52 am

It's okay man... figuring it out yourself is the best! But don't hesitate to post again.

User avatar
chili
Site Admin
Posts: 3841
Joined: December 31st, 2011, 4:53 pm
Location: Japan
Contact:

Re: Assertion failed - newbie help?

Post by chili » September 12th, 2019, 9:43 am

Rubber ducky at its finest :D
Chili

Post Reply