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.
Note: Your post will require moderator approval before it will be visible.

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.



  • Posts

    • Hello! We would really appreciate it if you tried our proxies cause we have 4G mobile proxies too! Unfortunately the trial version is not available at the moment, but our knowledge base will help you gain valuable experience using Asocks! https://faq.asocks.com/faq/topic/user-guide
    • Hello Friends . I would like to introduce that i have found a method to avoid league hwid ban ( van 152 ) you will get perma ban when detected only at the account you are using like before vanguard release with the method you can script or use the tools you want at many accs as you wish unstoppable without caring about headache or wasting time and energy of flashing bios reset your pc installing fresh windows and using spoofer to change your hardware infos to unlock the hwid ban i have tested it on 5 accs i got them perma banned for using third party tools but not a hwid ban at all hint : ppl regulary get hwid ban in 2nd ban after got banned once before as vanguard working like that only 1 chance free then hwid ban. its so easy to achieve if you are interested dm for details
    • Trustworthy person; hope you find what you're looking for!
    • Customs being added to systextures/animation/texture influences the increase in virtual ram by a very small amount, which means you won't have a headache in the future with critical error issues, unless it's a dubious custom, there are 2 custom weapon packs available for H5 that are "compromised", they didn't make a very good adaptation, one of the packages is the weapons from the goddess of destruction for H5, another is the hero weapons from the goddess of destruction for H5, avoid these customs for your H5 server if you see it on any forum.   Now coming back to your question; one thing that the NCSoft developers never did was add files to their system, probably because they were aware of what could happen when doing that, now think about one thing: the game's system retail itself is no more than 70MB, every time there was an update made by NCSoft they always added the equipment/items/cloaks etc. in their folders intended for that, so why do we do this? I still have my client containing a system with almost 1GB, 1-2h online is the time I can stay online before the ram memory limit, but I have already redone my entire client with customs being destined for textures/systexture/animations, almost all the customs that I had on that client containing a 1GB system I have on my current server, with the difference that I removed everything from the system and critical error is now nothing more than legends, my current server has a total of 220MB in the system folder And theoretically speaking, based on what I've seen, especially on many forums, I believe that the heavier the system folder is, the faster we accelerate the consumption of the client's virtual ram memory, causing countless different types of critical error in one short period of time, in many forums that I've seen on topics involving critical, the solution that stands out the most is about downloading a new clean "system"
    • Do you think that everything on the system is loaded regardless if you use it or not ? or even worst, are they loaded even if they exist as textures/meshes but not defined on the DAT files ?
  • Topics

×
×
  • Create New...