GithubHelp home page GithubHelp logo

Comments (6)

juzzlin avatar juzzlin commented on June 2, 2024

Works for me. Does it print any errors?

from dustracing2d.

juzzlin avatar juzzlin commented on June 2, 2024

If you run the game with --debug it should print something like this:

...
Tue May 12 10:51:51 2020 <D> Current lap record: 16080
Tue May 12 10:51:51 2020 <D> New lap record: 15856
Tue May 12 10:51:51 2020 <D> Updated lap record database entry for Ring
...

from dustracing2d.

juzzlin avatar juzzlin commented on June 2, 2024

I can revert that commit it really causes this, but it just adds trivial threading..

from dustracing2d.

Wuzzy2 avatar Wuzzy2 commented on June 2, 2024

Output from a debug session on 1babb5b:

Wed May 13 13:45:09 2020 <I> Hard selected.
Wed May 13 13:45:10 2020 <I> 1 laps selected.
Wed May 13 13:45:12 2020 <D> Route direction: -90
Wed May 13 13:45:12 2020 <D> Car 11 location: [ 2432, 597.333, 0 ]
Wed May 13 13:45:12 2020 <D> Car 11 rotation: 0
Wed May 13 13:45:12 2020 <D> Start grid location: [ 2453, 597.333, 0 ]
Wed May 13 13:45:12 2020 <D> Start grid rotation: 0
Wed May 13 13:45:12 2020 <D> Car 10 location: [ 2464, 682.667, 0 ]
Wed May 13 13:45:12 2020 <D> Car 10 rotation: 0
Wed May 13 13:45:12 2020 <D> Start grid location: [ 2485, 682.667, 0 ]
Wed May 13 13:45:12 2020 <D> Start grid rotation: 0
Wed May 13 13:45:12 2020 <D> Car 9 location: [ 2240, 597.333, 0 ]
Wed May 13 13:45:12 2020 <D> Car 9 rotation: 0
Wed May 13 13:45:12 2020 <D> Start grid location: [ 2261, 597.333, 0 ]
Wed May 13 13:45:12 2020 <D> Start grid rotation: 0
Wed May 13 13:45:12 2020 <D> Car 8 location: [ 2272, 682.667, 0 ]
Wed May 13 13:45:12 2020 <D> Car 8 rotation: 0
Wed May 13 13:45:12 2020 <D> Start grid location: [ 2293, 682.667, 0 ]
Wed May 13 13:45:12 2020 <D> Start grid rotation: 0
Wed May 13 13:45:12 2020 <D> Car 7 location: [ 2048, 597.333, 0 ]
Wed May 13 13:45:12 2020 <D> Car 7 rotation: 0
Wed May 13 13:45:12 2020 <D> Start grid location: [ 2069, 597.333, 0 ]
Wed May 13 13:45:12 2020 <D> Start grid rotation: 0
Wed May 13 13:45:12 2020 <D> Car 6 location: [ 2080, 682.667, 0 ]
Wed May 13 13:45:12 2020 <D> Car 6 rotation: 0
Wed May 13 13:45:12 2020 <D> Start grid location: [ 2101, 682.667, 0 ]
Wed May 13 13:45:12 2020 <D> Start grid rotation: 0
Wed May 13 13:45:12 2020 <D> Car 5 location: [ 1856, 597.333, 0 ]
Wed May 13 13:45:12 2020 <D> Car 5 rotation: 0
Wed May 13 13:45:12 2020 <D> Start grid location: [ 1877, 597.333, 0 ]
Wed May 13 13:45:12 2020 <D> Start grid rotation: 0
Wed May 13 13:45:12 2020 <D> Car 4 location: [ 1888, 682.667, 0 ]
Wed May 13 13:45:12 2020 <D> Car 4 rotation: 0
Wed May 13 13:45:12 2020 <D> Start grid location: [ 1909, 682.667, 0 ]
Wed May 13 13:45:12 2020 <D> Start grid rotation: 0
Wed May 13 13:45:12 2020 <D> Car 3 location: [ 1664, 597.333, 0 ]
Wed May 13 13:45:12 2020 <D> Car 3 rotation: 0
Wed May 13 13:45:12 2020 <D> Start grid location: [ 1685, 597.333, 0 ]
Wed May 13 13:45:12 2020 <D> Start grid rotation: 0
Wed May 13 13:45:12 2020 <D> Car 2 location: [ 1696, 682.667, 0 ]
Wed May 13 13:45:12 2020 <D> Car 2 rotation: 0
Wed May 13 13:45:12 2020 <D> Start grid location: [ 1717, 682.667, 0 ]
Wed May 13 13:45:12 2020 <D> Start grid rotation: 0
Wed May 13 13:45:12 2020 <D> Car 1 location: [ 1472, 597.333, 0 ]
Wed May 13 13:45:12 2020 <D> Car 1 rotation: 0
Wed May 13 13:45:12 2020 <D> Start grid location: [ 1493, 597.333, 0 ]
Wed May 13 13:45:12 2020 <D> Start grid rotation: 0
Wed May 13 13:45:12 2020 <D> Car 0 location: [ 1504, 682.667, 0 ]
Wed May 13 13:45:12 2020 <D> Car 0 rotation: 0
Wed May 13 13:45:12 2020 <D> Start grid location: [ 1525, 682.667, 0 ]
Wed May 13 13:45:12 2020 <D> Start grid rotation: 0
Wed May 13 13:45:32 2020 <D> Lap (1) completed for car index=10: 14368
Wed May 13 13:45:32 2020 <D> Current personal best time: -1
Wed May 13 13:45:32 2020 <D> New personal best time: 14368
Wed May 13 13:45:33 2020 <D> Lap (1) completed for car index=8: 14928
Wed May 13 13:45:33 2020 <D> Current personal best time: -1
Wed May 13 13:45:33 2020 <D> New personal best time: 14928
Wed May 13 13:45:33 2020 <D> Lap (1) completed for car index=9: 14976
Wed May 13 13:45:33 2020 <D> Current personal best time: -1
Wed May 13 13:45:33 2020 <D> New personal best time: 14976
Wed May 13 13:45:33 2020 <D> Lap (1) completed for car index=0: 15024
Wed May 13 13:45:33 2020 <D> Current personal best time: -1
Wed May 13 13:45:33 2020 <D> New personal best time: 15024
Wed May 13 13:45:33 2020 <D> Human lap completed: 15024
Wed May 13 13:45:33 2020 <D> Current lap record: -1
Wed May 13 13:45:33 2020 <D> New lap record: 15024
QSqlDatabasePrivate::database: requested database does not belong to the calling thread.
QSqlQuery::prepare: database not open
Wed May 13 13:45:33 2020 E: SQL Error: '': 'Driver not loaded Driver not loaded'
QSqlDatabasePrivate::database: requested database does not belong to the calling thread.
QSqlQuery::prepare: database not open
Wed May 13 13:45:33 2020 E: SQL Error: '': 'Driver not loaded Driver not loaded'
Wed May 13 13:45:33 2020 <D> New best position database entry added for Ring
Wed May 13 13:45:33 2020 <D> New track unlock database entry added for Infinity
Wed May 13 13:45:34 2020 <D> Lap (1) completed for car index=7: 15648
Wed May 13 13:45:34 2020 <D> Current personal best time: -1
Wed May 13 13:45:34 2020 <D> New personal best time: 15648
Wed May 13 13:45:34 2020 <D> Lap (1) completed for car index=6: 15984
Wed May 13 13:45:34 2020 <D> Current personal best time: -1
Wed May 13 13:45:34 2020 <D> New personal best time: 15984
Wed May 13 13:45:35 2020 <D> Moved stuck car 11 to (826.341, 789.881)
Wed May 13 13:45:35 2020 <D> Lap (1) completed for car index=5: 16640
Wed May 13 13:45:35 2020 <D> Current personal best time: -1
Wed May 13 13:45:35 2020 <D> New personal best time: 16640
Wed May 13 13:45:35 2020 <D> Lap (1) completed for car index=4: 17200
Wed May 13 13:45:35 2020 <D> Current personal best time: -1
Wed May 13 13:45:35 2020 <D> New personal best time: 17200
Wed May 13 13:45:36 2020 <D> Lap (1) completed for car index=3: 17840
Wed May 13 13:45:36 2020 <D> Current personal best time: -1
Wed May 13 13:45:36 2020 <D> New personal best time: 17840
Wed May 13 13:45:37 2020 <D> Lap (1) completed for car index=2: 18768
Wed May 13 13:45:37 2020 <D> Current personal best time: -1
Wed May 13 13:45:37 2020 <D> New personal best time: 18768
Wed May 13 13:45:38 2020 <D> Lap (1) completed for car index=1: 19776
Wed May 13 13:45:38 2020 <D> Current personal best time: -1
Wed May 13 13:45:38 2020 <D> New personal best time: 19776
Wed May 13 13:45:38 2020 <D> Lap (1) completed for car index=11: 20080
Wed May 13 13:45:38 2020 <D> Current personal best time: -1
Wed May 13 13:45:38 2020 <D> New personal best time: 20080

from dustracing2d.

juzzlin avatar juzzlin commented on June 2, 2024

Hmmm...interesting. Could it be this:

https://bugreports.qt.io/browse/QTBUG-68486

Seems that threading really breaks it due to changes in Qt. I'll revert the commit for now.

from dustracing2d.

juzzlin avatar juzzlin commented on June 2, 2024

Should be ok now. Thanks for reporting this (too) ! :)

from dustracing2d.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.