News:

Welcome to World of Banished!

Main Menu

Work In Progress: DS Fences

Started by Discrepancy, July 10, 2016, 05:03:03 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Discrepancy

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:


Country Stone Wall:



** 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

RedKetchup

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 .

Discrepancy

yes they do.

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

RedKetchup

Quote from: Discrepancy 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.

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

Tom Sawyer

@RedKetchup, can you please tell me what is the trash icon trick?

RedKetchup

> > > Support Mods Creation developments with Donations by Paypal  < < <
Click here to Donate by PayPal .

Tom Sawyer

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...

RedKetchup

in your template , in UI section (near bottom of the page) you need to add :


{
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

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:

// 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 .

Discrepancy

Quote from: Tom Sawyer on July 10, 2016, 11:07:36 AM
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!  :)


Quote from: RedKetchup on July 10, 2016, 09:23:56 AM
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.

RedKetchup

> > > Support Mods Creation developments with Donations by Paypal  < < <
Click here to Donate by PayPal .

Tom Sawyer

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. :)

RedKetchup

can i see a screenshot of this ?
> > > Support Mods Creation developments with Donations by Paypal  < < <
Click here to Donate by PayPal .

Tom Sawyer

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. :)

RedKetchup

looks awesome then :)
good work !!
> > > Support Mods Creation developments with Donations by Paypal  < < <
Click here to Donate by PayPal .

Gordon Dry