GS3 conversion tool (Updatedx2)
We have worked on a tool for converting GraalScript2 to the new Graalscript3 syntax:
http://graalscript3.graalonline.com/ You can use it to test a little bit and see how the new scripting will look like. We plan to release GS3 officially in a few weeks, after improving compatibility and features. Edit: Updated on June 21 to add better support for global functions and types! You have to restart the npcserver. Edit: Updated on June 24 to fix object attributes like player.account (TServerPlayer.account), no additional restart required. |
PHP Code:
NPC Code:Unexpected symbol 'if' But apart from that, looking good! |
Fails to convert a 50 line script when I tried..
(No error just stays at "Converting..." forevor) |
Quote:
|
Sweet. Looking forward to an official release.
|
Quote:
It's fixed now. Your script is reporting more meaningful errors. Please note that built-in global functions are only partially supported: "keydown" and "setTimer" are still being reported as not existing functions. |
It'd be nice if this were integrated into RC, and not a web page that people have to find via the forums. (Most likely months later.)
|
Quote:
|
Quote:
|
Quote:
|
Quote:
|
Quote:
|
Failed completely :/
PHP Code:
|
Quote:
After trying the above code on http://graalscript3.graalonline.com/, it reports successful conversion. The conversion is not really perfect though. For example, the converter tool cannot guess the type of the "acc" parameter in the "NewRC" function. When checking syntax, several errors are reported. Some errors are valid, others are not (for example "md5" function is not supported yet). Could you please detail what is going wrong on your side? Do you have any error reported? Is the conversion running forever maybe? |
No, it converts it with errors.
The main problem is the md5, the rest I could convert myself, and did. How would I reference md5? It would be cool if we could do something like global::md5() or using namespace global; |
All times are GMT +2. The time now is 04:41 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.