The online racing simulator
Searching in All forums
(921 results)
broken
S3 licensed
Quote from dawesdust_12 :THat's just retarded. I browse a lot, but I maybe open 10 tabs at a time.

In your last 3 posts:
You said that small optimizations are retarded.
You described IE as decent.
You called people that open many tabs retarded.
[edit] You said that speed is just a bonus. - It should be the primary thing when you are developing something. [/edit]

I'm sorry but I couldn't disagree more with you. And it is obvious why.
broken
S3 licensed
Quote from Velociround :There's still no ridiculously easy way to steal one's passwords from Opera as there is on other browsers. When the user is browsing the web with Opera, you'll need access to his hard drive to open the wand data and some software to decrypt it. However on other browsers all you have to do is have a very simple script on a website to get all the data the browser deliberately fills in without you wanting it to, or someone else using your PC just open the settings and see all your passwords. There's just no comparison between the extra level of security Opera gives its users, whereas other browsers just fill in all of their data on every field they find.

Did you just say that Google are stupid enough to let the website retrieve fill data before the form has submitted? I mean, come on, that's common sense. I don't claim to know what the situation really is, but this just sounds ridiculously impossible.
broken
S3 licensed
Each tab has it's own proccess, iirc. About memory usage - I haven't noticed it using too much. After all, I was using Chrome on my desktop PC, which is like 10+yo, and it was actually fast (comparing it to firefox and IE).
broken
S3 licensed
Quote from DevilDare :"if its not broken, dont fix it"

Imho, this term itself is broken. I've never liked it. It kind of sounds like "don't make something better if it works already". Makes no sense to me.

But then again, that's just me.
broken
S3 licensed
Ok, I have to be a complete noob and ask: How to get this to compile? It seems like pthread is causing me problems, cause it says "sched.h" not found or sth like that.

I visited their site(if that is it: http://sourceware.org/pthreads-win32/ ), but the download directories are htaccess protected with passes.. which I, obviously don't know. I saw that there are executables but, yeah, they are in those same download directories. So I'm kind of stuck.

Here's what I did to try compiling it:
Made an empty project in vc2010;
Added all the files to it, that I thought are neccessary;
That didn't work, so I removed all the files;
I then added all the files from the archive;
Got the same error;
Started browsing the net and chatting;
A day later, here I am, posting in this thread, after another few failed attempts.

I made so many empty projects to try different stuff, that I started giving them some stupid names like "damnit", "whattheduck", uncensored version of whattheduck too, "deletemeeeee" and the likes.

And please, don't judge my terminology, I know that it completely sucks.
broken
S3 licensed
Of course it is harder to learn, than getting somebody else to program it, compile it and give you the final exe. But that's just kind of insolent, don't you think?
broken
S3 licensed
If you start learning from those open-source apps, you'll learn how to do everything you want to do as you go on with it.
broken
S3 licensed
Some day, if I overcome my fear from posting the OsC's source(and not only fear, but embarassment too actually), you might take a peek in there. So in case nothing pops up, you can check the programming libs and tools section every few months for osc's source.

You can check the other open-source cruise insim apps too tho. I think there are like 2 of them, and if we count the examples from DarkTimes, that would make like 3.. or 4? Not sure. But you can check that out. Once you learn C#, everything from there is just plain logic and plain math. It's not rocket science, but at first it might suck, because you won't know the short way for many things, and you'll probably have to think of work-arounds. And then, one day you will wake up and realize that you've done it all wrong, and that it all needs to be re-done, for the sake of both, performace and readibility. Just telling you what to expect if you're going down that road(you're making a wrong turn there).
broken
S3 licensed
Stop turning every thread into a DirectX fight! fjhdhjd!
broken
S3 licensed
Then go ahead and play them. Simple as that.
.NET C# - Open Source Race App (using LFS_External) (-OsR- Old skool Racing)
broken
S3 licensed
I believe that this is by far the most successful project I have worked on in my LFS time. And since I'm not really active in LFS lately, and -OsR- isn't up either, I decided to post the source of it. I really wanted to do this earlier, but I just couldn't find the time, or the mood.

Big thanks to:
T-RonX for LFS_External, which is used as the main base for this project;
DarkTimes for InSimSniffer, from which I stole a few things (yeah, again) ;
morpha for so much stuff, that I'm even lazy to write them down. Luv u {} (as a friend of course.. I'm not gay ..much);
dougie-lampkin for Open Source Cruise Server, from which I have learned the basics of C#.

