[WIP] (More) undertale_techdemo

Discussion in '3DS - Homebrew Development and Emulators' started by Kitlith, Apr 14, 2016.

  1. Kitlith
    OP

    Kitlith Advanced Member

    Newcomer
    2
    Jan 29, 2016
    United States
    Trapped between a rock and a hard place
    This sounds like a demand more than a desire to me... Sorry, @Ella897, I guess that's 'no dice'. Let me go over why I'm not going to offer a cia myself.

    1. I don't want to distribute copyrighted content in a romfs.
    2. I really don't want to distribute copyrighted content in a romfs. It's bad enough that it's in the history of the repo/in the repo/in the releases.
    3. I actually have no idea how to make a CIA build... lol
    I've experimented with romfs and 3dsx, so it should be possible with a few tweaks, I just have no desire to do so at the moment.

    It's more like a remake... A port would be like recreating the actual Game Maker engine. Then again, would I really want to recreate the Game Maker engine? (not really.) Would I be able to recreate the GM engine? (not really.)

    All the same, we'll see where this goes. This is actually my first game-like project, and my first project with graphics, and my first homebrew project. Phew, that's quite a few firsts.

    Welp, all I can say, if you're looking to start on a project like this again, is to become comfortable with c/c++ (though not necessarilly fluent!) outside of homebrew. Play with examples. Play with other people's code. Technically, *I'm* playing with someone else's code, and hopefully improving it. We'll see how it goes in the end.

    ---

    I fixed fading on the master branch. I also added a linter to my enviroment, so I fixed some warnings and such. Next stop, sound effects! I've got it down alright at the moment, but I also want to change how bgm works.

    At the moment, entire files are loaded into a buffer in memory, and played. For audio files that expand to several megabytes, this may be a bit much. In fact, last time I checked, this code crashes for some reason if you swap out home for megalovania. Why? Dunno, but it happens. Maybe some sort of out of memory?

    I want to change this to be two small buffers, and always be loading from the file, going back to the beginning of the file when necessary. This way, not so much memory is used... *shrugs*

    EDIT: Dear lord, I make huge posts.

    TL;DR;
    I'm not making cias because I don't want to distribute copyrighted content.
    This is most likely a remake instead of a port.
    I made progress, and my next plans are to do stuff with audio.
    Thank you for the support!
     
    Last edited by Kitlith, Jun 12, 2016
  2. Exavold

    Exavold eeh

    Member
    5
    Nov 9, 2015
    France
    Sorry if you already responded to this but how far are you going to go with this project ?

    You appearently want to remake stuff from the original UNDERTALE game but how far ? The whole game ? A small portion.

    Anyways, good luck.
     
  3. Inorizushi

    Inorizushi *yawn*

    Member
    2
    Oct 27, 2015
    United States
    *Seeing this thread fills you with DETERMINATION.*
     
  4. Exavold

    Exavold eeh

    Member
    5
    Nov 9, 2015
    France
    STOP.
     
    Xiphiidae likes this.
  5. Inorizushi

    Inorizushi *yawn*

    Member
    2
    Oct 27, 2015
    United States
    Sorry if I'm acting like an ASSriel

    ok seriously I'll stop.
     
    Ricken and Exavold like this.
  6. Kitlith
    OP

    Kitlith Advanced Member

    Newcomer
    2
    Jan 29, 2016
    United States
    Trapped between a rock and a hard place
    *snerk* Love it! Don't stop!

    Oh, wait... Ahem.

    You could read the whole thread to see whether I had already answered it, it's not *that* long yet. But, in any case, I don't believe I have. To be frank, I have no clue how far I'll take it. I'd *like* to at least get to a recreation of the demo, but at that point, the engine would already mostly be in place, so why not continue? Honestly, if I stop, it'll be some time before that as I'll get caught up in some other project... then another... then I might come back to this eventually... I'm bad like that. ._.

    Thank you!

    I'll need it.
     
    Exavold likes this.
  7. TheTrueDream42

    TheTrueDream42 GBAtemp Regular

    Member
    2
    Jun 26, 2015
    United States
    You don't have to include anything legal wise to a CIA file (or possibly any changes), it's just a different way of launching the file. The nyan cat app uses music from the SD card in both the 3dsx and CIA versions. I think that there was a simple way to convert to a CIA file but I'm not sure where it was. Also having a bunch of files would be just fine if you put it all into a folder(s).

    EDIT: Here is a quick search I did:
    https://gbatemp.net/threads/is-it-possible-to-convert-3dsx-to-cia.420907/
    https://gbatemp.net/threads/convert-3dsx-to-3ds.378553/
     
    Last edited by TheTrueDream42, Jun 13, 2016
  8. Kitlith
    OP

    Kitlith Advanced Member

    Newcomer
    2
    Jan 29, 2016
    United States
    Trapped between a rock and a hard place
    Welp then, I might just provide a cia version, as long as I can get it to read from the same place. It isn't a priority at the moment, though.
     
  9. Kitlith
    OP

    Kitlith Advanced Member

    Newcomer
    2
    Jan 29, 2016
    United States
    Trapped between a rock and a hard place
    I'M NOT DEAD! Yet...

    Took me long enough, made another 'release': https://github.com/kitling/undertale_techdemo/releases/tag/v0.1.2-alpha

    The branch isn't merged into master yet because there is a small gap between the end and the beginning of the audio now. Any help with this would be appreciated.

    Aand... sorry, mods, if this counts as a necro. >_< I don't feel that starting a new thread would be appropriate, though?

    EDIT: For those that want to compile this, I will warn you: DO NOT use the latest versions of ctrulib and sf2dlib(+citro3d). Drawing gets waaaay slower. You have been warned!
     
    Last edited by Kitlith, Aug 17, 2016
  10. XavyrrVaati

    XavyrrVaati Hobbyist programmer?

    Member
    4
    Feb 23, 2014
    United States
    Congrats! And, no this doesn't count as a necro since this a project thread, and you are the OP. Keep up the good work! :)
     
    SirBeethoven likes this.
  11. Kitlith
    OP

    Kitlith Advanced Member

    Newcomer
    2
    Jan 29, 2016
    United States
    Trapped between a rock and a hard place
    Ah, good. That follows my reasoning, too. :D
     
  12. smileyhead

    smileyhead Most pettable head

    Member
    14
    Aug 31, 2015
    Hungary
    Hungary
    @Kitlith When is Megalovania supposed to play? I haven't found any clues in the house or the debug screen. :unsure:
     
  13. Kitlith
    OP

    Kitlith Advanced Member

    Newcomer
    2
    Jan 29, 2016
    United States
    Trapped between a rock and a hard place
    Doh! I should've mentioned: just rename megalo.ogg to house1.ogg after renaming house1.ogg to something else. Or recompile the game. Sorry 'bout that.

    EDIT: You are right though, I should've made a way to switch files for this... oh well.
     
    Last edited by Kitlith, Aug 17, 2016
    SirBeethoven likes this.
  14. SirBeethoven

    SirBeethoven Do good, be good. Let's fight injustice together.

    Member
    6
    Nov 26, 2015
    United States
    You can edit the release on github to say that :)
     
  15. Kitlith
    OP

    Kitlith Advanced Member

    Newcomer
    2
    Jan 29, 2016
    United States
    Trapped between a rock and a hard place
    Indeed. Release updated!
     
    SirBeethoven likes this.
  16. BurningDesire

    BurningDesire GBAtemp Guru

    Member
    13
    Jan 27, 2015
    United States
    Behind a screen reading news
    Glad to see this is still going on! Hopefully we will have a full clone one day.
     
    smileyhead and TheVinAnator like this.
  17. Kitlith
    OP

    Kitlith Advanced Member

    Newcomer
    2
    Jan 29, 2016
    United States
    Trapped between a rock and a hard place
    Heh, it's still going... slowly... eventually...

    Pushed another commit to the streaming branch, sound now runs in its own thread, instead of in the main thread. I feel like I should refactor sound stuff.

    This means that the 60 FPS cap imposed by citro3d via newer versions of sf2dlib no longer affect sound! (It wasn't drawing getting slower, it was effectively VSync) This means you can now use the latest commits of sf2dlib, citro3d, and ctrulib. Woo! Unfortunately, the slight skip between the end and the beginning is still there... which means I still don't want to merge to master.

    Someone suggested that if I managed to feed the first sound packet back into the decoder, I would be good to go. I'll be looking into this.

    And, well, I don't know about a full clone. I still haven't done interaction or sprites set. >_>
     
    XavyrrVaati and smileyhead like this.
  18. XavyrrVaati

    XavyrrVaati Hobbyist programmer?

    Member
    4
    Feb 23, 2014
    United States
    I'm working on interaction code on mine as well. Anyways, while I don't think I can help with coding (maybe? IDK if my NDA lets me haha.) I can probably help out with spritesheets if you need it. :)
     
  19. Kitlith
    OP

    Kitlith Advanced Member

    Newcomer
    2
    Jan 29, 2016
    United States
    Trapped between a rock and a hard place
    Nah, spritesheets probably won't be a problem. I can extract them from the game, and should be able to get them from rawr.ws. (assuming the site isn't dead?) The real problem will be *using* them without cutting them up. /me has never actually worked with spritesheets before...

    As for your NDA... If I understand correctly working on your project would probably also be covered under NDA if mine is. Also, remember that you worked on part of this long before I did, and given that the original author has fled the scene, you're closer to the creator than I am, I'm merely continuing what was started... That said, you do what you want. I'd love help, but if you feel like you shouldn't, that's your choice, and I'm fine with that.

    Sprites... once I add those I should be able to make my collision more precice and less... rectangley... and less based on the top-left corner of frisk. I guess that'll also mean I'm rewriting more code that was left by lolzvid and not licenced.
     
    XavyrrVaati likes this.
  20. Varon12

    Varon12 Advanced Member

    Newcomer
    2
    Sep 21, 2016
    Canada
    Spider Skull Island
    Can't wait to finally try some of that spaghetti.
     
Loading...