#plugin-support

1 messages ยท Page 27 of 1

rocky geode
#

Wait @pseudo nymph this also happens if there's a oneway road and the cars can't reach its target

pseudo nymph
#

It is not one way road I looked at it also tried using only 1 station but nope didn't worked

#

@hot shoal hello, is your cable car working or you are not anymore sure about it?

#

@rocky geode you are the guy who made monorail, right? If you can, you should make a cable car plugin too I guess. Variety of plugins aren't a bad thing

eternal lake
#

that's how cars work

#

they have a destination and despawn when they reach it

pseudo nymph
#

Hmm

#

Yeah I know

#

But anyway, the way that plugin is made is not allowing us to make a glass station build then

#

It is modular in fact

eternal lake
#

why not?

pseudo nymph
#

Because you will only need to use one piece of whole station build and it is a part of whole build

#

I need to get on pc to show it

#

There are total 8 stations

#

Also look at red place, it looks empty

grand spruce
#

I'd like you to take the extra time to make extra end pieces that aren't needed and would only take up more plugin space

pseudo nymph
#

There is an end piece

eternal lake
#

then what's the problem??

pseudo nymph
#

Didnt use it

grand spruce
#

That sounds like your fault more than the makers

pseudo nymph
#

I am not saying plugin is bad I love it

#

The topic just went somewhere else

#

The actual problem is cable car doesnt exits

#

The one I mentioned is a texture "thing" but still an inside would be good

hot shoal
#

@pseudo nymph yes it works

#

The part you said is empty, is because you can buils more cable from there in order to continue the layout

#

Is not necessary to be an "ending" station

pseudo nymph
#

@hot shoal but my car isn't going outside. How will I make it work?

hot shoal
#

You mean it doesn't spawn cars?

pseudo nymph
#

It spawns but just drives inside station

hot shoal
#

Ok, give me some minutes, and I'll explain to you

pseudo nymph
#

mhm

#

@hot shoal I just tested it in random map and it worked but strange thing is it is not working in the map I want

hot shoal
#

The first pic is working as an end to end layout

#

But the second one goes around the layout non-stop

pseudo nymph
#

mhm

hot shoal
#

As you can see, cars are spawning regularly

pseudo nymph
#

yep

#

let me show you mine

#

It is not spawning, all roads connected tho

#

@hot shoal

hot shoal
#

Please, stop pinging, I'm reading you

pseudo nymph
#

ah I am soo sorry

hot shoal
#

Maybe they are not well connected

pseudo nymph
#

I will check again, but I am sure they are

hot shoal
#

Try to leave a straight gap before the slope

pseudo nymph
#

oh

#

wait I will try that

hot shoal
#

Check the height

pseudo nymph
#

might be it

#

I am doing 5 height to connect it with tower(?)

hot shoal
#

If it still doesn't work, try doing again

hot shoal
pseudo nymph
#

nope didn't work, sorry

#

it is 1 height at station, same as it

#

Don't mind it montemarino, your plugin is great. I can play without its spawning cars. Thanks for your attempt to help me

hot shoal
#

Sorry, I don't know what's wrong with your plugin, but it should work correctly. As I said, try to do it again

thin blade
#

Is it possible to make rotation aware road decoration?

hollow flax
#

4 animations, 64 indices.

thin blade
#

does it work on 2 way roads?

hollow flax
#

I don't think so.

#

With 2 drafts and fun, i think it's possible.

thin blade
#

oh is there a fun function detecting rotation?

hollow flax
thin blade
#

That's nice, thank you for the help. now let me see how I can use them in my plugin :)

thin blade
#

welp it's not so easy cuz it contains on click fun and also it's for intersection

hollow flax
#

With fun, condition rotation 0 or 1, action build draft for rotation 2 and 3. Condition rotation 2 or 3, action build draft for rotation 0 and 1.

thin blade
trail furnace
#

Does terrain needs a draw ground true?

#

Oh wait.. terrain cant have multiple frames right?

#

Oh dang it

#

But i already have the widht and height

steel verge
#

it's not widht

trail furnace
#

Oh snap.. well i need to pay atention more.. ;-;

pseudo nymph
#

I don't know if it is game bug but it happened after I update to beta

steel verge
#

What plugin is it?

pseudo nymph
#

I just downdrade my game to see if it is okay

#

mhm it works with older version of game

steel verge
#

That's a plugin issue

pseudo nymph
#

I hope the creator will fix this, I liked that plugin

trail furnace
#

How do i make it so my plugin have icon like this to

#

sorry if my english isnt good today, i didnt get enough sleep

trail furnace
#

Yes! Also ty

vernal marsh
#

I'm using Pipes, Roads, Zones Pack, I'm using the "non-dense urban zone", a name similar to that, and I don't know if this is normal ...

tawdry schooner
#

Why is there water-

vernal marsh
#

that's my question ...

grand spruce
#

That is a very old plugin

#

so it's likely something in the code changed

tawdry schooner
#

Well if you would connect those canals that would be good

pseudo nymph
#

is choggaba in this server?

hollow flax
#

Yes

pseudo nymph
#

what is his nickname?

thin blade
#

choggoba

pseudo nymph
#

@pure glen hello, have you seen the new beta update? Your overpass plugin has a problem with it I guess. I used it a lot in my main map

pseudo nymph
#

@rocky geode your bank makes me lose 2k in different map :(

rocky geode
#

What did your last action after these

pseudo nymph
#

I disabled the plugin

foggy jetty
#

How do you make plugins?

trail furnace
foggy jetty
#

ok, thank you ยฆ}

terse void
#

Maybe you're using theotown.getstorage somewhere that should be city.getstorage

rocky geode
rocky geode
#

I also encountered these every time and still cant find what caused this i thought that's because of the budget item but its not, i add 10k bonus on local deposited as alternative for these problem

terse void
#

That 2k doesn't go into budget btw

rocky geode
#

I can't still find the problem

hybrid depot
#

how to join this group ?

