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
  • BigOnYa @ BigOnYa:
    I'm doing good, just made my first drink of the day, so better now, Captain and Coke today. I had to cut grass all day, then get my hair cut. I messed with my wifey, she knew I was going to get hair cut, and I went and bought a purple dyed wig, and came home wearing it, she freaked out, thinking I dyed my hair purple, was funny.
    +1
  • SylverReZ @ SylverReZ:
    @BigOnYa, Hey BigOnYa
  • BigOnYa @ BigOnYa:
    Hey hope all is well
    +1
  • SylverReZ @ SylverReZ:
    @BigOnYa, And you too :)
    +1
  • S @ salazarcosplay:
    @BigOnYa how are you doing
  • S @ salazarcosplay:
    any mushroom trip adventures you can share
  • JakobAir @ JakobAir:
    Damn, I haven't been on here in while. My wife and I went on a mushroom trip like 10 years ago. A friend had a PS3TV with the glasses and some racing game. It hit when I was playing the game and I freaked out because I thought I was really driving and crashed.
  • K3Nv2 @ K3Nv2:
    Orange ocean Hawaiian punch is pretty good but @BigOnYa keeps putting vodka in it
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    With enough Vodka everything is good
    +1
  • Xdqwerty @ Xdqwerty:
    Im back
  • Xdqwerty @ Xdqwerty:
    We are having a bbq
  • Sicklyboy @ Sicklyboy:
    Nice! Hopefully the weather is good today?
  • Xdqwerty @ Xdqwerty:
    @Sicklyboy, it's a bit cloudy but Yea it's good
    +1
  • K3Nv2 @ K3Nv2:
    80 for us all that rain then mother nature's like have some sun burn
  • Sicklyboy @ Sicklyboy:
    @Xdqwerty, good weather, good food, what's not to like about that? Hope you have a lovely day dude
  • K3Nv2 @ K3Nv2:
    Got some porkchops marinating in honey teriyaki hope it comes out good
    +1
  • Sonic Angel Knight @ Sonic Angel Knight:
    Porkchop was the name of that dog in that one cartoon, DOUG! :P
  • Xdqwerty @ Xdqwerty:
    @Sonic Angel Knight, never watched doug
  • Xdqwerty @ Xdqwerty:
    I might play Roblox again
  • BigOnYa @ BigOnYa:
    Nuh jump back to gdevelop
  • Xdqwerty @ Xdqwerty:
    @BigOnYa, i say "play Roblox" not "make games on Roblox"
    Xdqwerty @ Xdqwerty: https://youtu.be/wmNlFXJ_xdw?si=uB2Utv1xp9T16QRR