Homebrew [WIP] PHBank - Pokémon Homebrew Bank

Ekaitz

Redhead Believer
Member
Joined
Jun 13, 2010
Messages
608
Trophies
0
XP
441
Country
France
I didn't have the time to share the files that you already did the comparison between traded and "untraded".
So i just checked what you are telling, I haven't finished yet but for the moment, I came to the same conclusion, I don't see many differences between the files so I guess you're perfectly right.

The egg storage has to be manage a different way than the "classic" storage but there is no limitation to this. (Except the fact that we must turn the storage into a trade that will take place not when the Pokemon is stored in the Bank but when we take it back to a cartridge)

All those things are complicated to me because I don't have any coding skills but well, if you manage to do it... Chapeau!

About the romFS, if I understood everything, we won't have to put the sprites on the SD card, right? Everything will be load from the game itself?
It would be interesting but won't this add a latency when navigating between different boxes?
 
  • Like
Reactions: Margen67

Gocario

GBAFail'd
OP
Member
Joined
Sep 5, 2015
Messages
640
Trophies
0
Location
Bourg Palette
XP
804
Country
France
About the romFS, if I understood everything, we won't have to put the sprites on the SD card, right? Everything will be load from the game itself?
It would be interesting but won't this add a latency when navigating between different boxes?
Yes!
Exactly!
The process will remain the same: loading data and entering in the main loop.
 
  • Like
Reactions: Margen67

shinyquagsire23

SALT/Sm4sh Leak Guy
Member
Joined
Nov 18, 2012
Messages
1,977
Trophies
2
Age
26
Location
Las Vegas
XP
3,765
Country
United States
I really, really don't understand the romFS even with the shinyquadsquire's explication...
Shame on me! D:
To be fair, the GARC archive format isn't documented anywhere except in code, so I don't blame you entirely. I'll probably give it a go when I have time again now that I can read the files out at least. Using the bclim files should be fine if you can format them properly for drawing.
 
Last edited by shinyquagsire23,
  • Like
Reactions: Margen67

Elveman

Just passing by
Member
Joined
Feb 1, 2015
Messages
456
Trophies
0
Age
27
Location
Moscow city
XP
992
Country
Russia
:o

Converting Pokémon (#Wololoing) => http://pastebin.com/3kZs46Cb
I am implementing an util class wich provides information from pk6 => http://pastebin.com/q0ZTF0bR

I really, really don't understand the romFS even with the shinyquadsquire's explication...
Shame on me! D:
That's neat! Now we kinda can check legality of the pokemon! Maybe if I find some time I can practice my coding skills (I'm still new to github things tho). Can I fork your repo for this?
 
  • Like
Reactions: Margen67

Gocario

GBAFail'd
OP
Member
Joined
Sep 5, 2015
Messages
640
Trophies
0
Location
Bourg Palette
XP
804
Country
France
That's neat! Now we kinda can check legality of the pokemon! Maybe if I find some time I can practice my coding skills (I'm still new to github things tho). Can I fork your repo for this?
Yes, forking is free. (a fork is a copy to your own workspace)
For the legality checker, I don't care if they store hacked Pokémon, they are taking their own risk. :D
 
  • Like
Reactions: Margen67

suloku

Well-Known Member
Member
Joined
Apr 28, 2008
Messages
883
Trophies
0
XP
866
Country
Yes, forking is free. (a fork is a copy to your own workspace)
For the legality checker, I don't care if they store hacked Pokémon, they are taking their own risk. :D

Anybody could just make a separate homebrew that opens pkbank.bin, does the legality checks and then writes a report to the sd card.
I also think there's no need for legality checks inside phbank, people might actually want to store hacked pokemon (and this brings volcanion to the topic; since it will eventually be added to normal bank I guess there's no need to filter it out).
 
  • Like
Reactions: Margen67

Xenosaiga

Time to switch it up
Member
Joined
Oct 9, 2015
Messages
1,501
Trophies
0
Age
33
Location
The Shadows
XP
1,070
Country
United States
The bank is limited to 100 boxes, like the official Pokébank.
(100 boxes => 30 Pokémon * 100 boxes => 3'000 Pokémon, isn't it enough?)



We need more boxes because Spinda that's why.

A Spinda's spot pattern is determined by its personality value, meaning that there can be exactly 4,294,967,296 (232, 416 or 2564) different variations of Spinda, or double that number if Shiny Spinda are considered different variations.

This means we would need 143,166 times the amount of space just to hold all of the Spindas!!!
 
Last edited by Xenosaiga,

supercarotte

Well-Known Member
Member
Joined
May 21, 2015
Messages
691
Trophies
0
Age
30
XP
938
Country
France
We need more boxes because Spinda that's why.

A Spinda's spot pattern is determined by its personality value, meaning that there can be exactly 4,294,967,296 (232, 416 or 2564) different variations of Spinda, or double that number if Shiny Spinda are considered different variations.

This means we would need 143,166 times the amount of space just to hold all of the Spindas!!!

pk6 files are 260 bytes long, so we would need 2 233 382 993 920 bytes to store all spinda (+shiny) variants, which is 2080 GB or 2.03125 TB. I think we'll be a bit short in space on those 2GB/4GB SD cards (don't know how far n3DS can go but I haven't heard of any SD card past 256 GB).
 
  • Like
Reactions: Margen67

froggestspirit

Aspiring Game Dev
Member
Joined
Jul 28, 2011
Messages
1,281
Trophies
1
XP
1,561
Country
United States
It would be cool if this became more popular than the official, and actually had a correct legitimacy checker, like simulating RNG to make sure things add up like encounter slot (This would take a lot of time, but it's obviously time that GameFreak doesn't have). Anyways, I like this idea, and I'll be using it in due time, because it's free and local (what GameFreak should have done from the start).
 
  • Like
Reactions: Margen67

suloku

Well-Known Member
Member
Joined
Apr 28, 2008
Messages
883
Trophies
0
XP
866
Country
@Gocario, I just saw your github with new implementatios, such as a pokerus/shiny indicator and I though that the blue pentagon should be shown as well.

EDIT: uh, just saw it implemented in github :P

Blue pentagon is shown for pokemon with Game ID < 24:
0xDF OT Game ID

something like "static bool isKalos(pkm_t* pkm);"

Here's the game id list:
Code:
0:
1: Sapphire
2: Ruby
3: Emerald
4: FireRed
5: LeafGreen
6:
7: HeartGold
8: SoulSilver
9:
10: Diamond
11: Pearl
12: Platinum
13:
14:
15: Colosseum/XD
16:
17:
18:
19:
20: White
21: Black
22: White2
23: Black2
24: X
25: Y
26: AS
27: OR
 
Last edited by suloku,
  • Like
Reactions: Margen67

Gocario

GBAFail'd
OP
Member
Joined
Sep 5, 2015
Messages
640
Trophies
0
Location
Bourg Palette
XP
804
Country
France
I tried to implement a global Pokémon class.
Which could retrieve the Pokémon data from the Pk6 easily.
I wanted to avoid to use some memory.
Thanks again to PKHeX.

The commits are not on the main branch.
Because it's corrupting data... I am still searching where the problem is.

PS: I added the `isGen6(pkm_t* pkm)` for blue pentagon (gameID >= 24 **)
Edit: It could be `isKalosBorn(-) too, but not very important atm. :)
 
Last edited by Gocario,

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
    Xdqwerty @ Xdqwerty: good night