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
  • No one is chatting at the moment.
  • SylverReZ @ SylverReZ:
    @Materia_tofu, We do learn a lot from plenty of talented individuals.
  • Materia_tofu @ Materia_tofu:
    this is true! i learned how to make soundfont remixes from a friend back in 2021
    +1
  • BakerMan @ BakerMan:
    Update on my brother: He's home now, tired and hungry, obviously, but other than that, seems to be doing fine.
    +2
  • Veho @ Veho:
    That's a relief to hear. Do you know what happened?
  • SylverReZ @ SylverReZ:
    @BakerMan, Any idea what happened? I hope that your brother's doing good.
  • BakerMan @ BakerMan:
    Well, from what I've heard from my parents, he had a seizure last night, perhaps an epileptic episode, fucking died, had a near death experience, my dad called the paramedics, they showed up, took him to the hospital, and he woke up covered in tubes, and started complaining.
  • BakerMan @ BakerMan:
    He couldn't eat until after his MRI, when he had a bomb pop.
  • BakerMan @ BakerMan:
    What matters now is that he's doing alright.
  • Veho @ Veho:
    But you still don't know what it was?
  • Veho @ Veho:
    Has he had seizures before?
  • The Real Jdbye @ The Real Jdbye:
    apparently stress can cause seizures, my brother had one during a test once
  • The Real Jdbye @ The Real Jdbye:
    never had one before that, and never had one since
  • Redleviboy123 @ Redleviboy123:
    Question about game texture chanching Do i need an own game id?
  • The Real Jdbye @ The Real Jdbye:
    @Veho for those that want to
    experience being sonic the hedgehog
  • Veho @ Veho:
    Ah, you mean
    furries.
    +1
  • The Real Jdbye @ The Real Jdbye:
    well, sonic fans are a whole separate thing from furries
  • The Real Jdbye @ The Real Jdbye:
    like bronys
  • The Real Jdbye @ The Real Jdbye:
    sonic porn is too weird even for me
  • Dumpflam @ Dumpflam:
    bruh
  • Dumpflam @ Dumpflam:
    guys how do i delete a post
  • The Real Jdbye @ The Real Jdbye:
    you don't
  • The Real Jdbye @ The Real Jdbye:
    you can report it and request deletion
  • BakerMan @ BakerMan:
    Also, no, that was his first time having a seizure, and hopefully the last
    +1
    BakerMan @ BakerMan: Also, no, that was his first time having a seizure, and hopefully the last +1