@mcclure111 At the failure site I say checkOrReturnErr(x > 10, "details") which returns an instance of the struct if x > 10 is false.
One could claim it's better than exceptions; you see lines that might exit. With a gcc warning that makes the vals be check()d or ignore()d, it's safe too.
@mcclure111 I completely agree... here's what I use in C: every function returns a small struct, and I use a macro that looks like this when calling: check(callOtherFn(1,2));
The macro returns early with the returned struct if the struct contains an error.
@thydungeonman Yeah, I'll definitely finish the openCard/openStack ones.
Haha, it's just that the implementation is tricky -- script execution calling the compiler calling script execution again.
ViperCard is an open-source re-imagining and re-creation of 1987 HyperCard. Oh the feels!
https://t.co/iioWV1M8Y3
And also: who else has incredible memories of playing Glider?
https://t.co/X1qOzOiFp1
@thydungeonman It should have sent an email; I hope the email wasn't filtered as spam or anything. I'll check the server logs for any logged failures and send an update via dm.
@erico I'm using a JS library lzstring to compress the paint data as it is faster than encoding a png. If you've manually changed the .json file, I wonder if the binary data is fragile to an external editor. I did use the lzstring flag to output valid unicode, though, so I don't know.
@erico I'm getting a javascript alert opening the stack, currently investigating. it looks like the background paint for the card is not valid somehow.
@erico I've disabled the specific JS alert for your stack so it won't be distracting. Thanks for making this! Just yesterday my brother just asked if there was a way he could preview icons, and I said I didn't have time to make it yet.
@erico It's possible there's a ViperCard bug, since I wouldn't expect to see the error go to JavaScript. It's interesting because the paint data for the card looks valid but is the wrong size, so I'm not sure how the paint data got into that state.
And when the second goal is reached, ViperCard can create fields and buttons dynamically, import custom fonts, and rotate + transform text/graphics.
https://t.co/ITsgrGZjXq