#plugin-support

1 messages · Page 29 of 1

terse void
#

you have to enable experimental features in the settings

#

then there will be a button to go to console in the settings menu

frank crane
#

uhm under settings/other ?

#

i dont find this "experimental features

terse void
#

you have to enable debug mode first before it becomes visible

#

but it should be there yes

frank crane
#

now i see this

#

and it is chashed again :(

terse void
#

well your fill ratio is 88%

#

thats quite high

#

so probably you filled plugin space

#

damn rjoldan really just used a fullhd picture for his plugin thumbnail

frank crane
#

i have downloaded 37 plugins but yeah xd

terse void
#

some of them must be using a lot of space

#

you can use that tool to see which ones

frank crane
#

ok c:

#

thx

vernal marsh
#

the bug in the second photo keeps flashing, disappears and appears again

terse void
#

probably a faulty night animation

#

if i remember correctly this buildings should have an rgb underglow

vernal marsh
#

the way is to disable the plugin

terse void
#

that will remove the plugin though

#

if you know who the creator is you should notify him

vernal marsh
vernal marsh
earnest pendant
#

'§7

fiery olive
#

hm, seems like a very obscure bug.

#

can you tell us more about it?

flat sonnet
rocky geode
#

Just remove tho

hexed coral
#

is it possible to add ambient noises to buildings/helicopters/cars?

flat sonnet
#

?

hexed coral
#

Make them play sounds at background

#

Not on click

flat sonnet
#

Idk

I want to know this toooo

copper herald
#

Kingtut had ambiat sounds on his nature plug in so maybe he would know

eternal lake
#

not for cars

#

but you can write a lua script to play sounds for buildings

hexed coral
#

can you show me an example?

terse void
#

Let me find jas epic plugin

steel verge
#

@terse void remove the swearing and old code if you do

terse void
#

Yeye

#

I'm just gonna pull out the music bit

steel verge
#

lol

terse void
#

ok so first off

#

youd have a sound draft for your audio file like ```json
{
"id":"bluepickle.plugin.meme.song",
"type":"sound",
"file":"file.mp3",
"volume":1.0
},

#

and code would be ```lua
local bx, by, buildingDraft, songDraft

function script:init()
buildingDraft = Draft.getDraft("bluepickle.plugin.meme.building00")
songDraft = Draft.getDraft("bluepickle.plugin.meme.song")
end

function script:event(x,y,level,event)
if event == Script.EVENT_REMOVE and Tile.getBuildingDraft(x,y):getId() == buildingDraft:getId() and song then
song.stop()
bx, by = nil
song = nil
end
end

function script:nextDay()

if City.countBuildings(buildingDraft) > 0 then
bx, by = City.getBuilding(1, buildingDraft)
if song then
song.setPosition(bx, by)
end
end

if bx and not song then
song = City.playSound(songDraft, bx, by, 0.5, true)
end
end

#

this works for 1 building only

hexed coral
#

wdym, only 1 building in city can play sound?

terse void
#

this script only works for 1 building

#

if you want more youll have to figure something out

hexed coral
#

Is there a way to make custom decorations appear on custom rci zones, like with in game ones?

pseudo nymph
#

I guess soo

#

you can use your custom rci decors and use ids of in game rci decos both together

terse void
#

Is it possible to control wether a building is unlocked via lua?

#

*without using draft.append

steel verge
#

control?

#

You mean check?

terse void
#

Nah like

#

Set a building to be unlocked and not

#

A building in the same plugin

steel verge
#

For building to be locked or unlocked, you need to give it a condition

#

requirement*

terse void
#

So

#

Can that requirement be a fun variable then

steel verge
#

ye

#

that's how DSA buildings work

terse void
#

epic

#

then i can unlock it via lua

keen stone
#

Can anyone tell me why this is happening?

#
[
{
"id": "$Colflag",
"type":"animation",
"frames": [{"bmp":"Colombiaflag.png"}],
"light":true,
"light switching":true
},
{
"id": "Nocolor01",
"type":"animation",
"frames":[{"bmp": "NoLedColTower.png"}],
"light":true,
"light switching":true
},
{
"id":"white03",
"type":"animation",
"frames":[{"bmp": "WhiteTower.png"}],
"light":true,
"light switching":true
},
{
"id": "$ColpatriaTW",  
"title": "Colpatria Tower",
"type":"public",
"frames":[{"bmp":"ColpatriaTW.png"}],
"animation": [{"id":"Nocolor01","x":0,"y":-320}],
"text": "Torre",
"author": "XergioMH",
"width": 5,
"height": 5,
"influence culture": 85,
"price": 28000,
"upgrades":[
{
"id": "Nocolor20",
"frames":[{"bmp": "NoLedColTower.png"}],
"animation": [{"id":"Nocolor01","x":0,"y":-320}],
"only one": true
},
{
"id":"$Colflag20",
"frames": [{"bmp":"Colombiaflag.png"}],
"animation": [{"id":"$Colflag","x":0,"y":-320}],
"only one":true
},
{
"id":"whitet3",
"frames":[{"bmp": "WhiteTower.png"}],
"animation": [{"id":"white03","x":0,"y":-320}],
"only one":true
}]
}
]
eternal lake
#

(since when is only one a thing?)

pseudo nymph
#

he might trying to make it build once per map

keen stone
#

I made three night animations but when I upgrade it to one of them, it also appears in the daytime.

pseudo nymph
#

there should be a code for this

#

"light switching":true/false

keen stone
pseudo nymph
#

there should be another code 🤔

#

hm yeah

#

there isnt

#

but for real, what is only one: true about?

eternal lake
#

I just noticed that those are in upgrades objects

#

that means only one upgrade can be active at a tine

terse void
#

yes

#

i couldnt help with this cuz everything looks ok

eternal lake
#

No idea about that animation tho, is it also lit at night and the next day?

terse void
#

ye

#

could be a bug at this point

keen stone
#

😕

earnest pendant
terse void
#

are you doing anything io related

hexed coral
#

Is there a way to make building ignore needs/services?

#

e.g. if I want to make a building that doesn't need religion, park, etc.

#

while not changing the type

steel verge
#

Not that I am aware of

flat sonnet
#

Its possible to extract the all file here?

Like the old one

rocky geode
#

?

flat sonnet
#

New system is very confusing and time consuming

hybrid depot
#

😢

cedar stone
# flat sonnet Its possible to extract the all file here? Like the old one

In this tutorial for TheoTown, I'm going to show you how to install forum plugins for game versions 1.9.95 and above (or Android 10 and above and 1.9.82 and above)

Also go download my fill sandbox requirements plugin ;)
https://forum.theotown.com/viewtopic.php?f=73&t=7591

