The online racing simulator
Searching in All forums
(107 results)
gru
S2 licensed
*** v 1.0.1 - 13.06.2008
- fix: no outgauge request in spr mode

thx nesrulz
gru
S2 licensed
Quote from ebola :
I have been searching for well over 8 hours to try and find a way of getting the SMART information from a hard drive using C#.

.NET Framework tries to be platform independent, there's no DeviceIoControl function in C#, thats why its hard to find some solutions

U have to create wrapper for DeviceIoControl
http://www.componentsnotebook. ... ooks/csharp/deviceio.aspx

but if i were U, i would just create c++ winapi dll retrieving smart info, and then import it into c# written program
http://www.codeproject.com/info/search.aspx?artkw=s.m.a.r.t
Last edited by gru, .
gru
S2 licensed
found 2 bugs in 1.52 version

1. program always closes Outgauge, doesnt check if its disabled in cfg file
even if OG is disabled, it sends SSG with outGreplyFreq = 0 (OG close request)

Main.cs line 915
if (newConnection.Flags == 0)
{
byte[] ssg = InSim.Encoder.SSG(outGreplyFreq);
insimConnection.Send(ssg, ssg.Length);
}

IMO should be
if (EnableOutGauge && newConnection.Flags == 0)
{
//do stuff
}

2. digital speed is incorrect
method getSpeed (Player.cs line 229) is type of double, speed 100.6 is rounded to 101
IMO getSpeed should be integer type
gru
S2 licensed
Quote from marek100 :In my opinion if you need Digital Speedo thats ok but if you are pure driver you wont use. Yes it is hack

i wonder why there was no such a discussion with Analogue Gauges or LfsRelax which also can display digital speed in all cars?

isn't it idea of unofficial addons? to "make life easier"?

if anyone claims that racer using DS is faster on track, hmm...
more comfortable, yes, but not faster
Last edited by gru, .
gru
S2 licensed
Quote from Almadiel :I still think there should be some way to get this information directly from the sim, however.

yes, but not by OG
since this is constant data, it would be waste to send it several times per second
gru
S2 licensed
Quote from Almadiel :What I am talking about is a way to do this with zero user intervention

i get Your point, but i dont think its really important to have this values in OG
is that really a problem to check gauges range during development?
we dont have new cars every month, so U could just release patch when its needed

as for revs, there is no realistic max rpm at this point of LFS development
there are OG_SHIFTLIGHT and OG_REDLINE flags, but if U shift down to 1st gear at high speed, your XFG will reach 15k rpm
gru
S2 licensed
Quote from blackbird04217 :Maybe because engine temperature and oil pressure are viewable on gauges...

throttle, brake, clutch indicators aren't

OG was made some time ago (before clutch changes), i guess Scawen had no time to add it
i agree it would be nice to have OutGauge updated
gru
S2 licensed
Quote from LiveForBoobs :hack

excuse me?

i'm not member of "We're glad LFS is harder and more realistic now" club

i don't like overheated clutch after 1 (one!) bad start (but i can't do anything about it, and if i did, that would be hacking)

i don't like speeding penalty in pits (i have 19" monitor and still can't see if i'm under or over 80)
i also dont like gear number hidden under steering wheel in some cars
and i want to have shiftlight as big as i want it to be

what's bad about it?
Last edited by gru, .
Digital Speedo
gru
S2 licensed
Digital Speedo is small LFS mod displaying speed, gear, shift-light, or rpm
It connects with LFS through InSim, and uses d3d8 proxy dll to display data

main functions:
- configurable gauges (visibility, position, size)
- each car has its own cfg
- option to set speed visible only in pitlane
- configurable digits color

additional functions:
- built-in OutGauge gateway
- applications startup configuration

program requires .NET Framework 2.0
it has been tested on few machines with XP system (no drastic FPS loss noticed).
unfortunetly there were no tests with Vista

installation instructions and FAQ in readme.txt

changes:

*** v 1.0.3 - 27.06.2010
- Z25 compatibility

*** v 1.0.2 - 18.07.2008
- configurable window state for startup programs

*** v 1.0.1 - 13.06.2008
- fix: no outgauge request in spr mode
Last edited by gru, .
gru
S2 licensed
what exactly do U need?
there is no special documentation for dedi, it uses same InSim as lfs.exe
running servers info can be collected with LFSW http://www.lfsforum.net/showthread.php?t=14480
Last edited by gru, .
gru
S2 licensed
yes, ill try Outgauge Gateway, thx for help
Last edited by gru, .
gru
S2 licensed
yes, i know it can be used, but i was wondering if it's possible to config LFS somehow?
guess not after Your reply

