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
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*
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 ...
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
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)
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
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.
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
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.
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
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 };
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
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.
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...