RomanDA RomanDA

SCRIPTS ALL GONE!!!

SCRIPTS ALL GONE!!!

Here I am working on a new object, its been going great.
I have been working on it for about 1-2hrs I think i have have saved the desktop.
I'm cleaning up the WORKING code, trying to make some functions to make it cleaner.

BOOM DX SHUTS DOWN... no warning no nothing, just GONE...

I figure, OK, let me load DX back up..

I say NO the the message that asks me if i want to just forget what i was working on, and it loads up DX.
YEAH!! all my objects are there, just like they were..

I right click on the master object, click "EDIT SCRIPT"

WTF!!!! Where is my script, there is NOTHING in there, its all gone!!

WHAT THE HELL IS GOING ON!!

Where is my script? Where did it go?
Where is the dump file of the script?
What deleted it?
Who decided nuking my script was the only way to fix an ERROR?

I'm so sick right now i want to beat this pc into the wall.
It was WORKING!! I didn't even hit the SAVE/APPLY button in my script, i was just moving some things around.
BAM GONE

Does someone at Stardock know what the h causes this?
and how in the world am i going to get my 2 hrs of work back?


HELP!!!
8,636 views 31 replies
Reply #26 Top
I think you might be right, XX, but then why does it load the 'default' script instead of just a blank script?
Reply #27 Top
think you might be right, XX, but then why does it load the 'default' script instead of just a blank script?



Probably because the data saying there was a script is separate from the actual script data. Like when you press New Script, it flips a switch saying "This object has a script", and the editor loads the default "new" script if no other is found.

Okay, so I'm tripping, but that could be how it works.
Reply #28 Top
Could be...
Reply #29 Top
HAHAHA...welcome to programming 101..now you know..all through college they kept telling me back up often, test each module, do your flow charts, do and keep records of hard copies of coding..lol..did I listen..hell no...hand this program I was working on, for 4 hours hadn't done one save, no flow chart, just did it off the top of my head on the computer. Heard some thurder, my finger was 3 inches from the save button...BAM lights flickered, computer shut down, four hours of my life wasted...but I learned, I save so often now probably going to wear out my HD. You can take solice in knowing there is not programmer alive that hasn't lost some code, nature of the beast!!!
Reply #30 Top
I'm sure this has been reported before. I know I've at least bi*ched about it a fair bit in IRC.

I second the autosave theory. I find even after making NO changes to an object, just bringing up the properties of an object, DX goes into an autosave fit, and whatever is going wrong happen then, right as its probably saving those script files out, resulting in blanks (and I dont mean completly blank, most occasions Ive had the default OnEnter and OnExit scripts within the object).

I second also loading and saving scripts to external files via the script editor as an option, which means the scripts can be outputted somewhere before the changes have been made to the actual object thus avoiding the crash during apply thing. I don't think allowing external scripts to be referenced directly (ie. being run as the actual script for the object) is a good idea, as it would probably be at risk from the same bug/problem.

When requests for 'wanted' features for the Desktopx3.0 launch was a post a while back I mentioned these things.

Here's hoping
Reply #31 Top
It seemed to crash on me when i was adding a "NEW" object or changing an existing object. IE: I had a background object, and everything was working perfect, and i opened the porperties on the bac object to change the PNG file i was using, as soon as i click the PNG file name in the dialog box, it all crashed, lost all the scripts, just like before. Only this time, I had made a NOTEPAD copy of my main script. IE: select all/copy /paste it into notepage.

I tried again, but it still didnt work. I ended up having to reboot, and start dx again, load a BLANK setup then create a new object, and add the PNG file. Then i had to add back all my scripts. WHAT A ROYAL PAIN IN THE......

DX PRO needs to have this fixed. I see my email was received on 10/6, its not 11/04 and i never received anything to tell me they got the email, nor any response on if there is a fix, or even to ask me any more questions.

Im working on a new DX widget, and i basiclly have to make multiple copies of the desktop, and the save the scripts into notepad just to be sure i dont waste time for nothing.

DX Development, Any ideas? Any news?


Posted via WinCustomize Browser/Stardock Central