The online racing simulator
Searching in All forums
(314 results)
DarkKostas
S3 licensed
How can i make /rcm_ply to stay for example 2 seconds and then clear? I've been searching at google for "dynamic" timers or any example but nothing

For now i am using


insim.Send("/rcm ^1New PM from ^2" + _connections[BTT.UCID].PName);
insim.Send("/rcm_ply " + CurrentConnection.UName);

and after 2 or 3 seconds(not sure about the time yet) i want to make it do this insim.Send("/rcc_ply " + CurrentConnection.UName);
DarkKostas
S3 licensed
Try using ReqI = 255 to all buttons instead of being same with ClickID, although i dont think this is the problem.
DarkKostas
S3 licensed
Quote from UnknownMaster21 :Okay, but the timecode is wrong... 666 hours might be okay, because days aren't included but 1337 minutes with hours is wrong, 59 minutes is maximum to show (60th minute will be as 0)

I guess you know i was kidding and that 1337 is a leet number. Anyway i fixed the bug with server names. At the program it wont show the special characters but Join button and in-game messages are ok and now with colourful server name!

Also now the time is visible when clicking in-game at an online friend and at the program while clicking at the Online Friend List.

Once again if you already use v4(or v4_1) just replace the .exe!

EDIT: Colours at program seem to be still bugged, i am working on it now.

EDIT2: Fixed the bug, now i need to find a way to add special symbols like © ® and goes on...
Last edited by DarkKostas, .
DarkKostas
S3 licensed
Quote from UnknownMaster21 :Mate, when I tried to join any server, which starts a server name with !- sign. I can not connect because LFls doesn't recognise the !-mark and then LFS says server not found...

I think i know what is going on. When i have some time i will reproduce it and fix it.

Quote from UnknownMaster21 :To adding new feature, is it possible to give a status for the player, which is he Racing/Spectating/AFK... (AFK if more than 30 minutes happened nothing)

Program is suppose to say if player is online or not. I dont like the idea of this because it wont even be accurate because of the refreshing rate.


Quote from UnknownMaster21 :Also, where is the timeline of each friend have been online lol?

When player disconnect and the message pops saying USERNAME is now offline, now says USERNAME is now offline after playing for 666 hours and 1337 minutes.
DarkKostas
S3 licensed
Thank you guys for your comments!

Quote from UnknownMaster21 :Possible to add timeline about how much the user is online @ LFS? Just for LFS Addict groups

There you are boss, new version v4_1. Download at first post!

Quote from UnknownMaster21 :there will be ALOT of features what I would look about it (All of them would be useful, at least for me)

Just say them(it would be better all together so i wont make 100 different version

Just replace the .exe if you are already using v4 and you will be ok. Nothing changed to the 'files' folder.
DarkKostas
S3 licensed
v4 is now uploaded!
Possibly the last version unless there is a cool suggestion/feature to add.
Readme.htm includes all the info you need to connect the program with LFSWorld and InSim.
DarkKostas
S3 licensed
Sorry for double post but uploaded a new version with /o friends fix at Online and Offsets.

Thanks to DarkTimes for the command working online fix

If you are using already v3 then just replace the .exe and the insim.ini files.
Last edited by DarkKostas, . Reason : Update
DarkKostas
S3 licensed
Thank you DarkTimes it worked! Uploading a new version soon.
DarkKostas
S3 licensed
I noticed a bug on my little program, that buttons are not showing up when playing online.

Its a local InSim program and when typing /o friends it should pop up the buttons shown in this image.

I was using UCID = MSO.UCID at my code, to create the buttons as by typing /o friends it should create them, but even with UCID = 0 or UCID = 255 it is not working either.

While at SinglePlayer UCID = MSO.UCID was working fine. Is it a bug of my code or what?
DarkKostas
S3 licensed
As i promised here is v3. Read first post again for more information. A photo about how it looks in-game http://img7.imageshack.us/img7/7959/lflsinsim.png.

By typing '/o friends' these buttons appears. When you click connected players you will get the last message at photo(so you know which server they are connected).
DarkKostas
S3 licensed
Sounds really cool and i think i will be able to make it. If i have spare time this night i will give a try to see what i can do!

For now this is an external application which just pops messages(if you have enabled them) and types the status of your friends.
DarkKostas
S3 licensed
Uploaded v2. Check first post for the changelog.
LFlS - LiveForSpeed Friend List Status v4_2_2 (Updated 31st October 2012)
DarkKostas
S3 licensed


-Usage
Its a program that you can add friends and check their status (online/offline)


-Why use this instead of lfsworld?
There is no need to minimize LFS and you can see who is online using the InSim by typing, '/o friends'. Well if you already use lfsworld to manage your friends I am sure you won't use this one unless you use InSim. But in case you don't want to have an browser and just a program for your friends, this one will do its job!


-Advantages/Disadvantages
You can view the status of your friends while playing. You can have multiple friends in the list and easily add/remove by just editing friends.ini The high disadvantage is that it refreshes each friend by 5 seconds. This means that if you have 10 friends, it will take you 10*5(50) seconds to update their status. BUT! If you are a premium at LFSWorld you can change the delay at settings.ini (Minimum is 5 for non premium users)


-Installation
Make sure you have netFramework 4.0
Make sure you edit settings.ini to match your settings and insim.ini in case you want to use InSim.


-Files
settings.ini includes information about your ident-key, delay (description at Advantages/Disadvantages) and the option to enable insim support.

friends.ini has all the friends (each username in a new line). Full package already includes a preview.

Since v3 there is now a new file called insim.ini This file includes the info that is needed to connect with LFS (IP, Port, AdminPW)


-Changelog
v1 Initial Release (14th July 2011)
v2 (18th July 2011)
-Removed ^ colour codes. Now you can read the server clearly
-Fixed a bug with sending faster requests to LfsWorld poping up message 'Problem with your connection'
-Added 'PopStatusMessages' at settings.ini There are 3 modes now. 0=Disabled, 1=Connect only, 2=Connect/Disconnect
-Made it so when a player has changed server while was already connected print the right message
v3 (20th July 2011)
-Fixed a bug when you had no internet connection it was spamming with errors each -delay- seconds
-Added insim support. Change 'UseInSim' to 'true' and change the settings at insim.ini
v3_1 (21st July 2011)
-Fixed a bug that command /o friends wasn't working while playing online but only at Singleplayer
-Added OffsetX and OffsetY at the insim.ini to change the coordinates of the buttons.
v4 (22nd July 2011)
-Added in-game offset command. Use /o offset
-Added Join button when clicking at any online friend from the program.
-Fixed minor grammar mistakes at files
-Improved messages while poping up errors
-Added readme. Run readme.htm
v4_1 (23rd July 2011)
-Improved code of saving Offset in-game
-Split join messages. Username is now online at(1st) + Servername(2nd)
-Added duration of the session. Counting even hours!
v4_2 (23rd July 2011)
-Fixed a bug with some servers containing special characters
-Colourful server name while clicking an online friends in-game using /o friends(it was just yellow before)
-'Time since join' added while clicking at online friends(both program and in-game through /o friends)
v4_2_1 (23rd July 2011)
-Finally really fixed problem with some characters(Work in progress with special symbols)
[b]v4_2_2 (11st August 2012)
-Deleted User and Pass support as its not working anymore anyway
-REALLY now fixed characters(there are still some not working, but most are fine!)[/b]



-Download Links
Latest version v4_2_2 http://www.mediafire.com/?590b9bvfsotm88h


This program doesn't require a setup, it is portable, but it does require internet connection of course.
Last edited by DarkKostas, . Reason : v4_2_2!
DarkKostas
S3 licensed
I would like to ask 2 questions.

1) When you use premium, does only the Ident-Key gets premium or even using Username/Password is the same

