The online racing simulator
Searching in All forums
(921 results)
broken
S3 licensed
Simplest solution: Spectate them instead of banning. Yes, it will make the races too safe maybe, but it would either way (only difference - first way will ban people, leaving noone in your server in the end, and the other will just spectate them). By spectating them, you will eventually get the hackers and crashers bored. A few racers too maybe. But it's better getting a few racers bored, than a few racers banned. IMO at least.

You can not perfect such an application/plugin/w.e it's going to be, because of the many factors, that can trick it in LFS.
broken
S3 licensed
T-RonX last said that he was working on it. But, iirc, he said that he has important real life stuff to do, or something like that, so he couldn't promise anything. But I may as well be lying to you.
broken
S3 licensed
Sorry, but all we can do is give you pointers on how to start. We can't just tell you how to make an application, because there just isn't any specific way.
broken
S3 licensed
Okay, if any other tutorials are provided here, I will probably mirror them. If any of you want your files down - pm me or reply here.

Just use these links to find the one you are searching for:
http://lmutafov.com/media/liveforspeed/ and
http://cryonhq.net/media/liveforspeed/

Listing is enabled, so you will see what files are in there.

If they become much (if that's possible :razz, I am accepting suggestions for folder structure. Actually, if you think it would be better, you can give suggestions from now too.
broken
S3 licensed
Quote from DarkTimes :OK - I was bored, so here is a test that shows how to quickly create a InSim program using C# and InSim.NET (which is Spark 2.0).

http://rapidshare.com/files/442188514/insim_example_1.zip

It's not a perfect video, still fiddling to try and get it right, but hopefully it should work OK. It's the first time I've made something like this, so feedback may or may not be appreciated.

Hope you don't mind. I've taken the freedom to mirror this too. And again - just tell me in case you want it down, and it will be.

http://lmutafov.com/media/live ... arp_insim.net_example.zip
http://cryonhq.net/media/livef ... arp_insim.net_example.zip


Also, @MadCatX & DarkTimes: Would you mind if I rename your files?
One would be, say insim_tut_c_cpp_madcatx.mp4, and the other, maybe insim_tut_csharp_darktimes.zip. For logic's sake, since they are in the same folders. I will do it only if you say yes.
Last edited by broken, .
broken
S3 licensed
Yeah, the pointer part got me confused for a second, but what I remember is: "make a pointer to that variable", and not "struct* IS_BTC", so if you know a bit of the basics, I guess it shouldn't be too difficult to understand what's going on.

And um, no problem about the mirroring. Just for informational purposes: cryonhq.net will die on 06.06. Anyway, the other one should be staying strong. ^^
broken
S3 licensed
Quote from MadCatX :1) I know it was a complete waste of time
2) I know it has no educational purpose whatsoever
3) I know it's rubbish
[..]

1. Imo, it wasn't, because it helped me a lot.
2. However, it helped me learn the basic C++ syntax.
3. It is well commented, which is exactly what helped me understand everything.

Really, thanks a lot for this. For me at least, it was quite helpful.

But maybe it is that way, because I was learning C++ some few months ago, and I'd love to dig deeper into it, but I don't have much time lately.

Also, since it helped me, maybe I could help you with a mirror (or 2 ). Tell me if you want me to take those down.
1: http://lmutafov.com/media/live ... /insim_tut_cpp_cinsim.zip
2: http://cryonhq.net/media/livef ... /insim_tut_cpp_cinsim.zip
Last edited by broken, .
broken
S3 licensed
You can always download a library, and start learning the programming language it was written on. You can experiment on the insim library, as you are learning the language.

Also, you can not make "an InSim".
Only the LFS developers develop the InSim itself. You are developing an InSim application. But that's a common mistake, and it's not fatal, so you can ignore what I just said.

Anyway, here are some libraries:
The Python Library (pyinsim 2.0). Written (obviously) on Python.

The Spark InSim Library. Written on C#. Requirement: .NET Framework 4.0. Or, download the whole Visual C# Express 2010, I believe that should install the .NET Framework 4.0 as well.

