Jump to content

Gracia Final Ai Compiler (Nasc) By L2Shrine.com


Recommended Posts

Hi everyone,

 

I've made a brand new AI compiler for Gracia Final based servers (based on l2npc.exe)

 

Download: http://download.l2shrine.com/compiler.zip

Source: https://bitbucket.org/l2shrine/extender-public (the compiler is part of MyExt64 open source extender)

 

Some basic info

  • it uses the official NASC syntax for Gracia Final, so
  • use class a : b, not class 0 a : b and define set_compiler_opt base_event_type(@NTYPE_NPC_EVENT) or set_compiler_opt base_event_type(@NTYPE_MAKER_EVENT)
  • use UTF-16LE input files
  • use myself.something, not myself::something
  • it should work the very same way as AdvExt compiler including all new functions, variables, handlers and types they've added
  • it also accepts PSTATE_, MSTATE_ ... constants
  • if you run l2npc.exe without command line parameters, it runs as a standard l2npc.exe (with MyExt64 extender)
  • if you run l2npc.exe with command line parameters, it runs as a compiler

Enjoy!

Edited by eressea
  • Thanks 1
  • Upvote 3
Link to comment
Share on other sites

I've added stubs for all new AdvExt functions: https://bitbucket.org/l2shrine/extender-public/commits/746b743bba9d2bb46bc74dc45a1317fa7129ab39

Next step is adding stubs for new AdvExt handlers and variables, then it should compile with 100% compatibility with AdvExt! :)

 

EDIT: Handlers added, now just those variables... It will be bit harder than handlers :)

Edited by eressea
Link to comment
Share on other sites

Thanks you for this awesome share.

For use your compiler i need to launch  server normally or can i compile only with l2npc and command ?

 

if i run l2npc without command  l2npc dont load npcs only show window  with help about syntax usage

Link to comment
Share on other sites

Thanks you for this awesome share.

For use your compiler i need to launch  server normally or can i compile only with l2npc and command ?

 

if i run l2npc without command  l2npc dont load npcs only show window  with help about syntax usage

 

Hi, you don't need have the server running (but it can run, it doesn't matter), just run (in command line):

 

l2npc.exe file.nasc

 

and it should compile. Just make sure you're in the right folder etc.

 

 

Also some news, I've uploaded new version of the compiler http://download.l2shrine.com/compiler.zip and now it should be FULLY COMPATIBLE WITH ADVEXT. I've added all functions, handlers, CreatureData2 type and all new variables, so have fun :) The source is still on bitbucket https://bitbucket.org/l2shrine/extender-public

Link to comment
Share on other sites

Fantastic job eressea, I missed your PM cuz I was away for the holidays but looks like you got it on your own, awesome :D I got a new gf bug for you ima stick over in your other topic

Link to comment
Share on other sites

I've just found and fixed one "small" bug https://bitbucket.org/l2shrine/extender-public/commits/9d2273e5c373eda9b087ef70f78999d42fc30ed8

Please download compiler again to get the newest fixed version http://download.l2shrine.com/compiler.zip

Link to comment
Share on other sites

Thanks you  compiler work for me, but only if i have l2server running else l2npc crashed  and if y want run normal npc server i have add command "-c" else show compile help windows.

Here is linerror dump:

 

http://www72.zippyshare.com/v/wYrwEMTa/file.html

 

Edited by zconll
Link to comment
Share on other sites

Thanks you  compiler work for me, but only if i have l2server running else l2npc crashed  and if y want run normal npc server i have add command "-c" else show compile help windows.

Here is linerror dump:

 

http://www72.zippyshare.com/v/wYrwEMTa/file.html

 

Try it now (download again http://download.l2shrine.com/compiler.zip)

When running npc without parameters, the help shown is just info on how to invoke the compiler - you can ignore it.

Link to comment
Share on other sites

New dll work fine without l2server now, but if i want run normal npc server show popup how compile but never  to begin npc server load.

for start npc normal npc server i need to run batch file (l2npc.exe) and then work how normal npc server.

Edited by zconll
Link to comment
Share on other sites

New dll work fine without l2server now, but if i want run normal npc server show popup how compile but never  to begin npc server load.

for start npc normal npc server i need to run batch file (l2npc.exe) and then work how normal npc server.

 

I'm not sure I understand well - I'm running l2npc.exe without arguments (to run l2npc as npc daemon) and it runs fine...

 

Can you show some screenshot where it's visible where it's stuck? Thanks!

Link to comment
Share on other sites

Sorry for my english, here you have screenshott when i am to running  l2npc server for load npcs (without arguments).

I am doing double click on l2npcmyext64.exe and then happen it.

 

http://www66.zippyshare.com/v/q2FOTSji/file.html

 

Bt iif i run from command prompt then l2npc work (load ai.obj and npcpos.txt).

Edited by zconll
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...