Search found 12 matches: template

Searched query: +template

by Lobby
Sun Sep 02, 2018 19:37
Forum: Fun attribute
Topic: Animation control
Replies: 4
Views: 654

Animation control

... using fun. It's possible in recent versions and looks like that :json [ { "id": "$anim_test_control00", "type": "terrain", "width":1, "height":1, "template":"$template_ground", "frames":[{"x":416,"y":96,"w":32,"h":16}], "animation":[ {"id":"$animationfan00","x":-16,"y":-48} // Animation slot 0 ...
by Lobby
Thu Aug 23, 2018 15:16
Forum: Plug-In Discussion
Topic: Is there any way to shorten the repeating 'fun' codes?
Replies: 4
Views: 287

Re: Is there any way to shorten the repeating 'fun' codes?

... Similar shorthand syntax is available for set actions. If you need the a whole fun code multiple times you can use a template for it.
by Lobby
Sun Mar 04, 2018 13:25
Forum: Other
Topic: No smileys
Replies: 5
Views: 1606

No smileys

... use this plugin that switches back to the old, simple icon :plugin no_smileys.zip This plugin doesn't need extra texture space. You can use it as template for your own rating indicator :json [ { "id":"$anim_ui_happiness00", "override":true, "type":"animation", "frames":[{"x":416,"y":839,"w":26,"h":26,"target ...
by Lobby
Sat Feb 17, 2018 21:06
Forum: Tutorials and Documentation
Topic: Templates
Replies: 4
Views: 1269

Re: Templates

Sure, templates don't really know their content, it will just be copy'n'pasted into plugins that reference to the template.
by Lobby
Sat Feb 17, 2018 20:21
Forum: Tutorials and Documentation
Topic: Templates
Replies: 4
Views: 1269

Re: Templates

I added it to make bus code easier to read. Here's how the code for a single bus would look like without templates :json { "id":"$bus00", "type":"car", "frames":[{"x":0,"y":0,"w":10,"h":8,"count":4,"offset x":1024,"offset y":3328}], "overlay frames":[{"x":0,"y":0,"w":10,"h":8,"count":4,"offset ...
by Lobby
Sat Feb 17, 2018 2:31
Forum: Tutorials and Documentation
Topic: Templates
Replies: 4
Views: 1269

Templates

... issue in writing plugins is code duplication as you use the same code over and over again to define similar things. A solution to this problem are templates. Let's say your code (simplified) looks something like this :json [ { "id":"$myid00", "type":"something", "author":"anyone", "A":1, "B":2, ...
by Lobby
Fri Jan 26, 2018 1:51
Forum: Tutorials and Documentation
Topic: Cars
Replies: 66
Views: 10528

Re: Cars

1. The new bus system uses new features to generate cars in different colors. I'll explain that in the future.

2. You have to add this into your bus definition:

Code: Select all

"template":"$template_bus00"
The bus will then be added to the variants of busses.
by Lobby
Fri Dec 15, 2017 22:19
Forum: Plug-In Discussion
Topic: RGB of Grass/Snow
Replies: 3
Views: 505

Re: RGB of Grass/Snow

There's not a specific, single color for ground. You may use these graphics as template :img
ground-colors.png
ground-colors.png (1.91 KiB) Viewed 491 times
by Lobby
Tue Nov 14, 2017 22:46
Forum: Found to be unavailable
Topic: Forest Industry | 4th January update
Replies: 66
Views: 13339

Re: Forest Industry

[mention]KoalaGuy[/mention]
Add this:

Code: Select all

"influence pollution":0,
"influence noise":0,
By default, the game uses template values here for convenience. I don't know why it crashes for farms.
by Lobby
Mon Jul 31, 2017 14:50
Forum: Plug-In Discussion
Topic: Building size
Replies: 20
Views: 1354

Re: Building size

8x8 is the maximum officially supported building size... I won't solve issues resulting from bigger sizes

You can construct a template yourself by putting smaller templates together.
by Lobby
Wed Jun 14, 2017 16:16
Forum: Suggestions
Topic: Clone tool?
Replies: 9
Views: 494

How exactly does the clone tool work there?

You may create a plugin that provides some sort of empty template buildings that help you to plan your city layout. I remember that CommanderABab created a plugin like that.
by Lobby
Sun Jun 04, 2017 22:01
Forum: Tutorials and Documentation
Topic: Roads
Replies: 70
Views: 9140

Roads

... The orientation follows a specific order. For your own road it's sufficient to use this graphic as template. You have to provide 16 frames here. As we want to have a bridge we also have to provide graphics for it: bridge.png image.png The ordering ...

Go to advanced search