Attract-Mode Support Forum

Attract-Mode Support => Themes => Topic started by: Yaron2019 on August 26, 2019, 11:59:31 PM

Title: Vintage DOS theme [Release v1.2]
Post by: Yaron2019 on August 26, 2019, 11:59:31 PM
Cool theme for MS-DOS.

Thanks for asahendrix for the art and jedione for the fading list code!


YouTube:
https://www.youtube.com/watch?v=syC5j5BqZDo

Download:
https://mega.nz/#!EIVzjAYC!V63TlujbdzbjMIru52UHcatvNjuU6CvbElci53Jhi7w


Update v1.2:
- User can now choose delay and fade-in/out times for game list and snap videos (Huge thanks to iOtero for the code and support!)

Update v1.1:
- Added option to show boxart
- Added option to play a long version of the PC ambient sound
Title: Re: Vintage DOS theme [Release]
Post by: iOtero on August 27, 2019, 04:20:00 AM
Finally something new!

I was already tired of seeing copy of copy of copy...  including mine...

Thanks for the theme. I like very much.
Title: Re: Vintage DOS theme [Release]
Post by: iOtero on August 27, 2019, 05:27:03 AM
I just tried it and on my Desktop PC 16:9 it works very well, but it doesn't suit my Raspberry pi-based system with a 4:3 monitor.

Do you plan to make a version for 4:3 resolutions: (640x480, 800x600, 1024x768, etc.)?
Title: Re: Vintage DOS theme [Release]
Post by: Yaron2019 on August 27, 2019, 07:14:07 AM
Finally something new!

I was already tired of seeing copy of copy of copy...  including mine...

Thanks for the theme. I like very much.

I just tried it and on my Desktop PC 16:9 it works very well, but it doesn't suit my Raspberry pi-based system with a 4:3 monitor.

Do you plan to make a version for 4:3 resolutions: (640x480, 800x600, 1024x768, etc.)?

Thank you iOtero.

Judging by your work on ioamiga, you will be way better than me doing a 4:3 and 16:9 version. By all means please do it!
Also feel free to change whatever you want - just make sure to release it to us as well!  :)
Title: Re: Vintage DOS theme [Release]
Post by: iOtero on August 28, 2019, 05:53:52 AM
Finally something new!

I was already tired of seeing copy of copy of copy...  including mine...

Thanks for the theme. I like very much.

I just tried it and on my Desktop PC 16:9 it works very well, but it doesn't suit my Raspberry pi-based system with a 4:3 monitor.

Do you plan to make a version for 4:3 resolutions: (640x480, 800x600, 1024x768, etc.)?

Thank you iOtero.

Judging by your work on ioamiga, you will be way better than me doing a 4:3 and 16:9 version. By all means please do it!
Also feel free to change whatever you want - just make sure to release it to us as well!  :)

I wish i had time... Well, if one day i copied your idea, I'll let you know... Thank you.  :)

And... Of course, it won't carry wheels ...  ;D ;D ;D
Title: Re: Vintage DOS theme [Release v1.1]
Post by: myriadgamers on August 30, 2019, 08:03:21 AM
This is a nice setup and if and when I add dos box to my rig I think I will definitely use this. Is there an option to change the Delay for when the videos start while selecting games?
Title: Re: Vintage DOS theme [Release v1.1]
Post by: Yaron2019 on August 30, 2019, 10:53:59 AM
This is a nice setup and if and when I add dos box to my rig I think I will definitely use this. Is there an option to change the Delay for when the videos start while selecting games?

Thanks. As for the game snap delay, I have tried to add a timer but was unsuccessful. Unfortunately, at this stage I don't understand Squirrel script well enough... If anyone can add this feature it will be great.
Title: Re: Vintage DOS theme [Release v1.1]
Post by: iOtero on August 31, 2019, 07:13:16 AM
This is a nice setup and if and when I add dos box to my rig I think I will definitely use this. Is there an option to change the Delay for when the videos start while selecting games?

Thanks. As for the game snap delay, I have tried to add a timer but was unsuccessful. Unfortunately, at this stage I don't understand Squirrel script well enough... If anyone can add this feature it will be great.

Use this code:

Code: [Select]
class UserConfig
{
</ label = "Delay Time",
help = "The time (in milliseconds) it takes to start hiding the frames, list and wheels. Set to 0 for no hide.",
options = "0,1000,1500,2000,2500,3000,3500,4000,4500,5000,5500,6000",
order = 5
/> set_ms_delay = "3500";

</ label = "Hide Time",
help = "The time (in milliseconds) that it takes for the wheels, list and frames to hide.",
options = "100,200,300,400,500,600,700,800,900,1000,1100,1200",
order = 6
/> set_ms_hide = "600";
}

