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

Pages: [1] 2 3 4
1
Themes / Re: Help with the language.
« on: Yesterday at 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.

2
Themes / Re: Help with the language.
« on: June 19, 2018, 07:19:28 AM »
What OS are you using and have you properly set the language, keyboard, location, etc. settings?

If your OS is Linux you should see the console messages/errors from AM. If you're using Windows you can try...
1. Download the console version of AM from here http://attractmode.org/download.html.
2. Extract the attract.exe file and rename it to attract-console.exe.
3. Place this file in your existing AM install folder and run it. You should see what's happening in the console window as you scroll through the games.

I use Windows 10 in Spanish (Spain). And my jukebox.cfg file is encoded in UTF-8:

Code: [Select]
@echo off
:: temporarily change console codepage to UTF-8
>NUL chcp 65001

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

And when I open it in the notepad, - an example line - it reads:

Code: [Select]
Amaral - Pájaros En La Cabeza - 2005;Amaral - Pájaros En La Cabeza - 2005;Jukebox;;;;;;;;;;;;;;

But in the Attract-Mode console it appears with the following characters:

Code: [Select]
Loading TXT: E:\arcade\sistemas\pinballs\jukebox\roms/Amaral - Pßjaros En La Cabeza - 2005.m3u

That does not look like ANSI code, because when i convert Jukebox.cfg from UTF-8 to ANSI, it says:

Code: [Select]
Amaral - Pájaros En La Cabeza - 2005;Amaral - Pájaros En La Cabeza - 2005;Jukebox;;;;;;;;;;;;;;

This is a mess, I do not know what's happening here...

3
Themes / Re: Help with the language.
« on: June 18, 2018, 06:34:16 PM »
Check \Emulator\Attract Mode\romlists\ .... .txt file. Make sure name can correctly display in rom list. You may need to change the txt file to UTF-8 format

I have opened it with notepad++ and it says: encode in utf-8.

If I encode this file to ANSI, the problem is reversed: The flyer looks good, but the special characters of the title do not look good.

4
Themes / Help with the language.
« on: June 18, 2018, 02:19:36 PM »
Using the Spanish language in Attract-Mode, when the name does not have special characters, it looks good:



They see the title and the flyer perfectly.

But if it bears some special character, typical of the Spanish language, as in the following case, the title is perfectly read (including the special character), but it does not read the flyer, whose name on the hard disk also carries the special character.



Can someone tell me why this happens and how to solve it?

Thanks in advance.

5
Scripting / Re: New feature: vertical text alignment
« on: June 18, 2018, 08:45:32 AM »
I use a version compiled in June 2018 by Mark Ormond to use the options by display and not just by layout, and I only have that exe.

Never i used debugger for console.

6
Scripting / Re: New feature: vertical text alignment
« on: June 18, 2018, 03:56:53 AM »
Is a AM DEBUG mode.
Generate a file "last_run.log" with the console messages, and errors found, and/or the data you want in your layout with a code like this:

Code: [Select]
::print(" > DEBUG: " + fe.game_info(Info.Emulator) + "\n");

https://github.com/keilmillerjr/debug-module

7
Scripting / Re: New feature: vertical text alignment
« on: June 18, 2018, 12:48:15 AM »

Thanks, I’ll look into it. Maybe it’s because I renabled the old debug window in the make file. If you compile it from my branch it should work.


 ;D ;D ;Dhttp://forum.attractmode.org/index.php?topic=2278.0;topicseen ;D ;D ;D

8
Themes / Re: Layout background design
« on: June 17, 2018, 12:12:42 PM »
Thanks, but what I'm asking is not programming, but graphic help, with attractive designs and color combinations.

https://coolors.co

Thanks... it's a help...

9
Themes / Re: Layout background design
« on: June 17, 2018, 11:40:53 AM »
Thanks, but what I'm asking is not programming, but graphic help, with attractive designs and color combinations.

10
LCD Theme

Hello, here I bring you a basic and simple theme, with four customization options.

To use it in Spanish, change the layout.nut by the layout_english.nut and icons folder for spanish icons folder.

It's just a list, it does not use wheels. Now, new shuffle list.
It carries 42 icons for the categories or genres of games.
It carries 129 system logos.

You can choose:

-The alignment of the text: left, right, center.
-If flyers are used or not (if they are not used, a raspi appears instead).
-If the icons of the categories are used or not (in text they always appear).
-If the logos of the systems are used or not (in text they always appear).

Well, you better see it:

With all activated:



Nothing:


New shuffle list:


And, if you're interested, you have it here (with new shuffle list):

https://mega.nz/#!T4FUwIoS!0Aian5b9O7r4DHmCeBgclU3F-hVI54MyVY6pXnrHavE

This layout prefers to put more games than graphics and videos in the sd... :D

11
Themes / Re: Put a random icon on the screen.
« on: June 17, 2018, 02:14:49 AM »
Well ido not see the difference in what you tell me what I do:

Code: [Select]

local my_film = randInt(30);

my_film = my_film.tostring() + ".png";

local film = fe.add_image("posters/films/" + my_film, 0, 0, flw*0.408, flh*0.6);


Something is slipping away ... :D

(Me lo vas a tener que explicar en español, a ver si así me entero mejor) :)

12
Themes / Layout background design
« on: June 17, 2018, 02:08:33 AM »
I am preparing a layout with the following backgrounds:








I know I'm not very good at this ... But here there are very good people in it.

That's why I ask for your help, to see if you can suggest any combination of colors or alternatives to the design of mine.

What can not be modified are the measures or the margins, otherwise I would have to modify all my code and that is not desirable.

Thanks in advance for your help.

13
Themes / Re: Put a random icon on the screen. (SOLVED)
« on: June 16, 2018, 09:31:28 AM »
Another simple solution is put some "random" jpg´s into the "scrapper/[sytem]" folder.
I mean , you have a "NES" layou.nut with something like

fe_add.artwork = icon...

Then just create a folder "scrapper/nes/icon"
Inside 1.jpg , 2.jpg , 3.jpg or wathever you want  :D

Thanks, a great idea...  :D  but i do not use the scrapper for nothing at all  ::)

14
Scripting / Re: New feature: vertical text alignment
« on: June 16, 2018, 06:53:35 AM »
Your exe is not compatible with :

Code: [Select]
if (fe.load_module("Debug")) log <- Log();

Not run with my theme layout and not shows "last_run.log" file.

15
Themes / Re: Put a random icon on the screen. (SOLVED)
« on: June 15, 2018, 04:18:48 AM »
Windows 10 with Intel Core i7-4790K 4.0 Ghz.

Pages: [1] 2 3 4