The online racing simulator
Searching in All forums
(82 results)
xspeedasx
S3 licensed
Quote from TechEdison :What happened to R10?

We don't talk about R10
xspeedasx
S3 licensed
How about making it open source? Na-na
Last edited by kristofferandersen, .
xspeedasx
S3 licensed
Found a bug - when changing texture and/or skin resolution - my license plate gets overwritten from another player (Mrs.Sushi in video). Only resets when i manually change it.

See attached video (when its done processing in youtube)

xspeedasx
S3 licensed
I had an idea. Any thoughts?
xspeedasx
S3 licensed
Quote from DANIEL-CRO :
There are some things that are read from LFS's memory, so with each version that values change. Even though I have search automated, there is certain procedure to get right results.

Hello, could you explain a bit more about this 'procedure' ?
I've been trying to catch the current car memory area by car's name, license plate string, matching with PLID value, but with no result.. What could possibly be the hook to always accurately find car's data?
xspeedasx
S3 licensed
Quote from PoVo :Nice. Would there be any real good advantages to switch from actions to event handlers?

I believe, that you will find your answer here:
http://stackoverflow.com/quest ... ion-vs-event-eventhandler
xspeedasx
S3 licensed
C# is based on events, so, basically using events is the fastest way of passing objects between classes and methods.

By saying "callbacks" i suppose you had "events" in mind tho. Easy to mix them up, if you had experience in programming on C (or derivatives of C, like PAWN).

So, for example your button class should have something like:

class SomeClass
{
public event EventHandler clicked;
...
if(Conditions_for_callback_are_met)
{
clicked(this, EventArgs.Empty);
}
...
}

then on some other class where you're creating the object, you can simply:
SomeClass someObject = new SomeClass();
someObject.clicked += new EventHandler(someEvent_Fired);

followed by:
private void someEvent_Fired(object sender, EventArgs e)
{
// add type cast to get the object, that fired the event;
SomeClass objectPassed = (SomeClass)sender;
...
}

and handle the event.

Hope that helped.

Disclaimer:
I learned this programming C# (not InSim related, since im demo user).
FGED GREDG RDFGDR GSFDG