PDA

View Full Version : LoadDialog crash



Terra_Pegas
04-28-2016, 01:14 PM
I try to run file:



file tmpFile;
flag success = tmpFile.LoadDialog();
if(success){
MessageBox("Loaded");
}else{
MessageBox("Not loaded");
}


It opens a dialog,
I select a script file (mine or ArtRage generated),
click open
and ArtRage crashes.

ArtRage 4.5.9, Mac - OS X El Capitan 10.11.4

Any ideas?

MattRage
04-28-2016, 03:07 PM
Thanks for letting us know - It looks like it was a bug in our file dialog on OS X and we've fixed it for the upcoming 4.5.10 update.

Terra_Pegas
04-29-2016, 07:36 AM
Great (-:
Thanks for swift reply.

1) Is it possible to create folder? (Since of example "Open" function can create a new file if one doesn't exists.)

__________________________________

2) I've also tried function 'ScriptFile' which works fine with full path but not with relative path.

Script guide (Table 11):
ScriptFile("flower.arscript");
SetTransOffset(100, 100);
ScriptFile("AnotherFlower.arscript");


__________________________________
And then there are two functions in guide (probably misspellings):
(Tab 5 - WriteString, WriteAsciiStringflag): f = filDoc.Write(“Ha!”); // “Ha!/r/n”
(Tab 5 - ReadString): sName.TrimRight(); // get rid of cr/lf