I think you will find that the child object node (within the .Geo file) is named "logos". Making the texture file transparent actually
*is* working, but you can't tell, because the node continues to display the child object.
It is 36th in the TransformName list, making it number 35 (as the first starts at 0). If you use RW_Tools to open the .Geo file, and then Find . . <TransformID d:type="sInt32">35</TransformID>, you will find the relevant child object block of code. You could just delete this block of code, but of course you would not be able to distribute the changes in a reskin pack.
So the following script will do the job
- Code: Select all
require("Assets/DTG/FeatherRiver/RailVehicles/Diesel/U30B/WesternPacific/Engine/U30BEngineScript.out")
old_Initialise = Initialise;
old_Update = Update;
function Initialise()
old_Initialise();
Call("BeginUpdate")
end
function Update( p_nInterval )
old_Update( p_nInterval);
Call("*:ActivateNode", "logos", 0 )
--don't do Call("EndUpdate") as it will stop the Update function, which will also stop the old Update function
end
I should say, credit for this goes to Chris Barnes who used to do a lot of scripting work to improve particles on UK locos, and who originally posted this on TrainSimDev.com several years ago.
Call("*:ActivateNode", "logos", 0) is the fairly well known code to disable the node, but the rest is important to prevent this script from interfering with the original DTG script
I suggest calling this script
NewU30BEngineScript.lua, and of course the loco's .bin file will need the scripting line at the bottom of the file edited to call this new script name:
- Code: Select all
<ScriptComponent>
<cScriptComponentBlueprint>
<Name d:type="cDeltaString">DTG\FeatherRiver\RailVehicles\Diesel\U30B\WesternPacific\Engine\NewU30BEngineScript</Name>
</cScriptComponentBlueprint>
</ScriptComponent>
EDIT: By the way, you don't need to edit the logo's texture file (as it is associated with the disabled node), but you do still need to extract the original .out file from the .ap file even though you haven't edited it.
Hope this helps
Chris