Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Game Development
  4. Colliding item not working (unable to create a debugging engine aswell?)
Forum Updated to NodeBB v4.3 + New Features

Colliding item not working (unable to create a debugging engine aswell?)

Scheduled Pinned Locked Moved Unsolved Game Development
9 Posts 3 Posters 2.2k Views 3 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    MongKong
    wrote on last edited by aha_1980
    #1

    so i'm making a ship game. So far i made it so my ship moves using arrow keys:
    0_1551894166202_2ab428cb-1997-4f50-8885-ec7b10bf3800-image.png

    I want to spawn an island but when i do that my game crashes:
    0_1551894430792_1e1e936a-ace7-4338-90b1-71e688622b36-image.png

    this is the code where i start my program ( set scene, call player class and island, etc. )
    0_1551894500874_29850fce-a44b-4197-b8ef-1d50dc76ceab-image.png

    this is class Island's source code:
    0_1551894543104_ac1c1c5f-45d9-4de9-bc70-201ee6769d68-image.png

    this is class Island's header file:
    0_1551894584871_079ee92b-6774-4804-8bbb-264f13920e22-image.png

    Can someone please tell me why is my game crashing and if possible how to fix it ?
    I want to make so that every time i spawn island it doesnt spawn where the Player is and where an already existing Island is.

    1 Reply Last reply
    0
    • CKurduC Offline
      CKurduC Offline
      CKurdu
      wrote on last edited by
      #2
      This post is deleted!
      1 Reply Last reply
      0
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #3

        Hi,

        You should run your application through the debugger and then post the stack trace. This will give more information about what is happening when your application crash.

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        M 1 Reply Last reply
        3
        • SGaistS SGaist

          Hi,

          You should run your application through the debugger and then post the stack trace. This will give more information about what is happening when your application crash.

          M Offline
          M Offline
          MongKong
          wrote on last edited by
          #4

          @SGaist

          I can't... this is what i get when i press F5 :
          0_1551969547903_d8a96764-87a4-40b3-8287-7d2aaf71d451-image.png

          And i'm pretty sure i have it set all righty. this is the kit im using
          0_1551969601809_d536d4c4-1cd1-46f2-9d7e-b18e6730d1e9-image.png

          and this is the debugger:
          0_1551969621216_d6836611-5526-44eb-96ec-2e207af89887-image.png

          1 Reply Last reply
          0
          • SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by
            #5

            Can you successfully start the debugger from the command line ?

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            M 1 Reply Last reply
            1
            • SGaistS SGaist

              Can you successfully start the debugger from the command line ?

              M Offline
              M Offline
              MongKong
              wrote on last edited by
              #6

              @SGaist
              Hmm... Havent tried that, plus i dont know how to... If you know how to do it, could you tell me or provide me a link where i can follow the instructions on how to run it?

              1 Reply Last reply
              0
              • SGaistS Offline
                SGaistS Offline
                SGaist
                Lifetime Qt Champion
                wrote on last edited by
                #7

                Call gdb.exe using the full path in a command prompt would be the starting point.

                Interested in AI ? www.idiap.ch
                Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                M 1 Reply Last reply
                1
                • SGaistS SGaist

                  Call gdb.exe using the full path in a command prompt would be the starting point.

                  M Offline
                  M Offline
                  MongKong
                  wrote on last edited by
                  #8

                  @SGaist
                  This is what pops up:
                  0_1552125166152_99e3d754-8d66-4f27-ac56-36e887cb6398-image.png

                  1 Reply Last reply
                  0
                  • SGaistS Offline
                    SGaistS Offline
                    SGaist
                    Lifetime Qt Champion
                    wrote on last edited by
                    #9

                    So this means that the gdb itself is working.

                    Interested in AI ? www.idiap.ch
                    Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                    1 Reply Last reply
                    0

                    • Login

                    • Login or register to search.
                    • First post
                      Last post
                    0
                    • Categories
                    • Recent
                    • Tags
                    • Popular
                    • Users
                    • Groups
                    • Search
                    • Get Qt Extensions
                    • Unsolved