Recent Posts

Pages: [1] 2 3 ... 10
1
Scripting / history scroller WIP
« Last post by mahuti on Today at 12:02:48 AM »
I started writing a scroller for the history.dat info in one of my layouts. It works pretty well, but I know for a fact that I need to get a little more sophisticated with it before it manages every scenario correctly.

So far it's useful, but not 100%, so I figured I'd share the basic premise in the hope that it might spark an idea for someone else.

What this does is use the font size to guess the height of the text that comes back from the history.dat plugin and then scroll that amount up off the screen before resetting it at the bottom

The calculation so far is this:

total character count of the history data / (assumed/guessed) average # of characters per line of text (this gets a guess on the total number of lines of text) *  font height = overall guestimate of the text box height

This doesn't account for text boxes that are wide enough to allow for more characters per line than a standard book / article might be (this is usally 56-70 characters, my guess is set at 75). It would make more sense for me to set it based on how wide a character is in pixels and how many chars could fit in the current text box than assume number of characters per line.

I suppose there's some way to calculate the size of 1 average character like X and make a guestimate based on that. There's probably some greedy algorithm out there for this purpose too, but I haven't had time to look for it.

Anyway, let me know if you have any ideas or experiment. The attached file may have bugs in it... I culled it from a layout I was working on and tried to distill it down to a minimum so you could see what i was doing, I haven't had time to JUST test this script on its own.
2
😎✌✔
3
Themes / Re: Theme Trippy Gamming Room (This theme is a trippy)😎✌✔
« Last post by Karlosworkz on Yesterday at 11:59:32 PM »
😎✌✔
4
Themes / Re: DynamicArcade layout beta-v7 released 18 Jan 2021
« Last post by tsaylor on Yesterday at 10:24:28 PM »
Actually it looks like both methods worked. Sorry, it flashes pretty fast and wasn't obvious to me. But I see rounded corners on both tests.
5
Themes / Re: DynamicArcade layout beta-v7 released 18 Jan 2021
« Last post by jclampy69 on Yesterday at 10:22:08 PM »
No, that is fine. Another user has sent me some screenshots.

With your confirmation of test2 working I will use that approach. I'll implement it, organise a beta-v8 and release it after dinner tonight.
Thanks.
6
Themes / Re: DynamicArcade layout beta-v7 released 18 Jan 2021
« Last post by tsaylor on Yesterday at 10:08:44 PM »
Thanks, that was fast. Yeah, I thought alt+tab would work too, but when I do so I see no other windows (other than whatever else is running). But anyway...

With test1 I believe I see scanlines but not rounded corners. In test2 I see both. But for some reason the videos are also working in both cases (was that even expected?). And the title screens immediately go away (whether there is a video to show or not), so it's difficult to catch a screenshot. Is there an easy way to make the title screen remain? I can modify the .nut files if you like.
7
Themes / Re: DynamicArcade layout beta-v7 released 18 Jan 2021
« Last post by jclampy69 on Yesterday at 07:45:09 PM »
...I'm using an AMD Radeon 7850, so not Nvidia. I'm on Windows 10, 64-bit.
Ok, here are two separate test patches I will get you try. This is only for the Title Screens at moment, will put it to Video Snaps if one of them works.
Do you have a Title Screen image that is of 640x480 resolution to test with? If not just make one that size, doesn't matter about quality for testing these purposes.

1) backup your DynamicArcade folder.. (make it easier to get back to where you are now)
2) extract test1.zip into DynamicArcade folder (overwriting files)
3) run Attractmode and take a screenshot of what the Title Screen looks like on the cabinet. I need to see what it looks like so upload or link the image here.

4) exit Attractmode if you still have it running.
5) extract test2.zip into DynamicArcade folder (overwriting files)
6) run Attractmode and take a screenshot of what the Title Screen looks like on the cabinet. I need to see what it looks like so upload or link the image here.

Hopefully one or both of these tests works.
https://drive.google.com/file/d/1JMbuMzyrwGNUawWW34Z4jexJhq4Gn7a6/view?usp=sharing
https://drive.google.com/file/d/1OfMced0qo50hqo9d9gC-bK51H4gxpaG3/view?usp=sharing

