• Do not use Discord to host any images you post, these links expire quickly! You can learn how to add images to your posts here.
Resource icon

Resource Badgecase 2022-11-12

Hiyouri

Novice
Member
Joined
Aug 13, 2024
Posts
17
Hello, I have some problems. When I add a new Badge in PBS/Badges and an image of the same name in Unobtained nothing happens... How can I change the maximum number of badges. Also, when I change the order of the badges in PBS/badges nothing happens. Finally, I want to change the size of the window but there is a black screen that hides the map. There must be something I am not doing correctly... I am French and I am not very good at English.
That my badge in PBS/Badges:
Expand Collapse Copy
#-------------------------------
[ZEPHYRBADGE]
Name = Flying Badge
Type = FLYING
LeaderName = Juan
LeaderSprite = LEADER_Juan
Location = Viridian City
AcePokemon = PIDGEOT
Order = 9
 

ChampChar110

Trainer
Member
Joined
Oct 2, 2022
Posts
85
Hello, I have some problems. When I add a new Badge in PBS/Badges and an image of the same name in Unobtained nothing happens... How can I change the maximum number of badges. Also, when I change the order of the badges in PBS/badges nothing happens. Finally, I want to change the size of the window but there is a black screen that hides the map. There must be something I am not doing correctly... I am French and I am not very good at English.
That my badge in PBS/Badges:
Expand Collapse Copy
#-------------------------------
[ZEPHYRBADGE]
Name = Flying Badge
Type = FLYING
LeaderName = Juan
LeaderSprite = LEADER_Juan
Location = Viridian City
AcePokemon = PIDGEOT
Order = 9
Every change of a PBS file must be compiled. You can do it manually from the Debug Menu/Files Options/Compile Data.
About the window size, I didn't get you. Can you send a screenshot and explain more?
 

Hol

Rookie
Member
Joined
Aug 12, 2024
Posts
3
Could it be possible to set up multiple 'pages' for the badge case? I like the auto resizing, but I'd like to have all my badges visible at regular resolution to avoid mixels. And separating them by region on pages could be useful.
 
Last edited:

ChampChar110

Trainer
Member
Joined
Oct 2, 2022
Posts
85
Could it be possible to set up multiple 'pages' for the badge case? I like the auto resizing, but I'd like to have all my badges visible at regular resolution to avoid mixels. And separating them by region on pages could be useful.
That's a great idea, let me try it!
 

Baertierchen

Working on Pokémon Unchained and Pokémon Stardust
Member
Joined
Dec 6, 2023
Posts
18
Love the plugin and correct me if I'm wrong or if I'm using an outdated version and the issue has been fixed, so.. when saving, the normal amount of badges get displayed as a number, but when loading the game/starting it up, the number is always 0, this seems to be caused by the plugin. Is there a way to fix this?
 

Baertierchen

Working on Pokémon Unchained and Pokémon Stardust
Member
Joined
Dec 6, 2023
Posts
18
Is there no possible solution to fix this issue?
 

ChampChar110

Trainer
Member
Joined
Oct 2, 2022
Posts
85
Love the plugin and correct me if I'm wrong or if I'm using an outdated version and the issue has been fixed, so.. when saving, the normal amount of badges get displayed as a number, but when loading the game/starting it up, the number is always 0, this seems to be caused by the plugin. Is there a way to fix this?
I've changed the "badge_count" function to count the badges from my plugin.
Maybe that's a version from before I changed it?
Are you perhaps using a different load screen? Can you send the load screen code?
 

Baertierchen

Working on Pokémon Unchained and Pokémon Stardust
Member
Joined
Dec 6, 2023
Posts
18
I've changed the "badge_count" function to count the badges from my plugin.
Maybe that's a version from before I changed it?
Are you perhaps using a different load screen? Can you send the load screen code?
I've updated it now, but the problem still persists. Even on a new save. It's weird, because while saving, the correct amount of badges are displayed, but when I'm closing the game and reloading it, it slways shows a 0.
I haven't altered the load screen at all.
 

NikoPalad67140

Novice
Member
Joined
May 31, 2022
Posts
12
Not sure if I can say this here, but the Data folder is missing in the file, causing the game to crash when I try to access the Badge Case menu. When I extract the folder, it only contains the PBS, Graphics and Plugins folders.

Are you sure you didn't forget to include the Data folder in the file?
 

ChampChar110

