[Release] - LövePotion - LÖVE API for 3DS Homebrew - BETA

Discussion in '3DS - Homebrew Development and Emulators' started by VideahGams, Sep 17, 2015.

  1. flamolino

    flamolino Newbie

    Newcomer
    7
    4
    Aug 1, 2016
    Brazil
  2. GalladeGuy

    GalladeGuy Freeze Kirby :3

    Member
    2,617
    2,686
    Oct 28, 2015
    United States
    Try reinstalling Python. I believe you need Python 2.
     
  3. flamolino

    flamolino Newbie

    Newcomer
    7
    4
    Aug 1, 2016
    Brazil
    still does not work
    but thanks :)
     
  4. XavyrrVaati

    XavyrrVaati Hobbyist programmer?

    Member
    384
    422
    Feb 23, 2014
    United States
    Okay, well worse case scenario, I can get you a build tomorrow. It won't be the latest, but it's stable-ish. If you want it, I can send it to you tomorrow. Installation should be relatively easy iirc.
     
  5. flamolino

    flamolino Newbie

    Newcomer
    7
    4
    Aug 1, 2016
    Brazil
    would be great
    :)
     
    XavyrrVaati likes this.
  6. hoksyjp

    hoksyjp Member

    Newcomer
    35
    29
    Aug 20, 2016
    United States
    Boston
    Last edited by hoksyjp, Sep 23, 2016
    XavyrrVaati likes this.
  7. XavyrrVaati

    XavyrrVaati Hobbyist programmer?

    Member
    384
    422
    Feb 23, 2014
    United States
    That's awesome. Mind sharing your compiled libraries? I haven't been able to compile some of the required libs because Windows™ or my not smartness. :'v
     
  8. hoksyjp

    hoksyjp Member

    Newcomer
    35
    29
    Aug 20, 2016
    United States
    Boston
    Ok ok, hold on.

    Step 1: Install Python 3 -> https://www.python.org/ftp/python/3.5.2/python-3.5.2.exe
    Step 2: Do this -> https://github.com/VideahGams/LovePotion/wiki/Building-LÖVEPotion
    Step 3: Download this -> https://github.com/fincs/citro3d
    Step 4: run 'make install' on the citro3d folder in cmd
    Step 5: Download
    https://github.com/xerpi/sf2dlib
    https://github.com/xerpi/sftdlib
    https://github.com/xerpi/sfillib
    Step 6: In each folder, run 'make install' in cmd
    Step 7: Move sf2dlib, sftdlib, sfillib folders after building to LovePotion-master\source\libs
    Step 8: run 'make' on the latest LovePotion

    Normally I would just do this for you, but I think this is a worthwhile thing to learn to do.
    Please feel free to ask me any questions, 'stupid' or otherwise
     
    XavyrrVaati likes this.
  9. XavyrrVaati

    XavyrrVaati Hobbyist programmer?

    Member
    384
    422
    Feb 23, 2014
    United States
    I got it to work! Thanks!
    Hey @TurtleP how did you work around the font restriction?
     
    hoksyjp likes this.
  10. TurtleP

    TurtleP GBAtemp Regular

    Member
    139
    210
    Oct 7, 2015
    United States
    @XavyrrVaati I just kept the same font names over and over. Every game state I change to, I set them to nil and run collectgarbage() twice. It's not too complicated, but it's annoying. I'd recommend doing this in a function and calling it.
     
    XavyrrVaati likes this.
  11. flamolino

    flamolino Newbie

    Newcomer
    7
    4
    Aug 1, 2016
    Brazil
    hoksyjp likes this.
  12. Domukuro Wolfield

    Domukuro Wolfield GBAtemp Regular

    Member
    158
    24
    Feb 25, 2014
    Mexico
    Calera, Zacatecas, Mexico
    So... Is not possible play Mari0 yet? :(
     
  13. Mascotty

    Mascotty Newbie

    Newcomer
    1
    0
    Feb 11, 2017
    United States
    Excuse my being new to all this, but I'm trying to create a game with this and it's all a bit overwhelming. Here are the errors I got while trying to build the sample game. Your patience is aprreciated


    C:\Game Development\portlibs>make install
    make[1]: Entering directory `/c/Game Development/portlibs/freetype-2.6.1'
    Makefile:7: /c/Game: No such file or directory
    Makefile:7: Development/portlibs/freetype-2.6.1/Makefile: No such file or directory
    make[1]: *** No rule to make target `Development/portlibs/freetype-2.6.1/Makefile'. Stop.
    make[1]: Leaving directory `/c/Game Development/portlibs/freetype-2.6.1'
    make: *** [install] Error 2

    C:\Game Development\portlibs>make libvorbis
    make: *** No rule to make target `libvorbis'. Stop.

    C:\Game Development\portlibs>
    C:\Game Development\portlibs>make libvorbis
    make: *** No rule to make target `libvorbis'. Stop.

    C:\Game Development\portlibs>make install
    make[1]: Entering directory `/c/Game Development/portlibs/freetype-2.6.1'
    Makefile:7: /c/Game: No such file or directory
    Makefile:7: Development/portlibs/freetype-2.6.1/Makefile: No such file or directory
    make[1]: *** No rule to make target `Development/portlibs/freetype-2.6.1/Makefile'. Stop.
    make[1]: Leaving directory `/c/Game Development/portlibs/freetype-2.6.1'
    make: *** [install] Error 2

    C:\Game Development\portlibs>

    C:\Game Development\portlibs>cd C:\Game Development\LOVE Potion

    C:\Game Development\LOVE Potion>make build-all
    make: *** No rule to make target `build-all'. Stop.
     
  14. hoksyjp

    hoksyjp Member

    Newcomer
    35
    29
    Aug 20, 2016
    United States
    Boston
    @Mascotty You don't want to have a space in your directory, like the one in "Game Development". I don't know an easy way to fix this other than reinstalling everything :(( . Luckily for me, since I had to do it frequently recently, I timed it to only take about 11 min total
     
  15. Chopsuey

    Chopsuey Advanced Member

    Newcomer
    53
    24
    Feb 18, 2017
    Gambia, The
    somewhere over the rainbow
    how can i use the filesystem to save / store , und read data ?
    I'm Tryin to port some of my old games, everything works fine exept the "save funktion".
    i'm just trying to save one value (highscore).

    Edit:
    Just saw that filesystem seems to not implemented yet =( is there still a way to save gamedata ?
     
    Last edited by Chopsuey, Feb 25, 2017
  16. Chopsuey

    Chopsuey Advanced Member

    Newcomer
    53
    24
    Feb 18, 2017
    Gambia, The
    somewhere over the rainbow
    Sorry it's me again.
    i can't figure out how to use Joysticks. Can someone please give me a quick example how to return the axis (X&Y) form the circlepad(not pro) and if it's possible, from the C-Stick ?
     
  17. hoksyjp

    hoksyjp Member

    Newcomer
    35
    29
    Aug 20, 2016
    United States
    Boston
    Hahah I cheated to use the Joystick commands since I didn't understand how the love.joystick implementation works in LovePotion.

    Here's my modified joystick.c from /source/modules/ : http://pastebin.com/96tXqUgb
    You'll need to recompile LP with this source file ^^

    Then just do some sort of:
    Code:
    local joy_x, joy_y
    global_os = love.system.getOS()
    if (global_os == "3ds") then
       joy_x, joy_y = love.joystick.getX(), love.joystick.getY()
    end
     
    Last edited by hoksyjp, Mar 7, 2017
  18. Chopsuey

    Chopsuey Advanced Member

    Newcomer
    53
    24
    Feb 18, 2017
    Gambia, The
    somewhere over the rainbow
    Thanks, and how do i recompile stuff ?
    Or would it be easyer if you or someone else could do this for me ? i would getting errors anyway an would be right back here again.
     
  19. Chopsuey

    Chopsuey Advanced Member

    Newcomer
    53
    24
    Feb 18, 2017
    Gambia, The
    somewhere over the rainbow
  20. hoksyjp

    hoksyjp Member

    Newcomer
    35
    29
    Aug 20, 2016
    United States
    Boston
    I've never used love.filesystem, however...
    I've read in files in Love/LovePotion using the Lua default I/O stuff, docs here:
    https://www.lua.org/pil/21.1.html
    https://www.lua.org/pil/21.2.html

    https://github.com/videah/LovePotion/wiki/Building-LÖVEPotion

    Even though LP aims to make 3DS homebrew dev accessible, you'll probably need to do this to get the functionality you want. Feel free to post questions some compiling questions were already asked on the previous page too