MV/MZ asking AI to help spotting the bug considered AI coding plugin?

I know people are against AI coding for the plugin and I use it for helpfile correction
as my grammar isn't to good so it can simplified user friendly readable helpfile.

However, I don't use AI for coding based on garbage most of the time any way, so I avoid that
to learn the code and mess around on my own what works and what does not with error and trial.

The question is that I had a very nasty bug (which could be replicated in MZ).

while I got a bunch of rpg_manager for JsonEx error only, I couldn't save the game and was a bug in
my vehicle plugin.

while I got a total lost why it fails and where, I did throw my code to GPT along with the error stack I got.

GPT pointed out of a line causing the root, which I had to alter the code slightly to make it work.

GPT is used here for advise why it broke.

The question on this, is this considered AI usage for helping to spot the cause?


AI did NOT help fixing the code, just point out and I did ask why.

It appears that sprite how I did doesn't save it that misformed the arrays (actors, events, other object arrays).
which causes JsonEX to crash (which I didn't know).

but I was clueless without any backtrace, so is it AI usage for asking advice on my plugin error trace?
In my opinion, this is not AI-generated code, and people who claim it is are no longer programmers in my eyes.
In my opinion, this is not AI-generated code, and people who claim it is are no longer programmers in my eyes.
I agree on this with you, but I wonder why sprite can't be saved somehow to break
saving on JsonEx.

MV is worse in tracking as MZ throw the error better.

but while I had no clue, I only asked why and where, nothing more.
but why the sprite causes the unable to save/crash after was something I couldn't find.

I just wish the console log pointed it out better in MV (probably same in MZ).

creating plugins is a nice learning curve with errors and trials, but I did learn something
again about sprite, so I need to be careful when I encounter it, but I hope there is way
to trace it back instead of just "rpg_manager" errors <= I couldn't find any clue here.
can you just show the Error Trace? also avoid editting Core code just because it does errors. it can lead to unsuspected behavior with other plugins as it is destructive.
If your AI writes digital code to files that you didn't explicitly write or create using a non-AI utility, then it is AI assisted. You can use AI all day long, have it organize and give you ideas... as long as it does not, create a binary digital file that is included in your game, even if you edit it. That is my understanding.
can you just show the Error Trace? also avoid editting Core code just because it does errors. it can lead to unsuspected behavior with other plugins as it is destructive.
sure, but while I fix it, this was the error:
Untitled-2.png


top one is during save (unable), the 2nd when you exit it.
so finding the root here made the clueless, as it was in the updateShadow
of "this._shadowSprite = shadow" <= not what I expected it to be as it worked,
but not on saving, so I had to guard it with a object property to skip the scanning
in order to save and keep the shadow working as it should be.

maybe not the cleanest way, but it works now, so this made me so clueless
where the root cause is and no idea why JsonEx does it.

If your AI writes digital code to files that you didn't explicitly write or create using a non-AI utility, then it is AI assisted. You can use AI all day long, have it organize and give you ideas... as long as it does not, create a binary digital file that is included in your game, even if you edit it. That is my understanding.
AI did NOT code my plugins, and the helpfile I made, is only used to optimized.
I keep AI out of coding, but did only used to find the bug causing the error.

nothing more.

I learn JS on my own, know the core system, understand the code from core.
so I don't make AI plugin and especially NOT selling AI code which is even worse.
Well of course it's not an AI created plugin but still the process was AI assisted. Which gives advantage vs pure humans. Like before a big part was having to push through impossible situations (unless you got someone to ask for help).

Around half a year ago I asked AI to explain to me about javascript prototypes and what is PIXI and how the draw order works etc. Of course that gave me advantage vs. someone who didn't have AI.

So since there's AI assistance, if someone wants stuff that has nothing to with AI (for whatever reason), then of course you should mention that to them.
I think most programmers don’t really worry about whether AI “replaces” them or not, but rather whether it helps or gets in the way.

In your case, it looks more like a debugging tool. You still had to understand the issue and adjust the code yourself.

In the end, it’s not that different from using StackOverflow, documentation, or existing examples to solve something in a project.
Nope. This would fall under AI-assisted. I use Copilot a lot myself. I use it as a debugger myself or as a tool to speed something up.

For a quick example: Each Event method (Control Switches, Add Items, Change Level, etc) each has a number attached to them. I was making an event log script (extension of a Crash Log script I made), and I needed them in a list with their corresponding number (so RMXP knew what to write). However, I'm not a masochist, so I had Copilot make the list for me.

It also helps optimize scripts which, I think, is the most important function for Game Devs. In my leveling script, there was a specific part that lagged like CRAZY! I didn't know why, and I tried so many things. Plugged it into Copilot, told it what the issue was, and it ended up finding the issue within a few minutes. I asked it to explain why it worked and now I know.

And my skills as a coder did refine itself by plugging my scripts into Copilot and asking "Can this be smaller or more optimized?" Scripts I make now are definitely significantly smaller than when I started.

Around half a year ago I asked AI to explain to me about javascript prototypes and what is PIXI and how the draw order works etc. Of course that gave me advantage vs. someone who didn't have AI.

I will say it also helped me learn Ruby quite quickly. Some coders gave me some flack, but I learned a lot by just giving it scripts and asking it to tell me what the code does and why, word-by-word/line-by-line. In a very short amount of time, I can just make scripts myself without Copilot (tho I still use it for optimization so I can compare).

ANYWHO, its AI-assisted as everyone else already said. AI-assistance has been around way before it became the world craze that it is now.
It also helps optimize scripts which, I think, is the most important function for Game Devs. In my leveling script, there was a specific part that lagged like CRAZY! I didn't know why, and I tried so many things. Plugged it into Copilot, told it what the issue was, and it ended up finding the issue within a few minutes. I asked it to explain why it worked and now I know.

And my skills as a coder did refine itself by plugging my scripts into Copilot and asking "Can this be smaller or more optimized?" Scripts I make now are definitely significantly smaller than when I started.
let AI optimize it smaller or better => is no real coder.

I only asked it once because I couldn't find the root of the issue as the console
log didn't say me anything.

MV error log is crap, MZ handles this better, but pointed to the wrong function
as well, so it left me clueless.

I don't use AI in any way, I just wanted to know where the cause of the root was.
so I could fix it.

I just wish MV/MZ has a better error handler to tell where it crashed, so I could fix
it faster or slower.

RUBY is something I don't know, but I would rather ask than use AI for this.
AI can throw garbage or left out code as it as says "this works because...."
but testing that, it just made it worse.

I did use it once for making a plugin based for NodeJS target TXT file
to output something, and code I don't get, but also something else for fun.
but this make it just really worse of crap.

so I write my own code which I understand, and learn it the hard way.
I don't trust AI anyway, but it pointed the root cause and thats all I wanted.

so I don't trust AI, but it can become better, as it has a wider search like google
if you need something to know.

like stack overflow, lots of quests, lots of different approach, so AI can answer
and give samples in situations, why this, why so, what is best recommended.

but this is also purely what you made, complexity and more.

so its the only time I really asked help to pinpoint the root.
let AI optimize it smaller or better => is no real coder.
Holy attacking batman.

I don't just feed it to AI and wipe my hands. I give a script that I have done (emphasis that I made it) and give it to AI and ask it to optimize it, and then I look at the edited version to see what they changed. This is no different from giving it to someone you know has more experience than you to optimize it, and then you just look at what they changed. I plug their script in to make sure everything works and that's that.

RUBY is something I don't know, but I would rather ask than use AI for this.
AI can throw garbage or left out code as it as says "this works because...."
but testing that, it just made it worse.

...

so I write my own code which I understand, and learn it the hard way.
I don't trust AI anyway, but it pointed the root cause and thats all I wanted.

so I don't trust AI, but it can become better, as it has a wider search like google
if you need something to know.
There is only a handful of people on this site that regularly watches XP Script Support section (me included), and while AI definitely is, by no means, perfect, it can be useful to learn things. By your own logic, you should give error-fixing to an actual person rather than AI because AI might say its X but its actually Y.

This isn't vibe-coding where you ask AI to make a script from scratch, tell it to fix if errors pop up, and then give up if AI can't do it. I simply have a working script and think "hmm, I wonder if this can be more optimized", so I give it to AI to see what it does. I actually gotten to the point that, in most cases, the AI can't optimize it more which is a clear indicator that I am getting better, so the "no real coder" remark is a bit much.

Back to Topic
ANYWHO, what you do with it is AI-assisted. I would recommend, however, if your issue is crash logs (which is essentially what you're complaining about), I'd recommend making a script that gives you a backtrace.

Basically, the program will give you the error that caused the crash but if you open your crash log, it'll tell you what ran before it which would allow you to catch cases where the error-causer is actually elsewhere. Ruby can create files, so imma assume your program can too.

I made one because some of the scripts are really long and interact with each other, so the crash log tells me what was running before the crash as well which allows me to backtrack. For example, I had a crash when you loaded a game (New Game worked fine). Come to find out, it was because I put things in the wrong order elsewhere when the program kept telling me it was in some other area unrelated to what actually caused it.
ANYWHO, what you do with it is AI-assisted. I would recommend, however, if your issue is crash logs (which is essentially what you're complaining about), I'd recommend making a script that gives you a backtrace.
if you can see why it crashed in my post #6 or how I can implement such backlog
to crashing line that it actually did, I'm all ears though.

but AI don't know RPG Maker MV/MZ or other, it mostly guesses, it can work out maybe....
but in the long run it doesn't.

see post #2 by Aerosys =)
if you can see why it crashed in my post #6 or how I can implement such backlog
to crashing line that it actually did, I'm all ears though.
Short Answer: I can explain the backtrace, but without your game and no Java knowledge, I'd unfortunately be a terrible fixer for you lol

Rest of the answer: But to help, that's already the backtrace it seems (the format just confused me). The number on the far right is the line of that plugin that is being called but it works top to bottom (Each line called the line above it). I dont know if you know what a backtrace is so I'll just explain:

When an error pops up, it logs where the error was detected, and then it logs whatever called the method that caused the error, then it logs whatever called that method, and it goes all the way back to beginning of the call-chain.

So if we have method A, B, C, D, and E. If A calls B which calls C and C is when the error is detected, the backtrace would show C and then what in Method B called C and what in Method A called B.

So you'll see something like:
C [error] line 123
B line 123
A line 123

Now, the unfortunate part is you'll need to look at each line and use context to what the issue is (so it does require a hint of coding knowledge to fix even if you find the issue).

Thats why, in my game, I have the crash log tell me the map of the player, their coordinates, and scripts being ran at the time of the crash, then I have a separate log that shows the last event they activated (because that didn't show up on my crash log so any call script errors were invisible).

see post #2 by Aerosys =)
Completely different context to what I was talking about.
Short Answer: I can explain the backtrace, but without your game and no Java knowledge, I'd unfortunately be a terrible fixer for you lol
its not Java but JavaScript and its a plugin I made "SDJB_MoreCustomVehicles".
to allow creation of multiple vehicles to the game as you wish.
(land, boat, ships, airships) and the console log didn't told the line of crash
that target the plugin but all related to JsonEX.

backtrace where to my plugin or why it crashed was hard to guess => sprite issue.
as sprite can't really save it has object where it crashed during update.

something I didn't know, so I had to "skip" the sprite for object saving so it
could function correctly.
its not Java but JavaScript and its a plugin I made "SDJB_MoreCustomVehicles".
Another reason to not trust me to be your fixer XD

After re-reading, although it's a bit late for this situation since you found the problem, a bit of advice I'd give is, if a specific line keeps getting an error, if you know how to make the game create files via Javascript, you can ask it to output to a file prior to that line being called (I use .txt files). It's something I do that's been helpful.

For example, I'd get an nil error from a method so I would go in and ask it to give me a series of things so I can see which is nil. Then you take that code and import it higher in the chain until you find the moment it goes nil (or if its nil the entire way).

I plan to do one for my battle system (damage calculation specificlally) because the coding is getting extremely robust, so Imma have a txt file that exports the damage after each step, so in the event the damage goes haywire, I can simply go to it and see what happened.

I don't know your plugin so im just giving advice that may help you in the future if you haven't thought of it already.
Another reason to not trust me to be your fixer XD

After re-reading, although it's a bit late for this situation since you found the problem, a bit of advice I'd give is, if a specific line keeps getting an error, if you know how to make the game create files via Javascript, you can ask it to output to a file prior to that line being called (I use .txt files). It's something I do that's been helpful.

For example, I'd get an nil error from a method so I would go in and ask it to give me a series of things so I can see which is nil. Then you take that code and import it higher in the chain until you find the moment it goes nil (or if its nil the entire way).

I plan to do one for my battle system (damage calculation specificlally) because the coding is getting extremely robust, so Imma have a txt file that exports the damage after each step, so in the event the damage goes haywire, I can simply go to it and see what happened.

I don't know your plugin so im just giving advice that may help you in the future if you haven't thought of it already.
a reason I don't trust AI, it tells maybe a robust way (which fails mostly), as human coding
is still better than AI in any way.

sure, AI get better and better as it look to stackoverflow, and many other sides for
snippets => stealing codes that aren't yours without your knowledge, AI dont know
the engine so it only guesses.

if you use it fully, some people don't even try the game made with AI code plugins/scripts.
and playing those game I don't mind, but selling codes not made or optimized by people
is a no go for me anyway.

try to learn how to optimize, see different ways, use your own way of coding,
only than it will be unique.

If I see Aerosys plugin that uses an error handling, and eliaquim and MOG.
each has a unique setup that works for them, its their signature.

I use my own parser, so it saves json parsing and all that kind.
I have my own way, it works and I stick with it, do the same, if it works it works.

optimize if your plan sharing it, find your own method first, because you learn
more doing it that way than asking AI that doesn't know the engine or leave out codes.
TLDR, you're preaching to the wrong guy xd
a reason I don't trust AI, it tells maybe a robust way (which fails mostly), as human coding
is still better than AI in any way.
The robustness of my damage calculation is just RMXP. There are many QOL improvements missing from VXA. Game_Battler 3 (damage calculation for attacks, skills, and items) is robust baseline in a brand new project. RMXP doesn't have a formula box, so it all has to be coded into scripts to work. RMXP doesn't have a feature box anywhere so things like MCR, PDR, MDR, counterattack, and reflection have to be coded in.

AI didn't do that for me.

if you use it fully, some people don't even try the game made with AI code plugins/scripts.
and playing those game I don't mind, but selling codes not made or optimized by people
is a no go for me anyway.

try to learn how to optimize, see different ways, use your own way of coding,
only than it will be unique.
I keep telling you the code is made by me, and I don't even need it to optimize anymore. I just do it just to see, and then if it is better, if I see anything I don't understand but it works, I'll ask then keep that information for later use.

For me, I favor readability + maintainability, so when I code, I code with that in mind which means I make a LOT of modules, and I condense a lot of things by breaking them into different methods. For Game_Battler 3 in RMXP, I created so many methods so it wasn't one big blob, but I don't take great pride in it's uniqueness. If Kyonides came to me and was like "you can optimize it better by doing X", if I look at it and like it, well, now I'm doing X.

Actually, he's a perfect example because he is definitely a better coder than me because he plays around with RMXP generally where my focus is usually centered on battles specifically (since I know eventing superbly well). If he was on 24/7, I would easily give my scripts to him to critique as well. I don't mind being less unique if it means I gotten better at coding.

If I see Aerosys plugin that uses an error handling, and eliaquim and MOG.
each has a unique setup that works for them, its their signature.
I mean, a script works or it doesn't work regardless of setup. Optimization is objective.

I have my own way, it works and I stick with it, do the same, if it works it works.

optimize if your plan sharing it, find your own method first, because you learn
more doing it that way than asking AI that doesn't know the engine or leave out codes.
Unless the AI is braindead stupid or you're asking it to build you something like a battle system, you will reach the same conclusion. Like, if you ask AI to build a hash, it's not gonna mess it up.

I wouldn't say you learn more because you don't know what you don't know. If you're over-reliant and don't stop to check the code or don't ask questions, sure, you'll never learn, but you're operating with the worldview that AI is always wrong and it just isn't.

Original thread: https://forums.rpgmakerweb.com/threads/asking-ai-to-help-spotting-the-bug-considered-ai-coding-plugin.183028/