Homebrew PCHex - Homebrew PKHex

VaiCorinthians

Well-Known Member
Member
Joined
Oct 7, 2014
Messages
461
Trophies
0
Age
39
Location
GB
XP
470
Country
Papua New Guinea
A little update: i ported most of the PCHex's code (which is really understandable, thx to Stracker) to C++this weekend and refactored it using a multi-layered approach. It does seem a pointless work but it will help for future developments and it will be easier for others to contribute (as the core classes of the software provide now an easy to use interface)

A lot of code from PCHex is used but a lot is written from scratch, for now i'm able to clone pokemon and modify some parameters (shinify, nature and other things), i will work on a skeleton for a gui this week hoping to rapidly reach the level of stability and the number of functions of the original PCHex. My hope is to post screenshots, source code and a pre-alpha build to test this week (unfortunately this is an hobby and i do other things to pay the bills)
Nice! I cant wait to test it :D
 

omikes

Well-Known Member
Newcomer
Joined
Oct 29, 2015
Messages
86
Trophies
0
Age
38
XP
121
Country
United States
I am taking a little break from this thing. I am not a big fan of writing in C, this was my first experience doing it, and the result was very small. However, I am proud that I was able to contribute just a little bit to Stracker's program. My goal was to make an online box that could fit 30 Pokemon in it, in the end, I can only get it to fit two. lol... oh well. Here is the final contribution of mine, with box 32!!! Sure it can only hold two Pokemon, but that's all the space you need for a quick trade. In fact, the first one's into my test account will get a little suprise: username: a, password: a

Get it while its hot
 

Attachments

  • PCHex.zip
    1.1 MB · Views: 222

jayeshwar nat

Member
Newcomer
Joined
Jul 25, 2015
Messages
10
Trophies
0
Age
33
XP
59
Country
United States
I am taking a little break from this thing. I am not a big fan of writing in C, this was my first experience doing it, and the result was very small. However, I am proud that I was able to contribute just a little bit to Stracker's program. My goal was to make an online box that could fit 30 Pokemon in it, in the end, I can only get it to fit two. lol... oh well. Here is the final contribution of mine, with box 32!!! Sure it can only hold two Pokemon, but that's all the space you need for a quick trade. In fact, the first one's into my test account will get a little suprise: username: a, password: a

Get it while its hot
Dang it, i'm at school :(
 

Slashcash

Well-Known Member
Member
Joined
Oct 15, 2015
Messages
338
Trophies
0
XP
611
Country
Italy
Development is going on well (only a bit slow, but i have other things to do) and lot of the edit functions are already done so i started working on the gui.

Obviously all the ugly rectangules are just placeholders and they will be changed with something better.
As i am not a great graphic guy: if someone wants to create the assets i will be happy and i'm ready to give all the infos.
(note that the glitch on the font are there because i took the screenshot from Citra)

img.png
 

Gocario

GBAFail'd
Member
Joined
Sep 5, 2015
Messages
640
Trophies
0
Location
Bourg Palette
XP
804
Country
France
Development is going on well (only a bit slow, but i have other things to do) and lot of the edit functions are already done so i started working on the gui.

Obviously all the ugly rectangules are just placeholders and they will be changed with something better.
As i am not a great graphic guy: if someone wants to create the assets i will be happy and i'm ready to give all the infos.
(note that the glitch on the font are there because i took the screenshot from Citra)

img.png

I am using this with PHBank.
But using romFS is still my goal. D:

sprite_pokemon_icons_+_egg.png

Code:
Width      : 40
Height     : 30
PkmCount  : 721
RowPkmCount: 25

For pkm    v
OffsetLeft : ((SPECIES_ID) % ROW_PKM_COUNT) * WIDTH
OffsetTop  : ((SPECIES_ID) / ROW_PKM_COUNT) * HEIGHT

For egg    v
OffsetLeft : ((PKM_COUNT) % ROW_PKM_COUNT) * WIDTH
OffsetTop  : ((PKM_COUNT) / ROW_PKM_COUNT) * HEIGHT
 
Last edited by Gocario,

VaiCorinthians

Well-Known Member
Member
Joined
Oct 7, 2014
Messages
461
Trophies
0
Age
39
Location
GB
XP
470
Country
Papua New Guinea
Development is going on well (only a bit slow, but i have other things to do) and lot of the edit functions are already done so i started working on the gui.