eternal lake
#

send a request to lobby or someone like that

hybrid depot
#

How ?

eternal lake
#

you have to be a plugin creator

#

pms

hybrid depot
#

I don't understand ๐Ÿ˜…

eternal lake
#

what?

#

just write a pm with your request

hybrid depot
#

oh so I have to send a privacy message to the lobby asking to join the group

#

Ok thanks ๐Ÿ™

eternal lake
#

np

hybrid depot
#

Is this correct

eternal lake
#

looks as if it was written by a 11yo but it will probably do

#

do you have any plugins released?

hybrid depot
#

I want to update this plugin .. but I don't know the special code .. that's why I want to join that group

hybrid depot
#

Well i have 12 plugins

eternal lake
#

sure

hybrid depot
#

So now .. I just need to wait for the approval?

terse void
#

you probably shouldve mentioned why you need the code

#

but yes

hybrid depot
#

For my "recycle center" plugin

#

I need the PRIVILEGED code for that thing

terse void
#

true that

steel verge
#

damn

#

I'll get the decision now

hollow flax
hybrid depot
#

๐Ÿ˜‚๐Ÿ˜‚

cedar stone
#

Imagine caring about how many diamonds you get

hybrid depot
vale minnow
#

I have a few but i never use them

trail furnace
#

I usually use my diamond for build time boost

cedar stone
#

Imagine using diamonds

hollow flax
cedar stone
#

-Pc tt gang

trail furnace
#

๐Ÿค”

hybrid depot
#

I usually use my diamond for BUY THE PLUGINS and the PREMIUM BUILDINGS (add ons and landmark)

#

I also usually watch the ad ๐ŸŽ 3X /30 minutes

vale minnow
#

Imagine claiming them @cedar stone

hybrid depot
#

Wow .. nice

#

โค๏ธโค๏ธ

#

is it true that theotown has a limit of the number of diamonds up to 98 thousand?

hollow flax
#

are you redeem it?

hybrid depot
vale minnow
#

@hollow flax i have 22k you have 20k to redeem

#

And the plugins where i got the most diamonds from is flag set/road pack

pseudo nymph
#

I think ian meant that he has 3x less downloads than you and has just 2k diamonds less than you

vale minnow
#

I would have had more if ja didn't take some away

#

/ didn't claim

fiery olive
#

22k? 20k? what are you talking about

flat sonnet
#

how can I make the animation above the terrain

#

Oww i get it

This will become a bug from building in front

hybrid depot
#

Wow diagonal rail... I LOVE IT!โค๏ธ

hybrid depot
#