Time stamps:
0:00 Intro and Explanation
0:31 The "Classic" Way
2:18 Usin...

▶ Play video
flat sonnet
#

I mean it's possible move all data in theotown folder?

cedar stone
#

You can't

#

The game will onyl read the new direcotry

#

Blame google

versed kite
#

help please i'm having a problem in the game i'm not loading the list of plugins in the game. I already reinstalled the game and this did not solve the problem.

#

How can i fix this

cedar stone
#

Did you install ghe plugins in the plugins folder

versed kite
#

You understood me wrong. I mean, not the sheet where the plugins are already installed, but the sheet where you can install the plugins, which is exactly what is not displayed

pseudo nymph
#

How hard is theotown lua

cedar stone
# versed kite You understood me wrong. I mean, not the sheet where the plugins are already in...

In this tutorial for TheoTown, I'm going to show you how to install forum plugins for game versions 1.9.95 and above (or Android 10 and above and 1.9.82 and above)

Also go download my fill sandbox requirements plugin ;)
https://forum.theotown.com/viewtopic.php?f=73&t=7591

Time stamps:
0:00 Intro and Explanation
0:31 The "Classic" Way
2:18 Usin...

▶ Play video
terse void
#

if you dont its not very easy

#

id reccomend making some basic standalong lua programs first

#

before diving in headfirst and getting errors like this

#

in a 16 line script

pseudo nymph
#

woah

#

I know nothing about about coding

#

maybe after I finish university exam stuff

#

also I am wondering something, roblox lua and theotown lua. What are the differences

eternal lake
#

lua is lua, it's the same

#

but what's different is how you use it

pseudo nymph
#

hm nice

terse void
#

if you know lua youll have no problems

pseudo nymph
#

at least the game has real time editing now

#

right?

eternal lake
#

if you add #luawrapper, yes

terse void
#

yes

#

you can reload scripts in runtime

pseudo nymph
#

maybe 10 years later, when I am 39 years old

terse void
#

it wont refresh gui objects but you can use the refresh city ui plugin for that

pseudo nymph
#

I will do lua stuff for theotown

#

can I make a building requirment, require 4 of the same building?

earnest pendant
pseudo nymph
#

Usefull video

#

Btw is that intended in your channel name, gaiming?

trail furnace
terse void
#

You capitalized commercial

pseudo nymph
#

🤔

rocky geode
#

Replot your work

trail furnace
#

Wdym?

rocky geode
#

Plot it again on 2x2 template then save again

trail furnace
#

Alr

rocky geode
#

It occurred also in mine and that's just what i did

hexed coral
#

how to add night frames to a road?

eternal lake
#

the same way you would add animations to a building

#

you just have to specify frame index

hexed coral
#

how

pseudo nymph
#

There was a road plugin on forum with snow textures... It was beatiful

hexed coral
#

So how do I specify frame indexes or something?

eternal lake
#

"frame": index in building's animation definition

#

for most roads it would be 0-15

#

eg. a def with frame: 0 will apply the animation to the first frame only

hexed coral
#

okay I'll try

#

is the a code example for this/

#

?