local my_config = fe.get_config();

my_time <- 0;
try {my_time = my_config["set_ms_hide"].tointeger();} catch(e) {}
my_delay <- 0;
try {my_delay = my_config["set_ms_delay"].tointeger();} catch(e) {}

local artwk = fe.add_listbox(flx*0.385, fly*0.17, flw*0.31, flh*0.32);
artwk.preserve_aspect_ratio = true;
artwk.trigger = Transition.EndNavigation;

local move_artwk1 = {when = Transition.ToNewSelection, property = "alpha", start = 0, end = 255, time = 1} 
local move_artwk2 = {when = When.ToNewSelection, property = "alpha", start = 255, end = 0, time = my_time, delay = my_delay} 
animation.add(PropertyAnimation(artwk, move_artwk1));
animation.add(PropertyAnimation(artwk, move_artwk2));
Title: Re: Vintage DOS theme [Release v1.1]
Post by: Yaron2019 on August 31, 2019, 08:12:00 AM
iOtero, I added it to the code and it's not working as intended. Attached is the layout.nut -- what did I do wrong?
Thanks!
Title: Re: Vintage DOS theme [Release v1.1]
Post by: rand0m on September 01, 2019, 01:06:33 AM
iOtero, I added it to the code and it's not working as intended. Attached is the layout.nut -- what did I do wrong?
Thanks!

I am using the following code for displaying video on top of snap after a brief delay, but following code should do what you want (delay settings can be changed to fit the need). Got this code from liquid8d's post, so all thnks to him :)

Code: [Select]

//Video Starts Playing After 1 Second In Place of Snap
local settings = {
   delay_timer = 0,
   play_delay = 1000,
   stop_play = 235000
}

local video = fe.add_artwork("video", 680,705,472,355)
video.preserve_aspect_ratio = true;
video.trigger = Transition.EndNavigation;

function vid_on_transition(ttype, var, transition_time) {
    if ( ttype == Transition.StartLayout || ttype == Transition.ToNewList || ttype == Transition.FromOldSelection ) {
        video.visible = false
        settings.delay_timer = fe.layout.time
    }
    return false
}

function vid_on_tick(tick_time) {
  if ( video.video_playing && tick_time - settings.delay_timer >= settings.play_delay ) video.visible = true
}

fe.add_ticks_callback(this, "vid_on_tick")
fe.add_transition_callback(this, "vid_on_transition")
Title: Re: Vintage DOS theme [Release v1.1]
Post by: iOtero on September 01, 2019, 04:28:55 AM
Sorry, i hid the video instead of the listbox. Blame the damn "copy paste"...

Here you have the correct code.
Title: Re: Vintage DOS theme [Release v1.1]
Post by: takoni on September 02, 2019, 02:47:30 AM
very nice layout Man!!!! thanks
Title: Re: Vintage DOS theme [Release v1.1]
Post by: Yaron2019 on September 06, 2019, 07:38:17 AM
Sorry, i hid the video instead of the listbox. Blame the damn "copy paste"...

Here you have the correct code.

