NRatings v3.2.0 new features video

0

Hey all,

With this little video I wanted to point out the changes that have been made in NRatings v3.2.0.

These changes mainly focus on formula development, and they provide some helpful features for easier formula development.

Watch the video here:

 

NRatings v3.2.0 released

0

Hey guys,

I happily announce the release of NRatings v3.2.0, with following changes:

  • Integration of loopdata and pitstopdata provided by Racing-Reference.info
  • User Interface to show loopdata and pitstopdata
  • Creation of new formula variables using this data
  • User Interface to inspect the calculated driver stats (=variables to be used in the formulas), and preview the calculated ratings according to the chosen formula
  • Reworked variable attribution code
  • For formula developers: variables must now be tested for NULL instead of -1 to check if they are filled in
  • Adapted included formulas to the above rule
  • In agreement with Snyderart, I slightly optimized his formula (now only one formula for all series)

As mentioned above, formula developers, please take extra care ! If you have created formulas with tests like “if(@avgFinish == -1)” or something similar, you must now convert this to “if(@avgFinish == null)” !!!

Grab the new version from the downloads page.

Mathieu

Would you be interested in loopdata in NRatings ?

0

Hey NRatings users,

Racing-reference.info has been publishing loopdata for the NASCAR races since a few months, and I was wondering if this could be useful to integrate into NRatings ?

Take a look at this example from the last race at Kansas

These are all parameters that possibly could be added to the NRatings formula parameter list, so it’s usable in the formulas.

I think especially the last column, “Driver Ratings”, can come in very handy, as this is a rating that racing-reference has already precalculated for us.

In this particular case, Kurt Bush ranks first for this race. He didn’t win, but he ran strong and at the front all day and only lost it due to fuel-mileage. This performance is something that is not easy to reflect in the current version of NRatings, but if we could start using this loop-data and use it in the formulas, then this might considerably improve the quality of the driver ratings.

What do you guys think about it ?

I’ve opened a topic in the forum under “Formula Discussions”. Feel free to discuss this there.

Mathieu

NRatings support forum moved to SMF

0

Hey all,

just a small notice to tell you that I have switched over to SMF for the forum software of my website.

This because I had too much troubles with getting bbpress to work correctly with the mailing system of my webhost.

The small little inconvenience is that there was not really an easy way to port all the users and posts from bbpress to SMF (I tried, but it failed on several occasions), so I decided to start from a clean sheet.

All the posts were NRatings support posts anyway, and they were all solved.

The only hassle for you guys is that you will have to re-register again for an account (there’s no bridge between wordpress and the SMF accounts) should you want to post something.

The URL hasn’t changed: http://www.tjeuten.be/forum

Sorry for the inconvenience, and let’s hope I have less troubles with SMF :)

Regards,

Mathieu

Open SimRacing Results initiative launched

0

I’d like to present you OSRR, an open-source initiative I launched, with the aim to provide an open standard for simracing result files.

This is based on XML.

For more information, please visit the OSRR open-source project at http://osrr.codeplex.com.

Please do not hesitate to contact me if you think you could provide a meaningful contribution to this project.

NRatings v3.1.1 released

0

Hey all,

NRatings v3.1.1 has just been released, addressing a few issues that slipped into v3.1.0.

Note that some server-side updates have been made too, meaning that v3.1.0 cannot communicate with the server any longer.

Please grab the new version from the NRatings page.

Regards,

Mathieu

NRatings users please check this

6

Hey guys,

I’ve noticed a strange thing when using NRatings v3.1.0 on a 64-bit machine (my system is Windows 7 64-bit, but this problem may probably apply to Vista-64 as well).

If you are using a 64-bit system too, I’d like you to check it out and confirm this for me. But also users with 32-bit systems, please check this. I don’t think 32-bit systems are affected with this (as I tested it on my laptop which is Win 7 32), but I’d like confirmation.

The problem

If you go to the Tools – Options screen to bring up the user settings screen, the red “X” is not available to click, even if you’ve selected a line in the above list. Thus, meaning there’s no way to remove an instance configuration. Check the screenshot.

(click image to enlarge)

 

So, please reply here what operating system (Windows XP, Vista, 7, …)  and which architecture (32, 64-bit) you are using NRatings with, and if you have this problem mentioned above.

Thanks and sorry for this inconvenience.

Mathieu

NRatings v3.1.0 released

0

Hey simracers !

Happy to announce the release of NRatings v3.1.0. This is a mandatory update, as the server has been updated too, so v3.0 won’t work any longer.

Grab it from the NRatings page

Changelog:

  • The application now checks for NRatings related news on startup
  • The user can now manually map a “real driver” to a carfile by means of a drop-down menu
  • The user can now revert a car to its original values (right-click on a car)
  • The copy/paste ratings function has now been moved to the contextual menu (right-click on a car)
  • NRatings now detects your NR2003 installation path automatically (from the registry)
  • Some cosmetic improvements in displaying the data in the lists
  • Some minor bug-fixes

Mathieu

Functie ter controle van Belgisch Rijksregisternummer in C#

0

Onderstaande functie kan gebruikt worden om Belgische rijksregisternummers te valideren.

De samenstelling van een rijksregisternummer wordt op deze wiki-pagina uitgelegd: http://nl.wikipedia.org/wiki/Rijksregisternummer

