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

hoksyjp

Active Member
Newcomer
Joined
Aug 20, 2016
Messages
39
Trophies
0
Age
26
Location
Boston
Website
illteteka.itch.io
XP
141
Country
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
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
 
  • Like
Reactions: XavyrrVaati

XavyrrVaati

Hobbyist programmer?
Member
Joined
Feb 23, 2014
Messages
385
Trophies
0
XP
478
Country
United States
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
I got it to work! Thanks!
Hey @TurtleP how did you work around the font restriction?
 
  • Like
Reactions: hoksyjp

Mascotty

New Member
Newbie
Joined
Feb 11, 2017
Messages
3
Trophies
0
Age
29
XP
67
Country
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.
 

hoksyjp

Active Member
Newcomer
Joined
Aug 20, 2016
Messages
39
Trophies
0
Age
26
Location
Boston
Website
illteteka.itch.io
XP
141
Country
United States
@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
 

Chopsuey

Well-Known Member
Newcomer
Joined
Feb 18, 2017
Messages
80
Trophies
0
Location
somewhere over the rainbow
XP
737
Country
Germany
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,

Chopsuey

Well-Known Member
Newcomer
Joined
Feb 18, 2017
Messages
80
Trophies
0
Location
somewhere over the rainbow
XP
737
Country
Germany
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 ?
 

hoksyjp

Active Member
Newcomer
Joined
Aug 20, 2016
Messages
39
Trophies
0
Age
26
Location
Boston
Website
illteteka.itch.io
XP
141
Country
United States
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 ?
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,

Chopsuey

Well-Known Member
Newcomer
Joined
Feb 18, 2017
Messages
80
Trophies
0
Location
somewhere over the rainbow
XP
737
Country
Germany
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

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.
 

hoksyjp

Active Member
Newcomer
Joined
Aug 20, 2016
Messages
39
Trophies
0
Age
26
Location
Boston
Website
illteteka.itch.io
XP
141
Country
United States
Okay, its me again. I am still struggling with filesystem.
i found this: https://github.com/VideahGams/LovePotion/blob/master/source/modules/filesystem.c
so is this what i think it is ? and if so, how do i use this ? i always get an error : attempt to call field '...' (a nil value)

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

Thanks, and how do i recompile stuff ?

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
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • LeoTCK @ LeoTCK:
    SUPPORT LOCAL PRODUCTS, MAKE REVOLUTION
  • LeoTCK @ LeoTCK:
    THEY KEEP REMOVING LOCAL SHIt AND REPLACING WItH INFERIOR CHINESE CRAP
  • LeoTCK @ LeoTCK:
    THATS WHY MY PARTNER CANT GET A GOOTWEAR HIS SIZE ANYMORE
  • LeoTCK @ LeoTCK:
    HE HAS BIG FOOT AND BIG DUCK
  • LeoTCK @ LeoTCK:
    d*ck i mean*
  • LeoTCK @ LeoTCK:
    lol
  • Veho @ Veho:
    Mkay.
  • Veho @ Veho:
    I just ordered another package from China just to spite you.
  • SylverReZ @ SylverReZ:
    Communism lol
  • SylverReZ @ SylverReZ:
    OUR products
  • The Real Jdbye @ The Real Jdbye:
    @LeoTCK actually good quality products are dying out because they can't compete with dropshipped chinese crap
    +2
  • BakerMan @ BakerMan:
    @LeoTCK is your partner the sascrotch or smth?
  • Xdqwerty @ Xdqwerty:
    Good morning
  • Xdqwerty @ Xdqwerty:
    Out of nowhere I got several scars on my forearm and part of my arm and it really itches.
  • AdRoz78 @ AdRoz78:
    Hey, I bought a modchip today and it says "New 2040plus" in the top left corner. Is this a legit chip or was I scammed?
  • Veho @ Veho:
    @AdRoz78 start a thread and post a photo of the chip.
    +2
  • Xdqwerty @ Xdqwerty:
    Yawn
  • S @ salazarcosplay:
    and good morning everyone
    +1
  • K3Nv2 @ K3Nv2:
    @BakerMan, his partner is Luke
  • Sicklyboy @ Sicklyboy:
    Sup nerds
    +1
  • Flame @ Flame:
    oh hi, Sickly
  • K3Nv2 @ K3Nv2:
    Oh hi flame
    K3Nv2 @ K3Nv2: Oh hi flame