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.


Topics - nitrogen_widget

Pages: [1]
1
Scripting / fe.game info and number of buttons?
« on: March 23, 2018, 05:31:45 PM »
Does fe.game_info( id ) have an id for number of buttons?
I don't see it here.

https://github.com/mickelson/attract/blob/master/Layouts.md#game_info

I have it setup in my romlist for mame though.

I want to make a plugin for the RPI that will light up LED's hooked up to the GPIO's and placed in the control panel buttons to tell the player which ones to use for each game.

But i'm not familiar with plugins scripting and didn't want to beat my head against the wall if that particular id isn't recognized.



2
General / RPI compile errors on jessie after compiling ffmpeg.
« on: April 15, 2016, 03:57:09 PM »
So I think I broke jessie because ffmpeg uses a different version of libjpeg than comes with jessie.
any ideas anyone?

Thanks.

Code: [Select]
root@DietPi:~/develop/attract# make USE_GLES=1
flags: -Wl,--export-dynamic -DDATA_PATH=\"/usr/local/share/attract/\" -O2 -DNDEBUG -I/opt/vc/include -L/opt/vc/lib -Iextlibs/miniz -Iextlibs/audio/include -D__STDC_CONSTANT_MACROS -I/usr/include/freetype2 -I/usr/include/AL  -Iextlibs/squirrel/include -Iextlibs/sqrat/include -Iextlibs/gameswf  -DFE_RPI -DUSE_GLES -DUSE_FONTCONFIG -DUSE_SWRESAMPLE
fatal: No names found, cannot describe anything.
mkdir -p obj
Compiling obj/fe_base.o...
Compiling obj/fe_util.o...
Compiling obj/fe_util_sq.o...
Compiling obj/fe_cmdline.o...
Compiling obj/fe_info.o...
Compiling obj/fe_input.o...
Compiling obj/fe_romlist.o...
Compiling obj/fe_settings.o...
Compiling obj/scraper_xml.o...
Compiling obj/scraper_general.o...
Compiling obj/scraper_net.o...
Compiling obj/fe_config.o...
Compiling obj/fe_presentable.o...
Compiling obj/fe_present.o...
Compiling obj/sprite.o...
Compiling obj/fe_image.o...
Compiling obj/fe_sound.o...
Compiling obj/fe_shader.o...
Compiling obj/fe_overlay.o...
Compiling obj/fe_window.o...
Compiling obj/tp.o...
Compiling obj/fe_text.o...
Compiling obj/fe_listbox.o...
Compiling obj/fe_vm.o...
Compiling obj/zip.o...
Compiling obj/main.o...
Compiling obj/fe_net.o...
Compiling obj/swf.o...
In file included from /usr/include/c++/4.9/backward/hash_map:60:0,
                 from extlibs/gameswf/base/container.h:75,
                 from extlibs/gameswf/base/tu_file.h:18,
                 from src/swf.cpp:26:
/usr/include/c++/4.9/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header which may be removed without further notice at a future date. Please use a non-deprecated interface with equivalent functionality instead. For a listing of replacement headers and interfaces, consult the file backward_warning.h. To disable this warning use -Wno-deprecated. [-Wcpp]
 #warning \
  ^
