[RMMZ] Spine 2D animation

Plugin MardSilver_Spine V1.0.0
Mard Silver
​

Introduction
This plugin allows you to use Spine animations in your game.
According to Spine's terms, users of this plugin need a Spine Editor license
to use it in their projects. Please read the Spine Runtimes License Agreement
before using this plugin.

Features
With this plugin you can use Spine animations for Actor, Battler Actor, Event, Enemy, Vehicle,
use like as Picture. (With trial version you only have Actor and Battler Actor)
If you want use for free, you can download trial version.

ChangeLog
version 1.0.1 Fedruary 25 2025
- Add command plugin for change angle for character
- Add command plugin Change Spine file for character
- Add command plugin Change Spine file for battler
- Fixed dashing.

Screenshots
1711547863207.png

1711547919269.png

Video
Trial version:


Demo:

Tutorial Setting:



How to Use
This plugin must be below MardSilver_0_Utils
You need to create a folder called "spine" in your project.
Then, you need to put the Spine files in this folder.

Plugin Commands / Script Calls
Set Actor note tag:
<spineName:spineName>
<spineScale:spineScale>
<spineTimeScale:spineTimeScale>
<spineLoop:spineLoop>
<spineSkin:spineSkin>
<spine_dash:run>
<spine_walk:walk>
<spine_jump:jump>

==For Battler Actor===
<spineBattle:name> // dont need set if you use same name with spineName in character
<spinebattle_TimeScale:timeScale> // if you dont set, it will use spineTimeScale
<spineBattle_Scale:scale> // if you dont set, it will use spineScale
<spineBattle_Skin:skin> // if you dont set, it will use spineSkin
<spineReverseX:boolean> // True or False
<spineBattle_walk:walk>
<spineBattle_wait:wait>
<spineBattle_chant:chant>
<spineBattle_guard:guard>
<spineBattle_damage:damage>
<spineBattle_evade:evade>
<spineBattle_thrust:thrust>
<spineBattle_swing:swing>
<spineBattle_missile:missile>
<spineBattle_skill:skill>
<spineBattle_spell:spell>
<spineBattle_item:item>
<spineBattle_escape:escape>
<spineBattle_victory:victory>
<spineBattle_dying:dying>
<spineBattle_abnormal:abnormal>
<spineBattle_sleep:sleep>
<spineBattle_dead:dead>

===How to use spine for Event===
* Set event name same with note file name in data/notes folder
* Set Event note tag like Actor
*
* ===How to use spine like Picture===
* Can show spine like picture with plugin command "showSpine"
* Can move spine with plugin command "moveSpine"
* Can show/hide spine with plugin command "VisibleSpine" after use plugin command "showSpine"
* Can rotate spine with plugin command "rotateSpine"
*
* ===How to change skin of spine===
* Can change skin of spine with plugin command "changeSkin"
*
* ===How to change animation of spine===
* Can change animation of spine with plugin command "changeAnimation"
* With change animation, you can change animation for spine, player, event, follower, vehicle
* Note**: id follower from 0
* id vehicle from 0-2 // 0: boat, 1: ship, 2: airship
* player dont need id
*
* ===How to change angle of spine===
* Can change angle of spine with plugin command "changeAngleSpine"
*
* ===How to use spine for Enemy===
* Set Enemy note tag same Actor
*
* ===How to use spine for Vehicle===
* Set Vehicle note tag same Event

Demo

Download
Itch.io: https://mardsilver.itch.io/mardsilver-spine

Terms and Credits
Terms of use are detailed in the plugin, please read carefully before using. Thank you.

Spine Runtimes License Agreement​

