Advanced tags for building plugins

Learn here how to create and use plugins.

Moderator: Plugin Moderators

User avatar
JustAnyone
Junior Developer
Reactions:
Posts: 2680
Joined: Sun Jul 23, 2017 12:45
Location: No idea either
Plugins: Show
Phone model: Nokia 3310

Plugin Creator

Platform

Re: Advanced tags for building plugins

#121

Post by JustAnyone » Sun Feb 10, 2019 18:51

Lua is easy like 5th grade math.

User avatar
Brody Craft
Inhabitant of a Infinity
Reactions:
Posts: 8035
Joined: Tue Jan 24, 2017 11:15
Location: SE Asia
Plugins: Show
Version: Beta
Phone model: Samsung Galaxy Tab 3

Platform

Re: Advanced tags for building plugins

#122

Post by Brody Craft » Mon Feb 11, 2019 0:32

JustAnyone wrote:
Sun Feb 10, 2019 18:51
Lua is easy like 5th grade math.
Well, you already mastered lua, sooo....
When you get to be called a Board Index because you are too good.>:3

User avatar
FranchuFranchu
Inhabitant of a Country
Reactions:
Posts: 792
Joined: Sun May 28, 2017 0:07
Location: On an xkcd binge
Plugins: Show
Version: Beta

Platform

Plugin Creator

Re: Advanced tags for building plugins

#123

Post by FranchuFranchu » Fri Feb 15, 2019 21:44

Lua is 5th grade math compared to C, Assembly and other low level languages
Did you know you can't blink while smiling :) ?

Imran M
Inhabitant of a Conurbation
Reactions:
Posts: 525
Joined: Wed Oct 24, 2018 13:41
Plugins: Show
Phone model: Huawei p8 lite

Platform

Plugin Creator

Re: Advanced tags for building plugins

#124

Post by Imran M » Fri Feb 15, 2019 23:56

FranchuFranchu wrote:
Fri Feb 15, 2019 21:44
Lua is 5th grade math compared to C, Assembly and other low level languages
I think it's because I haven't had enough time to experiment with lua, since I was busy with school and term tests. I'd like to dedicate more time to lua over the holiday right now. BUT, Fortnite is giving season 8 battle pass as a reward to people who complete 13 challenges, and I really want to have a skin for once...

(That was a long post that has little relevance what so ever)
https://m.youtube.com/watch?v=AqpYHdv3S00 gives 404 error.

User avatar
Akira Maruni
Townsman
Reactions:
Posts: 71
Joined: Wed Sep 06, 2017 13:51
Location: Indonesia
Plugins: Show
Version: Beta
Phone model: Andromax B SE
Contact:

Platform

Re: Advanced tags for building plugins

#125

Post by Akira Maruni » Tue Apr 16, 2019 16:04

I have an inspiration to make a zone that a bit similar with "Primitive Zone" plugin, but I try to make it with modern building. The purpose is to make the game looks more real with various RCI building in a zone rather than to build the same type building in a zone.

So, rather than I create the new buildings, I choose to create a code spawn some buildings from the game itself. Is it legal if I use in-game building ? What code should I use ?
Indonesia
JKT48 and 48Family Fans
Harvester Harvest Moon
Pokemon Trainer
Senior High School 12th Grade - Math and Science Program - Student

User avatar
CommanderABab
AB
Reactions:
Posts: 7885
Joined: Tue Jun 07, 2016 21:12
Plugins: Show
Version: Beta

Platform

Plugin Creator

Re: Advanced tags for building plugins

#126

Post by CommanderABab » Tue Apr 16, 2019 17:31

Can be done, but it's complicated and the code is long.
770!770Currently using alpha 770. 770 What's new? :)
Need plugins dialog!!
:)

Telegram - t.me/
🆎️🆎️🆎️🆎️Commander🆎️🆎️

User avatar
CommanderABab
AB
Reactions:
Posts: 7885
Joined: Tue Jun 07, 2016 21:12
Plugins: Show
Version: Beta

Platform

Plugin Creator

Re: Advanced tags for building plugins

#127

Post by CommanderABab » Tue Apr 16, 2019 17:32

Akira Maruni wrote:
Tue Apr 16, 2019 16:04
I have an inspiration to make a zone that a bit similar with "Primitive Zone" plugin, but I try to make it with modern building. The purpose is to make the game looks more real with various RCI building in a zone rather than to build the same type building in a zone.

