Jump to content

Tool to compile and verify scripts?


Velda

Recommended Posts


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.01
  • Content Count:  15
  • Reputation:   10
  • Joined:  06/28/23
  • Last Seen:  

Hey guys,

maybe my question is dumb but since i'm newbie in rAthena scripting i would like to ask you if there is some compiling tool for rAthena which can give me feedback if script is working at all or not. I mean besides running script right in the game. How can i verify for example syntax mistakes, functionality etc. ? Or is there some method to run script in some other compilator?

Thanks in advance for answer. ^^

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  13
  • Topics Per Day:  0.00
  • Content Count:  99
  • Reputation:   19
  • Joined:  05/01/12
  • Last Seen:  

I want to know too. For now, what I'm doing is monitoring the map-server.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.01
  • Content Count:  147
  • Reputation:   36
  • Joined:  05/15/20
  • Last Seen:  

Have you tried Hercules Script Checker?
https://haru.ws/scriptchecker/
This might works on rathena scripts.

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

monitor it from your map-server console would be the most ideal way.

checking it from online tool aren't ideal because the version of source code from the online tool and your current source code may not match, and warn you with unnecessary errors or warnings.

Hercules script checker only work up to certain extend, both emulator have a lot of different of script commands nowadays.

 

if you just need some syntax highlight validation that help you in scripting, you can try those IDE that allow you to implement the syntax highlight or syntax validation, like notepad++, or visual studio code.

Link to comment
Share on other sites

  • 2 weeks later...

  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  235
  • Reputation:   87
  • Joined:  06/30/18
  • Last Seen:  

For Visual Studio Code you could use the rAthena Language Support plugin to have highlighting and snippets.
You can get it here: https://marketplace.visualstudio.com/items?itemName=rAthena.rathena-language-support

Link to comment
Share on other sites

  • 2 weeks later...

  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.01
  • Content Count:  15
  • Reputation:   10
  • Joined:  06/28/23
  • Last Seen:  

Thanks for your replies, all of you! ^^
In the time i started the topic i didn't notice that map-server gives me real-time feedback after i @reloadnpcfile. I thought that i must always start the server anew lol. So yea, later i found that checking map-server console right after script reload is enough for me. Also i set c++ syntax in notepad++. @Winterfox's advice for VSC plugin seems useful too. Thanks again!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...