Last updated February 20, 2024. Replaces all prior versions.
Copyright (c) 2013-2024, Esoteric Software LLC
Integration of the Spine Runtimes into software or otherwise creating derivative works of the Spine Runtimes is permitted under the terms and conditions of Section 2 of the Spine Editor License Agreement:
http://esotericsoftware.com/spine-editor-license
Otherwise, it is permitted to integrate the Spine Runtimes into software or otherwise create derivative works of the Spine Runtimes (collectively, "Products"), provided that each user of the Products must obtain their own Spine Editor license and redistribution of the Products in any form must include this license and copyright notice.
THE SPINE RUNTIMES ARE PROVIDED BY ESOTERIC SOFTWARE LLC "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL ESOTERIC SOFTWARE LLC BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, BUSINESS INTERRUPTION, OR LOSS OF USE, DATA, OR PROFITS) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THE SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Hi there @mardsilver Can you discuss the trial/demo version a little bit? Does it have a time limitation or is it a feature limitation?

Thank you.
Hi there @mardsilver Can you discuss the trial/demo version a little bit? Does it have a time limitation or is it a feature limitation?

Thank you.
hi, trial version has no limit on usage time. In terms of features, the trial version is not as fully functional as the official version. The trial version can only use spines for the actor's character and battler. While in the official version, spine can be used instead of show pictures, it can be used for vehicles, for events, and even for enemies.
Thank you (^_^)

​

@mardsilver - this plugin seems to include the pixi-spine library (link to license). Can you confirm whether users will require a Spine Editor license in order to use it?
Can you confirm whether users will require a Spine Editor license in order to use it?
Yes, users need a Spine Editor license to use it.
The link doesn't work anymore, says that the product doesn't exist. It does allow me to go to the OP's main itch page from which I am able to proceed, but only the trial version is available by doing so. Has there been some kind of takedown request regarding the plugin, or has it been canceled or something?
Sorry, I'm temporarily closing the official plugin link because I'm fixing a few bugs to make it compatible with some of my other plugins. I'll let you know when it's on sale again.
The link doesn't work anymore, says that the product doesn't exist. It does allow me to go to the OP's main itch page from which I am able to proceed, but only the trial version is available by doing so. Has there been some kind of takedown request regarding the plugin, or has it been canceled or something?
Hey there! :LZSproud:

I was trying to run the demo version, but sadly it doesn't start. When including the two plugins (base and demo) in a new project, instead I get the following error message:


Code:
TypeError
Cannot read property 'getSetting' of undefined

Both happen before the title screen is loading.

I tried both with the base plugin included with the demo and the stand alone version.

As for MZ, I'm running the current version 1.8.0.

I would love to buy the full version, but at $50 I don't want to risk it won't work, either. So, are those known problems fixed in the actual plugin, or will the full version most probably not work for my current setup, either?
Hey there! :LZSproud:

I was trying to run the demo version, but sadly it doesn't start. When including the two plugins (base and demo) in a new project, instead I get the following error message:


Code:
TypeError
Cannot read property 'getSetting' of undefined

Both happen before the title screen is loading.

I tried both with the base plugin included with the demo and the stand alone version.

As for MZ, I'm running the current version 1.8.0.

I would love to buy the full version, but at $50 I don't want to risk it won't work, either. So, are those known problems fixed in the actual plugin, or will the full version most probably not work for my current setup, either?
Can you give me some video or image?
Sorry for the late reply, I'm fresh out of a Holiday :LZScheeze:

Not much I could make an image from - the demo just stays a black screen, while adding the plugin files to a fresh project results in the error message posted above.

Screenshot from 2024-08-16 21-50-31.png


The game runs just fine when I deactivate the spine plugin, with only the base plugin still active. So unless it's a consequential error, it most probably isn't directly linked to the utils plugin.

Screenshot from 2024-08-16 21-57-56.png


I tried to use Triacontanes and Auras dev tools for debugging, but neither of them loads in before the error occurs.
(So no debug window and no error details, sadly.)

Screenshot from 2024-08-16 21-52-50.png


The spineboy assets are in the ./spine/ Folder (and the plugin parameter is set accordingly).

