Jump to content

Lineage 2 GF AI Decompiler


Recommended Posts

BTW tree splitting produces too long paths in Windows, so it can't handle it properly =/
Max path length in Windows is 260 or something, so I'll limit tree depth.

Edited by verbrannt
Link to comment
Share on other sites

1 minute ago, verbrannt said:

BTW tree splitting produces too long paths in Windows, so it can't handle it properly =/
Max path length in Windows is 260 or something.

 

It works for me on Windows 10 with PHP 7.2.7, I just had to enable Win32 long paths - see https://www.ryadel.com/en/enable-ntfs-win32-long-paths-policy-remove-255-260-characters-limit-windows-10/

 

Also I've seen you haven't applied UTF-16le decoding part from the patch and still drop all non-ASCII characters, what's the reason for it?

Link to comment
Share on other sites

1 minute ago, eressea said:

Also I've seen you haven't applied UTF-16le decoding part from the patch and still drop all non-ASCII characters, what's the reason for it?

 

I'm refactoring main.php right now thats the reason :)

Link to comment
Share on other sites

There is 3 functions missing from eressea's compiler.

Quote

"235078277": {
        "name": "SetLocalMap",
        "arguments": [
            "int",
            "int",
            "int"        ],
        "type": "void"
    }

"235012742": {
        "name": "GetLocalMap",
        "arguments": [
            "int",
            "int"        ],
        "type": "int"
    }

"268828804": {
        "name": "DebugLog",
        "arguments": [
            "string",
            "string",
            "string",            "int",
            "int",
            "int"        ],
        "type": "void"
    }

 

 

Link to comment
Share on other sites

4 minutes ago, zconll said:

There is 3 functions missing from eressea's compiler.

 

Because they're custom and unique for MyExt64... Maybe add data/gf-myext? :)

Link to comment
Share on other sites

Problem with empty string in "MakeFString" function.

After descompiler:

Quote

Say(MakeFString(1000452, , __blankblank, _blank, _blank, _blank));

 

Should be:

 

Quote

Say(MakeFString(1000452, "", "", "", "", ""));

 

 

class  warrior_parameter affected and some more.

Link to comment
Share on other sites

2 minutes ago, zconll said:

Problem with empty string in "MakeFString" function.

After descompiler:

 

Should be:

 

 

class  warrior_parameter affected and some more.

 

_blank is a property defined in the default_npc class.

string  _blank = "";

 

Link to comment
Share on other sites

ok, I never has seen this parameter in GF/freya ai.obj, i need add this parameter to  "default_npc" class, but there a problem after descompiled.

Quote

Say(MakeFString(1000452, , __blankblank, _blank, _blank, _blank));

 

How you can to see second and third parameter show both together, when should be:

 

Quote

Say(MakeFString(1000452, , __blank, _blank, _blank, _blank, _blank));

 

Link to comment
Share on other sites

5 minutes ago, zconll said:

ok, I never has seen this parameter in GF/freya ai.obj, i need add this parameter to  "default_npc" class, but there a problem after descompiled.

This parameter is from another AI (not default GF/Freya). AdvExt uses it, for example.

 

5 minutes ago, zconll said:

How you can to see second and third parameter show both together, when should be:

 

Please provide part of the ai.obj where this happens.

Edited by verbrannt
Link to comment
Share on other sites

New release: https://github.com/madyanov/nasc-decompiler/releases/tag/v1.4

 

  • HF Support by Eressea
  • GD Support by @ChaosPaladin
  • Many NASC generator fixes
  • Split result classes into tree
  • Non-ASCII symbols support by Eressea

 

Edited by verbrannt
  • Like 1
  • Thanks 1
Link to comment
Share on other sites

Are you sure that GM_... aren't global map IDs?

 

EDIT: For example antharas uses global map ID of 10 which is same as gm_antaras_max... On the other side, it's usually defined as a parameter so it can't get resolved nevertheless...

Edited by eressea
Link to comment
Share on other sites

2 minutes ago, verbrannt said:

It's definitely global map ids :) 

 

I'm asking because of commit https://github.com/madyanov/nasc-decompiler/commit/87c177446322d3c2688ec3e53c75b216f50d2501

Link to comment
Share on other sites

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

    • Whatever @Tryskell said...   Unfortunately it is not 2005-2010 anymore... Most of the community from those days is "grown up" and probably does not play games anymore (or at least no MMOs). I think anything related to MMOs will be a nail in the coffin.   I understand that it is hard to let the thing you've built for years to "just die". I assume most people got into programming, so maybe you can try something in that direction. But then again, this is a very niche community.   We need to think of something to bring the people together. I think events may be really fun, but then you would probably need to add prizes n order for the people to participate.   So yea, just my 2 cents. Hopefully somebody can come up with some great idea so we can revive this place. I've already forgotten it for the last couple (5-6) years...
    • Thats an interface future. You can reach me out about this in discord: xbaus
    • DISCORD : utchiha_market telegram : https://t.me/utchiha_market SELLIX STORE : https://utchihamkt.mysellix.io/ Join our server for more products : https://discord.gg/hoodservices https://campsite.bio/utchihaamkt
    • Both "MMO genre" AND "forums" are greatly deprecated those days. MMO genre, except very few games (TESO, WOW, BDO, FF14), is mostly "eaten" by fast paced games (aka games with 15-30min game parties, they are numerous). See Twitch best games, I doubt the top 10 are MMOs. Adding more MMOs categories, while MMOs themselves got less population, isn't a bright idea. Also, in the past, there was multiple games categories - none actually worked out, so far. Forums type were replaced by Discord, mostly. You communicate faster, you got voice, you can group up and it's already thematized (by server, by guild, by game,...)... Unfortunately, there is nothing you can do about. You already did it multiple times without success (3 or 4 times at least ?). It's not due to staff. MMO forum is just "niche" nowadays, while 20 years ago it was "dope" and the thing to do. Your main problem is MxC is a community based on "nothing". It was first cheater dedicated, then mostly L2 development dedicated,... With a mix of random things here and there. The formula is lightly-themed as "community" (that's actually why you still have some ppl posting), and in same time community never was expanded to retain ppl (notably through MxC servers - no matter the game : L2, GTA, Conan Exiles, Lost Ark, whatever else). In the end, you end with "nothing", since people comes and goes (and mostly goes, since MMO isn't a thing anymore), but both MMO genre is greatly endangered by other types of games AND forums isn't the proper way to communicate in 2024. Actually, the only use of a forums compared to Discord is to search through archives, and the main point is it's a better "showcase" than Discord (a static website would end with the same output). The proposed formula will never work, or at best will attract greedy ppl.
    • Welcome to my store :https://ultrasstore11.mysellix.io/fr/ 2015-2022 Aged Discord Account 2015 Discord Account : 50.99 $ 2016 Discord Account : 10.50 $ 2017 Discord Account :4.99 $ 2018 Discord Account : 3.99 $ 2019 Discord Account : 2.99 $ 2020 Discord Account :1.99$ 2021 Discord Account :1.50$ 2022 Discord Account :0.99$ Warranty :Lifetime Payment Methods : Crypto/ PayPal Contact Me On Discord Or Telegram Discord :@ultrasstore11 Telegram : https://t.me/ultrastore11  
  • Topics

×
×
  • Create New...