### Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

### Messages - dukpoki

Pages: [1] 2 3 ... 7
1
##### Scripting / Re: Drop shadow layout, may be turned into something useful?
« on: January 29, 2019, 09:18:55 PM »
@Bgoulette

Thanks.  Works perfectly now!

2
##### Scripting / Re: Drop shadow layout, may be turned into something useful?
« on: January 29, 2019, 11:01:51 AM »
One last (?!) iteration of the shader-glow module, based wholly on zpaolo11x's drop shadow and ambient glow shaders and code:

Bgoulette, we need to rename "module.nut" to "drop-shadow.nut" right?  And then place all of those files (1 nut file + 3 glsl files) into "attract/modules/"?  I did that and added these 2 lines into my existing layout and i'm not getting anything.

Code: [Select]
fe.do_nut( "drop-shadow.nut" );local ds = DropShadow( "snap", 10, 100, 100, 10 );

I've also tried dropping those glsl files into the layout folder but no dice.  I feel like i'm missing something very obvious.  Lol

3
##### Scripting / Re: Drop shadow layout, may be turned into something useful?
« on: January 26, 2019, 10:28:29 AM »
As always thanks Z.  By any chance you can do one for texts?

4
##### Scripting / White Image Border + Image Reflection
« on: January 26, 2019, 10:19:43 AM »
Hey guys I've finally understood how to do image mirroring and also how to do dynamic image borders/frames.   The code for the image mirroring is here but I've always got confused how to actually make it work.  There is one flaw with the image mirroring however that i'm not sure how to fix.  Any picture that is very long in length will not work.  Look at Darius in the example pic.  Also the only way to make it look good is on a black background with a custom overlay to "sell" the reflected image, so you are limited to design choices.

But now maybe someone can re-create this:
http://forum.attractmode.org/index.php?topic=747.msg5399;topicseen#msg5399

I've attached a simple theme utilizing the scripts.  Hopefully it's helpful!

5
##### General / Re: Attract Mode 2.5.1 experimental build available for Windows
« on: November 13, 2018, 12:32:35 PM »

I will test if you are trying to fix focus/blackscreen problems.

Currently I'm on  2.0.0.cr2 as it's the only version I've found that works on my arcade cabinet. Most versions of AM work fine on my desktop.

cabinet:  Win7 64bit SP1 aerotheme (necessary) Intel HD2000 integrated graphics.
desktop: Win7 64bit SP1 aerotheme (necessary) NVIDIA GeForce GT 710

I just tried 2.5.0 and your 2.5.1exp with fresh mame0203b 64bit binary.

They both exhibit this bad behaviour:

Game is not running in background. Alt+Tab, windows Key, Alt+F4, ESC all seem to do nothing,
I have to Ctrl+Alt+Del and select Task Manager.
I can then see the various windows tabs in the task bar, and can select Mame.
When I Esc out of the game, the TaskManager is in front of AM, but I can click onto AM
from there everything works fine from then on.

If I do an exit to desktop and then restart AM, I'm back to square1: I get the blackscreen when select a game.

But if it's working on your desktop but not on your cabinet then it's not AM that is the problem, nor is it the version.  It is your computer (particularly the one in your cabinet).  FYI, Mame works perfectly fine with no black screen on v2.5.0 for me.  The only time I had problems is when I started playing with batch files.

6
##### General / Re: Focus problem using batch for pcsx2
« on: November 10, 2018, 09:28:38 AM »
Another update:

I've done some N64 RetroArch batches and they work fine with AM.  It only seems to be my Sega CD batch that doesn't work.  Upon further testing I think the problem is the directory naming convention (look at the rompath in particular).

Currently my directory looks like this:

