The online racing simulator
Searching in All forums
(402 results)
[OT] C#: How to manipulate user's keyboard input?
St4Lk3R
S3 licensed
Hi guys,

I'm sitting here wondering a bit... is it possible (in a performance-wise somewhat reasonable way) to manipulate the user's keyboard input? Basically, the thing I want to do is a little gimmick application that lets the lights & indicators of a users car flash in a certain way, which is meant to be used for pacecars. To achieve that, I'd need to simulate to LFS that the user has pressed the 7, 8, 9, 0 or L button on the keyboard.

I'd like to use it since (for me) it adds a tiny little bit to the realism if a car which is skinned and driven as a pacecar actually has flashing lights instead of the plain hazard lights going on-off-on-off ever so slowly. I totally know that this program might not be needed in any way at all, but it's also a learning thingie.

Any help or link to a site worth reading is much appreciated. Thanks in advance

Stalker
St4Lk3R
S3 licensed
Quote from AndroidXP :I think the ideal line is probably just for AI debug, though.

I do not think that it would then be a translatable string. I'd assume it's mostly for the driving school segment of LFS tho.
Quote from The new translation strings collection :3h_showline 4 - show racing line
3h_noraceln racing line display is not available

Last edited by St4Lk3R, .
St4Lk3R
S3 licensed
*cough* fastcgi ftw!
St4Lk3R
S3 licensed
Quote from Krammeh :
I would rather run it using ISAPI - I feel that it would help with system resources!

It's an awful lot faster if you run it via the new FastCGI extension. see here for further details:

http://www.iis.net/downloads/d ... bid=34&g=6&i=1521

a user's story at Zend Devzone:
http://devzone.zend.com/articl ... CGI-and-PHP-A-Users-Story
St4Lk3R
S3 licensed
[rant]
what about a little excuse for nearly two months of blaming the lfs team for your problems?
[/rant]

glad you finally found the solution. This one was really hard to find. Why, oh why am I not at all surprised it was a problem on the microscrap side again... Schwitz
St4Lk3R
S3 licensed
Quote from the_angry_angel :Is there anyone who even vaguely understands InSim, and can produce some fluent german to help out?

*raises hand*
St4Lk3R
S3 licensed
/me sends an InSim TINY_VTC to lfsforum.

Vote cancelled.

Last edited by St4Lk3R, .
St4Lk3R
S3 licensed
then a possible and simple patch should go like this:

internal RaceTime(Packets.IS_SMALL packet)
{
this.packet = packet;
elapsed = new TimeSpan(0,0,0,0,(int)packet.UVal * 10);
}
St4Lk3R
S3 licensed
Quote from LFSn00b :The "mod" you're asking for is a hack, and it's not really wise to ask it on an official LFS Forum.

...especially if you have a S2 licensed account and want to keep it a bit longer. The guys that are using this "mod" are cheaters, and they generally will very soon get banned from servers.
St4Lk3R
S3 licensed
Quote from BlueFlame :He will be racing soon, maybe he will go to Spyker as it IS a Ferrari B team.

I say forget it. The only thing Schumacher does right now is being a advertising character for Ferrari (which he does very well indeed )
St4Lk3R
S3 licensed
could you post your solution?
St4Lk3R
S3 licensed
Quote from zeugnimod :I see Victor has seen this! http://www.lfsforum.net/showthread.php?p=592735#post592735

what a cheat0r. he can post in teh lock0r1z3d threads

Thanks for the thread, this one just made my day.
/me goes rotfl
St4Lk3R
S3 licensed
St4Lk3R
S3 licensed
Quote from Most Wanted Guy :my desk is 2 inches thick on the top will it fit without the black spacers removed?

I think as a 15-year-old, you should DAMN be smart enough to calculate from mm to inches and back. If not, you should at least be smart enough to google for a converter. Look at AndroidXP's drawing and check out the measurements yourself.
St4Lk3R
S3 licensed
Quote from z3r0c00l :I also would like a text message saying "The patch is ready. Drop whoever you are doing and get back here."

check out lfsw, it's all there :P
St4Lk3R
S3 licensed
Quote from Hamed Sam :wow ! bad guys . cheat!

look at this

