Page 1 of 1

Request for plugin creators willing to help me.

Posted: 27 Apr 2024, 12:41
by FVI
Good morning!
I am trying to make a plugin, but i had a problem with coding and I am looking for an experienced plugin creator who can help me.

Thanks for reading.

Re: Request for plugin creators willing to help me.

Posted: 28 Apr 2024, 05:13
by Mendel Group
Your welcome!

Re: Request for plugin creators willing to help me.

Posted: 28 Apr 2024, 07:14
by ArthurJ22
Well I mean, first you should say what problem you are having, a problem with LUA is not the same as one with Json, or with some syntax or semantics, if u give more detail someone could surely help you...

Re: Request for plugin creators willing to help me.

Posted: 28 Apr 2024, 20:29
by FVI
My problem concerns a night animation not showing up at all although I am sure to have included everything necessary to make it work, and I am working with json.
I will soon post the json.

Re: Request for plugin creators willing to help me.

Posted: 28 Apr 2024, 22:08
by ArthurJ22
If you do not get any code errors, it is most likely that you are simply not aligning the night animation in X, Y.

I'll leave this here for reference:

Image

Another option would be to use the Animation Dev. Tool by ian

Re: Request for plugin creators willing to help me.

Posted: 28 Apr 2024, 22:23
by FVI
I already tried with that, but unfortunately that doesn't work, the animation just doesn't show up. Maybe that could actually be the reason, but I have no reference points to start from, so I don't know how much to move X and Y at all. Plus mine is an animation with a complex texture, so unfortunately I can't even use the Animation Dev Tool...

By the way this is the code

Code: Select all

[
    {
"id": "$nightanimation1234",
"type": "animation",
"light": true,
"light switching": "true",
"frames": [
{
"bmp": "Cefal1 NA.png",
"count": 1,
"h": 4,
"w": 4
}
],
"rotation aware": 
false}, 
  {
    "id": "$c.religion.2024-04-17-18:46",
    "author": "FVI",
    "meta": {
      "pca": {
        "version": "4.3.0"
      }
    },
    "frames": [
      {
        "bmp": "Cefal.png"
      }
    ],
    "influence religion": 100,
    "animation": [{"id": "$nightanimation1234", "x":0,"y":100}], 
    "width": 4,
    "height": 4,
    "type": "religion"

Re: Request for plugin creators willing to help me.

Posted: 29 Apr 2024, 01:23
by ArthurJ22
Since I don't have those frames, I'll just give an example: :teach
Show
Json

Code: Select all    Reset

[{ "id":"$example-night-animation-AJ22", "type":"animation", "light":true, "light switching":true, "frames": [{"bmp":"Night.png"}] }, { "id": "$example-plugin-AJ22", "title": "Example", "text": "Example.", "author": "ArthurJ22", "meta": { "pca": { "version": "4.3.0" } }, "frames": [{"bmp": "Example.png"}], "animation": [{ "id": "$example-night-animation-AJ22", "x": 0, "y": -80 }], "influence religion": 20, "width": 4, "height": 4, "draw ground": true, "auto build": false, "type": "religion" } ]
JSON checker
Check
Show
Used frames
Image Image
Show
Manifest

Code: Select all    Reset

{ "id": "$manifest-5c51dc23-79b2-46e2-b321-0aa5bc1c6647", "version": 1, "title": "Example", "text": "This is an example plugin, please do not publish.", "author": "ArthurJ22" }
JSON checker
Check
Show
Why Y = -80?

Image

As u can see its exactly as in the guideline, it is simply a matter of marking and knowing where they are supposed to be.
In-game
Image

Btw that's not the only way of night frame, it's just the "easiest" one.

-----

Regarding ur code, you will already notice that u have Y = 100, being a positive value means that you have sent it under the ground. :mine

Re: Request for plugin creators willing to help me.

Posted: 29 Apr 2024, 18:47
by FVI
I've tried to fix my code following some attributes of yours, but unfortunately it still doesn't work. I do not get why if I put both X and Y as 0, it doesn't automatically overlaps when it's night.
Anyway I could give you the frames if it helps.
New document 11.zip
(24.87 KiB) Downloaded 11 times

Re: Request for plugin creators willing to help me.

Posted: 29 Apr 2024, 22:02
by ArthurJ22
FVI wrote:
29 Apr 2024, 18:47
I've tried to fix my code following some attributes of yours, but unfortunately it still doesn't work. I do not get why if I put both X and Y as 0, it doesn't automatically overlaps when it's night.
Anyway I could give you the frames if it helps.

New document 11.zip
You had a few errors in the code, here is the fixed:
Show
Json

Code: Select all    Reset

[{ //Animation Type "id":"$nightanimation1234", "type":"animation", "light":true, "light switching":true, "frames": [{"bmp":"Cefal1 NA.png"}] }, { //Frame Data "id": "$c.religion.2024-04-17-18:46", "title": "Example", "text": "Example.", "author": "FVI", "meta": { "pca": { "version": "4.3.0" } }, //Frames + Animation "frames": [{"bmp": "Cefal.png"}], "animation": [{ "id": "$nightanimation1234", "x": 0, "y": -128 }], //Tags "influence religion": 100, "width": 4, "height": 4, "draw ground": true, "auto build": false, "type": "religion" } ]
JSON checker
Check
Again, you have to measure, you're not measuring and that's why you're struggling.

Image

That is the measure of why it is -128.

Final result:

Image

It should be noted that you have some "wild" pixels and details that u have not erased in ur night frame that you should fix.

Re: Request for plugin creators willing to help me.

Posted: 30 Apr 2024, 18:04
by FVI
Now I understand what's wrong! Thank you so much @ArthurJ22!