Author Topic: How do you put multiple files in one package?  (Read 166 times)

0 Members and 1 Guest are viewing this topic.

Offline angainor88

  • Laborer
  • **
  • Posts: 32
How do you put multiple files in one package?
« on: November 12, 2017, 01:28:54 PM »
So I finally finished a bunch of different houses and everything works fine. I can make individual .pkm files for them, but I want to put the entire set in one package. I am a little unsure of where to even start.

How do I do that?


Offline RedKetchup

  • Champion
  • Banished Expert
  • *****
  • Posts: 7384
Re: How do you put multiple files in one package?
« Reply #1 on: November 12, 2017, 04:17:29 PM »
your resource file at the root of your mod should call everything, each item. they should all link to your toolbar file which is also at the root of your mod
your toolbar file should have all your items and should define all the places they hold in your toolbar. and each item are also linked to your templates.

like this example of my forest center.

my NMTForestCenterResources.rsc :
Code: [Select]
ExternalList resource
{
External _resources
[
// toolbar - references building and everything else - nothing else need be listed here

"NMTForestCenter.rsc:NMTForestCenter",
"NMTForestCenter.rsc:NMT30FCRoad",
"NMTForestCenter.rsc:NMT30FCHunter",
"NMTForestCenter.rsc:NMT30FCGatherer",
"NMTForestCenter.rsc:NMT30FCHerbalist",
"NMTForestCenter.rsc:NMT30FCForester",
"NMTForestCenter.rsc:NMT30FCBarn",
"NMTForestCenter.rsc:NMT30FCWoodcutter",
"NMTForestCenter.rsc:NMT30FCLumbermill",

"NMTForestCenter.rsc:NMT30SAHunter",
"NMTForestCenter.rsc:NMT30SAGatherer",
"NMTForestCenter.rsc:NMT30SAHerbalist",
"NMTForestCenter.rsc:NMT30SAForester",
"NMTForestCenter.rsc:NMT30SABarn",
"NMTForestCenter.rsc:NMT30SAWoodcutter",
"NMTForestCenter.rsc:NMT30SALumbermill",

"Template/Citizen.rsc",
"Template/StorageBarn.rsc:storage",
"Template/StorageYard.rsc:storage",
"Template/StorageCart.rsc:storage",
]
}

and my toolbar NMTForestCenter.rsc file :
Code: [Select]
// Very MAIN toolbar +++++++++++++++++++++++++++++++++++++++++++++++++++
Toolbar base
{
StringTable _stringTable = "UI/NMTForestCenterStringTable.rsc";
SpriteSheet _spriteSheet = "UI/NMTForestCenterSpriteSheet.rsc";
}

// Inside the NMT fc main toolbar +++++++++++++++++++++++++++++++++++++++++++

Toolbar NMTForestCenterToolbar
{
Toolbar _parent = "Game\RKToolbar.rsc:RKtoolbar";
int _sortPriority = 610;

StringTable _stringTable = "UI/NMTForestCenterStringTable.rsc";
SpriteSheet _spriteSheet = "UI/NMTForestCenterSpriteSheet.rsc";
String _toolTip = "NMTForestCenterToolbarTip";   
String _image = "NMTForestCenterToolbar";
Action _action = ShowGroup;

bool _autoHotKey = true;
}


Toolbar NMTForestCenter
{
Toolbar _parent = "NMTForestCenterToolbar";
int _sortPriority = 10;

StringTable _stringTable = "UI/NMTForestCenterStringTable.rsc";
SpriteSheet _spriteSheet = "UI/NMTForestCenterSpriteSheet.rsc";

Action _action = Tool;
ComponentDescription _tool = "Template/NMTForestCenter.rsc";

bool _autoHotKey = true; 
}

