I am trying to make a new stone road.
All is fine until I build a vanilla stone road. Then my stone road changes texture ???
If I next build a piece of my road, all stone roads change texture back again, this time even the vanilla.
I have unique names for material files and texture files.
I have extracted RoadTiles.png and use with unique name.
I have doublechecked all files involved and no old references left.
I have followed all hints I can find but still this happens.
As soon as I place a road other roads of the same speed (fast / faster) changes texture.
there are unique identifiers for the roads, if they are the same it overrides the other.
in dirt road it is:
CreateRoadDescription createroad
{
uchar _index = 1;
ComponentDescription _rawMaterial = "Template/RawMaterialStone.rsc";
}
and in stone rtoad:
CreateRoadDescription createroad
{
uchar _index = 0;
// ComponentDescription _rawMaterial = 0;
}
the lower number will always build over a higher number.
we have given ourselves unique numbers:
written by @kralyerg on the blackliquid website:QuoteIt depends on which road you're upgrading to and from. Each road has a number assigned to it and lower numbered roads can be built directly on top of the higher numbered roads, but not the other way around. (And 2 roads cannot share the exact same number. Bad things happen then.)
Here's a list of the road numbers I made for an earlier version of MM. (v6 I think) But it should give you an idea, even if it's not exactly 100% accurate.
So if you have a high numbered road already built, you can build a lower number on top of it. But if you already have a low number built, you cannot build a higher number without removing the old road first. That's just the way the game was made.
And before you ask, no, I'm not going to go through and renumber all of the roads to fit a specific idea of how they should be ordered. I left all of them how they came from the original modders.
CC ROADS
Red Brick Road 4
Brick Road 5
Quay Road 6
Moss Road 9
Stone Road 10
Sandstone 11
Gravel Road 12
Soil Road 14
Country Road 19
Dirt Road 20
COLOR ROAD MOD
White Road 22
Black Road 23
Brown Road 24
Purple Road 25
Blue Road 26
Green Road 27
Yellow Road 28
Orange Road 29
Red Road 30
GRASSY ROAD MOD
Gravel Road 38
Sandy Road 39
Sand Road 40
Desert Road 41
Plantation Road 42
Pasture Road 43
Crop Road 44
Swamp Road 45
Marsh Road 46
Verdant Road 47
Grass Road 3 48
Grass Road 2 49
Grass Road 50
Transparent 51
DS ROADS MOD
Wood Roads
110-115
Stone Roads
120-139
Gravel Roads
150-154
Wood Chip Roads
160-161
Dirt Roads
170-177
Grass Roads
190-192
Garden Patch Road
195
End of Roads Mod
Dirt Road
900-914
Stone Roads
930-944
Earth Roads
960-974
http://blackliquidsoftware.com/index.php?/topic/1706-must-destroy-roads-to-upgrade-them/#comment-9825 (http://blackliquidsoftware.com/index.php?/topic/1706-must-destroy-roads-to-upgrade-them/#comment-9825)
I found that variable. I use 620 and 621
It does not work. It still changes texture.
edit - To be clear. I do not build roads on top of each other.
A vanilla road on an other part of the map changes my road.
:-[ :-[ :-[
My bad!
I thought it was just to drop the mod and run a saved gamed. No....
I needed to change uchar value and start a new game. Now it works.
Thanks
@Discrepancy !
:) all good, I just thought I was going crazy... I think I did the same thing as you also while making ds roads.
I know. Footprint works - points don't.
:)
you need to do what i ve done: take the vanilla dirt road and vanilla stone road to higher uchars
i gave dirt :
uchar _index = 999;
and i gave stone:
uchar _index = 998;
that way , everything we do, our roads, will have always priority on vanilla.