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

Maniac Patch : Fix String Vars with ShowPicture #3182

Closed
wants to merge 2 commits into from

Conversation

ToolMan2k
Copy link
Contributor

Added the following:

  • Check if we're using a string variable with com.parameters[17]
  • Set the name parameter to the String Variable

Fixed the following:

  • When using a String Var with ShowPicture, it no longers crash the game with picture ID -1

Before: 😿
EasyRPG-Failure

After: 😺
EasyRPG-Winners

@jetrotal
Copy link
Contributor

jetrotal commented Jan 7, 2024

Thanks!

String Vars is a very recent implementation, I wonder if more commands can break when using it.

@ToolMan2k
Copy link
Contributor Author

ToolMan2k commented Jan 7, 2024

Well as you say that. I managed to misplace a "]" character.
Fixed it, now it works!

@jetrotal
Copy link
Contributor

jetrotal commented Jan 7, 2024

@ToolMan2k thx again!

One suggestion:
image

Squashing commits like "fixing typos" or "remove debug/comments" always help shortening and maintaning the list of commits

Added the following:
- Check if we're using a string variable with com.parameters[17]
- Set the name parameter to the String Variable

Fixed the following:
- When using a String Var with ShowPicture, it no longers crash the game with picture ID -1
While testing, I found out the following things:
- You cannot mix multiple Variable types for each parameters
- When using Variables for Picture Tint, parameter 17 is set to 4096 (0x100),
- When using Var Indexes for Picture Tint, parameter 17 is set to 8192 (0x200),
- Before, parameters for red, green, blue and saturation were always constants.
- Surprisingly this feature doesn't work with ShowStringPicture

Added:
- Variable and VarIndex support for Tinting using ShowPicture and MovePicture using bitfields
@ToolMan2k
Copy link
Contributor Author

Squashing commits like "fixing typos" or "remove debug/comments" always help shortening and maintaning the list of commits

Will do!

@Ghabry
Copy link
Member

Ghabry commented Mar 11, 2024

I fixed a bug and moved the commits into you other PR. thanks!

@Ghabry Ghabry closed this Mar 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants