[Release] Mario Kart 7 Online NTR Plugin

Discussion in '3DS - ROM Hacking, Translations and Utilities' started by DarkFlare69, Feb 11, 2017.

  1. BVNG3RZ0KU

    BVNG3RZ0KU Newbie

    Newcomer
    6
    0
    Sep 14, 2017
    France
    Region (USA/EUR/JPN): EUR
    Game version (Rev0/Rev0 1.1/Rev1): Rev0
    NTR Version (3.2/3.3/3.4): 3.6
    Plugin last updated (date): The latest from yesterday
    Codes not working: VR Randomizer , and No disconnect (data abort/fatal crash when launching a race after 3 , 2 , 1)
     
  2. DarkFlare69
    OP

    DarkFlare69 GBAtemp Psycho!

    Member
    4,765
    2,619
    Dec 8, 2014
    United States
    Ohio
    No disconnect should be fixed. I improved the check on it, so it will return as 0 if it's invalid.
     
  3. DarkFlare69
    OP

    DarkFlare69 GBAtemp Psycho!

    Member
    4,765
    2,619
    Dec 8, 2014
    United States
    Ohio
    Just fixed VR extender, along with no dc (as stated above) and everything else should be much more stable.
     
  4. DarkFlare69
    OP

    DarkFlare69 GBAtemp Psycho!

    Member
    4,765
    2,619
    Dec 8, 2014
    United States
    Ohio
    Added a new stalking code:

    Code:
    void    stalking(void) // could optimize a little more
    {
        unsigned int g_raceCondition = GetRaceCondition(), g_racePointer = GetRacePointer(), tempActive = 0;
        static unsigned int pointer = 0, active = 0, player = 1;
        float dataY = 0, dataZ = 0;
        static bool held = false;
        if (g_raceCondition != 1)
        {
            player = 1;
            active = 0;
            pointer = 0;
            return;
        }
        if (g_raceCondition == 1)
        {
            if (!is_pressed(Y))
            {
                held = false;
            }
            if (is_pressed(Y))
            {
                tempActive = 1;
                if (is_pressed(DU))
                {
                    active = 1;
                }   
                if (is_pressed(DD))
                {
                    active = 0;
                    player = 1;
                }
                if (!held)
                {
                    if (is_pressed(DR))
                    {
                        held = true;
                        player++;
                    }
                    if (is_pressed(DL))
                    {
                        held = true;
                        player--;
                    }
                }
            }
            if (active == 1 || tempActive == 1)
            {
                if (player > 8 || player < 1)
                {
                    player = 1;
                    return;
                }
                pointer = 0x209C + READU32(0x65DA44) + (player * 0x44);
                if (READU32(pointer) < 0x14000000 || READU32(pointer) > 0x18000000 || READU32(pointer) == g_racePointer || READU32(READU32(pointer) + 0x24) < 0x30000000 || READU32(READU32(pointer) + 0x24) > 0xD0000000 || READU32(READU32(pointer) + 0x2C) < 0x30000000 || READU32(READU32(pointer) + 0x2C) > 0xD0000000)
                {
                    player++;
                    return;
                }
                if (player > 0 && player < 9 && READU32(pointer) > 0x14000000 && READU32(pointer) < 0x18000000 && g_racePointer > 0x14000000 && g_racePointer < 0x18000000)
                {
                    dataY = READFLOAT(READU32(pointer) + 0x28);
                    dataY += 38;
                    dataZ = READFLOAT(READU32(pointer) + 0x2C);
                    if (dataY != 0 && dataY != 38 && dataZ != 0)
                    {
                        memcpy((void *)(g_racePointer), (void*)(READU32(pointer)), 0x28);
                        WRITEFLOAT(g_racePointer + 0x28, dataY);
                        WRITEFLOAT(g_racePointer + 0x2C, dataZ);
                    }
                    else
                    {
                        player++;
                    }
                }
            }
        }
    }
     
  5. DarkFlare69
    OP

    DarkFlare69 GBAtemp Psycho!

    Member
    4,765
    2,619
    Dec 8, 2014
    United States
    Ohio
    Didn't want to make another thread for this, so I'll add it here since it's compatible with my plugin.

    This is a program I made that allows you to create your own item hacks.

     
    lonewolf08 likes this.
  6. Donald4444

    Donald4444 Newbie

    Newcomer
    2
    0
    Oct 30, 2017
    Germany
    Code not Working:

    Region (EUR):
    Game version (Rev1):
    NTR Version (3.6):
    Plugin last updated (14. November 2017):
    Codes not working:No Disconnect

    When you enable No Disconnect you will be twelfth, if you don't restart your Game
     
  7. Extrasklep

    Extrasklep GBAtemp Regular

    Member
    100
    4
    Aug 24, 2017
    Poland
    Miiverse's grave
    It would be nice if the game didn't crash when pressing left when there is no blue shell with the blue shell ride code enabled.
     
  8. NintendoGamer28

    NintendoGamer28 GBAtemp Regular

    Member
    110
    25
    Jan 15, 2017
    You're meant to stay in 12th when using no disconnect to prevent ftwing
    hope that answered your question and its a patch not a problem with the code. :)

    use the up-to-date plg, a mem check was added so when you press Left when a blueshell hasn't been spawned it doesn't crash you
    hope that answered your question. :)
     
  9. Extrasklep

    Extrasklep GBAtemp Regular

    Member
    100
    4
    Aug 24, 2017
    Poland
    Miiverse's grave
    Where can I get it?
     
  10. NintendoGamer28

    NintendoGamer28 GBAtemp Regular

    Member
    110
    25
    Jan 15, 2017
     
  11. Donald4444

    Donald4444 Newbie

    Newcomer
    2
    0
    Oct 30, 2017
    Germany
    Region (USA/EUR/JPN):EUR
    Game version (Rev0/Rev0 1.1/Rev1):Rev1 Update 1.1
    NTR Version (3.2/3.3/3.4):3.6/3.3 (older not testet)
    Plugin last updated (14 November 2017):
    Codes not working:No Disconnect

    Problem:You will stay in 12th while using no disconnect
     
  12. NintendoGamer28

    NintendoGamer28 GBAtemp Regular

    Member
    110
    25
    Jan 15, 2017
    Stop spamming your query has been answered now stop or wait till the OP DarkFlare comes online....
     
  13. DarkFlare69
    OP

    DarkFlare69 GBAtemp Psycho!

    Member
    4,765
    2,619
    Dec 8, 2014
    United States
    Ohio
    This isn't a glitch. It's intentional.

    It's been fixed. You won't crash anymore