#plugin-support

1 messages · Page 25 of 1

exotic scarab
#

e

trail furnace
#

Can someone send me step by step how to make a json

#

e

exotic scarab
#

Emmm... Just a moment...

#

The JSON core I use for my testing plugin

#

Every JSON starts with [{ and ends with }]

trail furnace
#

We need to code first to make json?

exotic scarab
#

"id", "type", "author", "width", "height", "frames" and "level" are important for a plugin

#

The "id" needs to be unique

#

Like "id": "plsjsonwork_Imdyinginbugsplshelp_123$",

#

"frames" is where the game will get the building sprite, for write the name, you need use [{ "bmp": "example.png" }],

wise python
#

You know you can send him the link?

exotic scarab
#

Emmm.. ah yes the forum

#

?

#

I only know about the forum

wise python
#

.

exotic scarab
#

Well, you can search in the forum for more documentation

wise python
#

I recommend that you must learn about fun and lua

trail furnace
#

;-;

wise python
#

Jk

exotic scarab
#

Yeah, but that is the hardest part

wise python
#

I think making residential type json is easy

trail furnace
#

I mean.. i already pretty good on some roblox lua's.. but.. this is.. pretty hard.. xd

exotic scarab
#

lua allows you to create more complicated things

#

No, roblox Lua is a combination of C++ and a modified Lua

#

That is why it have a documentation page

wise python
#

Does making lua in roblox easy than theotown?

trail furnace
exotic scarab
#

Emmm... probably, Roblox uses C++ for calculate large amounts of data

trail furnace
#

I think lua in roblox is harder

exotic scarab
#

Oh wait plugin creator

wise python
#

We make json here right?
@trail furnace no

trail furnace
#

But ita up to the thing u want to script

#

Its*

earnest talon
#

@hollow flax this video i am having ...I want a more specific video

exotic scarab
#

Is harder until you find the correct documentation as a starter guide

wise python
#

I'm still learning about lua

exotic scarab
#

Same

wise python
#

But thinking about lua in roblox make me feel worried

exotic scarab
#

Im starting to be curious about C++

trail furnace
#

What is c++

wise python
#

I think thats the teacher's do

exotic scarab
trail furnace
#

Oh

wise python
#

No oh

trail furnace
#

Im still confused what did i did wrong on making json.. building size? The string attributes? Numercial, or boolean..

exotic scarab
#

Emmm... you can show the error code?

trail furnace
#

Then i need to but my broken json first.. xd

#

Ok hold on

exotic scarab
#

Oh believe me, I have spent days for a simple error with one ,

wise python
#

@trail furnace make sure that every line is ended at coma except the last line

trail furnace
#

Sorry.. xd

wise python
#

Remove the category

#

Maybe try posting you're code here

trail furnace
#

Code?

wise python
#

The json

exotic scarab
#

Emmm...

trail furnace
#

How

exotic scarab
#

That is the ID?

wise python
#

Simple

#

Just forward it at the theotown server

trail furnace
#

Huh..

exotic scarab
#

Wat

wise python
trail furnace
#

Wat?.

exotic scarab
#

Ah, the code

#

But he is using Plugin Creator

trail furnace
#

What code are you guys talking about.. xd

wise python
#

Your code

exotic scarab
#

Also, lol, a bug in Plugin Creator

wise python
#

Your json

exotic scarab
#

Plugin Creator Beta creates a JSON file, right?

#

If that is the case, then you need open that JSON file and see the code

trail furnace
exotic scarab
#

oh wait is a downloadable file...

#

Avast, come here

trail furnace
#

Idk what should i do to.. uhh

exotic scarab
#

You have some JSON editor in your phone/tablet/PC?

trail furnace
#

I think.. no, where can i fownload one on mobile

exotic scarab
#

Google Play Store

trail furnace
#

K

exotic scarab
#

Download one and open the JSON with that editor

trail furnace
#

Json genie?

exotic scarab
#

Json genie?
Yes

trail furnace
#

Why cant i find the json

exotic scarab
#

Ok, just a moment, I will open Discord mobile

trail furnace
#

This?

exotic scarab
trail furnace
#

Can you see it?

exotic scarab
#

Open the menu and tap in Open JSON file

#

Oh wait

#

Yeah, I can see it

#

A moment...

trail furnace
exotic scarab
#

Tap in the file

trail furnace
#

Ok

exotic scarab
trail furnace
#

And auto build false

exotic scarab
#

Tap in "view as text"

trail furnace
exotic scarab
#

Ok, that is the JSON code

#

Im seeing it, just a moment...

trail furnace
#

Ok

exotic scarab
#

Emmm... Ok, looks like the game places the error in the ID

#

Emmm....

trail furnace
#

Oof

exotic scarab
trail furnace
#

Move the id up?

exotic scarab
#

The rest looks fine, is we don't count the category position, everything looks fine...

#

Yeah...

trail furnace
#

It moved up

exotic scarab
#

Still error?

trail furnace
#

Oh.. i put it in the TT plugin now?

exotic scarab
#

Just click the save button and open the game

trail furnace
#

Error

exotic scarab
#

Different error code? Or the same?

trail furnace
#

Hold on

#

Let me try again

exotic scarab
#

Ok?

trail furnace
#

I hate meeee

#

So.. there is two json plugin code.json and plugin code-1.json and i think theyre kinda different but suppose to be same

#

Ah, idk man.. i think i need just to re create the json

#

Sorry for wasting your time.. :/

exotic scarab
#

Emmmm....I think you need re-create the plugin without Plugin Creator, I mean, PC helps you sometimes, but detecting bugs with that is hard because you don't know how the plugin is made, you can use JSON genie to recreate the plugin

#

Sorry for wasting your time.. :/
What? No, you didnt wasted my time, Im here to try to help

