Jump to content

Recommended Posts

Posted

Hi,

 

As far as yo know, there was only nc.exe for C0, which was patched by kvoxi to be compatible with C1. However, it has few bugs (some offsets are wrong, for meal for example). So I've decompied NASC for C1. It took me only 3 days, since everything is inside 1 function (apart yacc modules and NPC-related data, which was decompiled in scope o L2NPC.exe), which is about 2200 lines long.

 

It's original compilator from C1, which is built inside L2NPC.exe. Feel free to use it. However, custom C1 Script code won't compile, you will get errors for missed fields:

 field[m_nNPC_clan_id] doesn't exist
 field[m_nBuilderLevel] doesn't exist
 field[curslot] doesn't exist
 field[m_bIsOnline] doesn't exist
 field[m_bIsPledgeMaster] doesn't exist
 field[m_bIsNPC_in_Clan] doesn't exist
 field[m_nPledgeId] doesn't exist
 field[m_nResidenceId] doesn't exist
 field[m_nMountType] doesn't exist
 field[feet_uid] doesn't exist
 field[head_uid] doesn't exist
 field[exp] doesn't exist
 field[m_Direction] doesn't exist
 field[sex] doesn't exist
 field[m_bIsRunning] doesn't exist

I know, that it's very easy to fix, but my goal is to provide ORIGINAL C1 compiler. For those, who need just tweaked one, might use kvoxi's mode.

 

C1 sources are very similar to C4 ones, where actually only error diagnostic was improved, and few more changes in ai.obj out were added. But to test C4 I need a C4 scripts. If someone could share them, then I can decompile and build C4 compilator.

 

PS: It's  x64 version

Posted

very nice +1

 

PS: By scripts you mean the whole folder from a c4 pack? Would the postpacific release be ok? I never found the original c4 leaked files, and not sure if PPC modified or added any custom.

Posted

No, I mean AI scripts in NCSOFT scripting language. Code like this:

 

class my_ai
{
handler:
	EventHandler CREATED()
	{
		if( ShoutMsg1 > 0 )
		{
			Shout(MakeFString(ShoutMsg1,"","","","",""));
		}
		if( MoveAroundSocial > 0 || ShoutMsg2 > 0 || ShoutMsg3 > 0 )
		{
			AddTimerEx(1001,actInterval);
		}
	}
}

