Light Sock Posted November 5, 2019 Share Posted November 5, 2019 (edited) Hi, I'm using the Sega arcade Model 2 Emulator from Nebula. The games launch fullscreen and are 16x9 instead of 4x3. This topic gives a hack to add black bars with a .lua file which works in windowed mode. Unfortunately once in fullscreen it ignores the hack and still show the game stretched. Here's an example of the lua file that needs some love: require("model2"); -- Import model2 machine globals function Init() end function Frame() Model2_SetWideScreen(1) Model2_SetStretchALow(1) Model2_SetStretchAHigh(1) Model2_SetStretchBLow(1) Model2_SetStretchBHigh(1) end Thanks for anyone who'll be able to help me figure this out Edited November 5, 2019 by G22 Quote Link to comment Share on other sites More sharing options...
DOS76 Posted November 6, 2019 Share Posted November 6, 2019 doesn't it say to set it to zero if you want 4:3 that is set to one for 16:9 Quote Link to comment Share on other sites More sharing options...
DOS76 Posted November 6, 2019 Share Posted November 6, 2019 Its weird that you even need to use the hack as the games are native 4:3 for me without needing to do anything to them Quote Link to comment Share on other sites More sharing options...
Ricardo Gomes Posted May 2, 2020 Share Posted May 2, 2020 Does anyone have found a solution for this problem? I do have a ultrawide screen, and when using the newest version of the model 2 emulator in Fullscreen with Max resolution (3840x1600), it stretches the whole image instead of just keeping the game with the 4:3 aspect ratio. Unfortunately the lua Hack doesn't work for me. Many thanks for your help. Quote Link to comment Share on other sites More sharing options...
Retro808 Posted May 2, 2020 Share Posted May 2, 2020 26 minutes ago, Ricardo Gomes said: Does anyone have found a solution for this problem? I do have a ultrawide screen, and when using the newest version of the model 2 emulator in Fullscreen with Max resolution (3840x1600), it stretches the whole image instead of just keeping the game with the 4:3 aspect ratio. Unfortunately the lua Hack doesn't work for me. Many thanks for your help. Like Dos mentioned in his post you should not need a hack. It can run in 4:3 natively. I would check your emulator.ini and make sure in the line for WideScreenWindow it is set to 0. Quote Link to comment Share on other sites More sharing options...
Headrush69 Posted May 2, 2020 Share Posted May 2, 2020 For those not comfortable editing the emulator.ini, check out the Sega Model 2 UI. You'll still call the default emulator from LB, but for testing and trying things out it handy. You'll likely get a spam warning about print.dll, it's a false positive. You can read the thread above where the developer explains and shows what it does. Quote Link to comment Share on other sites More sharing options...
Ricardo Gomes Posted May 2, 2020 Share Posted May 2, 2020 3 hours ago, Retro808 said: Like Dos mentioned in his post you should not need a hack. It can run in 4:3 natively. I would check your emulator.ini and make sure in the line for WideScreenWindow it is set to 0. Believe me, I tried everything and Sega Rally still streched ou in FullScreen mode. Please check my Emulator INI and Lua Files attached. Aswell my Screenfotos EMULATOR.INI EMULATOR (Test).INI srallyc.lua srallyc (Test).lua Quote Link to comment Share on other sites More sharing options...
Headrush69 Posted May 2, 2020 Share Posted May 2, 2020 (edited) My srallyc.lua is completely different. Quote require("model2") function Init() end function Frame() local state = I960_ReadByte(0x202098) local state2 = I960_ReadByte(0x20209C) local state3 = I960_ReadByte(0x2020AC) if state==3 and state2==5 and state3==1 then Model2_SetWideScreen(0) else Model2_SetWideScreen(1) end end I could have updated somewhere along the line, I don't remember, but 4:3 and 16:9 both work by setting WideScreenWindow=. (Even though it says WIndow, affects Fullscreen) Edit: I downloaded a clean copy of m2emulator 1.1a and your srallyc.lua doesn't match the one included. You must have updated from another source. Maybe they are the problem. Edit 2: Looks like my updated widescreen scripts all came with the Sega Model 2 UI I linked to above. Edited May 2, 2020 by Headrush69 Quote Link to comment Share on other sites More sharing options...
Ricardo Gomes Posted May 2, 2020 Share Posted May 2, 2020 I have the same as you too... The ones I uploaded where those from topskatr.lua...apparently the solution to the problem (see first post). Neither with the original or the fix works by me. Quote Link to comment Share on other sites More sharing options...
Headrush69 Posted May 2, 2020 Share Posted May 2, 2020 (edited) 2 hours ago, Ricardo Gomes said: I have the same as you too... The ones I uploaded where those from topskatr.lua...apparently the solution to the problem (see first post). Neither with the original or the fix works by me. Those posts are 3 years old, I'd stick with the newer scripts. Like others have mentioned it should default to 4:3 so not sure what's causing your issue. Maybe that ultrawide resolution is causing an issue. Maybe setting the resolution to 2048x1536 in emulator.ini with WideScreenWindow=0 and see if that changes anything. Edited May 2, 2020 by Headrush69 Quote Link to comment Share on other sites More sharing options...
Ricardo Gomes Posted May 2, 2020 Share Posted May 2, 2020 Yep, that was the issue, I came to that idea before your reply, anyway thank you very much... it works perfectly with 2048x1536. Quote Link to comment Share on other sites More sharing options...
Headrush69 Posted May 2, 2020 Share Posted May 2, 2020 Must be huge black bars with that ultra wide. Check out some of those newer lua scripts, some work well at 16:9 without stretching. Might at least get you a little more picture on that wide screen. Quote Link to comment Share on other sites More sharing options...
Retro-75 Posted October 1, 2020 Share Posted October 1, 2020 I had this same issue, and it appeared that the emulator was ignoring the ini settings. I was able to fix it. The issue was with my display settings, not the emulator. I have a NVIDIA graphics card and under "Display" ->"Adjust desktop size and position", I changed "Perform scaling on:" from 'Display' to 'GPU'. This fixed it for all games. It appears that display scaling settings were overriding the emulator. Give it a try! 1 Quote Link to comment Share on other sites More sharing options...
DarthTrayon Posted October 15, 2020 Share Posted October 15, 2020 Genius! Works! *kiss* Quote Link to comment Share on other sites More sharing options...
DontPanic Posted April 27, 2021 Share Posted April 27, 2021 On 10/1/2020 at 8:42 AM, Retro-75 said: I had this same issue, and it appeared that the emulator was ignoring the ini settings. I was able to fix it. The issue was with my display settings, not the emulator. I have a NVIDIA graphics card and under "Display" ->"Adjust desktop size and position", I changed "Perform scaling on:" from 'Display' to 'GPU'. This fixed it for all games. It appears that display scaling settings were overriding the emulator. Give it a try! Thank goodness you figured it out. This sort of thing drives me crazy. Quote Link to comment Share on other sites More sharing options...
Your Friendly A.I Overlord Posted August 6, 2022 Share Posted August 6, 2022 19 minutes ago, SLUGIE79 said: No matter what number I put in anyway it always stays at 4:3 You must set up m2emulator to actually use the resolution entered in the .ini file. Open m2emulator > Video > Fullscreen Resolution > tick Custom (Set in .ini). Quote Link to comment Share on other sites More sharing options...
Your Friendly A.I Overlord Posted August 6, 2022 Share Posted August 6, 2022 (edited) 30 minutes ago, SLUGIE79 said: Hi Overlord I have already done that and it made no difference? Any other ideas thank you - Check your emulator.ini file if the following line appear (exactly): ;These options are configured from menus so don't touch FullMode=4 Sound=1 Frameskip=-1 AutoFull=1 - Check if you have m2emulator installed multiple times on your pc. Actually I mean that the emulator path in LaunchBox is the same emulator as you have configured. Sometimes people have multiple installations of the same emulator and point LaunchBox to a different installation as they have configured and wonder why it doesn't work. - Add LUA scripts for proper widescreen support to m2emulator. Somebody posted some recently here: Edited August 6, 2022 by Your Friendly A.I Overlord Quote Link to comment Share on other sites More sharing options...
Your Friendly A.I Overlord Posted August 6, 2022 Share Posted August 6, 2022 In your emulator.ini screenshot you have set the resolution to 3840x2160 and widescreen. Your gameplay screenshot shows a 4:3 ratio. A widescreen resolution in a 4:3 frame would look like if it's quashed. But your screenshot looks proper 4:3 and that makes me believe your settings from your emulator.ini are not being applied. 9 minutes ago, SLUGIE79 said: what about if i did the same as sega model 3 and changed the high DPI settings in the emulator as in image ? I don't think that that would make a difference as the image is proper fullscreen. Just not 16:9. For further solutions I am all out of ideas I'm afraid. Quote Link to comment Share on other sites More sharing options...
Your Friendly A.I Overlord Posted August 6, 2022 Share Posted August 6, 2022 22 minutes ago, SLUGIE79 said: Do you think its work starting again with the emulator and see if it works could the resolution size of 3840x2160 be affecting the emulator maybe as its too big of a resolution for emulator?? If it's worth starting over again that's up to you. But I have it running at 3840x2160 widescreen so it's not that the emulator isn't capable of it. Quote Link to comment Share on other sites More sharing options...
Your Friendly A.I Overlord Posted August 6, 2022 Share Posted August 6, 2022 7 minutes ago, SLUGIE79 said: changing the emulator ini, should i be changing the game ini instead? Afaik m2emulator doesn't have game .ini's. At least, I don't have them. And if you do have them, maybe they are overriding emulator.ini. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.