The online racing simulator
Searching in All forums
(988 results)
Ian.H
S3 licensed
Quote from NetDemon01 :I redownloaded the entire Inferno setups to try again. Worked perfect this time. Nice work, certainly beats all three of the renaming applications I downloaded to try out.

Sweet! Thanks again for taking the time to redownload the setups and test again... much appreciated and glad it all worked this time



Regards,

Ian
Ian.H
S3 licensed
heh.. no probs.

Seeing the posts a little confused about DOS prompts and the likes makes me feel old



Regards,

Ian
Ian.H
S3 licensed
Quote from CycloNe88 :Doesn't work for me... I open it up and the black prompt box closes straight away...

Did you open a DOS prompt and then type the command? or did you just double-click the binary? I suspect the latter as it contains no code to close the console.. if so, this won't work, it's not a GUI app and requires keyboard input.



Regards,

Ian
Ian.H
S3 licensed
Quote from NetDemon01 :It is definitely the 'XRG' letters that didn't transfer for me. I finally recongized one of my own setups. Not a big deal for just one car to rename ;-) I can do that manually in a few minutes. Thanks for this script, made it lots easier!

That's even more strange as I definitely detect it correctly as 'XRGT' (or 'XR GT' before I strip the spaces).

I've added checking for this now and fixed the above bug that AP has pointed out to me.

At least now there should be no actual _problems_ when running it.. but still not entirely sure why the XRG fails

If you have a backup of your settings dir ND, could you perhaps restore that and try the updated version I've uploaded to post #1 and let me know if for some reason, this update has fixed that issue too? If so and it still errors, it'll display: 'ERROR: COULD NOT GET CAR CODE FOR $carName' and skip that file.



Regards,

Ian
Ian.H
S3 licensed
Quote from AppiePils :Yes of course i can

Renaming I:/1_Games/LFS/data/settings/XR GTR_bl1r_bioha1451.set as I:/_Games/LFS/data/setups/XR GTR_bl1r_bioha1451.set...done!
Use of uninitialized value in substitution (s///) at I:\x10_to_x30_setup_fix.exe line 69.

hmm actually looking at it makes me think it has an issue with the 1_Games as main folder.

Thanks AP! You've nailed it

My regex is sloppy and it's done a string replacement at the _first_ instance of '_' in the complete path, rather than filename(!).

A really shitty bug on my part and will explain the randomness of it working for some and not others.

Thanks for posting this.. I'll get on with a fix and post an update



Regards,

Ian
Ian.H
S3 licensed
Quote from NetDemon01 :Well I can tell you the ones it did work for.

[ snip list ]

And I believe I did not have any setups for the Sauber to begin with.
So that leaves the new BMW...hmm...seems all were acccounted for but for some reason some setups just didn't transfer.

Thanks. My BMW Sauber ones renamed no problem.. that said, AFAIK, all cars have a '_race_s.set' setup file.. all of which appear to have been copied ok for me.

FBMW should be unaffected, as X10 didn't have any FBMW setups (I haven't accounted for this car at all).

This is strange


Regards,

Ian
Ian.H
S3 licensed
Quote from NetDemon01 :Worked great for nearly all my setups, except about 125 of them...they got transferred over but no three digit vehicle name was given so the files just say "_as1_blah345.set" for example.

Thanks ND.. that definitely confirms a car code error. I don't suppose you happen to know what car it was originally meant for do you? This'd really help me pinpoint the error.

I'll add some sanity checking too for an update



Regards,

Ian
Ian.H
S3 licensed
Hi AP..

Quote from AppiePils :I am getting the following error:

Can you copy / paste the few lines above the error line too please? I think I've got a car name wrong in the lookup table, which will also explain Sven's bug report.



Regards,

Ian
Ian.H
S3 licensed
Quote from Bob Smith :Can't you just create a batch file to do this?

ren "XR GT TURBO_*.*" "XRT_*.*"

???

Sure.. except I haven't written a batch script in years. Perl runs on both my windoze box and FreeBSD boxes.. no need to worry about whether I need .BAT or .SH files



Regards,