So, rather than I create the new buildings, I choose to create a code spawn some buildings from the game itself. Is it legal if I use in-game building ? What code should I use ?
CommanderABab wrote:
Tue Apr 16, 2019 17:31
Can be done, but it's complicated and the code is long.
:)

First step: collect the ids and sizes of the in-game buildings you wish built in your zone. Remember it's not a good idea to mix polluting industries with residential buildings. :)
770!770Currently using alpha 770. 770 What's new? :)
Need plugins dialog!!
:)

Telegram - t.me/
🆎️🆎️🆎️🆎️Commander🆎️🆎️

User avatar
Akira Maruni
Townsman
Reactions:
Posts: 71
Joined: Wed Sep 06, 2017 13:51
Location: Indonesia
Plugins: Show
Version: Beta
Phone model: Andromax B SE
Contact:

Platform

Re: Advanced tags for building plugins

#128

Post by Akira Maruni » Wed Apr 17, 2019 4:40

How to spawn the building ? ;)
Indonesia
JKT48 and 48Family Fans
Harvester Harvest Moon
Pokemon Trainer
Senior High School 12th Grade - Math and Science Program - Student

User avatar
JustAnyone
Junior Developer
Reactions:
Posts: 2680
Joined: Sun Jul 23, 2017 12:45
Location: No idea either
Plugins: Show
Phone model: Nokia 3310

Plugin Creator

Platform

Re: Advanced tags for building plugins

#129

Post by JustAnyone » Wed Apr 17, 2019 20:48

Lobby wrote:
Wed May 31, 2017 0:37
Since version 296 you may let buildings (e.g. decorations) automatically spawn in map creation. To do so, we added an object called "spawn" which contains probability p, main spawn height height and max deviation from it radius.

A small sample plugin that spawns grass in the ocean:

Code: Select all

[
  {
    "id":"$myspawntest00",
    "type":"decoration",
    "width":1,
    "height":1,
    "frames":[{"x":0,"y":0,"w":32,"h":16}],
    "needs water":false,
    "needs land":false,
    "draw ground":true,
    "spawn":
    {
      "p":0.01,
      "height":-600,
      "radius":600
    }
  }
]
To give you some intuition about what height means I measured some height values in this map:
Image

User avatar
CommanderABab
AB
Reactions:
Posts: 7885
Joined: Tue Jun 07, 2016 21:12
Plugins: Show
Version: Beta

Platform

Plugin Creator

Re: Advanced tags for building plugins

#130

Post by CommanderABab » Wed Apr 17, 2019 23:39

JustAnyone wrote:
Wed Apr 17, 2019 20:48
*quoting Lobby*
Thanķs, but that isn't what he is talking about! :)
770!770Currently using alpha 770. 770 What's new? :)
Need plugins dialog!!
:)

Telegram - t.me/
🆎️🆎️🆎️🆎️Commander🆎️🆎️

Imran M
Inhabitant of a Conurbation
Reactions:
Posts: 525
Joined: Wed Oct 24, 2018 13:41
Plugins: Show
Phone model: Huawei p8 lite

Platform

Plugin Creator

Re: Advanced tags for building plugins

#131

Post by Imran M » Thu Apr 18, 2019 13:38

CommanderABab wrote:
Wed Apr 17, 2019 23:39
JustAnyone wrote:
Wed Apr 17, 2019 20:48
*quoting Lobby*
Thanķs, but that isn't what he is talking about! :)
You used a different k
https://m.youtube.com/watch?v=AqpYHdv3S00 gives 404 error.

User avatar
CommanderABab
AB
Reactions:
Posts: 7885
Joined: Tue Jun 07, 2016 21:12
Plugins: Show
Version: Beta

Platform

Plugin Creator

Re: Advanced tags for building plugins

#132

Post by CommanderABab » Thu Apr 18, 2019 14:28

Ķoalaguy
770!770Currently using alpha 770. 770 What's new? :)
Need plugins dialog!!
:)

Telegram - t.me/
🆎️🆎️🆎️🆎️Commander🆎️🆎️

Imran M
Inhabitant of a Conurbation
Reactions:
Posts: 525
Joined: Wed Oct 24, 2018 13:41
Plugins: Show
Phone model: Huawei p8 lite