Compiling obj/media.o...
mkdir -p obj/squirrel
Compiling obj/squirrel/sqapi.o...
Compiling obj/squirrel/sqbaselib.o...
Compiling obj/squirrel/sqfuncstate.o...
Compiling obj/squirrel/sqdebug.o...
Compiling obj/squirrel/sqlexer.o...
Compiling obj/squirrel/sqobject.o...
Compiling obj/squirrel/sqcompiler.o...
Compiling obj/squirrel/sqstate.o...
Compiling obj/squirrel/sqtable.o...
Compiling obj/squirrel/sqmem.o...
Compiling obj/squirrel/sqvm.o...
Compiling obj/squirrel/sqclass.o...
Archiving obj/libsquirrel.a...
mkdir -p obj/sqstdlib
Compiling obj/sqstdlib/sqstdblob.o...
Compiling obj/sqstdlib/sqstdio.o...
Compiling obj/sqstdlib/sqstdstream.o...
Compiling obj/sqstdlib/sqstdmath.o...
Compiling obj/sqstdlib/sqstdstring.o...
Compiling obj/sqstdlib/sqstdaux.o...
Compiling obj/sqstdlib/sqstdsystem.o...
Compiling obj/sqstdlib/sqstdrex.o...
Archiving obj/libsqstdlib.a...
mkdir -p obj/gsbaselib
Compiling obj/gsbaselib/configvars.o...
Compiling obj/gsbaselib/ear_clip_triangulate_float.o...
Compiling obj/gsbaselib/ear_clip_triangulate_sint16.o...
Compiling obj/gsbaselib/container.o...
Compiling obj/gsbaselib/file_util.o...
Compiling obj/gsbaselib/image.o...
Compiling obj/gsbaselib/image_filters.o...
Compiling obj/gsbaselib/jpeg.o...
Compiling obj/gsbaselib/logger.o...
Compiling obj/gsbaselib/membuf.o...
Compiling obj/gsbaselib/postscript.o...
Compiling obj/gsbaselib/triangulate_float.o...
Compiling obj/gsbaselib/triangulate_sint32.o...
Compiling obj/gsbaselib/tu_file.o...
Compiling obj/gsbaselib/tu_gc_singlethreaded_marksweep.o...
Compiling obj/gsbaselib/tu_loadlib.o...
Compiling obj/gsbaselib/tu_random.o...
Compiling obj/gsbaselib/tu_timer.o...
Compiling obj/gsbaselib/tu_types.o...
Compiling obj/gsbaselib/utf8.o...
Compiling obj/gsbaselib/utility.o...
Compiling obj/gsbaselib/zlib_adapter.o...
mkdir -p obj/gameswflib
mkdir -p obj/gameswflib/gameswf_as_classes
Compiling obj/gameswflib/gameswf_as_classes/as_array.o...
Compiling obj/gameswflib/gameswf_as_classes/as_boolean.o...
Compiling obj/gameswflib/gameswf_as_classes/as_broadcaster.o...
Compiling obj/gameswflib/gameswf_as_classes/as_class.o...
Compiling obj/gameswflib/gameswf_as_classes/as_color.o...
Compiling obj/gameswflib/gameswf_as_classes/as_color_transform.o...
Compiling obj/gameswflib/gameswf_as_classes/as_date.o...
Compiling obj/gameswflib/gameswf_as_classes/as_event.o...
Compiling obj/gameswflib/gameswf_as_classes/as_flash.o...
Compiling obj/gameswflib/gameswf_as_classes/as_geom.o...
Compiling obj/gameswflib/gameswf_as_classes/as_global.o...
Compiling obj/gameswflib/gameswf_as_classes/as_key.o...
Compiling obj/gameswflib/gameswf_as_classes/as_loadvars.o...
Compiling obj/gameswflib/gameswf_as_classes/as_math.o...
Compiling obj/gameswflib/gameswf_as_classes/as_matrix.o...
Compiling obj/gameswflib/gameswf_as_classes/as_mcloader.o...
Compiling obj/gameswflib/gameswf_as_classes/as_mouse.o...
Compiling obj/gameswflib/gameswf_as_classes/as_mouse_event.o...
Compiling obj/gameswflib/gameswf_as_classes/as_netconnection.o...
Compiling obj/gameswflib/gameswf_as_classes/as_netstream.o...
Compiling obj/gameswflib/gameswf_as_classes/as_number.o...
Compiling obj/gameswflib/gameswf_as_classes/as_point.o...
Compiling obj/gameswflib/gameswf_as_classes/as_selection.o...
Compiling obj/gameswflib/gameswf_as_classes/as_sharedobject.o...
Compiling obj/gameswflib/gameswf_as_classes/as_sound.o...
Compiling obj/gameswflib/gameswf_as_classes/as_string.o...
Compiling obj/gameswflib/gameswf_as_classes/as_textformat.o...
Compiling obj/gameswflib/gameswf_as_classes/as_transform.o...
Compiling obj/gameswflib/gameswf_as_classes/as_xml.o...
Compiling obj/gameswflib/gameswf_as_classes/as_xmlsocket.o...
Compiling obj/gameswflib/gameswf_abc.o...
Compiling obj/gameswflib/gameswf_action.o...
Compiling obj/gameswflib/gameswf_avm2.o...
Compiling obj/gameswflib/gameswf_as_sprite.o...
Compiling obj/gameswflib/gameswf_button.o...
Compiling obj/gameswflib/gameswf_canvas.o...
Compiling obj/gameswflib/gameswf_character.o...
Compiling obj/gameswflib/gameswf_disasm.o...
Compiling obj/gameswflib/gameswf_dlist.o...
Compiling obj/gameswflib/gameswf_environment.o...
Compiling obj/gameswflib/gameswf_filters.o...
Compiling obj/gameswflib/gameswf_font.o...
Compiling obj/gameswflib/gameswf_function.o...
Compiling obj/gameswflib/gameswf_impl.o...
Compiling obj/gameswflib/gameswf_listener.o...
Compiling obj/gameswflib/gameswf_log.o...
Compiling obj/gameswflib/gameswf_morph2.o...
Compiling obj/gameswflib/gameswf_movie_def.o...
Compiling obj/gameswflib/gameswf_object.o...
Compiling obj/gameswflib/gameswf_player.o...
Compiling obj/gameswflib/gameswf_render.o...
Compiling obj/gameswflib/gameswf_root.o...
Compiling obj/gameswflib/gameswf_shape.o...
Compiling obj/gameswflib/gameswf_sound.o...
Compiling obj/gameswflib/gameswf_sprite.o...
Compiling obj/gameswflib/gameswf_sprite_def.o...
Compiling obj/gameswflib/gameswf_stream.o...
Compiling obj/gameswflib/gameswf_styles.o...
Compiling obj/gameswflib/gameswf_tesselate.o...
Compiling obj/gameswflib/gameswf_text.o...
Compiling obj/gameswflib/gameswf_tools.o...
Compiling obj/gameswflib/gameswf_types.o...
Compiling obj/gameswflib/gameswf_value.o...
Compiling obj/gameswflib/gameswf_video_impl.o...
Compiling obj/gameswflib/gameswf_mutex.o...
Compiling obj/gameswflib/gameswf_sound_handler_openal.o...
Compiling obj/gameswflib/gameswf_freetype.o...
Compiling obj/gameswflib/gameswf_render_handler_ogles.o...
Archiving obj/libgameswf.a...
mkdir -p obj/audiolib
Compiling obj/audiolib/ALCheck.o...
Compiling obj/audiolib/AudioDevice.o...
Compiling obj/audiolib/Listener.o...
Compiling obj/audiolib/SoundSource.o...
Compiling obj/audiolib/SoundStream.o...
Archiving obj/libaudio.a...
Creating executable: attract
/usr/bin/ld: warning: libjpeg.so.8, needed by /usr/lib/gcc/arm-linux-gnueabihf/4.9/../../../arm-linux-gnueabihf/libsfml-graphics.so, may conflict with libjpeg.so.62
obj/fe_image.o: In function `FeTextureContainer::fix_masked_image()':
fe_image.cpp:(.text+0x10b4): undefined reference to `sf::Image::~Image()'
fe_image.cpp:(.text+0x1120): undefined reference to `sf::Image::~Image()'
obj/fe_window.o: In function `FeWindow::initial_create()':
fe_window.cpp:(.text+0x1e4): undefined reference to `sf::Window::setSize(sf::Vector2<unsigned int> const&)'
obj/main.o: In function `main':
main.cpp:(.text.startup+0xc94): undefined reference to `sf::Image::~Image()'
main.cpp:(.text.startup+0x197c): undefined reference to `sf::Image::~Image()'
collect2: error: ld returned 1 exit status
Makefile:420: recipe for target 'attract' failed
make: *** [attract] Error 1