Code: [Select]
executable           cmdargs                 /c "[romfilename]"rompath              E:\Emulation Data\Sega Genesis & CD\batchromext               .batsystem               Sega CD
If I change it to this it works (I'm also moving the actual batch folder in explorer to match of course):

Code: [Select]
executable           cmdargs                 /c "[romfilename]"rompath              E:\Emulation Data\Sega_CD\batchromext               .batsystem               Sega CD
So in conclusion, the problem is either the "&", the "CD", or both, probably preceded by a space.  I've tried putting the whole path in quotation which didn't really do anything.  I am now completely stumped as to reasoning why this wouldn't work.  Also another odd thing about all this is that the original rompath with the spaces, "&", and "CD" was working just fine in the rompath field before I started switching over to batches.  Weird.  Of course, the easy solution is to just rename the folder to say "SegaCD" or "Sega_CD", which i'm totally doing.  But it would be nice to understand exactly where and why it's throwing off the code.

EDIT: The problem is the "&".  I've tried "SegaCD CD", "SegaCD &" , "Sega_&".   Anytime there's an "&" it seems to not work.  Still not sure why it doesn't work for batches while "&" is totally fine to use in the rompath any other time.

7
##### General / Re: Bear with me and this bug report please (AM not launching emulator).
« on: November 09, 2018, 09:35:42 PM »
@xod:  Along with MameUI, another thing you could do is try one of RetroArch's really old Mame cores.  Any of their Mame cores with a date (for example: Mame 2010 core) would mean it's the older variant.  Not exactly sure which one 0.78 romset would fall under though for use, or if you'd have to download a new set.  But the older cores would be perfect for you because they would optimized for weaker hardware setups.

Yes, that's what I had in mind. 0.78 = 2003, does RA have that ?

Yup they do.

8
##### General / Re: Bear with me and this bug report please (AM not launching emulator).
« on: November 09, 2018, 06:49:09 PM »

"[romfilename]" --fullscreen --nogui --cfgpath="Path\to\Game Configs\[name]"

Wow i feel stupid for not thinking of that.   Haha (at least I did eventually manage to get the batch files to work)

@xod:  Along with MameUI, another thing you could do is try one of RetroArch's really old Mame cores.  Any of their Mame cores with a date (for example: Mame 2010 core) would mean it's the older variant.  Not exactly sure which one 0.78 romset would fall under though for use, or if you'd have to download a new set.  But the older cores would be perfect for you because they would optimized for weaker hardware setups.

9
##### General / Re: Focus problem using batch for pcsx2
« on: November 09, 2018, 08:18:09 AM »
Update: I fixed the pcsx2 problem.  The issue was the "start" in the batch code.  Once I removed it, AM now properly gives focus to PCSX2.

So i went from this:

Code: [Select]
@echo offcd /D "E:\pcsx2\" start pcsx2.exe "E:\Sony Playstation 2\isos\Amplitude (USA)\Amplitude (USA).iso" --nogui --fullscreen --fullboot
to this:

Code: [Select]
@echo offcd /D "E:\pcsx2\" pcsx2.exe "E:\Sony Playstation 2\isos\Amplitude (USA)\Amplitude (USA).iso" --nogui --fullscreen --fullboot
And that magically did the trick!

Still can't figure out why RA is not working though.  Again, it doesn't even boot at all.

10
##### General / Re: Bear with me and this bug report please (AM not launching emulator).
« on: November 09, 2018, 07:23:31 AM »
I have read others using bat scripts as bridges. What is the actual reason for that though ?

Not sure really.  I'm personally trying to get batches to work because PCSX2 doesn't have a great per game config system built-in to the emulator itself in the same way say, Dolphin does.  The way PCSX2 handles it, is to have a folder with separate ini files and then launch the game via command prompt with the directory to the ini as part of the argument.   That is the only reason i'm trying to use batch scripts--to setup individual games with their own specific arguments.  Now i know there's other various ways to go about doing it for example creating lnk files or using the "custom argument" field that's built-in AM itself (press Esc+down) but I like working with batch files.  (btw there's also a limitation in lnk shortcuts where the "target" field has a maximum character limit which becomes problematic to some code/game combinations, especially games with long names.)

11
##### General / Re: Focus problem using batch for pcsx2
« on: November 09, 2018, 07:13:03 AM »
Note that the batch itself works perfectly fine when you double click it outside of AM.

