Page 1 of 2 12 LastLast
Results 1 to 10 of 15

Thread: Evil Monkeys

  1. #1
    Join Date
    Dec 2006
    Location
    Germany
    Posts
    30

    Evil Monkeys

    Hello,

    everything was okay until i added the fireball and mage classes, it compiles and runs without errors but the reset to position 0,0 occours only 2 times
    when the enemy touch me in the third touch i remain on the same position(no reset to 0,0.

    The other problem is when i kill two enemies and i fire the next fireball to kill the last one the following message comes:

    Debug Assertion Failed!

    Program:....

    File:c\program files\.....\vc\include\list
    Line: 262


    Expression: list iterator not decrementable



    Can somebody help me please?

    Thanks.

  2. #2
    Join Date
    Jul 2005
    Location
    Scotland
    Posts
    962
    Check the Thread of Information it a sticky on the C++ General dicussion forum, it has bug fixes for the evil Monkey's game

  3. #3
    Join Date
    Dec 2006
    Location
    Germany
    Posts
    30
    Thanks for reply, but i didn't found the answer.
    It will be nice if you provide a direct link to the thread.

  4. #4
    Join Date
    Feb 2004
    Location
    U.K.
    Posts
    590
    This is the thread:
    http://www.3dbuzz.com/vbforum/showthread.php?t=122895
    This is the post:
    http://www.3dbuzz.com/vbforum/showpo...29&postcount=8

    As a general tip. ALWAYS read the stickies on a new forum.

    It wasn't hard to find, stickies are always at the top.

  5. #5
    Join Date
    Sep 2004
    Location
    UK
    Posts
    370
    Isn't hard to find, it's a sticky post right at the top of this forum.

    http://www.3dbuzz.com/vbforum/showth...895#post994129

    Edit: Beaten by seconds


    XNA Tip #1: Take it easy on the garbage collector, and your performance will thank you.

  6. #6
    Join Date
    Dec 2006
    Location
    Germany
    Posts
    30
    Okay, this forum is just fantastic, such quick replies

    I appreciate your efforts, thanks again everybody.

  7. #7
    Join Date
    Dec 2006
    Location
    Germany
    Posts
    30
    O.K

    I am now on VTM 5 Game Design, and just finished the third lesson(Adding Game Code)

    I have made all the changes required but when compiling i get the following errors:

    This error 2 times:
    1. drawengine.cpp(27) : error C2679: binary '=' : no operator found which takes a right-hand operand of type 'wxBitmap *' (or there is no acceptable conversion).
    At this line:

    Code:
    spriteImage[index] = new wxBitmap(img);

    This error 3 times:
    2 drawengine.cpp(40) : error C2100: illegal indirection.
    At this line:
    Code:
    dc.DrawBitmap(*spriteImage[index], wxPoint(posx * GRID_SIZE, posy * GRID_SIZE), true);
    What could be the reason for that!!

  8. #8
    Join Date
    Aug 2004
    Location
    little rock arkansas
    Posts
    3,482

    Talking

    is sprite Image a wxBitmap Pointer?
    that might solve your first problem
    ME WANT AGENTS ME WANT AGENTS ME WANT AGENTS

  9. #9
    Join Date
    Dec 2006
    Location
    Germany
    Posts
    30
    Yes, you are right, that solved the first and the second problem(i forget the * in the declaration of spriteImage and tileImage)

    Now it runs ok, but down in the output window it reads:

    Detected memory leaks!
    Dumping objects ->
    {2006} normal block at 0x00F23C00, 12 bytes long.
    Data: < G P; ; > 88 47 F2 00 50 3B F2 00 98 3B F2 00
    {2005} normal block at 0x00F23B98, 44 bytes long.
    Data: < d E p > F0 B0 64 00 02 00 00 00 E8 45 F2 00 70 F0 F1 00
    {2004} normal block at 0x00F23B50, 12 bytes long.
    Data: < < : : > 00 3C F2 00 A0 3A F2 00 E8 3A F2 00
    {2003} normal block at 0x00F23AE8, 44 bytes long.
    Data: < d E p > F0 B0 64 00 02 00 00 00 E8 45 F2 00 70 F0 F1 00
    {2002} normal block at 0x00F23AA0, 12 bytes long.
    Data: <P; G 8: > 50 3B F2 00 88 47 F2 00 38 3A F2 00
    {2001} normal block at 0x00F23A38, 44 bytes long.
    Data: < d E p > F0 B0 64 00 02 00 00 00 E8 45 F2 00 70 F0 F1 00
    {1800} normal block at 0x00F239C8, 48 bytes long.
    Data: <L d E p > 4C B8 64 00 04 00 00 00 E8 45 F2 00 70 F0 F1 00
    {1799} normal block at 0x00F23980, 10 bytes long.
    Data: < > 01 01 01 01 01 01 01 01 01 01
    {1798} normal block at 0x00F23938, 10 bytes long.
    Data: < > 01 00 00 01 00 00 00 00 00 01
    {1797} normal block at 0x00F238F0, 10 bytes long.
    Data: < > 01 00 00 00 01 00 00 01 00 01
    {1796} normal block at 0x00F238A8, 10 bytes long.
    Data: < > 01 00 00 00 00 00 01 00 00 01
    {1795} normal block at 0x00F24FB8, 10 bytes long.
    Data: < > 01 00 00 00 00 00 00 01 00 01
    {1794} normal block at 0x00F24F70, 10 bytes long.
    Data: < > 01 00 00 00 00 00 00 00 00 01
    {1793} normal block at 0x00F24F28, 10 bytes long......................


    I think that is not good, do you agree with me?

  10. #10
    Join Date
    Aug 2004
    Location
    little rock arkansas
    Posts
    3,482

    Talking

    Quote Originally Posted by allany View Post
    Yes, you are right, that solved the first and the second problem(i forget the * in the declaration of spriteImage and tileImage)

    Now it runs ok, but down in the output window it reads:

    Detected memory leaks!
    Dumping objects ->
    {2006} normal block at 0x00F23C00, 12 bytes long.
    Data: < G P; ; > 88 47 F2 00 50 3B F2 00 98 3B F2 00
    {2005} normal block at 0x00F23B98, 44 bytes long.
    Data: < d E p > F0 B0 64 00 02 00 00 00 E8 45 F2 00 70 F0 F1 00
    {2004} normal block at 0x00F23B50, 12 bytes long.
    Data: < < : : > 00 3C F2 00 A0 3A F2 00 E8 3A F2 00
    {2003} normal block at 0x00F23AE8, 44 bytes long.
    Data: < d E p > F0 B0 64 00 02 00 00 00 E8 45 F2 00 70 F0 F1 00
    {2002} normal block at 0x00F23AA0, 12 bytes long.
    Data: <P; G 8: > 50 3B F2 00 88 47 F2 00 38 3A F2 00
    {2001} normal block at 0x00F23A38, 44 bytes long.
    Data: < d E p > F0 B0 64 00 02 00 00 00 E8 45 F2 00 70 F0 F1 00
    {1800} normal block at 0x00F239C8, 48 bytes long.
    Data: <L d E p > 4C B8 64 00 04 00 00 00 E8 45 F2 00 70 F0 F1 00
    {1799} normal block at 0x00F23980, 10 bytes long.
    Data: < > 01 01 01 01 01 01 01 01 01 01
    {1798} normal block at 0x00F23938, 10 bytes long.
    Data: < > 01 00 00 01 00 00 00 00 00 01
    {1797} normal block at 0x00F238F0, 10 bytes long.
    Data: < > 01 00 00 00 01 00 00 01 00 01
    {1796} normal block at 0x00F238A8, 10 bytes long.
    Data: < > 01 00 00 00 00 00 01 00 00 01
    {1795} normal block at 0x00F24FB8, 10 bytes long.
    Data: < > 01 00 00 00 00 00 00 01 00 01
    {1794} normal block at 0x00F24F70, 10 bytes long.
    Data: < > 01 00 00 00 00 00 00 00 00 01
    {1793} normal block at 0x00F24F28, 10 bytes long......................


    I think that is not good, do you agree with me?
    WHOAH man
    that is ...umm a strange thing to see on the screen
    i have no answer at the moment for that one
    ME WANT AGENTS ME WANT AGENTS ME WANT AGENTS

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •