MV Question about the nature of bugs

Hi! Let me say this first: I don't know anything about coding 🙁 I'd like your help with some questions about bugs.
Are bugs something that a player can find and I don't even if we do the same things? Something that occurs randomly without an apparent reason? If so, will using a lot of switches increase the probability of having one?
Thank you!
Computers are machines that follow instructions. They're not mechanical, so it's not like your car where you might get a grinding noise when you change gears one time, but it doesn't happen the next time.

When computers follow the same instructions it must always produce the same results - that's how computer programs and software work at all.

Are bugs something that a player can find and I don't even if we do the same things?
No but maybe.

Your game can't do something different for a player and for you. But you and the player have different computers, and the game can be affected by other things on the computer.

For example, the game can get shut down by an anti-virus program; someone's computer could have damaged RAM and cause the game to crash; someone's graphics card isn't good enough to run the game, so it runs laggy for them.

Something that occurs randomly without an apparent reason?
Well...sure? If you don't know what the cause of a bug is, it obviously doesn't have an apparent reason to you. But it can't have no reason, and its "random" nature must be following some kind of pattern that you haven't figured out.

If so, will using a lot of switches increase the probability of having one?
I don't understand what switches existing has to do with bugs in your game.
Are bugs something that a player can find and I don't even if we do the same things?
Potentially. It depends on the code being used. In general, whatever triggers a bug triggers the bug and it will be replicatable. The cause may not always be apparent though. If you have a skill that rolls a random number to determine its effect and the code written doesn't cover all of the outcomes, then your player can encounter a bug you never did during your tests even though you followed the same steps to get there


If so, will using a lot of switches increase the probability of having one?
Not by itself. It'll might increase the odds of you making an oversight if you arent careful and you end up creating bugs through human error, but it wouldnt be the code doing that
Computers are machines that follow instructions. They're not mechanical, so it's not like your car where you might get a grinding noise when you change gears one time, but it doesn't happen the next time.

When computers follow the same instructions it must always produce the same results - that's how computer programs and software work at all.


No but maybe.

Your game can't do something different for a player and for you. But you and the player have different computers, and the game can be affected by other things on the computer.

For example, the game can get shut down by an anti-virus program; someone's computer could have damaged RAM and cause the game to crash; someone's graphics card isn't good enough to run the game, so it runs laggy for them.


Well...sure? If you don't know what the cause of a bug is, it obviously doesn't have an apparent reason to you. But it can't have no reason, and its "random" nature must be following some kind of pattern that you haven't figured out.


I don't understand what switches existing has to do with bugs in your game.
Thank you so much for your answer!
So if I understood correctly, if there's a bug I should be able to find while playtesting (If it's something that happens because of the code and not because of external factors).
For the switch question: as someone with no knowledge in the matter, I thought that maybe making the game do more complex stuff=more bugs XD

Potentially. It depends on the code being used. In general, whatever triggers a bug triggers the bug and it will be replicatable. The cause may not always be apparent though. If you have a skill that rolls a random number to determine its effect and the code written doesn't cover all of the outcomes, then your player can encounter a bug you never did during your tests even though you followed the same steps to get there



Not by itself. It'll might increase the odds of you making an oversight if you arent careful and you end up creating bugs through human error, but it wouldnt be the code doing that
Ok thank you so much! :3
So if I understood correctly, if there's a bug I should be able to find while playtesting (If it's something that happens because of the code and not because of external factors).
The definition of a bug is when something unexpected happens while software is running.

Therefore, yes - there is, technically speaking, no such thing as a bug that comes from your game that you couldn't possibly find during playtesting. Has any person ever made a program they only tested by themselves and had zero mistakes? Probably not.

For the switch question: as someone with no knowledge in the matter, I thought that maybe making the game do more complex stuff=more bugs XD
Again, that still doesn't make much sense to me - you're saying that like bugs are some force of nature that just exist no matter what you do 😛 Bugs are mistakes. It doesn't matter whether what you're doing is simple or complex, if you're careful enough there won't be mistakes.

As @Robro33 already said, sure: the more complex you make your game, the greater chances you made a mistake. But that doesn't have anything to do with switches.

Just using switches doesn't mean you're making complex things with them, and you can make complex stuff with incorrect logic with zero switches.
The definition of a bug is when something unexpected happens while software is running.

Therefore, yes - there is, technically speaking, no such thing as a bug that comes from your game that you couldn't possibly find during playtesting. Has any person ever made a program they only tested by themselves and had zero mistakes? Probably not.


Again, that still doesn't make much sense to me - you're saying that like bugs are some force of nature that just exist no matter what you do 😛 Bugs are mistakes. It doesn't matter whether what you're doing is simple or complex, if you're careful enough there won't be mistakes.

As @Robro33 already said, sure: the more complex you make your game, the greater chances you made a mistake. But that doesn't have anything to do with switches.

Just using switches doesn't mean you're making complex things with them, and you can make complex stuff with incorrect logic with zero switches.
Ok that makes sense, thank you so much!
Something that occurs randomly without an apparent reason?
No, because there is no randomness in any computer.

