The online racing simulator
Searching in All forums
(922 results)
Racon
S3 licensed
Racon
S3 licensed
Last edited by Racon, .
Racon
S3 licensed
Racon
S3 licensed
Last edited by Racon, .
Racon
S3 licensed
Racon
S3 licensed
Last edited by Racon, .
Racon
S3 licensed
That's not something PIE could do even if it wanted to! It uses PHP's built-in socket functions to communicate over the internet, but it doesn't have any more power than that over your connection.
What is DD? The Destruction Derby Doctrine
Racon
S3 licensed
What is DD? The Destruction Derby Doctrine:

DD racing is not no-rules racing, there are limits to
acceptable contact. You can rub, bump, barge, lean on, crash,
bash, spin, pit and poke, but only with people you are racing
directly (on the same lap).

You cannot fight or obstruct people who are lapping you, but
they may fight you. You cannot divebomb into T1. You cannot
drive the wrong way except where a track forces you too. If
the track has a two-way section, you may play chicken with
other drivers, but you may not try to hit them deliberately.

You cannot stop or loiter in an interfering position, you
cannot behave in an annoying or toxic manner.

You may fight, revenge attack, and may hold a grudge for as
long as you like, but keep it friendly and within these rules.

The rules are there to set a hard limit on what is acceptable,
but the etiquette (soft limit) is up to the drivers on track
to regulate through retaliation.

Being aggressive is not against the rules; Attacking without
provocation is not against the rules; Attacking repeatedly is
not against the rules; Attacking at full strength is not
against the rules; Charging blindly through a crowd is not
against the rules; Driving impatiently is not against the
rules.

These things are regulated by etiquette by the drivers, not
rules by the admins.

DD racing is not clean racing, but it can be. The overall
level of 'fightyness' waxes and wanes with the drivers
present: Sometimes it's close to the rules limit, sometimes
it's no different from a clean race, and usually it is both
of those things at once, depending on who you're driving
near to.

It's a driver's own responsibility to defend themselves from
attack, and it is a free choice to forgo defence in pursuit
of position.

It's common to start the fighting gently and escalate as
appropriate, but it isn't mandatory to do so. It would seem
obvious for new drivers to read rules and start gently, but
it is to be expected that they transgress and require
correction. It is a driver's free choice to forgo caution
when dealing with a new driver.

It is common for a driver to get more attacks back than they
give out. It is a driver's choice to accept this 'interest'
or to continue escalation.

It is common for a driver to receive attacks that are part of
a charge, or otherwise untargetted. It is a driver's choice
how much they are prepared to accept as collateral damage to
another driver's charge.

It's common to save the bigger and/or cheaper moves for
someone who's not getting the message from smaller ones, but
that's not mandatory.

There is no right of way on a crossover, it is a driver's
choice to wait or not. There is no right of way on a merge,
it is up to the driver to choose between speed and safety.

There is no right of way or mandatory side of the road in a
chicken-run section of track (two-way traffic), it is a
driver's choice to yield or not. Side-of-road is often chosen
to minimise crossings, but it is not mandatory to do so. It
is not mandatory to choose the same side as other drivers.

There is no requirement for drivers to avoid or wait for cars
recovering from fights or errors. It is the inconvenienced
driver's right to minimise their loss.

It is the nature of DD to not know what to expect from many
of your track neighbours, to have to balance safety against
speed or position, to have to take risks, to be caught up in
other people's fights, and for it to be possible to end at
any moment through no fault of your own.

You can be safer by following and enforcing etiquette, but
you can never be safe. It is always the driver's choice to be
trusting of another driver. It is always the driver's choice
to forgo safety in pursuit of speed or position.
Racon
S3 licensed
Thanks for the testing Thumbs up

You can't adjust the button transparency in InSim I'm afraid, but maybe the lighter colour would be better. (Replace ISB_DARK with ISB_LIGHT)

Note to me: Adam suggested in discord the option for adding usernames above the dots.
Racon
S3 licensed
Racon
S3 licensed
Last edited by Racon, .
Racon
S3 licensed
Quote from RealistAdam :Actually, I wanted to say this. I have lapper on my server. How can I make this work with Lapper?

PIE and Lapper are different things, they're not compatible.