The CInSim Library. A C++ Library. I wouldn't recommend that as a start tho. Low level programming manages to spin my head quite easily, so I wouldn't recommend it to any new programmer, that doesn't have a really serious motive to learn it.

The JInSim Library. Written on Java. Instructions on how to get and start programming on Java can be found on the 4th post in that thread. I will quote it, so it would be easier anyway.
Quote from rheiser :1. Make sure you have java installed. You can download a JDK from http://java.sun.com if you don't. If you can type "java -version" at a command line and get version information, you're on your way.

2. Download JInSim from SourceForge. Go to http://sourceforge.net/projects/jinsim/ and click the big green Download button to download the zip file. The current one is jinsim-0.1.zip

3. Unzip jinsim-0.1.zip somewhere on your hard drive that's handy.

4. Look at the README file inside the newly unzipped directory. There's some information there on how to run the "Hello World!" example. Once you have that working, you're well on your way.

To start off with, you may just want to edit simple java files with your favorite text editor, figure out how to compile them with javac and run them. Once you're comfortable with that, you can download one of the freely available Java IDEs like Eclipse or NetBeans. I use Eclipse, because that's what I use at work. I actually prefer IntelliJ, but that's a (spendy) commercial package. If you have any questions, let me know.

--
Rob

There is also LFS_External. Also written on C#. But however, I, personally, wouldn't recommend that library anymore. Spark, imo, is far more freer, because you have a higher control in packet handling(if that made any sense to you... or anybody in that matter..). Also, Spark's source is available, so you can do as much tweaking as you like to the actual library. While LFS_External's (source) is not.



And here are some example tools/applications, using some of these libraries:
InSimSniffer - Using it's own library (DarkInSim), which is, afaik, an older version of Spark. This application tracks the transfer of packets between itself and the server. It is very helpful if you want to learn more about packets, and right.

Open Source Cruise Application - using LFS_External. This is a basic cruise application, providing a few vital systems, which are needed for the cruise InSim application to actually be... a cruise InSim application.

Open Source Racing Application - Also using LFS_External. This is a racing application, which makes it so every race is limited to 1 car. The winner of the current race picks the car for the next race. There is also a weak attempt for a scoring system, which works with a database. The SQL files are there.


More Libs and Tools can be found in the LFS Programming Libs and Tools forum. There are more around the forum, but this is the main place for them.

Hope I've helped. Please, correct me if I'm wrong somewhere.
broken
S3 licensed
Quote from mariuba2 :Maybe try this?

PHP Code:
C.Username.Contains.(" ") + (StrMsg[1]) == true && C.Username.Contains.(" ") + (StrMsg[2]) == true *


Or

