Due to some requests in the addon forum and because there may be a lot of discontinued addon projects, I have started developing an insim gateway for conversion between insim v3->v4. I put this thread here in the Programmers Forum because it is more an initial release than a finished software tool. Therefore I also put the source code here, so other programmers would be able to find bugs, continue the project or improve the gateway further.
There are some issues in the current version, only some of them could be solved:
- currently no outsim and outgauge packet translation.
- if there are more than 28 drivers in a race, not all drivers can be reported to a V3 application (NLP packet in v3 can only accomodate 28 structures).
- gateway does not yet translate from car prefixes into car long names.
- gateway does not yet fill NumNodes and FinishLine in some structures.
- ConnNum cannot be filled correcly, using UCID instead (migth be wrong).
- PlyNum cannot be filled correcly, translation from PLID into PlyNum seems to fail somehow.
I have tested with:
- LFS Tv Director -> works, no known issues
- noobTV -> works partially, issues with custom cameras, custom external cams not tested.
with kind regards
Soeren Scharf
InsimGateway.zip ==> compiled executable
InsimGwSrc.zip ==> source code
03.09.07 Update
- removed waiting for 2 sockets with select (crashed on some PCs), use polling now
- fixed size in call to recv
_____________________________
There are some issues in the current version, only some of them could be solved:
- currently no outsim and outgauge packet translation.
- if there are more than 28 drivers in a race, not all drivers can be reported to a V3 application (NLP packet in v3 can only accomodate 28 structures).
- gateway does not yet translate from car prefixes into car long names.
- gateway does not yet fill NumNodes and FinishLine in some structures.
- ConnNum cannot be filled correcly, using UCID instead (migth be wrong).
- PlyNum cannot be filled correcly, translation from PLID into PlyNum seems to fail somehow.
I have tested with:
- LFS Tv Director -> works, no known issues
- noobTV -> works partially, issues with custom cameras, custom external cams not tested.
with kind regards
Soeren Scharf
InsimGateway.zip ==> compiled executable
InsimGwSrc.zip ==> source code
03.09.07 Update
- removed waiting for 2 sockets with select (crashed on some PCs), use polling now
- fixed size in call to recv
_____________________________