Author Topic: ModKit not producing results  (Read 1022 times)

0 Members and 2 Guests are viewing this topic.

Offline quadgamer

  • Laborer
  • **
  • Posts: 23
ModKit not producing results
« on: July 02, 2017, 08:52:11 PM »
I tried to make a simple Plains mod (it's really gonna be Valleys with less mountains). I followed the thorough, simple directions from this post  http://worldofbanished.com/index.php?topic=959.0

When I started the game, "Plains" didn't show in the list. I checked and rechecked all the files to make sure the spelling was correct and matched. Yes, I used Application-x64-profile.exe and I'm running 1.0.7.

Is the modkit buggy? Is that post old and not the way to do it? Can someone please help. Thanks.

Offline brads3

  • Banished Expert
  • *****
  • Posts: 1439
Re: ModKit not producing results
« Reply #1 on: July 02, 2017, 08:59:21 PM »
not familar with that mod. do you have any other mods loaded? when you click mods from the game screen did you enable the mod?you will want this mod closest to the top above any other start mod that changes the start menu.

Offline brads3

  • Banished Expert
  • *****
  • Posts: 1439
Re: ModKit not producing results
« Reply #2 on: July 02, 2017, 09:00:53 PM »
once you enable the mod and the game reloads,you do want to exit the game and fully reload it also.

Offline RedKetchup

  • Champion
  • Banished Expert
  • *****
  • Posts: 7384
Re: ModKit not producing results
« Reply #3 on: July 03, 2017, 05:35:26 AM »
in your MyModResource.rsc file at the root of your mod you need to call:

Code: [Select]
ExternalList resource
{
External _resources
[
"Game/Terrain/TerrainList.rsc" //a copy of the original file copied in you mod folder and modified to add your Plains.rsc.
"Game/Terrain/Plains.rsc", //is the new terrain file you created and you decided the parameters to be more plain, less mountain. Both need to be called here.
]
}

Game/Terrain/TerrainList.rsc :
Code: [Select]
ExternalList resource
{
External _resources
[
"Game/Terrain/Plains.rsc", // you need to call your new plain map here too and add it to the menu choice.
"Game/Terrain/Valleys.rsc",
"Game/Terrain/Mountains.rsc",
]
}

Game/Terrain/Plains.rsc :
Code: [Select]
TerrainGenerator resource
{
StringTable _stringTable = "Dialog/MyModStringTable.rsc:terrainType"; // your stringtable with the name of the file you decided, MyMod is just an example.
String _text = "Plains";
bool _exposed = true;

// materials
WeakMaterialInstance _terrainMaterial = "Terrain/Terrain.rsc";
WeakMaterialInstance _riverMaterial = "Terrain/River.rsc";
WeakMaterialInstance _lakeMaterial = "Terrain/Lake.rsc";

// size of the map
Feature _features
[
// ------ small ---------
{
......

you also need to respect the folder integrity. recreate a Game folder, a Terrain folder inside the Game folder. and if you prefer a UI folder, then change the link of stringtable to UI folder  and not Dialog folder in your Plains.rsc.
« Last Edit: July 03, 2017, 05:41:21 AM by RedKetchup »
> > > Support Mods Creation developments with Paypal Donations < < <
Click here to PayPal Donate.

Offline quadgamer

  • Laborer
  • **
  • Posts: 23
Re: ModKit not producing results
« Reply #4 on: July 06, 2017, 10:54:44 AM »
Wow, thanks for the replies.
I did enable the mod and restart the game.
@RedKetchup 1st, luv your mods. I don't know if you checked the link in my post, it may be outdated. I noticed it's missing
Code: [Select]
ExternalList resource
{
External _resources
[
"Game/Terrain/TerrainList.rsc" //a copy of the original file copied in you mod folder and modified to add your Plains.rsc.
[color=red][i][b]"Game/Terrain/Plains.rsc"[/b][/i][/color], //is the new terrain file you created and you decided the parameters to be more plain, less mountain. Both need to be called here.
]
}

Maybe that was the problem?

I do have the Game and Terrain folders, but the tutorial says to do it this way: Banished\modkit\MyMods\Plains\Game\Terrain. Is that up to date?

Thanks for your help.

Offline RedKetchup

  • Champion
  • Banished Expert
  • *****
  • Posts: 7384
Re: ModKit not producing results
« Reply #5 on: July 06, 2017, 11:19:44 AM »
Wow, thanks for the replies.
I did enable the mod and restart the game.
@RedKetchup 1st, luv your mods. I don't know if you checked the link in my post, it may be outdated. I noticed it's missing
Code: [Select]
ExternalList resource
{
External _resources
[
"Game/Terrain/TerrainList.rsc" //a copy of the original file copied in you mod folder and modified to add your Plains.rsc.
[color=red][i][b]"Game/Terrain/Plains.rsc"[/b][/i][/color], //is the new terrain file you created and you decided the parameters to be more plain, less mountain. Both need to be called here.
]
}

Maybe that was the problem?

I do have the Game and Terrain folders, but the tutorial says to do it this way: Banished\modkit\MyMods\Plains\Game\Terrain. Is that up to date?

Thanks for your help.

if "Banished\modkit\MyMods\Plains\" is your mod you are working on
> > > Support Mods Creation developments with Paypal Donations < < <
Click here to PayPal Donate.

Offline embx61

  • Modders
  • Banished Expert
  • *****
  • Posts: 1290
  • You are always on my mind, Forever in my heart
Re: ModKit not producing results
« Reply #6 on: July 06, 2017, 11:30:43 AM »
It should work.

Indeed the Banished\modkit\MyMods\Plains was just my example folders.

I seem to only I missed the extra "Game/Terrain/Plains.rsc.

As the Plains.rsc is called in the TerrainList.rsc I was thinking it was not needed.

My beloved Kathy
As you were you will always be
Treasured forever in my memory

Offline quadgamer

  • Laborer
  • **
  • Posts: 23
Re: ModKit not producing results
« Reply #7 on: July 06, 2017, 11:48:28 AM »
For some reason I can't quote. But, @RedKetchup: Something is wrong because it's compiling. In Banished\modkit\bin\WinData there's a file plains.pkm. Everything is spelled correctly. But, when I open the game thru Application-x64-profile.exe or Application-x32-profile.exe it doesn't show.

I tried this about a year ago and had the same problem. I want an xtra large map with 3-5 streams, 2, maybe 3, lakes and only a few mountains. I can't find any so I thought I'd make it. It should be easy.
Code: [Select]
// ------ xtra large ---------
{
int _mapSize = 640;

// number of flat areas
int _flatAreaCount = 700;

// size of flat areas
int _minFlatAreaSize = 20;
int _maxFlatAreaSize = 30;

// number of areas to avoid
int _avoidAreaCount = 32;

// size of avoidance areas
int _minAvoidSize = 20;
int _maxAvoidSize = 30;

// how many close nodes to connect to
int _flatAreaConnections = 5;

// rivers
int _streamCount = 5;

// erosion
int _erosion = 32000000;

// number of lakes
int _minLakeCount = 2;
int _maxLakeCount = 3;

// lake size
int _minLakeSize = 30;
int _maxLakeSize = 60;

// number of parts per lake
int _lakePartCount = 80;

// part sizes
int _minLakePartSize = 6;
int _maxLakePartSize = 12;
}
*Forgot to say I added the xtra large. It's not the only code in the file.

I copied the Valleys.rsc, changed it to Plains and added "xtra large". I even tried it without it. It still didn't work. I don't know what could be wrong.
« Last Edit: July 06, 2017, 12:08:33 PM by quadgamer »

Offline quadgamer

  • Laborer
  • **
  • Posts: 23
Re: ModKit not producing results
« Reply #8 on: July 06, 2017, 11:51:37 AM »
My folder structure: Banished\modkit\MyMods\Plains\Game\Terrain. Inside Terrain are the 2 files, Plains.rsc and Terrainlist.rsc.

Offline RedKetchup

  • Champion
  • Banished Expert
  • *****
  • Posts: 7384
Re: ModKit not producing results
« Reply #9 on: July 06, 2017, 01:08:35 PM »
put what you have in a .zip and post here, will fix it

not seeing what you made and where are your errors since i dont see your files. you dont give much infos ^^
> > > Support Mods Creation developments with Paypal Donations < < <
Click here to PayPal Donate.

Offline quadgamer

  • Laborer
  • **
  • Posts: 23
Re: ModKit not producing results
« Reply #10 on: July 06, 2017, 02:34:24 PM »
@RedKetchup That's so cool of you. Thank you so much. Sorry it took so long. It wouldn't upload. Kept getting stuck at 5%.



edited by ketchup
« Last Edit: July 06, 2017, 03:03:33 PM by RedKetchup »

Offline RedKetchup

  • Champion
  • Banished Expert
  • *****
  • Posts: 7384
Re: ModKit not producing results
« Reply #11 on: July 06, 2017, 03:04:10 PM »
woah why it is so big ??? did you gave me all your modkit ?
> > > Support Mods Creation developments with Paypal Donations < < <
Click here to PayPal Donate.

Offline RedKetchup

  • Champion
  • Banished Expert
  • *****
  • Posts: 7384
Re: ModKit not producing results
« Reply #12 on: July 06, 2017, 03:15:56 PM »
your plain is working perfectly, thats your xtra large size that doesnt work
> > > Support Mods Creation developments with Paypal Donations < < <
Click here to PayPal Donate.

Offline quadgamer

  • Laborer
  • **
  • Posts: 23
Re: ModKit not producing results
« Reply #13 on: July 06, 2017, 03:17:14 PM »
oh man. lol sry. was too excited.
https://www.dropbox.com/s/j9dbbhbf29me8s2/Plains.zip?dl=0
~5kb better, huh?
thanks again.

Offline quadgamer

  • Laborer
  • **
  • Posts: 23
Re: ModKit not producing results
« Reply #14 on: July 06, 2017, 03:18:30 PM »
oh. huh? did you open it in the modkit or did you add the mod to the game?