Request for plugin creators willing to help me.

Plug-in related stuff can be discussed here.

Moderator: Plugin Moderators

User avatar
FVI
Inhabitant of a Planet
Reactions:
Posts: 1540
Joined: 22 Feb 2022, 18:00
Location: That island above France
Plugins: Showcase Store
Version: Beta

Platform

Request for plugin creators willing to help me.

#1

Post 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.

User avatar
Mendel
Inhabitant of a Megalopolis
Reactions:
Posts: 591
Joined: 07 Apr 2024, 05:18
Location: नागपुर
Plugins: Showcase Store

Re: Request for plugin creators willing to help me.

#2

Post by Mendel »

Your welcome!

User avatar
ArthurJ22
Villager
Reactions:
Posts: 14
Joined: 26 Oct 2020, 06:43

Plugin Creator

Platform

Re: Request for plugin creators willing to help me.

#3

Post 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...

User avatar
FVI
Inhabitant of a Planet
Reactions:
Posts: 1540
Joined: 22 Feb 2022, 18:00
Location: That island above France
Plugins: Showcase Store
Version: Beta

Platform

Re: Request for plugin creators willing to help me.

#4

Post 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.

User avatar
ArthurJ22
Villager
Reactions:
Posts: 14
Joined: 26 Oct 2020, 06:43

Plugin Creator

Platform

Re: Request for plugin creators willing to help me.

#5

Post 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

User avatar
FVI
Inhabitant of a Planet
Reactions:
Posts: 1540
Joined: 22 Feb 2022, 18:00
Location: That island above France
Plugins: Showcase Store
Version: Beta

Platform

Re: Request for plugin creators willing to help me.

#6

Post 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"

User avatar
ArthurJ22
Villager
Reactions:
Posts: 14
Joined: 26 Oct 2020, 06:43

Plugin Creator

Platform

Re: Request for plugin creators willing to help me.

#7

Post 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

User avatar
FVI
Inhabitant of a Planet
Reactions:
Posts: 1540
Joined: 22 Feb 2022, 18:00
Location: That island above France
Plugins: Showcase Store
Version: Beta

Platform

Re: Request for plugin creators willing to help me.

#8

Post 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 9 times

User avatar
ArthurJ22
Villager
Reactions:
Posts: 14
Joined: 26 Oct 2020, 06:43

Plugin Creator

Platform

Re: Request for plugin creators willing to help me.

#9

Post 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.

User avatar
FVI
Inhabitant of a Planet
Reactions:
Posts: 1540
Joined: 22 Feb 2022, 18:00
Location: That island above France
Plugins: Showcase Store
Version: Beta

Platform

Re: Request for plugin creators willing to help me.

#10

Post by FVI »

Now I understand what's wrong! Thank you so much @ArthurJ22!

Post Reply Previous topicNext topic

Return to “Plug-In Discussion”