eternal lake
#
things...
"frame": 0
}]```
hexed coral
#

Ah ok

runic geyser
#

Hello community. I would be interested in how I can create my own plugins and then share them.

trail furnace
#

Hi there

#

You can visit forum for help or watch yt tutorial vids

runic geyser
#

thanks for the tip

hexed coral
trail furnace
earnest pendant
#

Um, i have a question

#

What i have to do to make building Sprite more in the center?

vivid totem
earnest pendant
#

Ok

hexed coral
#

can I add several frames into one helicopter, like with cars? (different sprites under same id)

pseudo nymph
#

Can I do lua stuff if I learn JS?

#

a little bit

terse void
#

i guess

#

they are both scripting languages

pseudo nymph
#

I want my first lua plugin to be like this

eternal lake
#

where's the lua

pseudo nymph
#

there isnt yet

#

lol

#

oh

#

the video has the party house which makes ambiant sound

earnest pendant
#

Hello! Does anybodey know how to be able to get the plugins?

eternal lake
#

ah, lol

earnest pendant
#

And updates?

pseudo nymph
#

you can find them on forum for free

#

or plugin store

earnest pendant
#

Okey thanks!

#

Do y know where on the forum?

pseudo nymph
#

yes 1 sec

earnest pendant
#

Thank you so much😁!

pseudo nymph
#

there are dozens of plugins which are free and most likely better than plugin store ones

#

also all Rockfort's plugins on plugin store also on forum

#

and pounkiller

#

I want to add those sounds for bucket wheel I am working on https://www.youtube.com/watch?v=Y7zIZVlMtFY

Amazing Excavators at work, Trucks and Dumpers, Wheel Loaders, Bulldozers in action, Construction Machines, Mining Machines, Heavy Transports, Heavy Lifts, Hydraulic Hammers, Crushers and Attachments.
Brands: Caterpillar, Komatsu, Liebherr, Volvo, Hitachi, Terex.

@Mega Machines Channel is ready to travel all over the world, make videos and pr...

▶ Play video
#

this is lua right?

pseudo nymph
#

trying to do something

#

tested this

#

why

#

btw what is the difference between noise and sound codes

#

I guess for adding sound to something I need to use "getXY ()" with "playSound (sound, x, y[, volume=1[, loop=false]])" this stuff

eternal lake
#

sadly that's not how lua works

pseudo nymph
#

dang it

eternal lake
#

square brackets in documentation mean optional

pseudo nymph
#

I need to use i = stuff, right?

eternal lake
#

you need to actually call the function

eternal lake
pseudo nymph
#

¯_(ツ)_/¯

eternal lake
#

you also include the module name before the function

pseudo nymph
#

hmm

eternal lake
#

depends on what do you want to achieve

pseudo nymph
#

I want to add sound to a building

#

kind of like party house by ja

#

once you get away from it, the sound will drop

eternal lake
#

get coordinates of your building, get your current coordinates, write a complicated function to calculate distance, ????, profit

pseudo nymph
#

oh my...

eternal lake
#

I would recommend starting with something simpler

pseudo nymph
#

soo ja made those all stuff just for a party house with strange sound effects

#

thought it was easy stuff

eternal lake
#

you know, you won't make a script with like 2 lines

pseudo nymph
#

:feelsbadman:

#

what should I make for first?

eternal lake
pseudo nymph
#

can I make something like.. uhm treeplanting stuff in game

eternal lake
#

play around with the functions and what different modules have to offer

pseudo nymph
#

soo I should try everything

#

I see on the tutorials

eternal lake
#

not exactly, just practise some basics

pseudo nymph
#

this is an end code right?

eternal lake
#

an end code??

pseudo nymph
#

a finished one

eternal lake
#

yes

#

you just have to call it from json

pseudo nymph
#

it just shows a text and thats it

eternal lake
#

yes

#

and shows a toast on startup

pseudo nymph
#

if I change local counter to 15 text will popup again while playing?

hexed coral
#

Damn I need to get into lua sometime

#

Will it be hard if I have medium knowledge of python?

eternal lake
#

if you set the counter var to 15 the text will just start counting at 15 instead of 0

pseudo nymph
#

ohh alright

#

what is the noise code for?

eternal lake
#

noise code?

pseudo nymph
#

is that texture noising?

#

1 sec

eternal lake
#

No idea

#

perhaps don't touch it

pseudo nymph
#

why tho

eternal lake
#

idk what could it do

pseudo nymph
#

maybe it does what ja's party house do

eternal lake
#

what?

pseudo nymph
#

noise

#

omg

eternal lake
pseudo nymph
#

awkward moment

#

lets see what it does

#

it will be my first thing

eternal lake
#

go ahead

pseudo nymph
#

oh wait

#

it doesnt even have a mp3 file name place, it is probably something else

eternal lake
#

obviously

#

maybe it's for getting noise influence, idk

#

not sure why would you need that function if there's Tile.getInfluence or something like that

pseudo nymph
#

still gotta try but how do I implent it to a building

eternal lake
#

whay do you want to do with it?

#

ahwy

#

what

pseudo nymph
#

I am going to use this ability one day, was searching for that code but couldnt find it

eternal lake
#

-- let's move to dms so this place doesn't get flooded

terse void
#

for noise influence

pseudo nymph
#

yep thanks

steel verge
#

Not that noise

terse void
pseudo nymph
terse void
#

it plays a sound in a location on the map

#

it returns a object you can use to stop and play the sound

#

and make it play in a diffrent location

pseudo nymph
#

does it increase or decrease

#

I mean sound

terse void
#

they do get played from a certain location in your city

#

just like enviromental sounds

#

if you want to change the volume thats in the draft

#

as for changing volume during runtime, idk

pseudo nymph
#

soo still

#

there is not a possible way to make sound dynamic

#

unless you tryhard

terse void
#

you want to change the volume dynamically?

pseudo nymph
#

yes

terse void
#

¯_(ツ)_/¯

#

maybe its possible

pseudo nymph
#

it should be but complicated, thats what kulche said

#

can it be implented to game with an update? It is an awesome feature

terse void
#

toast the contents of a sound object and find out

#

maybe it exists

pseudo nymph
#

ja knows

#

pfind-plugin party house

tulip rockBOT
#
**Description**

A plugin which adds a simple party house award with a small surprise.

**Price**

30 diamond

**Author**
**Minimal version required**

1.9.06

terse void
#

that doesnt change volume

pseudo nymph
#

hmm

terse void
#

i would know i have a copy of the code

pseudo nymph
#

then how it works?

#

is it complicated, just answer this

terse void
#

well

#

its undocumented

#

so thats why i said toast the contents of the sound object

#

to find out whats possible

pseudo nymph
#

one off question too

#

can I make a building with auto adjustable performance indicator which player cant change manually but it is connected to an influence(?)?

terse void
#

you can set a buildings performance

#

so i dont see why not

pseudo nymph
#

like a building that produces energy on the amount of produced trash

#

I know there should be a code for getting amount of trash info

#

ops there isnt, only isfullofwaste

#

we can cheat too

terse void
#

thats a good way to end up on the op plugin list

#

besides

#

youll make lobby sad

pseudo nymph
#

yep

#

let me delete that soo none will ever try to

#

is info_waste missing or..

terse void
#

those are for opening the city info screen

#

why not use happiness waste

terse void
#

or do you want it dynamic

pseudo nymph
#

I want it dynamic

#

this is a waste disposal and also an energy producer in my country

#

its actually aim is destroying trash but also makes energy for side product(?)

#

it uses gasses of the trash, more trash more energy

#

here is another idea, while looking at the lua codes of TT I found that possible

#

a good idea for a lua plugin is global warming, it can count cars, industrial workers and people with their own increase ratio for global warming. Negative effects are trees disappearing, pollution at random locations and sea pollution (yellowish water)... how to prevent it is planting more trees and using clean energy

#

the only thing I need to learn is adding them own increase ratios, trees despawning, random pollution stuff

#

for planting more tree being possitive effect, I guess there should be a code for counting trees

#

or using nature influence

#

but I mean, it is sooo unnecessary thing

#

not even a good idea actually. Whoever wants things like this. Waste of time

terse void
#

The possibilities are endless

#

*except when the api doesn't cover it yet

hexed coral
#

I would play with that mechanic

pseudo nymph
#

oh my

#

my math, I forgot everything

#

16√2

#

is that it?

earnest pendant
#

What size of image would reccomend for 1x1?

fiery olive
#

But if I remember correctly it's 32x16

earnest pendant
#

Why my plugin floats

#

And i start to give up now

terse void
#

you have your handle set incorrectly

#

is your image properly cropped?

earnest pendant
#

I use 32x32

terse void
#

is there no empty space around the texture?

#

to the left and bottom etc

pseudo nymph
#

prepare your eyes guys

#

it might even burn, I am gonna post the first lua thing I wrote. Kulche helped me but I am rewritting again

#

I have problem with i

#

open whit your own risk

#

it actually works but not exactly

pseudo nymph
#

at least the game is opening without errors

earnest pendant
hexed coral
#

The base looks wrong what's the size

terse void
#

The stepping for the base is incorrect

earnest pendant
#

I give up

#

:(

pseudo nymph
#

dont

pseudo nymph
#

is this true?
City.getBuilding(a,'the thing')

#

and what is index for

terse void
#

Index is to pick which one you want

#

For example

#

You have 5 buildings with ID 'the thing'

#

With an index of 2 you'd get the second building with that id

pseudo nymph
#

with the index of a I can hold them all right?

terse void
#

no

#

youd have to use a loop

#

besides this only gets the x y positions

#

to collect all their positions

terse void
#

id use script:event in the script linked to your sandspider building to catch EVENT_FINISHED events

#

then increment the count with that

#

and decrement it when EVENT_REMOVE happens

pseudo nymph
#

Oh alright

pseudo nymph
#

this is easier

terse void
#

ah yes

#

the ideal scripting language

#

also

#

math.randomseed(os.time())
is supposed to be in script:init

#

you shouldnt set that seed again

#

and you dont use the result of the math.random on the next line so its useless

pseudo nymph
#

ohh

#

wow

pseudo nymph
#

can I change script event's x and y

#

like function script:event(thingX, thingY, level, event)

tranquil trellis
#

How fix?

terse void
#

put "draw ground":true

tranquil trellis
#

In JSON?

terse void
#

yes

tranquil trellis
#

Thanks.

pseudo nymph
#

Me when I invent vsco girl but in theotown with lua

#

is a cool idea but I cant draw those

pseudo nymph
#

can I get a decal's x and y with lua? I cant find it in city module

terse void
#

do you know its id?

pseudo nymph
#

I am gonna make it

#

so yes

#

you will say use event placed right?

terse void
#

well if its your draft yes

#

that would be the most efficient solution

pseudo nymph
#

and event removed, okay then

#

first I wanna do the pulverizer or whatever

split plinth
#

so where do i put this

pseudo nymph
#

save it and put it on a file with the sample_bmp.png

split plinth
#

ok

split plinth
pseudo nymph
#

yep but dont forget to change for both png and the bmp name in json

split plinth
#

also i get a json file using the theo thown plugin creator?

#

@pseudo nymph

terse void
#

in case you want to adjust it yourself

#

download the plugin zip for the entire thing

split plinth
#

so i imported my plugin to theo town i dont see it

#

(i also put in a code)

#

/[
{
"id": "$pcw_0ae84e1069f300",
"type": "residential",
"author": "Plugin creator website 3.0 & FL1ight",
"width": 1,
"height": 1,
"frames": [1
{
"bmp": "New Piskel.gif"
}
],
"level": 1,
"people": 1
}
]
"id":"$pcw_0621f623c194",
"type":"residential",
"author":"Plugin creator website 3.0 & FL1ight",
"width":1,
"height":1,
"frames":[{"bmp":"sample_bmp.png"}],
"smoke":[{"id":"$smoke07","x":51,"y":37}],
"level":1

#

o.o

terse void
#

you did it wrong

#

should be json [ { "id": "$pcw_0ae84e1069f300", "type": "residential", "author": "Plugin creator website 3.0 & FL1ight", "width": 1, "height": 1, "frames": [{"bmp": "New Piskel.gif"}], "level": 1, "people": 1 }, { "id":"$pcw_0621f623c194", "type":"residential", "author":"Plugin creator website 3.0 & FL1ight", "width":1, "height":1, "frames":[{"bmp":"sample_bmp.png"}], "smoke":[{"id":"$smoke07","x":51,"y":37}], "level":1 } ]

steel verge
#

"frames": [1?

terse void
#

wait

terse void
steel verge
#

wait a minute

#

I've seen this one

#

"smoke":[{"id":"$smoke07","x":51,"y":37}],

terse void
#

also

#

gifs cant be loaded can they?

steel verge
#

ofc they can't

terse void
#

imagine the texture space

steel verge
#

they're useless in terms of technology

terse void
#

could be to make animation easy

#

butnot really

steel verge
terse void
terse void
steel verge
split plinth
#

ok thanks

pseudo nymph
#

lol

split plinth
#

also how can you write json code on andriod like is there any app you have to use

terse void
#

any text editor will do but theres some dedicated apps too

split plinth
#

@terse void so i tried and it did not save the code i put in

split plinth
#

nvm

#

ik why it dident work

#

also

#

is this right

#

[ { "id":"$sample.plugin.unique.id.res00", "type":"residential", "author":"Lobby & theotheoderich", "width":1, "height":1, "frames":[{"bmp":"sample_bmp.png"}], "smoke":[{"id":"$smoke07","x":50,"y":45}], "level":1 } { "id": "$pcw_0ae84e1069f300", "type": "residential", "author": "Plugin creator website 3.0 & FL1ight", "width": 1, "height": 1, "frames": [{"bmp": "New Piskel.gif"}], "level": 1, "people": 1 }, { "id":"$pcw_0621f623c194", "type":"residential", "author":"Plugin creator website 3.0 & FL1ight", "width":1, "height":1, "frames":[{"bmp":"sample_bmp.png"}], "smoke":[{"id":"$smoke07","x":51,"y":37}], "level":1 } ]

pseudo nymph
#

you dont need the first one

#

{
"id":"$sample.plugin.unique.id.res00",
"type":"residential",
"author":"Lobby & theotheoderich",
"width":1,
"height":1,
"frames":[{"bmp":"sample_bmp.png"}],
"smoke":[{"id":"$smoke07","x":50,"y":45}],
"level":1
}

#

and also you cant use gifs

#

third one's frames doesnt seem right too

split plinth
#

ok

fiery olive
#
[
{
"message":"Can you please write in this? It's not required but it'd take up less space and would be easier to read."
}
]
terse void
#

what

#

for comments?

fiery olive
#

i just thought that it would be nicer if they wrote code in these kinds of things but now looking back at it, this comment really wasn't necessary

split plinth
pseudo nymph
#

nope

#

it will cause overwrite thingies

#

I may help you but give me a lot of time

split plinth
terse void
#

so you can use them

#

just do // and the rest of the line will be ignored

fiery olive
#

i was talking about that ``` thing

