Main Restorations Software Audio/Jukebox/MP3 Everything Else Buy/Sell/Trade
Project Announcements Monitor/Video GroovyMAME Merit/JVL Touchscreen Meet Up Retail Vendors
Driving & Racing Woodworking Software Support Forums Consoles Project Arcade Reviews
Automated Projects Artwork Frontend Support Forums Pinball Forum Discussion Old Boards
Raspberry Pi & Dev Board controls.dat Linux Miscellaneous Arcade Wiki Discussion Old Archives
Lightguns Arcade1Up Try the site in https mode Site News

Unread posts | New Replies | Recent posts | Rules | Chatroom | Wiki | File Repository | RSS | Submit news

  

Author Topic: emu4crt Mednafen mod - update 1.26.1  (Read 110737 times)

0 Members and 4 Guests are viewing this topic.

Dalba

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 54
  • Last login:April 24, 2024, 08:42:40 am
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #320 on: November 11, 2022, 04:17:16 am »
Hi @Dalba,
Can you attach stdout.txt?

Are you test with switchres option? Or only with native and super?

EDIT: Ups, here too! Fixed. https://drive.google.com/file/d/1OdpKdz3EETaI7O5CVVMzuJUT3EhGT_3T/view?usp=sharing

I will update git too, thank you!

Thanks for being so reactive !
But in seiken densetsu 3, while menu is fixed on my side too, message boxes still appear zoomed in 2x like my screenshot below.
Tested in native and super resolution mode.

New screenshot of the problem :



Do you have the same behavior too or is it just on my setup ?

« Last Edit: November 11, 2022, 05:25:15 am by Dalba »

psakhis

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 453
  • Last login:Yesterday at 05:22:43 am
  • I want to build my own arcade controls!
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #321 on: November 11, 2022, 05:49:40 am »
Isn't your setup, here happens too with snes and snes_faust

I'll check this

This game is constantly changing to 512/256 when text appears (so when will be fixed the way to go is super resolution)

psakhis

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 453
  • Last login:Yesterday at 05:22:43 am
  • I want to build my own arcade controls!
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #322 on: November 12, 2022, 01:08:08 pm »
I think now it's fixed
https://drive.google.com/file/d/1gqNcEVcXhQRKvmQguDbjVagZdzdezqOZ/view?usp=sharing

This game raster differents widths on some scanlines; i needed to change some code about resolution on X.

If you no detect any problem, i will upload updates on git.

Dalba

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 54
  • Last login:April 24, 2024, 08:42:40 am
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #323 on: November 13, 2022, 06:15:21 am »
I think now it's fixed
https://drive.google.com/file/d/1gqNcEVcXhQRKvmQguDbjVagZdzdezqOZ/view?usp=sharing

This game raster differents widths on some scanlines; i needed to change some code about resolution on X.

If you no detect any problem, i will upload updates on git.

Thank you very much ! It's now fixed on my setup too ! Play much better in super resolution, as there's a lot of switching in native.

Moksi

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 194
  • Last login:April 20, 2024, 01:12:43 pm
  • I want to build my own arcade controls!
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #324 on: November 20, 2022, 03:52:28 am »
nice came late to the party , how does the mednafen emu4crt handle the STV arcade games compared with Mame.
like Die Hard Arcade in mame runs all bugged.



Moksi

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 194
  • Last login:April 20, 2024, 01:12:43 pm
  • I want to build my own arcade controls!
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #325 on: November 20, 2022, 04:10:46 am »
had some trouble setting it up but i just replaced the exec over an older version ,  i can use the mame romset i suppose?
« Last Edit: November 20, 2022, 04:15:40 am by Moksi »

