Fence Pack UPDATE by mdk_813 [Park]

Show us your Parks, Sports Complexes, and Management plugins.

Moderator: Plugin Moderators

User avatar
mdk_813
Inhabitant of a Country
Reactions:
Posts: 860
Joined: Fri Dec 16, 2016 2:38
Location: Germany
Plugins: Show

Platform

Re: Fence Pack by mdk_813 [Park]

#21

Post by mdk_813 »

Lobby wrote:
Sun Jul 09, 2017 20:59
For implementation reasons there's some binary logic behind it:
frame_index.png
Let's assume we have a fence at current tile. We then have to pick a frame dependent on the four neighbor tiles. To get the index of the frame we need we iterate over all neighbors and add the neighbor's value only to the index if there's a fence, too.

So, if no of the neighbors is a fence we use index = 0+0+0+0 = 0 (note that index 0 is the first frame)
If only neighbor north_east is a fence we use index = 0+2+0+0 = 2
If all neighbors are fence we use index = 1+2+4+8 = 15 (the last frame)

Now try again to see this pattern in the order:
fence.png
Okay, well that actually makes sense now :)
My Plugins: Link

PLEASE NOTE: My plugins are not open source! So, ask me first before altering and republishing any of my plugins!

User avatar
mdk_813
Inhabitant of a Country
Reactions:
Posts: 860
Joined: Fri Dec 16, 2016 2:38
Location: Germany
Plugins: Show

Platform

Re: Fence Pack by mdk_813 [Park]

#22

Post by mdk_813 »

@Lobby
I'm currently working on other packs, that include puzzle pieces, as well. For example a hedge for a modular park.
May I try and use the above json-file as a starting point for that? I mean, personally I'm used to puzzle pieces from playing SC4, but a linetool is obviously much more convenient.

P.S. I would also like to use the plain concrete texture from the game (in the park menu) for this park set, in order to make it blend in with the rest of the game. Would that be okay?
My Plugins: Link

PLEASE NOTE: My plugins are not open source! So, ask me first before altering and republishing any of my plugins!

User avatar
Lobby
Developer
Reactions:
Posts: 3491
Joined: Sun Oct 26, 2008 12:34
Plugins: Show
Version: Beta

Platform

Re: Fence Pack by mdk_813 [Park]

#23

Post by Lobby »

I made the json file for illustration, you're free to use it in any way you like :bc

About the concrete it's as former member said: give us credit and it's ok :bc
=^._.^= ∫

User avatar
mdk_813
Inhabitant of a Country
Reactions:
Posts: 860
Joined: Fri Dec 16, 2016 2:38
Location: Germany
Plugins: Show

Platform

Re: Fence Pack by mdk_813 [Park]

#24

Post by mdk_813 »

Cool, thanks!
My Plugins: Link

PLEASE NOTE: My plugins are not open source! So, ask me first before altering and republishing any of my plugins!

User avatar
mdk_813
Inhabitant of a Country
Reactions:
Posts: 860
Joined: Fri Dec 16, 2016 2:38
Location: Germany
Plugins: Show

Platform

Re: Fence Pack by mdk_813 [Park]

#25

Post by mdk_813 »

former member wrote:
Thu Jul 20, 2017 17:38
A quick suggestion
It doesn't rotate well.
When placed.
Also make them be placed like a wire
Please

Awesome job!
:bc

What exactly do you mean by "it doesn't rotate well"? As far as I've tested the set (my puzzle pieces) the fences rotate perfectly fine.
My Plugins: Link

PLEASE NOTE: My plugins are not open source! So, ask me first before altering and republishing any of my plugins!

User avatar
mdk_813
Inhabitant of a Country
Reactions:
Posts: 860
Joined: Fri Dec 16, 2016 2:38
Location: Germany
Plugins: Show

Platform

Re: Fence Pack by mdk_813 [Park]

#26

Post by mdk_813 »

former member wrote:
Thu Jul 20, 2017 19:53
Nevermind.
My suggestion is make it as the military fence so it can be placed like wires
Using the line tool property of plugins
Ah sorry, I misunderstood then.
Well, Lobby made a linetool from one of the fences (see one of the above posts). I tried to test it, but it didn't seem to work for me, probably because I was running an older version at that time and I have not tested it since...
So, I don't really know if I will turn it to a linetool plugin.
My Plugins: Link

