This was part of a POC for the Set Max Scale mod. Setting MaxScale while Isaac is running doesn't do anything by itself. You need to trigger an update by toggling fullscreen or resizing the window. You can toggle fullscreen from Lua code. This was an attempt to resize the window via the SetWindowPos function.
Ultimately, I wasn't very happy with this. I don't think it behaves any better than toggling fullscreen, and it opens up a security risk.
- Run the IsaacSetMaxScaleHelper program
- Run Isaac with
--luadebug
- Use the following Lua code instead of toggling fullscreen
local socketLoaded, socket = pcall(require, 'socket')
if socketLoaded then
local tcp = socket.tcp()
tcp:connect('localhost', 11568)
tcp:send('IsaacSetMaxScaleHelper')
tcp:close()
end