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

Not enough memory #23

Closed
Zulo2012 opened this issue Mar 26, 2018 · 1 comment
Closed

Not enough memory #23

Zulo2012 opened this issue Mar 26, 2018 · 1 comment

Comments

@Zulo2012
Copy link

Hi Komefai I don't know why when detecting some areas I get "out of memory" error, or maybe the macro is working as intended and when the screen changes: error. Do you have any Ideas why some rectmaps are working and others don't for me?
Also why when I turn start play on the macro my remote play gets out of fullscreen? Is this optional?

Congrats on the great job and regards.

@komefai
Copy link
Owner

komefai commented Mar 27, 2018

Hi, the Out of memory error is thrown when you're trying to crop and image to a larger size than the size of the image itself. To avoid this, you have to come up with the resolution that you want and stick with it. This is also why it has to resize when you press the play button. The default size is 1024x768. You can change it by setting this in your script's config (in the constructor):

Config.Name = "Example Script";
// 1080p
Config.TargetSize = new Size(1920, 1080);

This however is just resizing the window and does not make it fullscreen. Using PS4 Remote Play on fullscreen with scripting is highly not recommended because a full screen on one machine does not equal to the full screen resolution on another machine, so please keep that in mind when designing your RectMaps.

There are plans to intercept the graphics directly from the PS4 in the future so the window size / screen resolution won't be a problem then. But sadly, this is the only way for now.

Thanks for the kind words :)

@komefai komefai closed this as completed Mar 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants