The online racing simulator
Searching in All forums
(930 results)
Add possibility to opt out of social media tracking with DNT header
felplacerad
S3 licensed
Hello,

I'm all for spreading the word about LFS (trust me on this one).
And I can understand that the Facebok, Twitter and G+ buttons provide both a service to the user and help to promote LFS. Nice!

However, by implementing those elements on the website you allow third parties to track you, present "personalized" ads, and (I'm guessing) even identify you if you've got an account at, for example, Facebook. Not so nice!

Sure, there are gazillions of way to protect yourself:
- Installing plugins to block tracking and/or ads (Adblock plus, Privacy Badger, Ghostery ...)
- Using private sessions and/or disabling referrers.
- Doing crazy things with your firewall or proxy.
- etc ...

But the most simple method probably is to simply enable the Do Not Track (DNT) setting in your browser. It doesn't require any plugins or about:config tweaks. And all major browsers support it.

Downside is, this setting does nothing unless the website owner adheres to it. Hence this post.

Vic,

How about updating your code to check for this header and, if it's set, skip the rendering of the social buttons (and possibly even Google Analytics?).

https://www.eff.org/issues/do-not-track
http://www.businessinsider.com/facebook-tracking-2011-11
Last edited by felplacerad, .
felplacerad
S3 licensed
.se mirror updated:

FULL - http://filer.liveforspeed.se/LFS_S2_6G_setup.exe
PATCH - http://filer.liveforspeed.se/mirror/LFS_PATCH_Z25_TO_6G_setup.exe
felplacerad
S3 licensed
Yeah, no. I can't fix that. I figured perhaps I had forgotten to wrap htmlentities/htmlspecialchars around the link but it's fine. Im quite sure # is a valid URL character anyways ... To be sure I tried putting # in there instead but nope.

Actually, the feed even validates (yay!).

So I'm out of ideas. Probably a bug in the ticker. :\
Last edited by felplacerad, .
felplacerad
S3 licensed
What addon? I could have a look to see if its fixable.
felplacerad
S3 licensed
Added LFSRacing tweets to the RSS as well (but no retweets, mentions or stuff like that).
felplacerad
S3 licensed
And oh: If there's interest I could pull the LFS Racing tweets into the feed as well.

Oops, noticed that the sorting order was mixed up. Give me a second to fix this
Last edited by felplacerad, .
Developer forum posts as RSS
felplacerad
S3 licensed
Although there are plenty of interesting discussions at this forum my main reason for coming here is to see what Scawen is up to. When the new forum was initially released I spent a couple of minutes on a userscript to highlight the developers' posts, but I figured I could do a little better.

So I wrote a little PHP-scraper that visits the profiles of the devs and collect their most recent posts and then publish the data in a RSS feed.

The feed is available here NO LONGER AVAILABLE.

... And if you'd like to extend on this here's the scraper:


<?php

/**
* Return the most recent posts by given user at lfsforum.net.
* Breakage-prone due to DOM-parsing! :)
*
* @author felplacerad
* @version 0.1
*/
class LfsForumScraper
{
public $posts;
protected $dom;
protected $cache;

/**
* Create a new DOMDocument object, and
* Read cache file into an array.
*/
public function __construct()
{
if (is_file('./scraper.cache') && time() - filemtime('./scraper.cache') < 600) die("No hammering!\n");

$this->dom = new DOMDocument();
libxml_use_internal_errors(true); // Disable libxml errors
$this->cache = (file_exists('./scraper.cache') ? file('./scraper.cache', FILE_IGNORE_NEW_LINES) : []);
}

/**
* Load HTML, evaluate XPath expressions and sanitize the input a bit
* (ie: remove element attributes and most tags)
* store seen post ids in cache file.
* Return posts that wasn't already seen.
*/
public function scrapeAuthor($targetAuthor = 'Scawen')
{
$url = "https://www.lfs.net/forum/-1/search/user:'$targetAuthor'";
$opts = array('http'=>array('header'=>"User-Agent: fel-notify/0.1"));
$context = stream_context_create($opts);

$this->dom->loadHTML(file_get_contents($url, false, $context));
$xpath = new DOMXPath($this->dom);

// Example: <div class="FPost">
$tags = $xpath->query('//div[@class="FPost"]');

foreach ($tags as $tag) {
$id = $xpath->query('./div[contains(@id, "Post")]', $tag)->
item(0)->getAttribute('id');

if (!in_array($id, $this->cache)) {
$topic = $xpath->query('./div/a', $tag)->
item(0)->nodeValue;

$tlink = $xpath->query('./div/a', $tag)->
item(0)->getAttribute('href');

$plink = $xpath->query('./div[@class="FPostHeader"]/div/a', $tag)->
item(0)->getAttribute('href');

$text = $this->dom->saveXML($xpath->query('./div/div/div[@class="FPostText"]/node()', $tag)->
item(0)->parentNode);

$author = $xpath->query('./div/div[@class="FUserInfo"]/a[@class="UserLink"]', $tag)->
item(0)->nodeValue;

$alink = $xpath->query('./div/div[@class="FUserInfo"]/a[@class="UserLink"]', $tag)->
item(0)->getAttribute('href');

$datetime = $xpath->query('./div[@class="FPostHeader"]/div/time', $tag)->
item(0)->getAttribute('datetime');

if ($author === $targetAuthor) { // LFS Forum may yield false results due to wildcard matches
$this->posts[$id]['id'] = $id;
$this->posts[$id]['datetime'] = date(DATE_RFC2822, (strtotime($datetime)));
$this->posts[$id]['author'] = $author;
$this->posts[$id]['topic'] = htmlspecialchars($topic);
$this->posts[$id]['alink'] = $alink;
$this->posts[$id]['tlink'] = $tlink;
$this->posts[$id]['plink'] = $plink;
$this->posts[$id]['text'] = preg_replace("/<([a-z][a-z0-9]*)[^>]*?(\/?)>/i",'<$1$2>',
strip_tags($text, '<div><p><a><fieldset><legend>'));
}

$ids[] = $id;
}
}

if (isset($ids) && count($ids) > 0) {
file_put_contents('./scraper.cache', "\n" . implode("\n", $ids), FILE_APPEND);
}

return $this->posts;
}

}

$scraper = new LfsForumScraper;

$posts = $scraper->scrapeAuthor('Scawen');
$posts = $scraper->scrapeAuthor('Victor');
$posts = $scraper->scrapeAuthor('Eric');

print_r($posts);

(Vic is OK wit this, I checked ...)
Last edited by felplacerad, . Reason : Feed is no longer available
felplacerad
S3 licensed
When you put it that way, Yeah. I didn't think of that.

But I found the issue (?) by clicking your name -> Forum posts. In that case I expected to find your posts only.
felplacerad
S3 licensed
Also related to search so I figured I might as well use this topic:

Searching posts by username yields false results, eg:

https://www.lfs.net/forum/-1/search/user:%22Victor%22

Will also return posts from VictorMateus123 and victor_12.
A small one :)
felplacerad
S3 licensed
A really small one: on the "Messages" page the last column says "Replies" followed by the number of messages in the thread rather than the number of replies.