However, computers are complex machines and programs are usually very complex command lists, so it is quite possible that the reason is not obvious.

The most crazy result of a successfull bughunt I personally had with a customer's computer was finding out that the wrong mouse driver under Windows created a display error (black line) under DOS.
The eror was reproducable after I found it, and the most probable cause is that the wrong driver reserved the wrong adresses in RAM for itself, causing those two lines of unusable display data.

so yes, it is quite possible that you don't see any reason for an error - and if your computer has correct drivers while a player has a wrong driver you will never be able to reproduce it.

If you're interested in more background on bughunting, then follow the link to bughunting in my signature.
In regards to errors not being completely random and usually the fault of underlying programming/eventing or hardware configurations, while that's true in like 99.99999999% of instances, we gotta remember to account for cosmic rays when playtesting our games, of course!

(Okay this will almost never ever be a problem for anyone ever lol, but it's still a fascinating thing all the same and I couldn't resist bringing it up)
we gotta remember to account for cosmic rays when playtesting our games, of course!
Thank you for sharing this. ive found my new boogyman. I will now blame this 100% of the time anything goes wrong
Has any person ever made a program they only tested by themselves and had zero mistakes?
248d3c7968fe2ee87bf50eea427a04e2bc3fb34ar1-556-302_hq-3351781382.gif
No, because there is no randomness in any computer.

However, computers are complex machines and programs are usually very complex command lists, so it is quite possible that the reason is not obvious.

The most crazy result of a successfull bughunt I personally had with a customer's computer was finding out that the wrong mouse driver under Windows created a display error (black line) under DOS.
The eror was reproducable after I found it, and the most probable cause is that the wrong driver reserved the wrong adresses in RAM for itself, causing those two lines of unusable display data.

so yes, it is quite possible that you don't see any reason for an error - and if your computer has correct drivers while a player has a wrong driver you will never be able to reproduce it.

If you're interested in more background on bughunting, then follow the link to bughunting in my signature.
Thank you!

Computers are machines that follow instructions. They're not mechanical, so it's not like your car where you might get a grinding noise when you change gears one time, but it doesn't happen the next time.

When computers follow the same instructions it must always produce the same results - that's how computer programs and software work at all.


No but maybe.

Your game can't do something different for a player and for you. But you and the player have different computers, and the game can be affected by other things on the computer.

For example, the game can get shut down by an anti-virus program; someone's computer could have damaged RAM and cause the game to crash; someone's graphics card isn't good enough to run the game, so it runs laggy for them.


Well...sure? If you don't know what the cause of a bug is, it obviously doesn't have an apparent reason to you. But it can't have no reason, and its "random" nature must be following some kind of pattern that you haven't figured out.


I don't understand what switches existing has to do with bugs in your game.
Hi! Could I ask you another thing concerning bugs? Can a plugin not work? I have this plugin that lets me zoom the camera on my map all the time. Is it possible that the plugin doesn't work for a player and that someone plays the game non zoomed?
Can a plugin not work?
there is an old saying: errare humanus est
or every human can make mistakes.

so yes, the plugin programmer could have made a mistake
or you could have made a mistake when using the plugin, giving the wrong commands to it.
or the plugin could simply be incompatible to a second plugin you're using, never being able to work in that combination.

that is what makes developing a game such a work and bughunting so frustrating: you can expect a lot to go wrong, but never know before what will go wrong.
there is an old saying: errare humanus est
or every human can make mistakes.

so yes, the plugin programmer could have made a mistake
or you could have made a mistake when using the plugin, giving the wrong commands to it.
or the plugin could simply be incompatible to a second plugin you're using, never being able to work in that combination.

that is what makes developing a game such a work and bughunting so frustrating: you can expect a lot to go wrong, but never know before what will go wrong.
Thank you! But if I understood what you said yesterday, if I test it and don't have problems with it, it won't randomly decide to not start when a player opens the game. Right? 🙂
, if I test it and don't have problems with it, it won't randomly decide to not start when a player opens the game. Right? 🙂
normally no, but it is almost iompossible for a player to play the game in the same way you play, and in rare cases that difference can produce errors.
but then you usually can reproduce the error when the player tells you what he did to cause the error.

There is a reason why I explained in my bughunting tutorial that the developer is the worst playtester, you need other people to find the bugs that you cannot find for yourself.
normally no, but it is almost iompossible for a player to play the game in the same way you play, and in rare cases that difference can produce errors.
but then you usually can reproduce the error when the player tells you what he did to cause the error.

There is a reason why I explained in my bughunting tutorial that the developer is the worst playtester, you need other people to find the bugs that you cannot find for yourself.
Thank you so so much for all the help!

there is an old saying: errare humanus est
or every human can make mistakes.

so yes, the plugin programmer could have made a mistake
or you could have made a mistake when using the plugin, giving the wrong commands to it.
or the plugin could simply be incompatible to a second plugin you're using, never being able to work in that combination.

that is what makes developing a game such a work and bughunting so frustrating: you can expect a lot to go wrong, but never know before what will go wrong.

Understood, thank you! 🙂

Original thread: https://forums.rpgmakerweb.com/threads/question-about-the-nature-of-bugs.168887/