The online racing simulator
Searching in All forums
(999 results)
Woz
S2 licensed
Quote from DarkTimes :Yeah, I would use LINQ too, I just didn't in my example because I didn't know if skywatcher understood it and I didn't want to complicate the code unnecessarily.

I guess it's down to personal preference, but I would still use the regex to split the words, as otherwise you run into what I call the S****horpe problem. Edit: the LFS forum has this issue too it seems.

bool MessageContainsSwearWord(string message)
{
return Regex.Split(message, @"\W+").Any(w => swearwords.Contains(w.ToLower()));
}

As I say though it's down to personal preference whether you want to check only whole words or not. Of course it's not the most complete swear-filter ever, but it should work for most simple purposes.

I guess I avoid regex as it can cause maint issues if you have people in your team that do not understand. At least Linq is type safe to give that protection.

Like your solution though, nice and clean
Woz
S2 licensed
Dual boot. It is pointless to try this sort of stuff for games. For the performance you get you might as well go but a cheap 6 year old computer just for games as it will perform better lol
Woz
S2 licensed
Quote from DarkTimes :I like TDD for some things, I've had genuine fist-in-the-air moments when a test passes, but I'm having issues with the fact that I am writing two or three times as much code as I was before, plus I sense a real increase in the complexity of some of my code.

I enjoy some things, writing the tests first creates some nicely decoupled code, and as I say I have had some really great moments when a a complex algorithm finally passes. I was writing some code the other day that converted base 10 numbers into base 36, and I found the tests very helpful while I grappled with my bad mathematics.

It will be very useful when working with dynamic languages, such as Python, when you don't have the safety-net of the compiler, but I'm not convinced that for the sorts of GUI apps I write, that I am really getting an equal return for the time-investment.

Anyway I'm still having fun and I plan to continue with it for the time being.

I got TDD into place early in the project I am working on which is now in the region of 500000 lines of code. Without our unit tests we would never keep it stable. TDD is great at finding all the little issues that occur in what you think are unrelated code.

You are right in that you create 2-3 times more code BUT the offset is less manual tests are required. So the time very quickly repays itself. We even took the time to write automatic reflection based test that check attribute tagging and validators are correctly hooked on objects etc.

You just have to stop fighting writing the test code, after a while you feel a little exposed when you write code without the associated unit tests to back it up.

I hate writing code without tests now as it means I have to perform the tests that would be automatic manually. Time better spent coding tbh.
Woz
S2 licensed
Here is a very simple basic solution using C# and Linq and a test rig that is called with data that will fail and pass the filter.


<?php 
using System
;
using System.Linq;

namespace 
Scratch
{
    class 
Program
    
{
        static 
void Main(string[] args)
        {
            
string[] badWords = new string[] 
            { 
                
"fOrK"// case does not matter
                
"barstool"
                
"aerosol" 
            
};

            foreach (
string toTest in new string[]
                {
                    
"For Forks sake you Barstool.",
                    
"Should have no bad words."
                
})
            {
                
Console.WriteLine(CountBadWords(badWordstoTest).ToString() +
                    
" bad words found.");
            }
        }

        public static 
int CountBadWords(string[] badWordsstring toTest)
        {
            return 
badWords.Count(badWord => toTest.ToLower().Contains(badWord.ToLower()));
        }

        public static 
bool HasBadWords(string[] badWordsstring toTest)
        {
            return 
badWords.Any(badWord => toTest.ToLower().Contains(badWord.ToLower()));
        }
    }
}
?>

Last edited by Woz, .
Woz
S2 licensed
Quote from amp88 :.

Yes, anything that supports IEnumerable<T> is suitable as you have to enumerate the list looking if any of contained words in the text being validated.

Given that a Fixed array is best as cheapest memory footprint but List<T> cost is similar. Direct access of the words is not required.
Woz
S2 licensed
Great fun game and free TF2 hat
Woz
S2 licensed
The trick with the RAC is find the pace you can put in lap after lap. It has such and tiny edge between a fun catchable drive and trying to kill you.

But is rewarding when you get it right. Will be interesting to see what the new tire physics bring to the RAC
Woz
S2 licensed
A ROR type system might work if cut down. Make each car chassis a box. This would mean just has 16 rods. (The box edges (12) + 4 internal diagonal between box corners)

This might give enough nodes to use but still be low enough density to allow within the CPU bandwidth given the rest of the physics calcs.
Woz
S2 licensed
It could be ISP related or wireless network (if you have one)

In NZ most connections are metered but I managed to get an unmetered acct. Over time the ISP throttled the connection and shaped the traffic of the unmetered link so gaming was not an option. After switching to metered all my lag issues went for games.

In LFS only join low pig servers. Normally the lower the ping the less computers/routers are between you and the game so less risk of ping/lag spikes etc
Could the current tracks get a "laser scan" style update
Woz
S2 licensed
Given the news of the laser scanned track, could the mesh from the track surface of the new track be used to apply or simulate a "scanned mesh" effect to the existing tracks to give them more "texture"?
Woz
S2 licensed
Apple ... I like their toys but would never buy one because of how they use DRM, lock-in, control and manipulation like a weapon.
Woz
S2 licensed
I doubt you will see LFS on an XBox tbh.

