MV Effekseer implementation

Among the features that came with MZ, the implementation of effekseer effects is probably one of the best.

However, I tried to move my project to MZ and failed. The project is too advanced and too much stuff breaks.
On the other hand, the main issue I have with my game is with animations. When using larger resolutions (I'm using 1280x720), I need to scale up the animations frames, and lose in quality, because it gets pixelated.

I was faced with three choices :

- Reduce game resolution, which would be a shame. Tiny windows hurt the eyes
- Give up on any fullscreen animation, which would scrap lots of the "ultimate skills" I designed
- Animations with 1280x720 sized frames, which turns into 700Mo spritesheets

Then I thought it would be easier to get one thing from MZ into MV rather than the whole thing from MV into MZ.


I made something. It does not work but here's what I managed to do until now :

- Added the file MZAnimations.json for DataManager to parse.
- Created Game_Battler.startMZAnimation, supposed to call the creation of a Sprite_MZAnimation with its effekseer properties
- Added EffectManager
- Corrected some incompatibilities

I also imported the file effekseer.min.js from index.html along PIXI and stuff (attached to the post).

And it runs. But with issues. The viewpoint is messed up and at least when I run Game_Battler.startMZAnimation, the animation plays, I hear sound, but no particles yet.

I am not savvy enough regarding PIXI and everything graphic-related, but maybe someone curious can give me a hand ?

1752008976380.png
Have you had a chance to look at this? It is the not same version though.

I only wish I COULD help.
The one regret I have with not being able to port my MV project to MZ is the lack of effekseer animations...

If you ever get this going...
Ahem... Following.
I only wish I COULD help.
The one regret I have with not being able to port my MV project to MZ is the lack of effekseer animations...

If you ever get this going...
Ahem... Following.
You've got it backwards. They're trying to backport Effekseer to MV, so that you can use Effekseer animations in MV.

But you can already use MV animations in MZ, so if that's the only thing keeping you from porting, then there's really nothing keeping you from porting? Unless your point is that you want to replace all the animations with Effekseer once.
I'd like to be able to use ES animations in MV.
That, to my knowledge, is not currently possible.
It is certainly possible. I don't know if it is practical.
Have you had a chance to look at this? It is the not same version though.

This guy got closer than I did at porting effseeker to MV. I'll definitely be reading that code and see if I can do some work with it


I only wish I COULD help.
The one regret I have with not being able to port my MV project to MZ is the lack of effekseer animations...

If you ever get this going...
Ahem... Following.

I know right, spritesheets are very limiting. ES animations unlock so much potential it's definitely worth bringing this for MV users
There are plugins that allow for implementing larger sprite sheets.

Alternatively, you could get creative with it and go for a pixel-art style for your spritesheet animations in such a way that it will still look good with integer scaling.
You can, also, implement nearest-neighbor scaling so that they look sharp always (even if some detail is lost)
There are plugins that allow for implementing larger sprite sheets.

Alternatively, you could get creative with it and go for a pixel-art style for your spritesheet animations in such a way that it will still look good with integer scaling.
You can, also, implement nearest-neighbor scaling so that they look sharp always (even if some detail is lost)

Regarding breaking the 192px limit : If I want to target the most acceptable quality for the lowest amount of RAM/Diskspace consumption, effekseer particles stays the best option. Animation sheets with big frames can quickly reach hundreds of MB.

Regarding using a pixel-art style : My project is well too advanced to change the art style. My game's artstyle is not pixelart and having pixelated animation would clash too much

Regarding with nearest neighbor implementation : Actually worth trying if I give up on bringing effekseer to MV

Also, the plugin above seems to only play .efk particles that my current version of effekseer does not event want to open. Is that a old file format ?

EDIT : Fixed the tilemap error when on map, fixed error when trying to show animation on leader
If I want to target the most acceptable quality for the lowest amount of RAM/Diskspace consumption
Hmm, well, I have a few custom built things for my game that rely on very huge sprite sheets and none of which exceed 1mb; for example, one being 7504x532, it is 275kb. I apply indexing, and at that, a special indexing algorithm that further reduces the size, but even without indexed colors it still barely cracks 500kb.

As for disk space, this isn't really anything to worry about. Even most indie games now exceed a few gigs. Unless you want your animations to play at 120fps, and the animations last for 10 seconds each, I don't see how the files could really be so large to concern ram usage or especially disk space.
This guy got closer than I did at porting effseeker to MV. I'll definitely be reading that code and see if I can do some work with it
So far, there are a few errors, but I am up and running with enough effekseer effects to be reasonable and usable. A few errors in the console that will require some work. Overall, it takes a bit of work to get it working, but it does work (v1.4 or something to maintain compatibility with PIXI v4).

Edit: Some of the other effects aren't showing too well - I'm not sure if it is Effekseer or the way things are added to the screen with PIXI.

s1.png

Alright, the fact that PIXI 4.8 is only compatible with older version of effekseer is why it cannot play .efkefc effects as well.

But this plugin seems fine for playing some .efk effects

And upgrading PIXI to v5.x also seems to bring lots of issues.

EDIT : I am working on a new project with PIXI v5. I noticed that the effekseer.wasm file wasn't loaded and needs to be loaded before the game starts. For now, I did the same thing as MZ and loaded it

After that, debugging went way farther than before. Effects is loaded and cached. But it is not rendered.

I was looking at the _render function, as maybe something is wrong with the renderer :


JavaScript:
Sprite_MZAnimation.prototype._render = function(renderer) {
    if (this._target && this._handle && this._handle.exists) {
        this.onBeforeRender(renderer);
        this.saveViewport(renderer);
        this.setProjectionMatrix(renderer);
        this.setCameraMatrix(renderer);
        this.setViewport(renderer);
        Graphics.effekseer.beginDraw();
        Graphics.effekseer.drawHandle(this._handle);
        Graphics.effekseer.endDraw();
        this.resetViewport(renderer);
        this.onAfterRender(renderer);
    }
};

But I kind of reached a dead end here since no function other than PIXI itself calls the _render function.
I use PIXI 4.8.9 and nwjs 0.48.4 as base of MZ uses, nwjs at least.
so those 2 play nice, so I don't go with higher PIXI to avoid problems.

but this looks really nice though =) far bigger than the other one.
but also, you can avoid those:

"code here" +
"new code here" +
"more code"

to make it just as
`code here
new code here
and more code`

so you avoid all the quotes and "+" on it in 1 sweep as backtick = multiline string.
but will check this out and see if I use it or not 🙂

keep up the good work =)

Original thread: https://forums.rpgmakerweb.com/threads/effekseer-implementation.178810/