Functional Tornado Siren [WIP]

Plug-in related stuff can be discussed here.

Moderators: Plugin Moderators, Scenario Moderators

User avatar
Mg3094066
Inhabitant of a Supercluster
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 » 05 Sep 2018, 19:51

And... Thanks for the transformed sound file
User avatar
Oshawotta737
Inhabitant of a Conurbation
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 » 06 Sep 2018, 22:37

Is it ready?
User avatar
Mg3094066
Inhabitant of a Supercluster
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 » 06 Sep 2018, 22:47

Wait for 515
User avatar
Oshawotta737
Inhabitant of a Conurbation
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 » 06 Sep 2018, 23:51

When dat come out?
User avatar
Mg3094066
Inhabitant of a Supercluster
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 » 08 Sep 2018, 19:01

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
User avatar
ElephantEthan
Inhabitant of a Megacity
Posts: 294
Joined: 26 Aug 2018, 14:07
Plugins: Showcase Store

Platform

Re: Functional Tornado Siren [WIP]

#46

Post by ElephantEthan » 08 Sep 2018, 19:07

@Mg3094066
Try

Code: Select all

"condition":{  // This condition is only true if there's a disaster going on in the city.
  "type":"disaster"
}
In 514 update.
User avatar
Mg3094066
Inhabitant of a Supercluster
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]

#47

Post by Mg3094066 » 08 Sep 2018, 19:16

I already have it...

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":"Siren.ogg",
	"id": "$Thunderbolt_1003",
	"type":"sound",
	"volume":5
}]
User avatar
Mg3094066
Inhabitant of a Supercluster
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]

#48

Post by Mg3094066 » 08 Sep 2018, 19:17

Oh...
Wait
User avatar
Mg3094066
Inhabitant of a Supercluster
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]

#49

Post by Mg3094066 » 08 Sep 2018, 19:17

But what about the "code"?
User avatar
ElephantEthan
Inhabitant of a Megacity
Posts: 294
Joined: 26 Aug 2018, 14:07
Plugins: Showcase Store

Platform

Re: Functional Tornado Siren [WIP]

#50

Post by ElephantEthan » 08 Sep 2018, 19:24

Mg3094066 wrote: 08 Sep 2018, 19:17 But what about the "code"?
"code" is for variables condition, "disaster" is a new condition now I think.
User avatar
Mg3094066
Inhabitant of a Supercluster
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]

#51

Post by Mg3094066 » 08 Sep 2018, 19:28

Hmmmm... I just deleted all and I left type disaster there...
It doesn't works
User avatar
JustAnyone
Developer
Posts: 3595
Joined: 23 Jul 2017, 12:45
Location: Easter Island
Plugins: Showcase Store

Platform

Re: Functional Tornado Siren [WIP]

#52

Post by JustAnyone » 09 Sep 2018, 12:17

Mg3094066 wrote: 08 Sep 2018, 19:16 I already have it...

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":"Siren.ogg",
	"id": "$Thunderbolt_1003",
	"type":"sound",
	"volume":5
}]
Try this onw
User avatar
CommanderABab
AB
Posts: 11268
Joined: 07 Jun 2016, 21:12
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Functional Tornado Siren [WIP]

#53

Post by CommanderABab » 09 Sep 2018, 12:50

JustAnyone wrote: 09 Sep 2018, 12:17 <..>
Try this onw
Is that a typo for now or one? :)
User avatar
JustAnyone
Developer
Posts: 3595
Joined: 23 Jul 2017, 12:45
Location: Easter Island
Plugins: Showcase Store

Platform

Re: Functional Tornado Siren [WIP]

#54

Post by JustAnyone » 09 Sep 2018, 13:12

Один.
User avatar
Mg3094066
Inhabitant of a Supercluster
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] 86% Finished

#55

Post by Mg3094066 » 09 Sep 2018, 22:08

New Working tornado siren since 8/9/18.
I would appreciate it if someone made electricity poles like road decoration
I would appreciate it if someone made electricity poles like road decoration
Except that the sound emitted makes a constant loop a few seconds after being emitted instead of playing the full sound
:mine :calc :mine
User avatar
Mg3094066
Inhabitant of a Supercluster
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]

#56

Post by Mg3094066 » 10 Sep 2018, 01:16

Posting Audio File link for download it via computer...
https://drive.google.com/file/d/1AqihIO ... p=drivesdk
I can't pass it via Bluetooth.
*oof*
User avatar
Oshawotta737
Inhabitant of a Conurbation
Posts: 475
Joined: 28 Mar 2018, 22:53
Location: Murica
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Functional Tornado Siren [WIP]

#57

Post by Oshawotta737 » 10 Sep 2018, 02:11

Will you upload tonighht?
User avatar
Mg3094066
Inhabitant of a Supercluster
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]

#58

Post by Mg3094066 » 10 Sep 2018, 03:37

Now... I need a tutorial for low the bit rate of the sound file... With Audacity
*cof* Some... *cof* one?
as lobby said in discord.
And I think it will take more time to be uploaded officially
User avatar
Mg3094066
Inhabitant of a Supercluster
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]

#59

Post by Mg3094066 » 10 Sep 2018, 21:58

ummm... i decreased the bit rate of the sound...
it didnt worked D:
@Lobby the problem its the sound length
oof*
User avatar
Lobby
Developer
Posts: 3719
Joined: 26 Oct 2008, 12:34
Plugins: Showcase Store
Version: Beta

Platform

Re: Functional Tornado Siren [WIP]

#60

Post by Lobby » 11 Sep 2018, 12:30

https://stackoverflow.com/questions/133 ... f-file-why

You could also try to convert it to mono instead of stereo.
Post Reply Previous topicNext topic

Return to “Plug-In Discussion”