The online racing simulator
Searching in All forums
(896 results)
mcgas001
S3 licensed
Quote from DarkTimes :You'll need to enlighten me, what does the admin option do?

Gives people the ability to use certain commands based on if they are in a setup file under admins. Ive attached my setup file so you can see what i mean by the file.
mcgas001
S3 licensed
DarkTimes is acutally more experinced then me, I think it would make sence to just let him do it. On the other hand i had fun making the little bit i done already. Anyway, DarkTimes - I think you should add an admin option like i have in my LFS Admin and Race Rotator program. It makes life a little easier, and is a handy extra option.
mcgas001
S3 licensed
Quote from SamH :Strange.. didn't like that cookie! Ahh well

hmmm...I like cookies? Anyway. Thanks for fix
mcgas001
S3 licensed
Quote from SamH :Hmm.. I've made another change, but I'm not sure if it'll make much difference. Let me know..

Seems to work ok now.
mcgas001
S3 licensed
Quote from From GT5 website.. :Sony Computer Entertainment Europe and Polyphony Digital are pleased to announce Gran Turismo 5 Prologue™. With stunningly realistic HD graphics, online races and the most accurate physics yet seen in a racing simulator, there’s never been anything quite like it.

Thats not a sim eh?

E: See for yourself
mcgas001
S3 licensed
Tried that, Same error.



Microsoft VBScript runtime error '800a000d'
Type mismatch: 'Fields.Item(...).Value.Cookies' /myctra/default.asp, line 770
mcgas001
S3 licensed


Microsoft VBScript runtime
error '800a000d'Type mismatch: 'Fields.Item(...).Value.Cookies' /myctra/default.asp, line 770



mcgas001
S3 licensed
I also have noticed this, I dont know if its a LFS bug or just the way it reads when you enter/exit the pitlane. There is definitely a delay though.
mcgas001
S3 licensed
Quote from DarkTimes :Well, TAA isn't like normal people. Look at that beard, Jesus...

Anyway my point was that programming isn't about being smart, it's about using your intelligence in meaningful way. Some people can knock great code together in their sleep, some of us need to pour over it for painstaking hours. Nobody finds it easy, if they did it wouldn't be any fun. It's like racing, if you didn't have to try really hard and practice for hundreds of laps, there would be no impetus to keep trying and improving, and no sense of achievement. And anyone who says it's easy is either lying or trying to motivate you. Anyway, we've spamming this forum more than enough for tonight.

Hahaha, I do agree though. Programming wouldnt be fun if you didnt sit there countless hours and then finally achive something. When i get this code finally done, I shall throw a party and your all invited

Like you say enough spam, Time to code and then sleep
mcgas001
S3 licensed
Correct above post. The files that are deleted on your HDD are still there, Just the HDD marks the space where them files are as free. When something is writtin to the HDD that space will be avalable to save data, When it saves data the old data is just overwrittin, So you dont ever therotically delete somethng.
mcgas001
S3 licensed
Quote from DarkTimes :The day I meet a programmer who finds this stuff easy, is the day I officially resign.

Someone once told me on msn its easy
mcgas001
S3 licensed
No, The souce is not released. The laps is not my problem, The program does not select random laps.
mcgas001
S3 licensed
Heh, You make it look so easy. Thanks for this. I dunno if it makes sence, but im incapable of copying code and being happy with it. Just keeps playing on my mind, If they can do it, I can. For that reason i get like this. But anyway, Thank you!
mcgas001
S3 licensed
I know it sucks, but i had to try atleast a few times to do the packet coding stuff myself. and....well...i failed.

Let me know if you find that bug, Although im gonna start hunting now too.
mcgas001
S3 licensed
Quote from DarkTimes :No, the bug is there in the old version of my InSim API too. I'd really be interested to see if you can figure out what the bug is. It's one of the weirdest bugs of my making that I've ever tracked down.

OK, Thats strange then. I also have tried loads of different ways too. This is one way i coded my self but after looking at your tutorial. Looks bad, but works(JUST!):

private void RecieveWorker()
{
byte[] buffer = new byte[MaxBuffer];
int BytesRecieved = 0;
int CurrentPacketSize = 0;
while (!_exit)
{
try { BytesRecieved = Client.Receive(buffer); }
catch { }
if (BytesRecieved == 0)
continue;
CurrentPacketSize = buffer[0];
while ((CurrentPacketSize != 0) & (BytesRecieved >= CurrentPacketSize))
{
byte[] Packet = new byte[CurrentPacketSize];
Buffer.BlockCopy(buffer, 0, Packet, 0, CurrentPacketSize);
Array.Clear(buffer, 0, CurrentPacketSize);
ProcessPacket(Packet);
CurrentPacketSize = buffer[0];
}
}
}

Probley sucks but it works ok atm,(only with one packet per time though :schwitz Ill see if i can find that bug.
mcgas001
S3 licensed
Quote from DarkTimes :I'll upload a fixed version soon.

There maybe no need, Does your lib code handle the packets correctly? I think i still have that somewhere on my PC.
mcgas001
S3 licensed
Yes, Exactly. Like me for example, For some reason even know ive looked up on tonnes of stuff. I still cannot recieve more the one packet from LFS due to my programming limitations

So it helps for threads like these to be around.

P.S: DarkTimes - The code in your InSim tutorial for some reason doesnt recieve more then one packet at once.
mcgas001
S3 licensed
Quote from vane :why the hell doesnt anyone just work these things out for themselves? i managed to work it out easy enough...

Please dont post stuff like that, If you havnt got anything helpfull to say. Dont, its not nice and you wouldnt like it if people said that to you.
mcgas001
S3 licensed
*starts coding*
mcgas001
S3 licensed
Quote from the_angry_angel :1. Running an insim application to give them some sort of admin control via a button GUI, or by text commands (there is one by mcgas001 in the unofficial addons forum)

Only issue with that: It authenticates people by there username. I could add demo support, Ill see.
mcgas001
S3 licensed
Acutally, slightly off topic here. Im amazed at this and the way it works. Its like a little .dll file and thats the db. Is this totally portable? Like i wont EVER need to install anything on another pc to run it? Just move the file with the program. If so ill use this a LOT more!


Also, Just tried the following...

Db.Open("C:\\Documents and Settings\\Sean\\Desktop\\test.db");

Db.BeginTransaction();

Db.ExecuteDML("create table test(one varchar(24), two varchar(24))");

Db.EndTransaction();

...and that worked fine.
mcgas001
S3 licensed
Quote from JamesF1 :Similar, yes.

LOL, Sorry for spamming your thread, and sorry i couldnt help.

E: Idiot moment :\
Last edited by mcgas001, .
mcgas001
S3 licensed
So, its like MsSql Compact edition then?
mcgas001
S3 licensed
Quote from JamesF1 :Regardless, I'm still interested to work out why this doesn't work *shrug*

Sorry i couldnt help . I cant even find the SQLite server to test it. So i was just looking at the wrapper and trying to relate it back to MySql -Bad idea
mcgas001
S3 licensed
OK, I see. Well, Is there anything forcing you to use that wrapper? If not maybe get another one. Like this?
FGED GREDG RDFGDR GSFDG