eressea Posted January 7, 2017 Posted January 7, 2017 (edited) 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 January 9, 2017 by eressea 1 3 Quote
Accountant Posted January 7, 2017 Posted January 7, 2017 +1 nice share for off users.gz eressea Quote
eressea Posted January 8, 2017 Author Posted January 8, 2017 (edited) 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 January 8, 2017 by eressea Quote
zconll Posted January 9, 2017 Posted January 9, 2017 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 Quote
eressea Posted January 9, 2017 Author Posted January 9, 2017 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 Quote
Anarchy Posted January 9, 2017 Posted January 9, 2017 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 Quote
eressea Posted January 10, 2017 Author Posted January 10, 2017 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 Quote
zconll Posted January 10, 2017 Posted January 10, 2017 (edited) 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 January 10, 2017 by zconll Quote
eressea Posted January 10, 2017 Author Posted January 10, 2017 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. Quote
zconll Posted January 10, 2017 Posted January 10, 2017 (edited) 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 January 10, 2017 by zconll Quote
eressea Posted January 10, 2017 Author Posted January 10, 2017 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! Quote
zconll Posted January 11, 2017 Posted January 11, 2017 (edited) 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 January 11, 2017 by zconll Quote
xeL Posted January 11, 2017 Posted January 11, 2017 this will kill some one's profit :D. Nice share btw ;) Quote
Recommended Posts
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.