Obviously all the ugly rectangules are just placeholders and they will be changed with something better.
As i am not a great graphic guy: if someone wants to create the assets i will be happy and i'm ready to give all the infos.
(note that the glitch on the font are there because i took the screenshot from Citra)

img.png
PCHex with GUI is happening! :wtf: OMG!
Great work buddy. :bow:
 

Slashcash

Well-Known Member
Member
Joined
Oct 15, 2015
Messages
338
Trophies
0
XP
611
Country
Italy
Idk if this is possible, but maybe you can add pkx importing as a feature? I like to Pokegen using a PC rather than a 3DS, so it would be nice to move those over using this homebrew app. Keep up the good work!

pk6 import/export is already coded and working, just a matter of time for it to be implemented into the gui.
 
  • Like
Reactions: Guy50570

Kartik

Well-Known Member
Member
Joined
Jun 6, 2015
Messages
653
Trophies
0
Location
github
XP
2,747
Country
India
Development is going on well (only a bit slow, but i have other things to do) and lot of the edit functions are already done so i started working on the gui.

Obviously all the ugly rectangules are just placeholders and they will be changed with something better.
As i am not a great graphic guy: if someone wants to create the assets i will be happy and i'm ready to give all the infos.
(note that the glitch on the font are there because i took the screenshot from Citra)

img.png
Hey please can you change the homebrew to autosave the file .Whenever i edit a pokemon i forget to press the select button.:D:D:P:P:P
 

Slashcash

Well-Known Member
Member
Joined
Oct 15, 2015
Messages
338
Trophies
0
XP
611
Country
Italy
Could you push the source to Github?

I'm not a great fan of posting undocumented, uncommented and unpolished code on github. A lot of things are wip and, as you can imagine, in a raw state. I will try my best to add some infos and comment and i will push the source code when i return from work. My hope is that the effort on documenting and commenting will convince others to contribute.

At least give us a date on when it will be available :P

At this rhytm and if everything goes according to plan i think i will be able to provide a pre-alpha build with some test funcionality in less than a week. Software development, even for a small project done for fun, is a mess of testing, debugging, polishing and documenting the code and obstacles are all around the corners. Don't hold your breath.
 

Slashcash

Well-Known Member
Member
Joined
Oct 15, 2015
Messages
338
Trophies
0
XP
611
Country
Italy
I am using this with PHBank.
But using romFS is still my goal. D:

Thanks! I will surely use this. The original idea was to get a gui similar to PHBank but i realized that starting with that in mind was too much of an effort. But some snippet of PHBank's code and some ideas behind it have been utilized in my project! I think that this is a great advertising for open-source development and its value to help a scene grow faster and faster.
 

DDTarZan

Never getting laid again /s
Member
Joined
Nov 11, 2009
Messages
311
Trophies
1
Age
32
Location
In some trees
XP
1,805
Country
United States
@Slashcash Please take your time! No need in rushing a really useful tool like this. Everybody who has taken part in making PCHEX better has done a wonderful job. Im excitedly waiting on the next release. :yay3ds:
 

Slashcash

Well-Known Member
Member
Joined
Oct 15, 2015
Messages
338
Trophies
0
XP
611
Country
Italy
And finally some code for PCHex++ (tribute to the original and reference to the, i hope, its enhanced and objected oriented nature) gets its place on github.

I made my best to comment and explain the two main classes of the software (savemanager and pokemon), you would read those headers to get informations about the idea and the approach behind those classes other than some tips on things to improve. The actual source for those classes is commented a little to help you orientate in my messy code. These classes are the actual core of PCHex++.

Classes and code contained in the gui folder are no more than spaghetti code, seriously. The fact is that while the core classes changes a little over time, the gui code is rapidly evolving. Don't blame me, i'm lazy.

Is it usable at the moment? No, far from it.

Could i compile it and see if it works? YES! YOU SHOULD! extract a xy or oras savefile, place it in a PCHex++ folder at the root of your sd, launch the program and see the ugly gui and clone your pokemon... (ehi, everything has to start somewhere)

I really like the idea, i want to contribute to speed up development:
  • Check the pokemon class, it needs some getters and setters. Follow the examples. It will speed up the work
  • Design the gui element to change those ugly rectangular placeholders
  • Do whatever you want

