[Release] Lemmings for 3DS

Discussion in '3DS - Homebrew Development and Emulators' started by bayleef, Sep 16, 2016.

  1. mashers

    mashers Stubborn ape

    Member
    15
    Jun 10, 2015
    Kongo Jungle
  2. bayleef
    OP

    bayleef Advanced Member

    Newcomer
    2
    Sep 15, 2015
    Gambia, The
    I guess you have not looked into the messy main.c yet.
    At least for me this seems to be the only possible explanation for why I am getting thanks for that code.;)

    Okay, more seriously: I'm looking forward to get help with the development. I encourage you (and anybody else who wants to help me) to suggest changes for everything that should be changed (maybe code organization, but even licence or author defined in Makefile). If I don't like these changes, I could still reject them.
    However, if you want to change a lot of things (like organization of the code) or add a really big feature that takes a lot of time to implement, you may contact me before - just to avoid painful merging and/or wasting time by implementing the same feature multiple times parallel.
     
    Last edited by bayleef, Sep 24, 2016
  3. mashers

    mashers Stubborn ape

    Member
    15
    Jun 10, 2015
    Kongo Jungle
    I actually haven't looked at the source code yet. I was thanking you for the ongoing effort and for putting the source on GH :) Yeah I'll contact you before doing anything of any significance.
     
  4. the assaf

    the assaf GBAtemp Fan

    Member
    3
    Jun 2, 2013
    You can't use ds homebrew loader for dldi homebrew, you must buy a flashcart or wait for dldi support.
     
  5. bayleef
    OP

    bayleef Advanced Member

    Newcomer
    2
    Sep 15, 2015
    Gambia, The
    Version 0.3 is available. This version adds audio. However, to have audio, make sure that the you have copied the ADLIB.DAT files from DOS Lemmings game into the corresponding subfolders of /lemmings folder on your SD card.
    Audio is played via NDSP service. Hence, you need a DSP firm dump.
     
    Last edited by bayleef, Oct 3, 2016
  6. Vamosi

    Vamosi Member

    Newcomer
    3
    Apr 14, 2007
    Hey thanks for this. The sound is working great but when i close the game it just hangs on the home screen saying "Closing software...". Im using A9LH, Luma3DS 6.1.3, FW 11.1.0-34E.
     
  7. bayleef
    OP

    bayleef Advanced Member

    Newcomer
    2
    Sep 15, 2015
    Gambia, The
    This is a known bug.
    At the moment I don't know what causes the bug or how to fix it.
    However, there is a workaround: Don't close the game by HOME button, but close it by pressing L + R in its main menu.
     
    Vamosi likes this.
  8. Zidapi

    Zidapi GBAtemp Psycho!

    Member
    11
    Dec 1, 2002
    aaaaand now I feel really old.

    Thanks so much for making this! My memories of playing Lemmings was playing the SNES ports. Time to nostalgia.
     
    Quantumcat likes this.
  9. sieroi

    sieroi GBAtemp Regular

    Member
    3
    Apr 29, 2015
    This is fantastic- so nice to have a version of the game that renders at 3DS-native resolution!
     
  10. Dracari

    Dracari GBAtemp Advanced Maniac

    Member
    8
    Apr 5, 2009
    United States
    @bayleef i finally figured out the problem, i've kept in Luma Config the SVC/A9 patched enabled for wtf ever reason this Breaks .3dsx homebrew i updated HBL + disabled that option and it works again. so you were right it was on my end.
     
  11. bayleef
    OP

    bayleef Advanced Member

    Newcomer
    2
    Sep 15, 2015
    Gambia, The
    I'm glad to hear that you solved this problem.
     
  12. Hopalongtom

    Hopalongtom GBAtemp Regular

    Member
    3
    Mar 14, 2009
    Nice job thanks, shame the audio of the dos version isn't as good as the Amiga version alas...
     
  13. Dracari

    Dracari GBAtemp Advanced Maniac

    Member
    8
    Apr 5, 2009
    United States
    might not be as good but theres something to be said for Adlib Music :3
     
  14. NuikopeaDemon

    NuikopeaDemon Hello Darkness

    Member
    4
    Sep 3, 2015
    New Zealand
    Hastings
    If you haven't played Lemmings then your too young lol.

    Cheers @bayleef going to try this now :):yay:

    *EDIT.... Dude this is looking great B-)
     
    Last edited by NuikopeaDemon, Oct 6, 2016
  15. 0bvious

    0bvious GBAtemp Regular

    Member
    4
    Oct 1, 2007
    I was wondering why the sound was so different to how I remembered it. Sigh. Is there any weird hack someone can do to port the SFX over? There are only about 8 sounds in the game after all.
     
  16. bayleef
    OP

    bayleef Advanced Member

    Newcomer
    2
    Sep 15, 2015
    Gambia, The
    The easiest would be to enable the game playing PCM wave files from the SD card for sound effects instead from ADLIB.DAT file (as an option). So, if you think you would be able to get these files from somewhere (and maybe the music from the Amiga version too), implementing the feature would take at most one or two hours to me (as long as I don't have a settings menu, the game may prefer wave files whenever it finds them).
    Reading the effects directly from the Amiga ROM would be many orders of magnitude more complex to implement.
     
    Last edited by bayleef, Oct 7, 2016
  17. hippy dave

    hippy dave BBMB

    Member
    15
    Apr 30, 2012
    United Kingdom
    From what I remember, Lemmings DS contains all the music and sound effects, might be an easy place to grab them.
     
  18. bayleef
    OP

    bayleef Advanced Member

    Newcomer
    2
    Sep 15, 2015
    Gambia, The
    Yes, but in xm format. Of course, it would be possible to play this at 3DS, but more effort to parse yet another file format. Of course, for the music the file size is dramatically smaller when stored as xm or mod instead of uncompressed wave. So, the question is: Does anybody want support for small xm (or mod) files that need not be converted to large wave files manually? I could do this too, but don't expect it within short time. (Or anybody who is interested could implement it and send me a pull request. I could help, just ask me.)
     
    Last edited by bayleef, Oct 7, 2016
    sieroi likes this.
  19. hippy dave

    hippy dave BBMB

    Member
    15
    Apr 30, 2012
    United Kingdom
    As the music was originally composed in tracker format, that's how it would make sense to me to play it, but you could always render them to wav if you prefer. Module playback for 3DS would be a really useful thing to have available in general, I thought it had already been done tbh but it looks like I might be wrong.
     
  20. bayleef
    OP

    bayleef Advanced Member

    Newcomer
    2
    Sep 15, 2015
    Gambia, The
    To be honest, I don't know whether this has been done by someone else already. If it really has been done, it would be much easier to add it to the game of course.

    The format of DOS Lemmings music is very different. In fact, it seems to be an (unknown) midi format. But it is not clear how it works... I figured out some details, but not enough to play it. However, ADLIB.DAT has a built-in parser in 8086 assembly. So I implemented a tiny (incomplete) 8086 emulator to run the original sound interpreter directly from ADLIB.DAT. It outputs raw port calls to adlib sound card (OPL2 chip), which I play using (slightly modified) DosBOX code. Btw., this is why I needed about two weeks for audio support. However, playing DOS Lemmings audio is a bit different than xm or mod file playing.

    Additional remark: When I was young, I only had DOS Lemmings, so I like the DOS sound and music. Especially the Amiga opening sound that is played after the "Let's go" sounds strange to me. However, from a more objective point of view, the Amiga sound - and especially the music - seems to be of higher quality. Thus I can understand that some people want the Amiga audio in the game.
     
    Last edited by bayleef, Oct 7, 2016
    Quantumcat likes this.
Quick Reply
Draft saved Draft deleted
Loading...