The online racing simulator
Searching in All forums
(66 results)
K0Z3L_43V3R
S3 licensed
IMO don't negotiate with terrorists.

Since master server can be relatively easy disrupted, would it be possible to allow join servers directly by ip:port?
K0Z3L_43V3R
S3 licensed
What's weird? Missing buttons? Press SPACE if so Smile
K0Z3L_43V3R
S3 licensed
Can't tell from screenshots, are you calculating packet length correctly and adding last zero bytes?

From docs:
byte Size = 8 + TEXT_SIZE (TEXT_SIZE = 4, 8, 12... 128)
char Text[TEXT_SIZE]; // up to 128 characters of text - last byte must be zero

so minimal packet data (16 bytes) will looks like this (^J☆) in hex:
10 0e 00 00 ff 00 00 00 5e 4a 81 99 00 00 00 00

Let computers do the hard work with bytes Smile

Encoding codepage = Encoding.GetEncoding(932);
Encoding unicode = Encoding.Unicode;

byte[] unicodeBytes = Encoding.Unicode.GetBytes("^J☆");
byte[] codepageBytes = Encoding.Convert(unicode, codepage, unicodeBytes);

K0Z3L_43V3R
S3 licensed
I've tried it, chat commands work only in single player mode, "a" add new camera, "m" move selected camera, "d" delete selected camera ...
K0Z3L_43V3R
S3 licensed
Hey, I'm working on PHP insim tracker, here is my implementation of it:
https://bitbucket.org/K0Z3L43V3R/kingtracker-v2/src/10fd383a511ee47b35e532f5007bec612131d4b9/src/AppBundle/Component/LFSTranslator.php?at=master&fileviewer=file-view-default#LFSTranslator.php-97

Even if it's in PHP it should be similar in C#. Lets say you have some Japanese string in your application encoded in UTF-8. LFS is for Japanese expecting CP932 codepage. All you have to do is transliterate string from one encoding to another encoding and prefix it with "^J"
K0Z3L_43V3R
S3 licensed
Not sure if you know, all packets are send in multiplayer replays like on real server, might be easier to debug on MPR Smile
K0Z3L_43V3R
S3 licensed
Quote from EfsaneTosun :Hi,
EN & TR
I've added translations to some required places.

Thx, your changes were merged to master and I have added few missing translations to latest update:
https://bitbucket.org/K0Z3L43V3R/kingtracker/diff/langs/en_US.txt?diff1=ca977734454b&diff2=8c3daf511126089508f843f055800b37641b89f8&at=master
K0Z3L_43V3R
S3 licensed
Quote from ataslfs24 :
There is no translation here?

No, some translatable strings are missing ... will be added in next release.
K0Z3L_43V3R
S3 licensed
Thanks for translation, yes language changes automatically based on user in game language, but it have to be set before user joins server - I can't detect user language change, only language when he connects. (manual language selection will be added in near future)

File you sent was saved in wrong encoding (ANSI), KingTracker needs UTF-8. I have attached correct file which worked for me.
K0Z3L_43V3R
S3 licensed
New version v0.5.5b
- silent mode
- editable commands prefix for each host
- fixed !sc
- updated tracks info BL2, BL3, BL4

Update
update
K0Z3L_43V3R
S3 licensed
I see, think it should be OK in my use case too
K0Z3L_43V3R
S3 licensed
Nice solution with ignoring tyres contacts. I'm using OBH packets for clean laps validation, yes low suspension cars scratching the road could be problem. Could it be possible to change index of surface objects (kerbs) to something else then 0, so I can filter false OBH packets?
K0Z3L_43V3R
S3 licensed
Quote from Scawen :
I've only heard this from you but maybe no-one else has been checking their InSim output!

Can you describe in more detail what is happening, and I'll have a look?

Tested, yes I'm getting same false IS_OBH packets when driving over kerbs. They all have 0 index.

