Jump to content

Recommended Posts

Posted (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).

 

Fixed, it was wrong parsing of command line parameters (you have a space in path to directory where you try to run it).

 

Also added advext functions from newer version of their compiler (where they renamed UnBlockTimer to UnblockTimer - hihi, my compiler takes both) so we're now fully compatible with vanilla gracia final and 2 different advext compiler versions :))

 

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

Edited by eressea
Posted

I've uploaded new version - the download URL is the same, http://download.l2shrine.com/compiler.zip

 

Changes:

  • removed some npcd log messages when in compile mode
  • fstrings are now stored in std::map<UINT32, std::wstring> instead of stupid wchar_t* array (with limited index)
  • 2 weeks later...
Posted

This version works with interlude?

 

Nope, but similar thing can be probably achieved using C4 l2npc.exe (but someone has to "backport" it)

  • 6 months later...
Posted

f.e. i have ai.obj how to compile to nasc and decompile againt to obj ?

actually ai.obj is compiled from ai.nasc (witch is source)

you compile ai.nasc trought l2npc.exe (witch is npc server(is like "virtual machine"))

you can use already decompiled an manually fixed version of GF ai.obj(witch is decompiled by sauron decompiler for c4(and manualy fixed to work like a charm..))

you need just to edit and compile the ai.nasc, you dont need to decompile it again...

to run l2npc.exe

just launch you cmd -> then switch to your l2npc dir (via chdir command) and then type : l2npc.exe -c -e

  • 2 years later...
Posted (edited)

Endless gratitude to Eressea ... for work, generosity, help, openness, responsiveness ... I adore her ...)

 

(lvl 0) Сompiler application guide (for gremlins like me :)
1. Version Python no higher than 2.7 (syntax errors may occur in newer versions)
2. Open a command prompt:
3. cd C: \ l2  // directory where the Compiler is located. In my case, C: \ l2
4. make.py all  // execute the .py script with the command line parameter all
done!
get three big compilations:
ai.nasc
ai.obj
ai folder
-----
To compile one big ai.nasc into ai.obj:
1. put ai.nasc in the folder with l2npc.exe (in my case C: \ l2 \ nasc \ l2npc)
2. Open a command prompt:
3. cd C: \ l2 \ nasc \ l2npc  // again specify the directory)
4. l2npc.exe -c ai.nasc
done!

 

Compiler: http://download.l2shrine.com/nasc.tar.gz

Edited by Hitcher
  • Like 1
  • 3 months later...
  • 1 year later...
Posted (edited)
On 1/7/2017 at 7:52 PM, eressea said:

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!

 

how can i compile nasc file?

 

 

Edit:

 

never mind. i did it.

Edited by girogius

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.



×
×
  • Create New...