Got me thinking someone had replied to my PM when in fact it was my own message that incremented the number.

Either change the text to Messages or subtract the number by one?

Be cool, stay in school.
felplacerad
S3 licensed
Quote from pik_d :Also, fixed with is obviously a user preference, but I personally don't like it. Most people have widescreen monitors, and of varying sizes. Fixed with just makes it so half my screen is unused space.

(Sorry for semi-double post).

If it *really* bugs you and you can't wait for the Devs to implement this, you can use the UserScript I posted above with Tampermonkey or Greasemonkey. Adding the option to enable fluid width only took a second.
felplacerad
S3 licensed
Didn't check if this was already mentioned (but I it was, I second it!):

I really miss moderator names being highlighted in red. I enjoy following Scawens work and just having to look for his red colors (figuratively AND literally? ) really helped.

Sure there is the option to visit his profile and see his latest posts, but if that feature could be reimplemented I'd really appreciate it.

If not I'll sort it out with greasemonkey somehow.

Thanks

Edit: This is a potential quick dirty fix, CSS only:


a[href="/profile/43"] {color: red;}

Obviously it would be better if the selector would target the innerText/innerHTML rather than the href. But I'm not familiar with a technique to do that using nothing but CSS.

Edit 2:

Couldn't resist. Here's a client-side solution for Tampermonkey (confirmed to work with Greasemonkey as well):


// ==UserScript==
// @name lfs.net/forum tweaks
// @namespace http://www.example.com/
// @version 0.3
// @description Ability to toggle Highlighting of Scawen's, Victor's and Eric's posts on lfsforum.net as well as fluid-width layout.
// @match https://www.lfs.net/forum*
// @grant GM_addStyle
// ==/UserScript==

var enable_dev_highlight = true;
var enable_fluid_width = false;

if (enable_dev_highlight) GM_addStyle("a[href='/profile/43'], a[href='/profile/1'], a[href='/profile/64'] { color: red }");
if (enable_fluid_width) GM_addStyle("#BodyDiv { width: 100% }");

Edit 3: Added option to enable/disable fluid-width layout. Not tested thoroughly and might need some tweaking. But it seems to work pretty well actually.
Last edited by felplacerad, .
felplacerad
S3 licensed
I've tried Frisbee Golf once -- A friend (who had probably played a few times before) asked me to tag along a couple of weeks ago.

Although I sucked bad I did kind of enjoy walking the terrain (about 3k). And throwing stuff never gets boring, right? The only downside I can think of is when you/someone lose a disc on a track with lots of vegetation.

There are a few courses in Gothenburg though, perhaps I'll try another one some day!
felplacerad
S3 licensed
Quote from Scawen :Cross-eyed 3D screenshot.

