in my opinion this would be doable but would make it less scalable than the solution of decrementing/incrementing the map. A map should be mapped for each key, and there may be encoders with more or less steps. I'll think about it, however in my opinion it will always be necessary to bind to a key/set of keys on the keyboardI saw simhub allow button mapping to virtual key stroke, even sequence of them. But you can't set absolute value then, just increment or decrement x times.
I also saw in your code that you make a loop to in/decrement value and read set value until it is the same.
I dunno if python can access what button is pressed in ac but in controls changing the encoder pos is exactly like pressing a button when encoder is set to pulse. For example, putting enc to pos 1 press button 34 on the right ui. Switch to pos2 and button 35 appear pressed once, etc for each pos. I can make a gif of that if you want.
it could be done that for each button of the encoder used, it is mapped to a key on the keyboard. Then in the app you specify the key to the preset. I don't know if you know, but you could use a dictionary to make it look better. ex:The problem with inc/dec is that you will never know which preset set which value. If I start with different brake bias or even modify it with another rotary/button before loading a preset you are dead, the preset will never set the right value as start value can be whatever. This would dismiss all the preset thing.
But yes it would need key set to inc/dec to the right value. It seems AC doesn’t allow to set absolute values, which is quite strange on a dev side.
{
"encoder_mappings":{
"1": "Mapping1",
"2": "Mapping2",
"<keyboard key>": "<mapping name>"
}
}
it could be done that for each button of the encoder used, it is mapped to a key on the keyboard. Then in the app you specify the key to the preset. I don't know if you know, but you could use a dictionary to make it look better. ex:
Python:{ "encoder_mappings":{ "1": "Mapping1", "2": "Mapping2", "<keyboard key>": "<mapping name>" } }
hi thanks@Semplix haha you meant this one https://www.racedepartment.com/threads/acti-assetto-corsa-telemetry-interface.95547/post-3657420
there you go, remove ".txt" to get a zip:
dont even know why that would be, acti doesnt change anything, it just readshi thanks
the fix for this app is ok the app works properly, but still same issue with ACTI.
to your edit: yes can be possible already mentioned #31dont even know why that would be, acti doesnt change anything, it just reads
edit: maybe one of the programs from acti are using some hotkeys too and break something?
Hi, can you send me some logs? You can find them in "Documents/Assetto Corsa/logs/pylog.txt"Love the idea of this app. Would allow far more focus on the race without having to worry about ERS switching. I have buttons for deployment on my wheel. They work perfectly when manually changing the settings.
I’ve installed the app and recorded a lap (recording before changes, and then stop recording as I get to the end of the lap). The info area at the bottom of the app window shows the changes I am making in real time. Restart the session and hit Start (playback). But unfortunately the only change that happens is at the first turn. It increases the ERS deployment one step - but not to the ultimate setting that I had recorded, and never changes again over the entire lap (despite having set several ERS changes).
Is there something simple that I am missing? I have turned off ACTI to be safe. Before I did that, Start would never change the ERS deployment. It only said it was Started.
Thank you for any guidance to get the app working.
Seems like you didn't enabled the app. There are no logs of itThanks so much for the reply! I have attached the log file below.
After I posted here, I wondered if the issue I am having is because I run AC Content Manager launcher) on an secondary internal drive? The log file was in the documents folder, but I wondered if the app is expecting everything to be on the C drive???
Let me know if there is anything else that would help diagnose. Appreciate your help.
Scott
I had it enabled and it definitely partially worked, because I was able to have it open in-game and saw the recorded change happen (only the first change).Seems like you didn't enabled the app. There are no logs of it
Strange, in the logs there are no mentions about itI had it enabled and it definitely partially worked, because I was able to have it open in-game and saw the recorded change happen (only the first change).
Does the log file only update the latest session in AC? Because I had turned it off again to enable ACTI after I posted the first time.
If so, I could enable it again and send a new log?
No, I also have AC on D drive, while the system is running on C driveCould it have anything to do with keeping the AC files on a drive other than the C drive?