Night Animations

Find tutorials, documentation, and resources for creating and using TheoTown plugins.
User avatar
Kulche
Inhabitant of a Continent
Reactions:
Posts: 1194
Joined: 07 Jun 2017, 18:28
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Night Animations

Post by Kulche »

WARNING. This feature is not fully implemented. Mechanics and graphics subject to change. Proceed at your own risk.


I first recommend looking here; viewtopic.php?f=41&p=152003#p152003, and at animations there: viewtopic.php?f=41&t=7455. Best results with help of paint.net.

Information
image.png

Night light definitions are practically the same thing as animations. They are defined the same way as animations, but have a few additional attributes. These attributes are:

Code: Select all

"light":true/false
and

Code: Select all

"light switching":true/false
The first one makes sure the animation lights up and doesn't get darker at night. It should be always true if you are defining night definitions. False by default.
The second one makes the animation show up all the time (false) or only at night (true). If you are adding window lights to your building you should set this on true.

That's pretty much everything. If you want to append your night definitions to your buildings you should follow the default animation tutorial.
A list of in-game night definitions will follow later (probably), see lower.

Custom animations

Your buildings will probably use mostly in-game night definitions. However, you can add your custom ones that fit the game style if the shape you're looking for is unavailable. The default window light animation color is FFFBE5 and a gaussian blur of around 4 (paint.net value).


Animations made easy

Counting x and y coordinates for each window might be tiring and take a lot of time. The easiest and most user-friendly solution is to use ian's Animation Dev Tool. This plugin will allow you to create huge animaiton arrays quickly and effortlessly. No animation knowledge needed (at all)!

You can also use this tool to fetch ingame night definitions for manual animations. Good luck! :)


Edited to add/remove a few things.
You do not have the required permissions to view the files attached to this post.
get yoked!!
User avatar
MONTEMARINO
Inhabitant of a Conurbation
Reactions:
Posts: 504
Joined: 18 Nov 2017, 17:23
Plugins: Showcase Store
Version: Beta

Platform

Re: Night Animations

Post by MONTEMARINO »

Brilliant!
Just one question; could be one big frame with all the lights fitting the building instead of doing light by light?
User avatar
CommanderABab
AB
Reactions:
Posts: 11269
Joined: 07 Jun 2016, 19:12
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Night Animations

Post by CommanderABab »

Yes, but it doesn't look so great having the whole building lit.
my avatar:
User avatar
Kulche
Inhabitant of a Continent
Reactions:
Posts: 1194
Joined: 07 Jun 2017, 18:28
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Night Animations

Post by Kulche »

If I'm correct, this will probably use some more texture space.
get yoked!!
User avatar
MONTEMARINO
Inhabitant of a Conurbation
Reactions:
Posts: 504
Joined: 18 Nov 2017, 17:23
Plugins: Showcase Store
Version: Beta

Platform

Re: Night Animations

Post by MONTEMARINO »

Not the whole building but a pattern of lights distributed all over the building. Also it could be a pattern of 4/5 floors frame repeated with animation for some skyscrapers, in order to save texture space.

Is that possible?
User avatar
Kulche
Inhabitant of a Continent
Reactions:
Posts: 1194
Joined: 07 Jun 2017, 18:28
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Night Animations

Post by Kulche »

You just have to create a frame and define the animation. I think basic lights are still a better way.
get yoked!!
User avatar
Cephues
Villager
Reactions:
Posts: 17
Joined: 16 Jun 2019, 08:01
Plugins: Showcase Store

Plugin Creator

Platform

Re: Night Animations

Post by Cephues »

Is the glow mandatory?
Junk masę!
User avatar
CommanderABab
AB
Reactions:
Posts: 11269
Joined: 07 Jun 2016, 19:12
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Night Animations

Post by CommanderABab »

No
my avatar:
User avatar
Kulche
Inhabitant of a Continent
Reactions:
Posts: 1194
Joined: 07 Jun 2017, 18:28
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Night Animations

Post by Kulche »