no, that's not cheating, since server and client need to have exactly the same tweak file to play online, so it is restricted to private, "tweaked" servers.
St4Lk3R
S3 licensed
01101000 01100101 01111001 00101100 00100000 01001001 00100111 01101101 00100000 01110111 01101001 01110100 01101000 00100000 01110100 01100101 01101000 00100000 01101011 01101111 01101111 01101100 00100000 01100111 01110101 01111001 01111010 00100000 01110100 01101111 01101111 00100001 00100000 01000001 01101110 01100100 00100000 01001001 00100000 01101010 01110101 01110011 01110100 00100000 01110111 01100001 01101110 01110100 01100101 01100100 00100000 01110100 01101111 00100000 01101101 01100101 01101110 01110100 01101001 01101111 01101110 00111010 00100000 01010100 01001000 01001001 01010011 00100000 01001001 01010011 00100000 01010100 01001000 01000101 00100000 01010100 01001000 01010010 01000101 01000001 01000100 00100000 01001111 01000110 00100000 01010100 01001000 01000101 00100000 01011001 01000101 01000001 01010010 00100001 00100000 01001001 00100111 01101100 01101100 00100000 01110110 01100101 01110010 01111001 00100000 01110011 01101111 01101111 01101110 00100000 01110011 01110100 01100001 01110010 01110100 00100000 01100001 00100000 01110011 01101001 01101101 01101001 01101100 01100001 01110010 00100000 01101111 01101110 01100101 00100000 01101001 01101110 00100000 01110100 01101000 01100101 00100000 01100111 01100101 01110010 01101101 01100001 01101110 00100000 01100110 01101111 01110010 01110101 01101101 01110011 00100000 00111010 01010000
St4Lk3R
S3 licensed
Quote from Hollywood :
Zend Framework - Really more of a pieces, not an integrated framework solution.

I'm using zend framework, and zend framework only.

you have to understand that zend framework is MEANT to have a use-at-will architecture. that means, if you want to use the zend framework MVC component, use it. that means you will have a complete MVC-Environment right at your hands (no Scaffolding happens tho, so you have to create your models / data gateways by hand). If you don't want to use that, but like the Zend_Db component, use it.

you are not bound to use the ZF components together, but they nicely use the features of each other. For example, for Zend_Auth, there is a adapter called Zend_Auth_Adapter_DbTable. Quite obvious that this one accepts and uses a Zend_Db_Table object to handle authentication.

BTW: I don't know when you tried Zend Framework, but an awesome lot has been done since, for example, version 0.7. It is currently out in version 1.0.2, Version 1.1 is currently under development. That one will contain some VERY nice additions, like partial- and controller-call-viewhelpers, a layout- and a form-component. Be sure to have it on your list

Quote from Hollywood :decent seperation between UI and code (preferably without use of smarty, etc. templates... because frankly I'd just rather use PHP syntax rather than YetAnotherSyntax)

Zend_View is the right component for you. and also, you have my full support on the opinion that smarty is purely useless

BTW: I know that zend framework lacks a decent Application-creation script like Cake's bake.php (yet).
Last edited by St4Lk3R, .
St4Lk3R
S3 licensed
Quote from Hollywood :Eclipse ain't bad; its does have some oddities to it that I've never really adjusted to since it debuted back as Visual Age in like '99 or 2000. I definetly prefer it over netbeans for Java development.

I also use it plus the PDT Extension (by Zend) and the Zend Debugger to develop my PHP applications
St4Lk3R
S3 licensed
Quote from mattlikespeoples :bumpShy

try the following: REMOVE any LFS-related entry from your windows firewall settings.

then run LFS in windowed mode and connect to the master server by fetching the server list. if everything is right, a Windows Firewall window should pop up stating that LFS is trying to connect to teh intarweb Wink. tell windows not to block it anymore and you are fine.

and if that still does not work, get a decent anti-virus and firewall solution. I personally recommend BitDefender Internet Security.
St4Lk3R
S3 licensed
Quote from DemonTPx :Lol, VI for the masses! or notepad++ for the not-so-nerdy-geeks!

what about eclipse?
St4Lk3R
S3 licensed
hehe, now thats teh official sadness ratings. TOP

/me is on place 131. and hopes to climb higher soon :P
St4Lk3R
S3 licensed
yay! So you're still working on it?
St4Lk3R
S3 licensed
boo at you for digging up a year-old-topic that will now heat up again...

*sigh*
St4Lk3R
S3 licensed
Quote from Qvarnis :
Any suggestions on a good wheel which is as reliable as my old one? I have Logitech Formula Force GP at the moment... Worked fine for around 5 years. And still works fine, handbrake button is just broken.

Logitech DFP. Low price and very good quality. Or, if money is not a matter, check out the Logitech G25 or a Virtual Performance Parts wheel
FGED GREDG RDFGDR GSFDG