Register    Login    Forum    Search    FAQ

Board index » Everything




Post new topic Reply to topic  [ 12 posts ]  Go to page 1, 2  Next
Author Message
 Post Posted: June 30th, 2017, 5:23 am 
 

Joined: June 30th, 2017, 5:16 am
Posts: 4
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!


Top 
 Profile  
Reply with quote  
 Post Posted: June 30th, 2017, 5:40 am 
 

Joined: April 19th, 2017, 12:49 pm
Posts: 33
Location: Germany
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.


Top 
 Profile  
Reply with quote  
 Post Posted: June 30th, 2017, 4:40 pm 
 

Joined: June 30th, 2017, 5:16 am
Posts: 4
What do you mean exactly by retarget? I included a screenshot, hope it helps.


Attachments:
ChiliScreenshot7.png [107.01 KiB]
Not downloaded yet
Top 
 Profile  
Reply with quote  
 Post Posted: June 30th, 2017, 4:46 pm 
 

Joined: June 26th, 2012, 5:38 pm
Posts: 759
Location: USA
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.


Top 
 Profile  
Reply with quote  
 Post Posted: June 30th, 2017, 5:14 pm 
 

Joined: June 30th, 2017, 5:16 am
Posts: 4
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
Top 
 Profile  
Reply with quote  
 Post Posted: June 30th, 2017, 7:26 pm 
 

Joined: February 28th, 2013, 3:23 am
Posts: 2714
Location: Oklahoma, United States
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


Top 
 Profile  
Reply with quote  
 Post Posted: June 30th, 2017, 7:28 pm 
 

Joined: April 19th, 2017, 12:49 pm
Posts: 33
Location: Germany
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:
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.


Top 
 Profile  
Reply with quote  
 Post Posted: June 30th, 2017, 9:01 pm 
 

Joined: February 28th, 2013, 3:23 am
Posts: 2714
Location: Oklahoma, United States
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:
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

_________________
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


Top 
 Profile  
Reply with quote  
 Post Posted: June 30th, 2017, 9:01 pm 
 

Joined: February 28th, 2013, 3:23 am
Posts: 2714
Location: Oklahoma, United States
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


Top 
 Profile  
Reply with quote  
 Post Posted: June 30th, 2017, 11:10 pm 
 

Joined: June 30th, 2017, 5:16 am
Posts: 4
Thanks a lot for all the help!


Top 
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
 
Post new topic Reply to topic  [ 12 posts ]  Go to page 1, 2  Next

Board index » Everything


 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for: