The online racing simulator
Searching in All forums
(669 results)
GeForz
S3 licensed
I just invented a new engine by spawning poles at the car's position and let the collision system propulse the car to up to 47kph!

GeForz
S3 licensed
The answer is to use /axsave and parse the layout.
Or have your insim connected before the track loads.

(See thread in programming section)
GeForz
S3 licensed
https://github.com/Dygear/PRIS ... s/prism_packets.php#L2012

Shouldn't that substring be 8,8 as in offset,length?
Or perhaps even better "$this->C = new CarContOBJ($this->C);" as C was assigned in the original unpack with the corresponding bytes
GeForz
S3 licensed
For host.ini settings see this post by Dygear
http://www.lfsforum.net/showthread.php?p=1603089#post1603089
GeForz
S3 licensed
Quote from Dygear :Cool idea for the registerOnClick function. If you're willing to work on this, I'm willing to merge it into the main branch. Although you might want to have a look at my current as it has some updated values for the Powered By Button.

Jeah I'll try to improve it, but I'll make a new thread in a few days to discuss it and my brain-locks
GeForz
S3 licensed
Jeah just disable the cruise filter *troll*
GeForz
S3 licensed
Did anyone already said, that "Click on a car to follow it / look away to stop following" in edit mode is also very annoying?

And "look away" doesn't work pretty good... sometimes when looking into thy sky but e.g. not when looking at the horizon outside the track.
GeForz
S3 licensed
I've updated the layout object to include the "unified" indexes for z35.
GeForz
S3 licensed
Okay you are right!

I tried to put something together but the button concepts are killing me.
Stuff like adding a button for all connections and removing it for a single one... Oo

https://github.com/GeForz/PRIS ... gins/ButtonController.php
https://github.com/GeForz/PRIS ... rrent/plugins/welcome.php
GeForz
S3 licensed
Okay that should work, too.

BTW: is it really possible to have 2 objects at the same x,y coordinates?
i.e. Do we really need to use x, y AND index to compare or is x and y enough?
GeForz
S3 licensed
Scawen did you read my initial response about the PMO_LOADING_FILE?
GeForz
S3 licensed
I assume:
Multiple objects will just be reported as seperate objects in the packet, each with own x,y coordinates.

And for the control object: The insim app could also remove the "control object", i.e. you configure the insim app like "!build garage" and then add a predefined object like a cone. The insim app then removes the cone and builds a garage relative to the coords of the cone.
GeForz
S3 licensed
"Colour - only used for chalk (0-3) and tyres (0-5)"
Can you add which number is which color so we don't have to try it out. (assuming you have the list ready to c&p )
GeForz
S3 licensed
New layout format looks good (Was already wondering why the spare byte was not 0 in z34 )

At which point will the PMO_LOADING_FILE be sent? Maybe there is need for an "send objects"-tiny-request i.e. when the insim tool connects to a already running server?
GeForz
S3 licensed
IMO BFN_CLEAR should never be used as it clears buttons of other plugins, too...
There should be an prism button wrapper which takes care of assigning ids etc. Also addons should be able to reserve space on the screen and the wrapper would print a warning if multiple as sons require the same space...


The fix for this plugin would be to set the clickids of the delete button packet
GeForz
S3 licensed
Quote from denis-takumi :HyperText Markup Language != Programming Language its Markup Language
JavaScript ! = Programming Language its Script
dotNet != Programming Language! its Framework

C++ and Assembler over 20 projects

use Code::Blocks

If you troll, at least do it right ...

"PHP is an HTML-embedded scripting language"
Parsing and writing layouts in php
GeForz
S3 licensed
Hi,

Two years ago I wrote some java code to read and write layouts for some experimental lfs marshalling, but it turned out to be pretty bad because you would need to reload the layout once the marshall moved

Well that was the result: http://youtu.be/9SNZe6_RjHw?t=10s

Now, as Scawen is going to bring the layout-manipulation-packets to insim I thought it would be a good idea to port this to a prism plugin, so I ported the basic java classes to php and I thought I share them with you so they can potentially be reused in prism. (Assuming that the packets use the same 8 byte structure.)

Sources:
https://github.com/GeForz/PRIS ... plugins/layout/Layout.php
https://github.com/GeForz/PRIS ... s/layout/LayoutObject.php


Usage:

<?php 
// init
$layout = new Layout("S:/Live for Speed/data/layout");
// parse a layout
$layout->parseLayout("AU1""XXXX");
// manipulation... 
// NYI ;)
// write the layout
$layout->writeLayout("AU1""YYYY");
?>

Last edited by GeForz, .
GeForz
S3 licensed
Quote from dawesdust_12 :I am expert insim programmer. I have programmed insim for 10 years. i have degree from university of north georgia in insim and insim++. i have expert insim knowledge and can consult expertly about insim and insim++. i also have a minor interest in outsim and also have expert knowledge about knowledge about the outgauge and the insim and the minor interest in the outsim with the insim and the outsim insim outsim gaugeinsim.

What, you don't even know insim.NET? Are you stuck in y2k? ...
GeForz
S3 licensed
Uhm okay, maybe it was more than 2 month ago when i was so confused with safety ratings etc.
But the statement still holds. If i can select a car I should be able to drive it and not be specced after join which is the current limitation by insim systems to enforce car usage.
GeForz
S3 licensed
Quote from Scawen :Yes, that's right. It affects the car selection screen, the /car command and the check when you try to join a race.

I've seen racing hosts with a progression system and cruise servers where the host does know what you are allowed to drive (a subset of the actual cars that are allowed on the host). But the way it has always been enforced is by spectating you immediately after you join with a car you are not allowed. Now with this new InSim command it can work cleanly, appearing just like the "real" allowed cars system.

Jeah thats really annoying in cargame.nl Server when you have no clue which car to drive and get specced always. Very nice addition although i don't see the reason why aa league which is organized enough to have a safety car would need to restrict the cars
GeForz
S3 licensed
Sure, justfollow the instructions before installing the testpatch.-
If you didn't you can just redownload the game from the lfs page and overwrite the lfs.exe
GeForz
S3 licensed
I hacked something together...
http://kamelstall.de/lfs.php

Can you provide any multibyte examples and more testcases?
GeForz
S3 licensed
Quote from Scawen :Does anyone begin to realise the problem with me giving progress reports?...

Yes, but thanks anyways! And I don't have any questions
GeForz
S3 licensed
I noticed that even if you are in neutral and apply the parking brake the values in the ComCar (MCI) still oscillate (AngVel in particular).

But once you shut off the engine this oscilation disappears and the AngVel becomes static, too... (unless you steer )
GeForz
S3 licensed
You did set the "Text" variable, didn't you?

If you forget to set the Text, then the error appears.
FGED GREDG RDFGDR GSFDG