|
Post by AkiBot on Jul 2, 2020 5:32:40 GMT
Ive created a scripting suite that work on Nox emulator set to 1920 x 1080 will all screenshots taken with this resolution. How can I port the script over to other devices with different dimensions. I own a Galaxy Note 9 and im not sure what the resolution is but a quick google search showed (1440 x 2960 pixels) . I copied my script and image folder but it did not work. Do i need to retake the screenshots on the Galaxy Note 9 device?
This is how i did my settings:
-- Settings -- SIMILAR = 0.75 WIDTH = 1920 HEIGHT = 1080
Settings:setCompareDimension(true, WIDTH) Settings:setScriptDimension(true, WIDTH) Settings:set("AutoWaitTimeout", TIMEOUT) Settings:set("MinSimilarity", SIMILAR)
Thanks for the help.
|
|
|
Post by AnkuLua on Jul 2, 2020 13:30:51 GMT
Suggest to set the emulator resolution to 1480x720. Set the compare dimensions to 1480 and retake the screenshots.
|
|
|
Post by AkiBot on Jul 2, 2020 18:37:56 GMT
Thank you! Can you tell me how you came up with 1480 x 720 for future reference? Thanks!
|
|
|
Post by Exilereven on Jul 2, 2020 20:55:15 GMT
Because of ratio.
Example. I used to have a galaxy note 4: 16:9 ratio
--any resolution with the same ratio will translate
My new phone is galaxy note 8: 18.5:9
--any resolution with the same ratio will translate
But the 4 is 1080x1920
Note 8 is 1080x1480
If your game is portrait mode (1080) then both resolutions would work if use universal regions, like making then always upper half or lower half of whatever screen. That way it can still image match on both devices.
But if it was landscape 1920 and 1480 is not gonna work.
|
|
|
Post by AkiBot on Jul 2, 2020 21:25:52 GMT
Thank you
|
|