Ian
Ian.H
S3 licensed
Quote from mrodgers :Thanks for the tool, Ian (I'm still at work ATM though).

I think with the patch, it's time to tone down the setup list anyways, so I'll just change manually. I really only have a handful I use regularly of the thousands in my setup list.

Hint, at least for me, my FE Green sets work beautifully in many many other tracks. FE Green set at all Fern Bay, Most South Cities, Aston North, KY National, etc.

I'm the same in reality, I maybe have 10 setups I use (for the limited selection of cars I choose to drive). I was going to do it via a few rename calls in DOpus, but decided I'd be lazy and hack a script together to completely automate it



Regards,

Ian
Ian.H
S3 licensed
Quote from herki :Good old DOS-times
Mind pasting the script, I have perl installed

heh yup.. didn't seem much point in opening my C++ IDE to hack together something this simple (and I don't know any regex in C++)

Here's the script. Excuse it not being the tidiest, was a quick hack for myself really, but decided to post it.



Regards,

Ian

PS: herki.. I'm wondering whether the bug Sven has posted about is something to do with locale settings, although would seem strange considering the code. If you test this (backup first ) and notice a similar problem.. could you restore your backup and run it again and redirect the output to a file and PM it to me please? Obviously I'd like it to be bug free for everyone, not just a few
Last edited by Ian.H, . Reason : Attachment removed, updated version in post #1
Ian.H
S3 licensed
Quote from nikka :Running Vista here, works without problems.

Cool! Thanks for then confirmation



Regards,

Ian
Ian.H
S3 licensed
Quote from Fabri91 :How do we do that?
Like: cd D:\
for example?

To change dirs, you just need to enter the dir name. If you have the file in 'D:\downloads' for example, from the DOS window, type:

D:
cd \downloads

Regards,

Ian
Ian.H
S3 licensed
Sorry lads, no idea if it works on Vista or not as I'll be avoiding that OS for as long as possible.

You don't have to start the DOS prompt in the dir of the util.. you can specify it as: "C:\whereever\you\downloaded\the\file\to\x10_to_x30_setup_fix.exe" --path="\path\to\lfs" etc.

I modified my registry a long time ago to give me a 'Command Prompt From Here' option in explorer / 3rd party file explorers making that task simple (plenty of info on the net for anyone wanting to add that option for future usage too).


Sven.. I don't know what happened there.. I ran several tests here that didn't cause any problems.

Is there something perhaps "weird" about your directory names?

And a silly question, has it really lost that many setups, or are you comparing number of files that were in your original 'settings' dir compared to what's now in your 'setups' dir? The original 'settings' dir contained both colours and setups, which are now separated. This util process both file types and moves them to the new relative dirs. Just making sure.

If this has screwed things over for you, would you be prepared to run a couple of tests for me if I PM you an update? (test updates won't actually rename / delete anything, will just display info I can use for debugging).



Regards,

Ian
Ian.H
S3 licensed
Quote from danowat :As for the setup's, we really need LFS to convert all the old setups into the new setup file format some how....

Agreed.. but in the mean time, this should work



Regards,

Ian
LFS Setups / Colours X10-X30 Fix
Ian.H
S3 licensed
Hi all..

Here's a simple util to convert X10 setups and colours to X30.

It'll list the src->dest file updating and report how many files were updated and how many deleted. By default, no files are deleted.

NOTE: Patch X30 is required to be installed before running this util.

BACKUP: Remember to backup your 'Settings' dir before running this util, just incase.



Regards,

Ian
Last edited by Ian.H, . Reason : Screenshot added
Ian.H
S3 licensed
Hi franky..

Quote from franky500 :Hey Ian, Thanks,

I'm assuming however that i am doing something completely and uterly wrong:

here is what i have in my php doc:

<?php


/* Database connection information */
$hostname = "localhost";
$username = "*****";
$password = "***";
$dbname = "*****";

SELECT COUNT(*) AS total FROM `tc_services` WHERE `GAME_ID` = 'TC1704400877836';
}

?>

which gives me the error:

Parse error: syntax error, unexpected T_STRING in test.php on line 10

