#plugin-support
1 messages ยท Page 27 of 1
It is not one way road I looked at it also tried using only 1 station but nope didn't worked
@hot shoal hello, is your cable car working or you are not anymore sure about it?
@rocky geode you are the guy who made monorail, right? If you can, you should make a cable car plugin too I guess. Variety of plugins aren't a bad thing
Hmm
Yeah I know
But anyway, the way that plugin is made is not allowing us to make a glass station build then
It is modular in fact
why not?
Because you will only need to use one piece of whole station build and it is a part of whole build
I need to get on pc to show it
There are total 8 stations
Also look at red place, it looks empty
I'd like you to take the extra time to make extra end pieces that aren't needed and would only take up more plugin space
There is an end piece
then what's the problem??
Didnt use it
That sounds like your fault more than the makers
I am not saying plugin is bad I love it
The topic just went somewhere else
The actual problem is cable car doesnt exits
The one I mentioned is a texture "thing" but still an inside would be good
@pseudo nymph yes it works
The part you said is empty, is because you can buils more cable from there in order to continue the layout
Is not necessary to be an "ending" station
@hot shoal but my car isn't going outside. How will I make it work?
You mean it doesn't spawn cars?
It spawns but just drives inside station
Ok, give me some minutes, and I'll explain to you
mhm
@hot shoal I just tested it in random map and it worked but strange thing is it is not working in the map I want
The first pic is working as an end to end layout
But the second one goes around the layout non-stop
mhm
As you can see, cars are spawning regularly
yep
let me show you mine
It is not spawning, all roads connected tho
@hot shoal
Please, stop pinging, I'm reading you
ah I am soo sorry
Maybe they are not well connected
I will check again, but I am sure they are
Try to leave a straight gap before the slope
Check the height
If it still doesn't work, try doing again
I mean the height when connecting to the station
nope didn't work, sorry
it is 1 height at station, same as it
Don't mind it montemarino, your plugin is great. I can play without its spawning cars. Thanks for your attempt to help me
Sorry, I don't know what's wrong with your plugin, but it should work correctly. As I said, try to do it again
Is it possible to make rotation aware road decoration?
4 animations, 64 indices.
does it work on 2 way roads?
oh is there a fun function detecting rotation?
That's nice, thank you for the help. now let me see how I can use them in my plugin :)
welp it's not so easy cuz it contains on click fun and also it's for intersection
With fun, condition rotation 0 or 1, action build draft for rotation 2 and 3. Condition rotation 2 or 3, action build draft for rotation 0 and 1.
I'm not sure. there are on click fun for manually build other rotations and it's intersection so all 4 rotation needs to be different build
Does terrain needs a draw ground true?
Oh wait.. terrain cant have multiple frames right?
Oh dang it
Huh?
But i already have the widht and height
it's not widht
Oh snap.. well i need to pay atention more.. ;-;
I don't know if it is game bug but it happened after I update to beta
What plugin is it?
I just downdrade my game to see if it is okay
mhm it works with older version of game
That's a plugin issue
I hope the creator will fix this, I liked that plugin
How do i make it so my plugin have icon like this to
sorry if my english isnt good today, i didnt get enough sleep
Yes! Also ty
I'm using Pipes, Roads, Zones Pack, I'm using the "non-dense urban zone", a name similar to that, and I don't know if this is normal ...
Why is there water-
that's my question ...
Well if you would connect those canals that would be good
is choggaba in this server?
Yes
what is his nickname?
choggoba
@pure glen hello, have you seen the new beta update? Your overpass plugin has a problem with it I guess. I used it a lot in my main map
@rocky geode your bank makes me lose 2k in different map :(
What did your last action after these
I disabled the plugin
How do you make plugins?
Read pins in #plugin-discussion
ok, thank you ยฆ}
I tested and yeah it'll take 2k every so often when built in another city than the one you took out the loan
Maybe you're using theotown.getstorage somewhere that should be city.getstorage
I used only theotown.getstorage to store global deposit and the rest are in city storage
I also encountered these every time and still cant find what caused this i thought that's because of the budget item but its not, i add 10k bonus on local deposited as alternative for these problem
That 2k doesn't go into budget btw
I can't still find the problem
how to join this group ?
send a request to lobby or someone like that
How ?
I don't understand ๐
oh so I have to send a privacy message to the lobby asking to join the group
Ok thanks ๐
np
looks as if it was written by a 11yo but it will probably do
do you have any plugins released?
I want to update this plugin .. but I don't know the special code .. that's why I want to join that group
sure
So now .. I just need to wait for the approval?
true that
your diamonds will be checked ๐ lol
๐๐
Imagine caring about how many diamonds you get
I have 40k diamonds (without cheating)
I have a few but i never use them
I usually use my diamond for build time boost
Imagine using diamonds
I am sure there are functions that are called with one variable and are not replaced every time they enter the city.
-Pc tt gang
๐ค
I usually use my diamond for BUY THE PLUGINS and the PREMIUM BUILDINGS (add ons and landmark)
I also usually watch the ad ๐ 3X /30 minutes
Imagine claiming them @cedar stone
Wow .. nice
โค๏ธโค๏ธ
is it true that theotown has a limit of the number of diamonds up to 98 thousand?
i have more diamonds with less total downloads.
all of my plugin prices are 30 diamonds and only one with 86 then 100 diamonds.
are you redeem it?
Yap
@hollow flax i have 22k you have 20k to redeem
And the plugins where i got the most diamonds from is flag set/road pack
I think ian meant that he has 3x less downloads than you and has just 2k diamonds less than you
22k? 20k? what are you talking about
how can I make the animation above the terrain
Oww i get it
This will become a bug from building in front
Wow diagonal rail... I LOVE IT!โค๏ธ
excuse me everyone .. how to contact the developers? It's been more than a day since I've uploaded this plugin but there hasn't been any response / approval since yesterday ... please help me. :'(
Just wait i guess
It's been more than a day, even when I just uploaded it, there is no LATEST plugin besides Yusuf's zone ... but after a day I see there is a LATEST plugin, airbase, but mine hasn't been approved ...
Wait
wow i wanted a plugin like that for a long time
i built a medieval town and i wantet do make a port for it and i used the commercial building that looks like a fishing hut
This might mean the plugin moderators haven't checked the submitted plugins yet. Give it a few more days and after that you coild possibly go to #plugin-support
Oh wait were already here
I'm stupid
Lmao
@hollow flax how exactly did you structure https://forum.theotown.com/viewtopic.php?f=115&t=12992 these modules, im trying to create one of my own but i keep getting errors when trying to require it
#plugin-discussion message
like this
and don't use Lua Wrapper when you use the require.
no i do
i just do it anyways cuz im an idiot
also just now i was doing json stuff so that doesnt count
Either way
You'd put the function into the script object
like function script:myFunction()
ah
i see where youre going with this
to get the script by index
Yes
And call it like this in very short and consice way
Draft:getScripts()[1]:myFunction()
ah yes
thats exactly what i needed
bruh
dont mind the plugin id its not representative of the plugin
wait, do you use the require for load the json?
no
wait
lemme just zip it up real quick
oh wait i see the problem
forgot to add .lua to my script reference
wait do debug toasts show up without lua wrapper
shouldn't tm
damn
now how do i debug my program
guess ill use debug.log then
where is the internal log anyways
for debug.log ofc
Logcat
?
You sure it's from your script?
am 99% sure
but lemme change the text to test
yep
[{
"active":true,
"id":"$testPlugin",
"author":"erksmit",
"title":"testing tool",
"type":"data",
"script":"testScript.lua"
}] ```
function script:init()
Debug.toast('hello world!!!!!!!!')
onInterval.register(function ()
Debug.info(Runtime.getTime() .. 'bazinga')
end, 2)
end
lol
im trying to make a module thatll run a function every n miliseconds
it should probably work
โข๏ธ
info.flowersoft.theotown.theotown
python scripts when
they already exist
Wait TT has python support?
ye cuz ja does that
proof
pretty cursed if you ask me
So you mean we can also script our plugins in Python?
Damn
would that really be a big diffrence compared to lua
Lua sucks
Still, too lazy
What if I told you Python is all objects?
;-;
tfw you are in android shell from linux from windows
I recommend not using require during development, use it when the script is finished. You can write functions, variables or anything according to the format of the module, to make it easier to separate the script into modules.
probably a good idea
restarting every change is getting annoying
hmm
so i got ```lua
storage = Util.optStorage(TheoTown.getStorage(), '$onInterval', {index = 0, registeredFunctions = 0, functions = {}})
but for some reason registeredFunctions is still null
You mean nil?
Try to use the function to refresh the storage value
local function getStorage()
return Util.optStorage(TheoTown.getStorage(), 'id')
end```
i can always just set the values 1 by 1 but since its there i wanted to use it
well i can register functions fine now
they just dont get run
How long does plugin approval take?
Oh ok thanks :)
๐
Took me 5 minutes lol
Already has : Runtime.postpone(function (),ms)
Oh yes i forgot to add check if there's an active loan
That postpones function execution
That's same as excute delay
That's not what he's trying to do
If you put it under script:update
He wants to run a function every 5 seconds for example
We can in C++?
What if I told you JVM is written in C++?
Run a function every 5 seconds?
local smth = true
local offset = 0
function script:update()
if City then
if smth and offset < 10 then
smth = false
Runtime.postpone(function()
Debug.toast('Toasted')
smth = true
offset = offset + 1
end, 5000)
end
end
end```

i suspect runtime.postpone is gonna have quite a performance impact when called often though
It uses runnable
Which creates a thread
Which operation is very expensive in Java
Like humougously expensive
yeah i suspected something like that
id rather just use runtime.gettime to keep track of how much time has elapsed
inb4 runtime.gettime creates new runnable to get time
well that sounds like your problem
Ah
Looked into it more
It gets put into function list that get executed at the end of the frame
runtime.postpone away
Nvm
Yeag
Just use Runtime.postpone
ait
Looks like a java bug
don't use luawrapper when you use the require function.
you can put my module later when you finish the script.
does "flag tram" still exists?
also I am still losing 2k on other maps probably that bank plugin
all existing flags
performance
I thought flag user ones gone
small time becomes big time
thats when the big bucks start rolling in
yes
im a bit of an expert on the subject of opimization
just look at my bot code
but not too closely
or youll see all the Task.run i call
watch me go online and it crash instantly
That
or that discord sharp library update
I am still losing money from bank plugin
Is there a plugin that as a fill bucket or something like that?
None that I know of
How do i make it so my plugin can be used on online mode?
Why overhead pole from train rdc can't put into my custom road that has flag train
With a plugin.manifest file
It's now updated just wait for the approval tnx
Dsa is an addon
It's a plugin
Always has been
What are some plugins you guys would recommend?
Diagonal road
Is that lua?
Java
Ok thanks!
How can java be used for theotown. I thought only lua and json is possible. Sorry if thats an dumb question Iโm new to coding in Theotown.
So heโs modding the gamefiles and not making a plugin?
no its just a screenshot of the games code
Ok thank you!
imagine
How do i add more frames inside the people
set category in your second draft to $cat_fence_poeple1
;-;
the error is visible from the error screen already
copy the code here pls
also consider using jsonlint.com
[
{
"id":"$cat_fence_people1",
"type":"category",
"title":"people",
"frames": [
{"bmp":"icon.png"}],
"ordinal":10
},
{
"id":"$fence_People1", //this can be whatever you want
"author":"Chipper", //this too
"frames":[
{
"bmp":"PeopleFence1.png",
"w":16,
"count":2,
"handle y":7
}
],
"preview frames": [{"bmp":"icon.png"}],
"type":"fence",
"price":100,
"width":1,
"height":1, //not sure if you have to use those keys with fences?
"category":"$cat_fence_people1", //make sure this category exists!
"title":"people",
"text":"Decorate your city!"
}
]
First frame
Then i try adding this
[
{
"id":"$fence_People2", //this can be whatever you want
"author":"Chipper", //this too
"frames":[
{
"bmp":"PeopleFence2.png",
"w":16,
"count":2,
"handle y":7
}
],
"type":"fence",
"price":100,
"width":1,
"height":1, //not sure if you have to use those keys with fences?
"category":"$cat_fence_people1", //make sure this category exists!
"title":"people",
"text":"Decorate your city!"
}
]
why do you have random comments lol
Wdym
//
e
also this is not the code you're getting errors from
Is it error bc i did something erong on the compressing?
consider using software that highlights errors
actually this one better; https://jsoneditoronline.org/
JSON Editor Online is a web-based tool to view, edit, format, transform, and diff JSON documents.
please help me with this
local r = 255
local g = 255
local b = 0
local a = 0.5
function script:settings()
return {
{
name = "R",
value = r,
values = {
0,
63.75,
127.5,
191.25,
255
},
valueNames = {
"0%",
"25%",
"50%",
"75%",
"100%"
},
onChange = function(v)
r = v
end
},
{
name = "G",
value = g,
values = {
0,
63.75,
127.5,
191.25,
255
},
valueNames = {
"0%",
"25%",
"50%",
"75%",
"100%"
},
onChange = function(v)
g = v
end
},
{
name = "B",
value = b,
values = {
0,
63.75,
127.5,
191.25,
255
},
valueNames = {
"0%",
"25%",
"50%",
"75%",
"100%"
},
onChange = function(v)
b = v
end
},
{
name = "A",
value = a,
values = {
0,
0.125,
0.25,
0.375,
0.5
},
onChange = function(v)
a = v
end
}
}
end```
you sure this was where the error was caused?
cuz it seems to check out
nvm the stacktrace confirms it was on entering settings
what does draft mean?
in this case the draft of the building you want to place
aka something like id but it's more like a variable that holds the id
you can get a draft with Draft.getDraft(id)
Ok
It's an expensive call, use it sparingly
This is happening every time even though it was tested correctly on the lua sandbox
you say that about almost any call
good thing i buffer pretty much everything
ah
You need to define the audio in a audio type draft
Then reference that from you plugin draft
what is the rating of how hard that is 1-10
Yes
On pc you can use vscode for all the coding you need for a plugin
On mobile I'm not sure
But there's probably something out therr
thank you sir
no problemo
does anyone know how to leave the roads with two lines on Mexican Road?
@terse void you are the creator of the night animation tool right?
is that generated with the tool
the tool only generated the ids and their x y
just looked and that's not how you use it
apply the generated code to your building
hm
don't create an additional animation definition
I did that but it didn't work. Is that because of I didn't put light: true and light switching: true thingies probably
width, height and level are booleans
Is that the answer to my question?
woa right
I forgot
this is my first time using that animation tool, that's great
nice
some are random but I used diagonal placement
but making custom animations would look better
also make sure to credit the author if you're going to release it
I am the author
yes
If you are going to use it then you should;
-credit TheoTown for most of the prop decos used in this texture
-credit pounkiller for decal grounds
-credit yusuf8a684
it is me
?
I made it and posted it on forum for free and wanted to test this tool on it
I am yusuf
Are you implying you are yusuf
you should credit ian for his tool

I am not gonna post it but that was in my mind to credit ian if I use it on a plugin
Well I'm not one to doubt, but can you prove you are yusuf? It's been a longgggg time
I just replied you on plugin store about canals
It's good to have you back
hi
ello
say me there is a way to close this
"Draw ground":false
?
What is frame code for this?
That is from the terrain, so basically it doesnt had "draw water borders" To false
Nvm @flat sonnet is right
"steal":"$cat_deco00"
Arigato
no that doesn't work. If I do that water won't be visible
if I use draw ground true and dont put a texture to there it will show like it is water, it is the trick
False
don't make it true
ops yeah, it is draw ground false
but how do I remove water borders tho
it is false already
is that your plugin?
here is the code of the canal
May i see the game
this one
Sorry for my English
but isn't draw ground makes the floor land?
Did u try it?
How can I detect if a user taps on a category in lua?
I want some way to run my script when the user clicks on a button and i have no idea how to make gui
You can change the probability value to make the lights change dynamically each night cycle.
oh, I was wondering what was that thing does. Thanks
there is the manual. click the about button in the right up corner, then click the manual button.
Is it possible to add another tab to this menu?
lol. actually, it's not easy.
https://forum.theotown.com/viewtopic.php?f=115&t=12992 << use movebutton. abuse the entire screen
is it possible to delete zones with lua
you could try using Builder.remove(x, y)
clearly documented 
It's the imposter, that's why
probably they are venting
There's no sound..
ok it works
Is it possible to add custom icons to lua from a png?
Yes
You can make it a frame in your draft
And get it from lua
Then you can use it as icon
just a question, is the custom water for privileged creators only?
No
What do I need to stop this from happening? The lines of water are not supposed to be there
This doesn't happen in older versions, so it probably has something to do with the update to water
Its supposed to look similar to this
The custom water tutorial is inaccessible btw. That might have been why he asked that
Yeah those strange things also happened when I tried to make a road with water ground true
you're absolutely correct
works now
Alright, i need some help rn.
As you guys know, i am working on a train expansion plugin.
However i reused a lot one of the train depot textures i made, and i would like, instead of having dozen of identical depots, to have just one texture in a folder i can "steal" for the others.
pretty sure you can use "steal" for that
no idea, never tried, probably something like animations
no idea
well, i guess i gotta have to do some testing.
probably you can use it the same way for preview frames
i guess so.
I used it in older version of 1x1 suburbs zone
do you have a json sample that could help me ?
Sure, but it just uses a frame. It doesn't steals animations of that texture tho
Which buildimg you are going to use?
Basically
until now, all trains had their own depot texture
which is basically the same for all
in order to optimise plugin space, i wanted to have a single depot texture that would be "stolen" by all others trains depots instead of each having its own.
This one should have it
You can also find the building you want from this
If you want them with their night frames and animations
thanks.
wait, does the "steal" work for night-frames & animations too ?
not that i would need it for night-frames & animations tho.
since it works already.
Steal just uses the base frame and nothing else
I don't really know that
well, i guess i'll have to experiment
well, first thing i notice is that it isn't compatible with upgrades
so depots will not be able to be rotated..
You need to add count or rotation aware to them
well count was added
and rotation aware as well
but it didnt work, likely due to the "steal" texture in use.
Hmm
You should copy the code from JSON resources I think
That would be more accurate
i checked it
and my plugin is kinda the first to do so.
I posted a topic on the forum
but i also got other ideas in case it doesnt work
like using fences for "rotation aware" depots
wait, are the graphics the same?
wdym ?
if yes, why don't you just use "frames":[{png}]
so you want multiple different buildings that all look the same but have a different purpose?
ah
it would be too much of an hassle for me :/
right now, the main idea i have is to have an 1x1 "depot" block
fully modulable
with fences being used for outside props
basically just like this
except it would have custom "fences / wall" that mimic the warehouse gate, walls or some "wall props"
well i think it would be the best idea
much more modularity
just steal the textures
yes it's how i'll do it.
@legrater, your pipes under roads work in no plugin multiplayer too, what an amazing thing
can anyone help me find the best plugins
Not that I am aware of
go search by youserlf
Almost every plugin is good, but there are some that everyone hates.
Thanks
DSA
Is it possible to save variables after the theotown app is closed
This?
accross
yesa
-- We define the local variable for our settings table here so that our functions can see it
local settings
function script:init()
-- Let's get a storage table and initialize values that are nil
settings = Util.optStorage(TheoTown.getStorage(), self:getDraft():getId()..':settings')
settings.someBool = settings.someBool == nil and true or settings.someBool
settings.someInt = settings.someInt or 1
settings.someNamedInt = settings.someNamedInt or 3
settings.someString = settings.someString or 'Xyz'
settings.someGenericText = settings.someGenericText or 'Hello World'
end
thse values will automatically be saved
What would I type when i want to save an integer named level?
function script:init()
settings = Util.optStorage(TheoTown.getStorage(), self:getDraft():getId()..':settings')
settings.level = settings.level 1
end
almost
function script:init()
settings = Util.optStorage(TheoTown.getStorage(), self:getDraft():getId()..':settings')
settings.level = settings.level or 1
end
would be correct
it will set the default value for level to 1
Ok thank you one last question is it possible to delete theme later and view how many were already created
What do you mean with theme
oh sorry i mean them
You mean the amount of values in settings?
Yes if it is possible to delete variables like for example settings.level
Ah ok thanks
Can i check some where what settings variablen I already created?
Like with an Debug.toast or something like that
Ok thank you!
I'm just gonna put this here
Look at GUI
no issues here
why do we have to pay 1 diamond for every The withdrawals we take? Why??
thats only for cross city withdrawals
balance
Who made this plugin where can I get this plugin
regional bank
What does rci mean
Residential commercial industrial
Ok thanks
With that bank I wish there was an option to pay back the loan when we had enough money. (Unless there is and I just can't find it?)
Why do you need to pay back if it only costs 2k per month
@rocky geode I've a 500,000 loan in one city and over 600,000 sitting there (I like having loans all payed off, they make me nervous otherwise)
I think these fine now
local button1 = addLine(nil,0)
local widthB = (button1:getClientWidth() - 5 ) / 5
local function addSelectionButton(text, state,frame)
button1:addButton{
icon = frame,
w = widthB,
h = 30,
text = text,
--other stuff
}
I'll add soon after thinking of accurate algorithms for that
@rocky geode thanks! 
can be a reference. 
Foo fighter
Is that the center part?
is it possible to disable a json file trough lua?
No
Whatever you're trying to do there is probably a better way to do it than disabling a draft
how to make code for car noise
[{"Type":car
........
"fun": [{
"actions":
[{
"id": "$pnr1class",
"type": "play"
}]
}],
}]
[{
"file":"1.mp3",
"id": "$pnr1class",
"type":"sound",
"volume":5
}]
I want to put every graphic from my plugin in a folder Graphics, but then the json file cant find it. Is it possible to tell the json file in which folder the graphics are.
is the json on the same "level" as the folder?
(i have no idea)
I mean, why not just put the json file along with graphics, it's just a single file
This gives the error โcant find road.pngโ
I tried this before and it didnt work too
it's not possible then
Unless ja knows some wacky way
ok
are you sure the graphics folder is same folder with main script?
100% sure
try to rename the graphics folder name to be lowercase.
Does anyone know why the Chinese train pack does not spawn trains?
On which rails tho? It might be using different road flags
Say if I was trying to make a nuclear bomb plugin with in-script radius modification, how would I do this? Thanks in advance.
Youd have to learn lua
Then recreate the nuclear explosion effect of the nuke
(you can get the graphics from world texture)
Then do some maths to get a custom radius
for graphics any image editor program will do
but personally i prefer paint.net
for making jsons i reccomend either notepad++ or vscode
or just use the pca website for code
Wait, so in order to do disasters, you have to do it in lua, not json?
working
working 
Or visual studio 2019
god forbid
CPU usage go brrr
So after I code the lua file, would I still use a .manifst file, pngs, and put it into a zip file?
yes
although you probably wont need many graphics
maybe a logo for your plugin but thats about it
you can use json fun, but it's not fun.
it's fun
That should be unavailable too
Jeez that's amazing, if only I had done it my fingers would be in pain ๐
Good job Desolan ๐๐ผโค๏ธ
Sorry
But What do you mean
This is 18x18
no building should be that big
what?
I wouldn't put this building on anything bigger that 10x10
ye
Does anyone have the pickle monster textures? I need the big and small ones for a project and can't find them in the world texture
Ja must have them lying around
I will remind you in 2 hours
Don't you have a pidroid command for reminders already
not yet
Is it possible to deactivate the normal categorys like for example Zones
No
ok
It is possible to hide categories, if that's what you mean
Something is happening with this plugin , instead of showing water shows a big
I had to replace it for blue concrete to pretend its water and do my dam
Just the regular ones that it says to use
Itโs actually possible I figured out a way.
No I mean completely remove
That's because of a new tag that's needed for drawing water
Before all tiles would have water drawn under them by default
Now only tiles with the tag set to true
That means that basically all coastline plugins will have void
horrific oil spill
you can use regular water on hills tho, which I do and looks better than it, except there are no streams
What do you mean Json fun?
Is anyone having trouble with the Indonesian plugin with no trains spawning?
is it possible that a road connects with a road one level higher automatically?
with bridges
Why is it not possible to override the zone category?
And dsa too
Plugins aren't really allowed to mess with core mechanics
Did you get the goods?
Looks like Pidroid reminder didnt work lol
I'd say
Can someone send me the in game lighthouse texture
Will cropping the image be a problem?
Download the image and then crop it using pixly
Ok thanks
That just means the site doesnt support that type yet
What's the problem?
What's the value for Override
Is it
Override - True
its stated in in the first image
In which code ?
Well The ID is unique !! I'm the first one to use it !
How's it possible that the I'd is already in use ?
you maybe reused it twice
how do I make this hot air balloon can fly like a helicopter in Theotown, please help me everyone
Cause its downloaded
can you guys help me or not?
that angle does not look like a correct theotown angle
there is actually a nicely made balloon plugin tho
please answer
Is it possible to make custom zones like this one (from military)
yes
How? Is there a tutorial somewhere?
Lua used by TheoTown is 5.2.x
https://github.com/luaj/luaj
to be exact
Could anyone help explain why my boat plugin textures keep getting cut out. Specifically the phillipean boat plugins
Codes
I made my zone now but cant place anything on it. How do I tell the zone what can be build on top of it?
I mean things that are already in the game. I know how to do it with my own plugin buildings.
yeah I know, but I want to be able to build buildings on the zone that are from default in the game
Inherit those buildings and apply the zone tag to them
Ok thanks!
Pwarn 784451419213660191 spam
Member "784451419213660191" not found.
oh he left
Is it possible that a building can only be placed on one zone and nowhere else
No
ok
all of you have gotten the update while I haven't even though I'm a beta tester too
๐๐
Im chilling in 1961 bc if theres bug in latest ver, im still gucci
How does claiming the diamonds from the plugins work?
I clicked claim but in my game with the same account I uploaded my plugin, I got nothing?
You need to reedem the code
If you claim, you will get a message
Check the message, you will see a code
Then go to TT click diamonds, then reedem it
My plugin got suspended because of wrong lighting. Whats wrong with my lighting?
Wrong sun direction
Yes
But Did you really made this ?
Because it seems to be copyright
Which tile did you used ?
depends on the moderator.
When I download a house plugin or something, is there a way I can make it a zone so I donโt have to place them one my one?
if you download from the forum showcase and you can edit that json file, only edit on the type tag of the code.
Yes I made it myself
Thanks
Actually I was making same type of building
@vivid totem
This is one of the IT Office of an Indian IT company
My building is from paris its called louvre
Is it possible to get the json files from the military stuff?
They are IAPs so no
Ok Is it possible that a zone is automatically placed around the building just like the headquarters? (thats why I wanted the code because then I could see how they did it)
"zone radius" attribute probably
It's an integer attribute for zone draft
Ok so I would do this in lua:
local z = Draft.getDraft(myzond)
and in json
โzone radiusโ: z
Ah
I was referring to the draft as an object
Draft is basically the JSON object that gets converted to game object
In this case
I was talking about your zone definition
Iโm sorry Iโm a bit confused could you give me an example?
// Your zone definition
{
"id":"$myepiczone",
//other attributes
"radius":2 //sets zone radius
}
ok and how does this affect the zone radius tag?
Yes but lets say I want my residential surrounded by a specific zone, then what do I put after the โzone radiusโ tag. The code you put above?
Ah, it can only be surrounded by it's own zone
Oh so buildings cant be surrounded?
Are you using custom zone and custom buildings?
Yes
What would I write in my zone json when i want my resedential surrounded?
"radius":1
But I would have to define in the resesdential json file what zone right?
In zone json
How
How can i put light frames into ingame buildings
inherit
Ok I already asked this question yesterday however its was really late and I think I got too confused to get, what was explained to me. So here is the same question with a better explanation what I want to do:
I saw that the military and airport buildings automatically place zones around them,(I will post a picture below) and I was wondering if it is possible to achieve the same thing in my plugin.
I have two json files right now one for the zone (zone.json) and one for the road (road.json). I want the road to be surrounded by my custom zone.
(Again I will post the code of both below)
What do I write in my Road file and what in the zone file. If possible could some body write what I have to add?
I hope somebody is willing to help, this would really help with my plugin.
How it works for military stuff
The code of the files
? This is not really solving my problem, I already put โradiusโ:2 in my zone file and โzoneโ:โmyidโ in the road json but it does not create a radius
maybe use json fun or lua
so its not possible with a tag?
Probably something only available to base game drafts
Also
Refer to
For available tags
I realized that I posted in the wrong chat so I'm reposting it here
Can someone help me? How do I write in JSON file to my plugin allow to construct a foundation like this?
Ah
so you should automatically be able to do it
Wait, wasnt it "slope aware": true?
theres also supports slope
but that should only be true if the plugin handles slopes on its own
It doesn't work either 
I made a night mode for my plugin with the animation dev tool what do I do with the code I get now?
insert the generated code into "animation" tag of your plugin.
I did now the light animation is always there even at day
write "light": true, "light switching" true on your light animations.
Ok thank you it works now
Ok now I have the problem when winter and nightmode are on the light animation is overlapping the winter frame. Can I fix this somehow?
Hi. The Chinese train and Turkish trains passenger trains will only spawn extremely rarely. This wasn't a problem in the past and think this may be more of a game issue. Does anyone know who the creators of theses plugins are and where I can contact them?
I believe TDCC or how it was called is discontinued
Ok. It seems to be an issue with other passenger train plugins so hopefully it will still get fixed.
My game can't load the plugins store
check your internet connection
then wait a few minutes , while building
It may reconect again
Game version?
Try restarting your deivce
i just turned it on it was the same last two day
Then probs your game/ device can'5 connect to the servers
@hot maple
i did