steel verge
#

It isn't a bug

#

You gave wrong zone and category IDs

#

You don't need them

#

You also don't need ordinal and privileged as well as price and monthly price

trail furnace
#

I dont know what to do with the id

proper lily
#

Can you guys make an option for android users to pay a certain amount were diamonds no longer matter
Id be willing to pay for it on mobile

hot sluice
#

Can someone help me pls

molten sand
#

What was the last thing you did on the game?

hot sluice
#

I was trying test a plugin

#

Trying to see if my plugin will spawn truck

terse void
#

thats a lot of commercial influence

hot sluice
#

Ik

#

Error won't let me test cars spawn

#

Who can help me

#

Pls

hot sluice
#

Anyone

terse void
#

What's the error

#

I don't think car spawner is a valid tag

hot sluice
#

What is it

hot sluice
#

Nvm

gusty brook
#

What does the density level exactly do. Doe it affect traffic in any way?

terse void
#

dense zones just spawn diffrent buildings that have more poeple

#

i dont know if it affects traffic

bright harness
#

Json

hot sluice
#

Is ja in here

eternal lake
#

just dm him

hot sluice
#

Couldn't find his names

cedar stone
#

It's jwremy clarckson

rocky geode
#

Me too it's shorter than calling by its initials

exotic scarab
#

JA now is JC

fiery olive
#

Where's Jeremy 🅱️larkson?

scenic marlin
#

I have tried several times to load the plug-in from Australian Road, I can download on my mobile, from the forum, but when I open the game says it gives error and asks if i would like to report to the forum! Did anyone else give that too?

cedar stone
#

Can you send a screenshot of the error

scenic marlin
#

Now it is no longer possible, because to be able to start the game normally I would have to uninstall the plug-in of my cell phone files, so it no longer appears!

plucky ridge
#

How to make a plugin pack

terse void
#

you can combine the json of multiple plugins into 1

#

this is how the game does it too

plucky ridge
#

Like the zips?@terse void

#

The one i did is putting two zips in one folder then compress it to one zip?

terse void
#

no

#

you can combine the contents of the json files

#

are you trying to make a pack with your own plugins?

plucky ridge
#

@terse void yes yes for my galleons ships

terse void
#

You gotta put all the textures in 1 folder

#

Then for the JSON instead of doing [{plugin}] [{plugin}] in separate files do [{plugin}, {plugin}] in a single file

plucky ridge
#

Okay thanks

bitter moat
#

how do I progress on the moon?
someone help me pls

uneven marlin
#

<@&368799288127520769> Sorry for the ping, i just had a question, does the game supports deeper tunnels or not ?

rugged quiver
#

I'm gonna say maybe, It would probably be better to ask lobby or ja.

uneven marlin
#

i'll

hazy gale
#

how do i make plugin?

lavish roost
#

You need Quickedit for json
And Pixly or Novix for image (if you use android)
For PC, you can use paint.net for image
And for json, i dont know.
The plugin creators may know.

vale minnow
#

you can use json genie for json - android only

#

and notepad on pc for making json and any other code type

wise python
#

Help me pls

#

I can upload my plugin

#

I double check my json code

eternal lake
#

run it through jsonlint

wise python
#

@eternal lake what jsonlint?

eternal lake
wise python
#

Thank you

eternal lake
#

no problem

hot sluice
#

I can't get my plugin to light up pls help

hot sluice
#

Anyone

flat sonnet
#

There a light code already?

eternal lake
#

it already exists for a few months

hot sluice
#

Huh

hot sluice
#

Wow where is everyone

eternal lake
#

spamming won't help

#

where is your code?

#

there are so many typos, no such thing as "-y":n, guess you meant "y":-n, don't capitalise in "light switching", also put "frames" in a [{}]

hot sluice
#

Tyvm it work

hot sluice
trail furnace
#

e

hot sluice
#

What i did wrong

eternal lake
#

put frames into a [{}], not {}

hot sluice
#

What you mean

exotic scarab
hot sluice
#

Think I got it now

terse void
#

Same thing here

#

Use [{}] instead of {}

hot sluice
#

I don't get it

hollow flax
#

