RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login
    1. Home
    2. Tags
    3. programming
    Log in to post
    • All categories
    • C

      splash screen starting from boot up

      Watching Ignoring Scheduled Pinned Locked Moved Help and Support splash screen programming
      3
      0 Votes
      3 Posts
      395 Views
      C

      whel found it this is the solution (found it on yourtube)

    • T

      Starting a game from a script file

      Watching Ignoring Scheduled Pinned Locked Moved Help and Support script programming runcommand
      10
      0 Votes
      10 Posts
      1k Views
      F

      @teethree89

      2 old projects of mine, perhaps something to peek in :

      https://github.com/FollyMaddy/retropieXstation

      and

      I always use this in the desktop environment, running games directly from the explorer :
      https://github.com/FollyMaddy/RetroRun

    • IceChes1I

      QBASIC in DOSBox?

      Watching Ignoring Scheduled Pinned Locked Moved Help and Support qbasic dosbox coding programming
      3
      0 Votes
      3 Posts
      396 Views
      IceChes1I

      Thanks.

    • P

      Creating a 2D game for RetroPie in Unity

      Watching Ignoring Scheduled Pinned Locked Moved Ideas and Development programming unity love love2d arcade
      5
      0 Votes
      5 Posts
      3k Views
      johne79J

      @povoas said in Creating a 2D game for RetroPie in Unity:

      For my school project I'm trying to create an arcade using a Raspberry Pi with RetroPie in it. The second part of the project would be creating a game for said arcade. I've trying to find the best platform to create the game on but I'm still not sure which one to choose.
      Love2D was reccomended to me by my teacher however I feel like a software like Unity with an UI would help me alot. My question is could I use Unity somehow and would the RetroPie run it, or is .lua/LOVE my only option?

      Thanks in advance.

      I just saw a video for a Unity3D game running on an RPI4 via Box86: https://github.com/ptitSeb/box86

      I haven't tested this but it sounds like the build process is you build your game for Linux x86, copy the deployment to the Pi, and then run Box86 on it.

    • A

      Credits Stored In Game Select Menu

      Watching Ignoring Scheduled Pinned Locked Moved Help and Support help me idea retropie 4.4 programming script request
      12
      0 Votes
      12 Posts
      2k Views
      O

      @mitu sorry, must have read too quickly. I was thinking one credit per each time the emulator is started, and then drop a credit when the game exits.

    • S

      MMORPG on RetroPie (with gamepad)

      Watching Ignoring Scheduled Pinned Locked Moved General Discussion and Gaming retropie mmorpg programming
      1
      0 Votes
      1 Posts
      522 Views
      No one has replied
    • J

      Programming my own Retropie Games

      Watching Ignoring Scheduled Pinned Locked Moved Help and Support roms help roms games programming
      4
      0 Votes
      4 Posts
      1k Views
      mediamogulM

      @joshuaquinn

      Adding to @rbaker's reply, once you have your game created, you would add it to RetroPie as a Port.

    • C

      Understanding the code

      Watching Ignoring Scheduled Pinned Locked Moved General Discussion and Gaming learning programming noob
      5
      0 Votes
      5 Posts
      1k Views
      P

      @capninja said in Understanding the code:

      Is there some game or interactive way to learn about code language and linux (on Raspberry)? Messing with Raspberry the curiosity itch caught my back and I can't scratch enough. I don't wanna just copy texts and press enter, but know why make such decisions.
      I don't know if I made myself clear, thanks in advance.

      If you're new to coding I can suggest you to start out with C programming. C is portable and universal, many popular programming languages are influenced by C such as Java, JavaScript, C#, C++, PHP, Python. So after learning C these languages mentioned will be very easy to learn.

      IMHO the BEST C book is: C How to Program by Deitel. It also covers secure programming and C++. C Programming Language by Ritchie Dennis is also a great book but not for beginners. Avoid the for Dummies books, they're horrible.

      Bjarne Stroustrup has written a couple C++ books, they're considered one of the best C++ books. I have them in eBook format but I'm still on the Deitel book.

      Most emulators are written in C/C++, the Pi supports C/C++, Linux was written in C. So IMHO better start with C and later C++ and good luck with your coding journey, it will be a lot of fun!

    • hansolo77H

      Python on my Tablet?

      Watching Ignoring Scheduled Pinned Locked Moved General Discussion and Gaming python android programming
      6
      0 Votes
      6 Posts
      2k Views
      hansolo77H

      Thanks! I'll give that guide a go, and see what turns up.

    • K

      Advanced Safe Shutdown Idea

      Watching Ignoring Scheduled Pinned Locked Moved Ideas and Development programming help beginner idea gpio
      8
      0 Votes
      8 Posts
      2k Views
      K

      So its looking like I want to do the mausberry varient if these power mods, which varient are people using mostly to get what I'm after tho?
      https://mausberry-circuits.myshopify.com/products/shutdown-circuit-use-your-own-switch

      direct-plug micro-USB, 2-pin spring terminal header, or the versions with a USB female plug?

      I'm still not 100% certain how this works but it looks like the switch only controls either the reset or power switch? If that's the case does the power switch still power everything directly?

      What I'm thinking is this correct me if I'm wrong?

      Power switch = hard on off power (no script for safe shut down)

      Reset switch = mausberry switch with script that if in emulator and pressed quits the emulator and if not in emulator and is pressed runs script for safe reset?

    • chipsnblipC

      Jump n' Bump (as a Port?)

      Watching Ignoring Scheduled Pinned Locked Moved Ideas and Development port sdl programming
      5
      0 Votes
      5 Posts
      2k Views
      H

      Hey @chipsnblip thanks for the positive feedback! I'm glad you are having fun with this game :)
      I've been a bit busy so sorry for the delay replying.

      one small request, if possible, could gore be enabled by default (nogore = 0)? it's been a while, but i believe having gore on might be the game's standard default (at least on the linux build).

      Yes, the game upstream has gore enabled by default. I decided to disable this in the scriptmodule by default thinking that RetroPie might be used by kids (due to its "cute bunnies" premise). However I might have over-thought it too :)

      If @BuZz doesn't have any particular opinion about it, I can send a PR to not force gore on first-install.

    • meleuM

      shell scripting topic

      Watching Ignoring Scheduled Pinned Locked Moved Ideas and Development shell shell script programming
      191
      3 Votes
      191 Posts
      86k Views
      hiulitH

      Well, here it is! A new version of RetroPie Shell Script Boilerplate.

      This is a template for building shell scripts for RetroPie.

      I've added examples of the following dialog boxes:

      --infobox --yesno --msgbox --menu

      All the dialogs can be found at utils/dialogs.sh

      I've also moved some functions to utils/base.sh.

    • coderkevinC

      How to run games programmatically?

      Watching Ignoring Scheduled Pinned Locked Moved Help and Support runcommand scripting programming command line daemon
      4
      0 Votes
      4 Posts
      2k Views
      coderkevinC

      Okay folks, I've written up a script to handle this exactly the way I described before.

      It runs from the autostart.sh and watches /dev/shm/screen_manager.cfg for updates.
      That way any other system process can create/modify that file and this script will respond by either starting the rom, or starting the dashboard.

      Cheers!

      https://github.com/coderkevin/mini-nes/tree/master/screen

    • LazyLizardL

      What language to code a backround program in retropie

      Watching Ignoring Scheduled Pinned Locked Moved Help and Support coding diy new at this programming arcade retropie
      6
      0 Votes
      6 Posts
      4k Views
      meleuM

      @LazyLizard This seems to be a great bash guide with cool tips and tricks:
      http://mywiki.wooledge.org/BashGuide

      And if you have a specific question about bash, this is a really good resource to look at (even before searching in google):
      http://mywiki.wooledge.org/BashFAQ

    • obsidianspiderO

      Python Help - Second ILI9341 Display White After Pi Update

      Watching Ignoring Scheduled Pinned Locked Moved Help and Support python tft tft screen programming adafruit
      20
      0 Votes
      20 Posts
      6k Views
      obsidianspiderO

      It's working!

      I reapplied the Raphnet kernel patch. The CPU is once again showing as BCM2835, but my screen's output is fixed! It looks like the 20170303 version of the kernel fixed the issue.

      I'm really going to think twice about updating the software on my now working Super Famicom Pi.

    • mercifulhackerM

      It used to be about the games, maaaaan!

      Watching Ignoring Scheduled Pinned Locked Moved General Discussion and Gaming games hacking programming support group
      27
      6 Votes
      27 Posts
      10k Views
      M

      @PetroRie

      LocoRoco on PSP has some slowdowns and absolutely maxes out my Pi causing a very quick heat lockup if I don't have the fan on. I would just play it on my actual PSP, but i develop tendon pain after a couple minutes using the PSP anymore.

      Enhanced Resolution on the PSX does look great and frankly, if I don't run that or PSP, then I could have stuck with my Pi2. I may try out no enhanced resolution but a shader to see how it runs.

      I don't see Dolphin (GC/wii) or the PS2 emulator on a Pi for a long time. It's just not going to be powerful enough on the graphics end. Frankly, I have an XBOX 360 and XBOX One when I want more modern stuff. The X360 still plays a lot of the better original XBOX games.

      Heck, my boys are spoiled with their choice of: Xbox 360, Xbox One, PSX, N64, Wii (the version that can play GC games if I bough a GC controller) and Retropie.

    • M

      Going to Linux Command Lines? Help?

      Watching Ignoring Scheduled Pinned Locked Moved Help and Support linux programming front screen help
      3
      0 Votes
      3 Posts
      1k Views
      columboscoatC

      Type "emulationstation" without quotes. This should load ES (RetroPie). Go into the RetroPie config menu on the GUI. Choose RetroPie Setup > Configuration / tools > 002 autostart... choose 1 start ES at boot. Cancel back to GUI, and reboot...

    • A

      Programmatically run game from console

      Watching Ignoring Scheduled Pinned Locked Moved Help and Support retropie programming controller
      6
      0 Votes
      6 Posts
      2k Views
      A

      And launching it manually

      Parameters: 0 _SYS_ snes /home/pi/RetroPie/roms/snes/SuperMarioWorld.sfc Executing: /opt/retropie/emulators/retroarch/bin/retroarch -L /opt/retropie/libretrocores/lr-snes9x2010/snes9x2010_libretro.so --config /opt/retropie/configs/snes/retroarch.cfg "/home/pi/RetroPie/roms/snes/SuperMarioWorld.sfc" --appendconfig /dev/shm/retroarch.cfg PPU.RenderSub = 0 PPU.FullClipping = 1 Settings.Transparency = 1 Settings.SpeedhackGameID = 7 PPU.SFXSpeedupHack = 0 coldata_update_screen = 0