Functional Tornado Siren [WIP]

Plug-in related stuff can be discussed here.

Moderator: Plugin Moderators

User avatar
Mg3094066
Inhabitant of a Supercluster
Reactions:
Posts: 3223
Joined: 28 May 2017, 01:50
Location: Venezuelan Republic of Mexico
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Functional Tornado Siren [WIP]

#26

Post by Mg3094066 »

New update

Code: Select all

[{
		"draw ground": true,
		"frames":[{
			"bmp": "TornadoSiren2.png"
		}],
		"height": 1,
		"id": "$TornadoSiren00",
		"influence management": 100,
		"type": "public",
		"width": 1,
		"fun":[{
			"condition":[{
				"type": "value",
				"code": "disaster",
				"z": 1
			}],
			"actions":[{
				"type": "play",
				"id": "$Thunderbolt_1003"
			}]
		}]
	}],
		 [{
			"id": "$Thunderbolt_1003",
			"type": "sound",
			"file": "Thunderbolt1003.mp3"
			"volume":5
			}]

User avatar
CommanderABab
AB
Reactions:
Posts: 11102
Joined: 07 Jun 2016, 21:12
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Functional Tornado Siren [WIP]

#27

Post by CommanderABab »

Screenshot_20180904-003742.jpg

User avatar
Mg3094066
Inhabitant of a Supercluster
Reactions:
Posts: 3223
Joined: 28 May 2017, 01:50
Location: Venezuelan Republic of Mexico
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Functional Tornado Siren [WIP]

#28

Post by Mg3094066 »

What exactly I have to do?

User avatar
Mg3094066
Inhabitant of a Supercluster
Reactions:
Posts: 3223
Joined: 28 May 2017, 01:50
Location: Venezuelan Republic of Mexico
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Functional Tornado Siren [WIP]

#29

Post by Mg3094066 »

lol... At the next time I'll write the Json with Json genie .-.

User avatar
Mg3094066
Inhabitant of a Supercluster
Reactions:
Posts: 3223
Joined: 28 May 2017, 01:50
Location: Venezuelan Republic of Mexico
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Functional Tornado Siren [WIP]

#30

Post by Mg3094066 »

*erase me plox*
Last edited by Mg3094066 on 04 Sep 2018, 07:59, edited 1 time in total.

User avatar
Mg3094066
Inhabitant of a Supercluster
Reactions:
Posts: 3223
Joined: 28 May 2017, 01:50
Location: Venezuelan Republic of Mexico
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Functional Tornado Siren [WIP]

#31

Post by Mg3094066 »

Re-writen by Json Genie

Code: Select all

[
	[{
		"draw ground": true,
		"frames": [{
			"bmp": "TornadoSiren2.png"
		}],
		"fun": [{
			"actions": [{
				"id": "$Thunderbolt_1003",
				"type": "play"
			}],
			"condition": [{
				"code": "disaster",
				"type": "value",
				"z": 1
			}]
		}],
		"height": 1,
		"id": "$TornadoSiren00",
		"influence management": 100,
		"type": "public",
		"width": 1
	}],
	[{
		"file": "Thunderbolt 1003.mp3",
		"id": "$Thunderbolt_1003",
		"type": "sound",
		"volume": 5
	}]
]

User avatar
Oshawotta737
Inhabitant of a Conurbation
Reactions:
Posts: 475
Joined: 28 Mar 2018, 22:53
Location: Murica
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Functional Tornado Siren [WIP]

#32

Post by Oshawotta737 »

I think its good.?

User avatar
CommanderABab
AB
Reactions:
Posts: 11102
Joined: 07 Jun 2016, 21:12
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Functional Tornado Siren [WIP]

#33

Post by CommanderABab »

Code: Select all

[
	{
		"draw ground": true,
		"frames": [{
			"bmp": "TornadoSiren2.png"
		}],
		"fun": [{
			"actions": [{
				"id": "$Thunderbolt_1003",
				"type": "play"
			}],
			"condition": [{
				"code": "disaster",
				"type": "value",
				"z": 1
			}]
		}],
		"height": 1,
		"id": "$TornadoSiren00",
		"influence management": 100,
		"type": "public",
		"width": 1
	},
	{
		"file": "Thunderbolt 1003.mp3",
		"id": "$Thunderbolt_1003",
		"type": "sound",
		"volume": 5
	}
]
A .json file plugin for Theotown is an ( [ ] array ) of ( { } objects ),
not an ( [ ] array ) of ( [ ] arrays ).

User avatar
Mg3094066
Inhabitant of a Supercluster
Reactions:
Posts: 3223
Joined: 28 May 2017, 01:50
Location: Venezuelan Republic of Mexico
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Functional Tornado Siren [WIP]

#34

Post by Mg3094066 »

Yep... I knew it before... I already fixed it... So there's no another problem?