LFS would probably need some major redesign in areas as developed for a PC. The XBox is close but not that close

Also the 360 might struggle with the Physics, not sure on its CPU but LFS is CPU bound more than GFX bound.

HTH
Woz
S2 licensed
Quote from Whiskey :In order to not to lock you rear tyres while reducing from 3th to 2nd, for example

Then blip, modulate brakes or change down later when you are not asking as much from the engine.

Ignition cut does not remove the need to blip on aggressive downshifts. F1 cars have systems in place to blip as required to solve this.
Woz
S2 licensed
Quote from col :I think you're under-estimating the complexity of this......

You are right it is still a fair size chunk of work and not a bash through in a weekend

Hope some focus is put on it after the initial S3 release as it would life LFS far about what is out there

Quote from col :Sure would
Col

Trouble is so few of us agree about no control over weather
Woz
S2 licensed
a 2ltr bottle of milk
Woz
S2 licensed
Quote from Boris Lozac :Watched "Moon" I don't know, cool idea i guess, but too many implausibilities, and the script is kinda wierd in places.. great acting by Sam Rockwell though..

I really liked Moon. Very different film

Do NOT go and see Paranormal Actity or Meh Activity as it should be know. What a pointless dull film with no merit at all. I almost fell asleep.
Woz
S2 licensed
Quote from col :I would love changing line and grip levels, marbles etc. however that would be a big programming effort and would take a lot of development before it was good enough for release.
The point of my suggestion is that it is not improvements, just changes. No programming required, and very little design work, just some cut'n'pastes and smoothing the joins, then probably a little testing and sanity checking. So it would be feasible to do it regularly, while we wait for improvements such as 'live track'

LFS used to have the race line that would darken based on the path people went. If it was just AI you ended up with a narrow darker line as they allo followed the same line but in normal use it was more defuse due to the differences in lines taken etc.

That is most of the battle no? Prodably far less work than the physics update currently in place.

I think that was all client side so the server would need to broadcast the paths so everyone had the same but that can be handled with a simple set of centre + width markers + grip modifier outside the region overlayed on the track that give the dynamic bounds of the "clean" region. (More points in corners and less on the straight)

A soft change in friction could be implemented as you step outside the clean region such that the grip modifer is ramped from clean to full modifier over a width based on the width of the clean region. The thinking here being a narrow clean path would soon put you in marbles far quicker than a wider more defuse clean path.

Only markers that update would be included in packets to minimise bandwidth.

The rest can be handled client side as given the region it should be possible to vary grip levels and the server can validate.

Live track along with removing control over wind/weather so conditions changed over time (Talking hours here for weather) would improve LFS no end.

Too many servers have no wind enabled because too many people care about lap times over just racing in the conditions that are present

Just thinking out loud though
Last edited by Woz, .
Woz
S2 licensed
I think more than that we need a "live track" where the racing line is cleaned and hence more grip than off life where the marbles form.

LFS has always had the changing racing line so how much harder is it to implement vatiable grip so the line has more.

Tracks will constantly change then so also present a different challenge.

But yes col, I see where you are coming from.
Woz
S2 licensed
Quote from NightShift :LFSForum Lotto time again?

C'mon Woz you're not the typical 12 yo LFS noob that can't tell a manual transmission from a sequential w/o cut-off. I would expect something more mature from you than just some stale preaching.

Instead of pontificating on the meaning of 'enjoying life' (=playing FPS games?!) and 'burning out' - why don't you check out other racing sims? Scawen himself has suggested that. And figure out the difference between 'bitching' and expressing informed opinions?

lol, I did not say that playing FPS meant enjoying life.

Just meant that a change is as good as a rest. I prob would enjoy other race sims but as the only one worth a look at requires you to bend over and lube your arse while they rape you of cash so I went back to FPS games

And yes I mean iRacing with its pay monthly and also pay for content model I would accept monthly fee or content fee but both is just wrong but that argument is for another thread lol.
Woz
S2 licensed
Stop the bitching... When I burnt out on LFS I switched to other games like TF2, L4D(1 and 2) and Batman Arkham. I just watch the forums for news.

When the patch comes out I will dig out my G25 again but until then it collects dust while I enjoy other experiences.

LFS will pick up again after the patch but people do reach burn out on any game/sim when there is slow change, human nature.

Just chill and enjoy life
Woz
S2 licensed
Are you trying to say that once you "copyright" a layout that nobody else is allowed to make anything similar if so this is pure BS.

This sounds like the same bitching as the "skin issue"

If you are making a track fine but all you are doing is putting some cones and other stuff on lfs tracks. There are so few environements that so many layouts are similar/the same that it is a pure waste of dev time.

-1 from me on a pointless idea!!!!!!!!
Woz
S2 licensed
Bathurst has to be one of the only tracks in the world that the Safety Nazi's have not managed to change

It is a dangerous insane track that would never pass regs if not for the history behind the circuit.

LFS would need changes so it could simulate a kangaroo crossing the track mid race at the bottom of Conrod lol

I love the place and would love to see it in LFS
Woz
S2 licensed
The control system makes it look like Dragons Lair lol
Woz
S2 licensed
I never used RSC after LFS opened its own forum.

Some of the data is a loss but the community in RSC died years ago so no loss in that respect
FGED GREDG RDFGDR GSFDG