excuse me everyone .. how to contact the developers? It's been more than a day since I've uploaded this plugin but there hasn't been any response / approval since yesterday ... please help me. :'(

trail furnace
#

Just wait i guess

hybrid depot
#

It's been more than a day, even when I just uploaded it, there is no LATEST plugin besides Yusuf's zone ... but after a day I see there is a LATEST plugin, airbase, but mine hasn't been approved ...

tawdry schooner
#

Lol

#

Just wait

earnest pendant
#

Wait

forest perch
#

i built a medieval town and i wantet do make a port for it and i used the commercial building that looks like a fishing hut

bitter hazel
#

Oh wait were already here

#

I'm stupid

#

Lmao

terse void
hollow flax
#

and don't use Lua Wrapper when you use the require.

steel verge
#

He never does anyway

#

Restarting his game every 6 seconds

terse void
#

no i do

#

i just do it anyways cuz im an idiot

#

also just now i was doing json stuff so that doesnt count

steel verge
#

Erksmit

#

Remember wanting to call a function in different script of the same draft?

terse void
#

ye

#

no it wasnt in the same draft

steel verge
#

Either way

#

You'd put the function into the script object

#

like function script:myFunction()

terse void
#

ah

steel verge
terse void
#

i see where youre going with this

steel verge
#

to get the script by index

terse void
#

ye

#

i could get the script object

steel verge
#

Yes

#

And call it like this in very short and consice way

#

Draft:getScripts()[1]:myFunction()

terse void
#

ah yes

#

thats exactly what i needed

#

dont mind the plugin id its not representative of the plugin

hollow flax
#

wait, do you use the require for load the json?

terse void
#

no

#

wait

#

lemme just zip it up real quick

#

oh wait i see the problem

#

forgot to add .lua to my script reference

#

wait do debug toasts show up without lua wrapper

steel verge
#

shouldn't tm

terse void
#

damn

#

now how do i debug my program

#

guess ill use debug.log then

#

where is the internal log anyways

#

for debug.log ofc

steel verge
#

Logcat

terse void
#

they do

steel verge
#

?

terse void
#

my toast showed up

#

and im not using luawrapper script

steel verge
#

You sure it's from your script?

terse void
#

am 99% sure

#

but lemme change the text to test

#

yep

#
[{
    "active":true,
    "id":"$testPlugin",
    "author":"erksmit",
    "title":"testing tool",

    "type":"data",
    "script":"testScript.lua"
}] ```
#
function script:init()
    Debug.toast('hello world!!!!!!!!')
    onInterval.register(function ()
        Debug.info(Runtime.getTime() .. 'bazinga')
    end, 2)
end
steel verge
#

lol

terse void
#

im trying to make a module thatll run a function every n miliseconds

#

it should probably work

#

โ„ข๏ธ

steel verge
#

info.flowersoft.theotown.theotown

bitter hazel
#

python scripts when

steel verge
#

they already exist

bitter hazel
#

Wait TT has python support?

terse void
#

ye cuz ja does that

steel verge
terse void
#

pretty cursed if you ask me

bitter hazel
#

So you mean we can also script our plugins in Python?

steel verge
#

the moment I start theotown

#

no

bitter hazel
#

Damn

terse void
#

would that really be a big diffrence compared to lua

bitter hazel
#

I mean I'm honestly too lazy to learn Lua

#

I wanna learn it but lazy lol

steel verge
#

Lua sucks

terse void
#

whats there to learn

#

its all just tables

bitter hazel
#

Still, too lazy

steel verge
#

What if I told you Python is all objects?

bitter hazel
#

;-;

steel verge
#

tfw you are in android shell from linux from windows

hollow flax
terse void
#

just realized errors in module functions dont show up

#

damn

hollow flax
terse void
#

probably a good idea

#

restarting every change is getting annoying

#

hmm

#

so i got ```lua
storage = Util.optStorage(TheoTown.getStorage(), '$onInterval', {index = 0, registeredFunctions = 0, functions = {}})

#

but for some reason registeredFunctions is still null

steel verge
#

You mean nil?

terse void
#

ah yes

#

nil

#

excuse me for being used to literally any other language

hollow flax
#

Try to use the function to refresh the storage value

local function getStorage()
  return Util.optStorage(TheoTown.getStorage(), 'id')
end```
terse void
#

i can always just set the values 1 by 1 but since its there i wanted to use it

#

well i can register functions fine now

#

they just dont get run

frozen sand
#

How long does plugin approval take?

eternal lake
#

depends

#

upto 2 days probably

#

usually after a few hours

frozen sand
#

Oh ok thanks :)

eternal lake
#

๐Ÿ™‚

earnest pendant
rocky geode
rocky geode
steel verge
#

That postpones function execution

rocky geode
#

That's same as excute delay

steel verge
#

That's not what he's trying to do

rocky geode
#

If you put it under script:update

steel verge
#

That freezes entire game

#

postpone doesn't

rocky geode
#

Hmm

#

Maybe
Get the time and execute if it matches?

steel verge
#

He wants to run a function every 5 seconds for example

terse void
#

Yes

#

That's what's it does right now

exotic scarab
steel verge
#

What if I told you JVM is written in C++?

hollow flax
#

Run a function every 5 seconds?

local smth = true
local offset = 0
function script:update()
  if City then
    if smth and offset < 10 then
      smth = false
      Runtime.postpone(function()
        Debug.toast('Toasted')
        smth = true
        offset = offset + 1
      end, 5000)
    end
  end
end```

![bear_yes](https://cdn.discordapp.com/emojis/366015429484740625.webp?size=128 "bear_yes")
terse void
#

i guess

#

gotta rewrite that a bit to make it simpler to use though

terse void
#

i suspect runtime.postpone is gonna have quite a performance impact when called often though

steel verge
#

It uses runnable

#

Which creates a thread

#

Which operation is very expensive in Java

#

Like humougously expensive

terse void
#

yeah i suspected something like that

#

id rather just use runtime.gettime to keep track of how much time has elapsed

steel verge
#

inb4 runtime.gettime creates new runnable to get time

terse void
#

well that sounds like your problem

steel verge
#

Ah

#

Looked into it more

#

It gets put into function list that get executed at the end of the frame

#

runtime.postpone away

#

Nvm

#

Yeag

#

Just use Runtime.postpone

terse void
#

ait

rocky geode
#

@hollow flaxthis always been thrown whenever i used require on your splitLabel

terse void
#

Looks like a java bug

hollow flax
#

don't use luawrapper when you use the require function.

#

you can put my module later when you finish the script.

hollow flax
pseudo nymph
#

does "flag tram" still exists?

#

also I am still losing 2k on other maps probably that bank plugin

steel verge
#

all existing flags

terse void
#

what the heck does 1 << 2

#

mean

#

wait

#

bitshifting

#

what

#

but why

steel verge
#

performance

pseudo nymph
#

I thought flag user ones gone

steel verge
#

@terse void

terse void
#

is that faster than just assigning it?

#

oh when using it

steel verge
#

small time becomes big time

terse void
#

thats when the big bucks start rolling in

steel verge
#

yes

terse void
#

im a bit of an expert on the subject of opimization

#

just look at my bot code

#

but not too closely

#

or youll see all the Task.run i call

steel verge
#

You're an expert in stability

#

I am an expert in stability myself

terse void
#

trust me

#

hasnt crashed in days

steel verge
#

watch me go online and it crash instantly

#

That

#

or that discord sharp library update

terse void
#

idk

#

seems like im not getting the error anymore

pseudo nymph
#

I am still losing money from bank plugin

vivid totem
#

Is there a plugin that as a fill bucket or something like that?

terse void
#

None that I know of

trail furnace
#

How do i make it so my plugin can be used on online mode?

rocky geode
#

Why overhead pole from train rdc can't put into my custom road that has flag train

cedar stone
rocky geode
young totem
#

Is DSA agency a plugin

#

How to return to the moon

steel verge
#

DSA agency is indeed a plugin

#

You can find it in single cities

pseudo nymph
#

Dsa is an addon

steel verge
#

It's a plugin

vale minnow
#

Always has been

vivid totem
#

What are some plugins you guys would recommend?

trail furnace
#

Diagonal road

vivid totem
steel verge
#

Java

vivid totem
#

Ok thanks!

#

How can java be used for theotown. I thought only lua and json is possible. Sorry if thats an dumb question Iโ€˜m new to coding in Theotown.

terse void
#

correct

#

but the game is made in java

vivid totem
#

So heโ€™s modding the gamefiles and not making a plugin?

terse void
#

no its just a screenshot of the games code

vivid totem
#

Ok thank you!

steel verge
trail furnace
#

How do i add more frames inside the people

terse void
#

set category in your second draft to $cat_fence_poeple1

trail furnace
eternal lake
#

the error is visible from the error screen already

#

copy the code here pls

trail furnace
#

[
{
"id":"$cat_fence_people1",
"type":"category",
"title":"people",
"frames": [
{"bmp":"icon.png"}],
"ordinal":10
},
{
"id":"$fence_People1", //this can be whatever you want
"author":"Chipper", //this too
"frames":[
{
"bmp":"PeopleFence1.png",
"w":16,
"count":2,
"handle y":7
}
],
"preview frames": [{"bmp":"icon.png"}],
"type":"fence",
"price":100,
"width":1,
"height":1, //not sure if you have to use those keys with fences?
"category":"$cat_fence_people1", //make sure this category exists!
"title":"people",
"text":"Decorate your city!"
}
]

#

First frame

#

Then i try adding this

#

[
{
"id":"$fence_People2", //this can be whatever you want
"author":"Chipper", //this too
"frames":[
{
"bmp":"PeopleFence2.png",
"w":16,
"count":2,
"handle y":7
}
],
"type":"fence",
"price":100,
"width":1,
"height":1, //not sure if you have to use those keys with fences?
"category":"$cat_fence_people1", //make sure this category exists!
"title":"people",
"text":"Decorate your city!"
}
]

eternal lake
#

why do you have random comments lol

trail furnace
#

Wdym

eternal lake
#

//

trail furnace
#

e

eternal lake
#

also this is not the code you're getting errors from

trail furnace
#

Is it error bc i did something erong on the compressing?

eternal lake
#

I only see $fence_People2

trail furnace
hollow flax
trail furnace
#

Ah,

#

I always forget such a small thing

eternal lake
#

consider using software that highlights errors

pseudo nymph
earnest pendant
#

please help me with this

local r = 255
local g = 255
local b = 0
local a = 0.5
function script:settings()
	return {
		{
			name = "R",
			value = r,
			values = {
				0,
				63.75,
				127.5,
				191.25,
				255
			},
			valueNames = {
				"0%",
				"25%",
				"50%",
				"75%",
				"100%"
			},
			onChange = function(v)
				r = v
			end
		},
		{
			name = "G",
			value = g,
			values = {
				0,
				63.75,
				127.5,
				191.25,
				255
			},
			valueNames = {
				"0%",
				"25%",
				"50%",
				"75%",
				"100%"
			},
			onChange = function(v)
				g = v
			end
		},
		{
			name = "B",
			value = b,
			values = {
				0,
				63.75,
				127.5,
				191.25,
				255
			},
			valueNames = {
				"0%",
				"25%",
				"50%",
				"75%",
				"100%"
			},
			onChange = function(v)
				b = v
			end
		},
		{
			name = "A",
			value = a,
			values = {
				0,
				0.125,
				0.25,
				0.375,
				0.5
			},
			onChange = function(v)
				a = v
			end
		}
	}
end```
terse void
#

you sure this was where the error was caused?

#

cuz it seems to check out

#

nvm the stacktrace confirms it was on entering settings

vivid totem
#

what does draft mean?

eternal lake
#

in this case the draft of the building you want to place

#

aka something like id but it's more like a variable that holds the id

terse void
#

you can get a draft with Draft.getDraft(id)

vivid totem
#

Ok

steel verge
#

It's an expensive call, use it sparingly

earnest pendant
terse void
#

good thing i buffer pretty much everything

pseudo nymph
#

how do I make it soo the sound changes

#

like this

#

say me it is not lua

terse void
#

You can do it without lua

#

Pretty sure there's a forum article discussing it

pseudo nymph
#

ah

terse void
#

You need to define the audio in a audio type draft

#

Then reference that from you plugin draft

pseudo nymph
#

what is the rating of how hard that is 1-10

terse void
#

Not very hard

#

Id give it a 4

pseudo nymph
#

is lua free?

#

I mean to code things etc. (app)

terse void
#

Yes

#

On pc you can use vscode for all the coding you need for a plugin

#

On mobile I'm not sure

#

But there's probably something out therr

pseudo nymph
#

thank you sir

vernal marsh
#

does anyone know how to leave the roads with two lines on Mexican Road?

hollow flax
#
  1. change the frames
#
  1. don't join it
pseudo nymph
#

@terse void you are the creator of the night animation tool right?

terse void
#

no

#

thats ian

pseudo nymph
#

ops

#

wait

#

my first time using it

#

is that how it should to be?

eternal lake
#

use animation instead of steal

#

i guess

#

at least that's how I do it

terse void
#

is that generated with the tool

pseudo nymph
#

the tool only generated the ids and their x y

eternal lake
#

just looked and that's not how you use it

#

apply the generated code to your building

pseudo nymph
#

hm

eternal lake
#

don't create an additional animation definition

pseudo nymph
eternal lake
#

nope

#

you put those in animation definitions only

#

show the code

pseudo nymph
eternal lake
#

width, height and level are booleans

vernal marsh
eternal lake
#

remove the ""

#

evict the light line as well

pseudo nymph
#

woa right

#

I forgot

#

this is my first time using that animation tool, that's great

eternal lake
#

very cool

#

is it static or random each time?

#

aka animation

pseudo nymph
#

some are random but I used diagonal placement

#

but making custom animations would look better

eternal lake
#

also make sure to credit the author if you're going to release it

pseudo nymph
#

I am the author

eternal lake
#

isn't it that building from the forums?

#

let me see

pseudo nymph
#

yes

eternal lake
#

If you are going to use it then you should;
-credit TheoTown for most of the prop decos used in this texture
-credit pounkiller for decal grounds
-credit yusuf8a684

pseudo nymph
#

it is me

eternal lake
#

?

pseudo nymph
#

I made it and posted it on forum for free and wanted to test this tool on it

#

I am yusuf

grand spruce
#

Are you implying you are yusuf

terse void
#

you should credit ian for his tool

eternal lake
pseudo nymph
#

I am not gonna post it but that was in my mind to credit ian if I use it on a plugin

grand spruce
#

Well I'm not one to doubt, but can you prove you are yusuf? It's been a longgggg time

pseudo nymph
#

I just replied you on plugin store about canals

grand spruce
#

O.o

#

It's been a long time

pseudo nymph
#

I will add light to them before releasing

#

yes lol

grand spruce
#

It's good to have you back

pseudo nymph
#

thank you

#

but I wont really make plugins

eternal lake
#

trianglepupper hi

pseudo nymph
#

ello

pseudo nymph
#

say me there is a way to close this

flat sonnet
flat sonnet
#

What is frame code for this?

rocky geode
#

That is from the terrain, so basically it doesnt had "draw water borders" To false
Nvm @flat sonnet is right

rocky geode
flat sonnet
pseudo nymph
pseudo nymph
#

if I use draw ground true and dont put a texture to there it will show like it is water, it is the trick

pseudo nymph
#

ops yeah, it is draw ground false

#

but how do I remove water borders tho

#

it is false already

flat sonnet
pseudo nymph
#

is that your plugin?

flat sonnet
#

Already in store

#

City of dreams

pseudo nymph
#

here is the code of the canal

flat sonnet
#

May i see the game

pseudo nymph
flat sonnet
#

Sorry for my English

pseudo nymph
#

it is okay

#

I think I need to look forum for a while to find a solution

flat sonnet
#

Draw ground true sorry

pseudo nymph
#

but isn't draw ground makes the floor land?

flat sonnet
pseudo nymph
#

I found this

#

I will try but I need to add night frames first

pseudo nymph
#

ian's tool is big genius

vivid totem
#

How can I detect if a user taps on a category in lua?

terse void
#

Pretty sure you can't

#

Why do you need that functionality anywyas

vivid totem
#

I want some way to run my script when the user clicks on a button and i have no idea how to make gui

terse void
#

Weren't you making custom statistics zones?

#

In that case you should use a tool draft

hollow flax
# pseudo nymph great

You can change the probability value to make the lights change dynamically each night cycle.

pseudo nymph
hollow flax
#

there is the manual. click the about button in the right up corner, then click the manual button.

pseudo nymph
#

Why is that happening... >;(

#

It is zones+ plugin not spawning buildings

bright rain
#

Is it possible to add another tab to this menu?

hollow flax
#

lol. actually, it's not easy.

bright rain
#

sigh

#

Time to abuse the sidebar again

hollow flax
vivid totem
#

is it possible to delete zones with lua

terse void
#

you could try using Builder.remove(x, y)

hollow flax
#

clearly documented bear_shrug

terse void
#

well

#

its not really a logical function to look for

pseudo nymph
#

car isn't spawning

true isle
#

It's the imposter, that's why

pseudo nymph
#

probably they are venting

velvet hemlock
true isle
#

One of them vented in admin

true isle
pseudo nymph
vivid totem
#

Is it possible to add custom icons to lua from a png?

terse void
#

Yes

#

You can make it a frame in your draft

#

And get it from lua

#

Then you can use it as icon

fiery olive
#

just a question, is the custom water for privileged creators only?

steel verge
#

No

bright rain
#

What do I need to stop this from happening? The lines of water are not supposed to be there

#

This doesn't happen in older versions, so it probably has something to do with the update to water

#

Its supposed to look similar to this

bright rain
# steel verge No

The custom water tutorial is inaccessible btw. That might have been why he asked that

pseudo nymph
#

Yeah those strange things also happened when I tried to make a road with water ground true

fiery olive
#

works now

uneven marlin
#

Alright, i need some help rn.

#

As you guys know, i am working on a train expansion plugin.

#

However i reused a lot one of the train depot textures i made, and i would like, instead of having dozen of identical depots, to have just one texture in a folder i can "steal" for the others.

eternal lake
#

pretty sure you can use "steal" for that

uneven marlin
#

how would that work tho ?

#

cause i never used it.

eternal lake
#

no idea, never tried, probably something like animations

uneven marlin
#

uhhh ok

#

I'll see if someone else can help.

eternal lake
#

"frames":[{"steal":"..."}] might work

#

you probably steal by id

uneven marlin
#

ok, i'll try

#

wait, will it steal the preview frames as well ? @eternal lake

eternal lake
#

no idea

uneven marlin
#

well, i guess i gotta have to do some testing.

eternal lake
#

probably you can use it the same way for preview frames

uneven marlin
#

i guess so.

pseudo nymph
#

I used it in older version of 1x1 suburbs zone

uneven marlin
#

do you have a json sample that could help me ?

pseudo nymph
#

Sure, but it just uses a frame. It doesn't steals animations of that texture tho

#

Which buildimg you are going to use?

uneven marlin
#

Basically

#

until now, all trains had their own depot texture

#

which is basically the same for all

#

in order to optimise plugin space, i wanted to have a single depot texture that would be "stolen" by all others trains depots instead of each having its own.

pseudo nymph
#

You can also find the building you want from this

#

If you want them with their night frames and animations

uneven marlin
#

thanks.

#

wait, does the "steal" work for night-frames & animations too ?

#

not that i would need it for night-frames & animations tho.

#

since it works already.

pseudo nymph
#

Steal just uses the base frame and nothing else

uneven marlin
#

ok perfect

#

so it doesnt steal the preview frame

#

AWESOME

pseudo nymph
#

I don't really know that

uneven marlin
#

well, i guess i'll have to experiment

#

well, first thing i notice is that it isn't compatible with upgrades

#

so depots will not be able to be rotated..

pseudo nymph
#

You need to add count or rotation aware to them

uneven marlin
#

well count was added

#

and rotation aware as well

#

but it didnt work, likely due to the "steal" texture in use.

pseudo nymph
#

Hmm

#

You should copy the code from JSON resources I think

#

That would be more accurate

uneven marlin
#

i checked it

#

and my plugin is kinda the first to do so.

#

I posted a topic on the forum

#

but i also got other ideas in case it doesnt work

#

like using fences for "rotation aware" depots

eternal lake
#

wait, are the graphics the same?

uneven marlin
#

wdym ?

eternal lake
#

if yes, why don't you just use "frames":[{png}]

#

so you want multiple different buildings that all look the same but have a different purpose?

uneven marlin
#

yes

#

and i cant just have all in the same folder

eternal lake
#

ah

uneven marlin
#

it would be too much of an hassle for me :/

#

right now, the main idea i have is to have an 1x1 "depot" block

#

fully modulable

#

with fences being used for outside props

#

basically just like this

#

except it would have custom "fences / wall" that mimic the warehouse gate, walls or some "wall props"

#

well i think it would be the best idea

#

much more modularity

steel verge
#

just steal the textures

uneven marlin
#

yes it's how i'll do it.

pseudo nymph
#

@legrater, your pipes under roads work in no plugin multiplayer too, what an amazing thing

spiral hornet
#

can anyone help me find the best plugins

steel verge
#

Not that I am aware of

cedar stone
#

go search by youserlf

trail reef
spiral hornet
#

Thanks

steel verge
#

DSA

pseudo nymph
#

Impos Tower

vivid totem
#

Is it possible to save variables after the theotown app is closed

terse void
#

Yes

#

You can use the storage table

#

There's probably a tutorial on the forum for it

vivid totem
steel verge
#

accross

terse void
#

yesa

#
-- We define the local variable for our settings table here so that our functions can see it
local settings

function script:init()
  -- Let's get a storage table and initialize values that are nil
  settings = Util.optStorage(TheoTown.getStorage(), self:getDraft():getId()..':settings')
  settings.someBool = settings.someBool == nil and true or settings.someBool
  settings.someInt = settings.someInt or 1
  settings.someNamedInt = settings.someNamedInt or 3
  settings.someString = settings.someString or 'Xyz'
  settings.someGenericText = settings.someGenericText or 'Hello World'
end
#

thse values will automatically be saved

vivid totem
#

What would I type when i want to save an integer named level?

#

function script:init()
settings = Util.optStorage(TheoTown.getStorage(), self:getDraft():getId()..':settings')
settings.level = settings.level 1
end

terse void
#

almost

#
function script:init()
  settings = Util.optStorage(TheoTown.getStorage(), self:getDraft():getId()..':settings')
  settings.level = settings.level or 1
end
#

would be correct

#

it will set the default value for level to 1

vivid totem
#

Ok thank you one last question is it possible to delete theme later and view how many were already created

terse void
#

What do you mean with theme

vivid totem
#

oh sorry i mean them

terse void
#

You mean the amount of values in settings?

vivid totem
#

Yes if it is possible to delete variables like for example settings.level

terse void
#

Yes

#

You just do

#

settings.level = nil

vivid totem
#

Ah ok thanks

#

Can i check some where what settings variablen I already created?

#

Like with an Debug.toast or something like that

terse void
#

Yeah that would work

#

It'll say nil if it doesn't exist yet

vivid totem
#

Ok thank you!

steel verge
#

I'm just gonna put this here

terse void
#

ok

#

but why

steel verge
#

Look at GUI

terse void
#

no issues here

hollow flax
hybrid depot
#

why do we have to pay 1 diamond for every The withdrawals we take? Why??

terse void
#

thats only for cross city withdrawals

pseudo nymph
#

balance

hot sluice
#

Who made this plugin where can I get this plugin

terse void
#

regional bank

vivid totem
#

What does rci mean

terse void
#

Residential commercial industrial

vivid totem
#

Ok thanks

radiant lion
#

With that bank I wish there was an option to pay back the loan when we had enough money. (Unless there is and I just can't find it?)

rocky geode
radiant lion
#

@rocky geode I've a 500,000 loan in one city and over 600,000 sitting there (I like having loans all payed off, they make me nervous otherwise)

rocky geode
#

I think these fine now

local button1 = addLine(nil,0)
    local widthB = (button1:getClientWidth() - 5 ) / 5
    local function addSelectionButton(text, state,frame)
    button1:addButton{
      icon = frame,
      w = widthB,
      h = 30,
      text = text,
      --other stuff
}
rocky geode
radiant lion
#

@rocky geode thanks! bear_heart

hollow flax
#

can be a reference. bear_shrug

pseudo nymph
#

Foo fighter

rocky geode
vivid totem
#

is it possible to disable a json file trough lua?

terse void
#

No

#

Whatever you're trying to do there is probably a better way to do it than disabling a draft

flat sonnet
#

how to make code for car noise

#

[{"Type":car
........

	"fun": [{
	"actions": 
	[{
	"id": "$pnr1class",
	"type": "play"
	}]
	}],

}]

	[{
	"file":"1.mp3",
	"id": "$pnr1class",
	"type":"sound",
	"volume":5
	}]
vivid totem
#

I want to put every graphic from my plugin in a folder Graphics, but then the json file cant find it. Is it possible to tell the json file in which folder the graphics are.

eternal lake
#

is the json on the same "level" as the folder?

terse void
#

putting the relative path to the image doesnt work?

#

eg: "graphics/frame1.bmp"

eternal lake
#

(i have no idea)

#

I mean, why not just put the json file along with graphics, it's just a single file

vivid totem
#

This gives the error โ€žcant find road.pngโ€œ

eternal lake
#

that's not how json works

#

"bmp":"Graphics/road.png"

vivid totem
#

I tried this before and it didnt work too

eternal lake
#

it's not possible then

terse void
#

Unless ja knows some wacky way

vivid totem
#

ok

hollow flax
#

are you sure the graphics folder is same folder with main script?

vivid totem
#

100% sure

hollow flax
#

try to rename the graphics folder name to be lowercase.

copper herald
#

Does anyone know why the Chinese train pack does not spawn trains?

pseudo nymph
#

On which rails tho? It might be using different road flags

tired magnet
#

Say if I was trying to make a nuclear bomb plugin with in-script radius modification, how would I do this? Thanks in advance.

terse void
#

Youd have to learn lua

#

Then recreate the nuclear explosion effect of the nuke

#

(you can get the graphics from world texture)

#

Then do some maths to get a custom radius

sharp path
#

How do I design on a computer?

#

Hi

terse void
#

for graphics any image editor program will do

#

for making jsons i reccomend either notepad++ or vscode

#

or just use the pca website for code

tired magnet
#

Wait, so in order to do disasters, you have to do it in lua, not json?

eternal lake
#

yes, as he said

#

json is for defining things

#

lua for actual working things

steel verge
#

working

terse void
#

or use fun

#

thats json right

eternal lake
#

working 1dot1

exotic scarab
terse void
#

god forbid

exotic scarab
#

CPU usage go brrr

tired magnet
#

So after I code the lua file, would I still use a .manifst file, pngs, and put it into a zip file?

terse void
#

yes

#

although you probably wont need many graphics

#

maybe a logo for your plugin but thats about it

hollow flax
steel verge
#

it's fun

flat sonnet
#

Why in type rewards 18x18 is available

#

But in rci not

steel verge
#

That should be unavailable too

hybrid depot
# flat sonnet

Jeez that's amazing, if only I had done it my fingers would be in pain ๐Ÿ˜‚
Good job Desolan ๐Ÿ‘๐Ÿผโค๏ธ

flat sonnet
terse void
#

no building should be that big

flat sonnet
#

it will only be useless

#

๐Ÿ˜ซ

eternal lake
#

I wouldn't put this building on anything bigger that 10x10

pseudo nymph
#

ye

bright rain
#

Does anyone have the pickle monster textures? I need the big and small ones for a project and can't find them in the world texture

terse void
#

Ja must have them lying around

steel verge
#

you bet I do

#

/remind-me 2h send smoll poccle to kingtut

dawn archBOT
#
JustAnyone#0001

check I will remind you in 2 hours

terse void
#

Don't you have a pidroid command for reminders already

steel verge
#

not yet

vivid totem
#

Is it possible to deactivate the normal categorys like for example Zones

terse void
#

No

vivid totem
#

ok

bright rain
#

It is possible to hide categories, if that's what you mean

bright harness
#

Something is happening with this plugin , instead of showing water shows a big
I had to replace it for blue concrete to pretend its water and do my dam

copper herald
vivid totem
vivid totem
terse void
#

Before all tiles would have water drawn under them by default

#

Now only tiles with the tag set to true

#

That means that basically all coastline plugins will have void

steel verge
#

horrific oil spill

pseudo nymph
tired magnet
hollow flax
copper herald
#

Is anyone having trouble with the Indonesian plugin with no trains spawning?

vivid totem
#

is it possible that a road connects with a road one level higher automatically?

#

with bridges

eternal lake
#

probably not

#

try lua maybe

vivid totem
#

Why is it not possible to override the zone category?

vivid totem
terse void
#

Plugins aren't really allowed to mess with core mechanics

hollow flax
#

no. but you can do something with gui child-parent.

bright rain
pseudo nymph
#

Looks like Pidroid reminder didnt work lol

bright rain
#

I'd say

steel verge
#

oof

#

sorry

#

let me do it right now

terse void
#

ah

#

perfection

bright rain
#

Thanks!

#

Do you also have the angry big one on hand?

earnest pendant
#

Can someone send me the in game lighthouse texture

trail furnace
earnest pendant
#

Will cropping the image be a problem?

trail furnace
#

Download the image and then crop it using pixly

earnest pendant
#

Ok thanks

earnest pendant
#

Why cant I select awards

#

??

trail furnace
#

You must make your own json

#

"Type":"awards"

terse void
#

That just means the site doesnt support that type yet

earnest talon
#

What's the problem?

vale minnow
#

its already in use

#

add override in your code or rename the id

earnest talon
#

Is it
Override - True

vale minnow
#

its stated in in the first image

earnest talon
#

In which code ?

vale minnow
#

"override":true

#

everything is stated in the error screen

earnest talon
#

Well The ID is unique !! I'm the first one to use it !

#

How's it possible that the I'd is already in use ?

vale minnow
#

you maybe reused it twice

earnest talon
#

Hmm okk

#

Thanks!

earnest pendant
#

Why my plugin taking so long to approve

#

Never mind it showed up

hybrid depot
#

how do I make this hot air balloon can fly like a helicopter in Theotown, please help me everyone

vale minnow
#

Cause its downloaded

hybrid depot
#

can you guys help me or not?

eternal lake
terse void
#

that angle does not look like a correct theotown angle

pseudo nymph
#

there is actually a nicely made balloon plugin tho

earnest pendant
#

please answer

vivid totem
#

Is it possible to make custom zones like this one (from military)

steel verge
#

yes

vivid totem
#

How? Is there a tutorial somewhere?

steel verge
#

Lua used by TheoTown is 5.2.x

#
copper herald
#

Could anyone help explain why my boat plugin textures keep getting cut out. Specifically the phillipean boat plugins

earnest pendant
#

Codes

vivid totem
#

I made my zone now but cant place anything on it. How do I tell the zone what can be build on top of it?

#

I mean things that are already in the game. I know how to do it with my own plugin buildings.

steel verge
#

add zone tag to builds

#

"zone":"yourzoneid",

vivid totem
#

yeah I know, but I want to be able to build buildings on the zone that are from default in the game

steel verge
#

Inherit those buildings and apply the zone tag to them

vivid totem
#

Ok thanks!

terse void
#

Pwarn 784451419213660191 spam

tulip rockBOT
#

Member "784451419213660191" not found.

terse void
#

oh he left

vale minnow
#

Ye

#

So 4 channels he spammed

vivid totem
#

Is it possible that a building can only be placed on one zone and nowhere else

steel verge
#

No

vivid totem
#

ok

flat sonnet
#

Whats the deferent

#

"allow diagonal":true,

#

This?

hybrid depot
# flat sonnet

all of you have gotten the update while I haven't even though I'm a beta tester too

#

๐Ÿ˜“๐Ÿ˜“

trail furnace
#

Im chilling in 1961 bc if theres bug in latest ver, im still gucci

vivid totem
#

How does claiming the diamonds from the plugins work?

#

I clicked claim but in my game with the same account I uploaded my plugin, I got nothing?

trail furnace
#

You need to reedem the code

#

If you claim, you will get a message

#

Check the message, you will see a code

#

Then go to TT click diamonds, then reedem it

vivid totem
#

My plugin got suspended because of wrong lighting. Whats wrong with my lighting?

steel verge
#

Wrong sun direction

vivid totem
#

So if I mirror it and reupload it should be fine right?

#

Like this?

steel verge
#

Might be

#

I'm a not a plugin expert nor moderator though

earnest talon
#

But Did you really made this ?

#

Because it seems to be copyright

#

Which tile did you used ?

hollow flax
open patio
#

When I download a house plugin or something, is there a way I can make it a zone so I donโ€™t have to place them one my one?

hollow flax
#

if you download from the forum showcase and you can edit that json file, only edit on the type tag of the code.

vivid totem
earnest talon
#

It's good

vivid totem
#

Thanks

earnest talon
#

Actually I was making same type of building

#

@vivid totem

#

This is one of the IT Office of an Indian IT company

vivid totem
#

My building is from paris its called louvre

vivid totem
#

Is it possible to get the json files from the military stuff?

steel verge
#

They are IAPs so no

vivid totem
#

Ok Is it possible that a zone is automatically placed around the building just like the headquarters? (thats why I wanted the code because then I could see how they did it)

steel verge
#

"zone radius" attribute probably

vivid totem
#

ok I will try it

#

How do I use it?
Like this?
โ€œzone radiusโ€:โ€zoneidโ€,

steel verge
#

It's an integer attribute for zone draft

vivid totem
#

Ok so I would do this in lua:
local z = Draft.getDraft(myzond)
and in json
โ€œzone radiusโ€: z

steel verge
#

Ah

#

I was referring to the draft as an object

#

Draft is basically the JSON object that gets converted to game object

#

In this case

#

I was talking about your zone definition

vivid totem
#

Iโ€™m sorry Iโ€™m a bit confused could you give me an example?

steel verge
#
  // Your zone definition
  {
    "id":"$myepiczone",
    //other attributes
    "radius":2 //sets zone radius
  }
vivid totem
#

ok and how does this affect the zone radius tag?

steel verge
#

It changes it in tile count

#

2 = 2 additional tiles around the building

vivid totem
#

Yes but lets say I want my residential surrounded by a specific zone, then what do I put after the โ€œzone radiusโ€ tag. The code you put above?

steel verge
#

Ah, it can only be surrounded by it's own zone

vivid totem
#

Oh so buildings cant be surrounded?

steel verge
#

Are you using custom zone and custom buildings?

vivid totem
#

Yes

steel verge
#

Then it can be done

#

just specify radius attribute in your zone definition

vivid totem
#

What would I write in my zone json when i want my resedential surrounded?

steel verge
#

"radius":1

vivid totem
#

But I would have to define in the resesdential json file what zone right?

steel verge
#

In zone json

vivid totem
#

How

earnest pendant
flat sonnet
#

How can i put light frames into ingame buildings

eternal lake
#

inherit

vivid totem
#

Ok I already asked this question yesterday however its was really late and I think I got too confused to get, what was explained to me. So here is the same question with a better explanation what I want to do:

I saw that the military and airport buildings automatically place zones around them,(I will post a picture below) and I was wondering if it is possible to achieve the same thing in my plugin.
I have two json files right now one for the zone (zone.json) and one for the road (road.json). I want the road to be surrounded by my custom zone.
(Again I will post the code of both below)

What do I write in my Road file and what in the zone file. If possible could some body write what I have to add?

I hope somebody is willing to help, this would really help with my plugin.

#

How it works for military stuff

#

The code of the files

hollow flax
vivid totem
#

? This is not really solving my problem, I already put โ€žradiusโ€œ:2 in my zone file and โ€žzoneโ€œ:โ€œmyidโ€œ in the road json but it does not create a radius

hollow flax
#

maybe use json fun or lua

vivid totem
#

so its not possible with a tag?

terse void
#

Probably something only available to base game drafts

#

Also

#

Refer to

#

For available tags

bleak shoal
#

I realized that I posted in the wrong chat so I'm reposting it here

Can someone help me? How do I write in JSON file to my plugin allow to construct a foundation like this?

trail furnace
#

Ohh, tjat

#

Lemme search it

terse void
#

"supports terrain":false

#

but this is true by default

trail furnace
#

Ah

terse void
#

so you should automatically be able to do it

trail furnace
#

Wait, wasnt it "slope aware": true?

terse void
#

theres also supports slope

#

but that should only be true if the plugin handles slopes on its own

bleak shoal
bleak shoal
terse void
#

you shouldnt add supports terrain false

#

it should be true

#

which it is by default

bleak shoal
#

OK

#

It worked, thanks A LOT bear_heart

vivid totem
#

I made a night mode for my plugin with the animation dev tool what do I do with the code I get now?

hollow flax
#

insert the generated code into "animation" tag of your plugin.

vivid totem
#

I did now the light animation is always there even at day

hollow flax
#

write "light": true, "light switching" true on your light animations.

vivid totem
#

Ok thank you it works now

vivid totem
#

Ok now I have the problem when winter and nightmode are on the light animation is overlapping the winter frame. Can I fix this somehow?

copper herald
#

Hi. The Chinese train and Turkish trains passenger trains will only spawn extremely rarely. This wasn't a problem in the past and think this may be more of a game issue. Does anyone know who the creators of theses plugins are and where I can contact them?

vale minnow
#

I believe TDCC or how it was called is discontinued

copper herald
#

Ok. It seems to be an issue with other passenger train plugins so hopefully it will still get fixed.

hot maple
#

My game can't load the plugins store

cedar stone
#

check your internet connection

hot maple
#

it great

#

i try to reset a few time but it won't work

bright harness
#

then wait a few minutes , while building
It may reconect again

cedar stone
#

Game version?

hot maple
#

1.9.76

#

p

cedar stone
#

Try restarting your deivce

hot maple
#

i just turned it on it was the same last two day

cedar stone
#

Then probs your game/ device can'5 connect to the servers

hot maple