PHP Code:
C.Username.(StrMsg[1]) == true && C.Username.Contains(StrMsg[2]) == true *
{*
If Contains(StrMsg[1]) == true

.....blah blah

Maybe try InSim.Parse("Crash"); ??

How can you count on such a thing? O_O

What would you count on more:
1 - A script that iterates through all the connections, and checks if the string after "!pm " starts with the username of somebody;
Or 2 - A script that checks whether the 1st and 2nd word after !pm are contained(anywhere) in the username?


I would never count on 2. It makes no sense, and if you have a 3 word username after !pm, it just becomes irrelevant.

Sorry if I sound a bit harsh, I had no intentions to, but this just isn't the way.
broken
S3 licensed
Quote from IlGuercio :I'm not going to cut my veins off, for your information.
I honestly don't care if the updates arrive or not, i never asked about them and i dare you to demonstrate the contrary.
I am just stating the obvious: devs have nothing in hand so far, in my opinion. Otherwise they would have told you something because there's no reason not to say something about the things that are supposed to be released.
And, by the way, it's so hilarious to see how much rage you "optimist" have towards the people that are just asking you to open your eyes.

Rage? You are the one calling people names. I am not going to be nice with you, just because I like keeping my mood up. No, actually the 2 are not connected. I won't be nice with you, and it will not affect my mood at all, because this is just a forum, and you are just an ignorant person.

And when did I mention you trying to commit suicide? Don't put words in my mouth, please. You are just twisting things in a way that you can """beat""". I never said, that you have demanded updates either.

And, excuse me, but they said "something about the things that are supposed to be released". You are replying to that very same thread, in case you have forgotten/missed that.
broken
S3 licensed
Quote from skywatcher122 :actually I forgot to add this syntax


<?php 
C
.Username.Contains(StrMsg[1]) == true && C.Username.Contains(StrMsg[2]) == true
?>


but meh your code is doing fine broken

Your snippet is even worse than mine.. I, personally, would never count on such a thing. Sorry..
broken
S3 licensed
Quote from IlGuercio :How is your childish and blind optimism blend with sarcasm going to help?
I don't even believe a god exists let alone think updates are at a good point.
Be smart, ******.

How is negativism going to help you? How can I manage to stay happy without updates, and you can't? I don't think that they will come soon, but if you're not happy on this world, where will you be? It isn't childish to be happy when things aren't turning exactly the way you are expecting them to. But it's a lot easier to get angry and grumpy. Also, it is childish to call people names.

I just don't see how your posts make any sense.
broken
S3 licensed
Both of these won't work with usernames, containing spaces.

I recently stripped out my pm command from OsC, which is based on dougie-lampkin's cruise thingo, because I was sending it to someone. It's not very optimized, I'm sure, that I can rewrite it in a much better way, but it works, so here it is:

case "!pm":
try
{
if (Msg.Remove(0, 4).Length > 1)
{
string message = Msg.Remove(0, 3);
string userright = "wrong";
foreach (clsConnection PMuser in Connections)
{
if (message.IndexOf(PMuser.Username) == 1)
{
userright = "right";
string PMmsg = message.Remove(message.IndexOf(PMuser.Username), (PMuser.Username.Length + 1));
InSim.Send_MTC_MessageToConnection("^3» ^7Personal message to " + PMuser.PlayerName + "^7:", MSO.UCID, 0);
InSim.Send_MTC_MessageToConnection("^3»^7" + PMmsg, MSO.UCID, 0);
InSim.Send_MTC_MessageToConnection("^3» ^7Personal message from " + Connections[GetConnIdx(MSO.UCID)].PlayerName + "^7:", PMuser.UniqueID, 0);
InSim.Send_MTC_MessageToConnection("^3»^7" + PMmsg, PMuser.UniqueID, 0);
}
}
if (userright != "right")
{
InSim.Send_MTC_MessageToConnection("^3» ^1Wrong syntax.", MSO.UCID, 0);
InSim.Send_MTC_MessageToConnection("^3» ^2The right syntax is: !pm [username] [message].", MSO.UCID, 0);
}
}
}
catch
{
InSim.Send_MTC_MessageToConnection("^3» ^1Your message could not be sent.", MSO.UCID, 0);
}
break;

I'm not very happy about it. In fact - I am not at all happy about it. But when I reach that point in my current project, I'll post the pm snippet, probably in the thread I posted a while ago.

Quote from Heiko1 :[..]
what a pitty that no other coder post codes.. like this easy things..
[..]

?!
broken
S3 licensed
Quote from IlGuercio :Good mood will bring you updates, count on that

Explain that. How is your post helping anyone? If you want to bite, go buy yourself a rubber bone..
broken
S3 licensed
Quote from Shotglass :great youve just accused someone of being a liar for no reason and based on nothing
well done...

why do i even bother with these idiots?

All your arguments were groundless, where there were such, because most of the time, you were talking pure BS.

Just felt like this had to be said. Actually, the only well-argumented "negative" reply, imo, was from DEVIL 007.

You, Shotglass, are doing nothing, but bringing bad mood to this thread. And it is starting to get annoying.
broken
S3 licensed
Quote from PoVo :Yes but it's not the probability we are talking about, it's the randomness.

broken
S3 licensed
Quote from Matrixi :Debating with the scavier protection defence squad on the topic of slow development is like trying to play chess with a pigeon; it knocks the pieces over, defecates on the board, and flies back to its flock to brag about how it won.

You just did that very same thing you said.
broken
S3 licensed
Quote from pepijnb :[..]
It's all speculation. And as all of us are, of course I'm a big fan of this software. But I just don't buy this story. And even when it is true. Development and communication is at an all time low which isn't a good sign.

We all want the same. That this fantastic simulator keeps very alive.

Where the hell did you get the idea that the development pace is slow?

No really, do you know how much it takes to make such a complex tyre model? How can you say it's slow, when you don't know what coding problems/challenges the developers are facing? No intentions on sounding rude or harsh, but it could just as easy be the other way around. The development pace could be very fast, but due to the fact that there are many experiments involved in this process, and much code goes to the waste every now and then, the results are being reached slowly. Yes, it may seem like development itself is slow, because of this, but I, for one, don't think it is. Heck, it took me more than 2 months to make some crappy page flipping animation in flash, and this is a simulation of a whole tyre.. On top of that - it's not being written in some high level language, that does most of the stuff for you.

And, no, I don't want the communication being more alive. I don't even think that the developers should write any more progress reports. Not, because I am not interested, no, I am interested in what's going on, but it is because the moaners won't(and they didn't) miss this occasion to go all supermario and tell the devs how they suck, and how their game is dying, and so on, and so on, and so on. If I was on the devs' place, I'd close the forum until the patch is done.

And tell me how is it dying, when right now(19:34 GMT+2), there are 1284 people online..


And this wasn't all pointed at you, pepijnb, but I was speaking more in general. Actually, most of it was general talk. (if that sentence made any sense)
Last edited by broken, .
broken
S3 licensed
Quote from pearcy_2k7 :I couldn't really give two ****s anymore, it's their loss. The only people that have turned the community the way it is is them.

What way is the community? It's just the bunch of a few guys, including you that moan and bitch every now and then. Smarter people simply don't write, because it is worthless. However, I am not a smart person, so I'm wasting my time over a lost cause, because let's face it - moaners will moan.

If you don't care, why are you posting? <-- Not a rhetorical question, I really want to know, because this to me, is a mystery.
broken
S3 licensed
Just 2 questions.

How is telling you what you need to do rude, childish or unprofessional? Take this in mind when answering: I never insulted you.

What is business, other than one side getting money, and the other getting a product?

[E]: Sorry, one more: Do you have a job?
broken
S3 licensed
How was I being cocky? Yes, "I don't like repeating myself" sounded a bit rude, but I never said why I don't like that. It is because I feel I'm being annoying by doing it.

And if you don't want to suggest a price, you should give a very detailed plan of your project, so we can do it.

There are 2 ways here, imo.
1. Suggest a price, and see if anyone is intrigued. Then, make a detailed plan about the project with them.
2. Make a detailed plan and post it here. Then, see what prices people will come up with.

Either way, a detailed plan and a price are the things that should be clear before any work has started.


...OR - If you are not that serious - Get anyone that would work cheap or free; Have a slow development process; Shut your empty server down after a month or 2 of not getting along with the developer.


And sorry, but you are the type of people I would rather not talk to or make business with.

Anyway, I won't bother you anymore, do what you want to do.
broken
S3 licensed
I don't like repeating myself, but - suggest a price for your project.

I never said I would do it. I told you to suggest a price, so people can make their minds about this. After you said that you are willing to pay, imo, it is very natural to suggest a price too, because you know what your project should contain.
broken
S3 licensed
Too boring for that, imo.
broken
S3 licensed
My guess is that releasing test patches, containing such changes will be incompatible with the others. Therefore, every new patch would require new dedi and LFS installation.

It is a lot better the way the developers are doing it now. Just one jump, with 1 incompatible patch, after which the next patches will be compatible. Otherwise - you'd have a few incompatible patches, and it would cause overall instability. Who knows what that might cause.
Many test patches, each incompatible with the previous is just unprofessional and brings confusion and chaos, imo. Not something you would want if you were a developer either.
FGED GREDG RDFGDR GSFDG