[Release]The Legend of Sword and Fairy (sdlpal) - A classical DOS RPG port to 3DS

Discussion in '3DS - Homebrew Development and Emulators' started by Wenting, Feb 17, 2017.

  1. Wenting
    OP

    Wenting Newbie

    Newcomer
    8
    22
    Feb 14, 2017
    United States
    PA
    [​IMG]
    Introduction from http://chinesepaladin.org/about:

    XianJian QiXia Zhuan 仙劍奇俠傳 (also known as The Legend of Sword and Fairy and "PAL") is an action RPG created by Taiwan's Softstar Entertainment Inc. The game is considered by many as simply one of the best Chinese RPG ever created. Since its first release in 1995 (DOS Version), many new versions and sequels (including a prequel) were created. However, none could replace the breath-taking and tragic tale it was born from. Here, we meet our protagonist Li Xiaoyao; an aspiring martial artist and the lovely Zhao Ling'er, a charismatic Nuwa descendant.​

    Now this game has been ported to Nintendo 3DS! In both Chinese and non-official English! This game is also on titledb. Compatible with both o3DS and n3DS.

    Screenshots:
    Warning: Spoilers inside!

    Download:
    Download latest release from github: https://github.com/nbzwt/sdlpal/releases
    Source code available on github. This port is also merged into mainline sdlpal repository: https://github.com/sdlpal/sdlpal

    Installation:
    1. Download sdlpal.3dsx and copy to your 3DS. (Or install the sdlpal.cia).
    2. Create a new folder called sdlpal in 3ds folder of your SD card.
    3. Copy the sdlpal.cfg to the sdlpal folder just created. (so you should have sdmc:/3ds/sdlpal/sdlpal.cfg)
    4. Download the offical PC game freeware (for Windows 98): http://update1.baiyou100.com/resource/Pal98rqp.zip
    5. Extract all the file to the sdlpal folder. (Actually, these AVI files and two folders are not needed, feel free not to copy them if you are running out of SD card space.)
    6. Open sdlpal.cfg, change CODEPAGE=0 to CODEPAGE=1
    7. If you are using new3DS, turn on CPU+L2 boost in your CFW menu.
      If you are using original 3DS, open sdlpal.cfg, change both STEREO and USESURROUNDOPL to 0, lower both SAMPLERATE and OPLSAMPLERATE to 22050.
    8. You are now good to play the game in Chinese. To play it in English, continue on. It's also a good idea to check if it works before continue.
    9. Download the english patch: http://www.romhacking.net/translations/2441/
    10. Extract everything except sdlpal.cfg in the win directory of the archive file to the sdlpal directory of the SD card. (so, overwrite m.msg, sss.mkf and word.dat, add m_chs.txt and m_eng.txt)
    11. Open sdlpal.cfg, append "MESSAGEFILENAME=./m_eng.txt" at bottom
    12. You are good to play it.

    The installation is a little bit complicated due to the copyright issue. The game itself is release officially as a freeware, but I am not allowed to redistribute it, so you have to copy these resources files yourself.

    How to play
    The control is fairly easy, use DPAD or CPAD to move or select, A is enter and B is menu. You can also accelerate the game with L key (Sadly, almost no effect on o3DS, up to maximum 3X of the speed so you can skip fight animation etc.)

    Getting stuck
    Game related discussions can be found at http://chinesepaladin.org/phpBB/viewforum.php?f=3

    Experiencing Issues with the program
    Submit a new issue on the github, best in my own repo (nbzwt/sdlpal) instead of mainline repo (sdlpal/sdlpal).

    Changelog
    v1.1

    Merged new functionality from mainline repository.
    https://github.com/nbzwt/sdlpal/releases/tag/v1.1

    v1.0
    Initial release, based on a extremely outdated version of sdlpal. (I didn't figured out the main repo.) Fully playable with Pal DOS resource file:
    https://github.com/nbzwt/sdlpal/releases/tag/v1.0
     
    AtlasFontaine, Sinon, Abcdfv and 5 others like this.
  2. hectortillo

    hectortillo Advanced Member

    Newcomer
    65
    19
    Jan 16, 2017
    Mexico
    Mexico (Uriangato, Guanajuato)
    Excellent :D thanks :D i will install it later. :D i have heard a little about this game. :) i need to try it :D
     
  3. pdapanda

    pdapanda GBAtemp Advanced Fan

    Member
    712
    241
    Nov 19, 2014
    Switzerland
    OH,仙剑奇侠传!!Any plan for 金庸群侠传 or 轩辕剑 枫之舞?
     
    Last edited by pdapanda, Feb 18, 2017
  4. Heran Bago

    Heran Bago Where do puyo come from?

    Member
    3,003
    410
    Nov 6, 2005
    United States
    Foggy California
    Awesome. :)
     
  5. Wenting
    OP

    Wenting Newbie

    Newcomer
    8
    22
    Feb 14, 2017
    United States
    PA
    No plan yet. To my knowledge, "Xuan-Yuan Sword" don't have open source remake version (official or non-official). So, porting it to 3DS is virtually remaking these game with a new game engine... I just do not have time to do that. So, sorry. "Heroes of Jin Yong" do have a Pascal remake, but I am not familiar with that game, may be I would port it to C sometime... But most likely not, so don't expect that to happen.
    Btw, please be aware that gbatemp doesn't quite allow discussion in foreign language, so better add english name of these titles next time.
     
    Last edited by Wenting, Feb 18, 2017
  6. JerryShaw

    JerryShaw GBAtemp Regular

    Member
    106
    8
    Feb 7, 2017
    Switzerland
    That is great! haha
     
  7. xmang

    xmang Newbie

    Newcomer
    5
    0
    Feb 7, 2017
    United States
    Thanks much!
     
  8. pdapanda

    pdapanda GBAtemp Advanced Fan

    Member
    712
    241
    Nov 19, 2014
    Switzerland
    Oh,I found the Xuan-yuan Sword 2 spin off haven't been remade into sdl, actually what we have found across all the other platform is just a game running on Dosbox,
    Thank you for your notice!

    By the way, can Onescripter,which is able to emulate a lot of old fashioned electric novels,be ported to 3DS with the sdl lib?
     
    Last edited by pdapanda, Feb 18, 2017
  9. bambookun

    bambookun Newbie

    Newcomer
    3
    0
    Oct 12, 2013
    Switzerland
    I installed it but the game runs without any voice, so I checked your github page, it says" Audio resampler not working - set OPL samplerate equals to main samplerate.", I can only find two samplerate number in sdlpal.cfg and they are the same:
    OPLSAMPLERATE=44100
    SAMPLERATE=44100
    Am I doing wrong?
     
  10. pdapanda

    pdapanda GBAtemp Advanced Fan

    Member
    712
    241
    Nov 19, 2014
    Switzerland
     
  11. bambookun

    bambookun Newbie

    Newcomer
    3
    0
    Oct 12, 2013
    Switzerland
    I use luma3ds on my N3DS, and my cfw options about New 3DS CPU are : off() clock() l2() clock+l2(*), do I need to change the SAMPLERATE number?

    — Posts automatically merged - Please don't double post! —

    I check the SDL release info based on the version this game uses, and find out SDL 1.2.15 doesn't support sound, so I'll just stop there.

    "To Do List for SDL 1.2.15

    - Fix mouse/stylus support
    - Complete Joystick support
    - Add sound support
    - Integrate 3ds main menu events handling in the SDL_events handling routine"
     
  12. kane159

    kane159 GBAtemp Regular

    Member
    147
    28
    May 28, 2013
    Taiwan
    Holy s*** it work!!!!!!!!!
    Thanks a lot man!
    I Loooooooooove U
    [​IMG]
    And BTW the sound is perfect
     
    Last edited by kane159, Feb 18, 2017
  13. larkspur0

    larkspur0 Newbie

    Newcomer
    1
    0
    Feb 18, 2017
    Switzerland
    Can't run on original 3DS because of a crash in the splash screen. Why?
     
  14. Wenting
    OP

    Wenting Newbie

    Newcomer
    8
    22
    Feb 14, 2017
    United States
    PA
    This game used my own fork of SDL 1.2.15 which fixed these things, so this should not be a concern.

    And correct, if you are using luma3ds and checked clock+l2, you do NOT need to change the SAMPLERATE number. Your configuration looks good to me.

    So, now your problem is that your game runs and you can play it without ANY sound (BGM or sound effect), is that correct? If this is the case, first, simply try to reboot your 3DS with sound on and try again. This problem do occasionally happen.
    If it doesn't help, I would recommend you to run DspDump in your HBL again. An outdated DspFirm could cause this.

    — Posts automatically merged - Please don't double post! —

    ONScripter is in my plan already. I just think that the screen resolution is too poor for many VNs... It would be much better if 3DS have a screen resolution like 640x480 or so.
     
    Last edited by Wenting, Feb 19, 2017
  15. bambookun

    bambookun Newbie

    Newcomer
    3
    0
    Oct 12, 2013
    Switzerland
     
  16. GravitySuitCollector

    GravitySuitCollector Advanced Member

    Newcomer
    75
    19
    Feb 7, 2017
    United States
    Oregon
    Thanks. :) I got it up and running just fine in luma's homebrew channel implementation following your instructions, I think (I needed to get the DSP file for sound; once I did, it worked just fine). Now, I just need to play it.
     
  17. pandavova

    pandavova @pandavova FOLLOW ME ON TWITTER

    Member
    562
    252
    Oct 27, 2015
    Germany
    Windows 10 Pro
    You moded a Celeron in your 3DS? Wow!