3
General / Twitter?
« on: April 05, 2016, 11:37:00 AM »
Does AM have one?
just asking since i've started using it for for CHIP, DietPI, ect.

4
Themes / Re: Version 2.0.0 Release Candidate #2
« on: April 03, 2016, 11:04:46 AM »
Regardless, you're a damn good programmer and we mortals appreciate your hard work. ;)

How do you do this?
I read the hyperspin.nut file but i'm coming up with a blank.
I downloaded a hyperspin theme.
it's just a zip with some files in it.
i'm just not able to piece together the proper directory structure in the layout folder for the hyperspin theme to work.
help?
i feel stupid because i'm just not getting it. LOL!

FYI 2.0 compiles fine with gles flag on rpi3 i'm just trying to see if hyperspin themes will run on the rpi2/3.

5
General / C.H.I.P. $9 computer and Attract mode
« on: February 17, 2016, 06:53:30 AM »
I got my chip yesterday.
SFML 2.1 is part of the distro it comes with and AM seems to compile fine and run also.
so does the latest update of advanced mame.
Only issue is they don't have hardware acceleration built into the kernel yet so it's dog slow.

It's supposed to be coming "soon" but when is anybody's guess.
So this may be another option for a mini computer to run attractmode on.


6
General / 1.60 rpi off center
« on: November 14, 2015, 09:38:11 PM »
I just compiled latest version for rpi. But attract mode is off cneter.
I thought in earlier versions I changed the screen mode but in this version I can't find it in the menu.

What am I missing?

7
Scripting / execute a file when layout/emulator is chosen?
« on: June 14, 2015, 09:37:39 AM »
Is there a way to run a file on the computer when I select a different emulator?

I'm setting up two instances of mame on my RPI.
One instance is vertical & the other horizontal.
I plan to use a motor or servo to rotate the lcd panel based on which layout i'm using.

I can easily do it manually with a pair of buttons but having it trigger automatically when I switch emulators in AM would of course be cooler.

8
General / RPI 1&2 Attractmode image
« on: May 28, 2015, 07:11:26 PM »
Hi all,
Here is an image I put together for the RPI with diet-pi,attract mode 1.5.2, & since diet-pi came with the retro-pi script I put samba shares for roms & artwork plus mame4all, advmame .96 & 1.2

