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

XavyrrVaati

Hobbyist programmer?
Member
Joined
Feb 23, 2014
Messages
385
Trophies
0
XP
478
Country
United States
So I should set
Code:
gameState = 'intro'
and then call the function like
Code:
gameStates[gameState]['draw']()
I apologize if I'm misunderstanding, and thanks for the help!
 

VideahGams

Well-Known Member
OP
Newcomer
Joined
Aug 29, 2015
Messages
91
Trophies
0
Age
26
Location
Glasgow, Scotland
Website
videah.xyz
XP
156
Country
So I should set
Code:
gameState = 'intro'
and then call the function like
Code:
gameStates[gameState]['draw']()
I apologize if I'm misunderstanding, and thanks for the help!

You call it either way

Code:
gameState = 'intro'

gameStates[gameState]['draw']()
gameStates[gameState].draw()
 
  • Like
Reactions: XavyrrVaati

XavyrrVaati

Hobbyist programmer?
Member
Joined
Feb 23, 2014
Messages
385
Trophies
0
XP
478
Country
United States
Okay, that works! Thanks! I have another question, I'm trying to make the 3D depth change over time, but it only seems to change every integer. I mean, if I have
Code:
--in love.update(dt)
depth = depth + (.5 * dt)
It only changes, visibly once it rounds up/down to the nearest int. The change is abrupt and noticeable. I assume it's only meant to take in integers, is it possible to allow more precision?

EDIT:
I also get an error trying to add a second sound,
Code:
Could not allocate to sound buffer
So I tried to build from the github project and get
Code:
1: fatal error: ogg/ogg.h: No such file or directory
#include <ogg/ogg.h>
on Windows 10. Oh well haha.
 
Last edited by XavyrrVaati,
  • Like
Reactions: SLiV3R

xXDungeon_CrawlerXx

Well-Known Member
Member
Joined
Jul 29, 2015
Messages
2,092
Trophies
1
Age
28
Location
Liverpool
XP
3,724
Country
okay, installed all librarys (except freetype). But I get errrors when I'm trying to compile freetype for example.
Installed MinGW and all the librarys, created the System variables and such but still. It won't work on my Win8 System >_>
For freetype compile, I'll get this error: "cannot find native c compiler" (other librarys weren't a problem).
Could someone upload a .elf-file of LÖVEPotion which loads from romfs (want to build a CIA file out of it)?
 

Substance12

Well-Known Member
Member
Joined
Aug 2, 2015
Messages
562
Trophies
0
XP
549
Country
Argentina
okay, installed all librarys (except freetype). But I get errrors when I'm trying to compile freetype for example.
Installed MinGW and all the librarys, created the System variables and such but still. It won't work on my Win8 System >_>
For freetype compile, I'll get this error: "cannot find native c compiler" (other librarys weren't a problem).
Could someone upload a .elf-file of LÖVEPotion which loads from romfs (want to build a CIA file out of it)?

You probably messed up the PATH for MinGW
 
  • Like
Reactions: XavyrrVaati

xXDungeon_CrawlerXx

Well-Known Member
Member
Joined
Jul 29, 2015
Messages
2,092
Trophies
1
Age
28
Location
Liverpool
XP
3,724
Country
It works for me as "C:\MinGW\bin", not "C:\MinGW\bin\", try with that
okay, that seems to work... BUT... yea, getting this error... dunno why...
 

Attachments

  • crashe.png
    crashe.png
    10.3 KB · Views: 247

XavyrrVaati

Hobbyist programmer?
Member
Joined
Feb 23, 2014
Messages
385
Trophies
0
XP
478
Country
United States
@Substance12 I get warnings during the final two make commands,
55210e9c09.png

I mean it still compiles, but the game bugs the fuck out. Hahaa...
EDIT: The included demo works fine, but my game skips parts and crashes due to enough linear memory
EDIT 2:
Um. Apparently it doesn't handle keyheld right. It is constantly registering A and B, which is why it skipped the intro part. As for the menu, I commented the controls part of the update, and then it spam plays the bgm (during the update function it checks if the bgm is playing, and if not, it plays.) It appears to not be performing boolean checks right... So I comment the music out, and it runs, but no control or music. Will keep messing with it.
EDIT 3: It must be my build, it's not working lol. isPlaying() never gives the right answer, love.keyboard.isDown('a') always returns true. gg
EDIT 4 GG: Nah, apparently I'm doing something wrong, since does the same thing with your Picroxx build. Wtf :v
 
Last edited by XavyrrVaati,

VideahGams

Well-Known Member
OP
Newcomer
Joined
Aug 29, 2015
Messages
91
Trophies
0
Age
26
Location
Glasgow, Scotland
Website
videah.xyz
XP
156
Country
@Substance12 I get warnings during the final two make commands,
55210e9c09.png

I mean it still compiles, but the game bugs the fuck out. Hahaa...
EDIT: The included demo works fine, but my game skips parts and crashes due to enough linear memory
EDIT 2:
Um. Apparently it doesn't handle keyheld right. It is constantly registering A and B, which is why it skipped the intro part. As for the menu, I commented the controls part of the update, and then it spam plays the bgm (during the update function it checks if the bgm is playing, and if not, it plays.) It appears to not be performing boolean checks right... So I comment the music out, and it runs, but no control or music. Will keep messing with it.
EDIT 3: It must be my build, it's not working lol. isPlaying() never gives the right answer, love.keyboard.isDown('a') always returns true. gg
EDIT 4 GG: Nah, apparently I'm doing something wrong, since does the same thing with your Picroxx build. Wtf :v

Can you link your build and code? I haven't been experiencing anything like this.
 
  • Like
Reactions: XavyrrVaati