And bah... Gotta include a license again, don't I?
I've always hated that part. But here goes..
On 2nd thought: I'm just going to stick with the MIT license, but still post it anyway:
Copyright (c) 2010 Loran Mutafov

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.

Ok, so.. Some advices to get you started.
Database server configuration settings are in the dbProcess class.
It is pretty obvious which ones they are, but I would feel more comfortable if I show them to you here. So, there they are:

static public string dbServer = "database IP";
static public string dbPort = "database PORT | default: 3306";
static public string dbUser = "database USER";
static public string dbPass = "database PASS";
static public string dbDatabase = "database DATABASE";

It's more than obvious what's for what, so I'm not going to explain any further. I will attach an sql file, which you will need in order for the whole system to work as it should. You will see a lot of fields that aren't being used. That's cause I planned it to be a much bigger project, but I was just a lazy kid.

LFS Server configuration settings are being set in settings.ini. A file that should always be in the same folder as the built exe. In case you lose it, here is a copy of it as is when you first download the project:
Admin adminpassGOESHERE
Port portGOESHERE
IP ipGOESHERE
carsGlobStr 0111111111111111111111

Little explanation about that last line is probably what you want right now. Ok, so, basicaly, this is a string, representing the allowed cars, that users are able to pick for the next race.
The 01 in front of them, I think should not be changed, because it is read by the so called matrix system(it was my best invention at that time, and I knew nothing about binary, so I had to give it a killer name ). Basically, that 01 is doing nothing more but to tell the matrix functions that the string contains only 1 digit numbers.
For example: If you wanted the same string, but with 02 in front, you would have to put a zero in front of each 1 after that, or in other words: make it like that - 020101010101010101010101010101010101010101, so that ones can stay ones. That's just in case you want to use the matrix system for other purposes. It isn't really necessary at the current state of the insim, but I told you already: I had further plans for it. Had is the keyword.

Well, let me not keep you busy with more useless information. There's the source and have fun with it.
Last edited by broken, . Reason : "an sql file", not "and sql file" -.-
broken
S3 licensed
Quote from Dygear :The UF1 is a demo car?

Come on -.- ..If this guy turns out to be a cracker, I'll seriously quit helping any demo users.. But really, I think he is asking how to do it in the application.. Or at least I really really really do hope so. ;d
broken
S3 licensed
Quote from kieran20 :i am afriad he is right. all the very loyal lfs players however sweet it may be, need to wake up for once.

The general gamer for racing, me i race in real life and i am the same, i like to have good online racing, but when i have the option of cars that are out there in the real world, with real life great circuits of the world played across public and great leagues, they win me over.

lfs just does not offer this, and although its a great game, its loosing touch and needs a rethink, not on how to be a great game, but on how to lure everyone back into actually playing it to allow it to develop properly! the concept is not one that will win over the majority of sim racers.

Getting there takes time. Realize it. Do you prefer an arcade game with real life cars and tracks, or do you prefer to wait more, but instead get a sophisticated simulator, which slowly includes such?
broken
S3 licensed
Quote from Vepr :well with the one slash it i get an error when starting a server saying something about parameter 2 is invalid

make sure that there actually is an admin password set there
example:

WONT WORK:
//admin=somepass
//admin=
/admin=

SHOULD WORK:
/admin=passgoeshere
broken
S3 licensed
Quote from Vepr :Hello guys I'm having problem... I can't login into a server with admin and i can't seem to get replace the Uf1 with Xfg

Make sure that the admin field in the server config file doesn't have 2 front slashes in front of it, but just 1. Then, you have to enter that pass in the password field when you are about to join the server.

About replacing UF1 with XFG... I guess that's one quite major change in the application, so I can't really give you exact information.
broken
S3 licensed
Such situations drive me away from trying to give help to demo users... -.-
broken
S3 licensed
@last 2 posts : That should not at all matter if you want to show the speed of a car. Unless you are dumb enough to write it especially for one of the tracks/cars only, of course.

As for the question: Please provide a little bit more details. Where is the code for this located. Post it here too. Or else, we can't really give you a 100% correct answer. Actually, we can just guess what the solution can be, because how would you answer such a question? It's like asking us 'I lost my mobile, any idea where to find it?', when we don't know what your room and phone look like. Hope you've got the point.
broken
S3 licensed
Quote from (The Stig) :lol Corey gave that a bad name NEVER hire Corey as a owner he will stop everything make you stressed and basicly annoy you untill you give him administration permissions he also bribes you, AND don't let ryan.hynes host you a server he will rip you off big time.

