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

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

  1. XavyrrVaati

    XavyrrVaati Hobbyist programmer?

    Member
    4
    Feb 23, 2014
    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!
     
  2. VideahGams
    OP

    VideahGams Advanced Member

    Newcomer
    2
    Aug 29, 2015
    Glasgow, Scotland
    You call it either way

    Code:
    gameState = 'intro'
    
    gameStates[gameState]['draw']()
    gameStates[gameState].draw()
    
     
    XavyrrVaati likes this.
  3. XavyrrVaati

    XavyrrVaati Hobbyist programmer?

    Member
    4
    Feb 23, 2014
    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, Mar 13, 2016
    SLiV3R likes this.
  4. xXDungeon_CrawlerXx

    xXDungeon_CrawlerXx GBAtemp Addict

    Member
    10
    Jul 29, 2015
    Liverpool
    is there a .elf available for LovePotion?
    Want to try creating a CIA.
    If yes, would you share it with me?
    Can't compile it on my Win8 System :(
     
    Last edited by xXDungeon_CrawlerXx, Mar 14, 2016
  5. Substance12

    Substance12 GBAtemp Advanced Fan

    Member
    4
    Aug 2, 2015
    Argentina
  6. xXDungeon_CrawlerXx

    xXDungeon_CrawlerXx GBAtemp Addict

    Member
    10
    Jul 29, 2015
    Liverpool
    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)?
     
  7. Substance12

    Substance12 GBAtemp Advanced Fan

    Member
    4
    Aug 2, 2015
    Argentina
    You probably messed up the PATH for MinGW
     
    XavyrrVaati likes this.
  8. xXDungeon_CrawlerXx

    xXDungeon_CrawlerXx GBAtemp Addict

    Member
    10
    Jul 29, 2015
    Liverpool
    weird. I've ";C:\MinGW\bin\" in PATH (behind the other entries).
     
  9. Substance12

    Substance12 GBAtemp Advanced Fan

    Member
    4
    Aug 2, 2015
    Argentina
    It works for me as "C:\MinGW\bin", not "C:\MinGW\bin\", try with that
     
  10. xXDungeon_CrawlerXx

    xXDungeon_CrawlerXx GBAtemp Addict

    Member
    10
    Jul 29, 2015
    Liverpool
    okay, that seems to work... BUT... yea, getting this error... dunno why...
     

    Attached Files:

  11. XavyrrVaati

    XavyrrVaati Hobbyist programmer?

    Member
    4
    Feb 23, 2014
    United States
    @Substance12 I get warnings during the final two make commands,
    [​IMG]
    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, Mar 16, 2016
  12. VideahGams
    OP

    VideahGams Advanced Member

    Newcomer
    2
    Aug 29, 2015
    Glasgow, Scotland
    Can you link your build and code? I haven't been experiencing anything like this.
     
    XavyrrVaati likes this.
  13. XavyrrVaati

    XavyrrVaati Hobbyist programmer?

    Member
    4
    Feb 23, 2014
    United States
    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, Mar 17, 2016
  14. xXDungeon_CrawlerXx

    xXDungeon_CrawlerXx GBAtemp Addict

    Member
    10
    Jul 29, 2015
    Liverpool
    would you upload the latest build as CIA for me (with loading files from romfs, if possible)?
    I tried to setup the Dev Environment on my Win8 System but I always fail installing this stuff.
     
  15. XavyrrVaati

    XavyrrVaati Hobbyist programmer?

    Member
    4
    Feb 23, 2014
    United States
  16. dude22072

    dude22072 GBAtemp Regular

    Member
    6
    Jun 1, 2010
    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, Mar 17, 2016
  17. XavyrrVaati

    XavyrrVaati Hobbyist programmer?

    Member
    4
    Feb 23, 2014
    United States
    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, Mar 18, 2016
  18. VideahGams
    OP

    VideahGams Advanced Member

    Newcomer
    2
    Aug 29, 2015
    Glasgow, Scotland
    I can provide a CIA if you want I guess, but the romfs would be empty.

    I'll have a look at it in a bit.
     
    XavyrrVaati likes this.
  19. xXDungeon_CrawlerXx

    xXDungeon_CrawlerXx GBAtemp Addict

    Member
    10
    Jul 29, 2015
    Liverpool
    would be cool!
    Will the CIA be able to load files from romfs (could put my files into the cia by myself then)?
     
  20. VideahGams
    OP

    VideahGams Advanced Member

    Newcomer
    2
    Aug 29, 2015
    Glasgow, Scotland
    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.
     
    XavyrrVaati likes this.
Quick Reply
Draft saved Draft deleted
Loading...