pseudo nymph
#

he meant for discord

terse void
#

ah

rocky geode
exotic scarab
#

10/10

steel verge
#

Pjsk py

import os
def Windows_Diagnostics()
  print('Looking for problems')
  waitTimer(20000ms)
  print('Unable to fix the issue.')
tulip rockBOT
#
  File "<string>", line 3
    def Windows_Diagnostics()
                             ^
SyntaxError: invalid syntax

steel verge
#

idk, seems broken

mellow raft
#

id just stole that meme

pseudo nymph
#

Can somebody tell me how can I take information of total garbage in a city, please explain it like how you explain things to a 3 year old

short cedar
#

Having some trouble uploading my plugin to the store. It says syntax error and on the app it says the "frames" part is the error.

pseudo nymph
#

Remove the last,

#

"draw ground" :"true"

terse void
#

classic trailing comma

#

have you spelled your image name correctly?

short cedar
#

yes i have

terse void
#

Maybe it's the spaces in the image filename

#

That can cause issues for programs

short cedar
#

ok I'll fix it

pseudo nymph
#

dont forget to remove ,

short cedar
#

Thanks, it worked! 🙂

pseudo nymph
eternal lake
#

lol

terse void
#

"why would you do that"

fiery olive
#

shut up dyno

pseudo nymph
#

