The online racing simulator
Searching in All forums
(514 results)
glyphon
S2 licensed
Quote from tristancliffe :/me moves house.

but what if you just moved from next door from a non-pedo neighbor to a pedo-neighbor. :Eyecrazy:

.:edit:.
wow, this thread has taken a massive detour
glyphon
S2 licensed
Quote from banshee56 :Nice work BTW, I really like this sig.

Thanks, and glad you got it figured out. it would have taken me a while to figure that out without knowing you changed it
glyphon
S2 licensed
2nd attempt...

new version up.
to update, replace LFS_online_check.php with new version, and add identKeys.php to inc/ folder, and then edit with appropriate info.

also, it seems that the Pubstat tarpit (5sec delay) is based off of IP address, and not $identykey (Victor, correct me if i'm wrong), so if the delay really bugs you, go with the premium pubstats. its insanely cheap. each access of my script uses ~50b, and it costs $(gbp)0.0015/mb.
glyphon
S2 licensed
the userNameSwitch.php is only necessary if you want the name that displays on the graphic to be different somehow from your actual LFS user name.

for example, one of the guys that is using this registered as mini z, but later decided he didn't like that name, so changed the ingame name to rotary power. but if you try to pull rotary power, nothing comes up. so this is where the userNameSwitch.php file comes into play.

it uses mini z to pull the statistics from the LFS servers, but the name that is displayed on the graphic is rotary power.

like wise, i'm assuming your LFS username is banshee56, but if you wanted the graphic to show [CORE]Banshee56, you'd use the userNameSwitch file.

also, the name variable is case-insentive, BaNshEE56 is basically the same as banshee56. the only difference between the two is how they are displayed on the graphic. both pull the same stats. make sense?

and as for each teammate, all you have to do is change the username in the url (and the template number if you wish, but not necessary).

now, for the ident key...what i'm doing right now is just using my key for all my friends that are using the script (they are just linking the code on my page and putting there username in). Which is fine, except for the "who's online" page that displays all of these graphics on one page, because the LFS server that the stats are pulled from only allows access from one ident key every 5 seconds...so on a page with 6 graphics, that could take ~30 seconds to load them all.

but i just thought of a solution to that. so for now, just let them use your ident key (they won't ever see it), and i'll get a new version out later today or tomorrow (or you could purchase some credits and go with premium access, which has no delay on multiple access.

in short, no, only one folder.
for multiple users, just do the following...
http://your-host/check#.glyphon.jpg
http://your-host/check#.banshee56.jpg
http://your-host/check#.Victor.jpg
...

and keep me updated as to what happens with the online graphic. (make sure its permission is set to 644).
Last edited by glyphon, .
glyphon
S2 licensed
Quote from banshee56 :I've looked through the PHP file and can find no reasons why the online wouldn't show. Any ideas?

try and pull up the stats for someone online. then if it displays the same issue, go into the cache directory and open up the cache file for that person. are there any error messages? if there are no error messages, and the cache file has stats in it, then the problem is with the image file. double check the spelling of the online file. also make sure that its a .png file.

if everything is correct, then PM the url to me so i can see if i can figure out what's going on.
glyphon
S2 licensed
Quote from banshee56 :One thing that was missing was the rewrite line you posted several posts up as needed in the htaccess file. After I added that, everything worked.

Oh, you are right...i included the rewrite line in a .htaccess file, but in the zip file it would get uploaded into the LFS_Checker folder, but the code in that file needs to get added to the .htaccess file in the public_html directory.:doh:

good catch. thanks
glyphon
S2 licensed
Quote from banshee56 :Glyphon, in the readme, you state:
Shouldn't the url be "http://your-host/LFS_Checker/check1.glyphon.jpg" ??

nope. assuming that you make the LFS_Checker folder in the root public_html folder of the webhost, then the "short" url would be http://your-host/check1.banshee56.jpg

if you changed the name of the "LFS_Checker" folder, or place it in a different folder, then you'd have to edit the .htaccess file so that the "short" url would still work, and even then it would be http://your-host/check1.banshee56.jpg
glyphon
S2 licensed
Update - v0.9
added support for identkey per user

I left out some information from the installation instruction (thanks banshee). I've updated the instructions and replaced the attached file, so any downloads after now will have the correct instructions.

For everyone that has already downloaded the file, here are the missing instructions...

Quote :6. .htaccess
A. No .htaccess file in the Public_HTML directory
Move the supplied .htaccess file to the public_html directory.

B. There is a .htaccess file already in the public_html directory
Open the supplied .htaccess file and copy the code.
Now open the existing .htaccess file in th public_html directory and paste the code.
Make sure there is only one line in the file that has "RewriteEngine on"
Group all lines that start with "RewriteRule" together

Made some fairly significant changes to the code of the script.
  • Added ability to set template selection to random
  • Reorganized the directory structure
  • Changed the way player stats is cached. Now cached as text data instead of as the generated graphic.
  • Units can now be set to metric or imperial units
  • Fixed bug that showed offline players as online when script tried to pull the live stats from the LFSWorld server too quickly after just pulling the stats
  • added switch command for formating user name on signature stats graphic.
  • changed how racing server names are displayed to fix bug that caused incorrect character to be displayed at times.
  • switched fonts used for Japanese text. (included)
Last edited by glyphon, . Reason : new version
glyphon
S2 licensed
Hows development on this coming?
glyphon
S2 licensed
Quote from Bosse :On the last screenshots I had all on performance = no vsync, no aa/af and so on. Still, 85. Edit: Hmm, maybe i missed to look ingame for Vsync. I thought that there isn't aa/af so there isn't Vsync either. Gonna try now..

there's no ingame aa/af, but there is ingame vsync. Thinking back, make sure you have Adaptive AA disabled. when i have that enabled on my x1600xt, it limits my frame rate to around 60 or 65, and when its disabled, the frame rate can go much higher. (it almost seems like adaptive aa forces v-sync on).

another thing to check in the ati config.
glyphon
S2 licensed
check in game, and in the ATI config that you don't have v-sync enabled.

V-sync limits your FPS to whatever your monitors refresh rate it.

and you can have it full screen. I have a lcd, and its refresh rate is 60hz, and without v-sync turned on, i regularly break 100fps...highest i've noticed was around 160.
glyphon
S2 licensed
have you updated the system drivers for your motherboard?

you might want to try that.
glyphon
S2 licensed
Quote from Victor :k, let me think about that for the next version update

thanks
glyphon
S2 licensed
nah, nothing that elaborate. just the car/track currently being used if the person is online, or the car/track they were using the last time they were online...like on the racer stats page of LFSWorld.

see example pic.
glyphon
S2 licensed
I've got a low priority request...could Track and Car data be added to the action=PST query?
glyphon
S2 licensed
its not bad. i agree about the simplistic skin view...

a couple of things that i noticed...
first off, the text on the sides need to be cleaned up. it looks like you used an image that you cut the text out of. if you did, the text tool in photoshop will produce better results.

2nd, the i think color of the stripe behind the front wheels doesn't fit the car. if i was doing this skin, i'd try grey or black.
Stats Sig graphic
glyphon
S2 licensed
couple of fixes...

added a random time generator to the cache time between 120s and 360s, so if there are multiple racer stat images on one page, they won't all try to refresh the cached image at the same time.

I also added in template support, so that different images can be used.
LFS_online_check.php?name=glyphon&template=1

And remember to change the $idkey variable to your ID Key, or the script won't work.

also, a very handy little trick for people using apache servers...
add this to your .htaccess file. with this code, you'll be able to use check#.LFS_USERNAME.jpg to point to the script (with # being the template number)
RewriteEngine on
RewriteRule ^check([0-9]+)\.([A-Za-z0-9]+|.*)\.jpg$ /LFS_online_check.php?name=$2&template=$1 [nc,ns]

updated script
Last edited by glyphon, .
glyphon
S2 licensed
the control panel may allow you to change the settings, but do they actually make any differences?

I have an ATI card, and when i was playing around with vista, and the control panel would let me set all the different features of the card, but vista wouldn't use those settings...

for an example, here is a screen capture i took in vista at 6xAA and 16xAF.
glyphon
S2 licensed
Quote from filur :Support for kilometers / liters?

metric version that gives stats in km & L.

also, for anyone using this script, don't forget to put your ID Key in the $idkey variable...the script won't work otherwise.

updated script
Last edited by glyphon, .
glyphon
S2 licensed
I've created a code to generate a an image singature with user name, online status, and some various online stats.

here's the code if anyone would like it...
also, if anyone notices any glaring errors or ways to improve the code, please let me know

get the cp_unicode_tables file that is referenced in the include at the top of the script in this thread...
http://www.lfsforum.net/showthread.php?t=3304

also, the msgothic.ttf file is 7.9mb, so i can't attach it here. check your windows/font directory for it. verdana should definately be in that folder.

usage is LFS_online_check.php?name=Valid LFS UserName Here

example images are attached, as is a template for where the stats go. obviously, you can change all that around if you want to change the code for the text placement.

updated script
Last edited by glyphon, .
glyphon
S2 licensed
I completely agree that it is a bug and i feel that MS is going to far out of their way to protect users from theirselves (themselves?).
glyphon
S2 licensed
on my helmet skin, i've got デラメタジェフ, but seeing as how that's actually my name, i don't think that make me 1337 or increased my ePenisu at all
glyphon
S2 licensed
i can't say anything about rbr or nkp, but GTL seemed to work without the lag issue. now, i have no idea how their audio system differs. just an observation.

that said, i've since ditched vista, and most likely won't be going back for years to come. i don't see any need or reason to do so. and UAC really really annoyed me. Even with UAC completely disabled, and the control panel "run as admin" the system wouldn't grant me permissions to calibrate my DFP. i blame that issue on beta hiccups, but still, i find UAC to be more of a hiderance than help.
glyphon
S2 licensed
looks like a scary clown to me. and ouch at the 14fps.
FGED GREDG RDFGDR GSFDG