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 - keilmillerjr

Pages: [1] 2 3 ... 22
1
General / Re: Games With Interstitial Screens/Pop-Ups
« on: Today at 07:31:55 AM »
I am not sure. Maybe attract keeps track of the process pid? You could try launching a compiled ahk script that is a hidden process and launches your game, and exits when your actual game window closes? Just an idea of something to try.

2
Scripting / Re: Show an image if an object doesnt exists
« on: Yesterday at 08:06:47 AM »
Thanks @jedione is almost finished , the code isn´t perfect but works great :)

@keilmillerjr , thanks , I saw this code yet but... yout know... can you please make me something more "usefull" I can´t even imagine how to convert this  to my purpose :)
I just want the layout.nut to check some path and if founds the "romname.pdf" inside shows a little icon.

Well, I'm on a trip for the day so I can not provide a full example right now. However, I can tell you my approach was and maybe you get a head start.

Load file midule
Include file exists function
Create transition to new selection or filter
If file exists returns true, image path is image path
If file exists returns false, image path is ""

3
Scripting / Re: Show an image if an object doesnt exists
« on: October 14, 2017, 08:42:29 PM »
Try:

fe.load_module("file");
function file_exist(fullpathfilename)
   {
   try {file(fullpathfilename, "r" );return true;}catch(e){return false;}
   }

4
General / Re: So is this thing dead then?
« on: October 11, 2017, 06:58:47 PM »
Still nothing. Damn shame.

Anyway, someone asked what is missing. I still have issues with:

AM window not being activated after exiting a game (have to alt-tab)
Windows 10 taskbar showing up in full screen windowed
Background music endlessly skipping when exiting a game sometimes, forcing to skip to next track

The above problems make AM broken for every day "turn it on and play" use.

Other things I'd like to see:

Cross-platform Favorites list
More sub-menus and customize-able menu/sub-menu hierarchy (For example, "Main Menu -> Consoles -> NES")
On-screen letter selection for easier navigating
When user selects a game, the ability to bring them to a "Game Hub" (with game info, launch button, high score, etc.) instead of launching game directly from the game menu (see GameEx)

I am using windows 10 and do not have any of the issues you are experiencing. Create a thread with more details and we can try to help you out. Attractmode is not broken, and my machine looks more professional during boot than x86 production machines I've seen or heard about.

5
Scripting / Re: Text styling questions
« on: October 11, 2017, 03:52:50 PM »
here is all i can see of the use on the site

http://forum.attractmode.org/index.php?topic=636.msg4503#msg4503

with a working example that you made ,, but i cant get it to show anything.

i know your bizzy dude, but could you please make a working example from this..
Code: [Select]
local l = fe.add_text("[Title]", flx*0.185, fly*0.080, flw*0.300, flh*0.500 );
it,s pretty obvious that this is a bit over our heads...,, then we could all learn something from you.
thanks.

update to reply,,,thanks brother u rock...

Try this:

Code: [Select]
function title(){
  local text = fe.game_info(Info.Title);
  return text.toupper();
}
local title = fe.add_text(„[!title]", flx*0.185, fly*0.080, flw*0.300, flh*0.500 );

6
Scripting / Re: Text styling questions
« on: October 11, 2017, 07:03:46 AM »
here is all i can see of the use on the site

http://forum.attractmode.org/index.php?topic=636.msg4503#msg4503

with a working example that you made ,, but i cant get it to show anything.

i know your bizzy dude, but could you please make a working example from this..
Code: [Select]
local l = fe.add_text("[Title]", flx*0.185, fly*0.080, flw*0.300, flh*0.500 );
it,s pretty obvious that this is a bit over our heads...,, then we could all learn something from you.
thanks.

Will do when out of work tonight. Super simple. No worries.

7
Scripting / Re: Text styling questions
« on: October 11, 2017, 03:24:36 AM »
Got the colours working now. Thanks all for the advice.
Now searching for a decent replacement font that's all caps. If only I could get .toupper could work!

http://www.squirrel-lang.org/squirreldoc/reference/language/builtin_functions.html#string.toupper

string.toupper()
returns a uppercase copy of the string.

It works. Make sure you reasign string if you want to change it. Example: string = string.toupper();

8
Scripting / Re: Text styling questions
« on: October 10, 2017, 05:26:47 AM »
That wouldn't achieve the alignment I'm after - I want the two to flow together in one text object. Example below.

Yes. Same result in two objects.

Create object with "the simpsons plays 13".
Style it blue.
Create object with "the simpsons" and same positioning as previous object.
Style it green.

Let me know how it looks.

9
Scripting / Re: Text styling questions
« on: October 10, 2017, 03:38:35 AM »
Thanks for the responses.
So, it pretty much looks like I can't easily get the effect/layout I'm after and will have to compromise with text all the same colour and not uppercase.

Make them two different objects like I said. If your worried about positioning with different aspect ratios, you could always duplicate the object with complete text, change text to the second text, and change color. This would only work with justify left or right, not center. Hopefully overlaying the object doesn't show artifacts.

10
Scripting / Re: Continuous sliding image like as SNES Mini background
« on: October 09, 2017, 08:16:09 PM »
I am sure there is more than one way to do this.

My approach would be to use an app to take your image, animate it, and export it as a movie file. Photoshop can create animated gifs, but I think it can also export as quicktime movie. Move one object off the screen while having a duplicate layer replace the others position.

Make a movie or gif file is not the best way. I expect using a code. I can see "Mugen" system can do it. So, hope someone expert to write a module to do it.  :)   

I didn't say it was the best way. The amount of time it would take *myself* to have code/animation do this would be a lot. The same effect could be had in minutes by making a movie file. Might be quicker to code for some one really familiar with animations in attractmode. I assume you would need an object, duplicate it, and have both animating. When one finished it repositions and starts animating again.

11
Scripting / Re: Continuous sliding image like as SNES Mini background
« on: October 09, 2017, 07:31:11 PM »
I am sure there is more than one way to do this.

My approach would be to use an app to take your image, animate it, and export it as a movie file. Photoshop can create animated gifs, but I think it can also export as quicktime movie. Move one object off the screen while having a duplicate layer replace the others position.

12
Scripting / Re: Text styling questions
« on: October 09, 2017, 03:42:19 AM »
A string is "A string". You must separate your parts to style them differently.

details.toupper() is not a declaration. Assign the result to your details variable as such: details = details.toupper();

13
General / Re: Forum is back up (hopefully)
« on: October 07, 2017, 06:11:11 AM »
Yay!

14
Scripting / Re: Case Select sound issue
« on: September 26, 2017, 04:17:17 AM »
on that added note...a selection is technically the end of the system menu

so this should work    .EndLayout



function start_theme( ttype, var, ttime ) {
 switch ( ttype ) {
  case Transition..EndLayout:
              local sound = fe.add_sound("intro.mp3");
         sound.playing=true;
  break;
  }
 return false;
}
fe.add_transition_callback( "start_theme" );

Transition needs to return false, and return true if sound playing is complete.

15
Scripting / Re: Case Select sound issue
« on: September 25, 2017, 05:41:37 PM »
I’m exhausted, so only take a quick look at the menu. Keep in mind that I haven’t used menus. Y’all know I have my personal machine only running one system.

I am not sure how „goto game menu“ is selected as there is a break in your switch case, and maybe default holds that logic? Regardless, you need to add a tick to constantly check if sound has stopped playing, or a certain time (length of sound) has passed. Once this is true, then proceed to „goto game menu“.

Hopefully that is enough to get you started. If you still need help, walk me through and I can look at it tomorrow night.

Pages: [1] 2 3 ... 22