The online racing simulator
Searching in All forums
(921 results)
broken
S3 licensed
Quote from Beaver08 :Figured it out

Good to hear you've sorted it out - what was the problem with special characters though?

Quote from ADr3nAl1n :Is this the only InSim.NET based out there?

I am not sure, but if anybody wants to make improvements, you are more than welcome to do so. Because, unfortunately, I do not have enough time to keep up with it at the moment. Any recommendations are welcome as well.
broken
S3 licensed
Quote from Kyle-Caz :Still Says RF When i Did F5. Im Editing In Visual C# 2010

Try to look for "/msg ^7Welcome" then - just an idea. I think you should be able to find that in Form1.cs.
broken
S3 licensed
Quote from Omar1 :maybe that was, Enjoy your stay and Live for speed?

Hm, I see what you mean. Interesting point, I didn't look at it from this perspective.

Okay, ignore me on that then, but my last question is still valid.
broken
S3 licensed
I just completed translating the new stuff (yay?).

Though, when I went on to LFS.NET translations, I noticed a problem in the English version itself.

It says:
Quote :TXT_wehpuenj | We hope you will enjoy your stay and LFS

While really, I think you meant to write:
Quote :TXT_wehpuenj | We hope you will enjoy your stay in LFS

Just saying. Back to finishing up the LFS.NET translations before something patchy happens!

P.S. I can't understand what "GAMEpassword storage" means, can you enlighten me on that, please? Where is this message shown?

Thanks, and in the same time - you're welcome.
How bad are donuts for your tyres?
broken
S3 licensed
I'm just wondering how fast the tyres are wearing out when you do donuts. I guess it's totally up to the tyres. But on stock summer tyres, is it very bad? I mean, say for 10 spins(donuts) at most.

I don't really need details (though I wouldn't mind), I'm just curious - all I need is very rough answer. Say for 10 donuts once every 2 months, will that make any difference on how often you need to change the tyres? Or is it not going to be very significant?
broken
S3 licensed
Quote from HarryGillman :if you want to cruise why not use your real motor vehicle instead of the pretend one...?


Because if I cruise in my city the way I do in LFS, my license and car would have been confiscated more than a few times already.
I would have threatened many people's lives too, because in the city, there are the so-called pedestrians. And this is just irrational and irresponsible. Think about it.

[E] Sorry, forgot to put the most abused emoticon after my post.

broken
S3 licensed
Quote from Franky.S :so i have no brain for playing lfs the way it supposed to?


Sorry, you're too cool for my stuck-up cruiser personality.

I retreat.

P.S. Sorry for playing the game not the way I'm supposed to.
broken
S3 licensed
Quote from Franky.S :that doesnt not make sense..

what you achieve from cruising? you got to buy a car that you already pay £25 for ? lolol

i will just take any car i want and go race. beat my laptimes and win. feels god. now what do you do? sit and pretend to be cool in your low and slow peice of shit fwd fxo?

yeahhh thats cool.

I don't even have to argue with such made-up crap.

However, just so my post isn't as useless as yours are, here are some benefits I got from cruising:
1. I advanced with my programming skills a lot, by programming a cruise server.
2. I met a lot of people who like programming and LFS as well.
3. I met a lot of people who are not into programming, but are still cool people nonetheless.
4. I learned how to handle my car IRL, from cruising. LFS literally saved my car (and maybe life) once, while I still had my driving license for like 3-4 months.
5. I didn't have to focus a lot, while cruising, unless I wanted to. So when I needed to relax, I could relax. It's why LFS can be running while I'm working. That can't happen on a racing server - or it's useless, to say the least.
6. Many more. I just have to think a bit, and I can give you at least 20 more reasons.
broken
S3 licensed
I bought it because money.

I like steaks, and I wouldn't mind if people bought the same pan I use to make steaks, to make pancakes in it. Totally their decision, in their life. Who am I to mess in their life, and tell them to gtfo and buy another pan?

Therefore you suck.

That's how we argument in here, right?

