11 December 2016

Aion 5.1.0.9 (changes in script system)

Didn't played aion last month and just noticed a few changes today. Tryed to open script editor and got crash, after quick read of error details noticed what aion using 32bit version of client. 'Ok' I thought. Changed to 64bit version. Opened script editor once again, without crash... good. But scripts don't works... bad. Why? After a short investigation, got a result - they changed the script language from lua to javascript. Hmm, but my old scripts worked fine in 32bit before I opened script editor. Changed client to 32bit once again. Opened the script editor, scripts working... good. Tryed to type short script on javascript, working too... not bad.
So as result we have now:
1) A scripts on lua works only in 32bit version of client.
2) A scripts on javascript works in both versions.
3) The 32bit version can produce a crash when you opening script editor (hope it's was just a some rare random bug).
4) They added some new functions for javascript but nothing important, except perhaps two of them: H.SoundInputStart and H.SoundInputEnd. If you wanna get all available functions and objects for script system using javascript, so you can use that short my script:
function OnInit()
{
  var d = new Date();
  H.PlaySound(0,"rrr");
  var keys = Object.keys(H);
  H.Say(-1,'-----[ '+d+' ]-----');
  for (var i in keys)
  {
    H.Say(-1, i +': ' + keys[i] + ' - ' + H[keys[i]] + '\n');
  }
}
If you know javascript you can try to make a new scripts on javascript, but I'm lazy to rewrite the musplayer to javascript.

No comments:

Post a Comment