For some reason this plugin I'm trying has php, besides js, but I'm not sure what to do with it...
MZ Does it load php?
Javascript/Plugin SupportPHP is typically used to connect to something on the backend like a database or external server. I guess this is connecting to a ChatGPT API?
How does it interact with rm, though? Or does it need a webserver? I'm confused because the js plugins also ask for an api, so I was guessing they could connect separately too... do you, or anyone, happen to know how it works, by the way? It's in Japanese and the auto-translation isn't brilliant, and so far all I got was an input screen, but I'm not sure how anything is output... is it this?
◆Plugin Command:ChatGPT_APIMZ, Send Chat Message
◆Plugin Command:ChatGPT_APIMZ, Send Chat Message
ChatGPT would be the webserver. I could probably figure it out but honestly reading technical documentation in Japanese on top of IT troubleshooting is more brainpower than I want to exert on a weekend.
Moved to: Plugin Support
Anyone...?
Most of the instructions are in ChatGPT_APIMZ.js and it looks like it does require you to set up your own webserver and upload that PHP file on it after you configured it. I can't test this out because it's MZ only and I don't have MZ.
How? Which bit of the instructions say that? My reading of the autotranslations did not leave me with that impression... I thought that perhaps, at best, a webserver is needed if api server-side was needed, not that it would be in all circumstances...
Sorry, pasting the code format didn't work but it's this section here:
Which translates to...? How do you reckon it could be done at any rate, even if that was needed? Apache?
If you want my extremely dry translation of what it says literally
Cooperating with Server Side
Upload to server PHP and Python, etc files install/setup
Such as API Key, to ChatGPT Request Header, you can make secret
PHP sample here:
github.com
After setting on PHP file the API Key, upload to server
Plugin parameter ChatGPT_URL - Please put in the PHP file's URL
Plugin parameter ChatGPT_API key is not necessary. Please delete.
Cooperating with Server Side
Upload to server PHP and Python, etc files install/setup
Such as API Key, to ChatGPT Request Header, you can make secret
PHP sample here:
kotonoha_tkoolMZ_Plugins/plugins/php/request.php at main · kotonoha0109/kotonoha_tkoolMZ_Plugins
制作したRPGツクールMZプラグイン. Contribute to kotonoha0109/kotonoha_tkoolMZ_Plugins development by creating an account on GitHub.
After setting on PHP file the API Key, upload to server
Plugin parameter ChatGPT_URL - Please put in the PHP file's URL
Plugin parameter ChatGPT_API key is not necessary. Please delete.
Doesn't that imply it's only for server-side implementation? So, if one is fine with the api being visible etc (or still server-side afaik by having an html build) it can still be done?
I can't try it, I don't have MZ, unless you want to gift me a copy for the purpose of helping you figure this out. Why don't you show what you have implemented so far and where you are stuck?
The best way to know for sure is to try it and find out.
The best way to know for sure is to try it and find out.
Original thread: https://forums.rpgmakerweb.com/threads/does-it-load-php.157699/