News:

Welcome to World of Banished!

Main Menu

Terrain Types

Started by GalavanteLantern, July 01, 2015, 08:57:07 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

GalavanteLantern

Me again. *waves*

Anyone notice that most if not all of the new terrain types are only included in CC?
I've been trying to find some stand-alone ones that don't require CC [because its buggy and I hate it].

Does anyone know how to make these that could either teach me or be willing to make one for me?
Or...is there somewhere where I can get JUST the Terrain types that come with CC but not the rest of the stuff in it?

Thank you for your time and have a wonderful day.
Edit : Because I'm not sure its called Terrain Type, I'm talking about the map types [Valley, Mountain, ect.]


Paeng

Quote from: GalavanteLantern on July 01, 2015, 08:57:07 PMbecause its buggy and I hate it

Verbose please? Maybe you can be helped.
[i]Heads are round so thoughts can take a turn[/i]
[color=teal][size=8pt]Editor's Choice [b]here[/b][/size][/color]

GalavanteLantern

Quote from: Paeng on July 02, 2015, 04:39:51 AM
Quote from: GalavanteLantern on July 01, 2015, 08:57:07 PMbecause its buggy and I hate it

Verbose please? Maybe you can be helped.


I apologize for that comment. I had been all day with bride zilla and was just...well not fair.
I actually enjoy some aspects of CC, but as said it can be very buggy.
The one I see most is where when hitting quit to start another new game it crashes with the "An unknown error has caused the game to crash" sort of message.  Since I was only running CC at the time, I have to assume this was the culprit.

Also, but perhaps this is just the derpiness of the bannies, but if you build a specialized storage building, place it closest to the place where the specific item comes from [in this case, fish], they still bypass it for the small storage barn that's halfway across the map from them.

I appreciate everyone who takes the time to do these mods and improvements for the game, and I apologize for being so rude about this one mod.
------------------
@chillzz : Thank you very much!

grammycat

At Banished they have one I've used with multiple starting conditions.  I hope it's okay to post a link-if it's removed look for Multiple Starts by Tikaszar.

http://banishedinfo.com/mods/view/296-Multiple-Starts#description

kralyerg

#5
QuoteThe one I see most is where when hitting quit to start another new game it crashes with the "An unknown error has caused the game to crash" sort of message.  Since I was only running CC at the time, I have to assume this was the culprit.

The general way to fix something like this:
Load Banished.
Enable the Mods you want.
Do Not Start your game.
Exit Banished.
Load Banished.
All the mods you selected before should be enabled already.
Now start your game.

Then there shouldn't be any more crashes when you quit to the menu. 

And there's not anything anyone can do about where the citizens decide to store their stuff.  The AI behavior hardcoded into the game and not accessible to modders.

Paeng

Quote from: GalavanteLantern on July 02, 2015, 07:28:37 AMI apologize

No problem... I know how irritated one can get by bugs - no matter what causes them...  ;)


Quote from: kralyerg on July 02, 2015, 08:29:34 AMThe general way to fix something like this:

This may seem rather convoluted, but in reality it is just one quick restart - once you get the hang of it, it's hardly a bother... and it fixes this Banished idiosyncrasy in a dependable way...  :)


For other problems, I have collected a whole bunch of possible causes and remedies here...

Cheers  8)
[i]Heads are round so thoughts can take a turn[/i]
[color=teal][size=8pt]Editor's Choice [b]here[/b][/size][/color]

GalavanteLantern

I'll have to try that.
As for the starting conditions; I appreciate the link, but I'm actually looking for new map types; something other than Mountains or Valleys.  Like the Plains link from chillzz.

embx61

Galavante,

It is not that hard to make your own terrains.

I take it you have the modkit installed and it works.

Make a folder named MyMods inside the root modkit directory
Inside MyMods create a folder Plains.
Inside Plains make a folder Dialog and a folder Game.
Go inside that Game folder and make a folder Terrain.

Browse to the Resource\Game\Terrain folder inside the modkit and copy all the files in there to your just made folder Plains\Game\Terrain.

Now you are ready to edit the values to make your own Plains terrain type :)

Make a copy of the Valleys.rsc File and name it Plains.rsc.

Inside the plains.rsc file look for StringTable _stringTable = "Dialog/StringTable.rsc:terrainType"; It is almost at the top.
Change that to StringTable _stringTable = "Dialog/PlainsStringTable.rsc:terrainType"; // I added Plains in front of it.

Next look for int _flatAreaCount = 50;
These are named three times in the //small, //Medium and //Large map types.

If you make that 50 number higher the game will render more flat lands.

Do this for all maps Small, Medium, Large map types (For example double the values for now).
So small becomes 100 instead of 50
Medium becomes 250 instead of 125
And Large becomes 400 instead of 200.

