night animation did not light up
Moderators: Scenario Moderators, Plugin Moderators
night animation did not light up
Help us
night animation did not light up?- 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
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 ... like this:
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!
It should look more or less ... 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
Unfortunately I'm not certain that was your problem, I suppose this is what makes your animation not work.
Hope this is useful!

Re: night animation did not light up
ThanksFVI wrote: ↑23 Aug 2024, 22:45I'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 ... like this:
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.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
Unfortunately I'm not certain that was your problem, I suppose this is what makes your animation not work.
Hope this is useful!![]()
- 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
I need help
(Type not defined error)
(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