Toolbar NMT30FCHunter
{
Toolbar _parent = "NMTForestCenterToolbar";
int _sortPriority = 20;

StringTable _stringTable = "UI/NMTForestCenterStringTable.rsc";
SpriteSheet _spriteSheet = "UI/NMTForestCenterSpriteSheet.rsc";

Action _action = Tool;
ComponentDescription _tool = "Template/NMT30FCHunter.rsc";

bool _autoHotKey = true; 
}

Toolbar NMT30FCGatherer
{
Toolbar _parent = "NMTForestCenterToolbar";
int _sortPriority = 30;

StringTable _stringTable = "UI/NMTForestCenterStringTable.rsc";
SpriteSheet _spriteSheet = "UI/NMTForestCenterSpriteSheet.rsc";

Action _action = Tool;
ComponentDescription _tool = "Template/NMT30FCGatherer.rsc";

bool _autoHotKey = true; 
}

Toolbar NMT30FCHerbalist
{
Toolbar _parent = "NMTForestCenterToolbar";
int _sortPriority = 40;

StringTable _stringTable = "UI/NMTForestCenterStringTable.rsc";
SpriteSheet _spriteSheet = "UI/NMTForestCenterSpriteSheet.rsc";

Action _action = Tool;
ComponentDescription _tool = "Template/NMT30FCHerbalist.rsc";

bool _autoHotKey = true; 
}

Toolbar NMT30FCForester
{
Toolbar _parent = "NMTForestCenterToolbar";
int _sortPriority = 50;

StringTable _stringTable = "UI/NMTForestCenterStringTable.rsc";
SpriteSheet _spriteSheet = "UI/NMTForestCenterSpriteSheet.rsc";

Action _action = Tool;
ComponentDescription _tool = "Template/NMT30FCForester.rsc";

bool _autoHotKey = true; 
}

Toolbar NMT30FCRoad
{
Toolbar _parent = "NMTForestCenterToolbar";
int _sortPriority = 15;

StringTable _stringTable = "UI/NMTForestCenterStringTable.rsc";
SpriteSheet _spriteSheet = "UI/NMTForestCenterSpriteSheet.rsc";

Action _action = Tool;
ComponentDescription _tool = "Template/NMT30FCRoad.rsc";

bool _autoHotKey = true; 
}

Toolbar NMT30FCBarn
{
Toolbar _parent = "NMTForestCenterToolbar";
int _sortPriority = 60;

StringTable _stringTable = "UI/NMTForestCenterStringTable.rsc";
SpriteSheet _spriteSheet = "UI/NMTForestCenterSpriteSheet.rsc";

Action _action = Tool;
ComponentDescription _tool = "Template/NMT30FCBarn.rsc";

bool _autoHotKey = true; 
}

Toolbar NMT30FCWoodcutter
{
Toolbar _parent = "NMTForestCenterToolbar";
int _sortPriority = 70;

StringTable _stringTable = "UI/NMTForestCenterStringTable.rsc";
SpriteSheet _spriteSheet = "UI/NMTForestCenterSpriteSheet.rsc";

Action _action = Tool;
ComponentDescription _tool = "Template/NMT30FCWoodcutter.rsc";

bool _autoHotKey = true; 
}

Toolbar NMT30FCLumbermill
{
Toolbar _parent = "NMTForestCenterToolbar";
int _sortPriority = 80;

StringTable _stringTable = "UI/NMTForestCenterStringTable.rsc";
SpriteSheet _spriteSheet = "UI/NMTForestCenterSpriteSheet.rsc";

Action _action = Tool;
ComponentDescription _tool = "Template/NMT30FCLumbermill.rsc";

bool _autoHotKey = true; 
}

// Stand alone versions +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Toolbar NMT30SAHunter
{
Toolbar _parent = "Game\RKToolbar.rsc:RKfood";
int _sortPriority = 660;

StringTable _stringTable = "UI/NMTForestCenterStringTable.rsc";
SpriteSheet _spriteSheet = "UI/NMTForestCenterSpriteSheet.rsc";

Action _action = Tool;
ComponentDescription _tool = "Template/NMT30SAHunter.rsc";

bool _autoHotKey = true; 
}

