The online racing simulator
Searching in All forums
(50 results)
2
Knu
S2 licensed
Quote :Btw, is there anyway to change the settings thru the dedicated server window?

Not currently. Although you can always set them in-game as an admin.
Quote :I would like to hear from "Knu"

You can trust Fedorov.

Edit:

Version 0.71 out, fixed a critical bug leading to crashes. Do NOT use 0.7 for that reason.
Last edited by Knu, .
Knu
S2 licensed
0.7 out. It took so long because of some fundamental interface-related changes.

Top-list in the next version.

Quote from strato12345 :Have some suggestions tho, first of all random lights. Dunno if it's random in RL but it sucks because I can get RT of "?" seconds :O I guess it means 0.00.

Try "Pro" or "LFS" lights

As for "?" seconds, I couldn't find the bug. Maybe later.
Knu
S2 licensed
Quote :But i have the same problem as "Lord Lugarsh" .. it says debug 11 here.. connects fine but dont see any interface.. it just say "InSim - TCP : ISRM" and "«Øs»ÐRäGK!NG», welcome!" and thats it

Fixed!

Hopefully I'll finish and upload the next version today.

Thanks everybody for bug reports and support
Knu
S2 licensed
Quote from m4ccy :it is less than perfect, occasionally the lights shut themselves off.

Care to elaborate what and when it actually happens? Does the program crash? If so, could you provide a screenshot of it?

BL3 Race Layout - Odissey
Knu
S2 licensed
A simple racing circuit, features both fast and slow corners, chicanes and of course 2 ramps . I tweaked it quite a bit, achieving what I think is nice flow and balance.

Inspired by CTRA B&J.

Enjoy!
Knu
S2 licensed
It is a server-side application.
You should type "/insim 29999" only after creating your own server! You can create one in 'Multiplayer' -> 'Start new game'. But please discuss this kind of problems in other forum sections.
Knu
S2 licensed
Are you saying it connects ok, but does not show the interface (the lights, etc.)? Wierd. The "debug - 11" message indicates that the practice already started, so everything should be in place. Maybe you start a single-player game instead of multi-player? :\
Knu
S2 licensed
Fixed. I forgot to add this line of code
Quote :if (this.Draw(c))

Your reports help a lot, thank you
Knu
S2 licensed
The wheels slip a bit probably

So yes, not quite correct.
Knu
S2 licensed
I see nothing wrong, the debug data looks correct.
Quote :IIRC, the speed you see in LFS is the speed that your wheels are rotating at, whereas the MCI speed is the speed the car is moving at.

Knu
S2 licensed
Quote :* 0.003050082352223510034770938815348f

That's not accurate. You'd better use (32768 / 100) or at least 0.0030517578125
Quote :Like if I'm driving 210 Kmh, this calculation will output something like 207.

IIRC, the speed you see in LFS is the speed that your wheels are rotating at, whereas the MCI speed is the speed the car is moving at.
Quote :I also notices that when I'm standing still the MCI speed value is 3, and the output value is then 0.0329408869147301.

You mean, ~0.032 KPH? That's down to precision. What's the problem with that anyway? BTW, if you want to detect if a car is standing still, do NOT use "if (Speed == 0)"

Hope that helped.
Knu
S2 licensed
Fixed.
Knu
S2 licensed
Hello everyone,

New version is released, I hope the connection problems are gone now. But if someone has them again, please post your server configuration:

Your LFS server settings (setup.cfg for dedicated servers).
Your ISRM.exe.config.
Whether you have a local network and your IP's (local, external).

Also, if the program crashes during the races, please take a screenshot of the program and the error message. This will greatly help in finding the bug.

And finally, if anyone wants to translate the program, feel free to do it and post the translation here.
Knu
S2 licensed
Quote :I think this would be a good time to disable insim in the demo version of LFS.

Sheesh!

