How to turn LovePotion Files into .cia

Discussion in '3DS - Homebrew Development and Emulators' started by DrawnOutBeats, Aug 13, 2018.

  1. DrawnOutBeats
    OP

    DrawnOutBeats Member

    Newcomer
    1
    Aug 13, 2018
    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!
     
  2. Nemos59

    Nemos59 Advanced Member

    Newcomer
    3
    Aug 1, 2018
    France
    Somewhere
    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, Aug 13, 2018
  3. DrawnOutBeats
    OP

    DrawnOutBeats Member

    Newcomer
    1
    Aug 13, 2018
    United States
    Someone made a port of Doki Doki Literature club using the same framework I am.

    So, yes it is possible.
     
  4. DrawnOutBeats
    OP

    DrawnOutBeats Member

    Newcomer
    1
    Aug 13, 2018
    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!
     
  5. 8BitWonder

    8BitWonder Small Homebrew Dev

    Member
    9
    Jan 23, 2016
    United States
    47 4F 54 20 45 45 4D
    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, Aug 13, 2018
  6. DrawnOutBeats
    OP

    DrawnOutBeats Member

    Newcomer
    1
    Aug 13, 2018
    United States
    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?
     
  7. 8BitWonder

    8BitWonder Small Homebrew Dev

    Member
    9
    Jan 23, 2016
    United States
    47 4F 54 20 45 45 4D
    Was just out of curiosity.
    Some use one version while others use another.
     
  8. DrawnOutBeats
    OP

    DrawnOutBeats Member

    Newcomer
    1
    Aug 13, 2018
    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?
     
  9. 8BitWonder

    8BitWonder Small Homebrew Dev

    Member
    9
    Jan 23, 2016
    United States
    47 4F 54 20 45 45 4D
    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
     
  10. DrawnOutBeats
    OP

    DrawnOutBeats Member

    Newcomer
    1
    Aug 13, 2018
    United States
    Thanks a ton! You have been a world of help~
     
  11. DrawnOutBeats
    OP

    DrawnOutBeats Member

    Newcomer
    1
    Aug 13, 2018
    United States
    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, Aug 14, 2018
  12. DrawnOutBeats
    OP

    DrawnOutBeats Member

    Newcomer
    1
    Aug 13, 2018
    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.
     
  13. 8BitWonder

    8BitWonder Small Homebrew Dev

    Member
    9
    Jan 23, 2016
    United States
    47 4F 54 20 45 45 4D
    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?
     
  14. DrawnOutBeats
    OP

    DrawnOutBeats Member

    Newcomer
    1
    Aug 13, 2018
    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.
    Capture.PNG
     
  15. 8BitWonder

    8BitWonder Small Homebrew Dev

    Member
    9
    Jan 23, 2016
    United States
    47 4F 54 20 45 45 4D
    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).
     
  16. DrawnOutBeats
    OP

    DrawnOutBeats Member

    Newcomer
    1
    Aug 13, 2018
    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.
     
    Last edited by DrawnOutBeats, Aug 14, 2018
  17. 8BitWonder

    8BitWonder Small Homebrew Dev

    Member
    9
    Jan 23, 2016
    United States
    47 4F 54 20 45 45 4D
    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.
     
  18. DrawnOutBeats
    OP

    DrawnOutBeats Member

    Newcomer
    1
    Aug 13, 2018
    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?
     
  19. 8BitWonder

    8BitWonder Small Homebrew Dev

    Member
    9
    Jan 23, 2016
    United States
    47 4F 54 20 45 45 4D
    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, Aug 14, 2018
  20. DrawnOutBeats
    OP

    DrawnOutBeats Member

    Newcomer
    1
    Aug 13, 2018
    United States
    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.
     
Loading...