Author Topic: Game Station Theme v2.6.3 (Support 4:3 & Wide Screen now)  (Read 104960 times)

Favdeacon

  • Sr. Member
  • ****
  • Posts: 129
    • View Profile
Re: Game Station Theme v2.6.3 (Support 4:3 & Wide Screen now)
« Reply #75 on: February 07, 2017, 10:33:00 AM »
I found the solution through multiple hours of trying to lern/understand squirrel and raw trial-and-error. :P The cause of the phenomenon are the zeros in the wheel_y variable in the layout.nut file. They have to be replaced with values that lie between the non-zero numbers.

Code: [Select]
local wheel_y = [ 0, fly*-0.080, fly*0.036, fly*0.152, fly*0.268, fly*0.384, fly*0.500, fly*0.616, fly*0.732, fly*0.848, fly*0.964, 0, ];

Voilá, the shuffling effect is gone.  ;D

edit: Ah sorry, and you have to edit wheel_a as well to get rid of the fading while moving.

Code: [Select]
local wheel_a = [  0,  90,  90,  90,  90,  255, 90,  90,  90,  90,  0,  0, ];
« Last Edit: February 07, 2017, 10:49:47 AM by Favdeacon »

Oomek

  • Administrator
  • Sr. Member
  • *****
  • Posts: 311
  • Radek Dutkiewicz
    • View Profile
    • github.com/oomek
Re: Game Station Theme v2.6.3 (Support 4:3 & Wide Screen now)
« Reply #76 on: February 07, 2017, 12:35:21 PM »
Awesome!
Although there is still one tiny glitch with the topmost snapshot.
It does not fade to black like the bottom one and when you scroll fast it still shuffles.

Oomek

  • Administrator
  • Sr. Member
  • *****
  • Posts: 311
  • Radek Dutkiewicz
    • View Profile
    • github.com/oomek
Re: Game Station Theme v2.6.3 (Support 4:3 & Wide Screen now)
« Reply #77 on: February 07, 2017, 01:00:41 PM »
Hmm,  when you hold the stick down or up the scrolling list stutters and I think it's because it periodicaly loads the data on the left.
Shouldn't it load the data only when you release the stick? That should smooth the animation out.


I've fixed it with the changes raygun has made to his layout.nut
« Last Edit: February 07, 2017, 02:59:10 PM by Oomek »

Oomek

  • Administrator
  • Sr. Member
  • *****
  • Posts: 311
  • Radek Dutkiewicz
    • View Profile
    • github.com/oomek
Re: Game Station Theme v2.6.3 (Support 4:3 & Wide Screen now)
« Reply #78 on: February 07, 2017, 02:22:24 PM »
And please, tell me what do I need to change to reduce that crazy acceleration when scrolling through the list.

Oomek

  • Administrator
  • Sr. Member
  • *****
  • Posts: 311
  • Radek Dutkiewicz
    • View Profile
    • github.com/oomek
Re: Game Station Theme v2.6.3 (Support 4:3 & Wide Screen now)
« Reply #79 on: February 07, 2017, 04:41:45 PM »
I'm sorry for spamming the forum, but after downloading the videos your skin freezes after 5 seconds and I need to force close AM.
edit: Funny thing, When I reenabled my audio card it stopped freezing.

Is there any way to show snaps on the right and video on the left for selected game? My videos have fade-ins so when I scroll the list goes black, so I need my snaps back.

nevermind, got it working
m_obj.video_flags = Vid.ImagesOnly | Vid.NoAudio;

It's fun to talk to myself all the time :D
« Last Edit: February 07, 2017, 05:47:35 PM by Oomek »

Favdeacon

  • Sr. Member
  • ****
  • Posts: 129
    • View Profile
Re: Game Station Theme v2.6.3 (Support 4:3 & Wide Screen now)
« Reply #80 on: February 08, 2017, 07:33:00 AM »
It's fun to talk to myself all the time :D

That's what I thought before you answered my posts. ;)

Awesome!
Although there is still one tiny glitch with the topmost snapshot.
It does not fade to black like the bottom one and when you scroll fast it still shuffles.
Yeah, I couldn't fix those either.

The bottommost snap/video fades out if the last values are zero:

Code: [Select]
local wheel_a = [  0,  90,  90,  90,  90,  255, 90,  90,  90,  90,  0,  0, ];
But it doesn't work with the topmost one. The first zero isn't enough and if you set the second value to zero, the first snap is permanently black. If you set the first three values to zero, the fadeout works, but one snap too low. :P It seems the array is one or two zeroes too short for a fadeout at the top.

I don't know enough about squirrel to change that (or even find the code that does it).  :-[

Oomek

  • Administrator
  • Sr. Member
  • *****
  • Posts: 311
  • Radek Dutkiewicz
    • View Profile
    • github.com/oomek
Re: Game Station Theme v2.6.3 (Support 4:3 & Wide Screen now)
« Reply #81 on: February 08, 2017, 08:57:58 AM »
It seems the scrolling acceleration is handled by the conveyor.nut. The grid layout is based on conveyor but it does not accelerate. I see a lot of similarities there, but I still cannot figure out how to decrease it.

