Homebrew How to turn LovePotion Files into .cia

DrawnOutBeats

Member
OP
Newcomer
Joined
Aug 13, 2018
Messages
12
Trophies
0
Age
25
XP
65
Country
United States
Hello! My name is Drawn Out Beats, and I currently have a game port for the 3ds in the works. I am using the Love2d and LovePotion framework in order to rebuild the game from the ground up. I don't want to mention the title yet, until the release, but I do want to ask a few questions about how I can, when the game is finished, turn the files into a single cia files for releasing. I am completely clueless on how to do that.

Any help would be appreciated!
 

Nemos59

A random user
Member
Joined
Aug 1, 2018
Messages
135
Trophies
0
Location
Somewhere
XP
533
Country
France
Did you look on Google if it's possible?

EDIT: After digging a bit on Google myself, I found nothing about exporting Löve games into cia files.
 
Last edited by Nemos59,

DrawnOutBeats

Member
OP
Newcomer
Joined
Aug 13, 2018
Messages
12
Trophies
0
Age
25
XP
65
Country
United States
lovepotion is a port of the love2d framework. I want to turn those lovepotion files, into cia files. Again, any help at all would be appreciated!
 

8BitWonder

Small Homebrew Dev
Member
Joined
Jan 23, 2016
Messages
2,489
Trophies
1
Location
47 4F 54 20 45 45 4D
XP
5,351
Country
United States
You need to download the source code from github, then create a folder named "game" in the root directory (where the makefile is) and move all of your game assets/main.lua there. Once that's been done you need to build it.
This should produce a .3dsx, .smdh, .elf, .3ds and .cia.

Make sure to edit the titleID and other info that you're interested in for the .cia in the makefile prior to compiling.

Are you using the old Videah version, or the newer updated TurtleP version of Lovepotion?
 
Last edited by 8BitWonder,

DrawnOutBeats

Member
OP
Newcomer
Joined
Aug 13, 2018
Messages
12
Trophies
0
Age
25
XP
65
Country
United States
You need to download the source code from github, then create a folder named "game" in the root directory (where the makefile is), and then build it.
This should produce a .3dsx, .smdh, .elf, .3ds and .cia.

Make sure to edit the titleID and other info that you're interested in for the .cia in the makefile prior to compiling.

Are you using the old Videah version, or the newer updated TurtleP version of Lovepotion?
I am using one released from videah's Github repository. I didnt know TurtleP did a Super Rewrite. Im about to change it to TurtleP's version. Why do you ask?
 

DrawnOutBeats

Member
OP
Newcomer
Joined
Aug 13, 2018
Messages
12
Trophies
0
Age
25
XP
65
Country
United States
Was just out of curiosity.
Some use one version while others use another.
Ah okay. So when you mention about the source code I need to download, which are you referring to? Lovepotion or something else? and I am not exactly sure what you mean by building it. are you referring to the cmd command, make?
 

8BitWonder

