night animation did not light up

Plug-in related stuff can be discussed here.

Moderators: Scenario Moderators, Plugin Moderators

User avatar
Evanzer
Townsman
Posts: 98
Joined: 07 Aug 2024, 02:09

Plugin Creator

Platform

night animation did not light up

#1

Post by Evanzer »

Help us
Screenshot_2024-08-23-23-16-56-210-edit_ru.zdevs.zarchiver.jpg
Screenshot_2024-08-23-23-16-49-658-edit_ru.zdevs.zarchiver.jpg
Screenshot_2024-08-23-23-11-18-898_info.flowersoft.theotown.theotown.jpg
night animation did not light up?

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: night animation did not light up

#2

Post by FVI »

I'm not sure you can make night animation like that. As far as I know, the night animation needs a stand-alone code (so it needs its own id etc.) to then be linked by an attribute to the building's

It should look more or less ...Not exactly - it was not tested like this:

Code: Select all    Reset

[ { "id": "$nightanimationtest", "type": "animation", "light": true, "light switching": true, "frames": [ { "bmp": "Geceresmi.png", "count": 1 } ], "rotation aware": false}, { "type": "commercial", "id": "$Çamlıcatower", "author": "Evanzer", "frames": [ {  "bmp": "Çamlıcatower.png"  }  ], "width": 2, "height": 2, "animation": [{"id": "$nightanimationtest", "x":0,"y":-25}] } ]
JSON checker
Check
If you look closely you see there is not one but two codes - The building's and the animation's, and at the bottom of the building's, there is the attribute "animation" (really important for the animation to work as it is a "link" between the two). Don't however try to split them in two .json files as they won't recognize each others.

Unfortunately I'm not certain that was your problem, I suppose this is what makes your animation not work.

Hope this is useful! ;)

User avatar
Evanzer
Townsman
Posts: 98
Joined: 07 Aug 2024, 02:09

Plugin Creator

Platform

Re: night animation did not light up

#3

Post by Evanzer »

FVI wrote:
23 Aug 2024, 22:45
I'm not sure you can make night animation like that. As far as I know, the night animation needs a stand-alone code (so it needs its own id etc.) to then be linked by an attribute to the building's

It should look more or less ...Not exactly - it was not tested like this:

Code: Select all    Reset

[ { "id": "$nightanimationtest", "type": "animation", "light": true, "light switching": true, "frames": [ { "bmp": "Geceresmi.png", "count": 1 } ], "rotation aware": false}, { "type": "commercial", "id": "$Çamlıcatower", "author": "Evanzer", "frames": [ {  "bmp": "Çamlıcatower.png"  }  ], "width": 2, "height": 2, "animation": [{"id": "$nightanimationtest", "x":0,"y":-25}] } ]
JSON checker
Check
If you look closely you see there is not one but two codes - The building's and the animation's, and at the bottom of the building's, there is the attribute "animation" (really important for the animation to work as it is a "link" between the two). Don't however try to split them in two .json files as they won't recognize each others.

Unfortunately I'm not certain that was your problem, I suppose this is what makes your animation not work.

Hope this is useful! ;)
Thanks

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: night animation did not light up

#4

Post by FVI »

No worries!

User avatar
I_Support_Palestine
Townsman
Posts: 53
Joined: 09 Jun 2024, 11:53
Location: Johor
Plugins: Showcase Store

Platform

Re: night animation did not light up

#5

Post by I_Support_Palestine »

I need help
(Type not defined error)

Code: Select all    Reset

[ { "id": "$light", "type": "animation", "light": true, "light switching": true, "frames": [ { "bmp": "FVInight.png", "count": 4, "width": 132, "height": 41 } ], "rotation aware": true }, { "frames winter": [ { "bmp": "FVIsnow.png" } ], "count": 4, "width": 132, "height": 41 }, { "id": "$Small Hotel", "type": "residential", "text": "Hotel with lights", "habitats": 80, "author": "I_Support_Palestine", "width": 1, "height": 1, "level": 2, "frames": [ { "bmp": "FVI.png", "count": 4, "width": 132, "height": 41 } ], "animation": [ { "id": "$light", "x": 0, "y": -29 } ] } ]
JSON checker
Check

Post Reply Previous topicNext topic

Return to “Plug-In Discussion”