Linear map (rally style)

Apps Linear map (rally style) 1.3

Login or Register an account to download this content
NightEye87 submitted a new resource:

Linear map (rally style) - Rally style linear map

This is a linear track map. Inspired by rally games, etc.
This app has mostly been a "playground" for Python for me. I learned a lot by making this and I had a lot of support from some very patient people to make certain things work :inlove:

View attachment 428802

It shows squares for stationary cars, triangles for moving cars (non-directional). Green for current car, yellow for all others. It uses abbreviated names on the right.
It has two buttons, "S" to toggle the split...

Read more about this resource...
 
maybe a option to change colors like blue to self etc for colorblinds like me :D
Inside the settings.py you'll find a section "#colours" in which you can adjust them :)
They are 0-1 instead of 0-255, but it shouldn't be too hard. R,G,B,A format.

@Wolf24h
I've got PNG's working but it's using too much CPU power (might not be noticeable?) and I can't get the active car to render on top with PNG's somehow.. Something for the future, maybe :)
 
NightEye87 updated Linear map (rally style) with a new update entry:

Added possibility to make track splits ingame

This update features the ability to add track split locations ingame. It will not auto-refresh to show them right away.

To make track splits, after opening up the app, click the cog icon. There you'll see a few buttons.
View attachment 437694
The first two will toggle driver names and split locations visibility. These values are not stored but can be manually set through CM or settings.ini.

The other ones can be used to set split locations. Simply drive the track and whenever...

Read the rest of this update entry...
 
This app looks cool.
I was thinking of an app to show distance with start line as many rally specials are not clear. Do you think it is possible to add that in yours?
 
Do you mean a counter with kilometers/miles left to finish?
I can have a look if I can guestimate those numbers.

Would that be useful on circuits as well, for you? Or only point to point tracks?
 
Last edited:
The app looks cool but isn't appearing for me. It looks like it fails to load. The py_log.txt shows the following error:

Code:
[ne_linearmap: error] Traceback (most recent call last):
  File "apps/python/ne_linearmap\ne_linearmap.py", line 23, in <module>
    import settings
ImportError: No module named 'settings'

I'm using the 64-bit AC, with the v1.3 download of the app, and have tried the stock launcher as well as Content Manager.

Could the "settings" app/module be a dependency from something I don't have, or is it meant to be built-in but not on my system for some reason? Or maybe I've turned off something it needs?

Thanks for your time!
 
"settings.py" was used previously for storing settings. With the use of a config parser that changed to "settings.ini" so the game can't find "settings.py" anymore. Simply delete that line (line 23, "import settings") from the ne_linearmap.py file and it should be fine.

I wonder why you're getting an error message and I'm not. Strange. If more people report this, I'll upload a new version.
 
I removed the
Code:
import settings
and then got a similar error about the "sim_info" module. Removed the
Code:
from sim_info import info
line as well, and now the app appears in-game, and seems to work to some extent at least.

The py_log.txt now has lots of errors about things trying to use the "info" module which isn't defined, so I guess it's not completely working.
 
The info module is used to obtain the split time. It's needed if you record new split locations because there is no other way of telling when a player drives through a timing gate. It's not a vital function and overall the app will still work :)

Try this one (remove .txt).
 

Attachments

  • ne_linearmap.py.txt
    21 KB · Views: 313
Code:
with open(trackInfoPath, "r", encoding="utf-8", errors="ignore") as TL:
    trackUI = json.loads(TL.read().encode('ascii', 'ignore').decode('ascii'), strict=False)

tracklength also in shared mem:
info.static.trackSPlineLength

(edit 30.oct 2022: shared mem is only updated properly after race start, not when app is loading , would be wrong after track change)
 
Last edited:
For some reason I can't get this app to work on certain tracks. One example of these tracks is the Nordschleife. I like using this to see how far I am through the lap. In the py_log.txt file in the parts about this app I see:
NE_LINEAR MAP :: Reading track splits from ini: ks_nordschleife:nordschleife
NE_LINEAR MAP :: Track splits: 0.261000, 0.587000, 0.000000
[ne_linearmap: error] Traceback (most recent call last):
File "apps/python/ne_linearmap\ne_linearmap.py", line 143, in <module>
trackUI = json.load(TL, strict=False)
File "D:\SteamLibrary\steamapps\common\assettocorsa\system\x64\python33.zip\json\__init__.py", line 268, in load
return loads(fp.read(),
File "D:\SteamLibrary\steamapps\common\assettocorsa\system\x64\python33.zip\codecs.py", line 313, in decode
(result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb0 in position 140: invalid start byte

More Info:
This app just doesn't show up in the apps list on the right at all on certain tracks.
 
Last edited:

Latest News

Online or Offline racing?

  • 100% online racing

    Votes: 72 7.4%
  • 75% online 25% offline

    Votes: 101 10.4%
  • 50% online 50% offline

    Votes: 141 14.5%
  • 25% online 75% offline

    Votes: 267 27.4%
  • 100% offline racing

    Votes: 388 39.9%
  • Something else, explain in comment

    Votes: 4 0.4%
Back
Top