Search found 17 matches: template

Searched query: +template

by Lobby
05 Oct 2023, 14:22
Forum: Tutorials and Documentation
Topic: [1.11.23] Biomes
Replies: 5
Views: 6386

[1.11.23] Biomes

... ("blending": false). Here's the code: [ { "id": "$ground_candy00", "type": "ground", "template": "$template_ground", "blending": false, "frames": {"bmp": "ground.png", "handle ...
by Lobby
22 Sep 2022, 19:06
Forum: Tutorials and Documentation
Topic: [1.10.50] Custom Shaders
Replies: 7
Views: 4051

1. General Overview

... selecting it the game should look and run like before. After all, we just re-defined the default shader. Here you'll find the shader to use as a template: sample_shader.zip Due to the complexity of the topic I will write follow-up tutorials about shaders as I find time to. For now I am happy ...
by Lobby
27 Aug 2020, 20:53
Forum: Tutorials and Documentation
Topic: Ground/terrain/asphalt
Replies: 1
Views: 3001

Ground/terrain/asphalt

... otherwise the game tries to use the regular frames for slope drawing. texture.png Instead of edge frames and edge border frames you can use "template":"$template_ground" to use the game's default ones. You can provide winter frames by adding " winter" suffix to the ...
by Lobby
07 Jul 2020, 08:15
Forum: Tutorials and Documentation
Topic: Cars
Replies: 150
Views: 128961

Re: Cars

No, there's not. You'd have to write the template yourself if you need one. See content_car.json in the json resource topic for the needed attributes.
by Lobby
26 Jun 2019, 14:58
Forum: Tips and Tricks
Topic: Generating a city or region from a height map image
Replies: 31
Views: 76833

Generating a city or region from a height map image

... special format that is used by some height map creators; you may have to save them with an image program to make them compatible with the game. A template to generate a completely flat map: image.png
by Lobby
02 Sep 2018, 19:37
Forum: Fun attribute
Topic: Animation control
Replies: 9
Views: 17529

Animation control

... [ { "id": "$anim_test_control00", "type": "terrain", "width":1, "height":1, "template":"$template_ground", "frames":[{"x":416,"y":96,"w":32,"h":16}], "animation":[ ...
by Lobby
23 Aug 2018, 15:16
Forum: Plug-In Discussion
Topic: Is there any way to shorten the repeating 'fun' codes?
Replies: 4
Views: 1492

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
04 Mar 2018, 13:25
Forum: Other
Topic: No smileys
Replies: 5
Views: 5449

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", ...
by Lobby
17 Feb 2018, 21:06
Forum: Tutorials and Documentation
Topic: Templates
Replies: 11
Views: 7727

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
17 Feb 2018, 20:21
Forum: Tutorials and Documentation
Topic: Templates
Replies: 11
Views: 7727

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 ...
by Lobby
17 Feb 2018, 02:31
Forum: Tutorials and Documentation
Topic: Templates
Replies: 11
Views: 7727

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", ...
by Lobby
26 Jan 2018, 01:51
Forum: Tutorials and Documentation
Topic: Cars
Replies: 150
Views: 128961

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
15 Dec 2017, 22:19
Forum: Plug-In Discussion
Topic: RGB of Grass/Snow
Replies: 3
Views: 1711

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 1697 times
by Lobby
31 Jul 2017, 14:50
Forum: Plug-In Discussion
Topic: Building size
Replies: 20
Views: 5518

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
14 Jun 2017, 16:16
Forum: Suggestions
Topic: Clone tool?
Replies: 9
Views: 3212

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
04 Jun 2017, 22:01
Forum: Tutorials and Documentation
Topic: Roads
Replies: 123
Views: 86663

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 ...
by Lobby
23 Feb 2017, 00:20
Forum: Tutorials and Documentation
Topic: Advanced tags for building plugins
Replies: 216
Views: 180836

Advanced tags for building plugins

... depot destroyed decoration buoy railway station waste disposal body disposal military building category notification ground terrain data script template (optional) Title for the building. Should be English if distributed. Default is null . (optional) Description for the building. Should be English ...

Go to advanced search