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

Pages: [1] 2
1
Scripting / Re: How to display a picture when au launch a game ?
« on: November 17, 2016, 11:51:41 PM »
Below is code fragment of my layout that does the 'displaying a picture when lanching game'
It may need some modifying though..


The key is displaying such image at 'case Transition.ToGame' and hide at other cases.
I used alpha properties for fade in/out effects. It might be easier to use 'IsVisible'.


Anyway, the code fragment is as follows:



local screen_now_loading   = fe.add_image("Loading.png", (fe.layout.width - 600)/2, (fe.layout.height - 300)/2, 0, 0);

fe.add_transition_callback( "launch_transition" );



function launch_transition( ttype, var, ttime ) {
   switch ( ttype )
   {
   case Transition.StartLayout:
      screen_now_loading.alpha = 0;
      break;
   case Transition.FromGame:
      if ( ttime < 255 )
      {
         foreach (o in fe.obj)
            o.alpha = ttime;
               screen_now_loading.alpha = 0;
         return true;
      }
      else
      {
         foreach (o in fe.obj)
            o.alpha = 255;
         screen_now_loading.alpha = 0;
      }
      break;
   case Transition.EndLayout:
      if ( ttime < 255 )
      {
         foreach (o in fe.obj)
            o.alpha = 255 - ttime;
         screen_now_loading.alpha = 0;
         return true;
      }
      break;
   case Transition.ToGame:
      if ( ttime < 255 )
      {
         foreach (o in fe.obj)
            o.alpha = 255 - ttime;
         screen_now_loading.alpha = ttime;
         return true;
      }
      screen_now_loading.alpha = 255;
      break;
   }
   return false;
}





2
General / Re: translators
« on: August 30, 2015, 02:26:17 PM »
Well it took much longer than I expected... but here's translation for Korean/Japanese languages.

It should be noted that the default font (arial) for Attract-Mode cannot display Korean/Japanese languages...

I don't know for linux, but for windows, use following fonts:

Korean fonts - malgun (Malgun Gothic)
  *. https://www.microsoft.com/typography/fonts/font.aspx?FMID=1907
  *. Included in Windows Vista / 7 / 8
  *. Windows XP users can download from following : (Official)
     http://www.microsoft.com/en-us/download/details.aspx?id=10490


