Jump to content

  • Log In with Google      Sign In   
  • Create Account


Member Since 29 Sep 2005
Offline Last Active Apr 17 2013 01:22 PM

Posts I've Made

In Topic: [C++] Elusive access violation error

11 April 2013 - 01:04 PM



That seems to have fixed it. I didn't think about that. I had set the minimum to (1,1) to prevent from reaching memory in front of the vector but didn't think about it in the sense of after the vector.


Thank you and everyone else who assisted with this. Now I can clean this code up and finally move on to actually making this into a game.

In Topic: [C++] Elusive access violation error

10 April 2013 - 11:52 PM

Unfortunately after doing that I still haven't come up with anything useful in helping me track down the error (it didn't occur). The only thing I can think to start doing now is disabling things one at a time to see if it keeps coming. It's too late for me to keep looking tonight. I'll give it another go tomorrow.

In Topic: [C++] Elusive access violation error

10 April 2013 - 10:20 PM

Thanks for the advice on the naming with the underscores and typedef. I don't have any of the room/map in a class. The map is just a struct and the features are just vectors of CHAR_INFO type.


Unfortunately I haven't been able to see the stack trace because I haven't been able to recreate it with the debugger running.

In Topic: VB.Net NPC Problem

20 April 2012 - 01:27 AM

This could be implemented with classes fairly easily. For instance, you could make a demographic class that stores an identifier for the demographic type and some list of types of items they'd likely buy.

Then in an items class you could add an item type member to group the products. Then all you'd have to do is give each customer a demographic and compare the item's type with the list of item types that customer type would likely buy, if there is a match, they buy. If not, they don't.

Using a design similar to this would allow you to easily expand or reduce the number of customer types you have as well as the kinds of items they would buy.

Hope that helps.

In Topic: Specific question about pointers to arrays

29 March 2012 - 09:59 PM

Thank you for the quick response.

The first part I didn't think about. The second question i figured out after rereading the code again.