and I am trying yet simpliest lua

exotic scarab
pseudo nymph
#

nevermind, I found something***

split plinth
#

and also though it was real

pseudo nymph
#

I might have found a bug in ian's anim dev tool. Reported

earnest pendant
atomic sigil
#

Why when I enter the plugin it wrote WiFi error???

pseudo nymph
#

are you from another country or using VPN

atomic sigil
#

china

#

not using vpn

pseudo nymph
#

can you open gallery?

#

TT galery

atomic sigil
#

k

pseudo nymph
#

hmm okay then

#

I will open my game soon, let me see

atomic sigil
#

k

#

hi?

pseudo nymph
#

ops sorry forgot about you and closed the game

#

give me some more time, gotta edit somethn

atomic sigil
#

k

#

hi?

pseudo nymph
#

I dont have the best computer

atomic sigil
#

i not use computer

#

i use phone to play theotown

pseudo nymph
#

my plugin store working

atomic sigil
#

k...

#

then wut can i do?

pseudo nymph
#

I dont know

vivid totem
trail furnace
#

At settings

hexed coral
#

How do I pass null (or something) to animation? What's the syntax

#

I want to make an upgrade which erases animation

#

I guess it's not possible

#

(passing null in animation)

#

I tried to make an animation draft without frames and change animation to it when upgrading

#

maybe thats because of preview frame idk

#

can someone help me?

#

(preview frame is just random image for testing)

#

is there any solution?

terse void
#

try putting "animation":null in the upgrade

hexed coral
#

okay

terse void
#

¯_(ツ)_/¯

#

was worth a shot

#

oh wait

#

what if you do

#

"animation":[]

#

i feel like thatd work

hexed coral
#

Okay I'll try that

earnest pendant
hexed coral
terse void
#

hm

#

guess not

hexed coral
#

😔

#

I guess the great pickle doesn't accept sacrifices

#

ah

#

IT WORKED

wicked frigate
#