Japanese fonts - Meiryo (Doesn't work with Attract-Mode, unfortunately)
  *. https://www.microsoft.com/typography/fonts/font.aspx?FMID=2133
  *. Also included in Windows Vista / 7 / 8
  *. Windows XP users can download from following : (Official)
     http://www.microsoft.com/en-us/download/details.aspx?id=10550
  *. Unlike malgun, which is .ttf, this is .ttc. And unfortunately, .ttc is not supported by AM (yet)


All languages - arialuni (Arial Unicode MS)
  *. https://www.microsoft.com/typography/fonts/font.aspx?FMID=1081
  *. Contains (almost) all Unicode characters
  *. Unfortunately, it's not free. It's part of MS Office


So to summarize:

1. Windows + Office Users
Set AM's font to arialuni. You can use either Korean/Japanese without any problems

2. Windows Vista / 7 / 8 Users - Korean language
Set AM's font to malgun.

3. Windows XP - Korean language
Download malgun from http://www.microsoft.com/en-us/download/details.aspx?id=10490
Then set AM's font to malgun

4. Windows XP / Vista / 7 / 8 Users - Japanese language
We're doomed. What should we do?
(Perhaps http://www.wazu.jp/gallery/Fonts_Japanese.html can be of help...)

3
General / Re: translators
« on: August 13, 2015, 01:10:30 PM »
I could provide Japanese / Korean translations

4
Emulators / Re: Mame setup for windows
« on: August 13, 2015, 01:05:51 PM »
I have used Mameplus! for several years.

There "were" several advantages using Mameplus! over standard MAME, but many of the advantages have diminished over years....

Advantages (still effective)
#1. Image enhancement filters like HQx, xBRZ filters
#2. Command.dat support (In-game display of fighting game moves)
#3. Removing nag screen



Advantages (now obsolete)
#1. It came with separate GUI called M+GUI, which was much faster than MAME with integrated GUI.
-> But not faster than attract-mode.  ;)

#2. It combined MAME/MESS with single executable (long before devs permitted this)
-> Now it is officially combined by standard MAME...

#3. Sometimes, controversal ROMs are dropped by mainstream MAME, due to various reasons. (For example, Cave SH3 driver). But derivative builds, including Mameplus! tends to ignore such decisions...
-> But the Cave SH3 driver is back to mainstream MAME again, so it doesn't matter again..



...lastly, I'd like to mention that many derivative MAME builds do not describe their difference to the mainstream MAMEs. (What is Ash-build, anyway?). It would be really helpful to have feature-comparison summary on derivative builds.


5
Emulators / Re: Game fixes
« on: August 13, 2015, 12:42:23 PM »
FYI : Following link contains similar game-specific fixes as well

http://wiki.mamedev.org/index.php/FAQ:Games

6
Scripting / Re: automatic coins
« on: August 06, 2015, 09:26:24 PM »
One possible alternative is to set "coin" and "start" to the same key.

Then, pressing 'coin/start' key 1~2 times will eventually start the game

7
General / Re: Deleting roms
« on: June 18, 2015, 01:37:27 PM »
@verion

Sorry for the late reply. Below is my description for quarantine list.




[Differences between Tags/Favorites]

#1. Required key strokes (= convenience)
Favorites can be added/removed via single key press (if you disable confirmation, of course)
Tags are added/removed via several keystrokes (shortcut key -> create / select tags)


#2. Layout grammars
-To show games marked as favorites, or tagged by 'Sometag'
Favorites equals 1
Tags contains Sometag   (Since there can be multiple tags, you cannot use 'Tags equals Sometag')


-To hide games marked as favorites, or tagged by 'Sometag'
Favorites not_equals 1
Tags not_contains Sometag


-Note
Above method has little unwanted side-effect that tags marked as 'Sometag-1' or '1-Sometag' are also treated like 'Sometag'
(Since [Sometag-1] and [1-Sometag] also 'contains' [Sometag]....)
Usually this does not cause problems, but who knows...


#3. File locations
Favorites are stored in ./attract/romlists/(listname).tag
Tags are stored in  ./attract/romlists/(listname)/(tagname).tag



[To hide games from your list]

#1. Tag system in AM is approapriate for this. Set up keys in similar fashion to favorites...
- Open AM
- [Controls]->[Add/Remove Tags], set approapriate keys for shortcut key

#2. In game list, press shortcut key for tags, a menu will appear.

#3. Choose 'Create new Tags', Enter a tag name for marking such games. For example, 'Quarantine'
(You only need to do this once)

#4. Once #3 is done, you can add above tags by simply 'tag shortcut key->[Add Tag : Quarantine]'.
Also as in favorites, pressing shortcut key again on tagged game shows '[Remove Tag : Quarantine]'.

#5. You can hide games marked by above tag by editing filters
- In AM, [Settings]->[Displays]
- Add 'Tags not_contains Quarantine' rule to the approapriate filters.
- Or, add above rule to 'Global-Filter' to hide tagged games from all filters

#6. Tags are stored in same format as favorites. Therefore, you can easily copy favorites to some other tags and vice versa.


8
General / Re: Deleting roms
« on: June 08, 2015, 06:38:58 AM »
There must be more elegant ways for doing this....but here's two crude approach...

Method 1 : Actual deletion of rom file

#1. Use Plug-in 'Utility Menu', which is included in the AM
#2. Create a 'delete_rom.nut' containing following :

local options = ["Yes", "No"];
local command = fe.overlay.list_dialog( options, "Delete Rom File [" + fe.game_info(Info.Title) + "]");
if ( command != 0 ) return;

if ( OS == "Windows" )
{
fe.plugin_command( "cmd", "/c del \"" + <rom file directory> + fe.game_info(Info.Name) + ".zip\"");
}
else
{
// Use similar approach to above...
}

#3. Note you must modify <rom file directory> in #2 to your actual rom file location manually. (Hence crude approach...)

#4. Save above .nut file into <AM directory>/plugins/UtilityMenu/

#5. Open AM, and change plug-in option,
opt2_cmd @delete_rom.nut

#6. Don't forget to assign keys to 'Utility Menu' plugin as well..

Note : You can reset play count by using similar approach, by deleting corresponding .stat file. (This also can be crude as well)...



Method 2 : Just hide from list

#1. You can easily do this by using custom tags and global_filter.

#2. Mark games that you do not want to see in your list, I use 'Quarantine' tags, for instance.

#3. Add global_filter, that Tags should not contain Quarantine tags.

global_filter       
   rule                 Tags not_contains Quarantine



Hope this works. Good luck!

9
General / Re: mame ui 64 get an error on AM
« on: June 01, 2015, 02:57:00 AM »
You might need to change

"[romname]"

to

"[romfilename]"

in your emulator configuration

10
General / Re: mame ui 64 get an error on AM
« on: June 01, 2015, 01:29:17 AM »
Really? then I have no idea...

One last thing to test is that

#3. Mameui64.exe wupndown

should be

#3. Mameui64.exe wupndowna

but I don't think it'll make any difference...


11
Scripting / Re: How do i apply "video_playing "?
« on: May 31, 2015, 08:56:06 AM »
If something is 'function', parentheses () are added. For example, fe.add_image()
If something is 'variable', no parentheses are added.

In this case, 'video_playing' is variable.

While not so obvious, error message "An error has occured [attempt to call 'bool']", also indicates that
(1) video_playing is 'bool' (bool is a kind of variable)
(2) but is specified in code as function, video_playing(), therefore error occured


Correct syntax would be:

local intro = fe.add_image("video.mp4", 0, 0, lw, lh);
      intro.video_flags = Vid.NoLoop;
      while(intro.video_playing)
      {
         //trying to show if the video is playing or not
         print(intro.video_playing + "\n");
      }


12
General / Re: Layout User Options
« on: May 30, 2015, 11:54:22 AM »
It's located in Configuration->Display->(Rom list, which uses the layout you want to modify)->Layout Option

13
General / Re: Anyone tried MAME 0.161 yet?
« on: May 30, 2015, 10:03:54 AM »
Omegaman-

Thank you for your warm greeting. I was really busy recently, (and busy yet still)

If only I could have enough time to update my layouts to use conveyor.nut....

14
General / Re: Filtering out most -- but not all -- clones?
« on: May 30, 2015, 09:53:04 AM »
This can be done by using custom tags, that includes all parents, and hand-picked clones.

The problem is, how do you add tags to only parents?

There are two ways of doing this. Both methods have their disadvantages, so choose wisely!


Method 1 : Elegant, but requires MS-Office

#1. Open MS Excel.
#2. Copy contents of romlist file into sheet
#3. Data->Text to columns   (this may differ from Office version, though)
#4. A wizard will appear. Set delimiter to ';' (Am's delimiter). Set all column to 'text' type (few games may affected by this)
#5. If done correctly, the romlist will be nicely analyzed into columns
#6. Add 'filter' to each columns
#7. Choose 'CloneOf' column, and select 'empty' entry only. (only parent roms will be shown)
#8. Copy the contents of '#Name' column into a new text file.
#9. Save the text file. this file is tag file (containing only parent roms)
#10. The name of tag file created in #9 acts as tag name in FE. Copy the tag file into appropriate romlist directory



Method 2 : (very) hackish method. But works anyway

#1. Backup the favourite file for the mame list, and delete it.
#2. Create a temporary layout, as follows

list   temporary
   layout               basic
   romlist              mame
   filter               parent_not_favourite
      rule                 CloneOf not_equals .+"
      rule                 Favourite equals 0
   filter               verify_parent_favourite
      rule                 CloneOf not_equals .+"
      rule                 Favourite equals 0
   filter               verify_no_parent_favourite
      rule                 CloneOf equals .+"
      rule                 Favourite equals 1


(you may have to modify "romlist              mame" to your list name, if not mame)
(actually, only first filter is used, second/third is for verifying purpose)

#3. Launch AM, switch to above temporary list and first filter

#4. Mash 'add to favorite' button repeatedly. You may want to set AM's option 'confirm favorites' to 'No' temporarily...

#5. It would take about 2000~3000 strokes to finish. Once finished, first filter should be empty.

#6. (surprisingly) Now all parent roms are marked as 'favourites'. Close AM.

#7. Copy the favorites to tag file.
Favorites are stored in <AM Directory>/romlists/<romlist name>.tag
Tags are stored in <AM Directory>/romlists/<romlist name>/<tagname>.tag

#8. Restore original favorites file in #1, if necessary




Once either Method 1 or 2 is done, all parents will be marked as some_tag.
Then you can add clones of your choice by also marking it as some_tag.
Lastly, initial filtering rule
rule                 CloneOf not_equals .+"

can now be replaced as
rule                 Tags contains some_tag

15
local Wheelclick = fe.add_sound("C:\attract\sounds\Click.mp3")
=> unrecognised escaper char

Seems very familiar issue that single '\' is treated as escape character...

Does

local Wheelclick = fe.add_sound("C:\\attract\\sounds\\Click.mp3")

work?

Pages: [1] 2