This script is only for the local user, not a server. (It could be modified to connect to a server and draw this for everyone connected, but that's not what this one does)
Racon
S3 licensed
Quote from kristofferandersen :I wasn't able to get this script to work.

Error message


Translated to "An established connection was terminated by the software on the host machine."
I don't know about the possibilities with PHP, but perhaps the error message should be displayed in english?

Another thought is the PHP version, i believe it said in the PIE post that it was for PHP7 - but my computer had 8.2.0 installed.

Thanks for helping explain things above.

If it doesn't connect at all, it might be that you have a password set for local InSim, you can check in the 'start host' section.

Your PHP installation isn't used for running PIE, so it's not a version thing. And I get my error messages in english, so my compiler is full of surprises Big grin

There is an update coming for PIE soon that can catch a disconnection more cleanly, and I'm still looking at a better way to detect when it's safe to start spamming buttons... but currently I'm receiving the packets that have to be drawn, I think, before it's safe to start. It's not every server, just when you have a lot of new mods to download in one place.

Definitely a WIP script, this one Wink
Racon
S3 licensed
Yep.

Quick recap for anyone who needs it: drop this script into a folder containing pie.exe, then from the commandline (or a batch file) run it with:
pie radar.php

Default port is 29999, more detailed instructions in the main PIE post Thumbs up
Racon
S3 licensed
Quote from macafmac :edit: is this a server side script?

No, it's a local one - just for the person running it like LFSLazy or AONIO, rather than like JAR's server-side radar.
Racon
S3 licensed
I'm slowly working my way through making various LFSLazy features in PIE, and I'm finally at the nearly-ready stage with the one I'm most interested in - the radar.

It's more like AONIO's than Lazy's and it's not quite right yet, but I know some people are crying out for one and I have got to the "more useful than annoying" stage Wink

https://www.lfs.net/forum/thread/106830-Radar-%28WIP%21%29

Radar (WIP!)
Racon
S3 licensed
Radar:

This one is a Work In Progress! There are some issues still to be sorted,
the code and functionality is a little messy for this reason. It's still
enough to be useful though, if you can live with a couple of annoyances.

The radar panel can be moved and scaled freely, and shows cars around you
in two ranges: Short range is drawn across the panel, long range is drawn
around the edge of a circle inside the panel. Different colours are used
to show:
  • you (green)
  • long/short range (cyan/white)
  • cars a lap up/down from you (blue/red)
  • cars causing yellow flag (yellow)
  • lagging (magenta)
  • cars in contact with others (black)


Issues:

Other programmers out there with any ideas don't need to be shy pointing out
anything daft I've done, I'm not proud Wink

InSim buffer overflow:
When joining a server with the radar running, there is a period where we
are receiving MCI (position) packets and sending buttons, but LFS is still
loading mods before processing InSim packets. If the server is busy with
mods that you haven't already downloaded, this wait will easily fill the
insim buffer and LFS will close the connection. Joining 'Just A Ride' server
will kill the radar 9 times out of 10, for instance.

Also, time-skipping in replays will do the same thing.

Car markers persisting/'getting stuck':
Sometimes a marker will persist on the radar screen when it shouldn't. I am
working on this! The code seems to be fool-proof in clearing all the old
markers before drawing the new ones, but alas. More testing is required to
know if this bug is in my radar logic, my PIE logic, or LFS button clearing.

Currently handled by doing a full clear of all buttons every X seconds to
catch the stragglers - usable but imperfect.
Racon
S3 licensed
LFSW name: racon
In-game name: [PM] Jam 616
Full team name: PiranMOTO
Nation: United Kingdom
Racon
S3 licensed
The finalised schedule is here!



Please note there are new vehicles and new restrictions to old vehicles throughout. Full class info is attached to the main thread above.
Racon
S3 licensed
Quote from Aleksandr_124rus :yes, but I mean that you could choose on what it distance you can see lod2.

I think that distance is what you're changing with the setting: Graphics > User LOD
Racon
S3 licensed
Racon
S3 licensed
Last edited by Racon, .
Racon
S3 licensed
One of my tutorial scripts for PIE is a basic heads-up speed display from OutGauge data, you could tweak it very easily to display gears if you're happy coding in PHP.
Racon
S3 licensed
Nice one Rony, that's it... I was looking in the skins section Face -> palm

Quote from KingOfIce :I can't remember where I got the viewer.exe.
You're right about the online mode, it can be pretty cool too (although if I had to do it live in my tool without even having to prepare the images first, I'd prefer it not to be online). But I don't know how much server-side computing/generation "power" that would require (and would then probably be a paid option).

Having looked again, it's canvas and only for cars (maybe there is some preparation to be done before it is usable, who knows how much work that would be). Still, it might be possible to hook it up, and if it were a paid API thing as you suggest it could be pretty useful without being a strain.
Last edited by Racon, .
Racon
S3 licensed
There was an 3D skin-viewer on the website at one point (can't find it now, I guess it's removed?). It only allowed you to view your own skins, but maybe that could be re-purposed to create these images for any skin.

If this function was on the LFS website instead of commandline it would be more accessible, it could in theory be used to automatically generate an illustrated live list of people on a server as they come and go.
FGED GREDG RDFGDR GSFDG