:(

hexed coral
#

I added a thing

#

I just repeated the frame definition in upgrade lol @terse void

#

and it actually worked I guess

terse void
#

¯_(ツ)_/¯

#

idk

hexed coral
#

Isn't it beautiful when you put a random thing in code and it actually works

steel verge
#

erksmit, 2021

terse void
#

wouldnt be the first time

fickle reef
#

Hey, somebody here know if I can do a plugin for TheoTown from my cellphone and without programming?

(sorry for my english, im learning :D)

#

Ping: @terse void

(if do ping is not legal in Theonia, im sorry)

terse void
#

It is possible to make plugins on mobile but you do have to learn how to make and edit JSON files

trail furnace
fickle reef
round sail
#

Can I fix it somehow by myself?

#

Plugin can't be downloaded due reason on screenshot. It happened to some of those I wanted to use. :/

pseudo nymph
#

Did you download any forum plugin

round sail
#

Yes, I've got some of those

pseudo nymph
#

You might have that plugin downloaded from forum

round sail
#

Strangely folder for plugin disappeared

pseudo nymph
#

hmm

round sail
#

Any ideas?💡

hexed coral
#

dude does the file named "migration.txt" give you any slight ideas?

round sail
#

There's directory written but I've not got it created -_-

hexed coral
#

weird

#

btw do you know about TT file manager?

round sail
#

Never heard about it

hexed coral
#

try finding it

#

it's somewhere in.. 1 second

#

so I am trying to put direction-dependant animations on a fence, first one works ok but the second one crashes the game (and that animation draft is fine)

#

how do I fix?

wicked frigate
#

Pfaq file

tulip rockBOT
#
Files

TheoTown files are located under such directories:

▪︎ Windows: C:\Users\(insert username)\TheoTown
▪︎ Linux: /home/$USER/TheoTown
▪︎ MacOS: /user/TheoTown
▪︎ Android: /storage/emulated/0/Android/data/info.flowersoft.theotown.theotown/files
Reinstalling the game for Android will delete all files, unless you decide to keep the files when prompted by uninstaller.

Alternatively, you can access the files through in-built TheoTown file manager, accessible through the in-game menu.

You can find your plugin, music, region and city files there as well as logs for debugging purposes.

wicked frigate
hexed coral
round sail
#

Thank you @hexed coral, works now

hexed coral
#

btw, I use frames:[null]

#

no problem

#

I am testing some thing with fences

#

and to test it

#

I made an animation which should look like a fence but with only animations (fence itself doesn't have frames)

#

it returns this mess when I disable frames:[null]

#

the bottom right is fence itself

#

the left part is both animation+frame and they overlap perfectly

#

but right one doesn't work

#

does anyone know how to help?

#

nvm

#

forgot to change a thing but still

#

nah, "fixed the code" and it still looks like that

#

bruh

#

it broke my internet connection tho

#

works perfectly

#

however fences don't seem to enjoy null frames

split plinth
#

So if i want to make a drop ship in theotown can i use this code?

hexed coral
#

a

split plinth
#

wait

#

wrong one

#

wait do i have to have a specific code to make something fly in theotown

#

||im just trying something. im still learning code||

#

||also i took example from somewhere else||

#

this here

#

how can i make it move i meant

hexed coral
#

do you want for them to have some hard lua functions? or just to fly around and thats all?

#

do you need it to fly up?

split plinth
#

just to fly

#

from point a to point b

#

which will have some landing pad at point a and b

#

move like this: A----------------------->B <stay here

hexed coral
#

then I personally can't help because I am bad at lua

split plinth
#

cant you use normal code

#

or do you need lua to make something move in theotown if so then nvm

hexed coral
#

I know python and did some slightly advanced stuff like worldgen but sadly I am not fluent in lua at all

#

well

#

you can use json and make it a helicopter

#

it will fly around

#

but it won't move from a to b

split plinth
#

ok ill see a heli then

#

thats ok too

hexed coral
#

I made my airships like that

#

sadly speed can't be changed

split plinth
#

but you know the drop ship can be like a heli to it can hover of move like a heli

#

so ill use that

hexed coral
#

yeah

split plinth
#

ok thanks

hexed coral
#

helis are the best option for flying stuff for now

split plinth
#

yes

#

{
"id":"$my_heli00",
"type":"helicopter",
"frames":[{"bmp":"heli.png","w":38,"h":18,"count":4,"handle x":18,"handle y":16}], // 4 frames for the helicopter, handle defined the pivot point
"animation":[{
"id":"$rotor00","x":0,"y":-10
}]
}

{
"id":"$rotor00",
"type":"animation",
"frames":[
{"x":360,"y":526,"w":38,"h":9,"count":4,"handle x":18,"handle y":5},
{"x":360,"y":512,"w":38,"h":13,"count":4,"handle x":18,"handle y":6}
]
}

#

how do i combine those code?

#

nvm

hexed coral
#

rotor is not necessary

hexed coral
#

is it possible to have a fence with several frames which can be changed using arrows?

lean flower
#

Does anybody knows why the "Farm Houses" plug in doesn't work, it says there's an error

#

Plug in from KINGTUT

split plinth
bright rain
#

I'll check it out

#

Works fine for me, so it must be something on your end

lean flower
#

Because honestly I am not sure

bright rain
#

Ok

lean flower
# bright rain Ok

Hey man I just checked and the plug in is running fine now, I had an error that said something like "Farm.0211" is already in use" but I deleted it and got it back and it works just fine, thanks for replying do. Sorry for the bother

bright rain
#

Ok, glad it's working now

hexed coral
#

Is there a way to have several frames in fences and ability to choose between them with arrows?

#

I would like to use frames:index in animations with them

hexed coral
#

I guess I can't

#

I'll need a lot of code then...

hexed coral
#

is there a way to have several indexes in "frame":index??

#

If I want for my animation to show up when frame is 1 or 2, as example

short imp
#

I need some beginners articles on designing and coding plugins, can you like some nice one?

terse void
north violet
#

in XX x XX are the pixel arts of trees made? I mean the size tree is high

pseudo nymph
#

what was the game console command for .plugin files?

steel verge
#

export:"my epic plugin"

short imp
#

Does anyone know what the problem is?

#

Full code

terse void
#

You have a trailing comma

#

So

#

Remove the last comma

#

Because it expects another value if it's there

short imp
#

Oh, ok

#

Same problem with the influence?

terse void
#

no just the commas on the last lines

hexed coral
#

What if a plugin adds something which already exists in other plugins in some form

#

But it's not exactly the same

pseudo nymph
#

Like 2 burj khalifa plugin but made by 2 different person, or what

#

Just use different ids

#

It is not a problem to have two of the same building by 2 different authors

short imp
hexed coral
#

@pseudo nymph I mean if I make something, but there is already a plugin with same idea

#

Like people prop

pseudo nymph
#

I am not sure because people prop is an easy to do

#

Only one of it is enough imo, why would you make another variant of it

hexed coral
#

Idk there is one as landscape level 1 as I remember

#

I just made an example

hybrid depot
#

Why, my plugin has not been approved yet Since 2 days ago Usually not this long.... Why moderator why ????

trail furnace
#

Just wait

#

Its not like its 1 week

upbeat quail
#

Why my 2 plugins are not approved ? I've waited for a long time

hexed coral
#

can I have several indexes in "frame"? (animation)

#

something like "frame":[1,2,3]

hexed coral
#

HOW

upbeat quail
#

Tomorrow i will show u. Now is 0:29 in my country and i have gone to bed 😂😂

hexed coral
#

okay

hybrid depot
#

why moderators why ??? previously you guys approved this plugin ... why not now ??? What is the problem

#

This has the function of collecting waste ... the same as the other waste disposal buildings

grand spruce
#

The store mods don't tend to be on here. I'd ask on the froums

hybrid depot
#

So what should I do 😨

grand spruce
#

ask on the forums

hybrid depot
#

Ok i will try it

copper herald
hybrid depot
#

Never !

vivid totem
hexed coral
#

I heard there are diagonal fences... are they possible in vanilla and can someone give me the frame example for them?

pseudo nymph
#

Nobody even checks forum anymore and still complains about plugin store prices. It wont change anything if you post it on forum for people who are using there

short imp
#

What’s the code for making making this land where the plug-in is transparent?

pseudo nymph
#

"draw ground":true

#

Btw it has too much noise

vale minnow
#

looks burned

#

and dont upload one flag

#

plus flag sets arent popular anymore

short imp
short imp
vale minnow
#

still people dont like it anymore

short imp
#

Well I am working on more things, I just want to make the pack better especially after abandoning it for 5 months

vale minnow
#

or make some set with that flag and buildings / other deco

short imp
vale minnow
fiery olive
#

proof that flags are overdone

vale minnow
#

i did my final update of my set

pseudo nymph
#

Turkish flag?

hexed coral
#

how can I enable zonetool (or how is this called) for my building?

#

my building is 1x1 decoration

pseudo nymph
#

maybe "zoneable":true?

hexed coral
#

doesn't work

eternal lake
#

"frame alignment area" if that's how it's called

hexed coral
#

it works... just acts like terrain but probably fixable

#

I remember seeing something about random frames on forum

pseudo nymph
#

u can use auto color too but it is a bit handy for buildings

hexed coral
#

wdym auto color?

eternal lake
#

"color" attribute for animation objects

hexed coral
#

so it just changes animation color?

eternal lake
#

yes

hexed coral
#

idk pretty useful but not exactly what I need now

#

"random frames": false and "random frame": false (just to be sure) and it didn't work

#

I guess I can't combine selectable frame and zonetool?

eternal lake
#

you can

#

perhaps

hexed coral
#

huh

#

how?

#

oh there is "selectable frames" parameter

#

imma try

eternal lake
#

how does your data look like

#

json

eternal lake
hexed coral
#

it's spaghetti

#

(it's a concrete tile, which height is determined but chosen frame)

eternal lake
#

I have no idea why doesn't it work then RWhotonyourass

hexed coral
#

can my plugin get disapproved for this?

eternal lake
#

why?

hexed coral
#

why would it get disapproved or why did I do that?

#

oh and this will get 2Xed lmao :D

eternal lake
#

both lol

#

I mean, I did similar things too

hexed coral
#

I have window decoration

steel verge
#

It wouldn't

#

Jjsk sh cat /home/ubuntu/dsa/rocket\ animation.json

chrome viperBOT
#
			{"bmp": "rocket_sdi.png","handle y":3890},
			{"bmp": "rocket_sdi.png","handle y":3900},
			{"bmp": "rocket_sdi.png","handle y":3910},
			{"bmp": "rocket_sdi.png","handle y":3920},
			{"bmp": "rocket_sdi.png","handle y":3930},
			{"bmp": "rocket_sdi.png","handle y":3940},
			{"bmp": "rocket_sdi.png","handle y":3950},
			{"bmp": "rocket_sdi.png","handle y":3960},
			{"bmp": "rocket_sdi.png","handle y":3970},
			{"bmp": "rocket_sdi.png","handle y":3980},
			{"bmp": "rocket_sdi.png","handle y":3990},
			{"bmp": "rocket_sdi.png","handle y":4000},
			{"bmp": "rocket_sdi.png","handle y":4010},
			{"bmp": "rocket_sdi.png","handle y":4020},
			{"bmp": "rocket_sdi.png","handle y":4030}
		]
	}
]

