NG Heisler

Malcolm67f

New member
Hi- I am having problems installing the NG Heisler into trainz 2010. I have used both the Heisler on DLS and the one on trainzone.co.nz. Has anyone encountered and solved this problem?
Regards
Malcolm Giles:)
 
Heisler Fix

Using CM3.3, View Errors and Warnings for Heisler NG,<kuid:88346:3> shows this error:

Error: The primary and alpha texture are not the same size for 'heisler ng_body/crosshead-lense.texture.txt'

Opened kuid:88346:3 for Edit in Explorer and see that crosshead is referenced int both crosshead-lense.texture.txt and crosshead-window.texture.txt. Crosshead.tga and windows.bmp are 64x64 while lense.bmp is 32x32 pixels. Opened lense.bmp in PSP and resized it to 64x64.
Saved and commit.

The loco now shows it has these faulty dependencies:
Heisler NG Bogey,<kuid:88346:50004> and Heisler Pistons,<kuid:88346:50005>

Heisler NG Bogey,<kuid:88346:50004> show these errors:
Error: Unable to load mesh file: 'Heisler NG Bogey_shadow\Heisler NG Bogey_shadow.pm'
Two ways to fix this. Use PEV's Quickshadows to make a shadow then edit the bogies config.txt file to add a mesh table, or forget the shadow and just add a mesh table for the bogies mesh. Either method will clear the error. Opened the bogey kuid for Edit in Explorer and added this:

mesh-table {
default {
mesh heisler ng bogey.pm
auto-create 1
}
}

Saved and commit ok.

Heisler Pistons,<kuid:88346:50005> shows these errors:

Error: Unable to load mesh file: 'Heisler Pistons_shadow\Heisler Pistons_shadow.pm'
Error: Unable to load primary texture 'bell.tga' for texture file 'bell.texture.txt'
Error: Binary conversion failed for texture resource 'bell.texture.txt'.
Error: Unable to load primary texture 'crosshead.tga' for texture file 'crosshead-window.texture.txt'.
Error: Unable to load alpha texture 'window.bmp' for texture file 'crosshead-window.texture.txt'.
Error: The primary and alpha texture are not the same size for 'crosshead-window.texture.txt'
Error: Binary conversion failed for texture resource 'crosshead-window.texture.txt'.
Error: Unable to load primary texture 'envmap1.tga' for texture file 'envmap1.texture.txt'.
Error: Binary conversion failed for texture resource 'envmap1.texture.txt'.
Error: Unable to load primary texture 'env_metal.bmp' for texture file 'env_metal.texture.txt'.
Error: Binary conversion failed for texture resource 'env_metal.texture.txt'.
Error: Unable to load primary texture 'hcabint.tga' for texture file 'hcabint.texture.txt'.
Error: Binary conversion failed for texture resource 'hcabint.texture.txt'.
Error: Unable to load primary texture 'lamp.tga' for texture file 'lamp-lense.texture.txt'.
Error: Unable to load alpha texture 'lense.bmp' for texture file 'lamp-lense.texture.txt'.
Error: The primary and alpha texture are not the same size for 'lamp-lense.texture.txt'
Error: Binary conversion failed for texture resource 'lamp-lense.texture.txt'.
Error: Unable to load primary texture 'tender.tga' for texture file 'tender.texture.txt'.
Error: Binary conversion failed for texture resource 'tender.texture.txt'.

The shadow error is fixed in the same way as for the bogey.

The texture errors are all due to the presence of a texture.txt file without its referenced texture graphic. The fix is to delete all of the extra files:

Delete bell.texture.txt.
Delete crosshead-window.texture.txt.
Delete envmap1.texture.txt
Delete env_metal.texture.txt.
Delete hcabint.texture.txt
Delete lamp-lense.texture.txt.
Delete tender.texture.txt.

save and commit

Bob
 
