Page 1 of 1

night animation did not light up

Posted: 23 Aug 2024, 22:17
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?

Re: night animation did not light up

Posted: 23 Aug 2024, 22:45
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! ;)

Re: night animation did not light up

Posted: 24 Aug 2024, 00:33
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

Re: night animation did not light up

Posted: 24 Aug 2024, 09:30
by FVI
No worries!

Re: night animation did not light up

Posted: 30 Sep 2024, 14:00
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