I have a feeling im doing this completely wrong lol.

Any ideas?

Thanks

EDIT: i think im an idiot... Any chance you could whip something up for me ?. i think i'm trying to think to much.. dont you think? /me goes to brush up on basic PHP...

Looks like you have everything sorted(?) from the follow-up posts. Sorry for the vagueness, I literally just posted the SQL statement, rather than adding the PHP code for it too.

Just for future reference if you're interested, the error you got basically means that the PHP script contains what it's interpreting as a string (ie: no function calls etc) but it's not enclosed with either single or double quotes (not that just adding quotes in this case would have got you the result you were after as you've probably worked out by now ). PHP's error handling / reporting isn't the most intuitive.. one thing I'm not keen about on the language.. even after 7 years of using it.. you just get used to working around it

If you do still have any problems.. feel free to drop me a PM and I'll try n help ya



Regards,

Ian
Last edited by Ian.H, .
Ian.H
S3 licensed
You're almost there Franky...

SELECT COUNT(*) AS total FROM `TABLE_NAME` WHERE `COLUMN_NAME` = 'search_query'

Using your screenshot, something like:

SELECT COUNT(*) AS total FROM `your_table_name` WHERE `GAME_ID` = 'TC1704.......'

This will result in an array / object element (depending on your coding style) named 'total' containing the number of records found.. as you're expecting.

HTH



Regards,

Ian
Ian.H
S3 licensed
Quote from K.David :The overall angle of the car is perfect but it'd be nice to have shiny rims

Not chromed, but slightly reflective



Regards,

Ian
Ian.H
S3 licensed
Quote from spankmeyer :Drop the drama queen act or I'll personally send you shit in a bag and stick a plastic rainbow on top of it.

[ snip ]


Not a drama queen act at all.. it's a common response from people to tell others that have become somewhat bored of the current state / content to "go play something else and come back later".. I did that, for 2 years. I came back (I obviously like something about LFS to come back and try it again) and still not much has progressed.

I'm well aware that I bought a license for a pre-release as such, not complaining about that.. what I didn't realise I'd be buying was such a long delay in moving forward (and no, I'm not complaining about the actual purchasing.. just the delay.. £24 will be well worth the money when some decent content appears).

I find the tracks uninspiring.. most of the cars the same (although maybe I'm strange as I much prefer more of a stock car than a high downforce GTR-spec), the tracks all feel somewhat too samey samey.. not entirely, but reusing a tiny section of tracks to create a massive collection of combinations gets boring to drive on and most really not that fun considering most S2 tracks have been designed to run cars on that top 180mph+ judging by the widths / lengths of straights in most.

There's been no attempt to fix the bugs on tracks etc either (or at least that we've seen).. how long is one supposed to sit staring at that carrot hanging on the string before we think "bollox.. I'll get a takeaway"?

Regardless of my comments, I do have a lot of respect for Scawen as a coder.. he's certainly achieved something I could never do.. but people have varying levels of patience. maybe mine's less than yours.. but there's been nothing new to inspire new interest in 2 years with LFS.. but like commuting to work, driving somewhere new might be interesting to some for a while... after a few years of the same route, it starts to become a chore. I guess I was just hoping for and somewhat expected (going on past progress) that we'd have had some new content by now. Maybe I should have paid a bit more and properly bought into the "LFS Dream"(tm) where I'd be happy as long as the project is complete before I'm bedridden with age.



Regards,

Ian
Ian.H
S3 licensed
Quote from Dissident :I get the feeling this kind of discussions wouldn't crop up as often if the devs would just post a development roadmap: they should just keep a public list of the things they plan to do, along with reasonable time estimations for completion of each feature.

I mean, this is what happens in most dev projects. It would help people be more patient, it would enable everyone to see that yes, development is still ongoing, and that they can expect such and such feature by a given date (more or less).

As for now, it seems like a guessing game: are they working on the AI ? Other things ? When will the next patch be released ? Having a public roadmap would help a lot.