psakhis

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 453
  • Last login:Yesterday at 05:22:43 am
  • I want to build my own arcade controls!
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #326 on: November 20, 2022, 04:38:53 am »
Just put decompressed stvbios on firmware folder and your mame roms work with zip format (7z isn't supported)

haynor666

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1471
  • Last login:April 22, 2024, 03:17:30 am
  • retro maniac
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #327 on: November 20, 2022, 07:11:03 am »
Anyone tried to set display2 in emu4crt? I'm trying to force Shienryu on second display (vertical) but no luck so far.

psakhis

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 453
  • Last login:Yesterday at 05:22:43 am
  • I want to build my own arcade controls!
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #328 on: November 20, 2022, 10:31:18 am »
Anyone tried to set display2 in emu4crt? I'm trying to force Shienryu on second display (vertical) but no luck so far.
Check this value on mednafen.cfg. Test with 1 or 2.

;Display to use with fullscreen mode.
video.fs.display -1

haynor666

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1471
  • Last login:April 22, 2024, 03:17:30 am
  • retro maniac
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #329 on: November 21, 2022, 08:21:21 am »
I think I tried already in emu4crt and official mednafen.

emu4crt [game] -video.fs.display 2 didn't work. Also creating shienryu.cfg and setting there video.fs.display 2 didn't work as well.

Switchres has in own option this method appears do not work.

psakhis

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 453
  • Last login:Yesterday at 05:22:43 am
  • I want to build my own arcade controls!
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #330 on: November 21, 2022, 11:38:59 am »
The file for overload config is shienryu.ss.cfg

You can check stdout.txt looking for which display is set, look for: video_settings.fs_display

haynor666

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1471
  • Last login:April 22, 2024, 03:17:30 am
  • retro maniac
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #331 on: November 21, 2022, 03:50:45 pm »
Ok, I only miss ss in config name. Now it's working but worth to mention that switchres changes resolutions on both displays not only on second.

Thanks for help psakhis :)

psakhis

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 453
  • Last login:Yesterday at 05:22:43 am
  • I want to build my own arcade controls!
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #332 on: November 22, 2022, 01:10:25 pm »
Are you using switchres, super or native?

haynor666

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1471
  • Last login:April 22, 2024, 03:17:30 am
  • retro maniac
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #333 on: November 22, 2022, 05:03:15 pm »
Super for most time. I think I have only 640x480 as the only native resolution.

psakhis

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 453
  • Last login:Yesterday at 05:22:43 am
  • I want to build my own arcade controls!
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #334 on: November 23, 2022, 03:57:33 am »
Ok, you can try using switchres with super resolutions

 -shienryu.ss.switchres.ini with 2560x0 or 3520x0 on user_mode (the super mode do you want)
 -shienryu.ss.cfg with video.resolution_switch switchres

haynor666

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1471
  • Last login:April 22, 2024, 03:17:30 am
  • retro maniac
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #335 on: November 23, 2022, 04:25:00 am »
I'll try this today.

But from my own examination - st-v during boot changes resolutions couple times. Used resolutions are 448x352, 224x352 and finally during game 240x320.

psakhis

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 453
  • Last login:Yesterday at 05:22:43 am
  • I want to build my own arcade controls!
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #336 on: November 23, 2022, 10:36:27 am »
Yes, it depends on st-v bios too. If configured tate or not.

haynor666

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1471
  • Last login:April 22, 2024, 03:17:30 am
  • retro maniac
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #337 on: November 27, 2022, 08:39:50 am »
I had to use native option for ST-V because for unknown reason 3520x480 even if it's generated by VMMaker correctly does not show in Arcade OSD and mednafen cannot use as well.

For 352x240 and 704x480 are generated and appears to be working correctly at least for Cotton Bomerang.

Endprodukt

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 688
  • Last login:November 14, 2023, 12:54:43 pm
  • I want to build my own arcade controls!
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #338 on: November 27, 2022, 08:42:31 am »
I had to use native option for ST-V because for unknown reason 3520x480 even if it's generated by VMMaker correctly does not show in Arcade OSD and mednafen cannot use as well.

For 352x240 and 704x480 are generated and appears to be working correctly at least for Cotton Bomerang.

I had nothing but problems with using super resolutions on stv. Going native did the trick for me. It's just a couple of resolutions.

haynor666

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1471
  • Last login:April 22, 2024, 03:17:30 am
  • retro maniac
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #339 on: November 27, 2022, 08:59:06 am »
Yeah, a bit strange.

BTW. Is there possibility map F8(insert coin) to button?

psakhis

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 453
  • Last login:Yesterday at 05:22:43 am
  • I want to build my own arcade controls!
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #340 on: November 28, 2022, 03:14:34 am »
Of course, look for "command.insert_coin" in .cfg file

contemplator

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 14
  • Last login:September 05, 2023, 03:26:33 pm
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #341 on: November 30, 2022, 12:03:22 pm »
Hi,
I tried installing the emu4crt package 1.29-A18.5.1 on latest GA distro (updated) with Mednafen 1.29, but I get the following error message:

