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,720
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,720
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: 246

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,725
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.
    SylverReZ @ SylverReZ: https://www.youtube.com/watch?v=uLN9qrJ8ESs