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

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.



  • Posts

    • Lol good joke.   If I'd be the one contacting yo then I'd say at least 50% in advance because you can basically just fuck off when things doesn't go your way, and then you as a developer just wasted days or even weeks of time with development.
    • "Just make your own game!" sounds simple until you’ve tried it. I did, with Epic Dragon World and learned the hard way that "open source" often means "free labor for resellers." The MIT license became a buffet for people to grab code, rebrand it and ghost the project. Even basic collaboration collapsed because everyone wanted their vision, not *a* vision. NCSoft’s lawyers aren’t theoretical. They’re a sword of Damocles. Even if you rebuild a client from scratch, if it feels like Lineage 2, they’ll come knocking. Ask the Chrono Trigger fangame corpses how that goes. MMOs are hospice care. The genre’s on life support, kept alive by whales and nostalgia. Look at Throne and Liberty, NCSoft’s own "successor" to L2, flopping harder than a 2004 PKer in ToI. Classic reboots (WoW, L2) are bandaids, not resurrections. This is the hobby. Optimizing old systems, reverse-engineering spaghetti code and preserving janky mechanics is the fun part. Monetizing it turns it into customer service hell. No thanks. Community? What community? The L2 scene is 90% resellers, 10% players who’ll quit the second they don’t get +16 on day one. Both asking how to install Java and why running the uncompiled server does not work.
    • Dear players, Open beta test for C3 begins today at 19:00 server time (GMT +2). 💰 All participants who find bugs during OBT will be rewarded with Coin of Luck (CoL): - 1 CoL for each staticmesh issue found — e.g., walking through textures, etc., - 2 CoL or more for server-side issues, depending on their severity., We strongly recommend reviewing the quest list - when switching to Chronicle 3, the total number of quests should match the number shown in the upper right corner of the window and correspond to the quest count from Chronicle 2. To log into the game, use the same data you use to access the Airin server. 📌 Download client: Google Drive
    • 🔥 Sale Alert! 🔥 Twitter Accounts with 50 Followers — now on SALE! Looking to launch a project or warm up your account base fast? We’ve got starter Twitter accounts with ~50 followers at a sweet price. 💰 Limited-time offer – while stock lasts! ✅ Organic-Looking ✅ Clean & Safe ✅ Perfect for boosting credibility 📦 Instant delivery
  • 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 Disabled AdBlock