The online racing simulator
Searching in All forums
(983 results)
Dygear
S3 licensed
I'd love to split this topic now. As we are talking about two different things and should be two separate RFCs.
Dygear
S3 licensed
Quote from Scawen :IP address wouldn't be in the NCN packet as all guests output that packet to their local InSim connection and they don't know the new guest's IP address. Obviously I will not transmit the IP of guests to other guests. When a guest joins a host, if they know anything about the internet, they know they are revealing their IP (just as when they visit any internet site) so that is a different matter.

But I suppose the new guest's IP address could be shown on the host's InSim connection, in a new dedicated packet that follows the NCN. Is there any security risk with this? Maybe only show it if there is an admin password, so it isn't shown on fully open InSim connections?

That would be an improvement over the current system for sure.

Quote from Scawen :About language, would anyone not want their language revealed or can we just forget about that? I guess if they don't want to reveal their language, they'd better select English before joining a host.

Host doesn't know guest's language in any way at the moment so it's not just as simple as adding a byte, Guests will need to transmit this info to host on connection. Not hard but just saying, it's not a 1 minute job.

That's what I wanted to discuss with you about. How is it defined in the engine what language a user selects? Can we take the information directly and just port it into a InSim Packet? Without knowing a lot about how the internal parts of the engine stores this information, we can only speculate as to the correct implementation.
Dygear
S3 licensed
Scawen, I can't PM you so forgive the off topic introjection, but do you check the programmer forum anymore? Could you direct your attention too [RFC] InSim Language Information
Dygear
S3 licensed
He's said it before.
Dygear
S3 licensed
I think Scawen would say that this is one and the same, but if they are being exposed via the log, then really there is no good reason to keep them away from the InSim application, as this information is already available programmatically albit in a roundabout way.
Dygear
S3 licensed
Victor, can you please fix tabs being stripped out within the [code] tags. It's making quite a bit of my code look ugly. (Besides the code it's self looking ugly, ergo it needs all the help it can get.)
Dygear
S3 licensed
Quote from cargame.nl :You are too quick

Lol, I try.
Dygear
S3 licensed
Sp3 doesn't do anything, it's defined as a spare byte that was never used. It was originally there to pad the length of the NCN packet so that it would be divisible by 4 bytes (32 bits).
[RFC] InSim Language Information [implemented]
Dygear
S3 licensed
By replacing Sp3 in IS_NCN (NewCoNnection) with a byte called Lang to point to an enumeration of languages supported by LFS we can find out right away what language that client prefers.

// Language Enumerations (for NCN's Lang byte)
enum
{
LANG_ENGLISH,
LANG_FRENCH,
// ...
LANG_NUM
};

struct IS_NCN // New ConN
{
byte Size; // 56
byte Type; // ISP_NCN
byte ReqI; // 0 unless this is a reply to a TINY_NCN request
byte UCID; // new connection's unique id (0 = host)

char UName[24]; // username
char PName[24]; // nickname

byte Admin; // 1 if admin
byte Total; // number of connections including host
byte Flags; // bit 2 : remote
byte Lang; // See Language Enumerations.
};

What do you all think?
Dygear
S3 licensed
So how about this, in the Programmer's Forum, we make a thread for each feature we want as a poll. Should it make 50% of the vote in favor would you then consider it? There are a bunch of features that I think would make a great addition too InSim if we can get them onto the system. But we need you to be apart of that conversation.
Dygear
S3 licensed
Might of been better off using LFSWorldSDK for the basis of your program. Although, I admit that I might be bias.

You should also never use error suppression operator (@) as it's very slow and setting error reporting at run time should also be avoided if you're expecting your code to be included in other programs.
Dygear
S3 licensed
Quote from Scawen :Correct, this was possible to implement in a compatible way, because it uses an old system, in which the master server can provide handicaps for class balancing.

Only in this case, the host provides the handicaps and then would ignore master handicaps.

At what point can we start discussing new packets and features for InSim?
Dygear
S3 licensed
Guys. This is not the place for a witch hunt. He found a bug in PRISM that I've now fixed. Shows over.
Dygear
S3 licensed
Quote from vanopaniashvili :Developers You Should Fix This Corner
http://postimg.org/image/ifbo2gqu9/

That would make for a pretty epic flowing section if they were connected with the same radius as shown.
Dygear
S3 licensed
Quote from cargame.nl :and its 56, not 66.

Haha, copied Scawen's Mistake.

And I've fixed it on GitHub, thank you.
Dygear
S3 licensed
Could we get an InSim Language Packet, or make it a part of the IS_NCN packet, like Use Sp3 for a Lang define. How many languages does LFS support, can it express that information in a byte (0 - 255)? This above all else would be a massive help to InSim applications.
Dygear
S3 licensed
Quote from Audi A3 :Don't help for him, he is another Lithuania cracker which is creating LFS cruise server in crack! ! !

He found a legitimate bug in my program, it would be stupid not to fix it.
Dygear
S3 licensed
Quote from cargame.nl :I have no time today to test it myself but hopefully Airio crashes with this unknown packet.

Because all custom car class timings are otherwise rendered useless if somebody can change handicaps during a hotlap.

THAT SUCKS! I've the packet to PRISM, so hopefully that will help you somewhat.
Dygear
S3 licensed
I've added the ISP_HCP packet into the master branch on Github and is ready for testing.
Dygear
S3 licensed
/modules/prism_plugins.php (Lines 436 - 444)

<?php 
protected function &getClientByUCID(&$UCID$hostID null)
{
    if ((
$clients =& $this->getHostState($hostID)->clients) && $clients !== null && isset($clients[$UCID])) {
        return 
$clients[$UCID];
    }

    
$return null;
    return 
$return;
}
?>

That should fix it. Please test.
Dygear
S3 licensed
What version of php are you running?

php -v

Dygear
S3 licensed
Are you both using the latest version of PRISM?
Dygear
S3 licensed
You don't have MySQL's PDO driver in your PHP install. You might just need to add php_pdo_mysql.dll into your php.ini file.

Find your php.ini file and then remove the semicolons from the front of the lines of the extensions you want to install extension=php_pdo_mysql.dll should do the trick.
Dygear
S3 licensed
Quote from Becky Rose :I use Font Squirrel's Webfont Generator to convert my fonts in to all the different formats needed. It should work with everything post WAP :P.

Dear GOD, WAP! That's a part of history I'd rather forget.

Quote from Becky Rose :I have not tried FontAwesome, but I would be surprised if it cannot handle the job

It's pretty great. I use it on WLVAC.net for the menu icons.
Dygear
S3 licensed
Just a crazy idea. Why not use Font-Awesome for the icons? It should in theory cover most forum icons already?
FGED GREDG RDFGDR GSFDG