#plugin-support
1 messages · Page 1 of 1 (latest)
you provide additional frames
you put more objects in your frames array
or provide a single png file with them all and use w and count attributes
I don't see that you have provided various frames
to have those arrows, you must provide more 2 or more different frames
Can someone help me? (note: I already filled in the size and width
What's your JSON look like
Copy then file then go to TheoTown file then click the plugin folder then put it there. There's a tutorial on how to do it
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
By default you should be in /storage/emulated/0/
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.
Thx
does anyone know where I can get this plugin from? I'm playing on android and I used to have it
Platforms: shows a apple logo
Plugin creator has chosen to only release it on ios
kinda weird tbh
How do i make a plugin with more than one building
I think you just simply put a seperate code for them like for example
"id:$house1"
code code code
"id:$house2"
more code more code more code
Sorry if its half assed
Show the shed code
because final: true
Still error whithout this
Nvm
When i try to move the plugin files from my phone to my pc, the pc sees them as "clip organizer media package file". Is this normal? Or how do i fix it?
@tropic drift what are you using to transfer them?
add more images in your frames array
either with "w" and "count" or with simply additional objects
that depends on how your frames look like
if they are separated into multiple files all you have to do is add a new object to your frames
[{},{}]
how am I supposed to help
i need your code
i told you tp create a new object, not both
remove the inner square brackets
those arent square brackets
'..]..[..'
and the comma as well
give it back!!!
put the comma you have removed back in the spot it used to be in
your objects have to be separated
not the best formatting but it will work just as fine
it doesn't have to
look for it in the category you have put it into
would be residential in this case
Usb cable
you did what?
it won't work if you change the extensions
dont change the extensions
thats not how you create zip files if you arent already familiar
hi, it's getting a "type" error, but I put it
ooooh I managed to make the plugin but the night animation came out wrong
It shouldn't do that...
How are they suposed to save? As .plugin or .json? I think this hapend because the files containd pictires and text, and they didn't came separeted in a folder, like other plugins do.
If they are just in files, then they should just port over as files
Regardless of if they're .plugins .zips or .mpf
Tried to put them in the plugin folder, but they didn't apear
Nevermind i fixed it👍
I already tried the thunderstorm and fog, and i don’t think it’s the blizzard.
from the gallery
I did everything right, animation etc. I entered the game, at first there was no error, I went to test the plugin and there was no night animation
I think I know what it is, but I don't know how to use it
@earnest pendant @sage quail It is neither, it's a plugin from Marcto
Where do I find a good plugin that will create crowds of people, like on individual square tiles
Philippine road plugin doesnt enable dia frames for some roads
Use dia tool
Um ye im pretty sure i use the diagonal one way road from the ph road plugin
I mean the tool for roads when building road
,
ah i understand
can anyone show me how to draw stairs???
whats the problem?
This is Night Animation
Ok , but this is #plugin-support
Here you post your problems with the plugins
You don't listen to the suggestions
The building its not proper for Theotown
The colors are to bright
Continuously attempting to post the same, low quality plugin to the store may result in your uploading rights being revoked.
hi i was wondering how can i edit my building's maximum population
cant see it in the json and manifest files
(i used the sample plugin files)
oops nevermind i know how now
dont ask why i put a green box image
If you will upload like thar , it's not gonna work...
This Is Work Or Not Plugin Store?
Nope
Remove the outlines and make it so the building has depth in the windows and in the roof
You have lots of tutorials in the pins
indeed
Oh i meant in #plugin-discussion lol
he he he haw
ok
Bruh
you want to run a clock animation on your draft by the date?
Just 24 hours
I managed to make the plugin! oh!
only the image is placed in the frames, nothing else
Well, I don't know about that, but I recommend you use the site to create the json automatically, then use the json app to enter the json code, and just add the night animation
I'm Brazilian, and I guarantee that a Brazilian tutorial teaches more than a gringo tutorial
But, the site does not have all the categories. Unfortunately
I made my plugin like this, one for religion
Why use fun though?
To work, everything has to be in the right order, so some things can change
Well, with the residential category, there's "self construction", "people", etc. In terms of religion, decoration, they don't have that, and I don't know how to organize
What Happened?
this plugin is of too low quality to be uploaded to the plugin store
it completely doesn't fit the game
you didnt listen to any of the suggestions and upload the same building...
Oh okay. Can I Build Another Building?
as soon as it's quality it's fine
sure
please paste it here
try spellchecking
line 4
if youre using the code from above it wont show
you didnt put anything into the actual category
refer to the tutorial
theres a part youre missing
"category":"id"
please read your tutorials thoroughly
goodluck
if your plugin is type decoration it will automatically be put into the default 'decorations' category
yes
if you set the category to something else it will obviously go there instead of the default category
as far as I'm concerned you cant put a building into more than 1 category
you can put categories in categories though
nested categories?
in the same way you would put a building into a category
yeah
refer to the above
you would define a destination category in your custom category definition
just as for buildings
ight
eli5 time
this
but in category definition
definition of your custom category
I cant get simpler than that
I eould if i wasnt on mobile
you literally just put "category":"id" in your first object
first curvey brackets
use debug mode or download original json files from the forums to get the category's id
probably something named like category.json
in the resources
you're welcome
Is there a way to make a police car make a siren sound while running on the road?
bc i want my police car to spawn with siren and lights
yes. it is part of the Car Chase Spawner plugin. and I want the police car to make siren.
How?
@eternal lake help me please :>
Sorry. I ping to make sure :>
add more buildings to the category
separate what
do you have multiple buildings defined
does your plugin contain more than 1 building
define more buildings
not frames
anywhere
just make sure it's below your category definition
man
I can't get simpler than tha
you define a new building, in a new object, with new attributes like frames and id
if you don't understand this I can't really do much
@earnest pendant what kulche is saying is it's just repeating the same process. Rather it be as a different json or in the same file. You just add it in after what you've done
Does anyone know the plugin of the white and blue buildings ?
Maybe private?
How to create plugins
Check pins
Not implemented features
@hollow flax it seems like some of themax tram didnt show up in the train lists
anyway to fix it?
use "type": "train car"
I'm still waiting for my plugin to be approved (I understand that I have few moderators)
Ah i see
well so i did try your way but it's no work
U sure that those car has diagonal frames?
that complex industry vehichle is the only one without diagonal frames
the others all have them but that one doesnt
Hello how to hide ui again?
TheoTown.SETTINGS.? I can't remember
hideUI
Thanks
society if settings table contents were documented
(i know it wouldnt even be that hard to do ourselves but im lazy)
Just do it👍 👍
Ye i was talking about the black car on the left
documented as a file.
just convert into camelCase the value in the config.json file.
True
Didn't understand it, when i use "override: true" i get an error
Don't use override true unless there's something to actually override
I have something to override
Let's say i have a plugin downloaded and i am making another plugin that override the first one
(both by me)
need to have override in both plugins?
And you made the IDs the same?
Yes
This is the error
Is there a diference between "having a plugin in store and another in the files" and "both in store" when testing?
load order is important
I have no idea
@rocky geode @hollow flax do you have some knowledge about this?
It says that you overide a category given by id but it's not exist
Basically you're overidding non existing draft
But as you said having same id from store or local, loading is important
Draft having overide attribute loaded as before the original draft
There's a method to get rid of that if you really want to disable the original draft on existence, that's with lua
Would I have to change the entire code?
I guess I will leave it as it's now
Like, the overriding already works without that attribute, but I just wanted to remove the error from appearing at store
What is that?
basically multiple ids for the same draft
use "inherit" instead of "override"
inherit only change the part you want. override is changing the whole draft.
do you want to override, or only load once
keep in mind, you cannot influence the order the game loads plugins in
That's okay
well its erroring because the override draft was loaded before the og draft
so its not ok
Don't worry, i will keep the plugin working in its actual version
Btw thanks for the attention everyone
I'm not sure if this goes here (sorry if I'm on the wrong channel) I have a problem with a puglin I guess it's an incompatibility with another but I'm not 100% sure I appreciate the help
I don't have this
he means settings.json
Does "2" from the key is included?
i notice lots of settings key with 2 at the end i doubt if that should be include
you can always just
iterate over the settings table with pairs()
dont even need to do that, you can just toast the entire contents
You can't iterate a user data
ah its userdata
nvm then
it takes 5 seconds to use the search bar
Simple question,how do i add custom icon,the top left one,and how do i add custom click sound,i mean when a building being click it makes sound that had been coded.
you're welcome
Looks like something RockFort made. I think I saw him upload something like that before
here is the world texture
some where there should be the emergency service cars
you will also need to code the cars
you download the pgn from there
Won't the police car look to similar to the vanilla police car?
Idk what's wrong with this
on a side note you have to nil the object in the list itself, now youre just nilling the item variable
which doesnt remove it from the list
The :countChildren() returns the child count of the object, there's no way for that to be an index exception
Even i put, transit_list:getChild(i) = nil I've still encountering that error
Already debug toasted the children count, its same with all items from the list
what are you using that requires :getChild anyway
as far as im aware thats not a standard function
or anything provided by TT
nor the countChildren function
my guess is that there is a mistake in your countChildren function
You mean the object type?
yea
oh its a gui object
Yeah and all methods used was from gui objects
then its simple
youre modifying the list you are iterating over
you should get all of the children and then delete them in seperate loops
if you do it in the same loop the indexes will not be correct anymore
I don't think so, as far as i know from the documentation that should work
but you delete items from the list
presumably, the list then reorders itself to leave no empty gaps
Oh i get the point
Re count the children again
then delete index 1 repeatedly
nah just delete the 1st child c times
cuz another child will take its place
I don't think that gui will update that fast
the gui wont update til your lua is done running
Alright thanks
?
Wdym by PNG?
What do you mean by PNG?
Does not work
Do you have internet?
Yes
Do other sites work?
Idk
Maybe it's a problem of your ISP
Try any other site, like https://www.google.com and send screenshot if it isn't working
Search the world's information, including webpages, images, videos and more. Google has many special features to help you find exactly what you're looking for.
Ok
then
My ISP is good
It has to be that your ISP is blocking the site
Use a vpn and see if it works
I "improved" the texture of my plugin, can it be approved like this? Because if you think it can't be approved, I won't even post it, because I'm afraid of being banned for "insistence"
that because when you delete the first gui object, the last child count isnot "c" anymore.
there are 3 solutions:
use repeat:
repeat
gui:getChild(1):delete()
until gui:getChild(1) == nil
or use while:
while true do
if gui:getChild(1) == nil then
break
end
gui:getChild(1):delete()
end
or reverse the loop:
local c = gui:countChildren()
for i=c, 1, -1 do
gui:getChild(i):delete()
end
does you need 2 separate JSON files to have night animation or just in 1 JSON file?
you can always have anything in a single json file
May I have an example of your night animation codes? This was my first time to have Night animation in my Dense Police Station
they are provided on forums and are the same as regular animations
that's not how manifest works
a manifest is not used to define buildings
please read the manifest tutorial
you don't use multiple objects in manifest files
a manifest is a file that allows the plugin to be used in multiplayer
not separate buildings
write a proper manifest file just like the one shown in the tutorial
literally just copy it and change the values
what
you are literally trying to use a manifest for 2 buildings, separately
and that's not how any of it works
the manifest describes your plugin, not your buildings
I literally told you what to do
Devs have tools to decrypt encrypted plugins ☹️
That's how plugin store plugins are reviewed
they literally made the extension
Ugh i can't hide my code for JA
just obfuscate it until he wont bother to read it
Lol
or bribe him
(or ping me when you upload something to the store so I can approve it without him seeing it)
a title and description for your plugin
if youre uploading to the store, most of it is handled for you
I literally have the entire database of them
I do too
for analyzing contents automatically
yes
Lobby Seen how bad aos was done
@eternal lakeimma crop those bits of the roof texture
lol
its either that or it sticks out
just turn it into an animation
alr
its so simple
lua would not show the textures in the preview then
problem, coder?
at least the bug is getting fixed
overwrite preview gui
problem?
lol
its very important to have those bits
think I'll just add a DSA library function for this specific use case
another one for the collection
lol
at least the upgrade previews don't have to be pretty
thatd be inconsistent
aren't they icons in previous versions
no
youre confusing DSA research center
i saw it myself less than an hour ago
hm
the research center doesnt have upgrade frames in the first place right
lol
I only do the frames
the 12904018351 line json?
think I will just continue writing staff wage backend
fixed
could as well add icons for that
nah
to procrastinate adding icons to ci
its a spiffy 24 lines now
That's dsa right?
i think the default upgrade preview looks better than just icons
maybe, if the icons were enlarged maybe
if its just icons you might not see what the upgrade actually adds to the building
Target w &h that should work
im just in charge of that rocket chief
also why are we in #plugin-support 🤨
don't ask me
you probably haven't defined it
show code
manifest doesn't have anything to do with buildings
yea thats not how json works for multiple buildings
[ { 1st}, {2nd} ]
merge the largest two arrays into one
thats how you do it
just like this ^
actually
this whole thing is faulty
nah
this doesnt have anything to do with your manifest
its just incorrect
you have to get rid of the ```
],
[
and instead put 2 objects in a single array

it doesnt magically appear
the game only read the first building
and stopped at the ]
probably because it's a premium feature
Making a Building plugin code is much easier than the nigh animation coding. Its soo confusing hahaha huhuhu! 😖 😭
[
{
"frames":[{"bmp":"Dense Police Station Nightmode.png"}],
"id":" ",
"type":"animation",
"light": true
"light switching": true
},
{
"frames":[{"bmp":"HausTest.png"}]
"id":" "
"draw ground": true,
"type": police",
"animation":[{"id":" ","x":0,"y":0}]
"width":0,
"height":0
}
]
[
{
"id":"buildingwithanimation",
"type":"decoration",
"width":3,
"height":3,
"frames":[{"bmp":"basepart.png"}],
"animation":[
{"id":"myanimation"}
]
}
]
those codes is subject to editing. which is more appropriate in my night animation?
Image of night animation
Is Night Animation On Android Still Working?
If you're talking in-game night animation then yes. But I don't know in modding
there were no changes in night animations recently
this is not a proper json, it has a syntax error
reread it
fill in the ids too
how is the animation supposed to draw if you didn't provide matching ids
Hughh
its body disposal
How can i use the textures in the game resources for my plugin?
Like, just part of the game resources taken out with only code
I struggle to explain it but i hope yall got it
You use in-game plugin store search functionality
Like the steal frames thingy
Pneko why
why are there carrabba's commercials in california?
ban
but why are they
I came here to blow cities up with Lua, not my mind
that can be arranged
Nvm
Nope
Where is that stated
that's waste and body disposal, however it should no longer be the case
Needs emotional support
I think i may have a stack loop of loading a module
How to get rid of that if you want to load module1 to module2 and load module2 to module1
Wait nvm
But with function that has a require to call on would do?
what
if a need b and b need a, then you don't need to seperate them. lol
Ahhh but it was a different class
what to put in animation code?
[
{
"id": "$dense1police1station",
"type": "police",
"author": "Plugin creator website 3.0 & Ryk_Mak_2050",
"width": 3,
"height": 3,
"frames": [
{
"bmp": "Updated Dense Police Station.png"
}
],
"title": "Dense Police Station",
"text": "To accommodate your dense city. It has 7 Police Cars to patrol your densely populated city.",
"price": 70000,
"monthly price": 150,
"influence police": 120,
"performance": true,
"bulldoze price": 4500,
"build time": 47,
"power": -15,
"water": -15,
"service cars": 7,
"requirement":{"requirements":[{"type":"RANK", "data":{"lvl":7}}]},
"animation":[
{"id":"$animationblinkingredlight3x3","x":31,"y":-40}
],
}
]
[
{
"frames":[{"bmp":"Dense Police Station Nightmode.png"}],
"id":"dense1police1station",
"type":"animation",
"light": true
"light switching": true
},
{
"frames":[{"bmp":"Dense Police Station Nightmode.png"}]
"id":"dense1police1station"
"draw ground": true,
"type": police",
"animation":[{"id":" ","x":0,"y":0}]
"width":3,
"height":3
}
]
Full code:
IDK coordinate thing. Halp
you might as well eyeball them
the point you're getting the coordinates of is the topleft pixel of your animation framw
and the coordinates are like a regular x y graph but the y coordinate is inversed
the 'graph' starts (point 0 0) on the leftmost tile of your building's tile
but filling in the id should suffice for now
I'll do trial and error now.
yeah thats an okay way to get coordinates
you can just count pixels once your id is filled in
Thanks. Gonna download it on my Laptop emulator
or just paste it into jsonlint
yes
merge the two arrays into one
I think we have talked about this some time ago
???
Yeah you're right. Its been like 5-7 years since I've been taught into coding.
Error 😵💫
{
"id": "$dense1police1station",
"type": "police",
"author": "Plugin creator website 3.0 & Ryk_Mak_2050",
"width": 3,
"height": 3,
"frames": [{
"bmp": "Updated Dense Police Station.png"
}],
"title": "Dense Police Station",
"text": "To accommodate your dense city. It has 7 Police Cars to patrol your densely populated city.",
"price": 70000,
"monthly price": 150,
"influence police": 120,
"performance": true,
"bulldoze price": 4500,
"build time": 47,
"power": -15,
"water": -15,
"service cars": 7,
"requirement": {
"requirements": [{
"type": "RANK",
"data": {
"lvl": 7
}
}]
},
"animation": [{
"id": "$animationblinkingredlight3x3",
"x": 31,
"y": -40
}],
"frames": [{
"bmp": "Dense Police Station Nightmode.png"
}],
"id": "dense1police1station",
"type": "animation",
"light": true,
"light switching": true,
"frames": [{
"bmp": "Dense Police Station Nightmode.png"
}],
"id": "dense1police1station",
"draw ground": true,
"type": "police",
"animation": [{
"id": "dense1police1station",
"x": 0,
"y": 0
}],
"width": 3,
"height": 3
}
it's not enclosed in an array
also I have no idea where is it supposed to separate
because it doesn't anywhere
put square brackets around the whole json and separate it into 3 objects (because that's the number I guess you're trying to get)
Incase those didn't work, I guess I have to separate the night animation and the original one then... 😕
not sure what do you mean by that
This. The non-highlighted one is the code that my plugin is currently use. While the highlighted one is the night animation to be use in the next update of my plugin.
all you have to do is fix your objects and arrays
it can stay in the same json
also, why are you defining the same building twice
the highlighted one? I find that code in forums.
you have two police buildings that use the same id
and the second building (the lower one) is missing several attributes
if you're trying to define just a single building with a night animation the code is very wrong, please reread the animation tutorials
so the night animation frame in highlighted code must have individual ID?
each thing has to have a separate id, that's why attributes like override or inherit exist
also animations have to be defined before they are used, so move it to the top of your json
OK got it. Thank you.
you're welcome
I've use ian's night animation code 2 years ago as reference to ease coding.
And didn't worked...
NVM I have lacking code.
Imma take a break.
[{
"id": "$dense1pol1stion1niam",
"type": "animation",
"frames": [{
"bmp": "Dense Police Station Nightmode.png"
}],
"light": true,
"lightswitching": true,
"draw ground": true,
"type": "police",
"animation": [{
"id": "dense1police1station",
"x": 0,
"y": 0
}],
"width": 3,
"height": 3
},
{
"id": "$dense1police1station",
"type": "police",
"author": "Plugin creator website 3.0 & Ryk_Mak_2050",
"width": 3,
"height": 3,
"frames": [{
"bmp": "Updated Dense Police Station.png"
}],
"title": "Dense Police Station",
"text": "To accommodate your dense city. It has 7 Police Cars to patrol your densely populated city.",
"price": 70000,
"monthly price": 150,
"influence police": 120,
"performance": true,
"bulldoze price": 4500,
"build time": 47,
"power": -15,
"water": -15,
"service cars": 7,
"requirement": {
"requirements": [{
"type": "RANK",
"data": {
"lvl": 7
}
}]
},
"animation": [{
"id": "$animationblinkingredlight3x3",
"x": 60,
"y": 10
}]
}
]
you defined an animation and put another animation inside it
while that's possible, why would you do that, especially if you don't have "dense1police1station" defined
also, some of those attributes aren't designed for animation type
please read the actual tutorial, it's not that hard to find it
OK after I eat dinner. 🍽️
<@&368799288127520769> you know what ot do, problenjny.
I hate Discord
Didn't got any ping
how do i install plugins on the steam version of the game
The same way as the mobile version
But i dont know where is the plugin folder
The files? Or the plugin store
Open the menu and you should see it
Ptag 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
By default you should be in /storage/emulated/0/
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.
What does moveable attributes for car draft? Does it for itself able to move to neighbor city?
They have such tag?
impossible to make more than 20 frames in a single .zip with pca, would it be possible to extend the max frames with pca then?
not very related, but by the time you need 20 frames it might be a good idea to consider learning how to use json
this might be a solid starting point
alr, thanks you, about this, do you have any links on coding cars or trains
there should be several in the tutorials and docs section
Okay thanks very much
What Icon.TOOLMARK index?
else
-- mark unsuitable tile red
Drawing.setTile(tileX, tileY)
Drawing.drawTileFrame(Icon.TOOLMARK + 16 + 2)--what the frick is this even pointing to
end
use this
i stole it from the tree tool for use in the text placer
this points to the red tile marker
dont call me insane
call lobby insane
well if it works
it works, but it doesnt make me happy about it
Ppunish 674785632907690005
the Johndle of Johnsons Johndle#1490 was banned for the following reason: Sharing scams or phishing content.
Dude... you are out
Wasn't there
I tried iterating it from Icon.TOOLMARK 16 + 1 to + 300
Still can't find
Maybe it's was an animation indexed lower or much higher than it
it must be part of a diffrent draft
Icon.TOOLMARK + 16 skips all green road arrow frames used when building road
lol
So +1 would be the green hollow tile
Guys, how can I increase the reputation in Aos ?
Spices
Trade
How do u make diagonal roads?
Do you mean as in coding or generally
tbh I don't know much about it hehe
just wanted to help a friend
hey can someone remind what ID should I use in .json just to attach the .lua script and nothing more?
nvm, already found it myself
How do I get the tile to put the plug-in on @hard drift
why does the lua script not load
the lua is just a toast in script:nextDay()
I have 2 lua files in a plugin btw, first one is attached to "type":"script" object
first one loads & works fine
okay I reopened the game (even though I think I already did) and apparently it worked
alright
btw I tried require thingie because I need to have multiple files, and it causes exception
I searched on forum and apparently its because of the wrapper
(sorry, should be #plugin-lua-and-fun)
how do I fix tool icon not displaying in build mode?
I'm setting it with preview frames
nvm, I just changed preview frames to frames and it fixed
I thought frames tag won't work with tools
Lua plugin doesn't work on mobile
After the first pic there is the entire source code of my Lua file
(works fine on PC)
Ppunish 856134145725693962
hwhqiu-_-#3163 was timed out for the following reason: Spamming a video complaining about the server and it's also not in english
Haha
what code editor you guys using and how to add pictures
Check #plugin-discussion pins 📌
do scripts need manifest to be used online?
(my script doesnt work on online plot which is mine)
okay
Hi @muted sandal. May I have your Homework of your night animation code?
Bruh how many nights did I missed Dinner haha!
@main jasper
Here the code:
[
{
"id": "Your ID",
"type": "animation",
"light": true,
"light switching": true,
"frames": [
{
"bmp": "light pictures",
"handle y": Y
}
]
},
{
"id": " Your building iD",
"type": "commercial",
"author":" your name",
"animation":[
{
"id": "light id"
}
],
I'll change it a bit so it doesn't obvuous that I copied. Thank you. 😄
be aware of the redundant comma at the very end
also, while not necessary for every animation, x and y attributes could be useful for positioning
or you could use handles, that doesn't matter
Tank yuu
what's the function of "handle y": Y ?
it moves the handle of your animation frame along the vertical axis
handle is the point you're defining the coordinates of
halp
trailing comma
fixed
also you're missing the extension in the "bmp" line
[{
"id": "$dense1pol1stion1niam",
"type": "animation",
"light": true,
"light switching": true,
"frames": [{
"bmp": "Dense Police Station Nightmode",
"handle y": 1
}]
},
{
"id": "$dense1police1station",
"type": "police",
"author": "Plugin creator website 3.0 & Ryk_Mak_2050",
"animation": [{
"id": "$dense1pol1stion1niam"
}]
},
{
"id": "$dense1police1station",
"type": "police",
"author": "Plugin creator website 3.0 & Ryk_Mak_2050",
"width": 3,
"height": 3,
"frames": [{
"bmp": "Updated Dense Police Station.png"
}],
"title": "Dense Police Station",
"text": "To accommodate your dense city. It has 7 Police Cars to patrol your densely populated city.",
"price": 70000,
"monthly price": 150,
"influence police": 120,
"performance": true,
"bulldoze price": 4500,
"build time": 47,
"power": -15,
"water": -15,
"service cars": 7,
"requirement": {
"requirements": [{
"type": "RANK",
"data": {
"lvl": 7
}
}]
},
"animation": [{
"id": "$animationblinkingredlight3x3",
"x": 20,
"y": 60
}]
}
]
Refer to this message ^
[{
"id": "$dense1pol1stion1niam",
"type": "animation",
"light": true,
"light switching": true,
"frames": [{
"bmp": "Dense Police Station Nightmode.png",
"handle y": 1
}]
},
{
"id": "$dense1police1station",
"type": "police",
"author": "Plugin creator website 3.0 & Ryk_Mak_2050",
"width": 3,
"height": 3,
"animation": [{
"id": "$dense1pol1stion1niam"
}]
},
{
"id": "$dense1police1station",
"type": "police",
"author": "Plugin creator website 3.0 & Ryk_Mak_2050",
"width": 3,
"height": 3,
"frames": [{
"bmp": "Updated Dense Police Station.png"
}],
"title": "Dense Police Station",
"text": "To accommodate your dense city. It has 7 Police Cars to patrol your densely populated city.",
"price": 70000,
"monthly price": 150,
"influence police": 120,
"performance": true,
"bulldoze price": 4500,
"build time": 47,
"power": -15,
"water": -15,
"service cars": 7,
"requirement": {
"requirements": [{
"type": "RANK",
"data": {
"lvl": 7
}
}]
},
"animation": [{
"id": "$animationblinkingredlight3x3",
"x": 20,
"y": 60
}]
}
]
Halp
god
what are you even trying to achieve
you have two identical ids
and as the error says, the middle building has no frames
Because in the second "id" says "Your building ID". So I copy the building id. 😅
that's not how any of it works
So what Id should i put in the 2nd id?
preferably none
and delete it
it makes 0 sense
move your animation object from the middle building to the lower building
and delete the middle one completely
[{
"id": "$dense1pol1stion1niam",
"type": "animation",
"light": true,
"light switching": true,
"width": 3,
"height": 3,
"frames": [{
"bmp": "Dense Police Station Nightmode.png",
"handle y": 1
}]
},
{
"id": "$dense1police1station",
"type": "police",
"author": "Plugin creator website 3.0 & Ryk_Mak_2050",
"width": 3,
"height": 3,
etc...
could be coordinates
also instead of cropping the code with etc... I recommend you to just send the file
[{
"id": "$dense1pol1stion1niam",
"type": "animation",
"light": true,
"light switching": true,
"width": 3,
"height": 3,
"frames": [{
"bmp": "Dense Police Station Nightmode.png",
"handle y": 1
}]
},
{
"id": "$dense1police1station",
"type": "police",
"author": "Plugin creator website 3.0 & Ryk_Mak_2050",
"width": 3,
"height": 3,
"frames": [{
"bmp": "Updated Dense Police Station.png"
}],
"title": "Dense Police Station",
"text": "To accommodate your dense city. It has 7 Police Cars to patrol your densely populated city.",
"price": 70000,
"monthly price": 150,
"influence police": 120,
"performance": true,
"bulldoze price": 4500,
"build time": 47,
"power": -15,
"water": -15,
"service cars": 7,
"requirement": {
"requirements": [{
"type": "RANK",
"data": {
"lvl": 7
}
}]
},
"animation": [{
"id": "$animationblinkingredlight3x3",
"x": 1,
"y": 20
}]
}
]
what did you expect, you didn't attach the animation to the building
[{
"id": "$dense1pol1stion1niam",
"type": "animation",
"light": true,
"light switching": true,
"width": 3,
"height": 3,
"frames": [{
"bmp": "Dense Police Station Nightmode.png"
}],
"animation": [{
"id": "$dense1pol1stion1niam",
"x": 20,
"y": 20
}]
},
{
"id": "$dense1police1station",
"type": "police",
"author": "Plugin creator website 3.0 & Ryk_Mak_2050",
"width": 3,
"height": 3,
"frames": [{
"bmp": "Updated Dense Police Station.png"
}],
"title": "Dense Police Station",
"text": "To accommodate your dense city. It has 7 Police Cars to patrol your densely populated city.",
"price": 70000,
"monthly price": 150,
"influence police": 120,
"performance": true,
"bulldoze price": 4500,
"build time": 47,
"power": -15,
"water": -15,
"service cars": 7,
"requirement": {
"requirements": [{
"type": "RANK",
"data": {
"lvl": 7
}
}]
},
"animation": [{
"id": "$animationblinkingredlight3x3",
"x": 1,
"y": 20
}]
}
]
what
with all respect, you have no idea what you're doing
please read the animation tutorial
you're supposed to attach the animation to the building, not to itself
TBH, night animation tutorial is confusing
All i can se is light true thing
as I said
where sould i start? the light animation or customize animation tutorial?
you won't be able to add night animations if you have no prior regular animations knowledge
Im in forums
[{
"id": "$dense1pol1stion1niam",
"type": "animation",
"light": true,
"light switching": true,
"width": 3,
"height": 3,
"frames": [{
"bmp": "Dense Police Station Nightmode.png"
}]
},
{
"id": "$dense1police1station",
"type": "police",
"author": "Plugin creator website 3.0 & Ryk_Mak_2050",
"width": 3,
"height": 3,
"frames": [{
"bmp": "Updated Dense Police Station.png"
}],
"title": "Dense Police Station",
"text": "To accommodate your dense city. It has 7 Police Cars to patrol your densely populated city.",
"price": 70000,
"monthly price": 150,
"influence police": 120,
"performance": true,
"bulldoze price": 4500,
"build time": 47,
"power": -15,
"water": -15,
"service cars": 7,
"requirement": {
"requirements": [{
"type": "RANK",
"data": {
"lvl": 7
}
}]
},
"animation": [{
"id": "$dense1pol1stion1niam",
"x": 10,
"y": -10
}],
"animation": [{
"id": "$animationblinkingredlight3x3",
"x": 47,
"y": -85
}]
}
]
And still not having this kind of night anim
I dont think animation needs width and height
Earlier it says it needs width and height...
and you're defining animations wrong
where (send link)
that's not how you define multiple animations
I failed to screenshot it earlier. Imma remove width and height for now..
it should be smth like
{
*values*
},
{
*values of other animation*
}
]```
thats how arrays work
I guess you're assigning your anim and then overriding it by a 3x3 light
[] stand there for a reason
Auh I get it. Thanks. So the first value is my Building night animation. the Second Value is the blinking red light.
OK width and height is not needed. Tested it just now.
Somewhat yes.
bruh why "somewhat yes" I am the one helping you and I already said what's happening there 💀
[{
"id": "$dense1pol1stion1niam",
"type": "animation",
"light": true,
"light switching": true,
"frames": [{
"bmp": "Dense Police Station Nightmode.png"
}]
},
{
"id": "$dense1police1station",
"type": "police",
"author": "Plugin creator website 3.0 & Ryk_Mak_2050",
"width": 3,
"height": 3,
"frames": [{
"bmp": "Updated Dense Police Station.png"
}],
"title": "Dense Police Station",
"text": "To accommodate your dense city. It has 7 Police Cars to patrol your densely populated city.",
"price": 70000,
"monthly price": 150,
"influence police": 120,
"performance": true,
"bulldoze price": 4500,
"build time": 47,
"power": -15,
"water": -15,
"service cars": 7,
"requirement": {
"requirements": [{
"type": "RANK",
"data": {
"lvl": 7
}
}]
},
"animation": [{
"id": "$dense1pol1stion1niam",
"x": 10,
"y": -10
},
{
"id": "$animationblinkingredlight3x3",
"x": 47,
"y": -85
}]
}
]
at this point just send the .json file itself
try playing around with animation cords
the code is probably right (Im bad at checking that) but cords could be out of frame
try making the y of $dense1pol1stion1niam lower
I take a rest. Thank you for your help.
I really don't know why this happens, and I mean the vehicle not going below the gate
I tried to include the part in animation fg, animation and even in both as my last testing
But the vehicle doesn't acts like there is a animation fg
You put another part of the gate on non animation fg frames
You mean i should draw the full gate on animation fg frames?
Problem:
Some miss-aligned animation on other frame.
Code:
"id": "$ITP_ANITY_CC201",
"type": "animation",
"frames": [
{
"steal": "$K012_ITPTR_CC201",
"count": 4,
"w": 20
}
],
"frames per animation":4,
"rotation aware": true
}```
``` {
"id": "$K012ITP_DECO1x1_TYCC201A",
"type": "decoration",
"width": 1,
"height": 1,
"frames": [
{
"bmp": "1temp.png",
"count": 4,
"w": 32
}
],
"animation":[
{"id": "$ITP_ANITY_CC201", "x": -3, "y": 2}
],
"template": "$K012_ITPTEMP_TY00",
"title": "Trainyard decoration[in]Dekorasi halaman kereta api",
"text": "This is for decoration purpose[in]Ini hanya untuk dekorasi."
}```
Images:
adjust your png
or coordinates
or separate it into 4 frames and use the "frame" attribute
I use steal feature,which originally from car frames.
Add frame in "animation":[{<here?>}] ?
yes
Something like this?:
"id": "$K012ITP_DECO1x1_TYCC201A",
"type": "decoration",
"width": 1,
"height": 1,
"frames": [
{
"bmp": "1temp.png",
"count": 4,
"w": 32
}
],
"animation":[
{"id": "$ITP_ANITY_CC201", "x": -3, "y": 4,"frame":1},
{"id": "$ITP_ANITY_CC201", "x": -3, "y": 2,"frame":2},
{"id": "$ITP_ANITY_CC201", "x": -3, "y": 4,"frame":3},
{"id": "$ITP_ANITY_CC201", "x": -3, "y": 4,"frame":4}
],
"template": "$K012_ITPTEMP_TY00",
"title": "Trainyard decoration[in]Dekorasi halaman kereta api",
"text": "This is for decoration purpose[in]Ini hanya untuk dekorasi."
}```
frames start at 0
I've noticed that already after 2nd testing, thanks for the help.
Haghh
out of curiousity
can i overwrite in game sounds
i wish to overwrite the explosion sound with bazooka.wav
Based on top questions,how do you add custom click sounds?,and also custom icon on building info ui.
try the "sound click":{"file":"someaudio.mp3"} tag
"Already did that"
There is no building for gta5 bank
Have you tried searching for actual us bank tower my guy
||help me with how to jason||
https://forum.theotown.com/viewtopic.php?p=5604#5604 ("How to write a plugin" page from TheoTown forum website)
Why i cant choose road
its not supported
if you want to make a road plugin
youre gonna have to write that json yourself
When the release of .75
when you add so many bugs it takes 5 versions
answer the question on the bottom
I swear to god
If I would get cent for every time someone doesn't answer question at the bottom and asks what he's done wrong
I would have less than half a euro
Yo
I need create a decorative plugin with things of DSA
Its for a city what i created
I look the forum and i dont found anything of dsa
Oh...ok
might make them open source
Are this plugin broken or only in the plugin store?
What you mean?
Many people say its error in the plugin store.
Are its fine on the forum?
Idk
what
Sorry i speak spanish but i try speak english
Watch turtorials on youtube
Check pins
Hello
what's the issue
@LondonCuz#1548
that's not helpful
ED
Can a car can target a road which is not part of its path
can you elaborate
What's the fckn id of this animation i found this at the world resources but not showed in animation dev tools
context?
ah
probably some idiot shid like 'enslavedstupid'
will check tomorrow
keep in mind those are very likely to change
Change like? Replaced? Removed?
Does animation for diagonal cars exist?
Then why are you answering if you don't know
He posted this on almost every channel and then mods delete it
he got banned for politics
mayve because this is #plugin-support
and im not here to read your political ramblings
nvm he already got himself banned
He was reduced to atoms , don't worry
another jeremiah alt
hes nothing worth remembering
ED
Does text frame on listbox object was fixed?
Also how could i know if the debug mode was turned on
apparently i made the night frames for my plugin but how do i apply it as an animation and attach it?
@fiery olive interrogate him
No no, about the night frames he did bcuz that new mod was strict strocke
this is incomprehensible
Nvm
Im trying to center the animation to the original frame, even with the animation dev tool. They limited my night anim
How can i get the y handle corrected now
well ill figure it out tomorrow
Is that theo spelled with o before e?👀
The logo is "Thoe" for a reason
many many deep reasons
you don't have to use handles
simply adjust your y coordinate to a smaller number
by trial and error mostly
I just realised that the night animation sticks to my frames permanently
I turned on light switching but still the same
you didnt put light: true
did you put light switching attribute in your animation and not your building
Oh or that
Alright i managed to fix this hallabaloo
Anyone know why pipes under roads and underground wires under roads aren't working?
I need help with my json file, im new so I don't understand alot of things
java.lang.IllegalStateException: When loading "$res000": Please specify width and height attributes. They have to be equal and >=1
Even tho i have "width" :1, and "height" :2, it's keep return that error
they have to be equal
game doesnt support rectangular buildings
So the width and height must be the same?
yes
Okey, thanks
Hey, why ingame road tunnel has 6 frames?, Can someone explain
probably four frames for the in ground tunnels and two for the slope ones
since the other two slope entrances aren't visible
6? looks like 12 to me
Ah yes 12
how to make fences correctly so that they stand straight?
Anyone know the issue here?
a screenshot of the directory with the file would help
@ivory drum can you screenshot the file directory?
space and underscore.
yeah that'd do it I bet
Still not working
because you aren't using the same names
you just switched them around
use underscores in both places
I assume those images just came out of order
filename -> export:filename
file_name -> export:file_name
file name -> export:"file name"```
Yes did like this
Let me try again
Try unzipping it.
yeah unzipping it should work @ivory drum it worked for me
Im pretty annoyed by the default sample plugin everytime im at plugins folder
Finally it work thankyou
then get rid of it
lol
It's the default plugin by the game
turn off download static files and you can delete it
Ut gets alwaysss creating whenever you delete it
looks like TT doesn't support to export zip files anymore?
Why sometimes category attribute for a template draft works sometimes not, i have 3 drafts and referenced a template with a category attribute only 1 among the 3 indexed inside the category
make sure to load the category first.
Yes it's loaded first
why even I set price,
The cost is still rising, after building new ones
Yo
I think a good plugin for theotown
Halloween is near
And i think is a good idea a little halloween decos
this alredy exist but is a pile of leaf
for more discussian about this I suggest to go on #plugin-discussion
Skill issue
fr
Uhh i forgot where can i find the Plugin Creator
gor
You looking for this? https://pca.theotown.com/
An easier way to create plugins via friendly UI interface.
Np
crinj
I can't make the night animation to work, idk what im doing wrong here
The building frame and the night anim frame are also the same size, so they should align
The preview is also unusually placed
Aren't that from nnkkkoooo?
somebody should pin this.
Its probably already pinned somewhere
Also quick question, how do you add random frames and how do they work?
Do they still work if you use manual building?
@flat sonnet whats up with that ".folder"
{"bmp":"0clock."folder"/h12.png"},
first, your quotation marks are wrong
second, folders are not files, they dont have an extension
so it should be {"bmp":"0 clock/h12.png"}, afaik
{"bmp":"0clock".folder"h12.png"},
(even worse)
shamelessly stolen from ci repo
also, wtf is this
does this work now?
what?
I said... remove the ".folder"
Ahh

add more zeroes lol