Platform

Plugin Creator

Re: Advanced tags for building plugins

#133

Post by Imran M » Thu Apr 18, 2019 22:09

CommanderABab wrote:
Thu Apr 18, 2019 14:28
Ķoalaguy
Stahp it.
https://m.youtube.com/watch?v=AqpYHdv3S00 gives 404 error.

User avatar
KINGTUT10101
1,000,000 inhabitants
Reactions:
Posts: 1938
Joined: Thu Jul 07, 2016 22:50
Location: 'Merica
Plugins: Show
Version: Beta
Phone model: Moto x4

Platform

Plugin Creator

Re: Advanced tags for building plugins

#134

Post by KINGTUT10101 » Sat Sep 28, 2019 19:35

What does chargeable do?

User avatar
Lobby
Developer
Reactions:
Posts: 3375
Joined: Sun Oct 26, 2008 12:34
Plugins: Show
Version: Beta
Phone model: S7 edge

Platform

Re: Advanced tags for building plugins

#135

Post by Lobby » Sat Sep 28, 2019 22:00

It's an attribute for cars; If you set it to false (e.g. for fire engines) they won't be charged by tollbooths.
...Have a nice stay

Online
User avatar
Lakan Haraya
Townsman
Reactions:
Posts: 43
Joined: Thu Mar 28, 2019 9:34
Location: Manila, Philippines
Plugins: Show
Version: Beta

Plugin Creator

Platform

Re: Advanced tags for building plugins

#136

Post by Lakan Haraya » Wed Oct 02, 2019 6:25

FranchuFranchu wrote:
Fri Feb 15, 2019 21:44
Lua is 5th grade math compared to C, Assembly and other low level languages
Well, please teach us! PLEASE! :D
Ako ang iyong Haráya
I am your Imagination

Founder of the first rebuilder-manufacturer of passenger-type jeepneys in TheoTown history.
____________________________
Taumbayan

User avatar
Kulche
Inhabitant of a Country
Reactions:
Posts: 970
Joined: Wed Jun 07, 2017 20:28
Location: 2hot2tell
Plugins: Show
Version: Beta

Platform

Plugin Creator

Re: Advanced tags for building plugins

#137

Post by Kulche » Wed Oct 02, 2019 15:31

You have so much books that you don't need a teacher.
I'm not lazy, I'm motivated to do nothing!
...blame lobby for that

User avatar
Lobby
Developer
Reactions:
Posts: 3375
Joined: Sun Oct 26, 2008 12:34
Plugins: Show
Version: Beta
Phone model: S7 edge

Platform

Re: Advanced tags for building plugins

#138

Post by Lobby » Thu Oct 03, 2019 0:59

Or you could use YouTube :)
...Have a nice stay

User avatar
A dutch Guy
Inhabitant of a Megacity
Reactions:
Posts: 157
Joined: Tue Dec 26, 2017 14:41
Location: Enschede, The Netherlands
Plugins: Show

Platform

Plugin Creator

Re: Advanced tags for building plugins

#139

Post by A dutch Guy » Fri Oct 11, 2019 19:32

@Lobby I've ran into a problem while making a body disposal plugin. I get an IllegalStateExeption for the "type":"body disposal" when booting up the game. Does this mean that its impossible to create plugins or is there a way to solve it?

code:

Code: Select all

[
  {
    "id":"$Modern_Crematorium_by_A_Dutch_Guy",
    "type":"body disposal",
	"title":"Large modern crematorium",
	"text":"i will add this later",
    "author":"A Dutch Guy",
    "width":5,
    "height":5,
    "frames":[{"bmp":"Modern_Crematorium.png"}],
	"influence body disposal":200,
	"price":50000,
	"monthly price":50


		   
  }
]

User avatar
Kulche
Inhabitant of a Country
Reactions:
Posts: 970
Joined: Wed Jun 07, 2017 20:28
Location: 2hot2tell
Plugins: Show
Version: Beta

Platform

Plugin Creator

Re: Advanced tags for building plugins

#140

Post by Kulche » Fri Oct 11, 2019 19:55

I think it may need a privileged code.
I'm not lazy, I'm motivated to do nothing!
...blame lobby for that

Post Reply Previous topicNext topic

Return to “Tutorials and Documentation”

Who is online

Users browsing this forum: No registered users and 1 guest