The online racing simulator
Searching in All forums
(880 results)
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

felplacerad
S3 licensed
Quote from MadCatX :LTWheelConf should not be needed at all. In fact, because the entire FFB support has been moved into the kernel, LTWheelConf cannot work properly anymore. You should be able to set the range via the kernel interface by writing the desired range into

/sys/module/hid_logitech/drivers/hid:logitech/*:*/range

.

*Hijack*

Yeah, setting range to <whatever> seems to work, but how do you set the actual force feedback? For example, when running over a rumble strip in Windows I get feedback in the wheel, but in Linux it's completely dead. Perhaps this is not supported?

(I also, in desperation tried [...] --gain 100 --device /dev/input/event23, but that didn't help.)

In case this is of any relevance:


sudo evtest
Available devices:
[...]
/dev/input/event23: G25 Racing Wheel
[...]

Select the device event number [0-23]: 23
Input driver version is 1.0.1
Input device ID: bus 0x3 vendor 0x46d product 0xc299 version 0x111
Input device name: "G25 Racing Wheel"
Supported events:
Event type 0 (EV_SYN)
Event type 1 (EV_KEY)
Event code 288 (BTN_TRIGGER)
Event code 289 (BTN_THUMB)
Event code 290 (BTN_THUMB2)
Event code 291 (BTN_TOP)
Event code 292 (BTN_TOP2)
Event code 293 (BTN_PINKIE)
Event code 294 (BTN_BASE)
Event code 295 (BTN_BASE2)
Event code 296 (BTN_BASE3)
Event code 297 (BTN_BASE4)
Event code 298 (BTN_BASE5)
Event code 299 (BTN_BASE6)
Event code 300 (?)
Event code 301 (?)
Event code 302 (?)
Event code 303 (BTN_DEAD)
Event code 720 (BTN_TRIGGER_HAPPY17)
Event code 721 (BTN_TRIGGER_HAPPY18)
Event code 722 (BTN_TRIGGER_HAPPY19)
Event type 3 (EV_ABS)
Event code 0 (ABS_X)
Value 655
Min 0
Max 16383
Fuzz 63
Flat 1023
Event code 1 (ABS_Y)
Value 255
Min 0
Max 255
Flat 15
Event code 2 (ABS_Z)
Value 255
Min 0
Max 255
Flat 15
Event code 5 (ABS_RZ)
Value 255
Min 0
Max 255
Flat 15
Event code 16 (ABS_HAT0X)
Value 0
Min -1
Max 1
Event code 17 (ABS_HAT0Y)
Value 0
Min -1
Max 1
Event type 4 (EV_MSC)
Event code 4 (MSC_SCAN)
Event type 21 (EV_FF)
Event code 82 (FF_CONSTANT)
Event code 96 (FF_GAIN)
Event code 97 (FF_AUTOCENTER)

felplacerad
S3 licensed
Quote from Scawen :I'm sure that supported software with security patches will be safer for the average Joe. I feel quite negative about Windows 7 because in every day life it seemed to be throwing obstacles into my path with nearly every step I tried to take.

I've quietly been following the Windows * discussion, trying not to fuel anyone's fire, but here goes:

Quote from The Register :Microsoft has left Windows 7 exposed by only applying patches to its newest operating systems.

Researchers found the gaps after they scanned 900 Windows libraries and uncovered a variety of security functions that were updated in Windows 8 but not in 7.

Redmond is patching Windows 8 ... ows 7, say security bods


Anyway, I guess most Linux users would advocate a OpenGL version rather than dx-anything. But I can't even start to imagine how much work it would be to rewrite the whole darn thing.

By the way, just spent two nights in a row racing FBM on demo servers after about 2 years not racing at all. 0.6E though, will try the latest patch tonight. Good fun!

Edit: Just tried LFS 0.6E17 in wine-1.7.18. It ran "fine" after using winetricks to install DX9, but not nearly with the same performance as in windows (but that is to be expected, I guess?).
Last edited by felplacerad, .
felplacerad
S3 licensed
Sorry about this bump ...

Anyway, apparently this game is on sale over at Humble Bundle so I grabbed a copy and played it for about 5 minutes before I *really* messed up the FFB somehow.

Whenever I change gears my G25 rattles so much that I'm afraid to bother my neighbors.

I believe my windows settings are still LFSified (screenshot attached) but this does not appear to be working well in game even after hitting the reset defaults button.

Would someone please share their G25/G27 setttings? Windows as well in game, if you don't mind ...
Last edited by felplacerad, .
felplacerad
S3 licensed
Quote from LNB-Hosting :Having trouble with your browser and you got lots of advertisement, don't worry and keep calm, you can purchase this evening a code for MalWareByte to removed the damn bad virusses and malware trash. You will have after scanning and deleted all the items that MalwareByte detected, after you have did that you have no problems with your browser. LNB-Hosting will purchase for you a code and you will still enjoy your browser.

A code costs €19,99 Yearly.

***UPDATES***
Blacklist IP Checker.
Blacklist IP Blocker.

Advertising your own services, fine. But this is a bit too spammy, no?
FGED GREDG RDFGDR GSFDG