Quantcast
Channel: Daz Script Developer Discussion - Daz 3D Forums
Viewing all articles
Browse latest Browse all 1036

Bug in DS v4.11.0.383 DzSIReloadAction: Sets getScriptFileName() == ""

$
0
0

A Heads-Up in case you are suddenly getting wierd problems in your scripts with v4.11.0.383:

Here's the  test script (also attached as test_01.dsa):

// test_01.dsa
// Script to illustrate a bug in DAZ Studio v4.11.0.383 DzSIReloadAction
//  DzSIReloadAction can be triggered e.g. by menu: Script IDE Pane > File > Reload Script

print( App.longVersionString );

print( ' ' );
var sFileSpec = getScriptFileName();
print( sFileSpec );

print( ' ' );
if( sFileSpec == '' ) {
  print( '### BUG ###: getScriptFileName() == ""' );
} else {
  print( 'OK' );
}
//
// In v4.10.0.123:
//    Works OK, including after executing DzSIReloadAction
//
// In v4.11.0.383:
//    Works OK, until after executing DzSIReloadAction
//      then getScriptFileName() always == ''

print( ' ' );

In the v4.11.0.383 Script IDE Pane:

  1. File > Open Script...        // Open test_01.dsa
  2. [Execute]                       // It works OK: getScriptFilename() != ""
  3. File > Reload Script
  4. [Execute]                       // BUG: getScriptFilename() == ""
  5. File > Open Script...        // Open test_01.dsa
  6. [Execute]                       // BUG: getScriptFilename() == ""
  7. File > Close Script
  8. File > Open Script...        // Open test_01.dsa
  9. [Execute]                       // It works OK: getScriptFilename != ""
  10. File > Reload Script
  11. [Execute]                       // BUG: getScriptFilename() == ""

Request #293041 submitted 03-March-2019

 


Viewing all articles
Browse latest Browse all 1036

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>