I doubt anyone bought S2 only because of the drag strip. And, btw, I have no intention whatsoever to hurt LFS. I just use the tools given to us by the developers to make the world a bit better place.
Quote :Meh, i was coming to the server to test it, but i see there is only one spot, could you make more spots for the server?

Sadly, no, I guess too little bandwidth for that.
Quote :for future:
- turn off MCI if it not needed
- before get who wins need get MCI packet all drag racers

Can't understand. Reply in russian on liveforspeed.ru please
Knu
S2 licensed
danowat:
I see it can't connect to localhost for some reason. If you are using it, try changing it your local or real ip.
Other than that, I can't reproduce this king of bug here.

ALL:
To see the program at work, you can join demo server "Marvel Drag".
Knu
S2 licensed
Strange.
When do you get this error?
Is .NET Framework Installed?
Have you correctly entered IP : port and password?
ISRM.mod_drag 0.81 Beta - Release
Knu
S2 licensed
Hello everyone, I'd like to present my first ever InSim app, ISRM.mod_drag, enjoy! In short, it's a system for drag racing (here's a good article on the basics: http://www.staginglight.com/guide/react.html). Look below for details and screenshots (a bit outdated though ).

It is a server-side application and will not work in singleplayer! If you want to try it out offline, you'll have to create a local server (Multiplayer->Start new game) and connect ISRM to it.

Attention! THIS ADDON IS NOT SUPPORTED ANYMORE! Source code was lost after a hard drive crash.

Patch Z Version is now attached due to demand! Only Tracks.txt changed.

Features:
- An automatic system - no admin needed!
- Fully-fledged Christmas Tree
- Staging and prestaging
- Realistic start detection (allows rollout)
- Accurate winner detection
- Jumpstart detection
- Hall Of Fame (the best times)
- Practice mode and competition mode
- 3 styles of starting lights - Sportsman, Pro and LFS-like
- 1/4 mile, 1/8 mile and even 1/2 mile distances
- Measures total time, reaction time, margin of win
- Measures 0-60 mph time and finish speed
- Interval timers at 60', 660', 1000', 1320' and 2000'
- On-screen options menu (Shift+I)
- English and Russian languages, with ability to add your own.
- Optional and customisable agreement screen
- Race on the BL1 backstraight and the AU3 drag strip, or...
- Set up your own drag strip in any part of any track!


Special thanks:
- Red Runner (for his wonderful LfsInSimLib)
- Sonyk, Leandrus, Sanchez, Lord Lugarsh, strato12345 - bug reporters
Last edited by Knu, . Reason : for the sake of it
Knu
S2 licensed
Try sending a 'dummy' RCM with a single character, like a dot:
/rcm .
/rcm_ply blabla

AFAIK there are even some blank characters, so you can use those instead of the dot.
Knu
S2 licensed
Quote from Commands.txt :Race Control Messages : (big text in centre of screen)

/rcm MESSAGE :set a Race Control Message to be sent
/rcm_ply USERNAME :send the RCM to USERNAME
/rcm_all :send the RCM to all
/rcc_ply USERNAME :clear USERNAME's RCM
/rcc_all :clear all RCMs

AFAIK, no special packet for this, just send those in the usual MSO packet.
Knu
S2 licensed
Quote from Scawen :I've made a note to consider these problems. They only affect InSim and nothing in LFS depended on this info being known to the dedicated host.

Great! And I still thought something was wrong with my code http://www.lfsforum.net/showthread.php?t=25572

I have a very small suggestion: could you decrease the minimum car info interval? It seems fairly artificial at the current 100ms, and I need more precision for my purposes (measuring the time gap between cars in real time)

Thank you for all the hard work (specifically InSim ), Scawen!
Knu
S2 licensed
Just in case it helps, my initial problem:


-IS_ISI
0000: 2C 01 01 00 00 00 10 00 00 00 E8 03 6E 33 31 31 ,...........n311
0010: 00 00 00 00 00 00 00 00 00 00 00 00 49 53 52 4D ............ISRM
0020: 00 00 00 00 00 00 00 00 00 00 00 00 ............
-IS_VER
0000: 14 02 01 00 30 2E 35 57 34 37 00 00 44 45 4D 4F ....0.5W47..DEMO
0010: 00 00 04 00 ....
-IS_NLP
0000: 0C 25 00 01 03 01 03 00 02 00 00 00 .%..........
-IS_NLP
0000: 0C 25 00 01 08 01 03 00 02 00 00 00 .%..........
-IS_NLP
0000: 0C 25 00 01 0C 01 03 00 02 00 00 00 .%..........
-IS_NLP
0000: 0C 25 00 01 11 01 03 00 02 00 00 00 .%..........

I ran out of ideas to try
Knu
S2 licensed
Quote from GeForz :I'm getting correct positions in NLP.

Perhaps show your code

I'm not sure which part of code you need? Because after I send an IS_ISI the problem is not in my code (as packet analyzer proves).


Edit: I'm also having troubles with IS_RST, which gives me Finish, Split1, Split2, Split3 all equal to 65535.
And yet again, the packet analyser gives the same info, here's the complete packet exchange (I hope that helps):
IS_ISI ->: 2C 01 01 00 00 00 20 00 00 00 E8 03 6E 33 31 31 00 00 00 00 00 00 00 00 00 00 00 00 49 53 52 4D 00 00 00 00 00 00 00 00 00 00 00 00
IS_VER <-: 14 02 01 00 30 2E 35 57 34 37 00 00 44 45 4D 4F 00 00 04 00
IS_TINY ->: 04 03 01 13
IS_RST <-: 1C 11 01 00 00 00 00 00 42 4C 31 00 00 00 00 00 23 00 DD 01 [B]FF FF FF FF FF FF FF FF[/B]

Maybe, someone would be so kind to replicate/confirm this?

Thank you
Last edited by Knu, . Reason : add
Knu
S2 licensed
Quote from Victor :i'm confused

1) 0C is that the length of the IS_NLP packet? Shouldn't that be 84 (hex)?
2) there is no position indication in a nodelap packet (see your post title)
3) what is the problem you are aiming at? Just the bold 00 doesn't tell me much tbh