User avatar
Oshawotta737
Inhabitant of a Conurbation
Reactions:
Posts: 475
Joined: 28 Mar 2018, 22:53
Location: Murica
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Functional Tornado Siren [WIP]

#35

Post by Oshawotta737 »

I want this out so bad.

User avatar
CommanderABab
AB
Reactions:
Posts: 11102
Joined: 07 Jun 2016, 21:12
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Functional Tornado Siren [WIP]

#36

Post by CommanderABab »

Mg3094066 wrote:
05 Sep 2018, 00:20
Yep... I knew it before... I already fixed it... So there's no another problem?
Does it work for you?

User avatar
Mg3094066
Inhabitant of a Supercluster
Reactions:
Posts: 3223
Joined: 28 May 2017, 01:50
Location: Venezuelan Republic of Mexico
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Functional Tornado Siren [WIP]

#37

Post by Mg3094066 »

It doesn't work untill the update is out....
Currently the game will issue a non valid condition

User avatar
Mg3094066
Inhabitant of a Supercluster
Reactions:
Posts: 3223
Joined: 28 May 2017, 01:50
Location: Venezuelan Republic of Mexico
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Functional Tornado Siren [WIP]

#38

Post by Mg3094066 »

Code: Select all

In /storage/emulated/0/TheoTown/plugins/Disaster Response Unit [WIP]/TornadoSirenNew.json:

java.lang.IllegalArgumentException: May not load condition from [{"code":"disaster","type":"value","z":1}]

User avatar
Bearbear76
Former Bearbear65
Reactions:
Posts: 5730
Joined: 10 Feb 2017, 14:53
Location: L2 cache
Plugins: Showcase Store

Plugin Creator

Platform

Re: Functional Tornado Siren [WIP]

#39

Post by Bearbear76 »

Mg3094066 wrote:
05 Sep 2018, 00:59

Code: Select all

In /storage/emulated/0/TheoTown/plugins/Disaster Response Unit [WIP]/TornadoSirenNew.json:

java.lang.IllegalArgumentException: May not load condition from [{"code":"disaster","type":"value","z":1}]
I think it may be

Code: Select all

[{"type":"value", "code":"disaster", "z":1}]

User avatar
Mg3094066
Inhabitant of a Supercluster
Reactions:
Posts: 3223
Joined: 28 May 2017, 01:50
Location: Venezuelan Republic of Mexico
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Functional Tornado Siren [WIP]

#40

Post by Mg3094066 »

Bearbear65 wrote:
05 Sep 2018, 09:32
Mg3094066 wrote:
05 Sep 2018, 00:59

Code: Select all

In /storage/emulated/0/TheoTown/plugins/Disaster Response Unit [WIP]/TornadoSirenNew.json:

java.lang.IllegalArgumentException: May not load condition from [{"code":"disaster","type":"value","z":1}]
I think it may be

Code: Select all

[{"type":"value", "code":"disaster", "z":1}]
Ummm... The order of the factors doesn't affect the result

User avatar
Mg3094066
Inhabitant of a Supercluster
Reactions:
Posts: 3223
Joined: 28 May 2017, 01:50
Location: Venezuelan Republic of Mexico
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Functional Tornado Siren [WIP]

#41

Post by Mg3094066 »

And... Thanks for the transformed sound file

User avatar
Oshawotta737
Inhabitant of a Conurbation
Reactions:
Posts: 475
Joined: 28 Mar 2018, 22:53
Location: Murica
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Functional Tornado Siren [WIP]

#42

Post by Oshawotta737 »

Is it ready?

User avatar
Mg3094066
Inhabitant of a Supercluster
Reactions:
Posts: 3223
Joined: 28 May 2017, 01:50
Location: Venezuelan Republic of Mexico
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Functional Tornado Siren [WIP]

#43

Post by Mg3094066 »

Wait for 515

User avatar
Oshawotta737
Inhabitant of a Conurbation
Reactions:
Posts: 475
Joined: 28 Mar 2018, 22:53
Location: Murica
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Functional Tornado Siren [WIP]

#44

Post by Oshawotta737 »

When dat come out?

User avatar
Mg3094066
Inhabitant of a Supercluster
Reactions:
Posts: 3223
Joined: 28 May 2017, 01:50
Location: Venezuelan Republic of Mexico
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Functional Tornado Siren [WIP]

#45

Post by Mg3094066 »

Hi, I got the following error with a plugin (TornadoSirenNew.json:423):

Code: Select all

In /storage/emulated/0/TheoTown/plugins/Disaster Response Unit [WIP]/TornadoSirenNew.json:

java.lang.IllegalStateException: When loading "$TornadoSiren00": May not load condition from [{"code":"disaster","type":"value","z":1}]
Device: LG-H320 (lge)
Android: 21 (5.0.1)

Uhhhh... :fire

Post Reply Previous topicNext topic

Return to “Plug-In Discussion”