Light effects stopped working

Plugin specific problems will be solved here.

Moderator: Plugin Moderators

User avatar
zacky5000
Small-town resident
Reactions:
Posts: 32
Joined: 02 Feb 2022, 06:14
Location: Philippines
Plugins: Showcase Store

Plugin Creator

Platform

Light effects stopped working

#1

Post by zacky5000 »

Good day. I have a question. Why is it that the light effects of the plugin I created suddenly stopped functioning? I mean, the plugin itself is functioning properly, but I'm confused because the light effect I coded into its JSON file doesn't work anymore. The codes are there, but the lights don't appear in the structure anymore once I build it unlike before when I finalized the code for its lights so I could submit it and get my plugin published.

I'd like to thank the TheoTown team, by the way, for approving my plugin despite having a bit of flaw in its appearance. I'll work on correcting its night animation once I learn about what mistakes I've made in the codes. 😅

Name of the plugin I created is Barangay Hall. The one with the "HQ" on its roof. :3

User avatar
anhkatori2
Metropolitan
Reactions:
Posts: 129
Joined: 24 May 2021, 05:35
Location: Vietnam
Plugins: Showcase Store

Plugin Creator

Platform

Re: Light effects stopped working

#2

Post by anhkatori2 »

Maybe the building is lack of energy ?

User avatar
zacky5000
Small-town resident
Reactions:
Posts: 32
Joined: 02 Feb 2022, 06:14
Location: Philippines
Plugins: Showcase Store

Plugin Creator

Platform

Re: Light effects stopped working

#3

Post by zacky5000 »

Uh... I don't think so. The neighboring buildings are lit up during night time except the plugin building I made. I also tried removing the plugin manually then downloading it directly from the game, hoping that it will run with lights again. Unfortunately, it didn't.

I have sufficient energy for the buildings in my city currently. Even have an excess at that. I don't understand why it went that way...

User avatar
TheFennekin
Neighborhood fox
Reactions:
Posts: 2728
Joined: 24 Aug 2017, 11:17
Location: Wandering around
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Light effects stopped working

#4

Post by TheFennekin »

Would you mind sharing the code to us?

User avatar
zacky5000
Small-town resident
Reactions:
Posts: 32
Joined: 02 Feb 2022, 06:14
Location: Philippines
Plugins: Showcase Store

Plugin Creator

Platform

Re: Light effects stopped working

#5

Post by zacky5000 »

Code: Select all    Reset

[{ "id": "$BarangayHall00", "type": "public", "author": "Plugin creator website 3.0 & zacky5000", "width": 2, "height": 2, "frames": [{ "bmp": "Barangay Hall.png" }], "title": "Barangay Hall", "text": "The smallest government building in the Philippines. Provides management services, including peacekeeping and fire disaster response, for small towns.", "price": 2000, "monthly price": 150, "build time": 30, "power": -4, "water": -4, "influence management": 150, "influence police": 150, "influence fire department": 150, "burnable": true, "destroyable": true, "needs road": true, "animation":[{"id": "1x1l", "x":16, "y":1},{"id": "1x1l", "x":20, "y":-1},{"id": "1x1l", "x":24, "y":-3},{"id": "1x1l", "x":21, "y":3},{"id": "1x1l", "x":25, "y":1},{"id": "1x1l", "x":29, "y":-1},{"id": "stair_ltr3", "x":19, "y":-12}, {"id": "stair_ltr3", "x":23, "y":-10},{"id": "stair_ltr3", "x":35, "y":-4},{"id": "stair_ltr3", "x":39, "y":-2},{"id": "2x2l", "x":19, "y":-9},{"id": "2x2l", "x":23, "y":-7},{"id": "2x2l", "x":35, "y":-1},{"id": "1x2l", "x":30, "y":-2},{"id": "1x1l", "x":39, "y":1}, {"id": "1x1l", "x":40, "y":1},{"id": "stair_rtl3", "x":48, "y":-3},{"id": "stair_rtl3", "x":52, "y":-5}, {"id": "stair_rtl3", "x":56, "y":-7},{"id": "2x2l", "x":48, "y":0}, {"id": "2x2l", "x":52, "y":-2},{"id": "2x2l", "x":56, "y":-4},{"id": "1x4l", "x":26, "y":-22}, {"id": "1x4l", "x":29, "y":-21},{"id": "1x3l", "x":26, "y":-18}, {"id": "1x3l", "x":29, "y":-17},{"id": "1x1l", "x":27, "y":-19}, {"id": "1x1l", "x":28, "y":-18},{"id": "1x3l", "x":31, "y":-18}, {"id": "1x3l", "x":34, "y":-18},{"id": "1x2l", "x":31, "y":-15}, {"id": "1x2l", "x":34, "y":-15},{"id": "1x1l", "x":32, "y":-19}, {"id": "1x1l", "x":33, "y":-19}, {"id": "1x1l", "x":33, "y":-13}, {"id": "1x1l", "x":32, "y":-13},{"id": "1x1l", "x":32, "y":-15}, {"id": "1x1l", "x":33, "y":-14}, {"id": "1x1l", "x":34, "y":-13}, {"id": "1x1l", "x":35, "y":-12}] }]
JSON checker
Check
TheFennekin wrote:
06 Apr 2022, 02:33
Would you mind sharing the code to us?
There's my code. It's a bit messy, but trust me, it worked before I submitted it for publishing. Even tested it on my own cities during test runs. The only difference was the lights are not working anymore. Not sure why... 😓