InSim.txt:
struct NodeLap // Car info in 6 bytes - there is an array of these in the NLP (below)
{
word Node; // current path node
word Lap; // current lap
byte PLID; // player's unique id
byte Position; // current race position : 0 = unknown, 1 = leader, etc...
};

struct IS_NLP // Node and Lap Packet - variable size
{
byte Size; // 4 + NumP * 6 (PLUS 2 if needed to make it a multiple of 4)
byte Type; // ISP_NLP
byte ReqI; // 0 unless this is a reply to an TINY_NLP request
byte NumP; // number of players in race

NodeLap Info[32]; // node and lap of each player, 1 to 32 of these (NumP)
};

Thanks for your reply!

1) x0C is 12 and is perfectly fine as (4 + 6*1 + 2).. or am i missing something?
2) well, the InSim.txt says otherwise this might be one of the new features.
3) the problem is that byte 'position' is always zero.

Sorry for any confusion
Insim problem: "position" in IS_MCI/IS_NLP is always zero
Knu
S2 licensed
This is very confusing. First I thought the problem was my app, but I checked, and the packet analyzer shows, that the rest of the packet is perfectly ok. For example an IS_NLP: ( 0C 25 00 01 24 00 03 00 04 00 00 00 ).

Tested on W43 and W47, with 1-6 players - same thing.
Knu
S2 licensed
Hi, this library is absolutely helpful, thanks!

I noticed tho, that the IS_MCI's Position bytes are always 0, maybe that's not exactly news for you, but I hope you fix this in your next release.
2
FGED GREDG RDFGDR GSFDG