The online racing simulator
Searching in All forums
(921 results)
broken
S3 licensed
loved it
id like to see that IN THE CAR ^^
broken
S3 licensed
I have found a similar thing recently.. So here it is: I have a S2 license and my bro has his own account in demo. He doesn't want to touch my account and since we had little fights about the controls i copied LFS in his own folder. When i copied it my license was available and we entered his username and pass but we forgot to press unlock. What we noticed was that he can play demo online AND use S2 cars and tracks in single player. I haven't tried to fix that since that was the perfect option for my bro and he was rly rly happy and it's still that way.

ps: Are you sure that your account hasn't been unlocked earlier(yes I know it's on other comp)?
broken
S3 licensed
Voted Not at all, because in the upper option i didn't like one word (improve physics FIRST). Physics I want to be improved but I do NOT want damage turning to be available cuz of the same reasons people mentioned above. And it's silly - if you can't drive don't ask for the whole game changed but just practice ...not that I can drive myself
broken
S3 licensed
Quote from UnknownMaster21 :well, what's the matter anyway? I think every server has a known administrators so then You could know that they are banned someone. Of course, not every server has a known admins tho...

-0,5 , not bad but I don't see a point, sorry

Ok, mate. Btw you have nothing to be sorry for, its just your opinion.
broken
S3 licensed
try this:
Place the MySql.Data.dll in your Release folder.
Whenever you decide to give the InSim give the MySql.Data.dll with it.

Then:

Top menu -> Project -> Add reference -> Browse -> Find Release folder\MySql.Data.dll

after you have done this:

using MySql.Data;

