Author Topic: Work In Progress: DS Fences  (Read 4457 times)

0 Members and 1 Guest are viewing this topic.

Offline Discrepancy

  • Modders
  • Banished Expert
  • *****
  • Posts: 1053
  • Country: au
Work In Progress: DS Fences
« on: July 10, 2016, 05:03:03 AM »
another of my work in progresses...

DS Fences

I'm not sure how much time I'll be able to spend in the next month or so on modding, so I thought I would just release a beta version.


what do you get?

- centered 'Log Fence' (4 F-key color variants), Gate, 1x1 fence, 2x1 fence, corner piece
- edge 'Log Fence' (same 4 F-key color variants), 1x1 fence, 2x1 fence, corner piece
- 'Country Stone Wall', 1x1 fence, 2x1 fence, corner piece, T-piece, X-piece, 2x1 overlap piece, 2 gates both sit on 3x1, one with single gate, the other with double gates.

Log Fence:
http://i.imgur.com/XRItNEz.jpg
Work In Progress: DS Fences


Country Stone Wall:
http://i.imgur.com/cXMfLh6.jpg
Work In Progress: DS Fences



** still a work in progress
No part is 100% complete, but should all be usable in game.

**log fence gates will need to be upgraded before they can be demolished.

Download: DSFences_Beta3
« Last Edit: July 10, 2016, 05:14:14 AM by Discrepancy »

Offline RedKetchup

  • Champion
  • Banished Expert
  • *****
  • Posts: 10975
  • Country: ca
Re: Work In Progress: DS Fences
« Reply #1 on: July 10, 2016, 05:25:19 AM »
awesome !!! it was a domain not enough filled :)

question : do your open fences allow road to be build ?
> > > Support Mods Creation developments with Donations by Paypal  < < <
Click here to Donate by PayPal .

Offline Discrepancy

  • Modders
  • Banished Expert
  • *****
  • Posts: 1053
  • Country: au
Re: Work In Progress: DS Fences
« Reply #2 on: July 10, 2016, 05:32:26 AM »
yes they do.

that is why the log fence, which is a double gate, built upon 2x1 requires upgrading to become unpassable before deletion.

Offline RedKetchup

  • Champion
  • Banished Expert
  • *****
  • Posts: 10975
  • Country: ca
Re: Work In Progress: DS Fences
« Reply #3 on: July 10, 2016, 09:23:56 AM »
yes they do.

that is why the log fence, which is a double gate, built upon 2x1 requires upgrading to become unpassable before deletion.

do you use the trash icon trick to remove them ?
> > > Support Mods Creation developments with Donations by Paypal  < < <
Click here to Donate by PayPal .

Offline Tom Sawyer

  • Modders
  • Banished Expert
  • *****
  • Posts: 1086
  • Country: no
Re: Work In Progress: DS Fences
« Reply #4 on: July 10, 2016, 09:30:51 AM »
@RedKetchup, can you please tell me what is the trash icon trick?

Offline RedKetchup

  • Champion
  • Banished Expert
  • *****
  • Posts: 10975
  • Country: ca
Re: Work In Progress: DS Fences
« Reply #5 on: July 10, 2016, 09:58:19 AM »
@RedKetchup, can you please tell me what is the trash icon trick?

this
http://worldofbanished.com/gallery/37_10_07_16_4_13_13.jpeg
Work In Progress: DS Fences
> > > Support Mods Creation developments with Donations by Paypal  < < <
Click here to Donate by PayPal .

Offline Tom Sawyer

  • Modders
  • Banished Expert
  • *****
  • Posts: 1086
  • Country: no
Re: Work In Progress: DS Fences
« Reply #6 on: July 10, 2016, 11:07:36 AM »
I know, but how to make it? :)

I made a tool for direct hunting. It defines a small hunting ground with a marker in center and after the hunt you remove it. It would be nice to do it by clicking on a button in the UI of the hunting tool. I tried it by making an upgrade button linked to a new object similar to a clear object but something is wrong...

Offline RedKetchup

  • Champion
  • Banished Expert
  • *****
  • Posts: 10975
  • Country: ca
Re: Work In Progress: DS Fences
« Reply #7 on: July 10, 2016, 02:33:20 PM »
in your template , in UI section (near bottom of the page) you need to add :

