Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Hans
    @nlhans
    You'll probably want to look at something like this I made for rFactor years ago: https://github.com/nlhans/SimTelemetry/tree/master/SimTelemetry.SFX
    It uses the DirectX DirectSound API, so you'll need to install the SDK of it
    But it's a more capable sound player where you can do pitch shifting and volume adjust on the fly, allowing you to blend together 2 engine note files seamlessly
    This is how I did this thingy, also years ago: https://www.youtube.com/watch?v=cog60hVNDTM
    Sebi
    @Sebi_ETS_twitter
    do you still have the script of this? xD
    Hans
    @nlhans
    No I do not have it handy, just the part I linked already
    Sebi
    @Sebi_ETS_twitter
    Ok np. But that will already help me a lot!
    PeterAS17
    @PeterAS17
    Hey there, someone here?
    Koen
    @Koenvh1
    No.
    PeterAS17
    @PeterAS17
    Thought so :worried:
    Hans
    @nlhans
    :smile:
    dfariaz
    @dfariaz
    @nlhans I have a problem with the ets2 sdk plugin, where new loads, ie, dlcs or updates do not bring the data of load name, thus not being able to save in my application.
    @nlhans Help me, I translated by google translator, sorry for that. I can send you my project to help me, if you need of course!
    Hans
    @nlhans
    I'm not really sure what your question is.
    Matthew Freire
    @mattfreire
    Hi Everyone. I wonder if someone can help me. I'm very new to the idea of accessing the telemetry of ETS2. I have placed the dll file inside win_x86/plugins. How do I use the SDKclient to view the telemetry? Maybe someone could just give me a basic overview of how it works. Sorry for the noob question. Appreciate any help.
    Koen
    @Koenvh1
    @mattfreire There is an example available in https://github.com/nlhans/ets2-sdk-plugin/tree/master/ets2-client/C%23
    Matthew Freire
    @mattfreire
    @Koenvh1 Thanks for your reply. Could you please a bit more specific about how to use the example.
    Matthew Freire
    @mattfreire
    I'm trying to read the ets2-telemetry.dll and the ets2sdkclient.dll files but they both are not displaying because of unsupported text encoding. Do you know how I can get around this error?
    Hans
    @nlhans
    You don't, they are compiled code.
    You can take a look at the ETS2 client project, it's an example code on how to read the data from the shared memory file
    dfariaz
    @dfariaz
    @nlhans When will the new version of the plugin come out with sdk 1.9?
    dfariaz
    @dfariaz
    @nlhans I am using the plugin in a wpf project, however I can not use the invokerequired in wpf, so I can replace it?
    Hans
    @nlhans
    @dfariaz I've no plans for that upgrade as of right now, since I haven't been keeping up with ETS2 updates in a while now
    Also, I've got no experience with WPF, so can't say.
    Koen
    @Koenvh1
    @dfariaz
    Yes, you should be able to
    dfariaz
    @dfariaz
    @nlhans Ok. Thanks for information :smile:
    Alexey Bezugly
    @alex8b
    hi all! I need some help with a project :) I want to modify game camera rotation
    TrackIR protocol and virtual joystick won't work because of various reasons. If anyone has hints or knows c/ida good enough please pm me
    Koen
    @Koenvh1
    Define 'various'. Why do those two methods not work?
    Nguyen Van Phi
    @gungui98
    Hi all!is it possible to control the game through the api? or i need another tool outside?(it would be nicer to be in python)
    Hans
    @nlhans
    You cannot control the vehicle via API.
    What I usually do is use a virtual joystick, like vJoy, it has feeder SDK for C#
    Not sure about Python, but there are probably similar solutions around
    JustDjango
    @justdjango
    Hi everyone. I wonder if someone can please explain a concept for me with regards to the actual code in the SDK. I know the SDK is creating memory map files to access the data but what confuses me is how the SDK is getting the actual values of the truck from ETS. Does ETS create memory map files as well? Or does the SDK look in some directories of the games' folders to find those parameters like speed, acceleration etc? Any help is greatly appreciated :)
    Alexey Bezugly
    @alex8b
    Trackir - proprietary protocol, posible legal issues, vJoy - requires 3rd party drivers/sw, not so easy to configure/autobind in the game
    Sean Latimer
    @SeanLatimer
    I've been messing around with adding some of the stuff from the newer SDKs, running into one issue so far though
    Mainly updating the client. Adding the new field to the Ets2SdkData causes the update timer to not fire
    Hans
    @nlhans
    I think the way Ets2SdkData is being read, is not compatible in newer C# versions
    I've had a short play with it last week, but haven't solved it yet
    Sean Latimer
    @SeanLatimer
    It really is weird, I can add the field with the same offset of one of the existing fields and it works just fine. It's just whenever I set the offset to 1022 _updateTimer.Start() gets called but never fires the Elapsed event
    Sean Latimer
    @SeanLatimer
    [FieldOffset(676)]
    [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 64)]
    public string game;

    Works fine, which is the offset for the truck make

    [FieldOffset(1022)]
    [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 64)]
    public string game;

    Breaks the timer somehow, which is the offset of the new data

    Patrick-van-Halm
    @Patrick-van-Halm
    Hey I have a problem. Whenever I run the C# client in 64 bit it seems it cant get data from the game.
    frinovo
    @frinovo
    @SeanLatimer did you manage to achive this. i am really interesting in getting more data out the sdk. Did you manage to get it to work?
    FOX Transporte & Logística™
    @FOXTRANSPORTE_twitter
    Ets2Sdk não tem como funcionar para extrair informação do motor tipo os CV ?
    Hans
    @nlhans
    English please
    FOX Transporte & Logística™
    @FOXTRANSPORTE_twitter
    Is not Ets2Sdk working to extract motor type information from CVs?
    Mike Koch
    @mike-koch
    Hey @nlhans , I noticed that SCS has released version 1.10 of the telemetry SDK. I tried looking at the code for the plugin to see if I can make the changes myself; however it's a bit more difficult than I expected it to be 😆..... do you have any plans on updating the plugin to support the new telemetry data? The biggest change is that trailer data is now returned in an array instead of one trailer property (they now support up to 10 trailers), as well as a new "events" channel (for speeding, tolls, etc.)
    MufinekPL
    @MufinekPL
    Hi. I need help with this telemetry. I would like to create applications to read player positions so that they show us in the billing system. Sorry for being writes with google translate
    Snowy Hooves
    @Snowy_Hooves_twitter
    Hello everyone. I have the same question. How can I read the player's position? I'm a newbie to this and every documentation or guide is too confusing or doesn't explain basics step by step...
    Koen
    @Koenvh1
    How far did you get?
    I'm presuming you at least got the included demo program running?