basicly i want my app (another external gauges mod, sth like Analog Gauges, only digital this time) to be compatible with other mods, LfsRelax for example, which also uses outgauge

i can add option to get OG through external utility, but... hmm it complicates life to end users
Last edited by gru, .
2 apps using outgauge
gru
S2 licensed
hi

is it possible to configure LFS to send outgauge packets to more than one application? not by cfg.txt, but request from insim

changing reqI doesnt seem to work, LFS sends packets to first application which requested and ignores others.

but whats funny other application can send "disable outgauge" command.
if LFS sends OG only to one app, shouldnt it "remember" who requested and ignore "OG close" from other programs?
gru
S2 licensed
insim.txt -> IS_MCI
for pits create rectangle or polygon
gru
S2 licensed
stage
gru
S2 licensed
Quote from DarkTimes :You could use a password to make sure no ones abuses it

bad idea
someone could sniff this password, what would prevent him from "hacking" site by typing correct url?

i would use IP check instead, and maybe a HTTP_USER_AGENT?


<?php

...

if (isset($_GET['status']))
{
if($_SERVER['REMOTE_ADDR'] != $my_insim_ip)
die("Invalid IP");

if(strpos($_SERVER['HTTP_USER_AGENT'], $my_insim_name) === false)
die("Invalid client");

//save status
}

...

?>

Last edited by gru, .
gru
S2 licensed
Quote from vane :I'm not too clear what you mean by database, could you enlighten me?

google mysql tutorial

if Ur gonna store only this one line of text, U dont really need db, text file will do the work

on page load save text to file
http://php.net/manual/function.fwrite.php

when showing status read it
http://php.net/manual/function.fread.php
gru
S2 licensed
Quote from vane :do you think my way would work though?

yes, but its more work to do

just like the_angry_angel said, use HttpWebRequest, its really simple
http://www.codeproject.com/KB/ ... pWebRequest_Response.aspx
gru
S2 licensed
i wouldnt use txt files and ftp

i think Your insim should just run website with parameter
sth like:
http://my_page.com/index.php?server_status=testing

then php reads status and saves it in db

of course U must add some validation, so only Your app can change status
Last edited by gru, .
gru
S2 licensed
Quote from mcgas001 :I also have noticed this...

thx, at least i know its not bug in my app
but it looks like an LFS bug to me, i really dont see reason for this delay

anyway, i think ill use car position from outsim, since i need "car will enter pitlane" notification

Dygear
sorry, eng is not my native and i dont quite understand Your reply
again pls, this time slowly
Last edited by gru, .
ISP_PLA delay
gru
S2 licensed
hi

i noticed that ISP_PLA is sent about 3s after car enters pitlane, is that normal or maybe im doing sth wrong?

i would like to get this info immediately after car goes into pits (best would be even few secs before that, but i dont think its possible without tracking car position?)

or maybe there is another packet which would inform me about "car in pitlane" fact?
gru
S2 licensed
Quote from VoiD :Use the profiler-programs (Logitech Profiler, Thrustmapper) for your wheel

or script if U dont have logi wheel
http://www.lfsforum.net/showth ... ighlight=indicator+script
gru
S2 licensed
how about /join_host text command or insim command?
that way join2lfs could work with existing LFS instance
right now it opens new one (and doesnt close previous) which is annoying
Last edited by gru, .
gru
S2 licensed
Quote from AppiePils :That thread is closed for a reason: to prevent unnecessary discussions like this.

oh really? so tell me, why round 7 thread is closed, while other rounds threads are still opened?
"unnecessary discussions" - so all i can say in BOTT subforum is how great organisation it has and how happy i am? any kind of critics isnt welcome? interesting...
gru
S2 licensed
Tribunal results thread is closed, and i just have to write it

Quote : Complaint against [CRO] Dino
...
After reviewing those situations the judges agreed that there was contact but he done what he could to prevent it.

im sorry, did U watch replay? i think not
he did nothing to prevent it, he could brake, he could pass me, he had a lot of time to react, i didnt show in front of him suddenly...

when my team mate broke blue flag rule, he got penalty which cost him 3 positions
this guy here kicked me out of race (i rolled on roof) and its ok?
more, Ur telling me he done all he could? oh come on!
FGED GREDG RDFGDR GSFDG