[status] Return code 0

Page 312/312

hexed coral
#

height*

eternal lake
hexed coral
#

so this and this are same draft

#

but since I can't specify several numbers in "frame:index" (at least I didn't find it anywhere)

hexed coral
#

ah it is

eternal lake
#

code for rocket flying up I guess

hexed coral
#

I imagined it being long but

#

okay I guess I may stop worrying now

hexed coral
steel verge
#

Those definitions take up like 1/3rd of dsa size

#

Should refactor

hexed coral
#

is there a file size limit for plugin upload?

#

It's very unlikely to be reached by txt files, I am just curious

steel verge
#

Yes

hexed coral
#

what is it?

steel verge
#

600 gb

#

probably less

hexed coral
#

oh god

#

lmao

steel verge
#

Yeah, I need to clean this up

hexed coral
#

how much does DSA weight?

eternal lake
#

I mean, can't you use "move y" in animation object?

hexed coral
#

^

eternal lake
#

idk how it works now so can't say for sure

hexed coral
#

but

#

Does it actually move something?

#

can you display rocket flying up without massive array?

#

array*

steel verge
eternal lake
#

¯_(ツ)_/¯

pseudo nymph
terse void
steel verge
#

I am not aware of any lua api functions which are capable of that

terse void
#

i know how

#

abuse the heck out of runtime.postpone

vale minnow
hybrid depot
pseudo nymph
#

Does puttin script in type draft or a casual json changes anything?

#

Anyone?

hexed coral
#

I realised why I had crashes when putting "frames"[null] in fence script

#

it needs two frames

white pike
#

Can someone can help me with code?

vale minnow
pseudo nymph
#

I moved the topic to lua chat

#

It is going some time have an answer tho

terse void
#

speaking of lua chat

#

#plugin-lua when

pseudo nymph
pseudo nymph
#

now I am gonna try to write the 9th code thats going to fail again

pseudo nymph
#

car reached and spawncar was way simplier to thing, using count to count buildings and give income is harder

hexed coral
#

is there any way to make DrawText dependant on window dimension?

#

it's nice with fullscreen

#

but deforms if I change window size

terse void
#

i would check if youre on pc first

#

if yes, get the screen size every frame and adjust

mellow raft
#

Does TT support file io?
#Lua

steel verge
#

no

terse void
#

There's a function for getting a file storage table

hexed coral
#

why does playtime return zero on phone?

copper herald
#

The easy parking plugin now no longer works with the beta update. Has anyone found a solution?

hybrid depot
#