PLEASE NOTE: My plugins are not open source! So, ask me first before altering and republishing any of my plugins!

User avatar
mdk_813
Inhabitant of a Country
Reactions:
Posts: 860
Joined: Fri Dec 16, 2016 2:38
Location: Germany
Plugins: Show

Platform

Re: Fence Pack by mdk_813 [Park]

#27

Post by mdk_813 »

Well, maybe I will at some point, but no promises.
My Plugins: Link

PLEASE NOTE: My plugins are not open source! So, ask me first before altering and republishing any of my plugins!

User avatar
NisekoKilla
Inhabitant of a Megacity
Reactions:
Posts: 345
Joined: Wed Nov 16, 2016 15:22
Location: UK
Plugins: Show
Version: Beta

Platform

Re: Fence Pack by mdk_813 [Park]

#28

Post by NisekoKilla »

these fences is good for military training grounds or farms..
Just a guy from the Mars... :/
My coub Click me

User avatar
Fiji
Metropolitan
Reactions:
Posts: 132
Joined: Wed Aug 02, 2017 5:52
Plugins: Show
Version: Beta

Platform

Re: Fence Pack by mdk_813 [Park]

#29

Post by Fiji »

It looks awesome around electrical buildings! :)
Redpilled

User avatar
mdk_813
Inhabitant of a Country
Reactions:
Posts: 860
Joined: Fri Dec 16, 2016 2:38
Location: Germany
Plugins: Show

Platform

Re: Fence Pack UPDATE by mdk_813 [Park]

#30

Post by mdk_813 »

UPDATE
The fences have been turned into linetools and have a crime reductive influence now.
See first post above:
http://www.theotown.com/forum/viewtopic ... 165#p39165
My Plugins: Link

PLEASE NOTE: My plugins are not open source! So, ask me first before altering and republishing any of my plugins!

v.nx
Villager
Reactions:
Posts: 13
Joined: Fri Jun 01, 2018 8:07
Plugins: Show

Platform

Re: Fence Pack UPDATE by mdk_813 [Park]

#31

Post by v.nx »

:bq Is the linetool link working? It doesn't seem to be working on my end. I'm getting the php file. Please help

User avatar
CommanderABab
AB
Reactions:
Posts: 8547
Joined: Tue Jun 07, 2016 21:12
Plugins: Show
Version: Beta

Platform

Plugin Creator

Re: Fence Pack UPDATE by mdk_813 [Park]

#32

Post by CommanderABab »

888!888Currently using zeta 888. 888 What's that? :)
quantum road tool!!
:)

Telegram - t.me/
🆎️🆎️🆎️🆎️Commander🆎️🆎️

User avatar
TheSpaceFrontier
Small-town resident
Reactions:
Posts: 26
Joined: Mon May 13, 2019 8:42
Location: Somewhere, Philippines, Asia, Earth, Orion Arm, Milkyway Galaxy, Local Group, Virgo Supercluster
Plugins: Show

Platform

Plugin Creator

Re: Fence Pack UPDATE by mdk_813 [Park]

#33

Post by TheSpaceFrontier »

May I use your linetool code as a template for my plug-in. @mdk_813
Professional TT player, pays huge attention to details, and always chooses form over function.

User avatar
mdk_813
Inhabitant of a Country
Reactions:
Posts: 860
Joined: Fri Dec 16, 2016 2:38
Location: Germany
Plugins: Show

Platform

Re: Fence Pack UPDATE by mdk_813 [Park]

#34

Post by mdk_813 »

TheSpaceFrontier wrote:
Fri Jun 14, 2019 15:23
May I use your linetool code as a template for my plug-in. @mdk_813
Do you mean, you want the code as a model for your own linetool? Sure, go ahead. I used Lobby's tutorial to write it anyway.
My Plugins: Link

PLEASE NOTE: My plugins are not open source! So, ask me first before altering and republishing any of my plugins!

Post Reply Previous topicNext topic

Return to “Parks, Sports and Management”