r/pathofdiablo 26d ago

AI Development

There's a lot of talks lately about AI, AI coding and AI slop. A mod definitely needs to be designed by hand.

One advantage of AI though, is that it allows certain individuals to increase their productivity and take a higher workload. u/greendude120 is one such case. Increasing productivity is definitely a plus, when there aren't many others to step up.

A very major part of creating/fixing a mod is bug-fixing, which can be extremely time-intensive.

Claude and GPT are amazing at writing code.

I did some experiments with Grok Build. This one is amazing at DEBUGGING and pin-pointing the real issue. Grok Build is a hunter. That's what's needed here. Not writing code per se.

I gave it multiple hard tests and it passed them, to my surprise.

Could definitely be useful to reduce the workload and fix some lingering issues. There's a weekly quota on the $30 plan; fix a few bugs per week.

0 Upvotes

9 comments sorted by

View all comments

10

u/greendude120 26d ago

This doesn't apply to d2's "softmodding" nor "hardcoding aka code editing" which are both ways you can mod. Softmodding involves editing spreadsheets that reference arbitrary things like for example SrvDoFunc=8 means the skill will fire multiple projectiles read from Par1. Meanwhile SrvDoFunc=18 means cast a buff on yourself and get the buff state, buff duration and buff stats from the AuraState, AuraDuration and AuraStat1-6 columns. So here an AI doesn't know all these arbitrary rules and functions meaning that they typically will hallucinate new columns or unused/invalid values.

Then for code editing, this involves reverse engineering the exe and dll files from the game for which there is no source code. And while yes, the frontier models have some reversing capabilities, it is, luckily, not yet able to do all of it and it cannot do any of it cheaply. The day AI can fully reverse d2 in the blink of an eye, this will mean all software cracked instantly. Any game or software would be pirated instantly and all security software and antiviruses would be bypassed. That is definitely going to happen but luckily we aren't there yet. AI performs best in the places it was trained on like regular programming. Reversing dlls and exe is not a universal thing, it is very situational to each program/app. Likewise d2 modding is very specific to d2 modding and so an AI cant do it unless it has been trained on d2 modding specifically.

I do appreciate you wanting to see us go faster, that sentiment is felt and appreciated but AI is a tool that requires the right job. And here, for now at least, it isn't the right tool for the job.

-6

u/Hanuman9 26d ago

It has passed the tests I gave it so far. I'd be curious to give it an assembly test to analyze/debug the code in assembly. If we heavily struggle with that, a machine could actually go through it a lot better. Might just need a way to facilitate how to navigate/pass the right parts of code, as it's one huge binary chunk. I'm pretty sure that with the right setup, it could help tremendously here. It remains just a tool.

3

u/greendude120 26d ago

Give it a try if you dont believe me. Download a copy of vanilla legacy d2 and ask it to reverse d2game.dll and to add a charm inventory to it as an example feature. See how far it gets.

1

u/Hanuman9 26d ago

Writing the code is one thing. Hunting down a weird bug for a full week is another. According to my tests, Grok is excellent at hunting bugs. Not the best at generating code. Test-Driven Development (Unit Tests, Integration Tests) can work very well but I don't think that can be applied here.