WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   Executable only problem (https://forum.worldviz.com/showthread.php?t=1129)

Dave 06-29-2007 07:14 AM

Executable only problem
 
Hi - I am simulating an underwater scene and used a great routine posted on the forum a while ago. It uses a water.dlr file to give a moving sea surface. This works fine in Vizard 3.0 but when saved as an executable file causes the programme to crash. It says Vizard launching then opens the moving graphic then closes immediately - although both winviz and the executable remain running in the task manager. Removing the line add ('water.dlr') solves the problem with the executable but of course has no sea surface. Any ideas anyone?

farshizzo 06-29-2007 09:24 AM

Hi,

It crashes here as well. The problem is that the water.dlr plugin loads water.rgb. Vizard cannot detect this, so it is not included in the published EXE. Unforturnately, the plugin does not perform any error checking, so when it can't find the file it ends up crashing. WorldViz did not create this plugin, so you will need to contact the creator of the plugin if you want it fixed.

A solution is to manually add water.rgb to the dependency list of the publish exe by adding the following line of code in your script:
Code:

viz.res.addPublish('water.rgb')

Dave 06-29-2007 10:30 AM

Thanks
 
Thanks Farshizzo - manually adding water.rgb works a treat.


All times are GMT -7. The time now is 04:11 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC