Jump to content

Gracia Final Ai Compiler (Nasc) By L2Shrine.com


Recommended Posts

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
Link to comment
Share on other sites

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)
Link to comment
Share on other sites

  • 2 weeks later...

This version works with interlude?

 

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

Link to comment
Share on other sites

  • 6 months later...

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

Link to comment
Share on other sites

  • 2 years later...

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
Link to comment
Share on other sites

  • 3 months later...
  • 1 year later...
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
Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now


  • Posts

    • L2 Insignia High Five 20x MID SERVER FOCUSED ON OLYMPIAD | PVP | AUTOFARM       OPEN BETA TEST SERVER 3 MAY 2024   GRAND OPENING 10 MAY 2024    Rates: 📜 XP/SP 20x | Spoil 15x | Drop 10x | Adena 10x 📜     Server Features: 🔥 No Olf-T Shirt, No big over-enchant, No over-power Donate 🔥 🔥 VIP Gold Color Chat, Unique Olympiad Extra Points Engine, GvG Event 🔥 🔥 Auto-Farm, LoA and DV scheduled PvP Zone, Calendar Daily Reward 🔥 🔥 Castle Instance, Solo Instance, PvP Solo Rift, Dress me system, Adena Boxes 🔥        Website: https://www.l2insignia.com  Discord: https://discord.com/invite/yEgsrHn2hQ      
    • I am selling the essence project which includes versions 388 and 439 that have been running for over 2 years or (447 as custom PVP like Pride). I have a test server for you to test them out. If you are really interested in it then contact my seller at discord: kiwi7106. Price: 4000 Euro P/s: This is a project that I have spent a lot of money and time developing, so if you are not interested in it, please get out of this topic, thank you. P/s 2: If you find the price too expensive, it's best to skip this article and find another project and don't comment negatively on my topic, thank you.
    • Someone ask me for this, it should work on any client that has Kamael race, preview:     Installation - there are two ways to install depending on how you want to use it:   Method 1: If you want to completely replace the original, do:   Copy all lines from your armorgrp to Notepad++, press Ctrl+H, check the "match whole word" option and replace:   kamael.Mkamael_m000_w_ad00   by:   AvengersKamaelWings.Avengers_MKamael_m001_w_ad00   Then replace:   MKamael.Mkamael_m000_t00_w   by:   AvengersKamaelWings.MKamael_m001_t00_w   Now repeat the same process with the female, replace:   kamael.Fkamael_m000_w_ad00   by:   AvengersKamaelWings.Avengers_FKamael_m001_w_ad00   Then replace:   FKamael.Fkamael_m000_t00_w   by:   AvengersKamaelWings.FKamael_m001_t00_w   You're done, paste everything back into File Edit and save!   Method 2: If you only want to replace in specific sets, execute the above process only on the armorgrp of those sets.   Repack by: AvengersTeamBr Password: LadrãoDeFrango      
  • Topics

×
×
  • Create New...