1
Themes / Re: AM High Score HD (Hi-Res) Theme 2.4.1 (Finial Build)
« on: June 24, 2021, 05:48:15 PM »
Man, link broken.
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.
##########################
## Menu Overall Surface ##
##########################
local overlaySurface = fe.add_surface(flw,flh);
overlaySurface.visible = false;
// translucent background
local overlayBackground = overlaySurface.add_image("images/overlaymenu/black.png",flx*0.0,fly*0.0,flw,flh);
overlayBackground.alpha = 240;
// create extra surface for the menu
local overlayMenuSur = overlaySurface.add_surface(flx*0.600,fly*0.800);
overlayMenuSur.set_pos(flw*0.290,flh*0.210); //tamanho da caixa
overlayMenuSur.add_image("images/overlaymenu/menuframe.png",flx*0.060,fly*0.085,flw*0.300,flh*0.250); // Add the menu frame
local overlay_lb = overlayMenuSur.add_listbox(flx*0.065,fly*0.100,flw*0.291,flh*0.200); //Add the listbox
overlay_lb.rows = 3; // the listbox will have 6 slots
overlay_lb.charsize = 32;
overlay_lb.font="Geforce Bold";
overlay_lb.set_rgb( 128, 128, 128 );
overlay_lb.align = Align.Centre;
//overlay_lb.sel_style = Style.Bold;
overlay_lb.set_sel_rgb( 111, 174, 0 );
overlay_lb.set_selbg_rgb( 0, 0, 0 );
local overlayMenuTitle = overlayMenuSur.add_text("",flx*0.010,fly*-0.125,flw*0.400,flh*0.35); //Add the menu title
overlayMenuTitle.charsize=35;
overlayMenuTitle.style = Style.Bold;
overlayMenuTitle.set_rgb(255,255,255);
local overlayBartop = overlaySurface.add_image("images/overlaymenu/arrow.gif"); //add the bartop picutre
overlayBartop.set_pos(flx*0.385,fly*0.385,flw*0.035,flh*0.050);
// Show the up time
local ut = overlaySurface.add_text( "ELASPED TIME: ", flx*0.512, fly*0.515, flw*0.100, flh*0.024 );
ut.set_rgb( 190, 190, 190 );
ut.align = Align.Right;
ut.charsize=12;
local ut = overlaySurface.add_text( "", flx*0.607, fly*0.515, flw*0.055, flh*0.024 );
ut.set_rgb( 255, 165, 0 );
ut.align = Align.Left;
ut.charsize= 14;
ut.font = "Geforce Light";
When the display is changed, the layout is loaded/reloaded (if I recall correctly). You can use the name of the display to load a graphic with the same name as the display. In this example a display called "Arcade" would load "Arcade.png", if named "Nintendo Entertainment System" then it would load "Nintendo Entertainment System.png".Code: [Select]local display = fe.list.name
local display_background = fe.add_image(display + ".png" , 0, 0, fe.layout.width, fe.layout.height)
function on_signal( sig )
{
switch ( sig )
{
case "up":
fe.signal( "prev_display" );
return true;
case "down":
fe.signal( "next_display" );
return true;
}
return false;
}
fe.add_signal_handler(this, "on_signal");
function on_signal( sig ){
switch ( sig )
{
case "up":
fe.signal( "prev_display" );
return true;
case "down":
fe.signal( "next_display" );
return true;
}
return false;
}
fe.add_signal_handler(this, "on_signal");
##########################################################################################
function layout_transitions(ttype, var, ttime) {
switch(ttype)
{
case Transition.ToNewList:
switch ([DisplayName])
{
case "Arcade":
local ar = fe.add_image ( "images/arcade.png", flx*0.0, fly*0.0, flw, flh );
break;
case "Sega Genesis":
local sg = fe.add_image ( "images/sega genesis.png", flx*0.0, fly*0.0, flw, flh );
break;
}
}
return false;
}
@echo off
set /a "_tag=0"
set /a "_num=0"
rem *Place " " Place the path of your romlist folder.
cd /d "D:\AM-2.6.1\Romlists"
setlocal EnableDelayedExpansion
echo==========================================================
echo= AM Favorites Romlist Generator Script for Windows
echo= Created by - It Wasn't Me - StackOverflow BR
echo==========================================================
if not exist .\favorites.txt (
set /p "'= - Cretating .\Favorites.txt File.."<nul
echo\
) else (
set /p "'= - Backing up your old Favorites.txt: "<nul
move /y .\Favorites.txt .\Favorites.txt.backup 2>nul >nul
if %errorlevel% equ 0 echo\Done^!!
)
echo/- Gathering list of your Favorites: Tags-Files
(echo #Name;Title;Emulator;CloneOf;Year;Manufacturer;Category;Players;Rotation;Control;Status;DisplayCount;DisplayType;AltRomname;AltTitle;Extra;Buttons;Series;Language;Region;Rating) > Favorites.txt
for %%G in (*.tag)do (
set /a "_tag+=1"
for /f useback^delims^= %%i in (`more "%%~G"`)do (
set/p "'=- ROM Found in File %%~nxG: %%~i"<nul
echo=
find "%%~i;" <"%%~nG.txt" >>".\Favorites.txt"
if %errorlevel% equ 0 set /a "_num=!_num!+1"
)
)
set /a "_num=!_num! + 1000"
set /a "_tag=!_tag! + 1000"
call echo/- Romlist Files [tag=txt]: !_tag:~-3!
echo/- Favorites added to Disc: !_num:~-3!
echo/- ROMlist .\Favorites.txt: New
endlocal
echo/- is Done!.. & timeout 5|findstr /ec:\.\Favorites\.txt "%~f0"
goto :EOF
@echo off
setlocal EnableDelayedExpansion EnableExtensions
rem ================================================================================
rem This script basically does the same thing as DM's favorites romlist generator
rem but on Windows [Shouts to him for the pi version ;)].
rem How it works:
rem It grabs all the (tagged) favorites from every tag file, searches for them
rem through all the romlists, then generates a romlist called Favorites.txt
rem Written by Steve Sherrod, 05/20/17, as part of project HyperPie Expanded
rem Modified, Implemented and Optimized by 17/01/2021 arthurvalenca.
rem ================================================================================
rem Default path (on windows). This should point to your attract modes romlists dir
cd /d "D:\AM-2.6.1\romlists\"
echo ==========================================================
echo AM favorites romlist generator script for Windows
echo ==========================================================
rem remove the old Favorites.txt and create the backup
echo - Backup old Favorites.txt file
if not exist "Favorites_Backup\" mkdir Favorites_Backup
if exist Favorites.txt (
copy Favorites.txt Favorites_Backup\Favorites_bak.txt
del Favorites.txt
)
echo - Gathering list of favorites (tag files)
set /a numfavorites=0
set /a romlist=0
(echo #Name;Title;Emulator;CloneOf;Year;Manufacturer;Category;Players;Rotation;Control;Status;DisplayCount;DisplayType;AltRomname;AltTitle;Extra;Buttons;Series;Language;Region;Rating) > Favorites.txt
rem loop through each tag file
for %%f in (*.tag) do (
echo - Processing tag file: %%~nf.tag
set /a numtagfiles=numtagfiles+1
rem loop through favorites stored in tag file
for /f "tokens=*" %%a in ('type "%%~nf.tag"') do (
set /a numfavorites=numfavorites+1
set favorite=%%a
echo - Searching rom list: %%~nf.txt for rom: %%a
rem loop through each rom file and parse favorited (tagged) roms
for /f "tokens=*" %%s in ('type "%%~nf.txt"') do (
set /a romlist=romlist+1
set str=%%s
rem Search current line (for current favorite substring) and if found, append it to Favorites.txt
echo."!str!" | findstr /C:"%%a">nul && (
echo !str!>>"Favorites.txt"
)
)
)
echo - Favorites.txt romlist generated. !numtagfiles! romlists read, !numfavorites! favorites written to disk
echo - Done
echo.
echo Add a display in Attract Mode and set its romlist to the newly created Favorites.txt
)
AM favorites romlist generator script for Windows
==========================================================
- Backing up old Favorites.txt file
- Gathering list of favorites (tag files)
- Processing tag file: Arcade.tag
- Searching rom list: Arcade.txt for rom: 64street
- Favorites.txt romlist generated. 1 romlists read, 1 favorites written to disk
- Done
Add a display in Attract Mode and set its romlist to the newly created Favorites.txt
- Processing tag file: Sega Genesis.tag
- Searching rom list: Sega Genesis.txt for rom: Duke Nukem 3D (Brazil)
FINDSTR: could not open Nukem
FINDSTR: could not open 3D
FINDSTR: could not open (Brazil)
FINDSTR: could not open Nukem
FINDSTR: could not open 3D
@echo off
setlocal EnableDelayedExpansion EnableExtensions
rem ================================================================================
rem This script basically does the same thing as DM's favorites romlist generator
rem but on Windows [Shouts to him for the pi version ;)].
rem How it works:
rem It grabs all the (tagged) favorites from every tag file, searches for them
rem through all the romlists, then generates a romlist called Favorites.txt
rem Written by Steve Sherrod, 05/20/17, as part of project HyperPie Expanded
rem ================================================================================
rem Default path (on windows). This should point to your attract modes romlists dir
cd "D:\AM\romlists\"
echo ==========================================================
echo AM favorites romlist generator script for Windows
echo ==========================================================
sleep 1
echo - Backing up old Favorites.txt file
rem remove the old Favorites.txt and create the backup
if exist Favorites.txt (
move /y Favorites.txt Favorites.txt.backup
)
echo - Gathering list of favorites (tag files)
set /a numfavorites=0
set /a romlist=0
rem loop through each tag file
for %%f in (*.tag) do (
echo - Processing tag file: %%~nf.tag
set /a numtagfiles=numtagfiles+1
rem loop through favorites stored in tag file
for /f "tokens=*" %%a in ('type "%%~nf.tag"') do (
set /a numfavorites=numfavorites+1
set favorite=%%a
echo - Searching rom list: %%~nf.txt for rom: %%a
rem loop through each rom file and parse favorited (tagged) roms
for /f "tokens=*" %%s in ('type "%%~nf.txt"') do (
set /a romlist=romlist+1
set str=%%s
rem Search current line (for current favorite substring) and if found, append it to Favorites.txt
echo."!str!" | findstr /C:%%a>nul && (
echo "!str!">>"Favorites.txt"
)
)
)
echo - Favorites.txt romlist generated. !numtagfiles! romlists read, !numfavorites! favorites written to disk
echo - Done
echo.
echo Add a display in Attract Mode and set its romlist to the newly created Favorites.txt
)
>taskkill of emulator task:
via external software (like autoit): Here
or
via NUT script:
Here
Here
or
>change complete emulator settings (instead using command line).
the folder structure seems always be the same:
YourGame123\PS3_GAME\USRDIR\EBOOT.BIN
YourGameABC\PS3_GAME\USRDIR\EBOOT.BIN
use gamefolder as "romfilename"
This should do it (untested):
executable C:\attract\EMU\PS3\rpcs3.exe
args C:\attract\EMU\PS3\ROMS\[name]\PS3_GAME\USRDIR\EBOOT.BIN
rompath C:\attract\EMU\PS3\ROMS
romext <DIR>
system Sony Playstation 3
info_source thegamesdb.net
exit_hotkey Escape
taskkill /F /IM rpcs3.exe
has no effect on the rpcs3.exe emulator, it does not kill the process, nor does it run directly at the command prompt giving the Access denied message, as the last alternative I will try a combination in ALT + F4 JoyToKey and put the result here .HotKeySet("{esc}","fechar")
ShellExecute("D:\AM-2.6.1\Emuladores\PS3 Emulator\rpcs3.exe", '"D:\AM-2.6.1\Games\Sony Playstation 3\Alone in the Dark Inferno BLUS30232\PS3_GAME\USRDIR\EBOOT.BIN" ', "open")
while 1
sleep (100)
Wend
Func fechar()
Local $fechar,$fechar2
$fechar = processExists("rpcs3.exe")
if $fechar then
processClose($fechar)
Send("!{f4}")
EndIf
Exit
EndFunc
Working on my end. Try running this code in cmd from rpcs3 directory (if roms are in d:\ps3\roms and u have demon souls in there).rpcs3 "D:\ps3\roms\Demon Souls\PS3_GAME\USRDIR\EBOOT.BIN".Make sure directory/ filename is correct. Since no central database for ps3 yet, it might be eboot.bin or EBOOT.bin or EBOOT.BIN.
Ignore that ^ just checked and rpcs3 does not support .lnk (must have mistaken it with some other em, sorry).
You should make alternate emulator entries for each item since the game ID will be different and one argument won't work on other titles. In am/romlists create a new folder named exactly as the emulator.cfg for sony ps3 (lest say its sony_ps3) in that folder create a cfg file for each game you have in collection. Only create a single entry for arg:Code: [Select]args "Absolute\Path\to\PS3_GAME\USRDIR\EBOOT.BIN"
'
Edit emultaor.cfg for ps3 and use replace .lnk in romext with .bin.
@echo off
"D:\AM-2.6.1\Emulators\PS3 Emulator\rpcs3.exe" "D:\AM-2.6.1\Games\Sony Playstation 3\Alone in the Dark Inferno BLUS30232\PS3_GAME\USRDIR\EBOOT.BIN"
Hello everyone, I've been looking here on the forum for arguments for playstation 3 games on attractmode but I haven't found anything about it, the doubt is anyone would have the arguments to make available?
Create a separate directory "Links" in rom folder. Create links for each game's EBOOT.BIN, it exists in [name]\PS3_GAME\USRDIR\EBOOT.BIN and place them in the \Links
Links is just example, name it anything you want. You can also create a direct command in "args" by using [name]\USRDIR\EBOOT but I am not sure if it would work with non disc items and disc items with updates. Use the following in emulator.cfg >Code: [Select]executable Path\to\rpcs3.exe
args "[romfilename]"
rompath Path\To\Roms\Links\
romext .lnk
################## Played Time ##################
function PlayedTime( ioffset ) {
local pt = fe.game_info(Info.PlayedTime,ioffset);
try {
pt = pt.tointeger();
}
catch(e) {
pt = 0
}
if (pt>0) {
pt = pt/60;
if (pt>60) {
pt=pt/60;
if (pt>1) {
return pt.tostring() + " Hours" ;
}
else {
return pt.tostring() + " Hour";
}
}
else if (pt<1){
return pt.tostring() + " Seconds";
}
else {
return pt.tostring() +" Minutes";
}
}
else {
return "No Time";
}
}