Trainer
Member
Joined
Oct 2, 2022
Posts
85
I've updated it now, but the problem still persists. Even on a new save. It's weird, because while saving, the correct amount of badges are displayed, but when I'm closing the game and reloading it, it slways shows a 0.
I haven't altered the load screen at all.
I think it's where I store the badges. If I understand correctly, it only loads after the load screen, which is causing the problem.
Changing it will force everyone to start a new save and load everything - so be warned, everyone😉
Hoping to get some time and be back at Pokemon game-developing soon to fix it and continue working on Pokemon Pangena.

Not sure if I can say this here, but the Data folder is missing in the file, causing the game to crash when I try to access the Badge Case menu. When I extract the folder, it only contains the PBS, Graphics and Plugins folders.

Are you sure you didn't forget to include the Data folder in the file?
I didn't put the data file intentionally. I thought you would change your PBS file into your wanted badges and then compile it.
 

Baertierchen

Working on Pokémon Unchained and Pokémon Stardust
Member
Joined
Dec 6, 2023
Posts
18
I think it's where I store the badges. If I understand correctly, it only loads after the load screen, which is causing the problem.
Changing it will force everyone to start a new save and load everything - so be warned, everyone😉
Hoping to get some time and be back at Pokemon game-developing soon to fix it and continue working on Pokemon Pangena.


I didn't put the data file intentionally. I thought you would change your PBS file into your wanted badges and then compile it.
Alright, a fix would be much appreciated!
 

ChampChar110

Trainer
Member
Joined
Oct 2, 2022
Posts
85
ChampChar110 updated Badgecase with a new update entry:

Fixing it better

Made the following changes:
  • Add an option for regions. All you need to do is add "Region = XXX" (XXX = Region Name) into your badge PBS file. You can see an example in the given PBS file including Kanto-Sinnoh badges.
  • Fixed the loading problem (the load screen didn't show badge count)

Read the rest of this update entry...
 

Drqiu

Novice
Member
Joined
Jun 6, 2023
Posts
25
Hi, can you check the download link please? Your update doesn't seem to be in the version from download link
 

ChampChar110

Trainer
Member
Joined
Oct 2, 2022
Posts
85

Baertierchen

Working on Pokémon Unchained and Pokémon Stardust
Member
Joined
Dec 6, 2023
Posts
18
Try now, uploaded it again


The example pictures? I fixed it now, thanks for reporting😊
I did a fresh installation of the plugin, also started a new save and all, but now when starting up the game, there is no number of badges displayed anymore, the number is just gone :(
Also the game is crashing when receiving a badge, but I'm still testing it out, this may be a problem on my end.
 

ChampChar110

Trainer
Member
Joined
Oct 2, 2022
Posts
85
I did a fresh installation of the plugin, also started a new save and all, but now when starting up the game, there is no number of badges displayed anymore, the number is just gone :(
Also the game is crashing when receiving a badge, but I'm still testing it out, this may be a problem on my end.
Can you screenshot the error message?
Also, yes, I forgot to initialize the badge_count into 0, so it starts to save the number from 1. I'll upload the fix after I'll fix the other problem.
 

Baertierchen

Working on Pokémon Unchained and Pokémon Stardust
Member
Joined
Dec 6, 2023
Posts
18
Can you screenshot the error message?
Also, yes, I forgot to initialize the badge_count into 0, so it starts to save the number from 1. I'll upload the fix after I'll fix the other problem.
Ah I see haha, that would be neat!
Maybe the error is also related to this, I could try giving myself the second badge if the first one is not taken into account, right?

The error says:
[Pokémon Essentials version 21.1]
[v21.1 Hotfixes 1.0.9]

Script error in event 33 (coords 30,6), map 42 (House of Unnamed)
Exception: SystemStackError
Message: stack level too deep

***Full script:
$stats.set_time_to_badge(0)
$player.badges[0] = true
pbGetBadge(:BOULDERBADGE)

Backtrace:
[BadgeCase] Badgecase_UI.rb:26:in `block (2 levels) in getBadgePositions'
[BadgeCase] Badgecase_UI.rb:25:in `each'
[BadgeCase] Badgecase_UI.rb:25:in `block in getBadgePositions'
[BadgeCase] Badgecase_UI.rb:20:in `each'
[BadgeCase] Badgecase_UI.rb:20:in `getBadgePositions'
[BadgeCase] Badgecase_UI.rb:53:in `getBadgePositions'
[BadgeCase] Badgecase_UI.rb:53:in `getBadgePositions'
[BadgeCase] Badgecase_UI.rb:53:in `getBadgePositions'
[BadgeCase] Badgecase_UI.rb:53:in `getBadgePositions'
[BadgeCase] Badgecase_UI.rb:53:in `getBadgePositions'
 
Back
Top