Thanks! I put my finger on the tip of my nose and noticed how the frames started to float together but didnt quite manage to work it out. Then my partner saw me holding my cellphone and finger in such an akward position and obviously wondered what the heck i was doing, haha! I explained and she had a go, and succeeded (allegedly). She said it helped to try to focus a bit in the distance.
felplacerad
S3 licensed
This cross eyed thing, I suppose it would work with a static picture as well? Would someone mind posting a screenshot? I'm really curious but don't have access to a computer at the moment.
felplacerad
S3 licensed
Quote from Flame CZE :[...] automated page to just submit CFG files. But I noticed that not all settings are stored in there - e.g. view information seems to be stored in views.bin.

Yeah ... Should not be too hard (but probably boring) to map the values of cfg.txt and card_cfg.txt to human readable key and value pairs. Not sure about views.bin, though? I had a quick look at the content of \data\views\*.cvw but they appear to be binary. A hex editor didn't give much insight either.

But again, the .cfg files should be easy enough. I would not mind having a stab at building a webapp to store and compare those results if you can't be bothered.

Edit: Had another look at a CVW and was able to decipher some info by, in this example, changing the y-offset around. But the values doesn't quite correspond so I'm not sure what to make of it. Unless someone else has more mad hacking skillz perhaps Scawen could shed some light on this ...
Last edited by felplacerad, . Reason : CVW
felplacerad
S3 licensed
Quote from Boris Lozac :@ felplacerad

220, really
It doesn't work like that here, set it to 900 and the game will adjust the steering depending on the car you drive..

225, actually!

Turns out Assetto Corsa defaults to having a lot of driving aids enabled. After disabling them and increasing the degrees to 300 the car is a lot more responsive and the steering not as wonky.

Did a few more (lonely) laps at fuji. What's a decent track time with the BMW 1M S3?
felplacerad
S3 licensed
Ok, so I've done my first race (and my first laps, actually).

I don't think I bumped into anyone after the restart, at least?

Three questions:

1) Steering?! I've got a G25 and the steering is very "floaty". It turns instantly almost as if there an inverted deadzone, if you see what I mean? I did turn down the range from 900 to 225 because that what I've set in the profiler and what I use in LFS, but is there something that can be done to ammend this?

2) Understeer, much? I drove the Lotus, and it really felt like I went a bit too wide even with little speed. Are the stock setups any good or is it day and night like in LFS?

3) Someone mentioned something about a chat app. Link?
Last edited by felplacerad, .
felplacerad
S3 licensed
Quote from NotAnIllusion :You need to wait until the server is back in booking mode, and then book a slot, and then join once the booking countdown ends.

Meh. Well I'm sure you get used to it.

(But server/session management appear to suck in most games nowadays. Only LFS and QuakeWorld does it right :razz.

Edit: I fell off the map. And I have to stop my car to enter the menu. But I'm still falling as I am typing this ...
Last edited by felplacerad, .
felplacerad
S3 licensed
So how do I join? It's the booking button right? It's "blocked". Do I have to wait for a session to finish?
felplacerad
S3 licensed
Quote from troy :some 45 slot races

Just got the game off Steam since there some discount action going on (I *thought* I read somewhere that a netKar license would make you eligible for an AC license, but I've might been drunk (not like I'd find the license after some 8 years anyway, hehe ...)).

Anyhow! Just got a hold of an Oculus DK1 and figured I might as well try it out online. I'll try to join up!

I guess this Fuji thing is some addon/custom track that I need to register at ac.net to get a hold of? Is there anything I should know that I can't read up on easily?

/noob
felplacerad
S3 licensed
Quote from R3DMAN :Just looked on youtube and i quite like the look.. Ill be getting it this afternoon. Cheers.

I would also like to vouch for Tiny and Big. Actually one of the first Linux games I picked up on Steam. Funny, innovative and looks and runs great. A must buy IMO.

I'd love a sequel!

Edit: Woah, there are mods?! I should really look into that ...
felplacerad
S3 licensed
Personally I'd prefer a native x86/amd64 linux or bsd port.

Meanwhile ... http://wiki.winehq.org/ARM
Last edited by felplacerad, .
felplacerad
S3 licensed
Phew.

Swedish translation updated. All in-game text and the installer should now be covered. In case any swede would like to review it it's available here.

The lfs.net strings needs a lot of work, still.
felplacerad
S3 licensed
Quote from Degats :e else had this issue, or is it just something funky with our server/setup?

I haven't tried the latest DCON ver yet, either. I haven't added the weather parameter to our scripts yet so the weather will be random. I'd need to check this with our race admin first.

Anyway. On a host that been running since march, with moderate activity I wc -l'd 110 instances of WOULDBLOCK. I'm also seeing a lot of:

FATAL TCP ERROR : CONNRESET, and
FATAL NET ERROR : NOTSOCK

... But the host appears to run OK, still.

It's a VPS with a custom kernel (OpenVZ I guess?). Don't flame for not having updated anything in a while.


Debian Squeeze
Linux 2.6.32-042stab068.8
wine-1.0.1
LFS_S2_DCON_6E

FGED GREDG RDFGDR GSFDG