Same thing is observed by me launching AM -> MAME 0.78, vs launching MAME 0.78 directly (without AM). Runs fine without AM, but with AM I have to either have any random application('s window) set to "always on top", or have terminated Explorer.exe (the shell), or run AM in windowed mode. Just for the purpose of gathering knowledge, have you tried having some application window "always on top" (while NOT minimizing that window) ? Try Task Manager and click menu item Options -> Always On Top. Then without minimizing that Task Manager window, launch AM and a game/bat, will it work then ? If yes, then we at least know that you are likely suffering the same probelm as me. To further verify, you should download Process Monitor. It's available for download at microsoft: https://docs.microsoft.com/en-us/sysinternals/downloads/procmon

If you download Process Monitor, I can help you to create a filter (not related to AM filters) for pcsx2.exe, and see how long/short that process runs. There is far more info provided by Process Monitor, but as I'm new and haven't learned much, I will go no further. And I write "help" because Process Monitor filters can be confusing for the beginner, but simple once you grasp them. If you're interested let me know.

FYI, I just tried the task manager with Always on Top enabled but it didn't work for me.  PCSX2 still runs in the background with AM in focus instead.

12
##### General / Re: Focus problem using batch for pcsx2
« on: November 08, 2018, 12:18:41 PM »
I have another problem.  I tried creating batch files for Retroarch using a Sega CD game and tested it in AM to see if the same thing would happen (focus lost in the background) however, with the Retroarch batch, the game doesn't even boot at all.  Using Attract-console, I see that it launches the batch once selected but nothing ever transpires from it.  Note that the batch itself works perfectly fine when you double click it outside of AM.

Codes are as follow:

Code: [Select]
executable           cmdargs                 /c "[romfilename]"rompath              E:\Emulation Data\Sega Genesis & CD\linksromext               .batsystem               Sega CD

Code: [Select]
@echo offcd /D "E:\Running Emus\RetroArch\" start retroarch.exe -L "E:\Running Emus\RetroArch\cores\genesis_plus_gx_libretro.dll" "E:\Emulation Data\Sega Genesis & CD\Sega CD isos\Snatcher (USA)\Snatcher (USA).cue"
I've also tried an alternative batch method which resulted in the same thing.

Code: [Select]
@echo offstart "" "E:\Running Emus\RetroArch\retroarch.exe" -L "E:\Running Emus\RetroArch\cores\genesis_plus_gx_libretro.dll" "E:\Emulation Data\Sega Genesis & CD\Sega CD isos\Snatcher (USA)\Snatcher (USA).cue"

13
##### General / Re: Bear with me and this bug report please (AM not launching emulator).
« on: November 08, 2018, 10:30:17 AM »
Hehe, I'm getting tired of all this.

Totally feel the same way at the moment because I'm having the same problem with running pcsx2 via batch files.  lol

14
##### General / Re: Focus problem using batch for pcsx2
« on: November 08, 2018, 09:22:37 AM »
What happens, if you set the resfix plugin to your emulator-display?
start AM > press TAB key > Plug-ins > ResFix > Enabled : Yes > Specific Emulators : name_of_your_emulator_display

Just tried it.  It didn't help.  PCSX2 is still running in the background.

15
##### General / Focus problem using batch for pcsx2
« on: November 08, 2018, 12:33:58 AM »
So normally I've been running my pcsx2 games with the standard args in the cfg.  Like this for example:
Code: [Select]
executable           E:\pcsx2\pcsx2.exeargs                 "[romfilename]" --nogui --fullscreen --fullbootrompath              E:\Sony Playstation 2\isos\Amplitude (USA)ext                  .iso

Recently I decided to try batch files instead, so I switched over to this:
Code: [Select]
executable           cmdargs                 /c "[romfilename]"rompath              E:\Sony Playstation 2\batchfilesromext               .bat

The problem i'm having with the batch method, is every time I start a game in AM, it will boot but will be playing in the background with AM in focus instead.   I'm not sure what i'm doing wrong, or even how to fix this.  Here is a sample of a batch file for a game:
Code: [Select]
@echo offd:cd /D "E:\pcsx2\" start pcsx2.exe "E:\Sony Playstation 2\isos\Amplitude (USA)\Amplitude (USA).iso" --nogui --fullscreen --fullboot
Anyone have a clue on how to fix this?

Pages: [1] 2 3 ... 7