Skip to main content

News

Topic: [persist.js] Does anyone happen to have a copy? (Read 7796 times) previous topic - next topic

0 Members and 1 Guest are viewing this topic.
[persist.js] Does anyone happen to have a copy?
I forgot his name, but tsengu or something developed this pretty neat script called "persist.js" which helped alot with programming variables and stuff.

It be cool if someone kept a backup. I thought I did, but I've seem to have lost it.

  • Fat Cerberus
  • [*][*][*][*][*]
  • Global Moderator
  • Sphere Developer
Re: Does anyone happen to have a copy of Persist.js?
Reply #1
Sure, I'm actually using that for Spectacles right now! :)
neoSphere 5.9.2 - neoSphere engine - Cell compiler - SSj debugger
forum thread | on GitHub

  • DaVince
  • [*][*][*][*][*]
  • Administrator
  • Used Sphere for, like, half my life
Re: Does anyone happen to have a copy of Persist.js?
Reply #2

I forgot his name, but tsengu or something developed this pretty neat script called "persist.js" which helped alot with programming variables and stuff.

I think you might be mixing in a bit too much of my site name in there (tengu)... ;) It was tunginobi!

Re: Does anyone happen to have a copy of Persist.js?
Reply #3
Lol, can't help it, have bad memory problems. You right.

  • N E O
  • [*][*][*][*][*]
  • Administrator
  • Senior Administrator
Re: Does anyone happen to have a copy of Persist.js?
Reply #4
There's also the restored persist.js wiki article :)

The only difference between that and Lord English's version is an Abort call when logging errors.

  • Fat Cerberus
  • [*][*][*][*][*]
  • Global Moderator
  • Sphere Developer
Re: Does anyone happen to have a copy of Persist.js?
Reply #5

There's also the restored persist.js wiki article :)

The only difference between that and Lord English's version is an Abort call when logging errors.


Haha, oops.  I forgot about that, I added that Abort call myself.  When something went wrong Sphere tended to give the location of the error right at the logging call (yes, instead of logging the error it just crashed outright! persist.js is a great tool, but extremely hackish, you have to be prepared for weird stuff like this), but the real problem was that the resulting error was truncated, so I had to manually abort to see the entire message.
  • Last Edit: June 19, 2013, 10:38:21 pm by Lord English
neoSphere 5.9.2 - neoSphere engine - Cell compiler - SSj debugger
forum thread | on GitHub

Re: Does anyone happen to have a copy of Persist.js?
Reply #6
Yeah, the recovered scripts might not have Tungi's final edits.
I remember pointing something out a long time ago that was wrong with the script causing it to crash randomly and Tungi fixed it.
What that problem was, I can't recall.

Were you able to figure out the problem?

  • Fat Cerberus
  • [*][*][*][*][*]
  • Global Moderator
  • Sphere Developer
Re: Does anyone happen to have a copy of Persist.js?
Reply #7
No, didn't have the patience.  I just stuck an Abort call in there as a quick workaround and called it a day.  9 times out of 10 it was a syntax error in my own code as the root cause, but for some reason instead of it showing the location of the error, persist.js was catching the exception, and when attempting to log it, this caused a really strange "Invalid string" error, which soft-crashed the engine.  Here's the thing: The invalid string error also had the offending line of code in it, but the logging crash only showed a truncated version of the error.  Adding an explicit Abort allowed me to see the whole error description.
neoSphere 5.9.2 - neoSphere engine - Cell compiler - SSj debugger
forum thread | on GitHub