• HomeBoards
  • RulesRules
  • HelpHelp
  • WikiWiki
  • Donate

Author Topic: Cavestory RS-90 port?  (Read 1175 times)

thedanish (OP)

  • Posts: 7
Cavestory RS-90 port?
« on: November 30, 2020, 04:19:06 pm »
How are you guys porting to this platform? I've never ported anything before but I saw NXEngine has a Dingoo port https://github.com/EXL/NXEngine https://exlmoto.ru/nxengine/ and it sparked my interest. I guess the hard part, the architecture porting, is done and it already has a linux version, so just keymapping and some makefile configuration? What are you guys compiling with? Are you using anything for optimization? How are you making the opk packages?
Not asking for spoon feeding but this stuff doesn't appear very beginner friendly, just wondering where to begin to take a stab at this.

Also, very impressive work on the RS-90 to all contributors. Works great, well done.

thedanish (OP)

  • Posts: 7
Re: Cavestory RS-90 port?
« Reply #1 on: December 05, 2020, 10:38:35 am »
So not as simple as I thought, all I'm hitting is segfaults. I had trouble with SDL setting the video but I found gameblablas' commits for the rs-97 which fixed that. I set the debug flag but this is all the output I get.

Loading settings...
Setting scaling 1 and fullscreen=no
SDL_SetVideoMode: 320x240 @ 16bpp
SIFLoader::LoadHeader: read index of 8 sections
Loading SIF section 1 from address 004d
Loading SIF section 2 from address 044c
SIFSpritesSect: loading 490 sprites
fonts: using bitmapped from smalfont.bmp
Segmentation fault

I don't think I'm capable of fixing this. I noticed the rs90 has gdb, maybe I will try messing around with that. I suppose the least I can do is try or possibly beg someone else to solve this...


  • Posts: 1447
Re: Cavestory RS-90 port?
« Reply #2 on: December 05, 2020, 10:47:25 am »
This is because the IPU only supports downscale for YUV422 planar.
What should be done for NXengine is to force 8bpp mode (it does have an 8bpp mode available) and convert that to YUV422.
« Last Edit: December 05, 2020, 10:54:38 am by gameblabla »

thedanish (OP)

  • Posts: 7
Re: Cavestory RS-90 port?
« Reply #3 on: December 05, 2020, 01:49:09 pm »
Thank you so much for the reply.

I have attempted what you said, I set the bpp to 8 and added SDL_YUV444 to the SetVideoMode flags but it still segfaults. I am not sure how to achieve this YUV422 but I will continue to work on it. Thank you very much for the help.