Users Forum

HYRCAN Category => Bugs and Problems => Topic started by: raveensingh on November 16, 2021, 08:20:34 pm

Title: Saving and then reloading [Solved]
Post by: raveensingh on November 16, 2021, 08:20:34 pm
I am using v 1.75.  Great program by the way.

Unfortunately, I saved it a few times, and after crashing for various reasons, I would restart the program and it wouldnt load the saved file.  Kept saying that the file was corrupted.  What am I doing wrong?
Title: Re: Saving and then reloading
Post by: Roozbeh on November 16, 2021, 08:26:29 pm
please upload the script for this model so I can reproduce the error.
make sure you include script (*.hjs) not the binary file itself.

meanwhile save the script instead of binary saved file. restoring the script file makes a lot more sense since the saved file from older version cannot be opened in the newer version but script suppose to run in any version.
Title: Re: Saving and then reloading
Post by: JesseB on December 14, 2021, 01:44:42 am
Hi Roozbeh,

You can use these two scripts to help identify the error.

They are the exact same except that one has 3 material layers and one has 2. They cause two different errors (one with corruption as described, one processes the information but incorrectly and shows weird symbols in the interpretter). Probably a result of the same bug. Hopefully the files help.

Best,
Jesse
Title: Re: Saving and then reloading
Post by: Roozbeh on December 14, 2021, 09:05:55 pm
Hi Jesse

thanks for the bug report. I did fix the issue in the latest release. Please go ahead and give it a try.

Again, I always recommend users to use script to keep the model. There are several advantages in the scripting. I personally use scripting language in almost every modeling I do in industry. The script models you created are perfect example of that.

-Roozbeh