Homebrew Lovebrew building project

nfoert

Member
OP
Newcomer
Joined
Apr 5, 2023
Messages
10
Trophies
0
Age
16
XP
55
Country
United States
I'm learning how to make my own homebrew with LoveBrew. I'm following the 'LÖVE Potion Tutorial' from lovebrew.org. I'm new to 3DS homebrew and Lua but not new to programming. I've made it to the point in the guide where I run lovebrew build. I get an error Build for Nintendo 3DS failed. Check log for details. I've already enabled logging in lovebrew.toml. Inside the log file is:
Code:
INFO [13:19:06] -- lovebrew: Initialize..
INFO [13:19:06] -- lovebrew: -- Nintendo 3DS --
INFO [13:19:06] -- lovebrew: Packing game content...
INFO [13:19:06] -- lovebrew: Zipping build\game to nfoert.love
ERROR [13:19:06] -- lovebrew: Error packing game content: Zip archive has no contents
My directory structure is:
Code:
/Test
     - /build
     - /SuperGame
          - main.lua
     - icon.png
     - lovebrew.toml
I've also modified lovebrew.toml changing targets = ["3ds", "switch"] to targets = ["3ds"] (Including "switch" causes ERROR [18:27:58] -- lovebrew: Binary `C:\Users\xxxxx\AppData\Roaming\lovebrew\LOVEPotion.nro` was not found. Aborting. to appear in the log file as well, but I'm not developing for switch, so I'm not sure this applies to me.)

main.lua contains
Code:
function love.draw()
    love.graphics.print('Hello World!', 200, 120)
end
-- we need to quit the app when a button is pressed
function love.gamepadpressed(joystick, button)
    love.event.quit()
end
This is the code at the bottom of the home page of lovebrew,org

I'm unsure what zip archive the error ERROR [13:19:06] -- lovebrew: Error packing game content: Zip archive has no contents refers to.
I have devkitpro installed.
What am I doing wrong?

(Apologies if this is the wrong place to ask something like this.)
Post automatically merged:

-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------


Ok I found the solution. If anyone comes across this issue in the future, here's what worked for me.

First, I installed an older version of lovebrew (LÖVEBrew 0.5.5) from the lovebrew GitHub. Put the windows executable lovebrew.exe in C:\Users\yourname\AppData\Roaming\lovebrew (If you were following the 'LÖVEBrew tutorial' I mentioned in my original post you should already have hbupdater.exe and lovepotion.3dsx in this location. You can remove lovepotion.3dsx, then download the 3DS folder from the lovepotion GitHub. Take the LovePotion.elf file, rename it to 3DS.elf and drop it in your C:\Users\yourname\AppData\Roaming\lovebrew folder. Now, navigate to your project folder (where you have your .lua files and lovepotion.toml) Right-click and select Open in Terminal and then type lovebrew build. (If you get a message saying something about the config file not being supported, run the command lovebrew init and then y to generate a new one, then try lovebrew build again.)

If everything went as planned, navigate to your build folder, copy it to the 3ds folder on your SD card for your 3DS and rename it to something else. (I just chose lovebrew you probably don't have to rename it but I feel like leaving directories called build might cause problems. :P)

It seems like using the newest version of lovebrew (0.6.0) does matter because I'm getting the same error as before. (Error packing game content: Zip archive has no contents)

I hope this helps someone, since it was very hard for me to find much documentation or people having problems with lovebrew.
 
Last edited by nfoert,
  • Like
Reactions: CooingMaxito

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • K3Nv2 @ K3Nv2:
    Still don't know why he left unless someone really hurt his feelings
  • K3Nv2 @ K3Nv2:
    Don't know why people get so emotional online just get over it ffs
    +2
  • BigOnYa @ BigOnYa:
    He was the ass of gbatemp, everyone knocked on him, I honestly felt bad, even though I was guilty myself, but he egged it all on himself,
  • BigOnYa @ BigOnYa:
    But he still here, but under dif name, he pm me sometimes still even.
  • K3Nv2 @ K3Nv2:
    It's like they think we'll be in their bed pissing on it the next day
  • BigOnYa @ BigOnYa:
    I feel like gbatemp should make t-shirts or memorabilia to remember the lost ones. I bet the Polly shirts would sell out quick.
  • K3Nv2 @ K3Nv2:
    Nah that could actually bring lawsuits
  • K3Nv2 @ K3Nv2:
    Tempsuits
  • BigOnYa @ BigOnYa:
    PollySuits
  • BigOnYa @ BigOnYa:
    Your correct, Somebody would be guilty and there would be riots, then they storm the gbatemp capitol,
  • K3Nv2 @ K3Nv2:
    Online or not there are still certain rights that judges would have no issue handing out a warrant over
  • K3Nv2 @ K3Nv2:
    Just look at Kim dotcom
  • BigOnYa @ BigOnYa:
    Honestly I'm scared to, from you, but ok, lemme turn on vpn, virtual machine, private browser first
  • K3Nv2 @ K3Nv2:
    Remember that Alexa robot I gifted you
  • K3Nv2 @ K3Nv2:
    And that laptop Webcam you never tapped up
  • BigOnYa @ BigOnYa:
    That robot is here somewhere, I hear it moving around at night, but I haven't seen it for months.
  • BigOnYa @ BigOnYa:
    Oh that laptop I give to ancientboi, so you been watching him for months, and he's been watching you
  • K3Nv2 @ K3Nv2:
    Oh good more than enough material for the fbi
    +2
  • BigOnYa @ BigOnYa:
    Damn its 5 in morn, I gotta Go wake your mum and send her to work. Check ya later.
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    He could make so much money!!! His arm would never get tired lol
    +2
  • S @ salazarcosplay:
    How are yall doing
    +1
    S @ salazarcosplay: How are yall doing +1