Night Animations

Learn here how to create and use plugins.

Moderator: Plugin Moderators

User avatar
KINGTUT10101
1,000,000 inhabitants
Reactions:
Posts: 2017
Joined: Thu Jul 07, 2016 22:50
Location: 'Merica
Plugins: Show
Version: Beta
Contact:

Platform

Plugin Creator

Re: Night Animations

#21

Post by KINGTUT10101 »

Is there a way to add a probability that certain lights will be on/off?

User avatar
Imran M
Inhabitant of a Megalopolis
Reactions:
Posts: 607
Joined: Wed Oct 24, 2018 13:41
Plugins: Show

Platform

Plugin Creator

Re: Night Animations

#22

Post by Imran M »

KINGTUT10101 wrote:
Wed Jun 24, 2020 21:04
Is there a way to add a probability that certain lights will be on/off?
Probably fun, maybe check animation control, or random fun, as well as rnd. Those could be what you need.
I have no clue what's happening this year

User avatar
MONTEMARINO
Inhabitant of a Conurbation
Reactions:
Posts: 501
Joined: Sat Nov 18, 2017 19:23
Plugins: Show
Version: Beta

Platform

Re: Night Animations

#23

Post by MONTEMARINO »

KINGTUT10101 wrote:
Wed Jun 24, 2020 21:04
Is there a way to add a probability that certain lights will be on/off?
Yes. Ask @Carlão da massa, he added a random animation on his Allianz Parque Stadium. Lights shoud be the same... :bt

Carlão da massa
Villager
Reactions:
Posts: 13
Joined: Fri Jan 10, 2020 21:10
Plugins: Show

Re: Night Animations

#24

Post by Carlão da massa »

For the stadium I just put a date factor for the animation ("date": {"start day": 0, "days": 7, "days total": 30}) it is simply a periodic animation.

User avatar
KINGTUT10101
1,000,000 inhabitants
Reactions:
Posts: 2017
Joined: Thu Jul 07, 2016 22:50
Location: 'Merica
Plugins: Show
Version: Beta
Contact:

Platform

Plugin Creator

Re: Night Animations

#25

Post by KINGTUT10101 »

That's a bit disappointing. Thanks for the response though. I would implement that idea into my plug-in, but I don't want to redefine all of the light animations to do it tbh. Maybe a developer could add it in the future.

User avatar
TheFennekin
Inhabitant of a Solar System
Reactions:
Posts: 1950
Joined: Thu Aug 24, 2017 11:17
Location: house
Plugins: Show
Version: Beta

Platform

Plugin Creator

Re: Night Animations

#26

Post by TheFennekin »

Noob question, how do you add a custom night animation?
I'm fine

User avatar
Kulche
Pluche
Reactions:
Posts: 1015
Joined: Wed Jun 07, 2017 20:28
Plugins: Show
Version: Beta

Plugin Creator

Platform

Re: Night Animations

#27

Post by Kulche »

See custom animation tutorial :)
I'm not lazy, I'm motivated to do nothing!
...blame lobby for that

User avatar
KINGTUT10101
1,000,000 inhabitants
Reactions:
Posts: 2017
Joined: Thu Jul 07, 2016 22:50
Location: 'Merica
Plugins: Show
Version: Beta
Contact:

Platform

Plugin Creator

Re: Night Animations

#28

Post by KINGTUT10101 »

Is there a way we could easily change the color of these lights? I think having white or light blue versions available would be really nice.

User avatar
Kulche
Pluche
Reactions:
Posts: 1015
Joined: Wed Jun 07, 2017 20:28
Plugins: Show
Version: Beta

Plugin Creator

Platform

Re: Night Animations

#29

Post by Kulche »

I could recolor all the lights white and use "color" in animation def and add blue variants. There is no easy way of changing colors without adding new animations.
I'm not lazy, I'm motivated to do nothing!
...blame lobby for that

User avatar
Kulche
Pluche
Reactions:
Posts: 1015
Joined: Wed Jun 07, 2017 20:28
Plugins: Show
Version: Beta

Plugin Creator

Platform

Re: Night Animations

#30

Post by Kulche »

Since the latest versionIn a future version (that will be 1.8.90) a new attribute can be used. It is called

Code: Select all

"night light probability":0.9
It can be used in animation definition. With the code above, the light has a 90% probability of spawning. It can be used to create more diversity of lights on the same buildings.
 /\_/\
( o.o )
 > ^ <
I'm not lazy, I'm motivated to do nothing!
...blame lobby for that

User avatar
Lobby
Developer
Reactions:
Posts: 3496
Joined: Sun Oct 26, 2008 12:34
Plugins: Show
Version: Beta

Platform

Re: Night Animations

#31

Post by Lobby »

That upcoming version will also support color within animation spot definitions instead of only within the animation draft definitions.

Could look like that:
Party hard
Party hard
image.png (16.51 KiB) Viewed 58 times
You can either specify a color directly within a color object (like "color":{r:...}) or provide an id of a color that was defined before:

Code: Select all

[
  {
    "id": "$simpletestcolor00",
    "type": "color",
    "r": 0,
    "g": 255,
    "b": 0
  },
  {
    "id":"$comhotel00",
    "type":"commercial",
    "animation": [
      {"id": "$anim_comhotel00_elevator00"},
      {"id":"4x2_side", "x":9, "y":-47,"color": {"r": 255,"g": 0,"b": 0}},
      {"id":"4x2_side", "x":9, "y":-57,"color": "$simpletestcolor00"},
      ...
    ],
    ...
  }
]
 _._     _,-'""`-._
(,-.`._,'(       |\`-/|
    `-.-' \ )-`( , o o)
          `-    \`_`"'-
=^._.^= ∫

Post Reply Previous topicNext topic

Return to “Tutorials and Documentation”