The first bug is a little issue with the InSim packet SMALL_SSG. Basically, As InSim.txt says: You have to give a uVal to SMALL_SSG. In this case, Its the port. If you set the uVal to 0. OutGauge will say its closed. If you set this to anything higher then 0, LFS will say "OutGauge : UDPPort was not specified".
The second bug is a issue with running InSim and OutGauge together. Basically, Setup OutGauge in cfg.txt as required. Then once in LFS, OutGauge data will be sent. If you try to inatilize InSim("/insim PORTNUM"). OutGauge will close instantly, And upon closing LFS. It will also adjust cfg.txt and set OutGauge mode = 0.
The way to reproduce this is as follows...
Get an InSim app. Load LFS. Type "/insim PORTNUM" to match the InSim app. Make the InSim app send a SMALL packet with a SubT = SMALL_SSG. Set the uVal = OutGauge_PORTNUM. Then start the InSim app. If you specified 0 as uVal, LFS will say OutGauge is closed. If its higher LFS will give an error saying you didnt specify a port.
Get an OutGauge app. adjust cfg.txt to the correct settings for your OutGauge app. Start LFS and then goto single player. Join the race. OutGauge data is being received fine. Type into LFS, "/InSim PORTNUM". The instant you do that. OutGauge will stop sending data. = Bug reproduced(Patch Y through to Y16).
I hope that helps. Ive tested the reproduction methods a few times each to the same results.
E: Sorry for not explaining better in the other thread.
Hello, I have made a .Net SDK for this aswell. At the moment this is version 1.0.0(starting version). Ive tested this a little bit and it seems to be ok. The way it works, You must first make an instance of the client.
LTCPubstat.Client Stats = new LTCPubstat.Client();
You must then fill in your ident key. This will be issued by krammeh atm.
Stats.IDKey = "SomeKey"
Once that is done, You must hook up the events the library can fire. Once you have done that, You can start getting some data from LTC system. To do that, You call a method. for example.
GetUserStats("mcgas001");
Then some code will be returned to the event handler. What you do with it from there on is upto you. As Ive said, This is a very basic version. I will update a lot more and add features. Any bugs please let me know. I'll sort them out. Thanks
Hello, I have a little problem with C++. Im trying to make a connections list, I have used the list in namespace std, or "<list>" if you like. Currently, I can add the connection fine. When it comes to removing the connection I have an issue. The issue being, If I use an iterator to go though the connections list(To find the one to remove) C++ will throw a type of exception.
It says "list iterator not incrementable", This is obivous, As my List is a list of structs.
Someone should make a sourceforge project out of it. Then it can be constantly updated. Or like DarkTimes said somewhere else, Someone start and lead a new project.
heh, That reminds me. I need to start learning php. Probley will once I have the basic's of C++ out of the way. And well done vane. Little effort always pays off
hmmm... I acutally think im gonna leave this idea. I have far too much other stuff planned atm, Thats pretty complex stuff too. I'll see once i get them done.
Hmm..this sounds like an intresting idea acutally. Although there would be InSim apps client side and server side. Another thing, You would need Async sockets on a system like this, So the server and client can always comunicate. Sounds like a Very intresting project TBH.
E: Tracking the set in memory is another story....
Position on the track is all you need, Unless you dont know much about programming.
struct CompCar // Car info in 28 bytes - there is an array of these in the MCI (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... byte Info; // flags and other info - see below byte Sp3; [SIZE=3][B]int X; // X map (65536 = 1 metre)[/B][/SIZE] [B][SIZE=3]int Y; // Y map (65536 = 1 metre)[/SIZE][/B] [B][SIZE=3]int Z; // Z alt (65536 = 1 metre)[/SIZE][/B] word Speed; // speed (32768 = 100 m/s) word Direction; // direction of car's motion : 0 = world y direction, 32768 = 180 deg word Heading; // direction of forward axis : 0 = world y direction, 32768 = 180 deg short AngVel; // signed, rate of change of heading : (16384 = 360 deg/s) };
If you use the X,Y,Z, You can get there position anywhere on the track
E: I have just thought of a very easy and effective way to do this, And i shall.
A computerdatabase is a structured collection of records or data that is stored in a computer system. A database relies upon software to organize the storage of data. In other words, the software models the database structure in what are known as database models (or data models). The model in most common use today is the relational model. Other models such as the hierarchical model and the network model use a more explicit representation of relationships (see below for explanation of the various database models).
Database management systems are usually categorized according to the database model that they support. The data model tends to determine the query languages that are available to access the database. A great deal of the internal engineering of a DBMS, however, is independent of the data model, and is concerned with managing factors such as performance, concurrency, integrity, and recovery from hardware failures. In these areas there are large differences between products
The webpage in effect doesnt, The example DarkTimes posted. All that does is sends a request to a webpage with a value "status=online". When writing a PHP page you can(on page load or whatever) grab that value "status" and then either save it in a database, or basically what the hell you want with it. Cant be THAT hard to understand surly?