Sorry for not replying earlier, I was busy with unpleasant things.
I suspect you uploaded the wrong layout file - the code is the same as it was... can you please confirm?
Title: Re: Vintage DOS theme [Release v1.1]
Post by: iOtero on September 06, 2019, 11:12:21 AM
You're right, I hope I don't make more mistakes...  :-[

All the data, including the listbox, could have been included in a single surface and we would have only had to fade the surface, but I like it better that way, in case you want to vary the fade and/or wait speed of each of the elements.
Title: Re: Vintage DOS theme [Release v1.1]
Post by: Yaron2019 on September 06, 2019, 11:54:53 PM
You're right, I hope I don't make more mistakes...  :-[

All the data, including the listbox, could have been included in a single surface and we would have only had to fade the surface, but I like it better that way, in case you want to vary the fade and/or wait speed of each of the elements.

Your code works and we're almost there. My initial intent was that the video is not viewed or heard when the layout starts and plays only when the user moves to a new selection.
The current code starts to play the video immediately. What I want to achieve is:
1. When layout starts snap video is hidden and silent.
2. When moved to new selection the snap video playing is delayed for X milliseconds.

So the user moves to a new selection, the list fades after X milliseconds and then the snap video starts!
I tried to do that with the latest code but I can get only two situations: either the video stays turned off or it begins to play and then restarts after x time. This is really frustrating.
Title: Re: Vintage DOS theme [Release v1.1]
Post by: iOtero on September 07, 2019, 05:16:25 AM
As they say in my country: "Das más guerra que un niño tonto..."    just kidding... ;D

Well, adapting the jedione code to mine... to see if this is what you wanted... :-[
Title: Re: Vintage DOS theme [Release v1.1]
Post by: Yaron2019 on September 10, 2019, 11:48:04 AM
As they say in my country: "Das más guerra que un niño tonto..."    just kidding... ;D

Well, adapting the jedione code to mine... to see if this is what you wanted... :-[

iOtero, many thanks for your code and effort! It now works brilliantly!
I have added small changes and released v1.2. I also added you to the credits at the top of the layout script.

Cheers
Title: Re: Vintage DOS theme [Release v1.2]
Post by: iOtero on September 11, 2019, 04:48:58 AM
I'm glad i was helpful...  :-[
Title: Re: Vintage DOS theme [Release v1.2]
Post by: Sebiohazard on September 21, 2019, 10:06:42 AM
Good morning all !

I love this theme it is beautiful & original (I love the sound of the hard drive) unfortunately the display of games is not centered on the screen...

(https://pix.tdct.org/upload/original/1569171721.jpg)

How to change that ? Greetings 8)
Title: Re: Vintage DOS theme [Release v1.2]
Post by: Sebiohazard on September 23, 2019, 02:09:29 AM
Hello person to help me solve my problem ?

Thanks best regards 8)
Title: Re: Vintage DOS theme [Release v1.2]
Post by: Yaron2019 on September 25, 2019, 07:46:38 AM
Try the attached layout file

Title: Re: Vintage DOS theme [Release v1.2]
Post by: Sebiohazard on September 26, 2019, 02:26:59 AM
Hello thanks for the file I tried but it's not better...

I still have this very embarrassing gap... what to do ?
Title: Re: Vintage DOS theme [Release v1.2]
Post by: Yaron2019 on September 26, 2019, 03:39:43 AM
try this one
Title: Re: Vintage DOS theme [Release v1.2]
Post by: Sebiohazard on September 26, 2019, 06:37:06 AM
I still have this gap...
Title: Re: Vintage DOS theme [Release v1.2]
Post by: Sebiohazard on September 28, 2019, 01:53:10 AM
Hello I understand why it's not centered... my screen is 1680 x 1050...

I tried with a screen in 1920 x 1080 it is centered... how to do with my screen in 1680 x 1050 so that it is centered ?

Thanks best regards !
Title: Re: Vintage DOS theme [Release v1.2]
Post by: qqplayer on September 28, 2019, 06:49:13 AM
Hello I understand why it's not centered... my screen is 1680 x 1050...

I tried with a screen in 1920 x 1080 it is centered... how to do with my screen in 1680 x 1050 so that it is centered ?

Thanks best regards !


Code: [Select]
fe.layout.width = 1680;
fe.layout.height = 1050;
fe.layout.preserve_aspect_ratio=false;


/////////////////////////////////////////////////////////////////////////////////////////
// Load background image
local presentacion = fe.add_image("bg.png", 0, 0, 1680, 1050);


Try this, but mayybe you need to set the other objets coordinates manually.
Title: Re: Vintage DOS theme [Release v1.2]
Post by: iOtero on November 03, 2019, 04:22:04 AM
My particular version of this theme for 3:4 and Raspberry pi 4 (wip):

I still have to polish some details.

Pressing the i key shows/hides a diskette with the game data.

https://www.youtube.com/watch?v=d5mH8yfoze8 (https://www.youtube.com/watch?v=d5mH8yfoze8)

Title: Re: Vintage DOS theme [Release v1.2]
Post by: jedione on November 05, 2019, 06:40:25 AM
that pi vs is looking great
Title: Re: Vintage DOS theme [Release v1.2]
Post by: Yaron2019 on November 06, 2019, 06:04:06 AM
My particular version of this theme for 3:4 and Raspberry pi 4 (wip):

I still have to polish some details.

Pressing the i key shows/hides a diskette with the game data.

https://www.youtube.com/watch?v=d5mH8yfoze8 (https://www.youtube.com/watch?v=d5mH8yfoze8)

This is some awesome work! Love it.
Title: Re: Vintage DOS theme [Release v1.2]
Post by: iOtero on November 11, 2019, 02:29:37 AM
I forgot to say that, by default, the videos look green, like in the original IBM, but i put an option to see them in color.