Code: [Select]
{
ObjectType _type = UpgradeUI;
ElementDescription _element = "Dialog/Upgrade.rsc:upgradeButton";
String _insertAt = "pageTabGroup";
DialogControllerConfig _config = "upgradeConfig";
}

then at very bottom of the file you need to add
Code: [Select]
UpgradeUIConfig upgradeConfig
{
ComponentDescription _upgradeTo = "Template/DSFencesTrash.rsc";
}

and go in template and start a new file and call it : DSFencesTrash.rsc

inside this .rsc put this:
Code: [Select]
// layout of the entity
ComponentDescription resource
{
// how often to update
UpdatePriority _updatePriority = Fourth;

// declare types that will be used
Description _descriptions
[
"toolbar",
"map",
"work",
"destroy",
]
}

ToolbarDescription toolbar
{
SpriteSheet _spriteSheet = "UI/DSFencesSpriteSheet.rsc";
String _spriteName = "DSFencesTrash";

StringTable _stringTable = "UI/DSFencesStringTable.rsc";
String _stringName = "DSFencesTrash";
String _stringNameLwr = "DSFencesTrashLwr";
String _toolTip = "DSFencesTrashTip";

String _statusStrings
[
"CreateOk",
"CreateBlocked",
]

int _group = 1;
}

MapDescription map
{
PathType _pathType = Normal;
bool _addToOverhead = true;
Color _mapColor = 0xFF80694D;
}

WorkDescription work
{
int _defaultWorkers = 1;
}

DestroyDescription destroy { }



add the info in your stringtable and do an icon and add it to your spritesheet.... and should be good :)
> > > Support Mods Creation developments with Donations by Paypal  < < <
Click here to Donate by PayPal .

Offline Discrepancy

  • Modders
  • Banished Expert
  • *****
  • Posts: 1053
  • Country: au
Re: Work In Progress: DS Fences
« Reply #8 on: July 10, 2016, 03:35:33 PM »
I made a tool for direct hunting. It defines a small hunting ground with a marker in center and after the hunt you remove it.

Great idea!  :)


do you use the trash icon trick to remove them ?

No they don't, it is a manual upgrade to a locked gate, and then it can be deleted with the building removal tool.

Thanks for the info on the delete button also :) , I might use that instead.

Offline RedKetchup

  • Champion
  • Banished Expert
  • *****
  • Posts: 10975
  • Country: ca
Re: Work In Progress: DS Fences
« Reply #9 on: July 10, 2016, 04:51:44 PM »
you will see , its magic ! :)
> > > Support Mods Creation developments with Donations by Paypal  < < <
Click here to Donate by PayPal .

Offline Tom Sawyer

  • Modders
  • Banished Expert
  • *****
  • Posts: 1086
  • Country: no
Re: Work In Progress: DS Fences
« Reply #10 on: July 11, 2016, 02:23:35 AM »
Great thanks @RedKetchup. It works fine (after I placed the upgrade ui at a button instead of a tab). Its a lot better to quit hunting by this function. :)

Offline RedKetchup

  • Champion
  • Banished Expert
  • *****
  • Posts: 10975
  • Country: ca
Re: Work In Progress: DS Fences
« Reply #11 on: July 11, 2016, 02:37:25 AM »
can i see a screenshot of this ?
> > > Support Mods Creation developments with Donations by Paypal  < < <
Click here to Donate by PayPal .

Offline Tom Sawyer

  • Modders
  • Banished Expert
  • *****
  • Posts: 1086
  • Country: no
Re: Work In Progress: DS Fences
« Reply #12 on: July 11, 2016, 04:10:07 AM »
1. Incoming Deer.
2. Place a hunting ground and go for it with 3 hunters... action.
3. The deer ran away and the hunt is over.
4. Removed by the magic button. :)

Offline RedKetchup

  • Champion
  • Banished Expert
  • *****
  • Posts: 10975
  • Country: ca
Re: Work In Progress: DS Fences
« Reply #13 on: July 11, 2016, 06:27:17 AM »
looks awesome then :)
good work !!
> > > Support Mods Creation developments with Donations by Paypal  < < <
Click here to Donate by PayPal .

Offline Gordon Dry

  • Trader
  • ****
  • Posts: 163
  • Country: de
Re: Work In Progress: DS Fences
« Reply #14 on: July 12, 2016, 04:29:09 AM »
Well done.

 

SMF spam blocked by CleanTalk