XavyrrVaati

Hobbyist programmer?
Member
Joined
Feb 23, 2014
Messages
385
Trophies
0
XP
478
Country
United States
Can you link your build and code? I haven't been experiencing anything like this.
Yeah, I'm at work right now, but I might've made a zip on one drive, let me check real quick.
Edit: https://goo.gl/zPsaks
That's the old build that still works, you could try throwing the game folder into a newer build. I'll upload my new one after I get out of work in 8 1/2 hours lol. Thanks!
 
Last edited by XavyrrVaati,

dude22072

Well-Known Member
Member
Joined
Jun 1, 2010
Messages
131
Trophies
1
Website
dude22072.com
XP
1,738
Country
United States
I'm trying to follow the "Building LÖVEPotion" guide and i'm stuck on installing the freetype portlib. it gives me the error "configure: error: cannot find a native c compiler". I can run make on all the portlibs except this one.
LÖVEPotion built anyways.
 
Last edited by dude22072,

XavyrrVaati

Hobbyist programmer?
Member
Joined
Feb 23, 2014
Messages
385
Trophies
0
XP
478
Country
United States
I'm trying to follow the "Building LÖVEPotion" guide and i'm stuck on installing the freetype portlib. it gives me the error "configure: error: cannot find a native c compiler". I can run make on all the portlibs except this one.
LÖVEPotion built anyways.
It sounds like you didn't install MinGW or add it to your PATH environment variable. (But don't quote me, I can't seem to do it right either :v)
 
Last edited by XavyrrVaati,

VideahGams

Well-Known Member
OP
Newcomer
Joined
Aug 29, 2015
Messages
91
Trophies
0
Age
26
Location
Glasgow, Scotland
Website
videah.xyz
XP
156
Country
  • Like
Reactions: XavyrrVaati

VideahGams

Well-Known Member
OP
Newcomer
Joined
Aug 29, 2015
Messages
91
Trophies
0
Age
26
Location
Glasgow, Scotland
Website
videah.xyz
XP
156
Country
would be cool!
Will the CIA be able to load files from romfs (could put my files into the cia by myself then)?

Yup, I don't recommend using this for development though, it's mostly for releasing games as CIA's
It's an unstable version, fresh off the presses from the git repo so things might not work, if you find something broken make sure to tell me.
You can grab it from here, the romfs is empty.
 
  • Like
Reactions: XavyrrVaati

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
  • Jayro @ Jayro:
    The phat model had amazingly loud speakers tho.
    +1
  • SylverReZ @ SylverReZ:
    @Jayro, I don't see whats so special about the DS ML, its just a DS lite in a phat shell. At least the phat model had louder speakers, whereas the lite has a much better screen.
    +1
  • SylverReZ @ SylverReZ:
    They probably said "Hey, why not we combine the two together and make a 'new' DS to sell".
  • Veho @ Veho:
    It's a DS Lite in a slightly bigger DS Lite shell.
    +1
  • Veho @ Veho:
    It's not a Nintendo / iQue official product, it's a 3rd party custom.
    +1
  • Veho @ Veho:
    Nothing special about it other than it's more comfortable than the Lite
    for people with beefy hands.
    +1
  • Jayro @ Jayro:
    I have yaoi anime hands, very lorge but slender.
  • Jayro @ Jayro:
    I'm Slenderman.
  • Veho @ Veho:
    I have hands.
  • BakerMan @ BakerMan:
    imagine not having hands, cringe
    +1
  • AncientBoi @ AncientBoi:
    ESPECIALLY for things I do to myself :sad:.. :tpi::rofl2: Or others :shy::blush::evil:
    +1
  • The Real Jdbye @ The Real Jdbye:
    @SylverReZ if you could find a v5 DS ML you would have the best of both worlds since the v5 units had the same backlight brightness levels as the DS Lite unlockable with flashme
  • The Real Jdbye @ The Real Jdbye:
    but that's a long shot
  • The Real Jdbye @ The Real Jdbye:
    i think only the red mario kart edition phat was v5
  • BigOnYa @ BigOnYa:
    A woman with no arms and no legs was sitting on a beach. A man comes along and the woman says, "I've never been hugged before." So the man feels bad and hugs her. She says "Well i've also never been kissed before." So he gives her a kiss on the cheek. She says "Well I've also never been fucked before." So the man picks her up, and throws her in the ocean and says "Now you're fucked."
    +1
  • BakerMan @ BakerMan:
    lmao
  • BakerMan @ BakerMan:
    anyways, we need to re-normalize physical media

    if i didn't want my games to be permanent, then i'd rent them
    +1
  • BigOnYa @ BigOnYa:
    Agreed, that why I try to buy all my games on disc, Xbox anyways. Switch games (which I pirate tbh) don't matter much, I stay offline 24/7 anyways.
  • AncientBoi @ AncientBoi:
    I don't pirate them, I Use Them :mellow:. Like I do @BigOnYa 's couch :tpi::evil::rofl2:
    +1
  • cearp @ cearp:
    @BakerMan - you can still "own" digital media, arguably easier and better than physical since you can make copies and backups, as much as you like.

    The issue is DRM
  • cearp @ cearp:
    You can buy drm free games / music / ebooks, and if you keep backups of your data (like documents and family photos etc), then you shouldn't lose the game. but with a disk, your toddler could put it in the toaster and there goes your $60

    :rofl2:
  • cearp @ cearp:
    still, I agree physical media is nice to have. just pointing out the issue is drm
  • rqkaiju2 @ rqkaiju2:
    i like physical media because it actually feels like you own it. thats why i plan on burning music to cds
    rqkaiju2 @ rqkaiju2: i like physical media because it actually feels like you own it. thats why i plan on burning...