Code: [Select]
/usr/bin/ld: drivers/libmdfnsdl.a(video.o): in function `Video_SetSwitchres(int, int, double, int)':
/home/arcade/shared/emu4crt/mednafen/src/drivers/video.cpp:855: undefined reference to `sr_switch_to_mode'
/usr/bin/ld: drivers/libmdfnsdl.a(video.o): in function `Video_Sync(Mednafen::MDFNGI*)':
/home/arcade/shared/emu4crt/mednafen/src/drivers/video.cpp:1170: undefined reference to `sr_init'
/usr/bin/ld: /home/arcade/shared/emu4crt/mednafen/src/drivers/video.cpp:1171: undefined reference to `sr_init_disp'
/usr/bin/ld: /home/arcade/shared/emu4crt/mednafen/src/drivers/video.cpp:1177: undefined reference to `sr_load_ini'
/usr/bin/ld: /home/arcade/shared/emu4crt/mednafen/src/drivers/video.cpp:1186: undefined reference to `sr_load_ini'
/usr/bin/ld: drivers/libmdfnsdl.a(video.o): in function `Video_Kill()':
/home/arcade/shared/emu4crt/mednafen/src/drivers/video.cpp:554: undefined reference to `sr_deinit'
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:3478: mednafen] Error 1
make[2]: Leaving directory '/home/arcade/shared/emu4crt/mednafen/src'
make[1]: *** [Makefile:5332: all-recursive] Error 1
make[1]: Leaving directory '/home/arcade/shared/emu4crt/mednafen/src'
make: *** [Makefile:479: all-recursive] Error 1

Is there a way I can fix this?

psakhis

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 453
  • Last login:Yesterday at 05:22:43 am
  • I want to build my own arcade controls!
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #342 on: November 30, 2022, 12:15:34 pm »
Hi,
Why not 1.31? You have PKGBUILD for it on https://github.com/psakhis/emu4crt/releases

contemplator

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 14
  • Last login:September 05, 2023, 03:26:33 pm
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #343 on: November 30, 2022, 04:12:46 pm »
Had some issues with the system, so anything unstable looked like a no-go  :scared
I managed to reinstall 1.29 .. good old mednafen!
I will try 1.31 for ST-V when I grab some time. Tnx!

psakhis

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 453
  • Last login:Yesterday at 05:22:43 am
  • I want to build my own arcade controls!
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #344 on: January 10, 2023, 11:54:08 am »

New emu4crt A20 released based on mednafen 1.31, major changes for gun games, tested only on GroovyArcade and Guncon2.

All information on git https://github.com/psakhis/emu4crt

phasermaniac

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 318
  • Last login:January 24, 2024, 05:40:47 am
  • I want to build my own arcade controls!
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #345 on: January 12, 2023, 12:31:07 pm »
Just tested with psx. For me the flashing is working only for one of my two guns (p2 in my case).
As far I read Mednafen doesn't support rawinput to support multiple lightguns in "mouse mode" so I'm using guns as joysticks, am I wrong?

psakhis

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 453
  • Last login:Yesterday at 05:22:43 am
  • I want to build my own arcade controls!
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #346 on: January 12, 2023, 01:33:25 pm »
I'm using it as a joystick, with mouse mode i haven't achieved working properly on Mame.

Are you using Windows or Linux?

Shader it's implemented for any guncon port psx.input.portX.guncon.trigger but i can't test here, i only have 1 guncon2.
« Last Edit: January 12, 2023, 01:40:28 pm by psakhis »

phasermaniac

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 318
  • Last login:January 24, 2024, 05:40:47 am
  • I want to build my own arcade controls!
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #347 on: January 12, 2023, 01:58:17 pm »
Maybe another person with two guns can test, for me only one flashes.
I'm using windows. For me mame is working nice with both guns in "mouse mode"
By the way, do you know if Beardypig for guncon driver works in windows?
I'd like to test it but never compiled anything

psakhis

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 453
  • Last login:Yesterday at 05:22:43 am
  • I want to build my own arcade controls!
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #348 on: January 12, 2023, 02:45:37 pm »
I will try to check with mouse as guncon on port2.

For Windows i tried this Beardypig based driver http://forum.arcadecontrols.com/index.php/topic,166121.0.html but i have random disconnects.

On Mame, the calibration tool seems isn't working, something weird with config happens.

EDIT: Your idea for a shader works pretty well for me on Mednafen, thanks for it.
« Last Edit: January 12, 2023, 02:47:35 pm by psakhis »

phasermaniac

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 318
  • Last login:January 24, 2024, 05:40:47 am
  • I want to build my own arcade controls!
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #349 on: January 12, 2023, 03:32:32 pm »
Thanks to you by all the work.
by the way, do you think ArcCabView or reshader can support this? I ask because this way maybe could be applied to m2emu, supermodel, flycast, arcadepc...

psakhis

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 453
  • Last login:Yesterday at 05:22:43 am
  • I want to build my own arcade controls!
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #350 on: January 12, 2023, 05:34:15 pm »
Probably something general is possible with a monitor service for capture inputs and enable shader.

I have doubts about latency; in Mednafen shader or Mame lua plugin, input is captured on the frame and as much applied shader on the next blit, so at most only have 1 frame of lag.

The most important thing is only read x,y position when shader is applied, with emulator we can control that, i doubt it with external programs.
« Last Edit: January 12, 2023, 06:09:19 pm by psakhis »

psakhis

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 453
  • Last login:Yesterday at 05:22:43 am
  • I want to build my own arcade controls!
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #351 on: January 13, 2023, 11:15:58 am »

phasermaniac

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 318
  • Last login:January 24, 2024, 05:40:47 am
  • I want to build my own arcade controls!
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #352 on: January 14, 2023, 04:26:42 am »
Thanks now it works for both guns.
Anyway I have to test it better, it doesn't work as good as Mame with lightguns in "mouse mode"

Quote
The most important thing is only read x,y position when shader is applied, with emulator we can control that, i doubt it with external programs.
Well I used an external solution for years, and it works. The problem is the external flasher I use is too agressive (no opacity options), and seems to produce some "tearing" effect (maybe sync doesn't match).
I use autohotinterception to launch the external flasher, delay and shorten the trigger press. But I coudn't find a way to create a better flashing that works in fullscreen games

psakhis

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 453
  • Last login:Yesterday at 05:22:43 am
  • I want to build my own arcade controls!
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #353 on: January 14, 2023, 10:44:25 am »
In my case is working great on Linux. How are you set axis input?

phasermaniac

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 318
  • Last login:January 24, 2024, 05:40:47 am
  • I want to build my own arcade controls!
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #354 on: January 14, 2023, 01:33:57 pm »
 joystick 0x00030b9a016a01000004000800000000 abs_0-+g
But I have to look at the way I convert mice to joysticks, I do with autohotinterception too

psakhis

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 453
  • Last login:Yesterday at 05:22:43 am
  • I want to build my own arcade controls!
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #355 on: January 18, 2023, 12:47:48 pm »
If your gun can be work as a mouse, do you tried it?

mouse 0x0 cursor_x-+
mouse 0x0 cursor_y-+

phasermaniac

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 318
  • Last login:January 24, 2024, 05:40:47 am
  • I want to build my own arcade controls!
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #356 on: January 18, 2023, 02:59:49 pm »
Yes, seems to work better. The downside is as far I know Mednafen doesn't support multiple mice. As I read it's because sdl2 doesn't support rawinput, or am I wrong?

psakhis

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 453
  • Last login:Yesterday at 05:22:43 am
  • I want to build my own arcade controls!
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #357 on: January 18, 2023, 03:38:58 pm »
You can set id on mouse ¿right?

For example for your gun:
mouse 0x00030b9a016a01000004000800000000 cursor_x-+

The second gun, has a different id.

phasermaniac

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 318
  • Last login:January 24, 2024, 05:40:47 am
  • I want to build my own arcade controls!
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #358 on: January 19, 2023, 12:18:51 pm »
I thought only directinput mouse could be used.
And how I get this mice id? In device manager I get something like HID#VID_0B9A&PID_016A&Col01#6&2b30ddbf&2&0000.

« Last Edit: January 20, 2023, 04:03:07 am by phasermaniac »

phasermaniac

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 318
  • Last login:January 24, 2024, 05:40:47 am
  • I want to build my own arcade controls!
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #359 on: January 23, 2023, 04:32:55 pm »
You can set id on mouse ¿right?

For example for your gun:
mouse 0x00030b9a016a01000004000800000000 cursor_x-+

The second gun, has a different id.
Can't get it work. Where do you get that id?
Thanks