Dear Bob
Thanks for your help. I am now listing the "errors" file on the Heisler NG where I suspect there is still a problem. It reads:
Error: The Tag '//smoke12' is not permitted within a container of type 'traincar'.
Error: The Tag '//smoke13' is not permitted within a container of type 'traincar'.
Warning: Progressive meshes are no longer supported by Trainz. Though these meshes may work in Trainz, it is recommended that you switch to a LOD mesh.
Error: Unable to load mesh file: 'Heisler NG.pm'
Error: The primary and alpha texture are not the same size for 'heisler ng_body/lamp-lense.texture.txt'
Warning: This asset requires a shadow mesh, but the mesh table does not contain one.
The error about "The primary and alpha texture are not the same size..." is annoyingly difficult to get rid of. I open the file in paint, and set the image size to 64 x 4. This leaves a white area, which I then fill with the same gray as the original 32 x 32. I then save it- but no dice!
BTW, when you same "save and commit"- does the commit refer to an extra step I am missing somehow?
Thanks for your help! Much appreciated.
Regards
malcolm giles
 
First off, ignore all warning lines. To fix the remaining errors follow these.
Error: The Tag '//smoke12' is not permitted within a container of type 'traincar'.
Error: The Tag '//smoke13' is not permitted within a container of type 'traincar'.
Open the kuid for Edit in Explorer. Edit the config.txt file to delete the // characters.

Error: Unable to load mesh file: 'Heisler NG.pm'
The mesh has a texture applied in an unsupported way. To correct this you'll need to install PEV's PM2IM.exe. Once installed you can right click the mesh and select Open With PM2IM.exe. Make sure you have Strip Textures checked in the Options. This will create a .im mesh file so you can delete the .pm mesh. Then edit the config.txt file to add a mesh-table like this:

mesh-table {
default {
mesh heisler ng_body/heisler ng_body.im
auto-create 1
}
}

Close and save.

Error: The primary and alpha texture are not the same size for 'heisler ng_body/lamp-lense.texture.txt'
Primary and Alpha textures must be the same size. Edit the size of lamp.tga and lense.bmp as required to make both 32x32 pixels.
Then close and save.

Kuids that are open for edit are in the edit folder. Before they can be used they must be commited, which converts and compresses the files and puts them in the local folder. To do this, in CM3.3 click the loco to highlight it then press Ctrl M to commit it.

Bob
 
Last edited:
Malcom

Error: The Tag '//smoke12' is not permitted within a container of type 'traincar'.
Error: The Tag '//smoke13' is not permitted within a container of type 'traincar'.

Where did you get the CDP from, I am looking at the one from trainzone and this error is not shown.

Warning: Progressive meshes are no longer supported by Trainz. Though these meshes may work in Trainz, it is recommended that you switch to a LOD mesh.

Ignore this for the moment, it just a warning.

Error: The primary and alpha texture are not the same size for 'heisler ng_body/lamp-lense.texture.txt'
The error about "The primary and alpha texture are not the same size..." is annoyingly difficult to get rid of. I open the file in paint, and set the image size to 64 x 4. This leaves a white area, which I then fill with the same gray as the original 32 x 32. I then save it- but no dice!

The other textures are 32x32, resize every image that uses the lense texture to 32x32 and save. Note that lense.bmp is used three times so all three associated textures must be the same size. Where did 64x4 comefrom? Changing the size should not have left a white area, did you change the pixel size or make a larger one and copy past the smaller image?

Warning: This asset requires a shadow mesh, but the mesh table does not contain one.

Ignore this, it is just a warning. It comes up because the mesh is a .pm


Error: Unable to load mesh file: 'Heisler NG.pm'

Without seeing what other changes you have made I can't help

Peter

Bob, you beat me!
 
Last edited:
Thanks!

I'd like to thank Narrowgauge and rweber95 for their help in adapting the WS Heisler to trainz 2010. Worth the effort!
Malcolm Giles
 
Bob helped you more than I did, and I'm glad you got it working. I remember when I first tested it, it is a marvelous creation.

Peter
 
Thanks - Heisler working

Thanks to all who posted on this thread. I have been trying to get the Heisler working for a very long time, and have kept going back to 2009 instead of 2010 because I couldn't get the engine to work. It took about 6 tries to understand what to do - didn't understand mesh-table and using .pm's instead of .im's.

Thanks
 
but worth it!

But worth it- it's a lovely little loco. New Zealand had a handful, and even developed a clone model! The Price V- semi streamlined for those 14 mph sprints to the mill!:)
Malcolm Giles
 
Back
Top