Toolbar NMT30SAGatherer
{
Toolbar _parent = "Game\RKToolbar.rsc:RKfood";
int _sortPriority = 670;

StringTable _stringTable = "UI/NMTForestCenterStringTable.rsc";
SpriteSheet _spriteSheet = "UI/NMTForestCenterSpriteSheet.rsc";

Action _action = Tool;
ComponentDescription _tool = "Template/NMT30SAGatherer.rsc";

bool _autoHotKey = true; 
}

Toolbar NMT30SAHerbalist
{
Toolbar _parent = "Game\RKToolbar.rsc:RKresources";
int _sortPriority = 650;

StringTable _stringTable = "UI/NMTForestCenterStringTable.rsc";
SpriteSheet _spriteSheet = "UI/NMTForestCenterSpriteSheet.rsc";

Action _action = Tool;
ComponentDescription _tool = "Template/NMT30SAHerbalist.rsc";

bool _autoHotKey = true; 
}

Toolbar NMT30SAForester
{
Toolbar _parent = "Game\RKToolbar.rsc:RKresources";
int _sortPriority = 660;

StringTable _stringTable = "UI/NMTForestCenterStringTable.rsc";
SpriteSheet _spriteSheet = "UI/NMTForestCenterSpriteSheet.rsc";

Action _action = Tool;
ComponentDescription _tool = "Template/NMT30SAForester.rsc";

bool _autoHotKey = true; 
}

Toolbar NMT30SABarn
{
Toolbar _parent = "Game\RKToolbar.rsc:RKstorage";
int _sortPriority = 660;

StringTable _stringTable = "UI/NMTForestCenterStringTable.rsc";
SpriteSheet _spriteSheet = "UI/NMTForestCenterSpriteSheet.rsc";

Action _action = Tool;
ComponentDescription _tool = "Template/NMT30SABarn.rsc";

bool _autoHotKey = true; 
}

Toolbar NMT30SAWoodcutter
{
Toolbar _parent = "Game\RKToolbar.rsc:RKresources";
int _sortPriority = 640;

StringTable _stringTable = "UI/NMTForestCenterStringTable.rsc";
SpriteSheet _spriteSheet = "UI/NMTForestCenterSpriteSheet.rsc";

Action _action = Tool;
ComponentDescription _tool = "Template/NMT30SAWoodcutter.rsc";

bool _autoHotKey = true; 
}

Toolbar NMT30SALumbermill
{
Toolbar _parent = "Game\RKToolbar.rsc:RKresources";
int _sortPriority = 650;

StringTable _stringTable = "UI/NMTForestCenterStringTable.rsc";
SpriteSheet _spriteSheet = "UI/NMTForestCenterSpriteSheet.rsc";

Action _action = Tool;
ComponentDescription _tool = "Template/NMT30SALumbermill.rsc";

bool _autoHotKey = true; 
}

and you can see they all point and link to all their Template/items.rsc
« Last Edit: November 12, 2017, 04:21:25 PM by RedKetchup »
> > > Support Mods Creation developments with Paypal Donations < < <
Click here to PayPal Donate.

Offline angainor88

  • Laborer
  • **
  • Posts: 32
Re: How do you put multiple files in one package?
« Reply #2 on: November 16, 2017, 09:07:52 AM »
Thank You! I am gonna upload my creation (and hope it works :P )

Offline RedKetchup

  • Champion
  • Banished Expert
  • *****
  • Posts: 7384
Re: How do you put multiple files in one package?
« Reply #3 on: November 16, 2017, 01:13:35 PM »
if you put the .pkm in your bin/windata of your real legit game, and it works... it should for everyone.
> > > Support Mods Creation developments with Paypal Donations < < <
Click here to PayPal Donate.