Because I'm in process of working on beta-v8 you also need to change the naming conventions in your Attractmode/emulators/ folder mame.cfg file:
artwork    wheel
artwork    cabinets
artwork    marquee 
artwork    tscreens
artwork    snap

wheel is the game logos
snap is the game videosnaps
marquee has no s on end now

What I'm primarily looking for is the rounding of the corners.. So you will need to test with a Title Screen that has a background colour as I did in my example in the above post.
The scanlines I will modify the look of (not so dark) if we decide to move forward with it.
8
Themes / Re: DynamicArcade layout beta-v7 released 18 Jan 2021
« Last post by jclampy69 on Yesterday at 07:13:45 PM »
You should be able to [alt]+[tab] to switch between Attractmode and the Console window?

I've nearly got a couple of test files ready that I'll get you to run and see if they work. Might be an acceptable 'work around' for the CRT-Lottes shader.
See sneak preview below of image on the cabinet screen.
9
Themes / Re: DynamicArcade layout beta-v7 released 18 Jan 2021
« Last post by tsaylor on Yesterday at 06:06:40 PM »
Thanks jclampy69, hope you feel better soon! And yes, I'm using an AMD Radeon 7850, so not Nvidia. I'm on Windows 10, 64-bit.

I'm running the daily build, but the console window seems to go away as soon as the main window appears (maybe I'm just not sure how to use that). But I can run with --loglevel debug and look at the last_run.log. Not sure if there's anything useful below.

It's not clear to me exactly which shaders are working but I assume most of them are. I can see the logo ripple, the marquee is "lit", and I think the background video is blurred. If you make those options in some future version it would be easier to check, but it seems like most shaders work fine.

Code: [Select]
Attract-Mode v2.6.1 (Windows, SFML 2.5.1 +SWF +7z +Curl)
avcodec 58.54.100 / avformat 58.29.100 / swscale 5.5.100 / avutil 56.31.100 / swresample 3.5.100

NvAPI: nvapi64.dll loaded
NvAPI: Initialize: NVAPI_NVIDIA_DEVICE_NOT_FOUND
[skipped some loading...]

Loaded layout: C:\Emulators\AttractMode\layouts/DynamicArcade/ (layout.nut)
[Transition] type=StartLayout, var=2
Caching contents of artwork path: C:\Emulators\AttractMode/menu-art/mame/marquee/ (68 entries).
Caching contents of artwork path: C:\Emulators\AttractMode/menu-art/mame/snap/ (135 entries).
FFmpeg: Reinit context to 256x224, pix_fmt: yuv444p
Caching contents of artwork path: C:\Emulators\AttractMode/menu-art/mame/cabinet/ (61 entries).
[Transition] type=ToNewList, var=0
FFmpeg: Reinit context to 1920x1088, pix_fmt: yuv420p
FFmpeg: Reinit context to 256x224, pix_fmt: yuv444p
Initializing resampler: in_sample_fmt=fltp, in_sample_rate=48000, out_sample_fmt=s16, out_sample_rate=48000
Handling command: exit
FFmpeg: Discarding ID3 tags because more suitable tags were found.
FFmpeg: parser not found for codec pcm_s16le, packets or times may be invalid.
End Video Thread - C:\Emulators\AttractMode\layouts/DynamicArcade/bkgd_anim.mp4
 - bit_rate=946449, width=1920, height=1080
 - displayed=132
 - average qscore=15
End Video Thread - C:\Emulators\AttractMode\menu-art\mame\snap\punchout.mp4
 - bit_rate=272029, width=256, height=224
 - displayed=114
 - average qscore=15
[Transition] type=EndLayout, var=2
Attract-Mode ended normally

10
Themes / Re: At-The-Arcade MOD CoinOPSDiamondsDynamic
« Last post by tsaylor on Yesterday at 05:41:53 PM »
Thanks damonxxx. That sounds like a good approach, using a secondary marquee folder. I mostly just passed that along in case this is an ongoing project where you would want to correct those (perhaps by adjusting the top of the cabinet so that it either fits a normal marquee or simply covers up the normal marquee area.

And yeah, I think I have that same crappy marquee. I haven't found a clone with a cabinet, but that's fine, I'll just let it show the default generic one.

Also thanks for the mention of the other themes. I've been following those as well.
Pages: [1] 2 3 ... 10