Save the plains file.
You can delete the valleys.rsc and mountain.rsc files BTW


Now you gonna add a reference of your plains.rsc file to the TerrainList.rsc File.

Open that file and you see,

ExternalList resource
{
External _resources
[
"Game/Terrain/Valleys.rsc",
"Game/Terrain/Mountains.rsc",
]
}


Add under "Game/Terrain/Mountains.rsc", "Game/Terrain/Plains.rsc",

So it will look like this

ExternalList resource
{
External _resources
[
"Game/Terrain/Valleys.rsc",
"Game/Terrain/Mountains.rsc",
"Game/Terrain/Plains.rsc",    //your added terrain type
]
}


Save the file.

Now you gonna make a StringTable.rsc file.

Make a new text file and call it PlainsStringTable.rsc.

Inside put

StringTable terrainType
{
Entry _strings
[
{ String _name = "Valleys"; String _text = "Valleys"; }
{ String _name = "Mountains"; String _text = "Mountains"; }
{ String _name = "Plains"; String _text = "Plains"; } //your added plains terrain type
]
}


Save that file into the Dialog folder.

Now you are ready. The only thing to do is make a batch file, a Package and a Resources file.

Make a bach file and puty inside the following,

..\..\bin\x64\Tools-x64.exe /build PlainsResources.rsc /pathres ../mymods/Plains /pathdat ../mymods/Plains/bin
..\..\bin\x64\Tools-x64.exe /mod Package.rsc:plains /pathres ../mymods/Plains /pathdat ../mymods/Plains/bin


Save that file as buildPlains.bat.

Now make a new file and add to it,

PackageFile plains
{
String _name = "Plains";
String _author = "Your Name";
String _description = "This mod adds Plains terrain to the game.";
String _icon = "icon.png";
int _userVersion = 1.0;

// all files in resource directory
String _includeList
[
"*"
]

// exclude package files, mod files, file used for building packages
String _excludeList
[
"Package_*.crs"
"*.pkg"
"*.pkm"
]
}


Save that file as Package.rsc

We are almost done.

One more file to create,

Put into the file,
ExternalList resource
{
External _resources
[
"Game/Terrain/Terrainlist.rsc"
]
}


Save that File as PlainsResources.rsc.

Done!!

Your Folder/File Structure inside your Plains folder will look like

A Folder Game, inside that folder a Terrain folder with inside that two files named Terrainlist.rsc and Plains.rsc.
Folder Dialog with 1 file inside named PlainsStringTable.rsc.
A file named package.rsc.
A file named PlainsResources.rsc.
A file named BuildPlains.bat.

If all went well it should compile to a plains.pkm file by double clicking your BuildPlains.bat file.

You can tinker with the values inside the Plains.rsc file to suit your needs.

Even add different terrains like semi plains where you increase the 'int _flatAreaCount to increase say 50% of the values from vanilla. So 50 becomes 75.

There are more options as you will see but I don't now the meaning of them all (yet)

HTH and Good luck.






[size=8pt][color=teal]My beloved Kathy
As you were you will always be
Treasured forever in my memory[/color][/size]

[size=10pt]For my list of Mods with download links go here[/size]

GalavanteLantern

#9
Thanks for the tutorial @embx61
One question though, how do I actually open the rsc files in order to modify them?

RedKetchup

Quote from: GalavanteLantern on July 03, 2015, 07:06:37 PM
Thanks for the tutorial @embx61
One question though, how do I actually open the rsc files in order to modify them?

notepad > right click > open with > choose notpad and check always open with > ok
> > > Support Mods Creation developments with Donations by Paypal  < < <
Click here to Donate by PayPal .

GalavanteLantern


GalavanteLantern

#12
How do I make a bach file?

Sorry for the questions, this will be my very first little mod.
[and I'm making it specifically for RedKetchup's little Hobbit Houses.  Not to mention for my own use, as per the original post.]

RedKetchup

a .bat file is made with notepad too but renamed .bat
when you want to make modifications, you right click and choose modify

my bat file for this =


cd HobbitWorld
rmdir bin /S /Q
rmdir build /S /Q
cd ..
bin\x64\Tools-x64.exe /build HobbitWorldResources.rsc /pathres ../HobbitWorld /pathdat ../HobbitWorld/bin
bin\x64\Tools-x64.exe /mod Package.rsc:HobbitWorld /pathres ../HobbitWorld /pathdat ../HobbitWorld/bin


you can also follow the ones provided with the toolkit, although it makes all examples at once.
> > > Support Mods Creation developments with Donations by Paypal  < < <
Click here to Donate by PayPal .