Page 1 of 2

Having trouble with downloading / using the tutorial code

Posted: June 30th, 2017, 5:23 am
by _MJ_
Hi all,

I'm going through tutorial 7 right now and I don't know how to properly put the tutorial code to use. I downloaded it, unzipped it and opened Chili Framework 2016da. Then I tried to go into debug mode and I get a list of errors on the bottom but no popups like in the tutorial and I can't open the call stack.

Can someone tell me where I'm going wrong? Thanks!

Re: Having trouble with downloading / using the tutorial cod

Posted: June 30th, 2017, 5:40 am
by xu2201g
Hi,
some more details would be good to pin down the problem, like the error messages etc. The errors you get are build errors? I am using visual studio 2017 and had to retarget the project to make it run properly right after opening the solution.

Re: Having trouble with downloading / using the tutorial cod

Posted: June 30th, 2017, 4:40 pm
by _MJ_
What do you mean exactly by retarget? I included a screenshot, hope it helps.

Re: Having trouble with downloading / using the tutorial cod

Posted: June 30th, 2017, 4:46 pm
by cameron
Right click the solution in the solution explorer and retarget it. Alternatively, you can change the platform toolset by right clicking your project and going to project properties.

Re: Having trouble with downloading / using the tutorial cod

Posted: June 30th, 2017, 5:14 pm
by _MJ_
Thanks, I retargeted the solution and when start debug mode I get this. Close but not exactly the same as in the tutorial. Is this OK?

Re: Having trouble with downloading / using the tutorial cod

Posted: June 30th, 2017, 7:26 pm
by albinopapa
This exception is saying that y >= Graphics::ScreenHeight, so somewhere in your code, a pixel is trying to be drawn off screen.

Re: Having trouble with downloading / using the tutorial cod

Posted: June 30th, 2017, 7:28 pm
by xu2201g
Ye thats ok, you watched the callstack already to find this line, didnt you? Now you ve at least two options, you could try to find the error by some intuition and the information given by the assertion which failed:

Code: Select all

assert(y < int(Graphics::ScreenHeight));

//an assertion checks the expression to be true, if its not the assertion fails with an error like u got there
or you go down the callstack even more to get more informations what went wrong there.

The solution you re working with is one of the homeworks just in case you didnt noticed.

Re: Having trouble with downloading / using the tutorial cod

Posted: June 30th, 2017, 9:01 pm
by albinopapa
xu2201g wrote:Ye thats ok, you watched the callstack already to find this line, didnt you? Now you ve at least two options, you could try to find the error by some intuition and the information given by the assertion which failed:

Code: Select all

assert(y < int(Graphics::ScreenHeight));

//an assertion checks the expression to be true, if its not the assertion fails with an error like u got there
or you go down the callstack even more to get more informations what went wrong there.

The solution you re working with is one of the homeworks just in case you didnt noticed.
+1 on answer/response

Re: Having trouble with downloading / using the tutorial cod

Posted: June 30th, 2017, 9:01 pm
by albinopapa
Too bad chili forums don't have the capability to give kudos points or something for good Qs&As.

Re: Having trouble with downloading / using the tutorial cod

Posted: June 30th, 2017, 11:10 pm
by _MJ_
Thanks a lot for all the help!