Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TrackIR support doesn't work with Euro Truck Simulator / IRacing #13

Closed
baggyg opened this issue Oct 28, 2013 · 12 comments
Closed

TrackIR support doesn't work with Euro Truck Simulator / IRacing #13

baggyg opened this issue Oct 28, 2013 · 12 comments
Assignees

Comments

@baggyg
Copy link
Contributor

baggyg commented Oct 28, 2013

See thread http://www.mtbs3d.com/phpBB/viewtopic.php?f=139&t=18792&p=144831

TrackIR emulation works fine with other tested games (Future Pinball). However IRacing and Euro Truck Simulator are not functioning. Freetrack / Opentrack works fine with both games.

@ghost ghost assigned maxmalmgren Oct 28, 2013
@AndersMalmgren
Copy link
Owner

Max can you take a look at this?

@sthalik
Copy link
Contributor

sthalik commented Oct 29, 2013

http://ananke.laggy.pk/nfail.tar
http://ananke.laggy.pk/npclient.c

Be careful how you use it ;-)

Here's what I wrote to @baggyg

-->--
The 'nfail' main.c thing requires a "mxml" library, and descrambles sgl.dat
file found in TrackIR installation directory. One can install the software
and update game list in the VM, or ask someone who has a device to send the
file.

The Perl script creates a CSV file with the scramble-keys. Be aware that one
column is random (beats me, facetracknoir author created it like this), the
other is the key, facetracknoir 'owner' made the .csv like this and I made the
Perl script after the fork.

You can see ftnoir_protocol_ft and ftnoir_csv, as well as ftnoir_protocol_wine
for usage instructions of .csv. Essentially, CSV file isn't necessary, but we
use it to isolate the keys into a manageable form.

This is a fully-working solution. Works with every TIR5 game, yadda yadda.
--<--

@AndersMalmgren
Copy link
Owner

Nice, will look into this! This however only solves it so that you do not need trackIR fixer right? Our problem right now is that above games does not even try to invoke our npclient spoof dll. Maybe I can find some differences in your npclient above, thanks!

@AndersMalmgren
Copy link
Owner

Btw, here is the source for our npclient if you guys can see any obvious flaws why above games should not even try to call the functions

https://github.com/AndersMalmgren/FreePIE/tree/master/Lib/TrackIR/NPClient

@sthalik
Copy link
Contributor

sthalik commented Oct 29, 2013

TIRfixer doesn't work with all titles and causes problems with 'anti-cheat' software. Also it doesn't show a clear message to NFail that their corporate behavior won't be tolerated by the FOSS community ;-)

I'll debug your npclient when i get home (no windows though), it's probably np_getsignature though. add fprintfs in all non-private functions...

@AndersMalmgren
Copy link
Owner

We have logging in the npclient, and you can see from its output (Or lack of output) that the functions does not even get fired.

log_message("NP_GetSignature");

Would really appreciate if a TIR pro like yourself could check our code! :D

One note though if you want to try to debug our npclient, it lacks one bit of code. (Its only in the binary version not the source)

namespace trackir {
                void get_signature(char *output);
}

We did this because we did not want legal problems with Naturalpoint because as you say their corporate behavior is crap.

@sthalik
Copy link
Contributor

sthalik commented Oct 29, 2013

Sorry, but replied in the other thread by accident...

@AndersMalmgren
Copy link
Owner

Thanks, will look in to that!

@AndersMalmgren
Copy link
Owner

Baggyb, I'm leaving for Thailand but my brother has promised to look into this while I'm gone.

@baggyg
Copy link
Contributor Author

baggyg commented Nov 25, 2013

Ok have a good trip. Hopefully we can get something working in the meantime.

@sthalik
Copy link
Contributor

sthalik commented Nov 25, 2013

you can use opentrack protos can add to api
nfail will fail:)

@AndersMalmgren
Copy link
Owner

Please try the binary attached at the post here http://www.mtbs3d.com/phpBB/viewtopic.php?f=139&t=18792

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants