Jump to content

Share 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.

 Share



  • Posts

    • Promotional banners:  
    • We have added few new features for Second Edition of L2Etina. Check them out:   While streaming L2Etina, you will now receive L2Coins automatically.   Dwarves who have set private workshop, now automatically sell Crystallization to nearby players. For this service, they receive 10% of created crystals.   Before closing game, you will now see amount of earned experience, adena, total play time and acquired items.   You can now check Ranking of current and previous edition. This window can be found in Main Menu.   Party Window now have a special spot, showing if member has Noble Blessing.   Players from South America will be able to connect to the server by proxy.   Players who have supported first edition by donation, will now 2 weeks of free premium.   We have rewritten description of every buff, so they are now clear and handy. Vote rewards will be different for new edition, but exact items are not decided yet.   When spoil is successfull, you will now see special popup window. When you target monster who has been spoiled, you will see Spoil as a debuff.   Buff Store now have possibility to refuse to buff someone. Retail version of party matching was added back. Offline private stores now automatically disappear after 5 days. There are plenty more improvements and fixes, like ability to disable skill bar, multiple fixes to epic bosses, adjustments to aggro.
    • First of all thank you for fast answer. I have changed internal as you said but didn't work sir.
    • The difference isn't paying upfront or at the end of each week. The major difference is that paying clans to join, leads to leaders making random weak sides who play just for money and creates an extremely toxic fake competition in-game (i.e. l2 dex, e-global, valhalla and this kind of servers). Paying clans just to join absolutely kills the rivalry between them as there are no real losers and winners. Everyone gets paid at the end of every week so who cares right ?   Rewarding the winners with cash gives a massive motive to the leaders to create strong sides and try their best to win without giving any advantage to any clan (unlike paying people to join and basically giving them free premiums and whatnot). In this case, there will always be losers and winners and the rivalry will be kept alive.   I hope that clears up the massive difference between the 2 scenarios. Look at all those big russian servers. No1 makes fraps flaming about which side is better. Everyone cares about daily 9v9s or organized ones. There is no clan identity anymore because leaders simply don't care. They have been so detached from the clan's identity that most of the times the leader's CP holds a different name to the side's. This is a very important point to think about. 
    • change the server.ini  InternalHostname = 127.0.0.1     and try
  • Topics

×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disbaled AdBlock