The online racing simulator
Searching in All forums
(316 results)
CLRS530
S2 licensed
Yes sure, the selection was between xml and a csv file.
But because I have good experiences with parsing these files I used this, but yes maybe I will switch to xml or use both but this won´t be a good way I think

I wrote a XML-programm with VB in my programming beginnings and the structure of my XML-File was so bad that everything that should go in under 1 second needs nearly one minute I think since there I dont like this format :P

Nice page and thanks for it in german
I think I will change to XML cause everywhere XML is used 0o so I have to know how to handle with.
But ok now I think I have to build a nice XML class/libary for me
CLRS530
S2 licensed
No problem I didint use this tool ever

And I have no rivals, if my tool is better then good the useres will use it.
If no one will use it Iam not to sad cause the work wasnt for nothing *gg*

But we will see...
Last edited by CLRS530, .
New Release 1.0 Live for Stats and LFS Report inkl Source Code
CLRS530
S2 licensed
Hi, my Insim Tool is a third or so stats saving tool.
Some of you maybe thinking no new tool is needed, but I make it to train my programming skills and its for me cause I think I can make some things better.

Cause Im in the end from the main features I have some questions to you, wich information you want to get.

Thats a part of the current "db" with information from 2 player with one lap

Version 1.0

//player
//<length playername>;<playername>;<ID (in LFS)>;<fastest speed><number of laps>
4;AI 1;1;27601;1
//lap
//<lap number>;<time m:s:h:t>;<lap-line-speed>
1;0:42:43:0;25947
//split
//<time m:s:h:t>;<split-line-speed>
0:18:22:0;27001

//second player
4;AI 2;2;27294;1
1;0:43:83:0;17350
0:18:77:0;25810

The track information will be saved too, I didnt know exactly what but I will do it the next day(s).
Then I thought to save the overhaul event but I dont know if thats interesting enough?!?

You can think of more things...


I know that isnt a nice thing to get informations out of the splits and so on
So I want to make a dynamic website with it cause the main bad thing on beckys stats part of the tool for me are that there are so much websites...
I dont know excactly how that will work but I dont think it will be to hard with PHP ...
Last edited by CLRS530, .
CLRS530
S2 licensed
Hmm my post got delete so here the short version...

I will write some things I did and have to do, some thoughts you can resume or edit

I develop a sort of new stats saving tool so I need much information (in split and mci too there without username).
In my guess it makes no difference if I look everytime for name and id or update the ID where it have to be done.

Here the points where the ID or name changes (isnt complete I think)

- New Player (IS_NPL) -> get the ID (?) --> unimportant for me cause I get non-existing IDs from the first information I store (mci, lap, split).

- Rename Player (IS_REN) -> get a new name reference by ID (for me) or with the old name

??? - Player Leave Race (IS_PLL) -> ID changed to 0 (no player in race)?

Are there more points? For sure I will test the last ??? point myself but I wrote it here cause it came in my mind this moment
CLRS530
S2 licensed
Hmm, I began using the name for reference but in a mci or split package I dont get this name so I can use the ID everywhere... (first I wanted to do the same name and then ID but it makes not much sense in my opinion)
CLRS530
S2 licensed
Hmm, to be sure with the UniqueID...
You get one if you join the race and when you leave race you can get a new one?
And a new player who connects, will he gets the first free ID?

for example
ID: 1 Player1
ID: 2 Player2
ID: 3 Player3

Player2 disconnects
Player4 connects will get ID: 2?

But one player in a race will have one ID from begin to end thats right isnt it?

it would be nice if the ID dont change and used id from disconnected players won´t be used before a race restart or before the IDs to give are at the end (255).

But I dont think that will be implemented so late in LFS
CLRS530
S2 licensed
Quote from wheel4hummer :OMG please don't hurt anyone!

haha good point :P I fixed that.
New Informations in InSim Packets
CLRS530
S2 licensed
Hi guys, hey Scawen

I make this thread not only for my Request cause I read in any other thread that someone wanted to have information in a byte of any packet but I didnt found this thread again...
And maybe others have ideas or need (for) something

But for me it would be good if you can add the number of the Splits from a Track in the Race Start.
Sure I can hardcode it, but i want to write a program wich ist best prepared for the future so for new Tracks with maybe more then 3 splits for example.
Last edited by CLRS530, .
CLRS530
S2 licensed
Uploaded a Fixed Document look at the Edit of the first Post
btw its an Excel Document
InSim Packet Overview
CLRS530
S2 licensed
Hi, cause I make a InSim Tool ATM I wrote a short InSim packet Overview in an Excel- Document with Size and few other informations.
Cause you need a longer Time to find it in the InSim.txt.

Maybe something similar is availible so sry, I dont looked for it.
Second, the structure of the file isn´t to good and there are writing errors, but its good enough for me at the moment so feel free to edit its structure or the errors :P
If you think thats a good idea and you use it, I will have a look to make it better