Favdeacon

  • Sr. Member
  • ****
  • Posts: 129
    • View Profile
Re: Game Station Theme v2.6.3 (Support 4:3 & Wide Screen now)
« Reply #82 on: February 10, 2017, 01:47:38 PM »
It does not fade to black like the bottom one and when you scroll fast it still shuffles.
I didn't follow through with replacing the zeroes in the whole array. This fixed the shuffling at high speeds for me:

Code: [Select]
local wheel_y = [ fly*-0.196, fly*-0.080, fly*0.036, fly*0.152, fly*0.268, fly*0.384, fly*0.500, fly*0.616, fly*0.732, fly*0.848, fly*0.964, fly*1.080, ];

Thorvald

  • Jr. Member
  • **
  • Posts: 13
    • View Profile
Re: Game Station Theme v2.6.3 (Support 4:3 & Wide Screen now)
« Reply #83 on: March 11, 2017, 01:13:51 PM »
Like everyone else, I am enjoying this theme.

However I'd like to modify it to cycle between the flyer and a cabinet shot in the big right hand side pane (rotate ever few seconds or so).  I made the fairly trivial mod of adding  new config option to display Flyer or Cabinet but not quite the same.

Has anyone done this yet?

Thanks

Favdeacon

  • Sr. Member
  • ****
  • Posts: 129
    • View Profile
Re: Game Station Theme v2.6.3 (Support 4:3 & Wide Screen now)
« Reply #84 on: March 11, 2017, 11:19:34 PM »
I made the fairly trivial mod of adding  new config option to display Flyer or Cabinet but not quite the same.
Hello Thorvald,

care to share?

Thorvald

  • Jr. Member
  • **
  • Posts: 13
    • View Profile
Re: Game Station Theme v2.6.3 (Support 4:3 & Wide Screen now)
« Reply #85 on: March 12, 2017, 09:49:35 AM »
Sure no problem at all.  Here you are:

In your \attractmode\layouts\Game Station directory, edit the file layout.nut.  Add a new line just above the last line of Class UserConfig:

Code: [Select]
</ label="Display Flyer or Cabinet", help="Flyer or Cabinet", options="flyer,cabinet", order=9 /> disp_type="flyer";

Then change the Order Number of the last line to account for this new line (Change order=9 to order=10):

Code: [Select]
</ label="Display Move Strip", help="Display move strip. Remember to create a new artwork folder called [flyer2]", options="Yes,No", order=10 /> enable_strip="Yes";
Then under the //Flyer section, change the fe.add_artwork line to be as follows:

From:
Code: [Select]
local flyer = fe.add_artwork("flyer", flx*0.59, fly*0.11, flw*0.41, flh*0.691 );
To:
Code: [Select]
local flyer = fe.add_artwork(my_config["disp_type"], flx*0.59, fly*0.11, flw*0.41, flh*0.691 );
---

Then you need to add a new Artwork for your cabinets, you can either do this through the menu system or edit the file manually:

In \attractmode\emulators\mame.cfg add a new artwork line called "cabinet" and the path you your cabinet files:

artwork    cabinet         e:\pS_Cabinets

---

Should be good to go, just go into Layout Options for this Theme and choose "cabinet".  You could easily add the other options line control panels, etc.

Cheers
   Tim

recordguy42

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: Game Station Theme v2.6.3 (Support 4:3 & Wide Screen now)
« Reply #86 on: March 19, 2017, 09:15:23 AM »
I love this theme! Thank you for your work.

Question though. The icon at the bottom that shows the game type. Is it possible (if using this theme for console selection screen) to have it display something other than a "?". I know where the artwork is located and can create my own but what dictates which logo is displayed?

my thought is to display "console" or "handheld"

Thanks for any help :) 
« Last Edit: March 19, 2017, 02:17:02 PM by recordguy42 »

POOTERMAN

  • Newbie
  • *
  • Posts: 8
    • View Profile
Re: Game Station Theme v2.6.3 (Support 4:3 & Wide Screen now)
« Reply #87 on: March 28, 2017, 03:56:28 PM »
Does anyone please know what file and what line in particular needs to be edited if you want to change the size of the Large Roboto font that displays the name of the game in the lower left hand side of the screen?

I have quite a few games that are missing their full titles because the size of the font is too large.

Thanks in advance.

recordguy42

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: Game Station Theme v2.6.3 (Support 4:3 & Wide Screen now)
« Reply #88 on: April 07, 2017, 07:06:53 AM »
Did you happen to figure out how to change the text size? I'd also like to do this but haven't been able to find where??

POOTERMAN

  • Newbie
  • *
  • Posts: 8
    • View Profile
Re: Game Station Theme v2.6.3 (Support 4:3 & Wide Screen now)
« Reply #89 on: April 07, 2017, 09:13:03 PM »
Hey recordguy42 - you need to edit the last number on this line of code in the layout.nut file of the Game Station HD theme:

local gametitle = fe.add_text( gamename ( 0 ), flx*-0.01, fly*0.805, flw*0.72, flh*0.1 );

I changed the value to "0.050" and now it looks perfect as all the games with long names now fit on the screen and are displayed in full:)