2)Is it possible to use "&action=pst" for more than one racers to see their online status or am I forced to check them 1 by 1 each 5 seconds(if not premium)?
DarkKostas
S3 licensed
I guess this happend when you try to type a command. Make sure the command is ok or the code before commands. If it crashes for every command then the problem is at the code before any command
DarkKostas
S3 licensed
Replace them with Conn.Speed instead of Conn.Compcar.Speed
DarkKostas
S3 licensed
Which is the first loop in the MCI packet? You can use foreach instead of for(in case you use this).
DarkKostas
S3 licensed
What i mean is that EVERYONE can type /axlist. You won't get a message that you are not an admin if you type it. Try to join a dedicated server without being an admin and type /axlist
DarkKostas
S3 licensed
/axlist Is available from any connection even if you are not an admin. So why do you want to have a seperate !axlist command?
DarkKostas
S3 licensed
Here is some extra debugging.

-Spectating(shift+s)-
1st Line: Im going into spectate
2nd Line: PLL packet for spectating
-Joining(shift+j)
3rd Line: MCI error comes up. Object not set is the "Player" collection.
4th Line: Message that I joined comes up.
5th Line: Calling NPL
6th Line: Finished the call of NPL.
DarkKostas
S3 licensed
Quote from misiek08 :You are releasing many patches now. Can you reset unlocks every day at 0:00 or every 2 days until stable release with VW and Rock will be released?

But why? Only if you have z28 and change to newer you need to unlock the game. Also as scawen said long time ago, you can keep a backup of your "misc" folder and each time you want to get back to z28 use this folder.
DarkKostas
S3 licensed
Quote from Dygear :Might be more of a latency thing then any thing else. Is the InSim client on the same computer as the LFS host? Are they connected via the lookback IP? If both cases are true, then I would say that you might be right, otherwise it's almost sure to be a latency issue.

I was testing insim locally so yes, both insim and server were on the same computer(mine) and connecting locally(127.0.0.1).
DarkKostas
S3 licensed
I've noticed a small bug which may be from my code, but i am not sure.
Sometimes if you are spectator and then join, you get MCI error. After debugging i noticed that MCI had 3 cars but Players collection had 2. This means that MCI is called before NPL so that Players collection is not updated with the new player but MCI is searching for it.

Is there any way to fix it?
DarkKostas
S3 licensed
Thanks for the example. It will be useful when i finish the transfer from LFS_External to InSim.Net.

The thing is that i have another problem now. I've been trying to bind TINY_AXC(Autocross Clear), but i didn't find a correct way.
insim.Bind<TINY_AXC>(OnAutocrossClear);

This code is not working and looking the rest pages of the topic i didn't find a solution.

Also at LFS_External i remember that each packet had a "try/catch" is it needed here too, or
insim.InSimError += new EventHandler<InSimErrorEventArgs>(onInSimError);

will print any errors including packets?
DarkKostas
S3 licensed
Thanks, i'll give a try on it. This was may be better as i'm not going to use all NCN fields so i can have only the ones i need.
FGED GREDG RDFGDR GSFDG