Simply wondering if it would be possible to create an event that would cause another application to launch (one presumably installed in the same folder as the game.)
Can MV launch other applications through a script in an event?
RPG Maker MV SupportTheoretically yes, but with a lot of practical problems.
for starters, MV/MZ games are HTML5-based, so all typical antivirus-programs will see a malware website trying to launch a virus on the local network.
So there are a lot of protections intended to stop what you're planning and that you would have to circumvent - possibly without the player being aware of that.
So while it is possible (there are websites infecting local PCs after all), it would require a lot of knowledge and raise a lot of warning bells.
for starters, MV/MZ games are HTML5-based, so all typical antivirus-programs will see a malware website trying to launch a virus on the local network.
So there are a lot of protections intended to stop what you're planning and that you would have to circumvent - possibly without the player being aware of that.
So while it is possible (there are websites infecting local PCs after all), it would require a lot of knowledge and raise a lot of warning bells.
@Mac15001900
antivirus heuristic searches are by default aggressive, because better a false positive than an ignored true positive. and several AVs have been flagging MV/MZ games again and again (even without unknown executables in the folder) until they were whitelisted.
your configuration might have already everything whitelisted (which can cause problems in itself), but for an unknown player downloading an RM game the first time?
it will cause false alerts...
antivirus heuristic searches are by default aggressive, because better a false positive than an ignored true positive. and several AVs have been flagging MV/MZ games again and again (even without unknown executables in the folder) until they were whitelisted.
your configuration might have already everything whitelisted (which can cause problems in itself), but for an unknown player downloading an RM game the first time?
it will cause false alerts...
I general, it's true that AVs are rather suspicious of unsigned executables downloaded from the internet, and especially so if they contain encrypted code. But launching child processes is a perfectly normal thing for applications to do, especially if both executables originate from the same folder. And it will certainly not be considered a "website trying to launch a virus on the local network" (there aren't even any networks involved here) 😉
Of course I might be wrong here, AVs work in mysterious ways and can get triggered by the most random of things, but this one just doesn't seem like it would be any more likely that any others. Though the only way to know for sure would be to test it.
Of course I might be wrong here, AVs work in mysterious ways and can get triggered by the most random of things, but this one just doesn't seem like it would be any more likely that any others. Though the only way to know for sure would be to test it.
That sentence is a bit confusing. Wouldn't false positives be the very thing that might cause a user to ignore a true positive?
Unless you somehow get it signed, the game itself is just as unknown as any other executable next to it.
I think Andar's point is that, from a program functionality point of view, presuming it's impossible for the anti-virus to be 100% accurate it's better to err on the side of caution than be liable for something happening to a user's computer that's supposed to be protected.
Now how far it errs in that direction and how it impacts user behavior is a valid point - although, theoretically, people are looking at and checking everything their anti-virus says is a threat.
A computer knows only numbers, nothing more - everything consists of numbers and a lot of them.
An AV heuristic search now looks for number sequences that are identical to command codes for example to store numbers on the harddrive in a suspicious way.
However there is always a chance that the same number sequence is for example a specific sequence of pixel colors in a picture and never executed.
So the antivirus only knows positives - number sequence found. It cannot judge between true (a real virus using the sequence) or false (a number of pixels in a similar sequence in a picture or a known HTML-based program)
Because of that the AV always quarantines the found (or aborts the program using the sequence) and then reports it, allowing the user to decide if that positive is false or true.
Which is why whitelisting (telling the AV that everything in that program is allowed) is both the solution and a problem - after all it might be that the HTML5-game has been infected by malware in addition to its allowed use of local saving..
And yes, too many false warnings can cause user errors in judgement, but that is still better than ignoring a known bad number sequence that points to a virus-infection.
An AV heuristic search now looks for number sequences that are identical to command codes for example to store numbers on the harddrive in a suspicious way.
However there is always a chance that the same number sequence is for example a specific sequence of pixel colors in a picture and never executed.
So the antivirus only knows positives - number sequence found. It cannot judge between true (a real virus using the sequence) or false (a number of pixels in a similar sequence in a picture or a known HTML-based program)
Because of that the AV always quarantines the found (or aborts the program using the sequence) and then reports it, allowing the user to decide if that positive is false or true.
Which is why whitelisting (telling the AV that everything in that program is allowed) is both the solution and a problem - after all it might be that the HTML5-game has been infected by malware in addition to its allowed use of local saving..
And yes, too many false warnings can cause user errors in judgement, but that is still better than ignoring a known bad number sequence that points to a virus-infection.
I'm not sure what does any of this have to do with whether or not spawning a child process is likely to trigger an AV false positive.
Or is this post in response to my nitpick about "ignored true positives"?
I assumed that "ignored true positive" meant a true positive that was ignored by the user. I guess you actually meant a virus that's not reported, as per Turan's interpretation? In that case, those would be called "false negatives", since they were not reported and therefore not positives.
@Mac15001900
neither - it was partially to your comment about antivirus working misteriously and randomly targeting (they don't) and partially to show the OP that any executable (no matter if child process or not) can trigger an AV warning of suspicious code, and if the player cannot identify the cause (or especially if he doesn't know the strange executable that is not supposed to be in a regular RM game) then they will more often than not be blocked.
neither - it was partially to your comment about antivirus working misteriously and randomly targeting (they don't) and partially to show the OP that any executable (no matter if child process or not) can trigger an AV warning of suspicious code, and if the player cannot identify the cause (or especially if he doesn't know the strange executable that is not supposed to be in a regular RM game) then they will more often than not be blocked.
To clarify, I meant that they're unpredictable from the point of view of an app developer (e.g. like in your example with flagging a picture - there's nothing you can really do to predict that), not that they're literally random.
@awakecore I probably should have asked this question sooner: what would you need the other executable for? There's a good chance that there exists a simpler way to do it, e.g. by using multiple windows in your game.
Thanks for the feedback thus far everyone! To answer your question, the separate application would be for a pivotal moment at the end of the game. Using something like Unity or Gamemaker to create an entirely different kind of gameplay style that would be reserved only for the climax.
I see, that would definitely be a valid use case for this. Though I'd recommend also considering JavaScript-based engines, such as Phaser, since you could just run them within RPG Maker, while still being completely different. While I've never ended up using it, I did manage to get a Phaser minigame running like this, and it's not too complicated.
Original thread: https://forums.rpgmakerweb.com/threads/can-mv-launch-other-applications-through-a-script-in-an-event.167667/