De code geeft een string terug. Deze bevat “M” of “F” naargelang het om een geldig mannelijk of vrouwelijk rijksregisternummer gaat, of een omschrijving van gevonden fouten indien ongeldig.

De functie laat als input ook spaties, punten (.) en dashes (-) toe om een nummer met deze karakters ook te kunnen controleren.

De namespaces System.Text.RegularExpressions en System.Globalization dienen gerefenceerd te worden.


using System.Text.RegularExpressions;
using System.Globalization;

public string CheckRRNumberValidity(string input)
{
    if (input != null)
    {
        string message = "";

        Regex nonAllowedCharacters = new Regex(@"[^0-9. -]");
        Regex nonNumeric = new Regex(@"[^0-9]");

        string rrnumber = input;

        if (nonAllowedCharacters.IsMatch(rrnumber))
            return "Non allowed character";
        else
        {
            //STRIP THE NUMBER FROM ALL NON NUMERIC CHARS
            rrnumber = nonNumeric.Replace(rrnumber, "");

            //LENGTH MUST BE 11 DIGITS
            if (rrnumber.Length != 11)
                return "Length != 11";
            else
            {

                try
                {
                    bool birthDateOK = false;
                    bool counterOK = false;
                    bool controlOK = false;

                    bool born2kOrLater = false;

                    string gender = "(unknown)";

                    //FIRST 6 DIGITS ARE BIRTHDATE IN FORMAT YYMMDD
                    string birthDatePart = rrnumber.Substring(0, 6);

                    //NEXT 3 ARE COUNTER
                    string counterPart = rrnumber.Substring(6, 3);

                    //LAST 2 ARE CONTROLNUMBER
                    string controlPart = rrnumber.Substring(9, 2);

                    /* 1. CONTROL NUMBER CHECKING */
                    /******************************/

                    //CALCULATE CONTROLNUMER (= MOD 97 OF FIRST 9 DIGITS)
                    int calculatedControl = 97 - (int)(Int64.Parse(birthDatePart + counterPart) % 97);

                    if (calculatedControl != Int32.Parse(controlPart))
                    {
                        /* IF THE CALCULATED CONTROL PART IS DIFFERENT THAN THE ONE IN THE INPUTSTRING
                         * ADD A "2" IN FRONT OF THE BIRTHDATEPART AND RECALCULATE. THIS WAS INTRODUCED TO
                         * ALLOW BIRTHDATES OF YEAR 2000 AND LATER
                        */

                        calculatedControl = 97 - (int)(Int64.Parse("2" + birthDatePart + counterPart) % 97);

                        if (calculatedControl != Int32.Parse(controlPart))
                        {
                            /* THE CALCULATION STILL DOESN'T MATCH THE CONTROLNUMER, SO THIS IS AN INVALID
                             * REGISTRY NUMBER
                            */

                            controlOK = false;
                        }
                        else
                        {
                            born2kOrLater = true;
                            controlOK = true;
                        }
                    }
                    else
                        controlOK = true;

                    /* 2. BIRTHDATE CHECKING */
                    /*************************/

                    string d = birthDatePart;
                    //BUILD THE BIRTHDATE TO CHECK
                    if (born2kOrLater == true)
                        d = "20" + birthDatePart;
                    else
                        d = "19" + birthDatePart;
                    //END BUILD

                    string format = "yyyyMMdd";
                    DateTime birthDate;

                    birthDateOK = DateTime.TryParseExact(d, format, CultureInfo.CurrentCulture, DateTimeStyles.None, out birthDate);
                    Console.WriteLine(birthDate.ToString("dd/MM/yyyy"));

                    /* 3. COUNTER CHECKING */
                    /***********************/

                    /* COUNTERPART MUST BE BETWEEN 001 AND 997
                     * EVEN FOR FEMALE
                     * ODD FOR MALE
                    */
                    int counter = Int32.Parse(counterPart);

                    if (counter < 1 || counter > 997)
                        counterOK = false;
                    else if (counter % 2 == 0) //EVEN
                    {
                        counterOK = true;
                        gender = "F"; //FEMALE
                    }
                    else
                    {
                        counterOK = true;
                        gender = "M"; //MALE
                    }

                    /* 4. RETURN GENDER OR MESSAGE */
                    /*******************************/

                    if (!birthDateOK)
                        message += "Invalid birthdate;";
                    if (!counterOK)
                        message += "Invalid counter;";
                    if (!controlOK)
                        message += "Invalid control number;";

                    if (!message.Equals("")) //THERE ARE ERRORS
                    {
                        if (message.EndsWith(";"))
                            message = message.Substring(0, message.Length - 1);

                        return message;
                    }
                    else //IF GETTING HERE, NUMBER SHOULD BE CORRECT AND GENDER FILLED IN
                        return gender;
                }
                catch (Exception ex)
                {
                    return "Exception";
                }
            }
        }
    }
    else
    {
        return "isnull";
    }
}

All data available for NRatings

0

Hey,

just to inform you that the NRatings database now contains all (well, most of) the racing-reference data again, as it was before the release of v3.0.0 !

I’ve also added the NASCAR North Tour series results to the database.

And there’s more: I will be releasing a new client version in the next couple of days which brings some enhancements to the user interface.

Happy simracing !

Go to Top