RPGMania - Stepmania/DDR Minigame with chart support

RPGMania v1.0
Stepmania/DDR style rhythm mini-game with .SM chart support and pseudo-3d background visuals.
Source Code
Demo Project (Updated: v1.0.1)


​

Features
  • Support for most .SM chart features with correct note timings​
  • Background visuals with character sprite that moves to the music (using data from chart)​
  • Menu to load and select all charts in folder and display song art and submenu for difficulty selection​
  • Note timing and ranking + combo scoring​
  • Optional note "hit" sounds​
Setup
  1. Setup pixi projection plugin
    1. Copy plugin file into your js/libs folder (Copy from demo project or download src and follow build instructions here: https://github.com/pixijs/pixi-projection)
    2. Add the following line to your index.html in the body with the other script tags:
      Code:
              <script type="text/javascript" src="js/libs/pixi-projection.js"></script>
  2. Copy the example assets from the demo project img/rpgmania folder into a folder of the same name in your project (list of required assets in plugin help).

Hopefully this is useful or interesting to a few people out there.
Currently there are only a few config plugin options but if people ask I can add more customization.
is it possible to get this working in mz? would be really useful, just cant get this version working with mz
I have wanted to see something like this in MV for forever, very cool!! Editing to say your demo crashed immediately, says it can't render property of null
Ive been looking for something like this? Why was it just now
is it possible to get this working in mz? would be really useful, just cant get this version working with mz
It should work in MZ without too much effort, there's nothing in here that's MV specific, it's basically its own game loop built on PIXI. I don't own MZ to test it out though, but I can help you work out any issues if you want to give it a try.
I have wanted to see something like this in MV for forever, very cool!! Editing to say your demo crashed immediately, says it can't render property of null
Oh I think this bug was happening on the song list because I was defaulting to the zero index of the menu list (the song list is just a mv selectable window). I have a fix for it but I only added it in my game, my mistake, I'll update the plugin here too
Oh I think this bug was happening on the song list because I was defaulting to the zero index of the menu list (the song list is just a mv selectable window). I have a fix for it but I only added it in my game, my mistake, I'll update the plugin here too
No worries! Just wanted to bring attention to it in case someone else noticed!
No worries! Just wanted to bring attention to it in case someone else noticed!
Thanks for the heads up! I've updated the plugin code and example project with this fix and some other improvements.
Thank you for this!! been looking for something like this.
Thanks for the heads up! I've updated the plugin code and example project with this fix and some other improvements.
I hate to report more concerns but I still get a null upon playtesting the updated demo: I'd poke around the core but weirdly enough its saying I am not authorized to have access
1686525693516.png
You are right, me too i cant play the demo because replaceAll() is not a function
1686551703231.png



i checked the index file in the demo, the line pixi-projection is there
1686551904589.png
You are right, me too i cant play the demo because replaceAll() is not a function
Ah, I had not previously tested with old versions of NWJS. It looks like the js version that shipped with the original version of MV didn't support `replaceAll` yet. To be honest I totally forgot that the NWJS assets are stored in program files and not the project folder.

However, after testing this out, it seems that there are some additional issues with rendering, likely from the pixi projection extension, when using old versions of nwjs.

I strongly recommend updating as documented here, but I will also update the plugin to provide a setting to disable the projection 3d effects entirely and instead use a normal 2d background.

I hate to report more concerns but I still get a null upon playtesting the updated demo: I'd poke around the core but weirdly enough its saying I am not authorized to have access

This error is weirder... Im not 100% sure whats happening here but it seems to be an incompatibility between a shader in this version of pixi and the version of webgl you're running it on possibly?
One thing I can try doing is updating the pixi version in the demo project. I seem to have left it at 4.5.4 rather than the latest: 4.8.9
Though I have no issues with it on my computer at 4.5.4 either.
Ah, I had not previously tested with old versions of NWJS. It looks like the js version that shipped with the original version of MV didn't support `replaceAll` yet. To be honest I totally forgot that the NWJS assets are stored in program files and not the project folder.

However, after testing this out, it seems that there are some additional issues with rendering, likely from the pixi projection extension, when using old versions of nwjs.

I strongly recommend updating as documented here, but I will also update the plugin to provide a setting to disable the projection 3d effects entirely and instead use a normal 2d background.



This error is weirder... Im not 100% sure whats happening here but it seems to be an incompatibility between a shader in this version of pixi and the version of webgl you're running it on possibly?
One thing I can try doing is updating the pixi version in the demo project. I seem to have left it at 4.5.4 rather than the latest: 4.8.9
Though I have no issues with it on my computer at 4.5.4 either.
Sounds good! I'll give them both a shot!
Hello ! I tried downloading the demo project, but when I launch it, nothing happens, I'm stuck with the player on the default map. I tried opening the console and I saw the error "Unexpected Token". Is there a way to fix it ? I also tried updating NW.js, but it got me an error.
I tried opening the console and I saw the error "Unexpected Token".
Generally speaking, that error means there's a typo in JavaScript.

We can't give any more specific help without seeing the actual error - post a screenshot from the Console tab, it should say exactly what character the unexpected token is, and what line of the code it's coming from.
Generally speaking, that error means there's a typo in JavaScript.

We can't give any more specific help without seeing the actual error - post a screenshot from the Console tab, it should say exactly what character the unexpected token is, and what line of the code it's coming from.

As you said, here's a screenshot
image.png
@Flaura I do not get that error when I try to run the demo project.

However, I do get the errors from post #11 above - it appears this plugin was written to be dependent on a different version of NW.js than MV has, and is incompatible with un-modded MV.

Your error makes me wonder if you're running an old, not-updated version of MV. When you check the version, is it at least 1.6?
@Flaura I do not get that error when I try to run the demo project.

However, I do get the errors from post #11 above - it appears this plugin was written to be dependent on a different version of NW.js than MV has, and is incompatible with un-modded MV.

Your error makes me wonder if you're running an old, not-updated version of MV. When you check the version, is it at least 1.6?
You were right, I was in fact running an old version. Now that I updated it, it works.
Now that this is out of the way, I've got another issue. I tried downloading some .SM maps, put them in the "charts" directory, but when I launch the game, they don't appear in the song list. Am I missing a step here ?
Hello. I'm trying to make this plugin work in MZ but I have encountered error

ReferenceError
Sprite_Base is not defined


If anyone could help me solve it I would be super grateful
Has this plugin been updated to let users be able to disable the 3D assets and use 2D instead?

Original thread: https://forums.rpgmakerweb.com/threads/rpgmania-stepmania-ddr-minigame-with-chart-support.156933/