ROM Hack [WIP]USUMCheatMenu - Old3DS compatible NTR plugin for Ultra Sun/Moon

Pkm collector1

Well-Known Member
Member
Joined
Apr 16, 2014
Messages
206
Trophies
0
Age
42
XP
399
Country
United States
Let's see, do you use IPS Patches, those can interfere with the plugin. Also can you @Pkm collector1 try having those 3 cheats at the same time? Is not crashing for me so I don't know
will do let me load up the game to try it

what Soulsilve2010 was saying is that the codes are crashing to his game of sun any of the codes that person is using making his console crash
 
Last edited by Pkm collector1,

unipablojorge

Totally not an FBI agent.
OP
Member
Joined
May 25, 2017
Messages
161
Trophies
0
Age
29
Location
Navarre
XP
146
Country
Spain
Put the chance to come shiny to choose, not just 100% chance to come, for example 1/2 1/4 1/8 1/16 ... 1/2048 ..
Regarding this:
I've looked at how the plugin was designed. I can say now that Shiny modifier does not work in SuMoCheatMenu. When you click it on the menu it will only change the display, but it won't write anything else. You can see the code below yourself.
Even if it does work, the activation plugin only has 2 states: 100% chance and normal chances. I've contacted AnalogMan, I will see if he answers.


Code:
// menu entry here
new_entry_managed("Shiny Chance: XXXXXX", decreaseShinyChance, DECREASESHINYCHANCE, AUTO_DISABLE); //activates decreaseShinyChance

//
void    updateShiny(void) {
    char buf[7];
    xsprintf(buf, ": 1/%-4d", shinyChanceValue);
    replace_pattern(": ******", (shinyChanceValue == 4096) ? ": Normal" : buf, DECREASESHINYCHANCE);
} // does not activate anything (?)


//
void    decreaseShinyChance(void) {
    if (shinyChanceValue == 4096)
        shinyChanceValue = 1;
    else
        shinyChanceValue *= 2;
    updateShiny(); //activates updateShiny
}


// Make wild Pokemon shiny
void    shinyPokemon(void) {
    static const u32 offset[] =
    {
        0x003183EC,
        0x00318AF0,
        0x00318AF0
    };
    if (shinyChanceValue == 4096) {
        WRITEU32(offset[gameVer], 0x0A00001C);
        return;
    } else {
        int r = randomNum(1, shinyChanceValue);
        if (r == 1)
            WRITEU32(offset[gameVer], 0xEA00001C); //pablo note: only 2 states. here 100%
        else
            WRITEU32(offset[gameVer], 0x0A00001C); // and here normal one the same as the one that gets written when chances are normal.
    }
}
 
Last edited by unipablojorge,

Nanquitas

Well-Known Member
Member
Joined
Sep 29, 2015
Messages
2,345
Trophies
0
Age
30
Location
South of France :)
XP
3,336
Country
France
Regarding this:
I've looked at how the plugin was designed. I can say now that Shiny modifier does not work in SuMoCheatMenu. When you click it on the menu it will only change the display, but it won't write anything else. You can see the code below yourself.
Even if it does work, the activation plugin only has 2 states: 100% chance and normal chances. I've contacted AnalogMan, I will see if he answers.


Code:
// menu entry here
new_entry_managed("Shiny Chance: XXXXXX", decreaseShinyChance, DECREASESHINYCHANCE, AUTO_DISABLE); //activates decreaseShinyChance

//
void    updateShiny(void) {
    char buf[7];
    xsprintf(buf, ": 1/%-4d", shinyChanceValue);
    replace_pattern(": ******", (shinyChanceValue == 4096) ? ": Normal" : buf, DECREASESHINYCHANCE);
} // does not activate anything (?)


//
void    decreaseShinyChance(void) {
    if (shinyChanceValue == 4096)
        shinyChanceValue = 1;
    else
        shinyChanceValue *= 2;
    updateShiny(); //activates updateShiny
}


// Make wild Pokemon shiny
void    shinyPokemon(void) {
    static const u32 offset[] =
    {
        0x003183EC,
        0x00318AF0,
        0x00318AF0
    };
    if (shinyChanceValue == 4096) {
        WRITEU32(offset[gameVer], 0x0A00001C);
        return;
    } else {
        int r = randomNum(1, shinyChanceValue);
        if (r == 1)
            WRITEU32(offset[gameVer], 0xEA00001C); //pablo note: only 2 states. here 100%
        else
            WRITEU32(offset[gameVer], 0x0A00001C); // and here normal one the same as the one that gets written when chances are normal.
    }
}
The function shinyPokemon is always called in background, it's not a simple write. It means that it's the plugin which compute if the pokemon must be shiny or not based on the shinyChanceValue selected by the user.
 

dsrules

Well-Known Member
Member
Joined
Sep 20, 2005
Messages
8,635
Trophies
2
XP
6,201
Country
There is currently not a cheat for all beans, and the rotom things is a really long code. I want to focus on fixing crashes and bugs and then I will add more. For now you can use PKHeX
port from Moon, not tested

Pokémon Ultra Moon/Sun
[All PokeBeans x99]
D3000000 30000000
C0000000 0000000F
23051708 00000063
DC000000 00000001
D2000000 00000000
 

unipablojorge

Totally not an FBI agent.
OP
Member
Joined
May 25, 2017
Messages
161
Trophies
0
Age
29
Location
Navarre
XP
146
Country
Spain
The function shinyPokemon is always called in background, it's not a simple write. It means that it's the plugin which compute if the pokemon must be shiny or not based on the shinyChanceValue selected by the user.

Completely my bad, forgot to look on menu.c. Update coming soon then, I guess. If I can get it to work. Thank you!


port from Moon, not tested