Or you can just take a break.. like I did.. for 2 years, and come back to find umm...... well, not a lot has changed really. Looks like I'm about to take my 2nd 2 year break.. maybe I'll come back to S2 BETA by then.. but there might also be a pot of gold at the end of a rainbow too or a large pile of rocking horse shit in my front room.



Regards,

Ian
Ian.H
S3 licensed
Quote from Storm_Cloud :

[ snip ]

Mind you, if he slips in a Club version of Westhill and makes a new track at South City (like SO Long but you come off the flyover earlier into a downhill hairpin - just need to remove the tyre barriers) I'd be happy for a while.

I think this is one of the major problems / issues a lot of people have who are asking for more updates (especially content).. many, like myself, don't want continuous regurgitations of the same tracks, we're bored shitless of them.. we have way too many of them as it is (look at Aston!!).. it's lazy development and shows a lack of imagination (much like just making GTR versions of existing cars rather than new cars... oops! did I say that out loud?)

What LFS needs are new _environments_.. new areas, completely new tracks.. not a few polys added / moved here and there to the tracks that have been around since day dot.

Out of all the track _combinations_ we have of the 4 tracks(?) there's about 3 that are semi interesting, IMO, BL1 being the best track in the game.



Regards,

Ian
Last edited by Ian.H, .
Ian.H
S3 licensed
Quote from NotAnIllusion :Please remove any google-analytics.com hosted scripts or get them hosted locally >.<

[tk@hybris:~]$ host pagead2.google-analytics.com
Host pagead2.google-analytics.com not found: 3(NXDOMAIN)

Local BIND works a treat with entire (sub)domains I think my NULL zones total around 200 domains



Regards,

Ian
Ian.H
S3 licensed
Quote from AndroidXP :Look Ian, I agree with you that LFS'... err, lets call it "simulation of racing" (as in how things actually happen in real racing, including all the procedures, the atmosphere, certain restrictions to what is possible, etc.) is pretty lacking, mildly put. However your stance of not allowing options (no separate hardcore mode, which btw is always only referencing to misc/HUD options, not physics), would mean that both sides could never be satisfied - it would always be a compromise with an inclination to the group that provides most of the monetary base.

I think realistically the hardcore mode is the only way LFS will ever be what some of us currently want it to be, because I'm pretty sure LFS will never completely ditch either philosophy in favour of the other. Being able to quickly and quite arcadely jump into races without much hassle is simply a vital part of keeping a healthy userbase. So provide the option and make both sides happy, or stick to the compromise that keeps you alive and accept that neither or only one side is satisfied.

Is it not then, false advertising? Is that not similar to me writing an application and slapping a big hologram in the corner of the site page / physical box saying 'vista ready!' only for someone to buy it, install it and find that it'll load, but won't save settings as I set the data dir to be a subdir of $ProgramFiles?

Granted, I'm stretching this.. but so many here seem to think that you can't get better than LFS for realism, but in truth, there's more realistic already out there and has been for quite some time (although some of the alternatives don't have such good tyre physics). I'm not saying that the more realistic doesn't also have some arcade features (I think most race games have a stupid HUD mode) but LFS really isn't the "cream of the crop" in regards to realism as so many here would love others to believe.

Most here seem to want more and more realism.. yet in the same breath, whinge and bitch about certain "convenient options" being removed (or set as forced server-side options). Amusing, no?



Regards,

Ian
Ian.H
S3 licensed
Quote from Nathan_French_14 :Well he is a demo racer. Im sure if he had S2, he would put it on a more suiting car (i.e FZR).

I doubt there's much that sounds like a carerra gt, except a carerra gt.


Quote :The reason the decals are £back to front" is because this save's the drifters money and time.

Now _that's_ got to be the most stupid reason I've ever heard. How come amateur racers running 1986 Mk2 Fiestas can manage to put sponsors logos / graphics the correct way on both sides of their cars?

It's a stupid trend, much like the pub benches "drifters" often stick on the rear hatch.. seriously, surely the idea of "drifting" is to get the rear wheels loose.. the idea of a rear spoiler is to increase downforce and thus traction... hmm, what was I saying about IQ levels....................



Regards,

Ian
FGED GREDG RDFGDR GSFDG