Author Topic: Terrain.rsc list  (Read 361 times)

0 Members and 1 Guest are viewing this topic.

Online RedKetchup

  • Champion
  • Banished Expert
  • *****
  • Posts: 9915
  • Country: ca
Terrain.rsc list
« on: October 31, 2018, 11:40:55 AM »
Here my problem. i know megamod has like 37 different terrains.

but when i try to add more.... and more the other ones kinda disappear from the scrolling menu.

my Game/Terrain/TerrainList.rsc is that:
Code: [Select]
ExternalList resource
{
External _resources
[
"Game/Terrain/Valleys.rsc",
"Game/Terrain/ValleysPeak.rsc",
"Game/Terrain/ValleysGPeak.rsc",
"Game/Terrain/ValleysPine.rsc",
"Game/Terrain/Plains.rsc",
"Game/Terrain/PlainsPeak.rsc",
"Game/Terrain/PlainsGPeak.rsc",
"Game/Terrain/PlainsPine.rsc",
"Game/Terrain/Mountains.rsc",
"Game/Terrain/MountainsPeak.rsc",
"Game/Terrain/MountainsGPeak.rsc",
"Game/Terrain/MountainsPine.rsc",
"Game/Terrain/Lakes.rsc",
"Game/Terrain/LakesPeak.rsc",
"Game/Terrain/LakesGPeak.rsc",
"Game/Terrain/LakesPine.rsc",
]
}