Thanks!
The Stig

Yes, tech, listen to George. You should have hired him instead of corey, and now everything would've been just fine!!!!!!!!1! ...not
broken
S3 licensed
That's actually.. um.. up to the developers of the insim app.
broken
S3 licensed
Well, personally, I prefer Chrome. It's fast. It's simple. And it's nothing more or less than that. The moment you install it - it just runs for less than a second. Even with the plugins I have installed(fb, adblock and tab saver), it's still as fast.

I don't like FF, because you have to disable tons of stuff to make it work as fast as Chrome.
Hate Opera, because the one time I installed, it was so damn slow, that you can't imagine. And support is not as for FF or Chrome. It's much harder to find out how to optimize it. I only tried to find out, but got bored pretty quickly, and went back to Chrome.

Sure, Chrome does affect the work of your comp after running a while (I mean hours and hours of not closing it). But FF is even worse in that aspect. Can't speak for Opera here, cause I got rid of it pretty quickly - sure, it had a nice looking and inviting interface, but the truth behind it made me move on.

I'm not even going to talk about IE.

That's pretty much how I see things. And about this 'Google spying' paranoia - you're just making yourself look silly.
broken
S3 licensed
Or, setting the UCID to 255 when showing the button, will show it to everyone. Instead of sending it, say 20 times, if that's the average load of an averagely famous server, you'll only have to send it once.

Also, I don't know how right I am, but I think that "foreach" is kind of inefficient. At least, I'd preffer to do it like that(of course, only in case you _need_ to do it that way):


<?php 
switch (BTC.ClickID)
{
     case 
26// <- CHANGE BUTTON ID
          // Select every connection in clsConnection
          
for (int i 0Connections.Counti++)
          {
               
// Do a function to each of them in this case send the button 
               
InSim.Send_BTN_CreateButton(Connections[i].PlayerNameFlags.ButtonStyles.ISB_LIGHT480635126/* <- CHANGE BUTTON ID*/Connections[i].UniqueID2false);
          }
          break;

?>

There is some possibility that some things could be wrong in the code above, but I haven't been programming in C# for quite a while. What could be wrong: Well, mainly variable/class names, as I don't know lfs_external by heart that much.
Last edited by broken, .
broken
S3 licensed
Can we just close this thread?

It's all pointless, and everyone's getting annoyed or idk for nothing. Just let it go. All on all, what could possibly happen? You're not gonna die of LFS does.. are you?(that's a pure 100% rhetorical question!)

Just leave the thread, and watch the laddergoat vid once more to calm down. http://www.youtube.com/watch?v=ggB33d0BLcY
broken
S3 licensed
Oh you... laddergoat..
broken
S3 licensed
From what I remember (feel free to bash me if I'm wrong :tilt, it was said somewhere that it is disallowed to make threads, requesting this specific insim app.

Let me not comment further about the problem with this application itself.
broken
S3 licensed
There is no specific code for stuff. The right question here is how do programmers achieve this(now I'm sure morpha will pop out from somewhere and correct my correction, but anyway, back to the point).

For speed fines and auto-penalty-clearance you would use 2 events.
1: When users leave the pit lane.
2: When users receive a penalty.

Those 2 would be the most appropriate ones.

For 1: When a user leaves the pit lane, all you have to do is send a server command "/p_clear [username.goes.here]". That way penalties will be cleared a few moments after the users cross the pitlane from the inside->out.

2: When a user gets a drive through penalty, that means that he has been going 80+kph in the pitlane. Stop-go means 90+. Based on this information you can set your fines, inform the user and deduct cash appropriately for your application.

Since you're using LFS_External as a base, I can give you even more detailed information, but I haven't used C# in a long time, so I can't speak by heart now. But anyway, this should be enough to get you started, imo. Or at least I hope so.

[E]: I forgot that you even asked about spectating AIs. Well, I haven't done that myself, since I didn't consider it so crucial. I just felt like mentioning that I can't help you here unless I fire up C# and do some experimenting myself, but I'll have to disappoint you here - I'm busy with other stuff right now. =/
Last edited by broken, .
FGED GREDG RDFGDR GSFDG