World of Banished

MODS Garage => Mod Talk => Topic started by: Discrepancy on July 10, 2016, 05:03:03 AM

Title: Work In Progress: DS Fences
Post by: Discrepancy 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)

Country Stone Wall:
(http://i.imgur.com/cXMfLh6.jpg)


** 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 (https://drive.google.com/open?id=0B0D37rA1CD9BWGtMZ3FlYWgzV2s)
Title: Re: Work In Progress: DS Fences
Post by: RedKetchup 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 ?
Title: Re: Work In Progress: DS Fences
Post by: 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.
Title: Re: Work In Progress: DS Fences
Post by: RedKetchup on July 10, 2016, 09:23:56 AM
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 ?
Title: Re: Work In Progress: DS Fences
Post by: Tom Sawyer on July 10, 2016, 09:30:51 AM
@RedKetchup, can you please tell me what is the trash icon trick?
Title: Re: Work In Progress: DS Fences
Post by: RedKetchup on July 10, 2016, 09:58:19 AM
Quote from: Tom Sawyer on July 10, 2016, 09:30:51 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)
Title: Re: Work In Progress: DS Fences
Post by: Tom Sawyer 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...
Title: Re: Work In Progress: DS Fences
Post by: RedKetchup on July 10, 2016, 02:33:20 PM
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 :)
Title: Re: Work In Progress: DS Fences
Post by: Discrepancy on July 10, 2016, 03:35:33 PM
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.
Title: Re: Work In Progress: DS Fences
Post by: RedKetchup on July 10, 2016, 04:51:44 PM
you will see , its magic ! :)
Title: Re: Work In Progress: DS Fences
Post by: Tom Sawyer 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. :)
Title: Re: Work In Progress: DS Fences
Post by: RedKetchup on July 11, 2016, 02:37:25 AM
can i see a screenshot of this ?
Title: Re: Work In Progress: DS Fences
Post by: Tom Sawyer 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. :)
Title: Re: Work In Progress: DS Fences
Post by: RedKetchup on July 11, 2016, 06:27:17 AM
looks awesome then :)
good work !!
Title: Re: Work In Progress: DS Fences
Post by: Gordon Dry on July 12, 2016, 04:29:09 AM
Well done.