The online racing simulator
Searching in All forums
(981 results)
Dygear
S3 licensed
Quote from DANIEL-CRO : char PName[24]; // nickname

Oh yeah, you nailed that part tho.
Dygear
S3 licensed
Quote from DANIEL-CRO :There wont be any insim changes in 0.6F.

1. You probably mean renaming by UCID, and playername is [24]. Would be nice in leagues and such, but thing that admins can rename players could often be abused.

2. +1

No, by PLID. You can't rename a client because their UName is set by their LFSW profile. But you can rename a Player that's spawed from a client.

Quote from cargame.nl :And why? I think thats a bad idea. Controlling somebody else's name is not nice.

Tag protection, instead of kicking the client, you could rename them. If they have an offensive name, you can rename them. Bring everyone in line to a common format according to league rules.

Quote from DarkKostas :What i'd like to see is a

struct IS_STC { //SeTCoordinates

That would be AWESOME!
Last edited by Dygear, .
Proposed InSim Updates For 0.6F
Dygear
S3 licensed
Before Scawen finishes up the E patch levels, does anyone want any changes to the InSim interface?

Being able to change the client's PName would be nice.

struct IS_RNP {
byte Type; // Value TBA
byte Size; // 20
byte SubT; //
byte PLID; // PlayerID to Rename

char[16] PName; // PName to set for this player.
}

As would forcing a control scheme onto a client.
// Force Control Scheme
struct IS_FCS {
byte Type; // Value TBA
byte Size; // 4
byte Flag; // Following Bools are in a single Byte here; 1 = Allow, 0 = Disallow
bool Automatic = 1;
bool BlipShiftDown = 1;
bool BlipShiftUp = 1;
bool Keyboard = 1;
bool Mouse = 1;
bool Wheel = 1;
bool Sp0 = 0;
bool Sp1 = 0;
byte UCID; // ClientID to Force Control Scheme Onto.
}

Last edited by Dygear, .
Dygear
S3 licensed
T3, do you wanna hotfix this as .3?
Dygear
S3 licensed
No one is interested in this, huh? Oh well.
SWIFT RCON (A Swift Implementation of the InSim Protocol)
Dygear
S3 licensed
So, I've decided to learn how to program in SWIFT, Apple's new programming language. I think that the best way to learn about this new language and all of it's features is to program an InSim Application that will allow me to remotely administer LFS servers with a Remote Console. Effectively, it would give you the same view of the server that LFS' Dedicated Server window would give you. It would parse color codes, and correctly display them to the terminal and everything else that you would expect. I think that it should support connections through the LFS relay as well. Just wondering if anyone would want to learn SWIFT along with me. I'm going to setup a GitHub repo soon and start hacking away.

Pre-Recs:
  • Must have an Mac OSX Developer Account
    • Must have access to Yosemite on your Mac.
    • Must Install XCode6
  • Must have a GitHub Account
Last edited by Dygear, .
Dygear
S3 licensed
The physics loop, if I remember correctly, runs at 2000 Hz.

[EDIT]

Quick search of the forums, says my memory is correct.

Quote from Scawen :One example in LFS is the spring above the wheel which is supported by a tyre below. The wheel is light compared with those two large spring effects and can easily cause instability. That is the reason for LFS's high update rate of 2000 Hz in the sub-updates, which avoids the cars jumping up and down all on their own due to jumping wheels! You saw in the google video, at one point, in a crash when some vertices went a bit wrong.

What happens is you have some very stiff springs for the chassis members, supporting a node which let's say is 10 kg. The physics engine finds out in one update that the springs are stretched by 5 cm. Now the super string spring applies a force of [A LOT] to that 10 kg mass. So in the next update you find that 10 kg mass has gone maybe 10 metres away or whatever, when really it should only have moved a mm or so.

The update time steps must be small enough so that large force acting on the small mass at the node, doesn't push the node too far away.

Last edited by Dygear, .
Dygear
S3 licensed
This whole thing is a terrible idea. You already have a user name, and you should never send passwords in clear text. You're going too have to do that because there is no way to obfuscate a password in the InSim protocol, outside of gaming through a VPN connection to your server and having all of your other clients as well.

Basically, this is only useful in one situation. When you have clients that are account hoping because they are getting banned for hacking / on cracked server and need a fresh account to get into the game.
Dygear
S3 licensed
That's kinda cool, keep it, even if it's a bug.
Dygear
S3 licensed
Quote from blackbird04217 :Dygear; The files are far from complete, however, here I will share them in their current state. I added a little documentation where things were not yet implemented, but it should be enough to get you started.

Nice! Thank you, when I get some time in the next few years I'll translate that into PHP.
Dygear
S3 licensed
Quote from blackbird04217 :Dygear - Not sure if you are familiar with C++ much or not, but once I finish my basic "Curve" object I will upload the class header and source and from there you, and others, can use it how they wish.

The class currently:

Makes a curve from a set of points along the curve.
Allows you to make a container of points from the given curve.
Estimates the total distance. (Estimation only because it is a curve and the more steps the more accurate the estimate but it will never be exact).

If you give me the source code, I'm sure I can translate it to PHP. Thank you for the assistance.
Dygear
S3 licensed
I want all of that! I've always hated the blocky nature of the PTH files and the CMX files. It would be nice to apply this to the pth parser, so that I can generate some higher quality images.
Dygear
S3 licensed
Since we have a little wait until the next patch should be ready, can we get a frame time tool built into LFS? "/fps 1" - Show's FPS, and "/fps_graph 1" shows a frame graph for when the rendered is presenting to the frame buffer. "/fps_save <filename>" allows you to store the time in milliseconds each frame takes to render.

I'd like to be able to do some benchmarks, like "Inside the Second".
Dygear
S3 licensed
Quote from Flame CZE :It seems to throw some errors when I try to use it. But as I said, maybe it's just me.

Thread hi-jack, what's the errors you are getting, what version of PHP are you running, and what version of PRISM are you running?
Dygear
S3 licensed
Quote from the_angry_angel :I'd like to say I'll be getting back into LFS soon but honestly I don't know if I will.

Story of my life. Barring a major patch, I don't see it happening any time soon.
Dygear
S3 licensed
As Coding Horror has moved over to Ghost as it's blogging platform, and Ghost uses NodeJS for it's interpreter I've looked more into NodeJS. I like the API, and I like that you can handle multiple connections at once because if you ever get into a blocking state with one query, you put it on the back burner and and handle another request while you wait.

As whole websites are being built on top of NodeJS, and with XI4N being available. You could have one instance of NodeJS that works as both an InSim Client, and WebServer. Making for communication between your website and your game servers VERY efficient. With being able to replace most of your stack with NodeJS I think everyone would be CRAZY not to look into it. (Yes, I'm a late bloomer) With NodeJS being able to act as a HTTP server, and also the code parser / interpreter, you shorten your LAMP [Linux Apache MySQL PHP] into LNS [Linux NodeJS SQL (MongoDB / SQLite / MySQL)].
Dygear
S3 licensed
No, it's Eric, and considering that he did this job many, many years ago now, I think they have done a pretty good job standing up to the test of time.
Dygear
S3 licensed
Quote from Scawen :Thanks for the detailed debug info about that crash. I guess with that I should be able to sort it out. If needed, I'll come back to ask for more info. I wonder if anyone can enable DX9 debugging and get an error log with the Fraps crash?

What do we need to do in order to enable DX9 debugging? Aka, where do we download the debug version of DX9?

I found some instructions here ... Using Debug Version of DirectX 9
Dygear
S3 licensed
AMD supports potential DirectX ... ne Mantle's future at GDC

So AMD sees the movement in the industry around graphics APIs as validation of its own approach with Mantle. I'd say that's warranted.
Dygear
S3 licensed
Mantle no more? GDC sessions point to the next DirectX. Well, take a look at that.

OpenGL and DirectX to setup to Mantle's performance. Pretty sure you might as well just move to OpenGL now. They are not going anywhere.
Dygear
S3 licensed
I remember the opening sequence of top gear back in 2002, with Jeremy Clarkson saying, "This is a car show", and it had a used car price segment with a presenter before James May that no one knows about. I think it changed around the time James was bought on for the second season, and then it changed again when they had their first challenge and it was received so well. Can you blame them for giving the audience what they want?
Dygear
S3 licensed
I'm pretty sure that the hosts command will give you all clients connected to all servers (that are not hidden servers).
Dygear
S3 licensed
Its the Star Trek Odd / Even rule applied to Windows Releases.
FGED GREDG RDFGDR GSFDG