How to fix this bug?? I've been trying to fix it long ago.. but it doesn't work :(

trail furnace
#

(Just make the height and width bigger)

cedar stone
#

Try make it samller, or tweak the coordinates to make it in the (probaboy 2x2?) size witbout cutting things out

thin agate
#

Suggestions or idea...
Sorry I mean
Building more plug-in like particular buildings for governor, president, parliament & their vehicles.

pseudo nymph
#

simon's wip modulable plugin

hybrid depot
pseudo nymph
#

Is there some changes to ship textures?

#

Might try to increase "w" :64 but not sure

hybrid depot
pseudo nymph
#

no I mean

#

to game's code for ship textures

pseudo nymph
hexed coral
#

Why is TheoTown.playsound() cropped on mobile?

#

I have a looped sound

#

and it works ok on pc

#

but on phone it starts playing then cuts off and starts playing from the start, like half of it is gone

#

is it a code bug or the sound file size is too large?

steel verge
#

Some memory limitation or something

#

No one knows

hexed coral
#

bruh

wheat ginkgo
#

‥‥‥

#

why

hexed coral
#

I see tt has some problem with ships

wheat ginkgo
#

a

#

how fix it

hybrid depot
cedar stone
#

He said to increase the 'w" number

gleaming elbow
#

You guys know any good plug-ins that act like Building Packages: More verity of buildings looks?

pseudo nymph
hybrid depot
#

Oh i see ... :'l

copper herald
hybrid depot
#

gosh this doesn't want to go away... even though I've fixed the size of the w and h and the template (2x2) but the ship is still like this.... i beg the developer please fix this ship problem :'(

hexed coral
#

Is there a code to allow tiles to connect to each other like roads?

steel verge
#

no

hexed coral
#

bruh

#

oh and is there any way to disable that horrible audio cropping?

#

file compression didn't help

steel verge
#

no

hexed coral
#

:(

steel verge
#

look, I got no clue why

hexed coral
#

what's that

steel verge
#

java

#

check your memory consumption when you use it

#

might be related to garbage collection

#

though I doubt it

hexed coral
#

how do I check

#

also it happens only on phone as I already said

steel verge
#

open debug mode and observe memory while the sounds are being played

hollow flax
#

loadedSounds.size() ?

#

is that for a limitation?

steel verge
#

loadedSounds is an array of drafts

#

shouldn't be

#

maybe the android memory management aggressiveness deletes the sound instance

terse void
#

the heck is the synchronized keyword

steel verge
#

it's a surprise tool which helps us avoid race conditions

terse void
#

you mean you want to avoid them?

steel verge
#

Yes

terse void
#

sounds like unoptimized to me

steel verge
#

sounds like written in 2016

terse void
#

certainly doesnt sound like a me problem

pseudo nymph
hexed coral
#

thanks

steel verge
#

@hexed coral what device are you using?

hexed coral
#

xiami MI A1

#

kinda old

#

I have no much memory left but there was free space when tested

#

I was going to test on an emulator

steel verge
#

List of devices affected by sound cut-off:

  • Xiaomi MI A1
  • Xiaomi Poco F1 w/ custom ROM
  • Oppo A137
hexed coral
#

is this a joke

steel verge
#

no

#

this is an investigation

#

Sounds like not my problem

hexed coral
#

the same thing happens on emulator

steel verge
#

how big is your file

hexed coral
#

original is slightly smaller than 1mb

#

then I tried compressing

#

and it's 200kb

#

it didn't help though

steel verge
#

no idea

#

probably libgdx bug

hexed coral
#

so one of tiles is being hidden by a fence, I know why this happens but is there a way to fix?

earnest pendant
#

no

hexed coral
#

How do I use color parameter in animations?

#

What color format does it take?

bright rain
#

probably RGB

#

Although I've never done color in animations before

pseudo nymph
#

TT vanilla harbors use color feature, you can find their json in plugin documendations on forum

terse void
#
"color":{"r":255,"g":255,"b":80},
#

so yeah

#

joinked it from harbors.json

eternal lake
#

or define a color and call it with "color":"$colorid00"

hexed coral
#

I can't apply animations to frames themselves? animations only?

eternal lake
#

what?

hexed coral
#

wait

hexed coral
#

my bad

#

confusing words

#

I meant if can I use color attribute on frames (not animations)

eternal lake
#

you probably can't

#

if it doesn't work then you can't

hexed coral
#

okay, thanks for the info

eternal lake
#

you're welcome

bright rain
#

What do the harbors use color for?

eternal lake
#

for the crane things

#

if you take a look at the world texture they are white

winged urchin
#

Help

fiery olive
#

remove the unused space in the red and green light animations

graceful wolf
#

Hello, I have a question. I had many many plugins downloaded or bought, but I had a break. I haven't played for a year almost. Now, when I opened TheoTown, I was left with one plugin andbthe restb is gone. At least the in-game purchases from store remained. What should I do with lost diamonds on plugins, which I cannot get back? And why I cannot watch adds to get them back?

terse void
#

have you checked in game if they are really gone?

#

old plugin might no longer show up in the plugin menu because of some changes

#

but they will still be loaded

graceful wolf
#

No, they disappeared from my owned plugins

terse void
#

ah store plugins

#

first time ive heard that happen

upbeat quail
#

how to add night animation on slope frames ? 😦

eternal lake
#

@upbeat quail stop spamming, if somebody knows how to they will respond

pseudo nymph
#

the person knows the answer is inactive user

odd jackal
#

How do you make a plug-in with an iPhone?

pseudo nymph
#

Use file manager

wicked frigate
#

I think he meant how to make plugin in iPhone

pseudo nymph
#

he needs a drawing app and a json viewer. He can use online json websites

pseudo nymph
#

I have it

bright rain
#

Yeah, they send that everytime you submit to the store

naive spire
#

Is there a way that I can make plugins on a chromebook?

steel verge
#

it should be possible

naive spire
#

what should i use

split plinth
#

piskel

steel verge
#

I have no idea what programs Chromebooks have

naive spire
#

are they free to use by chance

split plinth
#

yes free

#

its more better than glitch i think

exotic scarab
#

I think Chromebooks have Google Play store, right?