News:

Welcome to World of Banished!

Main Menu

Terrain.rsc list

Started by RedKetchup, October 31, 2018, 11:40:55 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

RedKetchup

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:
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 .

embx61

#1
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.


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.
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?
[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]

embx61

#2
I did a test and made a bunch of dummy in the list.

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?
[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]

embx61

I changed some stuff in the SharedElements file and renamed it by Putting EB in front of it.

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.



[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]

RedKetchup

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 .

RedKetchup

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 .

RedKetchup

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 .

embx61

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.
[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]