Homebrew [WIP]PCHex++ - PCHex with its own gui

Xenosaiga

Time to switch it up
Member
Joined
Oct 9, 2015
Messages
1,501
Trophies
0
Age
34
Location
The Shadows
XP
1,080
Country
United States
Yes this occurs randomly and actually i have no clue on why it does happen. I am experiencing the same problem with other homebrews.
It was a very normal occurrence while helping test PHbank. Was just letting people know about it so they don't come back and say something about it being broken before they restart their console and try again.
 

Slashcash

Well-Known Member
OP
Member
Joined
Oct 15, 2015
Messages
338
Trophies
0
XP
611
Country
Italy
Oh wow I feel stupid now. Admittedly I did that very "another try" before the whole Citra thing since my previous crashes were on 0.1.1 iirc but that just fairly instantly made it crash saying "an error occurred the system will now reboot". Only just I realized that's because what is default on your compileoptions.h. At first I thought it was still crashing now but (obviously) when changing the compileoptions it now works :rofl:.

Still not sure what caused my original crashes though because there I definitely had the compileoptions set up correctly (heck I even pasted the content of it here a few pages back).

Ohwell... it works and that's what matters ¯\_(ツ)_/¯ (TLDR of how I react to 99% of the errors I fix on programs I'm developing :toot:)

I don't really know what was causing the crash back then, glad it works now. XD
Please be aware that compiling and using the new-release branch is generally a bad idea because that's where i dump most of the new experimental feature. So it is generally not stable, it should be fine to test it on citra with a debug build, though.
 

twhprox

Active Member
Newcomer
Joined
Nov 4, 2010
Messages
26
Trophies
1
XP
285
Country
Brazil
OP contains a new 0.1.3 release which fixes the poor sd card access rate. It can now show 700+ files in no more than a second, it should even fix the occasional ability editing failure experienced by @twhprox

I apologize for all this weekly hotfix patches, 0.1 release has been a big one so a lot of bugs were to be expected. Thanks for all the reports!
Sorry for the lateness, I was traveling and could not check the site. Unfortunately the error persists. Here are the images.
JTgxwUK.png
uU3H3pJ.jpg
z4xzBfL.jpg
And here is the link to the save https://www.mediafire.com/?c62vc65pj70pzgp .
Thank you.
 
Last edited by twhprox,

Kaphotics

badc0ded
Member
Joined
Sep 10, 2010
Messages
612
Trophies
0
XP
626
Country
United States
Ability numbers are stored as follows:
1 - ability 0
2 - ability 1
4 - Hidden

To set the ability number from a 012 based scheme, left shift by 1 instead of adding one. pchex++ does setAbilityNum(ability+1), but it should do setAbilityNum(ability<<1).

PKHeX loads abilities based off of the ability number, not the ability ID. To load it right shifts the value by 1. Since this Gligar is hidden (index 2), pchex assigns it 3. When read, it comes back as 1 instead of 2.

AbilityNumber is based off individual bitflags, not an index number. Since there's only 3 bits used, a single bit shift is sufficient.
 

Slashcash

Well-Known Member
OP
Member
Joined
Oct 15, 2015
Messages
338
Trophies
0
XP
611
Country
Italy
Ability numbers are stored as follows:
1 - ability 0
2 - ability 1
4 - Hidden

@Kaphotics teaches me that reading the source code of things that already work is always better than doing things based on how you think it should work! XD Thanks a lot!

[EDIT]I mindlessly read the documentation on Project Pokemon which lists the the ability ID at 0x15 and i automatically assumed it was a plain byte, not a flag. My bad.
 
Last edited by Slashcash,

twhprox

Active Member
Newcomer
Joined
Nov 4, 2010
Messages
26
Trophies
1
XP
285
Country
Brazil
Ability numbers are stored as follows:
1 - ability 0
2 - ability 1
4 - Hidden

To set the ability number from a 012 based scheme, left shift by 1 instead of adding one. pchex++ does setAbilityNum(ability+1), but it should do setAbilityNum(ability<<1).

PKHeX loads abilities based off of the ability number, not the ability ID. To load it right shifts the value by 1. Since this Gligar is hidden (index 2), pchex assigns it 3. When read, it comes back as 1 instead of 2.

AbilityNumber is based off individual bitflags, not an index number. Since there's only 3 bits used, a single bit shift is sufficient.
Thank you very much. Both you for the time to look into my bug and slashcash for using his time to develop this amazing tool.
 

IronClouds

GBAtemp's Pokébro
Member
Joined
May 8, 2010
Messages
1,019
Trophies
0
XP
625
Country
United States
First of all, FUCKING EXCELLENT WORK! I do have a question, as the first post is a little confusing to me:

An automatic backup of your save is placed in /pk/PCHex++/backup
  • It is recommended to do a backup of your save file everytime you use PCHex++

Was the post just not edited like it should have been, or is it suggesting I do a manual backup in addition to the automatic backups PKHeX++ does?

Also, are any changes that I make done and saved right away, or is there a way I can go nuts and just change my mind in the end and choose to leave everything alone? Again, great work. Much appreciated!
 

Slashcash

Well-Known Member
OP
Member
Joined
Oct 15, 2015
Messages
338
Trophies
0
XP
611
Country
Italy
First of all, FUCKING EXCELLENT WORK! I do have a question, as the first post is a little confusing to me:

Was the post just not edited like it should have been, or is it suggesting I do a manual backup in addition to the automatic backups PKHeX++ does?

Also, are any changes that I make done and saved right away, or is there a way I can go nuts and just change my mind in the end and choose to leave everything alone? Again, great work. Much appreciated!

