WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 06-29-2007, 08:14 AM
Dave Dave is offline
Member
 
Join Date: Jun 2007
Posts: 26
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?
Reply With Quote
  #2  
Old 06-29-2007, 10:24 AM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
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')
Reply With Quote
  #3  
Old 06-29-2007, 11:30 AM
Dave Dave is offline
Member
 
Join Date: Jun 2007
Posts: 26
Thanks

Thanks Farshizzo - manually adding water.rgb works a treat.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 11:18 PM.


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