but as i add the "pine" ones, my mountains are disappearing :(
anyone has a clue ? (i cant get anything from Kralyerg lately)
> > > Support Mods Creation developments with Donations by Paypal  < < <
Click here to Donate by PayPal .

Offline embx61

  • Modders
  • Banished Expert
  • *****
  • Posts: 1831
  • Country: us
  • You are always on my mind, Forever in my heart
Re: Terrain.rsc list
« Reply #1 on: October 31, 2018, 03:10:23 PM »
The combo box is called in Dialog/NewGame.rsc

I looked at some code from Discrepancy to make the combo boxes wider as some of my Terrain names were longer.
This is the code of the Terrain Combo Box.
Code: [Select]

ComboDescription comboTerrain : "SharedElements.rsc:textCombo"
{
Alignment _alignment = MidLeft;
int _minWidth = 160;
}

I see nothing in that NewGame file what looks like it expands the scrollbar.
But if MegaMod has it we know it must be possible.

All stuff have a relation to the SharedElements.rsc file so we have to look there if we find something.
Looking for textCombo

 found a couple but this one looks promissing.
Code: [Select]
ContainerDescription textComboContainer
{
int _leftPad = 4;
int _rightPad = 4;
int _topPad = 4;
int _bottomPad = 4;

int _width = -1;
int _height = 208;
int _scrollSpacing = 4;

bool _allowShrinkHeight = true;

ElementDescription _verticalScroll = "verticalScrollbar";
ElementDescription _content = "textComboList";
}

Maybe set the int _height = 208; value higher?
« Last Edit: October 31, 2018, 03:14:06 PM by embx61 »
My beloved Kathy
As you were you will always be
Treasured forever in my memory


For my list of Mods with download links go here

Offline embx61

  • Modders
  • Banished Expert
  • *****
  • Posts: 1831
  • Country: us
  • You are always on my mind, Forever in my heart
Re: Terrain.rsc list
« Reply #2 on: October 31, 2018, 03:25:26 PM »
I did a test and made a bunch of dummy in the list.

Code: [Select]
ExternalList resource
{
External _resources
[
"Game/Terrain/GrizzlyValley.rsc",
"Game/Terrain/BlueMountainsValley.rsc",
"Game/Terrain/RedMountainsValley.rsc",
"Game/Terrain/LushValley.rsc",
"Game/Terrain/LushValley.rsc",
"Game/Terrain/LushValley.rsc",
"Game/Terrain/LushValley.rsc",
"Game/Terrain/LushValley.rsc",
"Game/Terrain/LushValley.rsc",
"Game/Terrain/LushValley.rsc",
"Game/Terrain/LushValley.rsc",
"Game/Terrain/LushValley.rsc",
"Game/Terrain/LushValley.rsc",
"Game/Terrain/LushValley.rsc",
"Game/Terrain/LushValley.rsc",
"Game/Terrain/LushValley.rsc",
"Game/Terrain/LushValley.rsc",
"Game/Terrain/LushValley.rsc",
"Game/Terrain/LushValley.rsc",
"Game/Terrain/LushValley.rsc",
"Game/Terrain/LushValley.rsc",
"Game/Terrain/LushValley.rsc",
"Game/Terrain/LushValley.rsc",
"Game/Terrain/LushValley.rsc",
"Game/Terrain/LushValley.rsc",
"Game/Terrain/LushValley.rsc",
"Game/Terrain/LushValley.rsc",
"Game/Terrain/LushValley.rsc",
"Game/Terrain/LushValley.rsc",
"Game/Terrain/LushValley.rsc",
"Game/Terrain/LushValley.rsc",
"Game/Terrain/LushValley.rsc",
"Game/Terrain/LushValley.rsc",
"Game/Terrain/Valleys.rsc",
"Game/Terrain/Mountains.rsc",
]
}

That is 35 of them and all are showing in the list without that i changed anything.

I added 10 more and I can scroll through all of them.
Are you able to scroll to see them all?
Is the scrollbar working?
« Last Edit: October 31, 2018, 03:33:20 PM by embx61 »
My beloved Kathy
As you were you will always be
Treasured forever in my memory


For my list of Mods with download links go here

Offline embx61

  • Modders
  • Banished Expert
  • *****
  • Posts: 1831
  • Country: us
  • You are always on my mind, Forever in my heart
Re: Terrain.rsc list
« Reply #3 on: October 31, 2018, 04:06:31 PM »
I changed some stuff in the SharedElements file and renamed it by Putting EB in front of it.

Code: [Select]
ContainerDescription textComboContainer
{
int _leftPad = 4;
int _rightPad = 4;
int _topPad = 4;
int _bottomPad = 4;

int _width = -1;
int _height = 1000; <============================================was 208
int _scrollSpacing = 4;

bool _allowShrinkHeight = false; <====================================was true

ElementDescription _verticalScroll = "verticalScrollbar";
ElementDescription _content = "textComboList";
}

This is what I got LOL
But without changing anything I got 45 Terains in the list and can scroll through them.

The allowShrinkHeight can best be left at true so the list collapse/expands by the number of items in the list.
The 208 value is the value which determines when the list start to scroll. So for example 8 or 9 items can be seen the rest is hidden and can be accessed by using the scrollbar.


http://worldofbanished.com/gallery/474_31_10_18_3_58_16.jpeg
Terrain.rsc list

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


For my list of Mods with download links go here

Online RedKetchup

  • Champion
  • Banished Expert
  • *****
  • Posts: 9915
  • Country: ca
Re: Terrain.rsc list
« Reply #4 on: November 01, 2018, 01:11:51 AM »
i already found those width , height and allowshrink parameters but it didnt fixed the problem. i am still missing most of the mountains, and everything at bottom of the list get some offsets.

i countinued and added 4 mores, the list show 4 mores but still , the mountains mostly still disappeared and you see the grey bar that indicate you if you click you will choose the grey mouseover one

i think the fact you added only copies of same names lure you. retry to do a list with all different names like lush1,lust2,lush3... lust44, lush45..
and check if your grey mouseoverlay gets offsets or not
> > > Support Mods Creation developments with Donations by Paypal  < < <
Click here to Donate by PayPal .

Online RedKetchup

  • Champion
  • Banished Expert
  • *****
  • Posts: 9915
  • Country: ca
Re: Terrain.rsc list
« Reply #5 on: November 01, 2018, 03:36:19 AM »
i added more but i am still facing the same problem. it always cut at mountains and the last batch of choices (lakes) are decal offset
> > > Support Mods Creation developments with Donations by Paypal  < < <
Click here to Donate by PayPal .

Online RedKetchup

  • Champion
  • Banished Expert
  • *****
  • Posts: 9915
  • Country: ca
Re: Terrain.rsc list
« Reply #6 on: November 01, 2018, 03:58:40 AM »
SO I FINALLY FOUND MY PROBLEM !!

i started by changed the order put all vanilla on top, then all Peaks, then all Peaks[grid], then all PineWood, all FreshSprings, then all GreenLush.... and the problem was the same (missing mountains) but spreadout down the list...

then i noticed some were refering to the original vanilla stringtable... and the new ones to my own stringtables.
the mountains ones were still on vanilla ones.

as soon i sent everything, vanilla ones included, to my own stringtable, and didnt get to deal with 2 lists of terrain types (vanilla one, my own one) everything appear and missing none.


it has been 3 days i am on this trying to fix and dont understand at all.... you can see guys, dealing with this, dealing with problems, non-understable (ununderstandable??) errors can be a super headache. this is a real pain.

you have no idea all the headaches we can get while we are trying to offer you new cool things.
> > > Support Mods Creation developments with Donations by Paypal  < < <
Click here to Donate by PayPal .

Offline embx61

  • Modders
  • Banished Expert
  • *****
  • Posts: 1831
  • Country: us
  • You are always on my mind, Forever in my heart
Re: Terrain.rsc list
« Reply #7 on: November 01, 2018, 09:39:18 AM »
Glad you have found what it was.

I had suddenly go for a while so could not respond sooner.
I tried with renaming and that worked too as I expected because that textBox get only filled with the stuff from the StringTable.

I hear you, stuff like this can be very frustrating and can be real pain in the a##.
Sometimes we look at stuff what we think it can be what has nothing to do with what the cause of the problem is.

Just the damn string table....sheeeesh.

But again, at least the problem is solved.
My beloved Kathy
As you were you will always be
Treasured forever in my memory


For my list of Mods with download links go here