This one is passed as an input to the NASC to get ai.obj. Probably someone has them in private (decompiled with sauron's C4 decompiled and fixed manually)

Posted

Thanks you for this original c1 nasc, i have this c4 ai (not 100% fixed). I hope you will be very helpful.

C4 Ai merged

 

btw Could to be possible compile nasc c1 in release mode please?  msvc2015 redist.  have missing debug libraries and then need install full visual studio 2015.

Posted
28 minutes ago, zconll said:

Thanks you for this original c1 nasc, i have this c4 ai (not 100% fixed). I hope you will be very helpful.

C4 Ai merged

 

btw Could to be possible compile nasc c1 in release mode please?  msvc2015 redist.  have missing debug libraries and then need install full visual studio 2015.

Tnx for C4 scripts. I'll check them!

 

Yes, ofc. I re-uploaded release version with static c-runtime, so no redist is needed. Thx for note!

Posted

Thanks you again.

I am testing your compiler, when compiler find one error during code compilation not dump information about error(s) found in "compile_msg.txt" only show quantity errors found so  it's hard to fix code.

Posted (edited)

@zconll, tnx a lot for the feedback! Indeed, this part of code haven't been revealed. Ofc, it's a bug in decompiled sources. I fixed it and re-uploaded newest version.

 

 

Edited by MasterToma
Posted

Okay, I've found some error root-causes (if talking about C1-package from PP and smeli) . Few variables were present with same offset in original C1, but have another names. So, in your script files (ai_macro.txt, ai_script.txt and questdata.txt) you have to change 

m_bIsPledgeMaster -> is_pledge_master
m_nResidenceId -> residence_id
m_nPledgeId -> pledge_id

 

and remove all        

 int residence_id = 0;

(probably it was a work-around, related with wrong name). About all other errors, I will figure out, when all L2NPC.exe will be decompiled. Probaby there are some functions in script
 

  • 3 months later...
Posted (edited)

Not yet. But I've posted extended compiler 

NASC-C1 compilator is on done. Extended compiler might be found here (use --extmode)
and will publish Quest Compiler soon.
Edited by MasterToma
link updated

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Posts

    • 📦 Mid-October Restock: All 12-18 Month Google One 5TB & Gemini Pro links tested and verified. Instant delivery on KloudItem.com!     FINAL CALL: Google is Shutting This Down After October 2026! Google will NEVER bring back this window of opportunity again. Once this month ends, this massive backdoor upgrade is gone permanently!  BUY 2, GET 1 FREE IS STILL LIVE! Stock up now for yourself, your family, your business, and your friends! Think about it: Every single person you know uses a Gmail account, and everyone is running out of storage. Don't let your loved ones get trapped paying $20–$30 every single month when you can set them up with 5TB Cloud Storage + Gemini Advanced (12–18 Months) right now for only $15! Why Buy Bulk Activations Today? Instant Gift Value: Perfect lifetime-style gift for clients, family, or team members. 100% Private & Safe: Activates on personal Gmails—zero passwords or logins required. Global Access: Works worldwide with zero VPN hassles. Instant Automated Delivery: Receive your activation links in seconds 24/7! ‍ Time is running out fast—secure your extra free licenses before the October deadline hits! Order Your Bundle Now on the Website
    • L2 WARFRONT - INTERLUDE FACTION PvP GRAND OPENING: 30 OCTOBER 2026 | 18:00 UTC    ANGELS VS DEMONS. TWO FACTIONS. ONE WAR. Tired of joining another Interlude server just to spend weeks farming before you can enjoy real PvP? L2 WARFRONT is a heavily customised Lineage 2 Interlude C6 Good vs Evil (GvE) server, built around continuous faction warfare, meaningful objectives and character progression through PvP. Our goal is simple: bring back the excitement of classic Interlude PvP while offering something different from the usual private server experience. CLOSED BETA COMPLETED - 110 PLAYERS PARTICIPATED! Our Closed Beta launched on 3 October, with 110 players. Players experienced real faction battles, tested class balance and helped us identify improvements before Grand Opening. We've listened to the feedback and are continuing to polish the experience for 30 October. Watch actual WARFRONT Closed Beta gameplay: https://www.youtube.com/watch?v=N09KbyAagh0 No cinematic trailers pretending to be gameplay. See the real fights for yourself! SERVER FEATURES FACTION WARFARE Angels vs Demons - two opposing factions Level 80 start with free starter equipment Approximately 25-minute rotating faction battles Moving frontline with capturable outposts Capture the Main Outpost and assault the enemy HQ Strategic respawn locations and battlefield objectives PvP-based rewards and progression MINI AND GRAND EVENTS 1v1, 2v2, 3v3 and 5v5 battles Team vs Team Capture the Flag King of the Hill Chaos and Deathmatch Daily Dion Faction Siege Weekly Giran Clan Siege Grand Boss faction battles Ranked 1v1 Olympiad CUSTOM PROGRESSION Character Mastery Gear Battle XP and equipment progression Battle Pass Custom class and faction balancing PvP rewards and achievements Clan recruitment system   BRING YOUR CLAN! Clan preregistration is already available through our Discord. Eligible preregistered clans can benefit from our special level 8 clan-start promotion. Whether you're coming with an organized clan, a few old friends or completely solo, there will be a place for you in the war. GRAND OPENING FRIDAY, 30 OCTOBER 2026 18:00 UTC / 21:00 MOSCOW Website: https://l2warfront.com Account Registration: https://l2warfront.com/register.html Discord: https://discord.gg/BGt5bfkrTw Closed Beta Gameplay: https://www.youtube.com/watch?v=N09KbyAagh0 Classic Interlude combat, completely reimagined around faction warfare. See you on the battlefield!
    • ⛔ 🔥 YOUR ISSUE DATE IS MATHEMATICALLY IMPOSSIBLE 🎂 On most US DLs the expiry lands on the holder's birthday. Not "around the same time" – exactly on the DOB. Month-day format, not day-month. 03/07 means March 7, not July 3. Mix up the order and you've birthed a date that never existed. Every template revision has a fixed revision date. On a 2012 California DL it's identical on all of them. Your own date – flag. Dates must chain: ISS plus term equals EXP. Break one link and the whole timeline is false. The machine checks arithmetic before it reads the name. 🐎 We verify dates against the state's official documentation before delivery. ✉️ US DL failing on flat ground? Send it – we'll audit the entire timeline. › TG: @mustang_service_ms ( https:// t.me/ mustang_service_ms ) › Channel: Mustang Service ( https:// t.me/ +JPpJCETg-xM1NjNl ) #drawing #kyc #photoshop #DL #dates
    • 🔥⚔️ LINEAGE 2 REBORN SIGNATURE – CHARACTERS & ADENA FOR SALE! ⚔️🔥 💎 CHARACTERS FOR SALE ✨ Eva’s Saint – Level 78 👑 Noblesse ⚔️ Subclass: Titan 💰 Price: €500 🔥 Archmage 👑 Noblesse ⚔️ Subclass: Destroyer (Destro) – Level 75 💰 Price: €400 💰 ADENA FOR SALE 🪙 1 Billion Adena = €250 📌 Server: L2Reborn Signature 📩 WTS – Want to Sell! Interested in any of these offers? Don't hesitate to contact me! 📬 DM me for more detailed information, screenshots, and serious inquiries. ⚔️ Choose your character, boost your gameplay, and make your next move on L2Reborn Signature! 🔥 #Lineage2 #L2Reborn #L2RebornSignature #EvaSaint #Archmage #Titan #Destro #AdenaForSale #WTS
  • Topics

×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..