The online racing simulator
Searching in All forums
(986 results)
filur
S2 licensed
Your post is poorly translated and makes very little sense, please post the question in the original language so someone can translate it properly.

Quote from translate.google.com :Votre message est mal traduit et fait très peu de sens, s'il vous plaît envoyer la question dans la langue originale si quelqu'un peut le traduire correctement.

filur
S2 licensed
InCLSim
filur
S2 licensed
Or something like this:
struct IS_SRE // Send to LFS to define Setup REstriction(s)
{
byte Size;
byte Type;
byte ReqI;
byte SetupRestrictionFlags; // SRF_ constants

struct CompleteSetupFile;
}

struct IS_BSE // Sent from LFS to indicate Bad SEtup under restrictions.
{
byte Size;
byte Type;
byte ReqI;
byte PLID;
}

#define SRF_MIN 1
#define SRF_MAX 2
#define SRF_ENABLE 4

filur
S2 licensed
Quote from PoVo :Anyway of running this in a GUI application? I tried but "_insim.Run();" freezes the application.

If I remove "_insim.Run();", the InSim app connects, then automatically disconnects BUT runs.

http://www.google.com/search?q=c%23+threading
filur
S2 licensed
Quote from broken :Download Visual C# 2010. Start a new form project. Click twice on the form. [...]

I think you missed the point.
filur
S2 licensed
Quote from Ziroh :How can i add text when a player connects

Sending text: (you send this packet to LFS)
Quote from docs/InSim.txt :struct IS_MST // MSg Type - send to LFS to type message or command
{
byte Size; // 68
byte Type; // ISP_MST
byte ReqI; // 0
byte Zero;

char Msg[64]; // last byte must be zero
};

Detecting a new connection: (you receive this packet from LFS)
Quote from docs/InSim.txt :struct IS_NCN // New ConN
{
byte Size; // 56
byte Type; // ISP_NCN
byte ReqI; // 0 unless this is a reply to a TINY_NCN request
byte UCID; // new connection's unique id (0 = host)

char UName[24]; // username
char PName[24]; // nickname

byte Admin; // 1 if admin
byte Total; // number of connections including host
byte Flags; // bit 2 : remote
byte Sp3;
};

filur
S2 licensed
before sending the button
{
save the button text in a list using the clickid as a key
}

when a btc packet is received
{
using the clickid, find the text in the list you saved it in earlier
}

filur
S2 licensed
Quote from Yisc[NL] :it would be nice if insim (that's something Scawen has to add) would have an option which indicates a button doesn't need clicking.

That option already exists, been around since buttons were first introduced.
filur
S2 licensed
abs((abs(direction - heading) + 180) % 360 - 180)

filur
S2 licensed
Quote from Victor :... converts them to utf-8, according to your collation settings.

Collations deal with sorting, not encodings or conversions.

Quote from mysql.com :A character set is a set of symbols and encodings. A collation is a set of rules for comparing characters in a character set.

http://dev.mysql.com/doc/refman/5.0/en/charset.html
filur
S2 licensed
Quote from Dygear :Damn ... I don't know how to even pass that information along to the program tho ... Do I just submit the data to the socket, or do I have to come up with some other kind of mechanism.

Just make the socket code read from a file on disk.
filur
S2 licensed
Use raw recorded insim data instead of a replay.
filur
S2 licensed
Quote from dawesdust_12 :Of course, having a 10 minute battery life is awesome!

The n900 has poor battery life even when doing nothing so you can't blame it on the multitasking alone.
filur
S2 licensed
Quote from Dygear :Basically, you can keep PHPInSimMod running while programming the new plugins ... just call the load and unload handler for the plugin

How would you handle Fatal error: Cannot redeclare foo() (previously declared in ... ?
filur
S2 licensed
Had another look and spotted two issues in IS_BTN.cs where a text longer than 240 chars would be handled incorrectly and the variable size stuff padded an empty text to a length of 4.

So here's a patch for those.
filur
S2 licensed
Quote from DarkTimes :I've uploaded a new version to the first post, with those fixes

Had a quick look and noticed this didn't make it into IS_BTN.cs:
- writer.Write(Text, 240);
+ writer.Write(Text, Size - 12);

filur
S2 licensed
Quote from morpha :Don't be fooled by the syntax, the dispatcher class implements ArrayAccess

This would get a -1 from me, the semantics are incorrect and AFAIK there's no way to have a similar syntax for the reverse (removal) operation.
filur
S2 licensed
Patches for Spark 1.0, i'lll update this post if i do any more.
FGED GREDG RDFGDR GSFDG