Missing Warnings for missing *.ace in Log-file no warning if *.ace of loco-shape is missing
#1
Posted 03 January 2017 - 03:08 AM
at a train there are missing textures .
http://www.tssf.eu/f...p?topic=11333.0
For testing I have change a Name of a *.ace-files of the standard Acela-Loco in folder HHP of TRAINSET.
The *.ace missing loco shows also grey, as in example above.
But I haven't found any Warning about in the log-file !
If I switch on the Option: show shape warnings, I get many of this, but no warning about missing *.ace
Warning: Missing UV index in vertex 0 in sub-object 0 in distance level 1 in shape e:\msts\trains\trainset\hhp\acelahhl.s
Can you add such a warning in the Log-file, it would be very helpful by solving such problems.
Thank You
EugenR
#2
Posted 03 January 2017 - 11:20 AM
eugenR, on 03 January 2017 - 03:08 AM, said:
If anyone does fix this, it's bug 1429308.
#3
Posted 04 January 2017 - 10:01 AM
My fear is that other unwanted warning messages could appear, e.g. related to seasonal or night textures.
Here's the patch

Number of downloads: 251
and here are the corrected runactivites for release x.3741

Number of downloads: 233
#4
Posted 04 January 2017 - 01:04 PM
Csantucci, on 04 January 2017 - 10:01 AM, said:
My fear is that other unwanted warning messages could appear, e.g. related to seasonal or night textures.
Yeah, it's not great. :/
Perhaps we could add a new parameter to SharedTextureManager.Get(string, Texture2D) of "bool required", clone SharedTextureManager.Get(string) into a SharedTextureManager.GetOptional(string), and have them pass required of true and false, respectively. Then only log if required == true.
That saves on the TryGetValue changes for night/light textures, which I'd prefer to avoid, but makes SharedTextureManager.Get(string, Texture2D) a bit more complex.
I'd recommend keeping the warning consistent with our existing messages in tone and order [1], like this:
Trace.TraceWarning("Ignored missing texture file {0}", path);
[1] I try to keep all messages in the simple past tense, with no reference to persons (the user or OR), and the most relevant file at the end. This probably should be fully described and documented somewhere. :)
#5
Posted 04 January 2017 - 02:50 PM
Csantucci, on 04 January 2017 - 10:01 AM, said:
Here's the patch

and here are the corrected runactivites for release x.3741

Hi Carlo your patch was really helpful!
Tobi (German OR user) has found in the Log-file, with the help of your patch , that the TGV-Train was looking for the *.ace files in the "spring" folder and there wasn't such a folder!
Thank you very much
Eugen
#6
Posted 04 January 2017 - 03:03 PM
#7
Posted 05 January 2017 - 12:04 AM
eugenR, on 04 January 2017 - 02:50 PM, said:
Tobi (German OR user) has found in the Log-file, with the help of your patch , that the TGV-Train was looking for the *.ace files in the "spring" folder and there wasn't such a folder!
Thank you very much
Eugen
This however seems to mean that the .sd files for such trainsets are incorrect, and require also seasonal textures, like a tree :) .
#8
Posted 05 January 2017 - 05:48 AM
Csantucci, on 05 January 2017 - 12:04 AM, said:
Seasonal textures are supported by trainsets in OR. But is OR only looking for them when called for, or all of the time no matter what?
#9
Posted 05 January 2017 - 05:58 AM
#10
Posted 05 January 2017 - 06:06 AM
#11
Posted 05 January 2017 - 07:51 AM
Csantucci, on 05 January 2017 - 05:58 AM, said:
I have compared the behavior of MSTS and OR for Loco's with seasonal and weather Textures
With ESD_Alternative_Texture ( 0 ) in *.sd file:
MSTS and OR use the textures in the mains-directory of the Loco
With ESD_Alternative_Texture ( 1 or 252 ) ( snow or season )in the *.sd file:
MSTS use always the textures in the main-directory, also if there are season-Folders present.
If there is a Texture not present in the main-directory MSTS can't find it.
OR is looking only in the corresponding season-folder and/or Weather-folder ( Winter, WinterSnow, Snow )
If OR can't find the texture there it use the default-texture.
I think, this difference is like an additional feature, the Train designer can so, for OR, design as example a train full of snow and ice!
#12
Posted 05 January 2017 - 07:56 AM
eugenR, on 05 January 2017 - 07:51 AM, said:
If memory serves me right, someone did this for MSTS a few years ago, adding seasonal winter textures to a set of cars and some locos.. Looked quite good too.
#13
Posted 05 January 2017 - 08:55 AM
copperpen, on 05 January 2017 - 07:56 AM, said:
Yes, in the Bernina freeware there is also some trainset with snow and ice around, but it had to be a specific trainset, as MSTS does not handle seasonal textures for trainsets; instead this becomes possible with OR, as Eugen highlights! This could be added into the manual.