Recent Posts

Pages: [1] 2 3 ... 10
1
Scripting / Re: ScrollingText module
« Last post by arthurvalenca on Today at 07:07:09 AM »
Hello friends, I'm having trouble making the text scroll up, even changing the code it continues to move left, someone could help me with this

Code: [Select]
fe.load_module("objects/scrollingtext");
local scroller = ScrollingText.add( "[OVERVIEW]", 25, 50, fe.layout.width - 25, 75, ScrollType.VERTICAL_UP );

//there is a couple wrapper functions for color:
scroller.set_rgb( 255, 0, 0 );  //the text color
scroller.set_bg_rgb( 0, 0, 0 ); //the surface color (uses a pixel.png to color the surface)
//scroller.set_pos( 0, 0, 100, 100 ); //the surface x, y, w, h

//you can access the surface and text objects directly
//scroller.surface <- the surface
//scroller.text <- the text object

//There are also some settings:
scroller.settings.delay = 500;
scroller.settings.loop = -1;

PS: It has been changed in all ways to VERTICAL_UP, but still continue to the left, please help me.
2
Themes / Re: "P5" theme
« Last post by juliolima on Today at 05:22:51 AM »
What a shame it did not continue, the theme is very good.
3
Themes / Re: "P5" theme
« Last post by juliolima on Today at 05:22:11 AM »
What a shame it did not continue, the theme is very good.
4
Any chance to upload a basic working image with all the stuff setup ready?
I mean not roms but all your custom additions.

Ok, I will try to best draft it  :)
5
Scripting / Re: Squirrel setting conveyor() (wheel) fall-back image logos
« Last post by Dal1980 on Yesterday at 06:25:38 AM »
I wouldn't normally bump a topic this old but I just tried to google the same question and came across my own post!  :o ;D.

Can someone please point me in the right direction

Code: [Select]
     class WheelEntry extends ConveyorSlot {
     
          constructor() {
               base.constructor( ::fe.add_artwork( myConfig["orbit_art"] ));
     }
         
          function on_progress( progress, var ) {
               local p = progress / 0.1;
               local slot = p.tointeger();
               p -= slot;
               slot++;

               if ( slot < 0 ) slot=0;
               if ( slot >= 10 ) slot=10;

/* ADDITIONAL */
               if(m_obj.file_name == ""){
                    m_obj.file_name = "parts/no-logo.png";
                    m_obj.preserve_aspect_ratio = true;
               }
/* ADDITIONAL */

               m_obj.x = wheel_x[slot] + p * ( wheel_x[slot+1] - wheel_x[slot] );
               m_obj.y = wheel_y[slot] + p * ( wheel_y[slot+1] - wheel_y[slot] );
               m_obj.width = wheel_w[slot] + p * ( wheel_w[slot+1] - wheel_w[slot] );
               m_obj.height = wheel_h[slot] + p * ( wheel_h[slot+1] - wheel_h[slot] );
               m_obj.rotation = wheel_r[slot] + p * ( wheel_r[slot+1] - wheel_r[slot] );
               m_obj.alpha = wheel_a[slot] + p * ( wheel_a[slot+1] - wheel_a[slot] );


          }
     };


This works but only after the conveyor has moved.



 
6
Themes / Re: Ambience HD theme [WIP]
« Last post by ryuuji on June 20, 2018, 02:57:28 PM »
C'mon man we are dying here
8
Themes / Re: Neo Geo Mini Theme
« Last post by jedione on June 20, 2018, 06:06:25 AM »
I´m working (with Oomeks help ;D) on my own version based on Verion`s.
I have to make a sepparate post.



https://www.youtube.com/watch?v=PrvltBXSXzY


after looking at the international , im thinking yours and Oomek, will be even better...
his ambiance already scrolls better then this...cant wait,thanks
10
Themes / Re: Help with the language.
« Last post by zlagos on June 20, 2018, 02:55:56 AM »
We can see that each area/file is using a different character. Pájaros vs. Pßjaros vs. Pájaros (which of these is correct?). We know this is the issue but not why.

Pájaros [birds], is correct.

Quote
Here are things you could test:
1. try the "basic" layout in AttractMode (yours looks custom and it could be something in your layout.nut)

Basic layout, from AM, with any modification is the example of images above:

Quote
2. do you have the same issues with game roms or just these songs? (i.e. show us entries of a romlist.txt that was created by AM and not your script and let us know if it works properly)

The romlist is not generated by AM, I generate them myself with this code:
Code: [Select]
set musicfolder=F:\JukeBox
set output=E:\arcade\sistemas\pinballs\jukebox\roms
set screenshots=E:\arcade\sistemas\pinballs\jukebox\wheel
set musiclist=E:\arcade\attract\romlists

:: temporarily change console codepage to UTF-8 (with this it reads the title well and does not read the wheel)
REM >NUL chcp 65001

:: temporarily change console codepage to ANSI (with this it reads the wheel well and misreads the title)
REM >NUL chcp 1252

:: borrar listas antiguas
del "%output%\*.*" /Q
del "%screenshots%\*.*" /Q
del "%musiclist%\Jukebox.txt" /Q

>NUL chcp 65001
:: crear listas de musicas
for /f "tokens=*" %%a in ('dir "%musicfolder%" /ad /b ') do dir /s /b "%musicfolder%\%%a\*.ogg" "%musicfolder%\%%a\*.m4a" "%musicfolder%\%%a\*.wma" "%musicfolder%\%%a\*.mp3"  >> %output%\%%a.m3u

>NUL chcp 65001
:: copiar imagenes a la carpeta screenshots
for /f "tokens=*" %%a in ('dir "%musicfolder%" /ad /b ') do xcopy "%musicfolder%\%%a\*.jpg" "%screenshots%\%%a.jpg*" /Y

>NUL chcp 1252
:: crear Jukebox.txt
for %%i in ("%output%\*.m3u") do @echo %%~ni;%%~ni;Jukebox;;;;;;;;;;;;;; >> "%musiclist%\Jukebox.txt"


With this above code, it only reads badly the song data with

Code: [Select]
fe.game_info (Info.Title)

Everything else, read wheels, m3u, from the disk, does it right. If I change it, it fails more. And if AM generates it, even worse.

Quote
3. from the console/command line do a "dir" on your rom folder and your artwork folder. also do an "echo" on the romlist. do these show the same correct characters here on the windows command line (outside of AM)
4. i know when I setup a Linux based OS I tell it to use EN_US_UTF-8. If I use EN_UK_UTF-8 most of my keys work properly but some don't work such as "$" since they are specific to the region. I don't remember ever needing to specify anything that specific in windows but I'm from the US and speak english which are both defaults for windows. you might check this out (I don't know if it's accurate) https://stackoverflow.com/questions/1677655/charset-for-spanish-windows.

I already did both, and that's why I use "chcp"

Quote
P.S. I see you have mentioned compiling AM in this thread http://forum.attractmode.org/index.php?topic=2278.0. Are you using an official AM download or one you or somebody else compiled? Have you tested your issue with older versions of AM?

My attract.exe is modified, but my attract_console.exe is the last version official. I use both indistinctly, and the result is always the same.
Pages: [1] 2 3 ... 10