object(Insim\Packets\isOBH)#1028 (13)
...
["X"] => int(2836)
["Y"] => int(5408)
["Zbyte"] => int(0)
["Sp1":"Insim\Packets\isOBH":private] => NULL
["Index"] => int(0)
["OBHFlags"] => int(8)
}

K0Z3L_43V3R
S3 licensed
New version v0.5.4
Open tracks improvements:
- split and lap times are compared with fastest lap on current track/layout/car/restrictor
- HLVC disable object contact check with some objects (concrete, ramps) (!host -> race settings -> general)
- translated HLVC messages

Update
update
K0Z3L_43V3R
S3 licensed
bump after 7 years!

This would be very handy, another possible use cases could be:
- for admins viewing player show action buttons (kick, penalty ...)
- when racing, display who is spectating you Smile
K0Z3L_43V3R
S3 licensed
Download links fixed
K0Z3L_43V3R
S3 licensed
New version v0.5.3
- ResultsService store last 20 races results and laps / splits (external sample added)
- Automatic race restart after qualify ends (delayed)

Update
update
K0Z3L_43V3R
S3 licensed
I cant tell what went wrong from that error messages.
- are there any more logs in /logs folder?
- was that after manual or automatic update?
K0Z3L_43V3R
S3 licensed
I have unfinished ResultsService - where all laps from last 10 races / qualifications are stored, maybe you can use that.
K0Z3L_43V3R
S3 licensed
New version v0.5.2f
- Track rotation - added open layouts
- !status command
- chinese language updated (kagurazakayukari)
- FIX laps saving on some layouts
- FIX restart timers
- FIX layout unloading (splits count)

Download
- windows
- linux

Update
If you are updating manualy there is sql file (update_v0.5.2f.sql) with changes made to database

Quote :So I wonder that will KingTracker update the certain LAPS record after insert it into LAPS table?If the answer is yes,could you tell me when KingTracker will update it ?

Yes, lap records are updated if player made a better time on same conditions (car, track, layout, setup configs, tyres ...), I have added new field "updated" with datetime when it was updated. Also see example code in /external/getLaps.php how you can easily fetch lap time in your script.
Dedicated host 0.6Q - crashes after loading layout with long name
K0Z3L_43V3R
S3 licensed
Dedicated host 0.6Q crashes after loading layout with long name
attached layouts

Unhandled exception at 0x65646E65 in DCon.exe: 0xC0000005: Access violation reading location 0x65646E65.
K0Z3L_43V3R
S3 licensed
Fixed broken link, source moved to Bitbucket
K0Z3L_43V3R
S3 licensed
New version v0.5.2
- Layouts support
- !axlist command
- Top laps - show layout name, filter by tyres
- Main loop optimizations
- More translatable strings


Quote from kagurazakayukari :
It seems that its not possible to delete data? I've drive a car with no restrictions for several laps and then change to restricted and the delta shows I'm much slower than its time.....very annoying.....
And for some layout, driving over the construct object(eg some bridges) are invaild in HLVC so 100% no clean lap...

You can set in "User settings -> Timebar" when to reset stint / delta. I'll look if anything can be done with HLVC and object.
K0Z3L_43V3R
S3 licensed
Quote from Sheepy1977 :Ok,I am with kagurazakayukari,so I will describe some technical details about our host here.

Our host was running in a Windows Server 2003 system.I have already set up a web-service of php,ngnix and mysql.so I cant use your Bat script came with the windows' version because it seems that it will set up another web-service which might crashed the web-service I already set.

That shouldn't be a problem, just edit your bat to do autorestarts when php script stops:

@echo off
:START
php.exe -e d:/www/kingtracker/public/index.php insim start -d
goto START
pause

K0Z3L_43V3R
S3 licensed
Nice Smile Updating should work, its working at test servers. How you starting tracker, with kingtracker.bat or manualy? Bat script is restarting tracker if it crashed. That's how updating works - new files are downloaded and tracker is stopped then bat script restart tracker. Update check is done every 3 hours or at tracker start. In case of error they are logged in /log folder.
FGED GREDG RDFGDR GSFDG