User avatar
zacky5000
Small-town resident
Reactions:
Posts: 32
Joined: 02 Feb 2022, 06:14
Location: Philippines
Plugins: Showcase Store

Plugin Creator

Platform

Re: Light effects stopped working

#6

Post by zacky5000 »

Update: Lights are back up now. Weird... It worked all of a sudden. Last night, when my game time was set to "real-time" and I didn't touch anything, the lights in my plugin weren't there even if it was night time. I toggled the time mode from "real-time" to "night" just now and it worked once again. As in the lights in my plugin went back! How come it appeared as if there was a time-based interval in my plugin's light code even if I didn't include one? @-@

User avatar
TheFennekin
Neighborhood fox
Reactions:
Posts: 2728
Joined: 24 Aug 2017, 11:17
Location: Wandering around
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Light effects stopped working

#7

Post by TheFennekin »

Hmmm... probably in-game issue or so. I also try putting

Code: Select all    Reset

"light":true, "light switching":true
JSON checker
Check
on the building code itself on my plugins. Idk if that will work tho

User avatar
zacky5000
Small-town resident
Reactions:
Posts: 32
Joined: 02 Feb 2022, 06:14
Location: Philippines
Plugins: Showcase Store

Plugin Creator

Platform

Re: Light effects stopped working

#8

Post by zacky5000 »

TheFennekin wrote:
06 Apr 2022, 07:22
Hmmm... probably in-game issue or so. I also try putting

Code: Select all    Reset

"light":true, "light switching":true
JSON checker
Check
on the building code itself on my plugins. Idk if that will work tho
Hmm... I have doubts with that code. I tried using that before, but I haven't seen it do anything for the plugin I made that's why I relied on the Animation Dev Tool for the lights instead.

It maybe is an in-game issue, I guess. Hmm... I hope it doesn't occur again anytime in the future... If it does, I'll have to rework my codes again. 😅

User avatar
TheFennekin
Neighborhood fox
Reactions:
Posts: 2728
Joined: 24 Aug 2017, 11:17
Location: Wandering around
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Light effects stopped working

#9

Post by TheFennekin »

I don't see any problem with your code though... 70% sure that it's an ingame problem

User avatar
zacky5000
Small-town resident
Reactions:
Posts: 32
Joined: 02 Feb 2022, 06:14
Location: Philippines
Plugins: Showcase Store

Plugin Creator

Platform

Re: Light effects stopped working

#10

Post by zacky5000 »

Thanks for the responses, guys. I'll be working on a new project now. I hope my recent issue doesn't persist in the future. Thanks again! ✌️😄

Post Reply Previous topicNext topic

Return to “Problems”