Night Animations

Learn here how to create and use plugins.

Moderators: Scenario Moderators, Plugin Moderators

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

Plugin Creator

Platform

Re: Night Animations

#81

Post by TheFennekin »

OMDGDeveloper wrote:
14 Apr 2022, 22:59
Hey, i want to know how to make a pack of my plugin. Yes you know, i'm on mobile. But, if it haves an link from saying how to make an pack. Could someone send here? Please? Thanks.
Just put all drafts of the json you need into one json

Code: Select all    Reset

[ { First building draft }, { Second building draft }.... ]
JSON checker
Check

User avatar
FVI
Inhabitant of a Galaxy
Posts: 2364
Joined: 22 Feb 2022, 18:00
Location: The largest island in Europe
Plugins: Showcase Store
Version: Beta

Platform

Re: Night Animations

#82

Post by FVI »

I saw the forum and some videos but I don't understand how to put night animations

User avatar
Lukasbeenhere
Inhabitant of a Megacity
Posts: 228
Joined: 10 Jul 2021, 11:30
Location: Depok, Indonesia
Plugins: Showcase Store

Plugin Creator

Platform

Re: Night Animations

#83

Post by Lukasbeenhere »

How to add a different night frame to modular buildings?

User avatar
Naufhal
Inhabitant of a Supercluster
Posts: 3752
Joined: 07 Oct 2021, 06:04
Location: Indonesia
Plugins: Showcase Store

Plugin Creator

Platform

Re: Night Animations

#84

Post by Naufhal »

Lukasbeenhere wrote:
27 Jun 2022, 10:17
How to add a different night frame to modular buildings?
Just Make Your Own Night Animation. Or Use Night Animation Tool By Ian.

User avatar
Lukasbeenhere
Inhabitant of a Megacity
Posts: 228
Joined: 10 Jul 2021, 11:30
Location: Depok, Indonesia
Plugins: Showcase Store

Plugin Creator

Platform

Re: Night Animations

#85

Post by Lukasbeenhere »

Naufhal wrote:
27 Jun 2022, 10:23
Lukasbeenhere wrote:
27 Jun 2022, 10:17
How to add a different night frame to modular buildings?
Just Make Your Own Night Animation. Or Use Night Animation Tool By Ian.
No thats not what i meant also i already figured it out

User avatar
FVI
Inhabitant of a Galaxy
Posts: 2364
Joined: 22 Feb 2022, 18:00
Location: The largest island in Europe
Plugins: Showcase Store
Version: Beta

Platform

Re: Night Animations

#86

Post by FVI »

@Kulche ? I'm sorry to have to say but this tutorial is a bit approximate. I would like to create night animations myself but I am a beginner in creating plugins so I would need something like a step-by-step tutorial that explains how to do it. :mine

User avatar
KRGames
Settler
Posts: 3
Joined: 05 Dec 2022, 20:03

Re: Night Animations

#87

Post by KRGames »

And for this do you need a picture with the lighting of the building?

User avatar
FVI
Inhabitant of a Galaxy
Posts: 2364
Joined: 22 Feb 2022, 18:00
Location: The largest island in Europe
Plugins: Showcase Store
Version: Beta

Platform

Re: Night Animations

#88

Post by FVI »

KRGames wrote:
25 Jan 2023, 22:28
And for this do you need a picture with the lighting of the building?
Yes. You need the building's frame for the main code and just the lights, nothing else, for the night animation

User avatar
Adone201212
Settler
Posts: 2
Joined: 05 Aug 2022, 09:42

Re: Night Animations

#89

Post by Adone201212 »

I'm not sure what's wrong with my code:

Code: Select all

[
  {
     "id": "nightanimation",
     "type": "animation",
     "light": true,
     "light switching": true,
     "frames":[
        {
          "bmp": "123456789.png",
          "count": 1,
          "h": 1,
          "w": 1
        }
      ],
      "rotation aware":
    false),
},
 
   "id": "$adone201212.residential.2025-01-28-15:51",
    "title": "Hotel",
    "author": "Adone201212",
    "meta": {
      "pca": {
        "version": "4.4.1"
      }
    },
    "frames": [
      {
        "bmp": "1000012464.png"
      }
    ],
    "power": 50,
    "water": 60,
    "build time": 10,
    "width": 1,
    "height": 1,
    "level": 2,
    "people": 55,
    "type": "residential"
    "animation":[{"id":"nightanimation",
"x":0,"y":-25}]
  }
]

User avatar
FVI
Inhabitant of a Galaxy
Posts: 2364
Joined: 22 Feb 2022, 18:00
Location: The largest island in Europe
Plugins: Showcase Store
Version: Beta

Platform

Re: Night Animations

#90

Post by FVI »

Adone201212 wrote:
28 Jan 2025, 19:16
I'm not sure what's wrong with my code:

Code: Select all

[
  {
     "id": "nightanimation",
     "type": "animation",
     "light": true,
     "light switching": true,
     "frames":[
        {
          "bmp": "123456789.png",
          "count": 1,
          "h": 1,
          "w": 1
        }
      ],
      "rotation aware":
    false),
},
 
   "id": "$adone201212.residential.2025-01-28-15:51",
    "title": "Hotel",
    "author": "Adone201212",
    "meta": {
      "pca": {
        "version": "4.4.1"
      }
    },
    "frames": [
      {
        "bmp": "1000012464.png"
      }
    ],
    "power": 50,
    "water": 60,
    "build time": 10,
    "width": 1,
    "height": 1,
    "level": 2,
    "people": 55,
    "type": "residential"
    "animation":[{"id":"nightanimation",
"x":0,"y":-25}]
  }
]
If you try using the code in the game what type of error does it give?

User avatar
Adone201212
Settler
Posts: 2
Joined: 05 Aug 2022, 09:42

Re: Night Animations

#91

Post by Adone201212 »

FVI wrote:
29 Jan 2025, 18:56
Adone201212 wrote:
28 Jan 2025, 19:16
I'm not sure what's wrong with my code:

Code: Select all

[
  {
     "id": "nightanimation",
     "type": "animation",
     "light": true,
     "light switching": true,
     "frames":[
        {
          "bmp": "123456789.png",
          "count": 1,
          "h": 1,
          "w": 1
        }
      ],
      "rotation aware":
    false),
},
 
   "id": "$adone201212.residential.2025-01-28-15:51",
    "title": "Hotel",
    "author": "Adone201212",
    "meta": {
      "pca": {
        "version": "4.4.1"
      }
    },
    "frames": [
      {
        "bmp": "1000012464.png"
      }
    ],
    "power": 50,
    "water": 60,
    "build time": 10,
    "width": 1,
    "height": 1,
    "level": 2,
    "people": 55,
    "type": "residential"
    "animation":[{"id":"nightanimation",
"x":0,"y":-25}]
  }
]
If you try using the code in the game what type of error does it give?
It says: Expected literal value at line 8, char 7. Excerpt:
"frames":[
--ERROR->>> },

I deactivated the plugin so the error screen is gone but still I have the error.log file in my data app

Post Reply Previous topicNext topic

Return to “Tutorials and Documentation”