Making a fence
Moderator: Plugin Moderators
-
- Townsman
- Reactions:
- Posts: 55
- Joined: Wed Jul 25, 2018 1:31
- Location: Arkansas, USA
- Plugins: Show
- Version: Beta
Making a fence
Okay so I downloaded a Barbed Wire fence as a plugin and it's been chilling there in my decorations folder with kinda gets on my nerves. Now that we got the new beta update for fences my OCD with this plugin is really ticking me off, lol.
Here's some pictures to let you understand. This is the category I want the barbed wire plugin inside. But I don't know how! Can someone please help me. I have ES File Explorer so I don't mind with the coding as long as you guys can tell me the steps.
Thank you,
Here's some pictures to let you understand. This is the category I want the barbed wire plugin inside. But I don't know how! Can someone please help me. I have ES File Explorer so I don't mind with the coding as long as you guys can tell me the steps.
Thank you,
★ Official TheoTown Idea Giver and Suggester ★
- CommanderABab
- AB
- Reactions:
- Posts: 9367
- Joined: Tue Jun 07, 2016 21:12
- Plugins: Show
- Version: Beta
Re: Making a fence
Fence frames:
The fence is drawn at the bottom of the tile I believe. Let's give this a try. 
So to get it in the desired category, use this line in the code:
To get it to use the fence tool, it needs to be defined like $atmfence above.
Code: Select all
[{"id":"$atmfence",
"type":"fence",
"category":"$cat_fence00",
"build time": 1,
"price": 100,
"removable": true,
"frames": [{"bmp":"atm2.png","w":16,"count":2,"handle y":4}]
"width": 1,
"height": 1
},
{"id":"$useatmfence",
"category":"$cat_fence00",
"price": 0,
"removable": true,
"needs road": false,
"draw ground": true,
"max count":16,
"people":256,
"type": "industrial",
"level":3,
"use fence":"$atmfence",
"frames": [],
"width": 1,
"height": 1
}]

So to get it in the desired category, use this line in the code:
Code: Select all
"category":"$cat_fence00",
...
- CommanderABab
- AB
- Reactions:
- Posts: 9367
- Joined: Tue Jun 07, 2016 21:12
- Plugins: Show
- Version: Beta
Re: Making a fence
The fence tool uses two frames of width 16. Frame 0 is the left side, frame 1 is the right side.
...
- JohnSallow
- Townsman
- Reactions:
- Posts: 63
- Joined: Wed Jan 29, 2020 18:45
- Location: Buenos Aires, Argentina
- Plugins: Show
- Version: Beta
Re: Making a fence
Can I put night animations in a fence? 

Am I the only one who likes putting pineapple on pizza?
- CommanderABab
- AB
- Reactions:
- Posts: 9367
- Joined: Tue Jun 07, 2016 21:12
- Plugins: Show
- Version: Beta
Re: Making a fence
No, I don't think so. I tried calling an animation from a fence. I did not see it being used.
Using null frames
Code: Select all
"frames":[]
Code: Select all
"frames":[,]
...
- Player_no_Zero
- Townsman
- Reactions:
- Posts: 52
- Joined: Mon May 06, 2019 9:18
- Location: Somewhere in Manila, Philippines
- Plugins: Show
Re: Making a fence
Wait what's "people" code?
EVERYTHING MUST GO BY THE DETAIL.
CONTECT ME FIRST BEFORE YOU CAN USE MY WORKS.
NOT ALL OF MY WORKS ARE FREE TO USE FOR YOUR GOOD WITH THE
EXCEPTION OF GRAVEYARD POSTS BECAUSE ALL OF THEM ARE INTENTIONALLY FREE TO USE.
NOT ALL OF MY WORKS ARE FREE TO USE FOR YOUR GOOD WITH THE
EXCEPTION OF GRAVEYARD POSTS BECAUSE ALL OF THEM ARE INTENTIONALLY FREE TO USE.
- CommanderABab
- AB
- Reactions:
- Posts: 9367
- Joined: Tue Jun 07, 2016 21:12
- Plugins: Show
- Version: Beta
- AntarcticTreay
- Villager
- Reactions:
- Posts: 16
- Joined: Thu Nov 07, 2019 8:06
- Plugins: Show
- Version: Beta
- CommanderABab
- AB
- Reactions:
- Posts: 9367
- Joined: Tue Jun 07, 2016 21:12
- Plugins: Show
- Version: Beta
Re: Making a fence
Something sensible for the size of the building. 
1x1 buildings are automatically limited.