Could you push the source to Github?

If you were interested in pk6 import/export functionality you should seek for the functions in the pokemon class.
 
  • Like
Reactions: VaiCorinthians

VaiCorinthians

Well-Known Member
Member
Joined
Oct 7, 2014
Messages
461
Trophies
0
Age
39
Location
GB
XP
470
Country
Papua New Guinea
And finally some code for PCHex++ (tribute to the original and reference to the, i hope, its enhanced and objected oriented nature) gets its place on github.

I made my best to comment and explain the two main classes of the software (savemanager and pokemon), you would read those headers to get informations about the idea and the approach behind those classes other than some tips on things to improve. The actual source for those classes is commented a little to help you orientate in my messy code. These classes are the actual core of PCHex++.

Classes and code contained in the gui folder are no more than spaghetti code, seriously. The fact is that while the core classes changes a little over time, the gui code is rapidly evolving. Don't blame me, i'm lazy.

Is it usable at the moment? No, far from it.

Could i compile it and see if it works? YES! YOU SHOULD! extract a xy or oras savefile, place it in a PCHex++ folder at the root of your sd, launch the program and see the ugly gui and clone your pokemon... (ehi, everything has to start somewhere)

I really like the idea, i want to contribute to speed up development:
  • Check the pokemon class, it needs some getters and setters. Follow the examples. It will speed up the work
  • Design the gui element to change those ugly rectangular placeholders
  • Do whatever you want



If you were interested in pk6 import/export functionality you should seek for the functions in the pokemon class.
Can you compile it? I tried, but I could not.
Thanks bro!! :v
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • The Real Jdbye @ The Real Jdbye:
    @LeoTCK actually good quality products are dying out because they can't compete with dropshipped chinese crap
    +2
  • BakerMan @ BakerMan:
    @LeoTCK is your partner the sascrotch or smth?
  • Xdqwerty @ Xdqwerty:
    Good morning
  • Xdqwerty @ Xdqwerty:
    Out of nowhere I got several scars on my forearm and part of my arm and it really itches.
  • AdRoz78 @ AdRoz78:
    Hey, I bought a modchip today and it says "New 2040plus" in the top left corner. Is this a legit chip or was I scammed?
  • Veho @ Veho:
    @AdRoz78 start a thread and post a photo of the chip.
    +2
  • Xdqwerty @ Xdqwerty:
    Yawn
  • S @ salazarcosplay:
    and good morning everyone
    +1
  • K3Nv2 @ K3Nv2:
    @BakerMan, his partner is Luke
  • Sicklyboy @ Sicklyboy:
    Sup nerds
    +1
  • Flame @ Flame:
    oh hi, Sickly
  • K3Nv2 @ K3Nv2:
    Oh hi flame
  • S @ salazarcosplay:
    @K3Nv2 what was your ps4 situation
  • S @ salazarcosplay:
    did you always have a ps4 you never updated
  • S @ salazarcosplay:
    or were you able to get new ps4 tracking it \
    as soon as the hack was announced
  • S @ salazarcosplay:
    or did you have to find a used one with the lower firm ware that was not updated
  • K3Nv2 @ K3Nv2:
    I got this ps4 at launch and never updated since 9.0
  • K3Nv2 @ K3Nv2:
    You got a good chance of buying a used one and asking the seller how often they used or even ask for a Pic of fw and telling them not to update
  • RedColoredStars @ RedColoredStars:
    Speaking of PLaystation. I see Evilnat put out a beta for PS3 CFW 4.91.2 on the 22nd.
  • K3Nv2 @ K3Nv2:
    Don't really see the point in updating it tbh
  • BigOnYa @ BigOnYa:
    Yea you right, I thought about updating my PS3 CFW to 4.91, but why really, everything plays fine now. I guess for people that have already updated past 4.9 it would be helpful.
  • K3Nv2 @ K3Nv2:
    Idk if online servers are still active that would be my only thought
    +1
  • BigOnYa @ BigOnYa:
    Thats true, personally I don't play it online at all, in fact, I deleted all wifi details on it once I installed CFW, so it won't connect and auto-update itself
    BigOnYa @ BigOnYa: Thats true, personally I don't play it online at all, in fact, I deleted all wifi details on it...