Small Homebrew Dev
Member
Joined
Jan 23, 2016
Messages
2,489
Trophies
1
Location
47 4F 54 20 45 45 4D
XP
5,351
Country
United States
Ah okay. So when you mention about the source code I need to download, which are you referring to? Lovepotion or something else? and I am not exactly sure what you mean by building it. are you referring to the cmd command, make?
You need to download LovePotion's source code, and yes by building it I mean compiling it with make.
You should follow this guide TurtleP put up on his wiki for setting up a 3DS-dev environment (if it isn't already) and compiling:
https://github.com/TurtleP/LovePotion/wiki/Building-for-3DS
 

DrawnOutBeats

Member
OP
Newcomer
Joined
Aug 13, 2018
Messages
12
Trophies
0
Age
25
XP
65
Country
United States

DrawnOutBeats

Member
OP
Newcomer
Joined
Aug 13, 2018
Messages
12
Trophies
0
Age
25
XP
65
Country
United States
You need to download LovePotion's source code, and yes by building it I mean compiling it with make.
You should follow this guide TurtleP put up on his wiki for setting up a 3DS-dev environment (if it isn't already) and compiling:
https://github.com/TurtleP/LovePotion/wiki/Building-for-3DS
Okay, I tried to follow his tutorial, but there are some steps I cant seem to complete. Those being the paths to set from devkitARM. It seems that the files he is specifying to set as a path, aren't where they are supposed to be, and the files are missing or something. Im not sure if they were updated with different names or something, but his guide is with 2.0.0, while the latest is 3.0.0. I apologize for being such a bother ^^;

EDIT: Sigh....okay. The files are there, I just did not see them because the image TurtleP puts in the tutorial covers the bottom of the 'g', making it look like a q...Sorry for wasting your time if i did ^^;
 
Last edited by DrawnOutBeats,

DrawnOutBeats

Member
OP
Newcomer
Joined
Aug 13, 2018
Messages
12
Trophies
0
Age
25
XP
65
Country
United States
You need to download the source code from github, then create a folder named "game" in the root directory (where the makefile is) and move all of your game assets/main.lua there. Once that's been done you need to build it.
This should produce a .3dsx, .smdh, .elf, .3ds and .cia.

Make sure to edit the titleID and other info that you're interested in for the .cia in the makefile prior to compiling.

Are you using the old Videah version, or the newer updated TurtleP version of Lovepotion?
Hey dude, Im following what you said about getting the source code, and putting all my assets in a game folder, which I did, but im getting an error in Msys2.

make[1]: *** [/c/devkitpro/devkitARM/base_rules:80: main.o] Error 1
make: *** [Makefile:194: build] Error 2

Do you got any idea what it means? I tried searching around for it with no luck.
 

8BitWonder

Small Homebrew Dev
Member
Joined
Jan 23, 2016
Messages
2,489
Trophies
1
Location
47 4F 54 20 45 45 4D
XP
5,351
Country
United States
Hey dude, Im following what you said about getting the source code, and putting all my assets in a game folder, which I did, but im getting an error in Msys2.

make[1]: *** [/c/devkitpro/devkitARM/base_rules:80: main.o] Error 1
make: *** [Makefile:194: build] Error 2

Do you got any idea what it means? I tried searching around for it with no luck.
Are you compiling the 1.0.1 switch source and getting an error because of tex3ds, or the 1.0.9 3DS source and getting some other error?
Did it say anything notable right before crashing, like missing dependencies?
 

DrawnOutBeats

Member
OP
Newcomer
Joined
Aug 13, 2018
Messages
12
Trophies
0
Age
25
XP
65
Country
United States
Are you compiling the 1.0.1 switch source and getting an error because of tex3ds, or the 1.0.9 3DS source and getting some other error?
Did it say anything notable right before crashing, like missing dependencies?
First I went into the LovePotion folder on my desktop(I put it there for easy access from MSys2), then made the game folder, put all the assets I had to test them, then went into Msys2, went all the way into the game folder, and typed the make command from inside the LovePotion folder. Then it began with its commands, and then it showed this at the end.
Capture.PNG
 

8BitWonder

Small Homebrew Dev
Member
Joined
Jan 23, 2016
Messages
2,489
Trophies
1
Location
47 4F 54 20 45 45 4D
XP
5,351
Country
United States
First I went into the LovePotion folder on my desktop(I put it there for easy access from MSys2), then made the game folder, put all the assets I had to test them, then went into Msys2, went all the way into the game folder, and typed the make command from inside the LovePotion folder. Then it began with its commands, and then it showed this at the end.
View attachment 139829
It looks like you didn't install the libogg dependency.
Try going into <Your-devkitpro-dir>/portlibs/armv6k/include. If there is not a "ogg" folder in there, it means you don't have that dependency installed.

If that is the case you need to re-download 3DS-Portlibs and then install libogg (and zlib if you haven't already).
 

DrawnOutBeats

Member
OP
Newcomer
Joined
Aug 13, 2018
Messages
12
Trophies
0
Age
25
XP
65
Country
United States
It looks like you didn't install the libogg dependency.
Try going into <Your-devkitpro-dir>/portlibs/armv6k/include. If there is not a "ogg" folder in there, it means you don't have that dependency installed.

If that is the case you need to re-download 3DS-Portlibs and then install libogg (and zlib if you haven't already).
Just checked, and there is an ogg folder though. O.o Inside is, config_types.h, ogg.h, and os_types.h. but i did notice that OUTSIDE of the folder, in the include folder, is zconf.h, and zlib.h.
 
Last edited by DrawnOutBeats,

8BitWonder

Small Homebrew Dev
Member
Joined
Jan 23, 2016
Messages
2,489
Trophies
1
Location
47 4F 54 20 45 45 4D
XP
5,351
Country
United States
Just checked, and there is an ogg folder though. O.o Inside is, config_types.h, ogg.h, and os_types.h. but i did notice that OUTSIDE of the folder, in the include folder, is zconf.h, and zlib.h.
Very odd, I haven't encountered it not recognizing an installed library before. Maybe try re-installing them through pacman?
In msys2 terminal run:
pacman -S zlib
then
pacman -S 3ds-libogg

Then if compiling after reinstalling those doesn't work, try:
pacman -S 3ds-libvorbisidec
I'm honestly not sure how to proceed if this doesn't work. There is a janky workaround that I remember doing for Lovepotion .cias, but it's not ideal.
 

DrawnOutBeats

Member
OP
Newcomer
Joined
Aug 13, 2018
Messages
12
Trophies
0
Age
25
XP
65
Country
United States
Very odd, I haven't encountered it not recognizing an installed library before. Maybe try re-installing them through pacman?
In msys2 terminal run:
pacman -S zlib
then
pacman -S 3ds-libogg

Then if compiling after reinstalling those doesn't work, try:
pacman -S 3ds-libvorbisidec
I'm honestly not sure how to proceed if this doesn't work. There is a janky workaround that I remember doing for Lovepotion .cias, but it's not ideal.
I did the first two commands then tried again with the compiling, and it appeared to show alot more text than before. But then it showed errors again. So i tried the 3rd command and it did the same thing when compiling. Should I try to uninstall everything and start all over?
 

8BitWonder

Small Homebrew Dev
Member
Joined
Jan 23, 2016
Messages
2,489
Trophies
1
Location
47 4F 54 20 45 45 4D
XP
5,351
Country
United States
I did the first two commands then tried again with the compiling, and it appeared to show alot more text than before. But then it showed errors again. So i tried the 3rd command and it did the same thing when compiling. Should I try to uninstall everything and start all over?
Are they the same errors, or are they new? (Other missing dependencies/files?)

And on a side-note, it looks like TurtleP has a lovepotion Discord channel. You might be able to get help from him or others from there if my advice isn't getting anywhere: https://discord.gg/ggbKkhc
 
Last edited by 8BitWonder,

DrawnOutBeats

Member
OP
Newcomer
Joined
Aug 13, 2018
Messages
12
Trophies
0
Age
25
XP
65
Country
United States
Are they the same errors, or are they new? (Other missing dependencies/files?)

And on a side-note, it looks like TurtleP has a lovepotion Discord channel. You might be able to get help from him or others from there if my advice isn't getting anywhere: https://discord.gg/ggbKkhc
The messages are so huge, i have no idea where to begin. And I just got to talk to TurtleP himself and began to discuss what can be done.

Thanks a ton for your help dude. Sorry for wasting your time.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
    K3Nv2 @ K3Nv2: Well start walking towards them +1