An automatic backup is done at every startup of the program. Of course if your savefile is particularly precious another backup done with an external tool can't hurt.

When you edit a pokemon every modification is done in a temporary copy of the savefile. The changes are committed to the actual save only when you press A. As a last resort if you have committed the save but changed your mind you can always restore the automatic backup.
 
  • Like
Reactions: IronClouds

IronClouds

GBAtemp's Pokébro
Member
Joined
May 8, 2010
Messages
1,019
Trophies
0
XP
625
Country
United States
Is there a way for the dev(s) to post what's currently being worked on so we can track development more closely? So glad I returned my PowerSaves last year :>
 

Slashcash

Well-Known Member
OP
Member
Joined
Oct 15, 2015
Messages
338
Trophies
0
XP
611
Country
Italy
Is there a way for the dev(s) to post what's currently being worked on so we can track development more closely? So glad I returned my PowerSaves last year :>

You can visit the project history's on its github page. In particular this page shows the progress. I generally manage to push two or three updates a week, of course most of them are bugfixing that the users won't ever notice but new features are added with a regular basis

If you are not familiar with github don't be surprised if the log is in the present tense as this is how github works
 
Last edited by Slashcash,

IronClouds

GBAtemp's Pokébro
Member
Joined
May 8, 2010
Messages
1,019
Trophies
0
XP
625
Country
United States
You can visit the project history's on its github page. In particular this page shows the progress. I generally manage to push two or three updates a week, of course most of them are bugfixing that the users won't ever notice but new features are added with a regular basis

If you are not familiar with github don't be surprised if the log is in the present tense as this is how github works
Yeah, I figured GitHub was used to track some of this stuff. I've always found it difficult to navigate. That page is great! Didn't see it while I was looking around earlier, but that's probably because, again, I find GitHub's navigation less than ideal for me. That page doesn't cover what's currently being worked on (just stuff that's been committed), but it's still a way to track progress.
 

ChokingVictim87

Well-Known Member
Member
Joined
Feb 21, 2014
Messages
1,090
Trophies
1
Age
37
Location
Cardiff
XP
1,557
Country
United Kingdom
You can dump the savefile and edit it on your computer with PikaSav

Yeah....slight problem there. I only have a Macbook,I use Chex put when it comes to injecting the save file after editing,nothing has changed....

An app for it (even if its an original game one) would be really helpful
 

Eskuero

Well-Known Member
Newcomer
Joined
Mar 20, 2015
Messages
97
Trophies
0
XP
179
Country
United States
Yeah....slight problem there. I only have a Macbook,I use Chex put when it comes to injecting the save file after editing,nothing has changed....

An app for it (even if its an original game one) would be really helpful
Mmmm why would you inject the save file with PChex lol
I've only used savedatafiler to dump and inject them, but svdt with a proper .xml for the 9.6 encryption should work:
https://projectpokemon.org/forums/s...s-from-R-B-Y-virtual-console-(using-homebrew)
 

ChokingVictim87

Well-Known Member
Member
Joined
Feb 21, 2014
Messages
1,090
Trophies
1
Age
37
Location
Cardiff
XP
1,557
Country
United Kingdom

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • Xdqwerty @ Xdqwerty:
    @K3Nv2, stop stealing my phrases
  • K3Nv2 @ K3Nv2:
    why
  • Xdqwerty @ Xdqwerty:
    @K3Nv2, it's not funny
  • K3Nv2 @ K3Nv2:
    ok
  • BigOnYa @ BigOnYa:
    Wut?
  • K3Nv2 @ K3Nv2:
    That's not funny
    +2
  • Psionic Roshambo @ Psionic Roshambo:
    So two cannibals where eating a clown and one says to the other. Hey does this taste funny to you?
    +2
  • K3Nv2 @ K3Nv2:
    What do you call a slow car? Retired
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    Did you hear about the police car that someone stole the wheels off of? The police are working tirelessly to find the thieves.
    +2
  • K3Nv2 @ K3Nv2:
    A firefighter got arrested for assault his main claim was what I was told he was on fire
    +2
  • BigOnYa @ BigOnYa:
    What do you call a hooker with a runny nose? Full
    +2
  • Psionic Roshambo @ Psionic Roshambo:
    What do you tell a woman with two black eyes? Nothing you already told her twice!
  • K3Nv2 @ K3Nv2:
    Diddy also works
  • K3Nv2 @ K3Nv2:
    A scientist heard the word batman so he put a naked lady in a cage with a bat
  • Psionic Roshambo @ Psionic Roshambo:
    Chuck Norris won a staring contest, with the sun.
  • K3Nv2 @ K3Nv2:
    A vampires favorite thing to do is moon you
  • BigOnYa @ BigOnYa:
    What's the difference between an airplane, and Ken's mom? Not everyone has been in an airplane.
  • K3Nv2 @ K3Nv2:
    What's the difference between @BigOnYa and his wife? Nothing both want to bone me
    +3
  • RedColoredStars @ RedColoredStars:
    How much wood could a wood chuck chuck if a wood chuck could chuck norris
  • BakerMan @ BakerMan:
    how do i know? you're a guy, and he wants to bone every guy on this site (maybe, idk)
    +1
  • K3Nv2 @ K3Nv2:
    He wants to bone anything with a dick
    +1
  • Xdqwerty @ Xdqwerty:
    Good night
    +1
  • BigOnYa @ BigOnYa:
    Nighty night, big day tomorrow. Congrats.
    BigOnYa @ BigOnYa: Nighty night, big day tomorrow. Congrats.