Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Debug message about background images are out of bounds #1223

Closed
Brianum opened this issue Jul 18, 2017 · 7 comments
Closed

Debug message about background images are out of bounds #1223

Brianum opened this issue Jul 18, 2017 · 7 comments
Milestone

Comments

@Brianum
Copy link
Contributor

Brianum commented Jul 18, 2017

Thank you for supporting EasyRPG Player.
Before creating an issue, please verify that your bug still occurs in the "continuous builds" of the Player.
You can get them at the bottom of our download section: https://easyrpg.org/player/downloads


Please fill in the following fields before submitting an issue:

Name of the game: Any RPG-Maker 2003 game with battle, Encountered in Vampires Dawn II

Player platform:

Windows64

Attach files (as a .zip archive or link them)

  • A savegame next to the problem (if it is not at the beginning of the game)
  • The easyrpg_log.txt log file (you can find it in the game directory)

[2017-07-18 13:41:48] Debug: Image size out of bounds: Backdrop/battleeternal18 (320x160 < 320x240 < 320x160)

Describe the issue in detail and how to reproduce it:

Debug message appears saying background image is out of bounds, despite RPG Maker 2003 games have larger battle backdrops (320x240) compared to RPG Maker 2000 (320x160)

@carstene1ns carstene1ns added this to the 0.5.3 milestone Jul 18, 2017
@carstene1ns
Copy link
Member

Thanks, while your point is valid and needs to be fixed, we think these messages are really annoying anyway, so we consider removing them altogether (or at least not showing them by default).

@Brianum
Copy link
Contributor Author

Brianum commented Jul 18, 2017

The messages indeed pointed me at one Backdrop that is too big, so my expectation would be making the bounds dependent on the engine version.

@fdelapena
Copy link
Contributor

fdelapena commented Jul 19, 2017

Untested proposed patch:

diff --git a/src/cache.cpp b/src/cache.cpp
index f035e58f..1838cc5f 100644
--- a/src/cache.cpp
+++ b/src/cache.cpp
@@ -150,7 +150,7 @@ namespace {
                int min_height, max_height;
                std::function<BitmapRef()> dummy_renderer;
        } const spec[] = {
-               { "Backdrop", false, 320, 320, 160, 160, backdrop_dummy_func},
+               { "Backdrop", false, 320, 320, 160, Player::IsRPG2k() ? 160 : 240, backdrop_dummy_func},
                { "Battle", true, 480, 480, 96, 480, battle_dummy_func },
                { "CharSet", true, 288, 288, 256, 256, charset_dummy_func },
                { "ChipSet", true, 480, 480, 256, 256, chipset_dummy_func },

@carstene1ns
Copy link
Member

Not tested, but this patch will likely not work.

@Ghabry
Copy link
Member

Ghabry commented Jul 19, 2017

yepp because that array is constant. Probably won't even compile because Player::IsRPG2k is not a constexpr.

@fdelapena
Copy link
Contributor

It builds without warnings for me, but not tested with games yet.

@carstene1ns
Copy link
Member

While this is not really fixed, that warning vanished since #1239.

carstene1ns added a commit to carstene1ns/easyrpg-player that referenced this issue Jul 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

4 participants