MV Allowing player to use their own image as Actor Face [MV]

Hello! Made an account here to search the forum more in-depth but thought I would also make a quick post - what I am trying to do seems completely possible but I can't find anyone else who has attempted it, and I'm no expert when it comes to js 🙁

Id like to allow the player to upload an avatar to replace an actors face graphic. (not necessarily to the internet, I just don't know what other word to use lol)

There are snippets of code on the forum that allow downloading of files to the internet, exporting (and more importantly, importing) files to projects, so it seems possible? This thread below probably tackles the kind of thing that would need to happen, but I don't really know where else to start.


anyway, if anyone else has any insight on the matter, I would really appreciate it. Thanks for taking your time to read this ^^
you could do this for a local game without a plugin, as long as it is not encrypted and with a bit of work.
Just tell the player where the default face picture is and have them use an image program to replace that.

However it is basically impossible to do for internet deployed games. You would have to store the server access passwort inside the game, and that could easily result in a hacker extracting that and then installing malware on your site.
and even if you block that there is the risk that some people will upload thousands of faces, multiplied by thousands of players - until your webserver breaks down due to storage limits.
Not to mention that you'll need some form of screening to prevent the upload of R- or X-rated pictures and other problems.

This might sound as a cool feature at first, but the possible consequences are anything but cool and not worth the hassle.
you could do this for a local game without a plugin, as long as it is not encrypted and with a bit of work.
Just tell the player where the default face picture is and have them use an image program to replace that.
I had thought about this. That does mean you have to forgo encryption though, which kinda sucks i guess

You would have to store the server access passwort inside the game, and that could easily result in a hacker extracting that and then installing malware on your site.
This is sort of what I was battling with. Does it have to be stored anywhere online?
a different approach at looking at it is a system that would allow the player to draw their own emblem, like mario kart DS. Would that kind of system be possible? How would you go about saving the emblem your player has drawn?

I dunno. Maybe it just isnt possible.
This is sort of what I was battling with. Does it have to be stored anywhere online?
yes and no - the server password is required for FTP and similar uploads, but there is a different way (or no website could take userdate and files)

Theoretically you could programm a server-side API for SQL access, and then link the game into that.
However that is a lot of work and will require specific knowledge over server programming.
You could use a character creator plugin that lets them use pre-existing parts to assemble their avatar.
For an internet game, I think you would have to set it up where ActorFace.png was a singular file, and it was defined as a local file. Then you just need a plugin that accepts the avatar and writes it onto that file. Then you just need a plugin that loads that file and changes the actor's graphic. That might be a considerable amount of work for an otherwise simple game.

For a local game it's much simpler. ActorFace.png is just a local file. You could get fancy and add an interface where they upload a picture. Then you just use change actor face commands. If you want to make it work for multiple savegames, then each new game will create a variable as a key, which will be appended to the name of the local file and used to retrieve it later.
For an internet game, I think you would have to set it up where ActorFace.png was a singular file, and it was defined as a local file. Then you just need a plugin that accepts the avatar and writes it onto that file. Then you just need a plugin that loads that file and changes the actor's graphic. That might be a considerable amount of work for an otherwise simple game.
honestly, I was mainly just checking to see if anyone had done it already - a lot of the time youll want a plugin, assume its comlicated, and one person is like 'yo this is easy you can just use read the url and load it in like so' or something like that lmao
For a local game it's much simpler. ActorFace.png is just a local file. You could get fancy and add an interface where they upload a picture. Then you just use change actor face commands. If you want to make it work for multiple savegames, then each new game will create a variable as a key, which will be appended to the name of the local file and used to retrieve it later.
this is really useful! i might abandon the idea of having my game run in a browser. Its just a simple dungeon crawler - i always thought that letting your player upload their own character image due to the nature of the game would be very cool...
I don't know of an existing plugin, but off the top of my head I believe it would be possible (not necessarily easy!) regardless of whether or not it's deployed for web. RMMV makes HTML games that run in a browser, and browsers have APIs for uploading file data.

Something along the lines of what is mentioned here (technical):
I don't know of an existing plugin, but off the top of my head I believe it would be possible (not necessarily easy!) regardless of whether or not it's deployed for web. RMMV makes HTML games that run in a browser, and browsers have APIs for uploading file data.

Something along the lines of what is mentioned here (technical):
this is really helpful, thanks for posting, will spend some time looking over this and see if I can come up with something.

Original thread: https://forums.rpgmakerweb.com/threads/allowing-player-to-use-their-own-image-as-actor-face-mv.178113/