https://drive.google.com/file/d/0B55xxfI-_rofR2hhcmh1YTNxdDg/view?usp=sharing

This should run on all B models of RPI both 1&2.
I have the config set for GPU memory based on model.

Also, I installed a gpio joystick driver to run at boot.
it has a shutdown option.
    Here is the pin-out diagram for the GPIO.
    I can confirm the shutdown works.
    https://github.com/ian57/Raspicade-Retrogame-2Player-BPlus/wiki

    here is the guide.
    https://github.com/ian57/Raspicade-Retrogame-2Player-BPlus

This guy did an awesome job with his driver!

    I had to adjust the code a little to make it stop calling for Root access since the dietpi distro is allready running at root.
    I didn't test the joystick stuff yet.

    attract mode starts at boot also.
    i've got it set for vertical using Omegaman's awesome layout which surprisingly runs rather well on a RPI 1 with 256mb.
advmame-roms and advmame-art along with mame4all-roms & mame4all-art are the folders.

    Those are the only two emulators installed.

 desktop icons are gone, toolbar is hidden so you won't see it when mame launches.

I forgot to put raspi-config on there for easy expansion of the card but you can find that yourself easy enough or use gparted.

it will be on the next one.

only thing, i'm using a hdmi to vga adaptor for a 1280x1024 lcd panel so you may need to adjust the config file for your display type.

I've been hit & miss with advmame but mame4all works great.


9
General / Mame for RPI in X-windows with Attract Mode
« on: May 28, 2015, 07:11:00 AM »
My findings are mame4all is the only version to run on a rpi1 in x-windows.

For an RPI2 advmame in console. not sure about X.
using the retro pie script I installed advmame .96 & 1.2 but using SDL .96 is locked to the RPI resolution you set in the config file so at high resolutions performance takes a hit on some games.

using advmame 1.2 you can use the Game resolution & higher and it scales up to the monitor resolution.
I've found this works for most classics just fine but other's are see slow downs.

The only reason i shy away from mame4all is that it doesn't scale to the full screen so you can get a black boarder all the way around but in X we may have to just deal with it.

tonight i'm going to upload an image to my google drive made with diet-pi OS, Attractmode compiled, retropi script installed along with mame4all, advmame .96 & 1.2

I'd love it if people could play around and help with figuring out the best version of mame to use in X.
Or if you have already tested this i'd love to hear your opinions.

I'm also going to try recompiling advmame from scratch for the X environment or possibly Xmame.


10
General / Seeing Desktop on RPI2 when launching & ending games
« on: May 21, 2015, 07:03:00 AM »
Is there any way to keep the screen black when AM hides itself and launches a rom?
Same with when advmame closes & AM opens?

I'm thinking it's just the speed of the SDcard & the RPI since it's very minimal with mame4all but very noticeable with advmame.
and

I suppose just getting rid of the icons on the desktop & tool bar would work but just wanted to check and see if there is anything else I can do.

11
General / 1.5 on linux emulator cfg issues
« on: February 27, 2015, 08:24:45 PM »
Hi,
Newest version overwrites my .cfg file for mame with the default every time it's started.
I've duplicated this on two different linux systems.
Removing the default .cfg file from the /usr/local/share/attract stops the overwrite but then attract won't let me open the config for the mame emulator.

any ideas?

12
Scripting / monitor rotation on linux
« on: February 14, 2015, 12:31:59 PM »
can attractmode call a script file or binary file to activate hardware to turn a monitor when I launch a game that is vertical then run another file upon exit of the game to return the monitor to horizontal?

I'd come up with the hardware & software myself to do the actual turning of the monitor, i'd just need a front end to control it for me.

13
General / raspberry pi 2
« on: February 03, 2015, 10:18:05 AM »
I bet attract mode will run on the new quad core rpi providing the version of Ubuntu for arm 7 has sfml.

I have mine on order.

14
General / what version mame?
« on: December 02, 2014, 08:56:39 PM »
For single core p4 CPUs I'm using advmame .106
For 64 bit CPUs I'm using Mame .149 patched.
Both on linux.

What is everyone else using?

15
General / installing attract mode on linux question
« on: September 09, 2014, 07:20:48 PM »
My distro lacked the depends to compile SFML in 64 bit.
I found some info online and decided to give something a try.

So I downloaded the 64bit linux SFML binaries off the site, copied the 3 folders in the archive to my /USR directory.
Ran the following commands as SU:

ldconfig
export "LD_LIBRARY_PATH=/path/to/lib_folder/"

and compiled after installing attract-mode depends.
it worked and attract starts up & appears to run just fine.
will I have issues down the road or do you think i'll be ok?




Pages: [1]