P.S.
Cruise servers are so popular, because of people who hate on them in every thread.
Let me tell you how it goes:
1. You post a hate comment in a thread - therefore you bump it.
2. People look at all these cruise threads, they see something going on in there.
3. They decide to try it.
4. They like it.
5. They come here, and see the actual hate, and reply - therefore bump.
6. You do 1 again.
(In fact, what I feel like doing after reading your replies, is jump in a cruise server, where somebody I know is online. Even if I don't feel like cruising.)

It would be much more effective if for every cruise thread out there, somebody made a race server with a moderately unique idea and a thread about it.

The more you hate on cruise, the more exposure you give it.
Last edited by broken, .
broken
S3 licensed
Quote from Franky.S :[..]

How is replying to cruise stuff on the forum, while racing any different? If you hate it, it's still very weird.

Anyway, want the profile of a somewhat of a cruiser? There you go:
I'm 21. My race server was more successful than my cruise one. I run a web business. And I still do enjoy cruising. But you will never see me say racers are idiots.

The kids insult doesn't really work here. You're not doing yourself a favour.

In fact, I don't really like the idea of this server too. But that idea is going to help someone progress with their programming skills more or less. It will help another person progress with managerial skills. So, good or bad, as long as people are learning something out of it, I will support any idea or server.

While you, on the other side, need to go sort out your issues with whoever made you so butthurt. Instead of showing it in here.

You have a cruise filter, but I bet it's not even on. Use it - it's made to help you stop posting in these threads. Because cruise threads don't have a filter for your crap.
broken
S3 licensed
Quote from Franky.S :because people who no do cruise compain that cruise sucks balls so scawen agreed and made the option "cruise" to filter out that crap. simple.

So if you hate cruising so bad, why are you not racing, but spending your time here, replying to cruise server threads? Your actions are totally contradictory to your words. Just sayin'.
broken
S3 licensed
Quote from DarkTimes :Well, you did ask for feedback.

1. For some reason the solution won't open in VS2010. That's weird cause VS11 projects are supposed to be backwards compatible now. Anyway, I had to create a new VS10 project and copy all the files and references into it.

2. I'd suggest spending some time reading the .NET Framework Design Guidelines, which contains everything you would ever want to know about naming variables, methods, classes and more. They are just guidelines, so you don't need to follow them to the letter, but I'd recommend following them as much as you can. I find it really easy to tell from looking at code whether someone has read those guidelines or not. There's also this blog post about Microsoft Internal Coding Guidelines, but that's much more down to taste.

The main naming guidelines can be summed up as follows:
  • All private fields and local variables should be lower camelCase
  • Classes, properties and methods should be PascalCase
3. You have named a bunch of your classes with weird names, such as 'Globals', 'Processor', 'Vitals'. Aside from 'globals' (more on that in a minute) I've no idea what any of them mean. I'd highly suggest using more descriptive names for your classes.

4. Having a global settings class is a bad idea for a bunch of reasons. What I'd suggest is moving this 'data' out of your program into a configuration file. .NET has built-in support for creating Settings files for you automatically (you can create application wide settings, or per-user settings) and also lets you edit them using a pretty(ish) designer UI. Right-click on your project go to Properties > Settings and follow the instructions.

5. You're using a MySQL database which is fair enough I guess. I'd suggest using an embedded database such as SQL Compact or SQLite instead, as they require no setup or configuration and can be easily bundled with your program. MySQL requires you to download, install, configure and run the MySQL Windows Service, which is a total pain and way more hassle than it's worth. In terms of SQL Compact vs SQLite, I'd go with SQL Compact just because it has first class support inside Visual Studio (so you can use the database explorer and designer etc..) and can be easily installed and updated using NuGet.

6. You are executing raw SQL statements in your code, make sure you know about SQL Injection and always parametrise your SQL queries. Instead of executing raw SQL strings you should learn about LINQ, as it's probably the single best feature of the C# programming language.

7. A good tip is to turn on Warning as Errors, which will cause any code warnings to prevent compilation, therefore forcing you to fix them. Go to Properties > Build and set Treat Warnings as Errors to All.

8. Finally I'd advise running a static code analyser over your code. If you are using VS11 Ultimate beta then it has one built in. Right click on your project and select Run Code Analysis. You can configure it by going to Properties > Code Analysis and selecting a rule set. I'd suggest starting off with a basic rule set and gradually enabling more and more rules. Eventually you'll get to a point where either all the problems are fixed, or the things it's suggesting are completely pointless. If you are not using a retail version of Visual Studio then you can download FxCop, which is pretty-much a standalone version of the same thing.

I did ask for feedback! And I LOVE you for those! So, I'm going to answer in points.

1. I will have to look into that. Probably some beta-bug, or I don't know. I'll sort it out, it's just the smallest issue right now.

2. I did spend some time reading, AND implementing those already. And I like how it makes the code look more pro.
Definitely huge thanks for that. I've been wondering for a lot of time how to name my variables and classes, and everything as a whole.

3. Yes, again - huuuge thanks! I will move some methods from there to appropriately named classes, that speak more for themselves. That's going to be soon, and I'm going to post an update to this thread.

4. Yes, I've been thinking about moving the data out (not only thinking, but planning that as well in the near-future). Very nice to know that .NET has built-in functionality for that!

5. I'm using a MySQL database, because that's what most web-hosts provide, and I'm planning on hosting my database remotely for now. For the uses of the cruise app. However, for local settings and data-failover reasons, I may read on more into the types of databases you've mentioned.

6. SQL injections is something I'm well aware of. But since I want this to be more of a library, than an application, I've taken some time to look more into that. I'm currently looking on working with "Mindscape LightSpeed". So far, it looks like the easiest LINQ alternative to work with, to me.

7. That's a reasonable suggestion, but LightSpeed being in beta for VS11 brings some errors with itself too. However, I will definitely try that to see if it will bypass the Mindscape warnings.

8. I recently had PoVo recommend ReSharper to me. Definitely a good analyzer. I got the "EAP" version of it. But from my experience with it so far, if I get better at C#, or start making money from it, that's definitely something I'd consider buying.

Overall, thanks a lot! That's EXACTLY what I asked for. I really wanted to wait more before I reply, so I can upload an update to Dizplay Base too, along with my reply. But that might take a lot of time. I have already renamed some classes and variables, and overall - taken steps into organizing the code. I realize it may sound a bit silly, but I really like making my code more readable, and easier for developers after me to modify! It's one of my top priorities, after the users' (or in this case - players) convenience and code optimization.

And finally - sadly, I don't have enough time to keep a steady-pace of development, but I am trying to pay more attention to side-projects lately, and I'm hoping that can change.
Last edited by broken, . Reason : ....
broken
S3 licensed
Quote from Bmxtwins :Why:
Too many
Immature admins
Immature drivers
this isn't need for speed
http://www.lfsforum.net/showthread.php?p=1708342#post1708342
racing games dont have speed limits.


Anyone else agree?

broken
S3 licensed
Quote from Franky.S :how !? where !?

I don't even know.

And to be on topic:

Dizplay Base (C# InSim.NET based / proof of concept)
broken
S3 licensed

The GPL logos by Christian Candena are available under the CC-BY 3.0 license.

This is a proof of concept for a system, which I want to make a solid base, to use when you need to build an InSim application.

It is not a completed project, but I have not found any instabilities yet. If you encounter any, please let me know by posting a reply here.

Before anything, these are the people who must be noted.
DarkTimes - for the awesome library;
morpha - for helping me a lot with programming as a whole;
Dygear - mainly for always being so "that's why everything should be opensource";
You - if you feel like it, why not.

The idea of this application is very simple. It has the sole purpose to help you build InSim apps, without worrying about the core things. I like to think of it like the jQuery of InSim.NET. But that's far from the truth yet.

I don't really have the time yet, to strip only the base out, so you get a bit more than that. And that's the start of a cruise app. I think it's better too, in a way, since you will have examples on how to effectively use the systems in the base.

I don't know when I'll have time to update this project either. When I do though - I'm going to post here ... obviously.

If you have any negative feedback, I definitely want to hear that. Please don't hold it back. Be it about something not being as optimized as it can be, or about something that acts weirdly. Anything. And I definitely accept suggestions on ordering and naming of classes, methods, variables - I'm not very good at that yet.

I decided to publish Dizplay Base under the terms of the GPL v3 license. Though this may change in a future version.

The code is far from what it's supposed to be yet. There are a lot of stuff that have to be removed, moved and so on. Call it a creative mess.
But other than that - it's some of the code I'm most proud of.

I'm not going to go into detail yet, so I'm just going to tell you the first steps you need to take to make this run on your server, and start tweaking it. If you need help on anything else Base-related, please do post here, and I'll do my best to help. If the question is good, I guess I will include the answer in this (the main) post as well.

So, here's where changing of connection settings happens (this is around line 30 in Dizplay.cs):

<?php 
        
public static InSimSettings iSettings = new InSimSettings
        
{
            
Host "127.0.0.1",
            
Port 29009,
            
Admin "adminpass",

            
Flags InSimFlags.MultiCarInfo InSimFlags.Contact InSimFlags.ObjectHit InSimFlags.HotLapValidity InSimFlags.AutoXEdit,
            
Interval Globals.rootInterval,
            
Prefix '!',
            
Name "^1Dizplay"
        
};
?>

What comes next is email info changes. If you want error reports sent to your email, you have to insert your Gmail email and password in Vitals.cs.


That's all for now. If I find the motivation and some time, I will post a more detailed info on how to use Button Sequences, and Queue systems.

Thank you for trying the base.
broken
S3 licensed
About the new update.

The only thing bugging me is that constant change of ConnectionId between int and byte. Can we come to a nice final conclusion of what is better? My opinion is that ConnectionId is better since it's future-proof, as well as more compatible with other programming languages (unless I'm wrong and you can ban me from this forum, haha).

Other than that, I was really annoyed having to change all the packet names, but once that was done and I let the thought sink, it does look better, and while scrolling down the code, the new names definitely ring a bell faster, when I'm wondering where the hell I am.

The transition was rather easy too. Once you get familiar with the new names, it's a piece of cake. Well, a bit too much cake, but I like cake.

The second thing bugging me (yes, I lied above :razz is the way InSim.Send changed. I had my own function to use InSim.Send within, and now I have to duplicate that.. like.. a million times. Or is there an easier way? Is there an argument type I can use to accept all packet types? (I hope my terminology is fine here, and I'm not saying some random crab)
broken
S3 licensed
Quote from sicotange :Interesting, I think there is an accurate way to be found combining the data in the IS_CON packet and the IS_MCI packet. At the moment I'm trying to find a way to calculate if car A was driving towards car B while not showing a sign of slowing down if the magnitude of the impact is greater than a constant value.

Other than the case when somebody may be trying to drive out of a potential crash by accelerating, that sounds pretty good.

Imo, if you combine that and multiply it by the number of potential intentional crashes this user has been involved in, or a value to represent that in another way, you may actually have a pretty safe bet.

And of course, disable "blaming" of other users, if they crash in the 2 already crashed people (maybe for something like 5 - 10 seconds?). In the case of a pile-up, you can't possibly know who wanted to join the party, and who's just an innocent victim.
broken
S3 licensed
Quote from sicotange :I'm currently fiddling with the IS_CON packet. I wondered if someone has found an appropriate way to distinguish an intentional crash from an accidental crash. Any advise about this matter?

Well, one nice way would be via a drift meter-like detection. If one of the two (or both) cars are sliding sideways, the chance of it being an accidental crash is much higher, imo. If they are not sliding, the chance of it being an accidental crash is lower.

And imo, whoever is sliding should be the one responsible for the crash.

But of course, this is too vague. If you have an idea how to improve it - great, please share! ^^
broken
S3 licensed
U jelly?

broken
S3 licensed
Haven't tried it yet, but it's going to happen soon! I'll make sure to post some feedback when I get my hands on it. ^^
broken
S3 licensed
Thanks guys! Just rewrote the entire mail, because I knew what I wanted to say this time. Really - thank you all.

I guess you'll be just as curious as I am now about the reply, so I'll make sure to post here again when/if I get one. I just sent the email to them. ^^
Is "hacking" a site and mailing the owner a good idea?
broken
S3 licensed
I'm not talking about real hacking.

I found a serious miss in the programming of one Bulgarian website. You can enter empty comments with alt+0160 (such an old trick). And by not allowing the site to save cookies you can dislike the article unlimited times (just as old).

I left some submitting scripts work for around 2 mins (actually forgot them). And that made around 100 dislikes and 25 empty comments.

I didn't intend to spam that much, but it happened.

Is it a stupid idea to mail the owner of the website and tell them I can offer help in return of an article about website security with a link to my website? Do you have suggestions on what to write in the mail if you think it's a good idea? I already have the mail ready, but more ideas are never bad.

Can I be subject of legal action if I do that? Until I send the email, it will all go as if nothing ever happened. And I don't feel like screwing myself up really, haha. Neither do I feel like making a new email so I can be more anonymous - I prefer to either stand up to my name, or just don't do anything at all.

They can very easily decrease the dislikes, and delete the empty comments.. I haven't done anything more on the website. And I don't intend to. Which I also mention in the email. And I start the email with an apology for the inconvenience. I can't post it though, because you won't understand a thing - it's in Bulgarian.

And yeah, it's probably kiddish to do such stuff, but I like testing stuff when I go on various websites. I don't really like to hack or spam - that's just lame, I just like to find vulnerabilities, because that helps me in the future - when I have to program something myself.
broken
S3 licensed
Quote from DarkTimes :There is a simple download page here: http://www.microsoft.com/download/en/details.aspx?id=28975

I downloaded Visual Studio 11 Ultimate beta as an ISO. That way you can either burn it to disk or use a disk mounter like VirtualCloneDrive to install it. Alternatively you can download the web installer, which will download and install it automatically. Personally I prefer having an ISO as that way if there are problems with the install it's easy to reinstall it. I've not tried the Express versions.

Yeah I went for ultimate too, just after I posted the question, though I'm not sure what I downloaded. I guess a web installer. I just got really confused with those lots of buttons, so I went for what sounded the coolest to me - "ultimate".

Thanks though, and sorry for the pretty much pointless question.. I have my dumb moments.. pretty frequently..
broken
S3 licensed
I have this very basic question. When you go to the Visual Studio 11 download page, which download should I pick? (I told you it was very basic)
broken
S3 licensed
Quote from jobans :Sorry for this late answer but I only now got time to test it. So I have a little progressive news. Good is that when I changed GetConnIdx to GetPlyIdx my cop system sometimes works. Before when there was more than 8 connections it didnt work at all, but now it sometimes works for some cops and they can catch only some chosen civilians. And another bug is that when there are atleast 2 cops On DUTY, ok I will tell it like this - COP1 is chasing MrX, he busts him but the system shows that COP2 is arrested him. Hope you got that . So what could be problem for that?

Well, sorry, but I can't help you at this point. The cause could be many things, and in order to fix it, I must be fully aware of how your code works. But, you have to catch me in a very weird mood in order to make me do that.

So, I would suggest something more general - get a programmer that knows his way around in C#, and can help you. Make him a partner on the server or something. In a real world, you would pay him to do that, but it's understandable that this is most likely nearly impossible, since (I guess) you are paying for a server, which you do in your free time only anyway.

Also, as a marketing advice for your server, if you start posting fixes for this insim on the forum, you may find more people connecting to see if the fixes really do make it all better, or not. Which, obviously, will result in more people and the server will gain popularity.

Long story short - getting a programmer in the current scenario is the best thing you can do.
(funny thing about that last paragraph - I actually posted it before the marketing advice and had to move it here, because the short story once again turned into a long one)
FGED GREDG RDFGDR GSFDG