EDIT:
Version 1.1
- Include the not Existing Version Answer
- Cleaned up the Language Part
Last edited by CLRS530, .
CLRS530
S2 licensed
OK I think I have it anyway thanks for your help
CLRS530
S2 licensed
But where is the difference between Port 0 (back to the same port) and use the same port?
It makes for usage no sence to me
CLRS530
S2 licensed
Ok, I will test it with Port 0..

EDIT: It works with Port 0, lol, but it didn´t worked to write the same port as the incoming one.
I think that should be fixed and handled same

EDIT2: I hope Scawen reads that, I won´t write it in the test patch sub...
Last edited by CLRS530, .
CLRS530
S2 licensed
No no, nothing with Port 0.
I used the same Port for the Socket (where I sent ISI pack to)
and used the Port in the pack too.
that should be the same as to write port 0, yes.

But that should work shouldnt it?
Or LFS have to say at least it dont work and not hanging up or dont work like you think it should do.
CLRS530
S2 licensed
Lol, that was it, both 'bugs' are gone .
Hmm, but I think that could be or better should be fixed from LFS?!?
CLRS530
S2 licensed
Yes sure, I debuged, the first structure has 24bytes and the second 8bytes...
Second I filtered the UDP packets, but only one 'sniffer' I tested showed the local packets.
There it looks like everything is ok.
But I could test only the one with the ISI packet, cause any bug (in my windows or this sniffer) appears and I had a blue screen

If anyone could test my program, that would be fine
I have no idea whats wrong
CLRS530
S2 licensed
You mean structs?

The one from insim.txt...


struct InSimInit // UDP packet to initialise the InSim system
{
char Id [4]; // ISI + zero
unsigned short Port; // Port for UDP replies from LFS (0...65535)
unsigned char Flags; // Bit flags for options - see below
unsigned char NodeSecs; // Number of seconds between NLP or MCI packets (0=none)
char Admin [16]; // Admin password (required if set in LFS host options)
};
struct InSimPack // General purpose 8 byte UDP packet
{
char Id [4]; // 3 character identifier followed by zero character
int Value; // 32 bit value depending on the type of InSimPack
};

CLRS530
S2 licensed
If I send the ISI packet and no ISC after that and then I try to close LFS it hangs up...
But if I send both LFS works but I get 3 messages
CLRS530
S2 licensed
No sry I posted it in the wrong order.
If I would send it to the incorrect port nothig would happened.

I send only this two packets, no more and if I send this two LFS didnt hang up but the 3 messages appears.
I have to do anything wrong...
CLRS530
S2 licensed
The problem is still here.
Now I could write after the 5th try (clicking on post reply in the programmers sub)...
CLRS530
S2 licensed
No sry, am I so unclear?

I know what to send and so on, what I want and what the code part is, is to look if I make everything right.

After I send this two packets you will see that



that looks like 3 packets...

And if I send only ISI I cannot close LFS cause it hangs up.
Last edited by CLRS530, .
insim using c++ question
CLRS530
S2 licensed
Yeah, now it worked, to write a Post.
But its late so it will be a short one.

I want to write a short application using insim.
Now its the first time I use UDP.

So I have few Problems, I sent the ISI-Packet in main menu, the message appears (Port XXXXX...).
If I want to close LFS it went to hell Sound laggs...
If I sent two packets (ISI and ISC) it worked but I get three logg messages
Insim Init, Insim closed and after the closed one I got the message, that I sent a packet before ISI...

I dont think that this are bugs, so what went/ could went wrong

Here a short code part


InSimInit startInsim;
sprintf(startInsim.Id, "ISI%c", '\0');
startInsim.Port = 49999;
startInsim.Flags = 0;
startInsim.NodeSecs = 0;

InSimPack insimRequest;
sprintf(insimRequest.Id, "ISC%c", '\0');
insimRequest.Value = 0;

lfsSocket.sendMessage((char*)&startInsim,sizeof(struct InSimInit));
lfsSocket.sendMessage((char*)&insimRequest,sizeof(struct InSimPack));


//call from sendMessage (smsg char* ssize Port)
rc = sendto (s,smsg,ssize,0,(SOCKADDR*)&addr,sizeof(SOCKADDR_IN));

Last edited by CLRS530, .
CLRS530
S2 licensed
What time do you mean?
The time in forum is 20:34 and my local 22:33...
Forum Login/ Writing Problems
CLRS530
S2 licensed
hello, Since the beginning I think, I cannot login if I pressed 'new Threat'.
Then the message "you are logged in blabla" appears and I get redirected to next page.
But ever this site is again the login screen.

Now I have to go back in the main forum or something, log there in and write the post.

Now I can write (Im logged in) in most threats but I wanted to write something in the Programmers-Sub-Forum and it didnt work.
Im logged in and press new threat and then the login screen appears but if I go back and refresh Im still logged in.

I authorized all cookies...
CLRS530
S2 licensed
No no, it shouldn´t be a funny post and it´s not meant ironic.
If I wrote it will be a bit ironic I meant I dont mean everything so hard I write it...
Maybe it was not the clearest post, yes, but if you read correctly you should see without problems that my 3 points are everything else then a request...
FGED GREDG RDFGDR GSFDG