Page 1 of 1

Night lights not working.

Posted: 03 Feb 2024, 09:28
by DestinedGamer2
Im trying to add night lights to my plugin but its not working,
can anyone help me out please?


heres the code:

Code: Select all    Reset

[ { "id":"$Trhouse_wh_Light00", "type":"animation", "light":true, "light switching":true, "frames":[ {"bmp":"treeHouse_1Light.png", "count": 1, "h":32, "w":32} ], "rotation aware":false }, { "id": "$Trhouse_wood_house00", "type": "residential", "author": "DGYT", "width": 1, "height": 1, "frames": [ {"bmp": "treeHouse_1.png"} ], "title": "Oak Tree House", "text": "Tree House, Trees and Grass texture by Lobby...", "influence happiness":10, "influence pollution":-5, "influence noise":-5, "influence nature":10, "influence radioactive":-5, "needs road": true, "level": 1, "people": 2, "price": 1, "monthly price": 1, "bulldoze price": 1, "build time": 1, "draw ground": true, "category":"$cat_TreeHouse", "animation": [{"id":"$Trhouse_wh_Light00", "x":9, "y":-16}] }]
JSON checker
Check

Re: Night lights not working.

Posted: 27 Sep 2024, 11:45
by I_Support_Palestine
Try something like this
[
{
"id":"$light",
"type":"animation",
"light":true,
"light switching":true,
"frames":[
{
"bmp": "FVInight.png",
"count": 1
}
],
"rotation aware":
false},


{
"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"
 }
 ],
"animation": [{"id": "$light", "x":0,"y":-29}]
}
]

Re: Night lights not working.

Posted: 27 Sep 2024, 16:03
by BedroomFan
How can i put to TheoTown soruce code??? Also I using blue snack to avoid the disaster