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

Emulate legacy rm2k/3 move picture behavior + refactor engine accessors #1969

Merged
merged 3 commits into from
Dec 7, 2019

Conversation

mateofio
Copy link
Contributor

@mateofio mateofio commented Dec 3, 2019

MovePicture command doesn't change position of pictures
with fixed_to_map chunk set.

Used in Destined game See: #1741

Confirmed with Don's rm2k and Japanese rm2k3 RPG_RT 1.0.3

@mateofio mateofio changed the title Emulate legacy rm2k move picture behavior Emulate legacy rm2k/3 move picture behavior + refactor engine accessors Dec 4, 2019
@mateofio mateofio requested a review from carstene1ns December 4, 2019 03:39
@mateofio
Copy link
Contributor Author

mateofio commented Dec 4, 2019

I found a japanese RPG_RT 1.0.3 and discovered it also has the same move picture behavior, so I redid this to be more general.

Needs to be reviewed again.

@mateofio mateofio force-pushed the oldpic branch 3 times, most recently from 8e914be to 6ffe6fe Compare December 4, 2019 04:47
Copy link
Member

@Ghabry Ghabry left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bool IsLegacy();

/** @return If engine is RPG2kUpdated() or RPG2k3Updated() */
bool IsMajorUpdatedVersion();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You changed the range of the functions, e.g. before "IsMajorUpdated" was "Everything not Legacy" and now it is "Every not Legacy and not English/Steam" or are the comments misleading?
When this is intended we need a better naming here. Maybe split between 2kE and 2kJ and for J add additional split 2kJLegacy and 2kJUpdated?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can change the comments, updated should just be >=

We do need better naming. And maybe even finer grained control. Because there are major features differences between these lines. For this PR I just wanted to clean it up a little and support legacy rm2k3, but not completely redo it as I am not yet sure what it should look like.

* Make inline and add more accessors
* Fix comments
* Remove FIXME about number of pictures in 2k3 legacy (confirmed)
* Change IsRPG2k3Legacy() to mean < 1.0.5
MovePicture command doesn't change position of pictures
with fixed_to_map chunk set.

Used in Destined game See: EasyRPG#1741
@Ghabry Ghabry merged commit 1cf9502 into EasyRPG:master Dec 7, 2019
@mateofio mateofio deleted the oldpic branch January 16, 2020 03:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

4 participants