Problem with night animation

Plugin specific problems will be solved here.

Moderators: Scenario Moderators, Plugin Moderators

User avatar
Dima Rted
Settler
Posts: 1
Joined: 03 Apr 2021, 16:06

Problem with night animation

#1

Post by Dima Rted »

(Everything is translated through a translator, there may be errors in the text)I have been unable to make a night animation for a small house for 3 hours now. I wrote the code myself, looked at people's code, and even gave it to AI. Can someone help me with the code, I just don't understand it at all, but I really want to make a night animation. Here is my problematic code:
[
{
"id": "$temno",
"type": "animation",
"light": true,
"light switching": true,
"frames": [
{
"bmp": "svethouse69.png",
"count": 1
}
],
"rotation aware": false
},
{
"id": "$DimaRtedAbobys",
"type": "residential",
"level": 1,
"author": "Dima Rted",
"width": 2,
"height": 2,
"frames": [
{
"bmp": "house69.png",
"count": 1
}
],
"animations": [
{
"id": "$temno",
"x": 0,
"y": 0
}
]
}
]

User avatar
FVI
Inhabitant of a Galaxy
Posts: 2395
Joined: 22 Feb 2022, 18:00
Location: The largest island in Europe
Plugins: Showcase Store
Version: Beta

Platform

Re: Problem with night animation

#2

Post by FVI »

Dima Rted wrote:
16 Aug 2024, 01:29
Quote
Does it show any error when loading the game or is it the night animation just not showing up?

Anyway I'm not really a code expert (that's why I didn't find anything strange in your code) but I tried to adapt this code I made to yours.
Show
Test

Code: Select all    Reset

[   { "id": "$temno", "type": "animation", "light": true, "light switching": true, "frames": [ { "bmp": "stevehouse69.png" } ], "rotation aware": false},   {     "type": "residential",     "id": "$DimaRtedAbobys",     "author": "Dima Rted",     "ordinal": 1,     "meta": {       "pca": {         "version": "4.0.3"       }     },     "frames": [       {         "bmp": "house69.png"       }     ],     "width": 2,     "height": 2,     "needs road": false,     "draw ground": true,     "animation": [{"id": "$temno", "x":0,"y":0}]   } ]
JSON checker
Check
Hope it works!

User avatar
dnswodn
Inhabitant of a Megacity
Posts: 252
Joined: 08 Feb 2022, 08:14
Location: 🏞️ Theonia 🌁
Plugins: Showcase Store

Plugin Creator

Platform

Re: Problem with night animation

#3

Post by dnswodn »

Dima Rted wrote:
16 Aug 2024, 01:29
(Everything is translated through a translator, there may be errors in the text)I have been unable to make a night animation for a small house for 3 hours now. I wrote the code myself, looked at people's code, and even gave it to AI. Can someone help me with the code, I just don't understand it at all, but I really want to make a night animation. Here is my problematic code:
[
{
"id": "$temno",
"type": "animation",
"light": true,
"light switching": true,
"frames": [
{
"bmp": "svethouse69.png",
"count": 1
}
],
"rotation aware": false
},
{
"id": "$DimaRtedAbobys",
"type": "residential",
"level": 1,
"author": "Dima Rted",
"width": 2,
"height": 2,
"frames": [
{
"bmp": "house69.png",
"count": 1
}
],
"animations": [
{
"id": "$temno",
"x": 0,
"y": 0
}
]
}
]
"animations" should be "animation", no s.

User avatar
stepa12345
Villager
Posts: 19
Joined: 01 Jul 2021, 13:19

Re: Problem with night animation

#4

Post by stepa12345 »

Он у тебя заработал после того как ты убрал "s" в "animations" или нет?
Did it work for you after you removed the "s" in "animations" or not?

Post Reply Previous topicNext topic

Return to “Problems”