1x1 buildings are automatically limited.
...
- Lakan Haraya
- Metropolitan
- Reactions:
- Posts: 125
- Joined: Thu Mar 28, 2019 9:34
- Location: Philippines
- Plugins: Show
- Version: Beta
Re: Making a fence
How can I create slope fence frames? Like the in-game one.
"ᜀᜃᜓ ᜀᜅ᜔ ᜁᜌᜓᜅ᜔ ᜑᜇᜌ"
CEO of Haráya Motors
“TheoTown Philippines Council”
“Kapulungan Ng Mga Nagkakaisang Lungsod”
Pinoy? Sali na
https://discord.gg/9n7PFy
CEO of Haráya Motors
“TheoTown Philippines Council”
“Kapulungan Ng Mga Nagkakaisang Lungsod”
Pinoy? Sali na

https://discord.gg/9n7PFy
- TheFennekin
- Neighborhood fox
- Reactions:
- Posts: 2457
- Joined: Thu Aug 24, 2017 11:17
- Location: A coffin
- Plugins: Show
- Version: Beta
Re: Making a fence
Same questionLakan Haraya wrote: ↑Fri Jul 17, 2020 3:23How can I create slope fence frames? Like the in-game one.
Sorry but I'm on a break 
Inactive

Inactive
- THEMAX
- Inhabitant of a Universe
- Reactions:
- Posts: 4280
- Joined: Thu Sep 14, 2017 17:30
- Location: Astrellia, UHAE
- Plugins: Show
- Version: Beta
Re: Making a fence
i wonder the same thing.
Emperor of Atlantean federated empire

Founder state of Internationxal council
Leader of AEOY and steel pact

Founder state of Internationxal council
Leader of AEOY and steel pact
-
- Inhabitant of a Conurbation
- Reactions:
- Posts: 475
- Joined: Sun Oct 27, 2019 2:39
- Location: what's this stalker stop asking me XD
- Plugins: Show
- Version: Beta
Re: Making a fence
"Cat_fence 00" doesn't work anymore. I put it in my fence plugin and it makes an errorCommanderABab wrote: ↑Fri Sep 13, 2019 6:16Fence frames:
atm2.png
The fence is drawn at the bottom of the tile I believe. Let's give this a try.Code: Select all
[{"id":"$atmfence", "type":"fence", "category":"$cat_fence00", "build time": 1, "price": 100, "removable": true, "frames": [{"bmp":"atm2.png","w":16,"count":2,"handle y":4}] "width": 1, "height": 1 }, {"id":"$useatmfence", "category":"$cat_fence00", "price": 0, "removable": true, "needs road": false, "draw ground": true, "max count":16, "people":256, "type": "industrial", "level":3, "use fence":"$atmfence", "frames": [], "width": 1, "height": 1 }]
So to get it in the desired category, use this line in the code:To get it to use the fence tool, it needs to be defined like $atmfence above.Code: Select all
"category":"$cat_fence00",
click me
- CommanderABab
- AB
- Reactions:
- Posts: 9367
- Joined: Tue Jun 07, 2016 21:12
- Plugins: Show
- Version: Beta
-
- Inhabitant of a Conurbation
- Reactions:
- Posts: 475
- Joined: Sun Oct 27, 2019 2:39
- Location: what's this stalker stop asking me XD
- Plugins: Show
- Version: Beta
Re: Making a fence
I know. This phone automatically capitalises, but it didnt with the category
click me