Not mandatory but surely looks better.
get yoked!!
User avatar
Hadestia
Inhabitant of a Megalopolis
Reactions:
Posts: 722
Joined: 17 Jul 2017, 14:16
Location: Philippines
Plugins: Showcase Store

Plugin Creator

Platform

Re: Night Animations

Post by Hadestia »

Brilliant
 ! Message from: Hadestia
Visit my YouTube channel:
https://youtube.com/channel/UC5qG-r8y21036JZbGRClbdQ
User avatar
Hadestia
Inhabitant of a Megalopolis
Reactions:
Posts: 722
Joined: 17 Jul 2017, 14:16
Location: Philippines
Plugins: Showcase Store

Plugin Creator

Platform

Re: Night Animations

Post by Hadestia »

Btw wheres the texture of the light animation of those streetlights
 ! Message from: Hadestia
Visit my YouTube channel:
https://youtube.com/channel/UC5qG-r8y21036JZbGRClbdQ
User avatar
Kulche
Inhabitant of a Continent
Reactions:
Posts: 1194
Joined: 07 Jun 2017, 18:28
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Night Animations

Post by Kulche »

I thought they wouldn't be useful, but apparently they seem to be. I'll send the ID tomorrow.
get yoked!!
User avatar
RayXP
Inhabitant of a Infinity
Reactions:
Posts: 9213
Joined: 17 Nov 2018, 19:49
Location: Pearland, TX
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Night Animations

Post by RayXP »

I don't get it
🇺🇸
☆ HEAD ADMIN OF TTRP ☆
Romans 5:1 ✝️
Make America Great Again!!
📍 Pearland, TX 🇺🇸
User avatar
Kulche
Inhabitant of a Continent
Reactions:
Posts: 1194
Joined: 07 Jun 2017, 18:28
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Night Animations

Post by Kulche »

RayXP wrote: 21 Jan 2020, 03:43I don't get it
It's basically an animation definition with some extra steps. You might want to check anims tutorials before this.
get yoked!!
C
Cliff
Villager
Reactions:
Posts: 9
Joined: 30 Dec 2019, 19:23
Plugins: Showcase Store
Version: Beta

Platform

Re: Night Animations

Post by Cliff »

wait what? i dont get it
User avatar
Bearbear76
Inhabitant of a Multiverse
Reactions:
Posts: 5701
Joined: 10 Feb 2017, 12:53
Location: L2 cache
Plugins: Showcase Store

Plugin Creator

Platform

Re: Night Animations

Post by Bearbear76 »

Cliff wrote: 13 Feb 2020, 11:09 wait what? i dont get it
You don't get what?
Just my opinion
retired
User avatar
Kulche
Inhabitant of a Continent
Reactions:
Posts: 1194
Joined: 07 Jun 2017, 18:28
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Night Animations

Post by Kulche »

Cliff wrote: 13 Feb 2020, 11:09 wait what? i dont get it
Night frames are basically simple animations. If you don't get it, I recommend studying the animation tutorial.
get yoked!!
User avatar
Lakan Haraya
Metropolitan
Reactions:
Posts: 131
Joined: 28 Mar 2019, 07:34
Location: Philippines
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Night Animations

Post by Lakan Haraya »

Hi :') how can I add headlights in vehicles? Like the one in motorcycles and fire truck :)
"ᜀᜃᜓ ᜀᜅ᜔ ᜁᜌᜓᜅ᜔ ᜑᜇᜌ"
CEO of Haráya Motors

“TheoTown Philippines Council”
“Kapulungan Ng Mga Nagkakaisang Lungsod”
User avatar
Kulche
Inhabitant of a Continent
Reactions:
Posts: 1194
Joined: 07 Jun 2017, 18:28
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Night Animations

Post by Kulche »

Just like any other animation :)
Try looking in the content_car.json
get yoked!!
User avatar
Caliber
Metropolitan
Reactions:
Posts: 129
Joined: 24 Jan 2018, 01:48
Location: Somewhere in the Philippines
Plugins: Showcase Store
Version: Beta

Platform

Re: Night Animations

Post by Caliber »

Magnificent🤔
Creator of the Aouie
Im Filipino
My First Plugin Boundary
My Second Plugin Decarbonator Tower