The online racing simulator
Searching in All forums
(975 results)
morpha
S3 licensed
It conflicts, also you cannot have LFS send OutGauge or OutSim information to multiple ports. I've written a [post=1331791]relay application[/post] for that purpose, see if that helps
morpha
S3 licensed
Quote from franky500 :i always thought you had to connect to the lfs master server to connect to any servers

Of course not, that would make the LAN option incredibly stupid. Even online hosts can legally be run without the master by use of /usemaster=no.
morpha
S3 licensed
Quote from Masterboy19660815 :no, its on the bottom of this page... if you can´t see it: http://forum.teamrockracing.com/viewtopic.php?f=11&t=89

bye

You used the [img] tag for the link in the first post, which obviously won't work
morpha
S3 licensed
Quote from Nadeo4441 :This could actually work for Touge courses. It would look rubbish though - this is not really for lfs...

Racing on tracks no-one has raced on before certainly will make it more interesting for "casual" racers who don't spend as much time practising on specific tracks. It's a nice idea, however, I agree that LFS is not the sim for this.
morpha
S3 licensed
Quote from logitekg25 :try ajusting the force stregnth in the profiler, or lfs...the motors might become less powerful as they get older

He is feeding them 19v to play with instead of the 24v they were designed for, how is that age related?
morpha
S3 licensed
It's really incredibly simple, go to Options > Controls, make sure wheel / joystick is selected at the top, then click Axes / FF (it's the rightmost button of the small ones in the middle of the screen).
Now you'll see all available axes on the right side of the screen. At the top of that view, make sure the axes are unlocked, i.e. the "unlock" button's text is white. If you turn the wheel or operate the pedals, the bars on the right side will move. You may have to turn the wheel from lock to lock and fully depress all pedals to calibrate them.