Screenshot from 2024-08-16 21-59-52.png
@PBard When you get an error message, press F8, go to the Console tab, and post screenshots of the full error trace. You don't need a dev tools plugin for that.
@PBard When you get an error message, press F8, go to the Console tab, and post screenshots of the full error trace. You don't need a dev tools plugin for that.
You're now officially my personal hero ... :LZScheeze:

It never occurred to me that we get direct access to the dev tools ...

So, seems like MS.Spine has not yet been initialized?

Screenshot from 2024-08-16 22-07-38.png
@PBard Please follow my instructions and paste the error trace from the Console tab. That is what anyone (especially the plugin developer) needs to figure out the cause of the error.

It should look like this.

1723839797281.png
The trace doesn't go any deeper than the error message shown above.

Screenshot from 2024-08-16 22-29-59.png
Sorry for the late reply, I'm fresh out of a Holiday :LZScheeze:

Not much I could make an image from - the demo just stays a black screen, while adding the plugin files to a fresh project results in the error message posted above.

View attachment 314812

The game runs just fine when I deactivate the spine plugin, with only the base plugin still active. So unless it's a consequential error, it most probably isn't directly linked to the utils plugin.

View attachment 314815

I tried to use Triacontanes and Auras dev tools for debugging, but neither of them loads in before the error occurs.
(So no debug window and no error details, sadly.)

View attachment 314813

The spineboy assets are in the ./spine/ Folder (and the plugin parameter is set accordingly).

View attachment 314816
with trial version try change plugin file name to MardSilver_Utils.js
The trace doesn't go any deeper than the error message shown above.
But it gives more information, as evidenced by the advice to change the file name 😉
with trial version try change plugin file name to MardSilver_Utils.js
Thanks, it works for a new project now!
(I originally had the "MardSilver_Utils.js" version loaded, BUT in a sub folder. Keeping everything in the main JS folder with the filename from the demo seems to work fine.)

As for the demo itself, it seems the main.js file is corrupted. Re-downloaded the demo, but the error remains.

Screenshot from 2024-08-17 11-43-05.png


Trying to edit the JS gets me a file error:
Code:
11:56:01: The file "./js/main.js" does not look like a text file or the file encoding is not supported.

But I'll just try to recreate the content in my test project, now that that works. Thanks a lot for the quick support!
:LZSjoy:

But it gives more information, as evidenced by the advice to change the file name 😉
Errr ... no? The filename of the utils plugin isn't actually part of the trace but came from my screenshots above. Since the error occurred at top level, the trace added absolutely nothing new that hadn't already been posted before ... hence why I didn't originally include it to keep the information streamlined.
😉
Hi mardsilver!
I have confirmed that the trial version works and I have purchased the official version.
However, I create new project and have the same settings as in the demo project and activated the plugin, but I get an error and the game does not start.
From the thread, it seems to be the same phenomenon as PBard's.
Is there anything I can do to get it working?
RMMZ version is 1.8.1.

Thank you.

スクリーンショット 2024-10-16 193135.png


スクリーンショット 2024-10-16 192322.png
Hi mardsilver!
I have confirmed that the trial version works and I have purchased the official version.
However, I create new project and have the same settings as in the demo project and activated the plugin, but I get an error and the game does not start.
From the thread, it seems to be the same phenomenon as PBard's.
Is there anything I can do to get it working?
RMMZ version is 1.8.1.

Thank you.

View attachment 320589

View attachment 320588
What is the file name of the plugin util you are using? If it is a purchased version it should be the latest version on itch.io

Hi mardsilver!
I have confirmed that the trial version works and I have purchased the official version.
However, I create new project and have the same settings as in the demo project and activated the plugin, but I get an error and the game does not start.
From the thread, it seems to be the same phenomenon as PBard's.
Is there anything I can do to get it working?
RMMZ version is 1.8.1.

Thank you.

View attachment 320589

View attachment 320588
The Util plugin for the full version should be: MardSilver_0_Utils
Maybe I should edit the trial version to sync with the latest version of the Utils plugin.

Original thread: https://forums.rpgmakerweb.com/threads/rmmz-spine-2d-animation.167212/