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?
Glenn, Have you tried doing as i said here, Im sure its fixed in 1.1.0> but if your still using 1.0.4 then it isnt.
E: Making a new thread just to handle NCN isnt a good idea really, Use the backgroundWorker or the threadpool. Thats if you MUST use a thread, which IMO isnt needed.
Java isnt the best language to make games with IMO. Anything where the memory is managed for you, Isnt best. C++/C are good for games as they compile directly to machine code. Which then intrertacts directly with the hardware. 99.99% of todays games are made using C++. As much as i know C#, I'd still rather use C++(Hence im learning it now).