im on 05.7 (man im out of date) and dont really want to upgrade with these problems.
however i have...
PowerColor X800 Bravo 256mb
AMD64 3000+
~70 fps with only me on track (in cockpit view)
~30-50 fps when in the middle of a full pack ( in cockpit view)
i will update the drivers if you need that card tested
in the dedicated server, could there be an extra switch in the cfg (or command line) so if theres an error, it doesnt show the message dialog? instead it writes the error to deb.log (like it does allready) and exits streight away.
it would make it easier to notice a problem when launching through a web app (problem with config or whatever, the message dialog keeps the process loaded, but it wont accept connections or anything. will be best if the error is logged and process closed. so i can slep the thread after launching lfs and seeing if it closes)
ive changed course completely and decided to put my recent c# learning to practice.
within 30 mins i came up with code that will start lfs and return the PID. i can then cleanly close lfs with the pid, or the filename. if that fails i kill the process.
im making a library of code and classes to do with lfs and i might release it when im done (if its any good).
wow, thanks. i think that will do. but i wonder how much of a problem it is for lfsworld or connected clients if the process is terminated instead of closed.
are you a c++ programmer? i can never seem to find what im looking for on msdn (im wondering if theres a skill needed to trick the msdn search)
i did see the CurrentDirectory property, but assumed it was read only.
im using pskill because im storing the PID and terminating lfs at another time. i should really try do a clean exit. but i cant seem to get a reference to the object using the PID, this will also cause trouble when i need to figure out if the process is still running...
i can send the keys "/exit{ENTER}" to the window, but im testing on xp, and if the window isnt active allready, trying to activate it makes the taskbar flash (the only time this isnt a usefull feature!) *goes to look for a reg key to disable that*
im trying to get lfs started up using php and windows but ive hit a snag with how lfs finds its files. when my code starts lfs, lfs thinks that its in the php binary folder (in my case C:\Apps\PHPEd\PHP5) and not the same folder as the lfs.exe.
im using com to load up lfs, get the process id and then use a tool to terminate a process using its id. ive tryed creating a shortcut to lfs.exe but the method im using to start lfs reads the .lnk as a file and not a shortcut (then it complains its not a valid win32 exe)
using chdir() php function doesnt work to change the folder lfs starts in.
here is code
<?php
$Base = "C:\\Documents and Settings\\Jon\\My Documents\\temp\\packages\\"; $LFS = "lfs_s2_full\\default\\";
$WshShell = new COM("WScript.Shell"); $oExec = $WshShell->Exec($Base . "pskill.exe $PID");
echo "terminated $PID"; ?>
here is output
is there a way to execute lfs and tell it what folder to start in, or is this a bug in lfs? (should lfs be settings its working directory to the exe path?)