From there on, your wheel and pedals are calibrated, meaning their full range of motion is recognized by LFS (and the wheel driver, which by itself can only calibrate the wheel, that's why it rotates from side to side on startup).

To get everything working, you simply select a function on the left side (actually more like the centre, but it's left of the axes list) by clicking it, for example Steer, and then the axis you want to assign to it, again by clicking it. If you don't know which axis does what, simply rotate the wheel or depress the pedal you're looking for and the bar next to it will move.
morpha
S3 licensed
Quote from Dygear :Agreed, with the options given. Although I have no idea if HereDoc would be faster overall.

Here's a good read on the whole subject, including an objective opcode comparison rather than so-so microbenchmarks you usually see.

Quote from Dygear :Your really quite excited about PRISM aren't you?

I just want to see how far we can push PHP
morpha
S3 licensed
Quote from dawesdust_12 :Hm.. I'll keep that in mind the next time I write a large Project...

Well, to be frank, my big projects all use a template engine and end up having only a single echo echo'ing a large string anyway. It's a neat performance booster to keep in mind for CLI (PRISM :razz or smaller, inline-markup'd projects though.
morpha
S3 licensed
Quote from dawesdust_12 :Really? You can pass freaking echo muliple argumenets? That's such a oddity.

You can and you should (if you care about the few nanoseconds) whenever it's possible instead of concatenation, although opcode caches (accelerators / optimizers, whatever you want to call them) nullify the advantage.
echo, being the odd language construct it is, does things a bit differently from regular functions and even its fellow language constructs.
morpha
S3 licensed

<?php 
echo $ServerName' is <font color=\"green\">Online</font><br />';
?>

would be the most efficient solution, saves you the string concatenation.
morpha
S3 licensed
Quote from Klutch :Man i can barely order a pizza when stoned, let alone figure out how to work a clutch.

I'm going to make a non-judgemental assumption here and assume you consume more than a single spliff when your inability to order pizza sets in
morpha
S3 licensed
Quote from Dygear :I'm trying to promote a community that will share their code. Forcing sharing of code is the only way I can think of doing that. I don't mind people using this for profit, in so far as a server host putting it on their server for their clients to use because they are not paying for PRISM, they are paying for the server. No one should get charged to use PRISM, you should not be able to make money off it, and if you are you are then that should be against the license or the terms of use.

Just so we're clear on the terminology here; Core changes, modules/plugins/addons change the way PRISM operates, applications just use the features provided by PRISM (and possibly some modules/plugins/addons).
I agree that the former should be open-source enforced, because everyone involved in any way with PRISM, be it on the development side of things or the user side, will benefit from it.

On the application side, however, things look a bit different to me. While I have no problem with forcing local (single player) applications (of which I don't think there will be many using PRISM, to be honest) to be released, multiplayer InSim applications are what sets a server apart from the others. That's their de facto primary purpose when connected to a multiplayer host. InSim allows one to individualise the experience and create something unique. PRISM should extend on that and allow everyone (who's fluent in PHP) to express themselves. Improving the tool together is great and should be enforced, but taking away the individuality and/or uniqueness of an application by forcing the author to release his creation is not my desire.

Having run a reasonably successful server for the past 2 years, I dare say the InSim application running on a server makes between 50% and 90% of its popularity, depending on what type of server it is. If we permit use without the need to share the application, we may get some code back voluntarily, but if we force authors to release, they might choose not to use PRISM at all. I'm pretty sure I wouldn't release DriftWars's InSim and I don't think Krammeh would want to release LTC.
morpha
S3 licensed
I've also read the PHP licence and thought about the PHP in the name, I came to the same conclusion Dustin arrived at. You're not allowed to use PHP in your project name or use it to promote you project, but that is only of concern to projects using PHP's source, not projects using the PHP interpreter to parse PHP code.

Forcing the core and modules/plugins to remain open source, in the original project (PHPInSimMod / PRISM) and in derivative works, is a good idea, I'm for that. Application authors (= end users, from our point of view), however, should not be forced to release their code as that would scare a great portion of them away.
What about commercial use?
morpha
S3 licensed
morpha
S3 licensed
LFS will not download a skin if a file with that exact name already exists, that is, if the existing file is also newer than the one on LFSW. Always worked that way for me, with .jpg and .dds
morpha
S3 licensed
Just tried, both drive-through and stop-and-go are working as expected.
morpha
S3 licensed
Quote from rockclan :And about my analogy, you are right but still... Heck I can still drive a car from 1930 if I want and still refuel it.

As those ran on leaded petrol, you couldn't run it straight from the pump... Granted, adding the lead additive is generally a lot easier than writing a device driver, but it is possible.
morpha
S3 licensed
Quote from Dygear :!prism ban LFDclarky 0

fixed it for you :lovies:
morpha
S3 licensed
You know there are other options, PayPal, Moneybookers/NetPay, or a money order. superxp's tip will definitely pay off, regardless of which option you end up choosing:
Quote from superxp :Ask a bank

morpha
S3 licensed
It probably depends on a certain packet, not traffic in general. The server sends a ping and kicks the player if no pong arrives within a certain time, regardless of other packets that may have been exchanged in the meantime.
morpha
S3 licensed
phpDocumentor's documenting blocks are simpler than doxygen's, but I prefer the output of doxygen. It provides more information in a clear structure, the autolinking is way better and it even provides a search (client-side, javascript!). And of course, there are the nice diagrams... Tough call, but I find myself prefering doxygen overall (although it's HTML output is somewhat terrible, markup-wise).

Yep, I definitely vote doxygen!
Last edited by morpha, .
morpha
S3 licensed
Quote from brandons48 :Which patch are you using?

X? V? Y? Z? It would help, some patches have different texture layouts etc.

More to the point, .eng files are not backwards compatible
morpha
S3 licensed
Quote from Dygear :phpDocumentor, because it's used by Zend and it makes some fantastic documentation from a very small amount of information you put into it.

Looks like it's fairly similar to doxygen in how it's used, will check it out
The project on SF needs some cleaning up, but we should probably keep the PHPLFS remains for now.
morpha
S3 licensed
Quote from Dygear :Cool idea, but let's get the core nailed down first. You guys will have a lot of information to go over once I upload the first code base.

Well do it already
By the way, while we're kind of on the subject; will we be commenting for any particular documentation generator? I've somewhat adopted a doxygen compatible style, regardless of whether it's actually passed through doxygen or not.
morpha
S3 licensed
Quote from Dygear :I guess we get to the point where you have to say it ... That's what C++ is for. And like you said, there is pretty much nothing we can do about this, and I'm not willing to provide a safe alternative to every single php function and language construct out there. It's not my job, it's not your job and we can't be held liable for the bad programming of some one else. But I will do my best to make sure it does not take down the whole system, within reason. After all, if you build something to be idiot proof, someone will build a better idiot.

You're right, working around the issues is not the way to go. We've got some key points figured out, I might just take the time and report them as bugs over at php.net, because frankly, most of the fatals should be recoverable - in CLI at least.

I might code a validation tool anyway, not for JIT validation like isSafeToInclude(), but for module writers to check their modules for robustness (checking for cloneability prior to cloning, illegal use of reserved names, potential memory leaks and whatnot).
FGED GREDG RDFGDR GSFDG