Having trouble with downloading / using the tutorial code
Having trouble with downloading / using the tutorial code
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!
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
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.
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
What do you mean exactly by retarget? I included a screenshot, hope it helps.
- Attachments
-
- ChiliScreenshot7.png
- (107.01 KiB) Not downloaded yet
Re: Having trouble with downloading / using the tutorial cod
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.
Computer too slow? Consider running a VM on your toaster.
Re: Having trouble with downloading / using the tutorial cod
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?
- Attachments
-
- ChiliScreenshot7.png
- (54.55 KiB) Not downloaded yet
-
- Posts: 4373
- Joined: February 28th, 2013, 3:23 am
- Location: Oklahoma, United States
Re: Having trouble with downloading / using the tutorial cod
This exception is saying that y >= Graphics::ScreenHeight, so somewhere in your code, a pixel is trying to be drawn off screen.
If you think paging some data from disk into RAM is slow, try paging it into a simian cerebrum over a pair of optical nerves. - gameprogrammingpatterns.com
Re: Having trouble with downloading / using the tutorial cod
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:
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.
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
The solution you re working with is one of the homeworks just in case you didnt noticed.
-
- Posts: 4373
- Joined: February 28th, 2013, 3:23 am
- Location: Oklahoma, United States
Re: Having trouble with downloading / using the tutorial cod
+1 on answer/responsexu2201g 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:
or you go down the callstack even more to get more informations what went wrong there.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
The solution you re working with is one of the homeworks just in case you didnt noticed.
If you think paging some data from disk into RAM is slow, try paging it into a simian cerebrum over a pair of optical nerves. - gameprogrammingpatterns.com
-
- Posts: 4373
- Joined: February 28th, 2013, 3:23 am
- Location: Oklahoma, United States
Re: Having trouble with downloading / using the tutorial cod
Too bad chili forums don't have the capability to give kudos points or something for good Qs&As.
If you think paging some data from disk into RAM is slow, try paging it into a simian cerebrum over a pair of optical nerves. - gameprogrammingpatterns.com
Re: Having trouble with downloading / using the tutorial cod
Thanks a lot for all the help!