use square bracket on "frames" tags. all of that tags, e.g. "frames winter", "frame animation indices", etc. so it must be "frames": [{"id":"frame.png}]

hot sluice
#

[ { "frames":{ "bmp":"business_nightframes.png" }, "id":"$night$_frames_00", "light":true, "lightswitching":true, "type":"animation" }, { "animation":{ "id":"business$night$frames_00", "x":0, "y":-26 }, "author":"RickyKingz", "frames":{ "bmp":"business.png" }, "height":1, "id":"justaoffice", "level":3, "type":"commercial", "width":1, "worker":50 } ]

#

Like this

hollow flax
#
[
  {
    "id":"$night$_frames_00",
    "type":"animation",
    "frames":[{"bmp":"business_nightframes.png"}], // square bracket  
    "light":true,
    "lightswitching":true
  },
  
  {
    "id":"justaoffice",
    "type":"commercial",
    "author":"RickyKingz",
    "frames":[{"bmp":"business.png"}], // square bracket
    "animation":[{"id":"business$night$frames_00","x":0,"y":-26}], // square bracket
    "width":1,
    "height":1,
    "level":3,
    "worker":50
  }
]```
hot sluice
#

Um ok

wise python
#

This plugin is great

#

But i think that this must have a alternative english version

lavish roost
#

I think the same

#

It needs to be translated or something

wise python
#

Im trying to contact the creator

#

Its great literally but

vernal marsh
#

what is the name of the plugin?

#

Or if you can, please give me the plugin link

shy rose
terse void
#

theotown doesnt support rectangular buildings

#

because of rotation

eternal lake
#

compositions

#

rotation is not a problem when you provide rotation frames

rocky geode
#

Yes

#

But there's a problem with more than 1x1 size building in composition rotation

uneven marlin
#

That depend

#

Most time no there isn’t

#

All of this depend on your frames placement

iron shadow
terse void
#

wont the object not move upward at all since the location you draw it at doesnt update?

#

cuz the time object doesnt update inside the loop

scenic marlin
#

In the philippine Expressway plug-in, when it is elevated it does not look like the cover shows the plug-in!

grand spruce
#

Any ideas what to do with this?

#

Error while reading your plugin: 4: Syntax error in "/Vertical and Horizontal Runways/runway test/runway_main.json"

steel verge
#

try jsonlint

grand spruce
#

testing

#

ah found the extra comma

terse void
#

That's how they get ya

grand spruce
#

odd how it worked during the tests

steel verge
#

erk

#

try building the new theotown

iron shadow
#

@terse void i try to update, thank you

flat sonnet
scenic marlin
#

Thank you very much :)

flint viper
#

Can make plugin on just android?

cedar stone
flint viper
#

Ty for info 👍🏻

cedar stone
#

what?

terse void
#

yes that will work for graphics

ruby vale
#

i use pixel studio

flint viper
#

👌

#

K

#

@ruby vale premium or free?

ruby vale
#

free, i don't have money to buy the premium version

flint viper
#

Okok. So if you finish the pixel art. You go to file. json?

cedar stone
#

you firstly need to export the image as an .png

#

then, you can start working in the .json

flint viper
#

I will try

terse void
grand spruce
round sail
#

Spotted bug in tree planter

earnest talon
#

Does someone has any article for train plugin code

#

??

wise python
#

@round sail can you pls take closer

#

Idk all i see are bunch of rocks

round sail
#

I mean doubled arrows for undo and redo

wise python
#

Oh

#

I dont know about that bug

#

Im out

ivory jewel
#

I need to talk with somebody who can control discord bot please

fiery olive
#

which discord bot? pidroid?

ivory jewel
#

Yeah

#

As i known he doesnt post plugins like tools or plugin packs

#

And autoposting some solo buildings in commerce residential and industrial

#

But sth go wrong with my industrial building

#

And pidroid ignored it

fiery olive
#

that's most likely because your plugin got rejected

ivory jewel
#

Oh no it is in the plugin Shop

#

There are 600 Download

terse void
#

its posted all of mine

#

ja made it

flat sonnet
#

sometimes plugin was not post but already accepted

hot sluice
#

Need help pls

earnest pendant
#

?

fiery olive
#

@hot sluice change the lower border of that picture to match the base

terse void
#

yeah its 1 pixel off

#

theres a couple of empty pixels at the top too

flat sonnet
#

The base r not equal

#

Or you can manage that by adding handle x

hot sluice
#

Like this

#

I fix it

tacit breach
fiery olive
#

not properly isometric

#

colors are too bright

#

outlines

#

wrong shadows

#

needs more texture

#

remove the outlines

tacit breach
#

Okay by the way I can't do it as plugin

#

Cause I'm on mobile devices

flat sonnet
#

Me too

#

just do it

#

🙂

ruby vale
#

Cause I'm on mobile devices
@tacit breach you can do in mobile devices

#

i do plugins on my phone

tacit breach
#

@ruby vale My phone doesn't support it

ruby vale
#

what's your phone?

#

pixel art apps barely use 100 mb

#

@tacit breach

tacit breach
#

Oppo F7 but full with game :v all game important to me @ruby vale

ruby vale
#

oh

ivory jewel
#

lol

glad thicket
#

Omg

limber current
#

Guys. I try to make plugin by using pixel art studio. And i need to learn more how to make and tips

#

My first try. Allow me to know what is need to make it look smooth n better

terse void
#

the grass is too bright

limber current
#

Ah. So need to make it little dark. (Sorry my english really bad)

terse void
limber current
#

Hmm.. i'll try to get its contras

cedar stone
#

The shadows are wrong and there is no texture

limber current
#

@cedar stone thank you. i will try to fix. This my first try. Teach me

earnest pendant
trail furnace
#

Uhhh

steel verge
#

ayo someone mixtape this

hollow flax
#

hmm, never found that problem.

@earnest pendant what device are you using?

hollow flax
#

That's weird. i make it move when the area is touched. hmm, i'll fix it to make the panel to be fixed position or an option to disable the feature. bear_think bear_mine

earnest pendant
hot sluice
#

What I did wrong

vale minnow
#

it couldn't find the animation

hot sluice
#

What I need to do

hot sluice
#

???

potent yoke
#

home_white_00

#

you wrote:
white_house_00

hot sluice
#

Nothing I'm doing is working

#

I'm still getting error

cedar stone
#

check you named the files correctly

terse void
#

you define your animation with id home_white_00 but in your house draft you try to use it with id white_house_00

hot sluice
#

Ok

#

Is this better

terse void
#

no theyre still not the same

#

so this should work

hot sluice
#

Ok Thx

tawdry schooner
#

PLUGINS GET SO LONG TO GET APPROVED

hot sluice
#

It work now tyvm

earnest pendant
#

Why isn't collecting x and y of where the camera is looking

This code below is I am trying to return these values as long instead of int:

local function xx()
	local x, _, _ = City.getView ()
	local xx = tostring(x):spilt('.')
	return xx[1]
end
local function yy()
	local _, y, _ = City.getView ()
	local yy = tostring(y):split ('.')
	return yy[1]
end```

What didn't work:
```lua
GUI.get("abx"):setText(xx())
GUI.get("aby"):setText(yy())```

Main code:
Download file below:
hollow flax
#

if you want to change the float(decimal) number, you can use math.floor(value) or math.ceil(value).

idk why you made those to be a functions, if you want to make the value always update, you can do like this:

local viewX = parent:addLabel{
  onUpdate = function(self)
    self:setText(math.floor(select(1, City.getView())))
  end
}

local viewY = parent:addLabel{
  onUpdate = function(self)
    self:setText(math.floor(select(2, City.getView())))
  end
}```
terse void
#

also might wanna combine the functions instead of calling city.getview twice

#

and instead of writing the same code twice its probably better to make a function for it

tawdry schooner
#

@terse void make a game on roblox since you know your Lua

exotic scarab
#

If I don't forget, Roblox works with a different version of Lua, adding some functions

tawdry schooner
#

If I don't forget, Roblox works with a different version of Lua, adding some functions
@exotic scarab yes

#

But atleast he knows the basics

exotic scarab
#

Yeah

eternal lake
#

watch the caps

#

it won't help

tawdry schooner
#

Sorry i was a little impatient

#

Im sorry

earnest pendant
#

Why are some plugins unavailable bear_mad

vale minnow
#

cause some are copyrighted

earnest pendant
#

Aww

terse void
#

plugins downloaded from the forum as zip or .plugin files

terse void
#

what do you mean?

#

What plugin is it?

#

Have you restarted your game after putting it in

cedar stone
#

Also, check that you actually out them in the plugins folder, not managed plugins

vale minnow
#

one it missing files or you installed it the wrong way

#

put my file in there

#

and you will see that it will work

#

open console and type pt

terse void
#

waiit a minute

#

whats in the folder?

#

there should be a json and some images

#

since that folder says it contains 1 file something is wrong

#

most likely theres another folder in there with the actual plugin

terse void
#

the json and png's shouldnt be more than 1 folder deep

#

if its a .plugin file it should be in the plugins folder immediatly

#

hmm thats weird

#

could be a bug

#

its a tree plugin?

steel verge
#

What seems to be the problem, gentlemen?

terse void
#

plugin doesnt get shown in local plugins section

#

could be the whole plugin.manifest thing

steel verge
#

Missing plugin manifest

terse void
#

pretty sure my plugin didnt show up before i made that

steel verge
#

That's the issue

terse void
#

the plugin creator has to make it

#

well you could make it manually but why bother

terse void
#

it has info about the plugin

#

there isnt a fallback from before plugin.manifest existed?

steel verge
#

Yes

#

But plugin.manifest should be a requirement in all modern plugins now

#

Otherwise it won't work in online mode nor will be manageable via user interface

terse void
#

not without a manifest

#

probably not at all

#

if its uploaded without one

steel verge
#

^

terse void
#

the other guides dont mention plugin.manifest anywhere

steel verge
#

It's a new addition

terse void
#

ye but if its a requirement it should probably be in big letters somewhere

steel verge
#

Pdm @dusty stirrup plz update plugin documentation to include mention of plugin manifest file being a necessity, thx

tulip rockBOT
#

Message to Lobby#0001 was sent succesfully

terse void
#

nice

#

why you using pidroid for messaging anyways

#

or is that over forum

steel verge
#

I mean

#

Hm

terse void
#

big hmm

steel verge
#

Now it is thru that too

dusty stirrup
#

Spam

steel verge
#

shh

vale minnow
#

a yes

earnest pendant
#

I'm flying

terse void
#

Hello flying

rancid robin
#

xDn't dad joke

fluid iris
#

What this null?

trail furnace
#

I think the russian hospital pack makes the game errot? @fluid iris

fluid iris
#

OK, thanks

fluid iris
#

I correct this mistake, but...

trail furnace
#

Try dissabling the plugin

eternal lake
#

you dont have a "type" attribute in your plugin

rocky geode
#

@steel verge

#

Does lua script had used of Theotown storage would work as well in online Regions?

#

Also transfer to the region server?

steel verge
#

TheoTown storage is global for the local user. If plugin supports online mode, it should be accessible there too.

terse void
#

Tm

steel verge
#

®

fiery olive
#

©️

cedar stone
#

™️

fiery olive
#

Tm®️ ©️ ™️

earnest pendant
earnest pendant
#

Is there any suburbs plugin?

tawdry schooner
#

Um idk

analog wedge
ruby vale
grand spruce
#

There's also a Philippines suburbs pack on the store

heady steeple
earnest pendant
#

@ruby vale thanks

steel aurora
earnest pendant
#

It's not avaliable, @steel aurora.

#

It's in really a private plugin.

#

From Rockfort.

steel aurora
#

Oh sad

gusty tinsel
#

@steel aurora
It's parking lot plug in on store

earnest pendant
#

So I have already downloaded a plugin from forum so what do I do next?

#

What do I rename?

terse void
#

What do you want to do with it?

#

Use it?

tawdry schooner
#

Put the file at the Plugins in the thwotown files

#

@earnest pendant

earnest pendant
#

Thanks

#

Now i'll could use ittheons theons

tawdry schooner
#

Np

tawdry schooner
#

What the no

#

Some are private some aee public

cursive moat
#

Anybody happen to know what Plugin this?
Or if it’s Private for that matter?

molten sand
#

It's WIP

cursive moat
#

Alright

unborn timber
#

How do I make plugins?

grand spruce
#

and read the tutorials on the forums

pastel mason
#

that's a tunnel cutting through a mountain at max height

heady steeple
#

@pastel mason you have to use the constant hight tool.

pastel mason
#

@heady steeple I got the same error and idk why. An update must've broken it.
@steel verge do you know why it says java.lang.ArrayIndexOutOfBounds...? Idk what that means.

bitter hazel
#

I think it's trying to fetch an item which doesnt exist or is registered incorrectly

steel verge
#

check your road frame definitions

pastel mason
#

I see nothing wrong with them. Weirdly it's only the highway and avenue.

#

@heady steeple One temp fix I saw is to use one-way road with constant height, then replace the entry tunnels with highway/avenue roads. You can do that while I figure out the problem.

heady steeple
#

Thanks I'm just using national roads for tunnels ATM

molten sand
#

How can I get a builder's role? 😕 and what are the requirements for that role 😊 I would like to join

grand spruce
molten sand
#

🤔 Is it hand picked?

grand spruce
#

Yeah

#

All I know is that JA picks them

#

It's mostly retired staff and YouTubers

#

But there is a plugin maker or two

molten sand
#

Thanks, I'm thinking for early retirement 🤔

#

Jk

glad thicket
#

Don't even think About it

uneven marlin
#

Builder role.... hmmmm....

#

I dEsErVe OnE

earnest talon
#

Even I too

#

😆

lilac ember
#

I don't even have the plugin creator role, but anyways I'm keen on it lol

terse void
#

You need to have made a bunch of plugins to get it

#

Make more advanced plugins to get the advanced role

#

It's all done manually anyways

fiery olive
#

👀

#

the builder role is a vip role - you can get it from being a retired staff member, or being an influencer, making videos for theotown

earnest pendant
#

i make videos of theotown @fiery olive

earnest talon
#

Even I make

earnest talon
#

But still they are not at that level on which Kingtut , An and 1 more make

earnest talon
earnest talon
#

Someone should reply at least ???

molten sand
#

Well, let's start creating plugin JSON tutorial Vids!

earnest talon
#

What ?? No one is replying @steel verge @eternal lake
Anyone ??

eternal lake
#

not a reason to ping me and the dev

#

pretty sure it's because of the graphics

earnest talon
#

What ?? But the graphics are good

#

Almost 4 plug in creators said that this is good

#

Ask @earnest pendant or @kekman or anyone

eternal lake
#

imo it's not really

#

I'm not a plugin moderator anyway

earnest talon
#

Ok but pls try to convey this to him

eternal lake
#

"him"?

earnest talon
#

Whosover is handling the plug in store !!

eternal lake
#

report your issue to the Plugin Store disapprovals and why forum thread

earnest talon
#

Ok

eternal lake
#

might help

earnest talon
#

Thanks

eternal lake
#

we could use some more

#

mods

steel verge
#

not neccessarily

vale minnow
#

@earnest talon add better shadows / details

#

I'm an map moderator on the forums

earnest talon
#

Okay @vale minnow

exotic scarab
#

With the sidewalk plugin, there is a issue rendering the pollution

fading night
#

What do you think?

#

😅

true isle
#

Looks cool

fading night
#

But I don't know how to download it😑

trail furnace
#

Isnt the door to big?

fading night
#

Yes

trail furnace
#

Is that 8x8?

fading night
#

5×5

#

I'm still a freshman.

fading night
#

Where are you?

trail furnace
#

Earth

glad thicket
#

Am currently living in the sun,the taxes in the moon are expensive,meet me in the burning sulphur

fading night
#

What do you think?

#

???

#

Should I download it?

lavish roost
lilac ember
#

@fading night you need a .json archive 🙂

fading night
#

How to

lilac ember
#

wait a second

fading night
#

Ok

lilac ember
fading night
lilac ember
lilac ember
fading night
#

I don't get it😞

lilac ember
#

Let's go to DM

fading night
#

I have a json file but I can not open it I do not know why😞

earnest pendant
#

what is the width in px for a 1x1 plugin?

eternal lake
#

32

earnest pendant
#

How can you upload a plugin?

tawdry schooner
#

Go to the theotown forum login and press upload plugin

earnest pendant
#

Tank you

tawdry schooner
#

Np

pale spindle
#

I need help. How do I create a plugin on mobile. I need instructions please

grand spruce
tawdry schooner
#

@pale spindle use pixly or pixel studio to draw the building or park or whatever u wanna make

#

For coding use quickedit

#

Just go to the forum

fading night
#

I haven't downloaded it yet.

cedar stone
#

Remove all the empty space

#

Or it will be eating plugin soace

exotic scarab
#

Plugin texture space

shell parrot
#

Can i have too Help? How to create a UI?

pale spindle
#

Thank you

earnest pendant
#

Pfaq heightmap

tulip rockBOT
#

Such FAQ doesn't exist. Type Pfaq list to see all currently existing FAQs.

earnest pendant
#

Pfaq list

tulip rockBOT
#
Frequently asked questions list

developers, population growth, new city, language, pickle, wiki, zones, plugin store, bot downtime, dsa, theotown 76, picklebot, pidroid, theotown 66, free mode, plugin templates, files, online mode, bugs, forum plugins, new region, night mode, screenshot gallery, region height-maps via console, bankruptcy, heightmaps.

earnest pendant
#

Pfaq heightmaps

tulip rockBOT
#
Heightmaps

You want to make a region that resembles a real place? Use heightmaps!

  1. https://tangrams.github.io/heightmapper/ go here and find your wanted location
  2. Make sure that the colors are right, Black will become water and white will be the highest parts
  3. Take a screenshot and change the name [example.jpg]
  4. Put the image in your TheoTown folder, not in the subfolders
  5. Go to the region generator and and type in the image name [example .jpg]
  6. Enjoy your new custom region
bright rain
#

Are there any lua commands for detecting the ID of the tool/building the player is currently using?

bright rain
#

Also, are we able to detect when the player is in build mode (when the player is placing a building/using a tool)?

hollow flax
#

for the first one, afaik, there is no function to do it.

for the second one, you can detect the active build mode with GUI:get'cmdCloseTool':isVisible()

to detect whether the building has been built or not, you can count the building with City.countBuildings(draft).

bright rain
#

Thanks!

bright rain
#

Sorry for asking, but would you happen to know if there's a function for reading what items are in the recent category? I think that would be an alternative to my first question.

hollow flax
#

i had asked to Lobby about it, and Lobby said

As of right now the toolbar history is hardcoded in Java and cannot be accessed from Lua.

terse void
#

oof

#

i think there was a way to find out which draft is currently active

bright rain
#

Its probably some obscure thing that isn't documented or something

terse void
#

i saw it fly by somewhere but i forgot where

#

its probs a hacky workaround

sage gust
#

How we can construct a plugin ?

eternal lake
analog wedge
steel verge
analog wedge
#

That looks way different

steel verge
#

Well it ain't USSR flag though

analog wedge
#

Hmmm

steel verge
#

Looks more like PRC flag

analog wedge
#

If it isn't USSR flag

#

Yeah, It's probably People's Republic of China

lavish roost
#

So it is maybe a combination of USSR and PRC and Russian Federation

steel verge
#

Funny thing is

#

All those flags are facing the wrong way

#

Pdm @steel verge point flags the other way

tulip rockBOT
#

Message to JustAnyone#0001 was sent succesfully

eternal lake
#

it's inspires by the other plugin

#

inspired

#

not a copy or a retexture

vale minnow
#

I rather use my flag set for 30 dias then that

#

@steel verge well of course they all are

steel verge
#

check wind turbine

#

the wind is other way

vale minnow
#

I could fix my flag set but i rather not

#

Since its over 200 frames

terse void
#

The flags aren't even animated

vale minnow
#

You know i planned to make an animated set once but didn't do anything about it

steel aurora
analog wedge
#

Uhhh

#

Yeah?

#

What's wrong with it? @steel aurora

steel aurora
#

nothing, just shouting for fun

analog wedge
#

ok

earnest pendant
#

how to edit Plugin that was downloaded within the game?

steel verge
#

not possible

terse void
#

only possible for forum plugins that were uploaded as zip

flat sonnet
#

Avoid plagiarism and retexture

flat sonnet
rocky geode
#

Sana ol

trail furnace
#

Where can i get concrete texture?

eternal lake
#

see world texture

#

1024_1024 if I'm right

analog wedge
#

why the water is so dark

steel verge
#

youre in void dimension

hybrid depot
analog wedge
hybrid depot
analog wedge
#

ok

tight vale
#

I Want Something Like This But only 3 Billboards.

vale minnow
#

Pixly

exotic scarab
next bane
lilac ember
#

ah yes

#

he copied one of my plugins lol

next bane
#

O

#

I should've been more observant removing stuff from my library...

#

He had other buildings, were they copied too?

lilac ember
#

no

#

i think the only building he copied was that

#

also, my version has 15k downloads in the plugin store

next bane
#

O

#

Damn there was a building in that pack i really liked for my city

lilac ember
#

yea, I liked that buildings

#

but they needed textures

next bane
#

The white ones with blue-ish glass facades?

lilac ember
#

yes, that were ones that I liked

next bane
#

Aw crap

lilac ember
#

other one that was kinda nice was this one, it seems to be a pulpería, a tavern in argentinian villages

next bane
#

Oh that's where that came from too

lilac ember
#

yes

next bane
#

Damn

#

I need to either make my own plugins or just render my city somehow

fading night
#

How can I put this, please🙂😞

#

I want to help.

#

Plz

next bane
#

Wat

trail furnace
grand spruce
#

it need to have multiple frames

#

For example

#

"frames":[{"bmp":"MyTank_A.png"},{"bmp":"MyTank_B.png"},{"bmp":"MyTank_C.png"},{"bmp":"MyTank_D.png"}],
Credits: MDK code

trail furnace
#

Ohh, thanks!

next bane
#

UDS?

proper viper
#

How to make pluggin

trail furnace
proper viper
#

Ok thanks

vale minnow
#

@trail furnace thats i how quickly compiled all regional flags in one code

#

50 frames in one code is an pain to do

trail furnace
#

Oof

bright rain
#

How can I change a building's frame with Lua? I have a script attached to a building, and I've tried using Tile.setBuildingFrame Draft:setFrame, but I can't seem to get it to work. I've also tried using these functions with script:update and script:event

terse void
#

You could use drawing to do it

#

Idk if there's an intended way that's better

hollow flax
bright rain
#

My building has 20 frames though

hollow flax
#

How the way you change the frame?

#

Is parameter x,y filled with right coordinates?

bright rain
#

Shouldn't Script:event work to get the coordinates?

#

With EVENT_PLACED

hollow flax
#

Are you want to make it to be random frame when it build?

terse void
#

You could try with EVENT_FINISHED so it's fully built first

bright rain
#

I'll try that

bright rain
#

Apparently, RCI buildings don't autotile when they spawn in zones, so I have to implement this feature myself

bright rain
#

I can show you a better example if you want

hollow flax
#

yeah please

terse void
#

they dont?

bright rain
#

I'll get you an example after I'm done with work

bright rain
terse void
#

autotile?

bright rain
#

The feature that we use for fences and roads to make them use the correct frames

#

I didn't know what else to call it

bright rain
#

Also, you switching your name and pfp is messing with my head a bit

#

I tried using event.finished, and that seemed to fix it

#

Thanks for the help

#

Good luck with that multiple personality disorder you have

trail furnace
#

How do i update my plugin?
Do i click edit and then resubmit?

terse void
#

Yes

hybrid depot
#

:'(

vale minnow
#

Its just decoration

bright rain
#

You need to be a privileged plug-in creator to do so

#

Sorry to bother you all again, but how can I use things like Draft:getFrameCount () in class draft? I've tried attaching the following code to a plug-in, but the toast failed and never appeared:

Debug.toast (Draft:getFrameCount ())
end```
terse void
#

: only works on draft objects

#

For example

#

Mydraft:getFrameCount()

#

If you want to call the class you do

#

Draft.getFrameCount(myDraft)

#

They will do the same thing

bright rain
#

Does anyone remember if there's a tag for removing the sea walls?

fiery olive
#

cliff plugin?

rocky geode
steel verge
bright rain
#

TY

#

I couldn't remember what it was and it's not documented in the advanced tags list

#

I'll try it later

steel verge
#

nothing new tag related is documented

terse void
#

*nothing new is documented

#

Ftfy

bright rain
#

Accurate

bright rain
#

How did ian get values from City.getHistory to print in that toast? Clearly I can't just put it in directly. It keeps telling me its a nil value.

hollow flax
#

City.createDraftDrawer(draft):getHistory()

eternal lake
#

Can I count the total amount of buildings that have a specified upgrade upgraded?

#

something like City.countBuidlings(draft) but with an additional upgrade filter

#

or, maybe, how do I get the coordinates of buildings with a specified ID?

#

I think I've done this before but I haven't touched lua in a while

terse void
#

If it's the script that your plugin is attached to you could use events to keep track of where they are

#

If you only need to do It once you could look through every tile in the city

#

I don't think there's a direct clean way rn

eternal lake
#

hmm

#

maybe getBuilding(index[, draft])

steel verge
eternal lake
#

🙂

steel verge
#

Use loop with City.countBuildings(draft)

eternal lake
#

so the index should be the count output?

steel verge
#

not quite

#

use a for do loop

terse void
#

The count result should be the limit of index

eternal lake
#
    count = City.countBuildings(draft)
    for i=1,count do
        local x,y = City.getBuilding(i, draft)
        Debug.toast(x,y)
    end
end```
#

something like this?

terse void
#

Yes

eternal lake
#

nice, thx

terse void
#

If you wanna save a line you could call count buildings in the for do line instead of making a variable for it

eternal lake
#

I understand what you meant but I don't think I want to mess it up lol

terse void
#

Fair

#

Don't forget to make count local though

#

Unless you're using it somewhere else

hollow flax
#

Here we go

local function countUpgradedBuildings(buildingDraft, upgradeId)
  local upgradeCounter = Array()
  local buildingPostX = Array()
  local buildingPostY = Array()
  
  for i=1, City.countBuildings(buildingDraft) do
    local x, y = City.getBuilding(i, buildingDraft)
    buildingPostX:add(x, i)
    buildingPostY:add(y, i)
  end
  
  for i=1, City.countBuildings(buildingDraft) do
    local bool = Tile.hasBuildingUpgrade(upgradeId, buildingPostX[i], buildingPostY[i])
    upgradeCounter:add(bool, i)
  end
  
  local result = upgradeCounter:count(true)
  return result
end```

Only return number, or nil because i haven't tested it yet.
eternal lake
#

oh my gosh

terse void
#

Why not just immediately check for upgrades

#

Ian out here with them examples tho

#

Since upgradecountee is always defined it should return 0 or more

steel verge
#

2 countBuildings function calls and 2 loops

#

my god that's expensive

eternal lake
hollow flax
#

short version. lol

local function countUpgradedBuildings(buildingDraft, upgradeId)
  local upgradeCounter = Array()
  
  for i=1, City.countBuildings(buildingDraft) do
    local x, y = City.getBuilding(i, buildingDraft)
    local bool = Tile.hasBuildingUpgrade(upgradeId, x, y)
    upgradeCounter:add(bool, i)
  end
  
  local result = upgradeCounter:count(true)
  return result
end```
steel verge
#

much better

#

why not just return upgradeCounter:count(true) immediately?

#

or you can't do that in lua?

#

i dont remember

hollow flax
#

just an example, because it can be changed as needed.

bright rain
#

I tried looking in the draft and city categories of the docs

#

I found a changelog that says it should be in the city library

#

Guess thats another undocumented function to add to the list

hollow flax
rough cradle
#

UwU

bright rain
#

How did you find out about it?

hollow flax
#

on this case, with this clue from JA. on other, i'm asking Lobby.

steel verge
#

It is under city Library

#

Not documented though

#

Since createDraftDrawer is under city library, so is getHistory

terse void
#

Documentation?

#

Never heard of it

trail furnace
#

How to make it so decoration can be placed on water

eternal lake
#

"needs water" probably

jolly wigeon
#

is it possible to use a gif to make an animated plugin?

bright rain
#

I don't believe so

#

You probably wouldn't want to anyway because GIFs have a limited color palette IIRC

brave sky
#

Hm

terse void
#

you have to define each frame of the animation seperately

lavish raptor
#

How can I get supplies for rocket launch

#

Dsa pluginbtw

earnest talon
grand spruce
#

Read the pinned tips

bright rain
#

Is there an undocumented way to set the in-game time?

steel verge
#

there isn't any way to set in-game time

#

unless the date

#

which is controlled by virtual variable called day

eternal lake
#

can I set animation color using lua?

#

something like the colorful glowing window in one of ja's plugins

steel verge
#

perhaps

eternal lake
#

can i has the code

steel verge
eternal lake
#

thx

terse void
#

his code uses a greyscale image

#

thats tinted with the drawing function

eternal lake
#

yes, animations that will be colored should probably be grayscale

terse void
#

he uses Drawing.setColor

#

ye

steel verge
#

you mean, you?

terse void
#

yes

#

i write the good code

steel verge
earnest talon
#

Hey Can a plugin be in a size of 2×8 ?

#

@eternal lake

lavish roost
#

Make it modular so it can be 2x8

#

Or you can use compositions

earnest talon
#

Modular means 2 separate buildings!

#

?

lavish roost
#

I know

#

But once that, they can merge into 1

#

So...

earnest talon
#

Ahh ok

lavish roost
#

Use co positions

#

Compositions*

eternal lake
#

compositions, yeah

earnest talon
#

The way bernado makes

earnest talon
#

Like Haraya Motprs Monorail

eternal lake
lavish roost
#

And RCI's as well

earnest talon
#

Thanks

eternal lake
#

np

earnest talon
#

Bye

lavish roost
earnest talon
undone token
#

can i use and remake game textures for my plugin?

#

I want to make moon buildings pack

undone token
#

write in private messages pls I go sleep

grand spruce
#

@undone token I don't think that's allowed

undone token
#

can i create same textures and use it? if I draw them from original game, it will be my drawing and i can use it?

grand spruce
#

nope

undone token
#

very difficult

grand spruce
#

Ingame textures can't be used just to make them a plugin

undone token
#

what if I accidentally create the same texture?

#

😀

grand spruce
#

yeah no.

#

Ask the last person that did that what happened to them

#

(I'll give you some help. They are banned)

undone token
#

Well, I got it, please don't ban me

grand spruce
#

I suggest you get rid of it.

undone token
#

I will take photo of my house and use it

#

thanks for answer

steel verge
grand spruce
#

I feel like just straight stealing them for a plugin is shady

bright rain
#

It's fine AFAIK

#

Your use of the in-game assets needs to be constructive though

#

And you need to give proper credit

#

However, I do know that using premium assets is not allowed

#

I would recommend making your own assets though

#

It'll give your plug-in more creativity and quality

#

Anyway, does anyone know how to place RCI buildings with Lua? I've tried using Builder.buildBuilding(), but it won't work. I've tried placing zones first. but it still failed. I only seem to have this issue with RCI buildings though. Regular buildings work fine

hollow flax
#

i think, for now, you can't do that. because RCI need tile with zone and buildings already built. you can only replace the recent RCI buildings with buildBuilding, but can't make a new RCI buildings.

undone token
#

nice?

#

making take 2 hours

#

i make it, but idk how to add night animate and load in game

#

pls help me

#

this is my first art in life

#

some cracks

undone token
vale minnow
#

Premium assets aren't allowed for plugins plus it can result you in a ban if you share it publicly to people

terse void
#

have you tried placing the zone and then placing the rci building?

undone token
#

I don't understand who you are talking to

undone token
#

ok

#

what mistakes are there in my lighthouse?

#

I am planning to create large plugin pack together with other players

#

and I want you to point out my mistakes

eternal lake
#

what's the ID of the manual build subcategory?

terse void
#

what do you mean?

eternal lake
#

I wanted to put something in this, but I can't really find it in content_category

hollow flax
terse void
#

^

eternal lake
#

I did not notice this ooooo

#

thansk

#

apparently I can't put it there

undone token
#

this is my first draw

#

and plugin

bright rain
undone token
dry echo
#

Can someone make the 2000 World Trade Center with lights

terse void
#

Pretty sure this already exists

warm girder
#

What is a good plugin for winter themed building? Not Christmas themed, I just wanted to build a city in a snowy area

dry echo
#

The 2000 World Trade Center isnt existing anymore for e plug ins

grand spruce
#

It does

#

just on the forums and not as a store ripoff

bright rain
#

Sorry for the ping

#

I have no idea why discord enables pings by default in replies...

warm girder
#

Its fine

#

Thx

#

I'll have to check it in a while, I have to sleep

austere owl
#

hello, does anyone know how to enable the auto weather plugin on iOS through the console? the console just says “i don’t get you” when i enter the command that JustAnyone put into the instructions?

cedar stone
#

You have to be in a city first

eternal lake
#

So using "animation" attribute in a "type":"template" is pointless when I define a new animation in a building that uses that template?

#

It seems to override the template animation and use the new one instead

#

can I use both animations (from the template and the building that uses the template)?

steel verge
#

no

eternal lake
#

additional 28*8 lines of code, nice

#

and then times 4

steel verge
#

Very well

eternal lake
#

can you dont eat my whole ram with this thing?

#

fresh 12341 lines of code

terse void
#

freshly written

vale minnow
#

Freshly painted

eternal lake
vale minnow
#

amazing

warm girder
bright rain
#

Why does #2 crash the game, but #1 doesn't? Is there a difference with the way you use Draft:isBuilding() compared to Draft:getType() that I don't understand?

#1

Debug.toast(Draft.getDraft(recent):getType())```
#2
```recent = City.createDraftDrawer(Draft.getDraft("AreaTool.kt101")):getHistory()[1]
Debug.toast(Draft.getDraft(recent):isBuilding())```
hollow flax
#

Crash log?

vital root
bright rain
#

That's weird... I'll fix it right now. Thanks for telling me

vital root
#

Thanks!

bright rain
#

NP

vital root
#

Anytime

bright rain
# hollow flax Crash log?

I'm not sure what I changed, but it doesn't crash anymore. Thanks for the help though! I would've gotten a crash log for you, but I was busy writing essays all week

bright rain
#

Is there a way for me to place buildings instantly and ignore their build time with lua? I noticed this issue when I used lua to place buildings in free mode on PC.

copper herald
#

Does anybody know how to place wires with the light rail transit plugin?

molten sand
#

Put it on rail tracks

lavish roost
#

@earnest pendant this is plugin support

copper herald
barren kite
#

I removed a plugin cause it caused error while loading but the game still tolds me to remove it. I have been looking for half and hour and I'm sure I deleted it. Any advice? 😢

cedar stone
#

can you send the error please

barren kite
#

Yep

#

Bruh the quality

#

I'm gonna write it

cedar stone
#

You may installed the plugin twice by accident

barren kite
#

That's what I thought