Edit: I see it has been explained some place upper.. Sorry..
About the errors... I see you have SQL.cs and you are doing SQLInfo.NewUser ..Try with just SQL.NewUser
Last edited by broken, .
insim - player kick ban events
broken
S3 licensed
Hi, I have a suggestion(couldn't find it posted, and sorry if it is) to include the kick/ban event in the InSim information.

What I mean is that when someone kicks/bans a player a packet to be sent like pit enter/exit maybe with a Fact, target and executor so it can easily be tracked who kicks/bans who in order to keep an eye on your server admins.

I have noticed that it is really impossible at this time to see who is the person that banned someone(or at least I couldn't find a way).

ps: If there is some way I would be thankful if you point me to it.

Edit: Would be good also if there are included /spec and /pitlane commands if this is made.

Edit2: Me and one friend in LFS were wondering where is the banlist in the dedi located so to avoid posting a whole new thread I moded this to ask you all if someone knows. Thanks!
Last edited by broken, .
Working with .sdf files in C#
broken
S3 licensed
Hi everyone and happy new year to all to who I didn't say it.

So: I am making a cruise server from long time ago(Actually modding the one from the forum). I learned C# thanks to that and nothing else. But recently I had the need to transfer all the info from .txt files to a .sdf database for the local files and I am also having a remote database but this isn't so important right now.

What I am having trouble in is that I can't get the code to work for the SQL SELECT command. There is some code:


const string localDatabasePath = @"FOLDER";
const string localDatabaseName = "FILE.sdf";
const string localDatabasePass = "WhyDoYouCare";
const string localDatabaseUsersTable = "userstable";
static public int doesntMatter(string Username)
{
try
{
SqlCeConnection localDatabaseConn = new SqlCeConnection("Data Source = " + localDatabasePath + "\\" + localDatabaseName + "; Password=" + localDatabasePass);
localDatabaseConn.Open();
SqlCeCommand localDatabaseCmd = localDatabaseConn.CreateCommand();
localDatabaseCmd.CommandText = "SELECT something FROM " + localDatabaseUsersTable + " WHERE username='" + Username + "'";
localDatabaseCmd.ExecuteNonQuery();
SqlCeDataReader localDatabaseRdr = localDatabaseCmd.ExecuteReader();
while (localDatabaseRdr.Read())
{
localDatabaseConn.Close();
[B]return int.Parse(localDatabaseRdr.GetInt64(0).ToString());[/B] line 197
}
catch (Exception E)
{
MessageBox.Show(Username + " - info - Message: " + E.Message);
MessageBox.Show("StackTrace: " + E.StackTrace);
return -2;
}

What I get from this is the 2 messageboxes. There are the messages:
MessageBox1: "SomeUsername - info - Message: No data exists for the row/column."

MessageBox2: "StackTrace: at System.Data.SqlServerCe.SqlCeDataReader.IsDBNull(Int32.Ordinal)
at System.Data.SqlServerCe.SqlCeDataReader.GetInt64(Int32.Ordinal)
at blablabla.blablabla.doesntMatter(String Username) in Path\To\The\Class\File.cs:line 197


I will be thankfull for any replies. Hope I will get this sorted out asap.

Edit: I'm just stupid... I was trying to close the connection before I get the result.
Last edited by broken, . Reason : Cause I was stupid but got smarter. ;)
broken
S3 licensed
I just have read the thread to the end as one guy gave me the link. To tell you honestly I got to understand what that guy is from one single thread. I might be a friend of Weed but this has nothing to do with my thoughts. If I were Weed I'd ban him from the server for 999 days and never unban him. Tbh, Tim you and weed had it all(as much as you can have with a team/club) and you failed so now as much as I can explain it to myself I'm thinking that you are jealous what Weed accomplished and you're trying to ruin it so noone has it but to tell the truth.... Everyone except you are on Weed's side so maybe think what are you doing wrong. Sorry if you feal insulted or harmed from my post but thats what I think.

I think that this thread should soon be closed so no more dumb/insulting or even vulgar posts are made(I know my post wasn't nice either buut I felt like i have to say that). Keep up the good work OM.
broken
S3 licensed
Quote from T-RonX :I found a bug, it happens in Z9, and not in Z.

When driving with a mouse and running lfs in a window, try to minimize and maximize again.

The wheel will turn all the way left and just stay there, the only way to move the wheel again is to end the race and rejoin again.

I think we all know that. Read at the 1st page. Anyway if you are lazy there you go:

Quote from Scawen :
CAN'T REPRODUCE :

Mouse steering only full lock after SHIFT+F4

broken
S3 licensed
Quote from scottmackie :Bunch of Road cars

i have left out gtr

Superminis:
UF1
UF2 1.4 gti
Smartcar Style

Hatchback:
XFG
XFD 1.4 TDI
XFH Hybrid
XRG

Coupe:
RB2 Two wheel drive (no turbo)
RB4
FXO
XRT
FXD 2.2 TDI

Coupe Super Sport:
RB6 4.2 V8

Hatchback Sport:
XFDi 1.9 TDI
XFT 2.3 Turbo
LX4
Scirocco (whatever it is)

Sedan:
XF+4 1.9 TDI Saloon version
FXH 1.6 Hybrid Saloon version
FXD 2.2 TDI Saloon version
RBV 2.5 Saloon version

Sedan Sport:
FXS 3.0 V6 Saloon version
FXS 3.0 V6 TDI Saloon version

Super Sedan:
FXM5 5.0 V10 Super Saloon version (bodykit)



Tell me what you think

I like this idea.
broken
S3 licensed
I had this weird thing - The dedicated was spamming the window with messages - "Avoiding buffer crash (OK)" and "New guest timed out". So far those messages don't appear. Thanks a lot for this update . And big thanks to Victor, who gave me the link(after I lost it).
broken
S3 licensed
Thanks for the answers. But since I don't want it to reload the whole layout I'll just leave this untill hopefully this gets to be as a implemented command in the dedi maybe
Layout move/place/remove objects with insim. Possible or impossible?
broken
S3 licensed
Hi, again.

I am doing an insim in which I want to place something like doors.

Let me explain better. Lets say that there is a closed of barriers place. I want the insim to give a command to move one of the barriers so that it stays in 'opened' position. Simply as you would do with shift+u mode(press M or del). So, is this even possible or should I just stop hoping that I'll get to it one day?
broken
S3 licensed
Quote from Bob Smith :Yes, and don't divide by zero or square root a negative. Also bad.

To admit: I didn't know that. Thanks
broken
S3 licensed
It happens if the insim is off too. And what is more weird, yesterday and the day before yesterday this thing happened instantly when i ran the server. Otherwise people join and leave. No problems at all with that. But it still happens. And when it starts its for like half an hour or even more. Not that its big deal but its just weird xD

Edit: I just started the server and it instantly started to do it again. Can anyone give me information on how can I see who tried to connect? At least if he can't join I want to ban him because it is annoying.
Last edited by broken, .
broken
S3 licensed
Quote from sun :Hi,

i just made a Cruise insim app for somebody and everytime they make a a command, it crashes the insim. I've tried looking at the code my self, but i cant find out how werre it keeps going wrong.

Can any body help me ?

thx

Any news? Or should we finish with this thread?
New guest timed out + Avoiding buffer crash (OK)
broken
S3 licensed
Today and yesterday I had this weird experience. I don't know if its a try from the 'famous lfs hackers' to connect but this is not the updated DEDI either. But its really weird because the person I told to connect - did it. Other random people join my server too(Other times). Since its not a rented server I can clearly say that it is not my PC/firewall/ports. My PC is fine. My antivirus is up to date and it has nothing against LFS. All my ports are opened. Windows firewall is taken down(off). No additional firewalls. Router ports as I said are ALL opened. Curious of the range? Ok.. 1-65535(cant hack me, lol dont try either xD) in and out, TCP and UDP. And I can not explain it to myself as there is no additional information. I will give you the log of the server, since its all I got.
broken
S3 licensed
I just tried to point the way if people want their skins to be secured.
I know its far too complicated for something not that far important. But I don't see the point of fighting anyway.

As I said in my previous reply - Just my opinion. I don't want to take place against anyone and enter useless fights.
broken
S3 licensed
Just my opinion.

I think of exactly 2 methods(2nd is too slow and complicated so I won't mention it) of preventing stealing.

There goes: Make the option private/public as most of the people said. And if private add a command like "/w gs username" gs = give skin. Skins have date of add atm. Maybe just one more field that saves the ids of users will do it. Like:
------------------------------------------
| skin1 | 22.11.2008 | 43 7347 9847 76 16 |
| skin2 | 14.04.2008 | 84 643 8438 643 89 |
------------------------------------------
Just guessing how the skins' dates are placed. No real idea if I'm right.
What I meant is to add ids separated by spaces. The most easiest way to read it since some usernames contain spaces or special symbols that may confuse the system if separating it with "-" lets say. Then when you join the game it will not only check the skins in X folder but the ones in Y also if u have rights to use them. If not:
Possibility 1: Del from Y.
Possibility 2: Move from Y to X.
Possibility 3: Don't let the person join the race with it.

About copyrights - This is silly. What about the people who develop games/movies/music/whatever. What should they say? It takes them months or even years to build. Their work gets stolen by hundreds or even thousands of people.
We fight here for thing that takes us hours. And it really means that people like your work if they use it(in some special occasions when they want to harm you by crashing. But anyway in the most cases they will be banned from the server, not you) so why even bother? It's no use to fight right now.
Other thing: If you want to keep it for yourself write your username on it. I bet that most of the server admins know the shift+ctrl combination.
Just for the record - I have made skins and people have used them(I won't say stole because its just a game and I don't really care that much but if I want them to take it off I will tell).
All on all its the same with posts in the forum. One thinks of something and others tell him that such thing already exists and sometimes it can be the start of a new fight.

Well I don't know what I really wrote now so I will stop. xD
Input to a button?
broken
S3 licensed
Hi. I got the open source insim from the forum. To the point:

Is there a way to make an input button(I think I saw something like that. Called LFS Mail I think). What I mean is that I want to make a bank in my cruise serv. And deposit and withdraw need input boxes(if its not makeable will make it with +/- buttons)
Thanks in advance.

Edit:
Solved. Could someone delete this thread, please?
Last edited by broken, .
broken
S3 licensed
If you use C# use

case "!command":
try
{
your code here
}
catch (Exception var)
{
MessageBox.show("Error: " + var.message);
}
break;

When you do this it should explain the error that crashes your insim.
Hope I've helped
But if the error is somewhere else... like in the place where u tell the insim to listen for the command maybe it will continue to crash :/
And, yeah, really why don't you post your code?

For C++ i have no idea sorry xD
Last edited by broken, . Reason : cuz i want to
FGED GREDG RDFGDR GSFDG