Git Product home page Git Product logo

assetto-corsa-deltabar's Issues

statusbox crash when flipping through modes

I was clicking through the various modes (best sector, optimal, ...) repeatedly and it crashed.

Looks like statusbox/format_time() expects milliseconds to only ever be an integer... There are likely more bugs in statusbox.

Exception: Thu Sep 24 05:24:46 2015
Traceback (most recent call last):
  File "apps/python/deltabar\deltabar.py", line 59, in acUpdate
    deltabar_app.acUpdate(delta_t)
  File "apps/python/deltabar\deltabar_lib\deltabar_lib.py", line 356, in acUpdate
    pos, self.lap.invalid_sectors[current_sector])
  File "apps/python/deltabar\deltabar_lib\statusbox.py", line 221, in update_frame
    self.data.textbox.set('i{}_2'.format(current_sector), format_time(current_sector_time - benchmark_sector_time, invalid=invalid, delta=True))
  File "apps/python/deltabar\deltabar_lib\statusbox.py", line 71, in format_time
    return "{}{}{}.{:03d}".format(star, sign, sec, thou)
ValueError: Unknown format code 'd' for object of type 'float'

first multiplayer race lap after qualifying shows stale data

After qualifying, the car resets position to begin the race.

The first race lap was showing the old delta data from qualifying (+0.74) throughout the entire first lap. After crossing the finish line to begin the next race lap, the correct deltas were displayed for the remainder of the race.

In this case the car was on track when qualifying ended, approx 70% around the track, having finished ~2 qualifying laps, and the car had the first starting position at Vallelunga.

add config.ini support for Content Manager

Here's a skeleton config_defaults.ini that renders OK in Content Manager.

This would allow people to configure deltabar from Settings -> Apps -> DeltaBar

[Mode]
MODE=0; Display mode; 0 for vs all-time best lap, 1 for vs all-time best sectors, 2 for vs all-time optimal lap, 3 for vs session best lap, 4 for vs session best sectors, 5 for vs session optimal lap

[DeltaBar]
THEME=IRACING; Color scheme; IRACING for iRacing, SPEEDSPB for SpeedSpb Alternate, COLORDEFICIENCY for Color vision deficiency
BAR_WIDTH=800; Width
BAR_HEIGHT=60; Height
BAR_FONT_SIZE=24; Font size
BAR_DURATION=2000 ; Duration; from 200 ms to 5000 ms
BAR_MOVES=1 ; Time offset moves with bar; 1 or 0

[Background]
BAR_BACKGROUND=1 ; Draw bar background; 1 or 0
BAR_OPACITY=0.65; Background opacity; from 0.0 to 1.0
BACKGROUND_COLOR=#303030; Background color RRGGBB hex

[DetailWindow]
STATUSBOX_ENABLE=1 ; Enable window; 1 or 0
STATUSBOX_BETA=1; Include BETA text; 1 or 0

[Reset]
#To reset saved laptimes, delete the files from:
#  XXX\plugins\deltabar\xxx
RESET_DIRECTORY=...\\Documents\Assetto Corsa\plugins\deltabar\laps ; To reset laptimes, remove cars or the entire track from the cfg\Assetto Corsa\plugins\deltabar\laptimes directory; directory

tracks where start line of track is a high AI spline position (like 0.80) don't work well

For example, the Nordshleife AI spline starts at something like 0.80, and becomes 0.00 after you've been driving a minute. The current code ties the lap start and the AI spline too closely, and also assumes the AI spline position will only increase as we drive around the track.

Here's a comment from commit d03edbe :


I think the Nordschleife doesn't work very well with DeltaBar because the AI spline doesn't "start" at the beginning of the track.

Needs some bug fixing, like "when the lap timer starts incrementing, use the current location as the start, and allow it to wrap around zero", so that a recorded Nordschleife lap can look something like "0.80", "... 0.99", "1.00", "1.10", ... "1.70", "1.79"


does not work on addon tracks that have no AI spline

On some tracks, the deltabar does not display any data at all.

Turns out the app does not know where the car is on the track. It uses NormalizedSplinePosition to get an approximate position, but some addon/custom tracks do not have this spline.

This could be worked around by using the 3D position of the car, not sure if it's worth the effort?

Making the app bigger

Is there any way to make the delta bar bigger by scaling it to a larger percentage?

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.