Pokémon Ultra Moon/Sun
[All PokeBeans x99]
D3000000 30000000
C0000000 0000000F
23051708 00000063
DC000000 00000001
D2000000 00000000

I'll try it as soon as I have translated it into NTR
 

HollowedFear

Well-Known Member
Member
Joined
Dec 30, 2013
Messages
308
Trophies
0
Age
33
XP
462
Country
United States
Completely my bad, forgot to look on menu.c. Update coming soon then, I guess. If I can get it to work. Thank you!

Dunno if you missed it or not, but while your doing shinychancevalue think you could possibly switch how the exp modifier is as well? so it's not hardcoded to only x2/x10/x100 and the player/user can choose any value from x0 to x255 kinda like how it was in the SuMo plugin?
 
Last edited by HollowedFear,

unipablojorge

Totally not an FBI agent.
OP
Member
Joined
May 25, 2017
Messages
161
Trophies
0
Age
29
Location
Navarre
XP
146
Country
Spain
Dunno if you missed it or not, but while your doing shinychancevalue think you could possibly switch how the exp modifier is as well? so it's not hardcoded to only x2/x10/x100 and the player/user can choose any value from 0x to x255 kinda like how it was in the SuMo plugin?
Yeah, I already have that working ;) I'll release it together with the shiny one
 
  • Like
Reactions: Morrogoth

unipablojorge

Totally not an FBI agent.
OP
Member
Joined
May 25, 2017
Messages
161
Trophies
0
Age
29
Location
Navarre
XP
146
Country
Spain
Great ^^ means I can do away with having to worry about switching up values for exp rates in my IPS patch then as that would get tiresome haha
The only thing (I don't know if it happens with IPS patches too) is that the value can't be over 255. I haven't tried but it would probably crash the game. The original SuMoCheatMenu had that limitation too
 

HollowedFear

Well-Known Member
Member
Joined
Dec 30, 2013
Messages
308
Trophies
0
Age
33
XP
462
Country
United States
The only thing (I don't know if it happens with IPS patches too) is that the value can't be over 255. I haven't tried but it would probably crash the game. The original SuMoCheatMenu had that limitation too
Yea I know that's why I said "any value from x0 to x255" :P as that has always been the max limit for any pokemon games on exp multi value.
 
Last edited by HollowedFear,

Morrogoth

Well-Known Member
Newcomer
Joined
Nov 8, 2017
Messages
81
Trophies
0
Age
39
XP
66
Country
United States
The only thing (I don't know if it happens with IPS patches too) is that the value can't be over 255. I haven't tried but it would probably crash the game. The original SuMoCheatMenu had that limitation too

Its VERY unlikely to be anything over 255 - As FF is the most that can be held in a single byte.
 

unipablojorge

Totally not an FBI agent.
OP
Member
Joined
May 25, 2017
Messages
161
Trophies
0
Age
29
Location
Navarre
XP
146
Country
Spain
Yea I know that's why I said "any value from 0x to x255" :P as that has always been the max limit for any pokemon games on exp multi value.
Its VERY unlikely to be anything over 255 - As FF is the most that can be held in a single byte.
Oh ok, I'm really new to hex stuff so I didn't know that
 
  • Like
Reactions: Morrogoth

Morrogoth

Well-Known Member
Newcomer
Joined
Nov 8, 2017
Messages
81
Trophies
0
Age
39
XP
66
Country
United States
Oh ok, I'm really new to hex stuff so I didn't know that

Its Np bud! You are doing great.

But yeah - The max a byte can hold is FF (Hex) - Which is 255 (Dec). :D

I mean - It could use FFFF (Hex) I suppose - But thats 65,535 (Dec) - Which I hinted at being unlikely (by saying its likely that 255 is the max).
 
Last edited by Morrogoth,

RuneKnight

Member
Newcomer
Joined
Nov 22, 2017
Messages
19
Trophies
0
XP
86
Country
Germany
Can someone fix the shiny code for wormholes please?
not a single pokemon in the wormholes will be shiny with this code, not even the normal pokemon like lotad.
 

unipablojorge

Totally not an FBI agent.
OP
Member
Joined
May 25, 2017
Messages
161
Trophies
0
Age
29
Location
Navarre
XP
146
Country
Spain
Can someone fix the shiny code for wormholes please?
not a single pokemon in the wormholes will be shiny with this code, not even the normal pokemon like lotad.
In around 2 mins a new update is coming out. I changed a little bit the shiny code. Try it then

--------------------- MERGED ---------------------------

Done - New release!

Changed shiny code and
changed exp code

Now, I need your help guys: I'm trying to fix the all stats +6 code, it's not turning off. However, I think I know how to fix it. But I need the value located at 0x0029B74C. I don't have acces to a wifi to connect my 3DS to, so if anyone knows how to use NTR Debugger I want your help. The perfect thing would be to send me a screenshot of the address and its values, the entire line.
Thank you!
 

HollowedFear

Well-Known Member
Member
Joined
Dec 30, 2013
Messages
308
Trophies
0
Age
33
XP
462
Country
United States
In around 2 mins a new update is coming out. I changed a little bit the shiny code. Try it then

--------------------- MERGED ---------------------------

Done - New release!

Changed shiny code and
changed exp code

Now, I need your help guys: I'm trying to fix the all stats +6 code, it's not turning off. However, I think I know how to fix it. But I need the value located at 0x0029B74C. I don't have acces to a wifi to connect my 3DS to, so if anyone knows how to use NTR Debugger I want your help. The perfect thing would be to send me a screenshot of the address and its values, the entire line.
Thank you!

Please change .rar to .zip :c
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
    SylverReZ @ SylverReZ: @salazarcosplay, Morning