Connect to a online database with the HTML one.

MightyEgg

Veteran
Veteran
Joined
Mar 20, 2020
Messages
60
Reaction score
10
First Language
Portuguese
Primarily Uses
RMMV
Hello, I want to know how I can record some values like lvl, exp, hp to a online database to not let people cheating.
Im not a expert at coding and I dont know how to do it with rpg maker, I know I cant do directly because javascript is a client-side code and bla bla, but I was reading at internet and it could be made with php and ajax, I saw some tutorials but I dont know how to do it with the rpg maker.
Im building a webbrowser game and I wanted to put some values of my game into a online database.
If I cant do that Im wasting my time building this game.
Thank you
 

caethyril

^_^
Veteran
Joined
Feb 21, 2018
Messages
2,118
Reaction score
1,526
First Language
EN
Primarily Uses
RMMZ
I believe you'd need a server set up to recieve write requests. The server would then write the data of each such request to the database, server-side. I don't know how you'd go about setting up a server like that, though. :kaoslp:

Edit: this page might be relevant~
 

MightyEgg

Veteran
Veteran
Joined
Mar 20, 2020
Messages
60
Reaction score
10
First Language
Portuguese
Primarily Uses
RMMV
Lets say the game its at my website connected to a database and when someone who´s playing the game gain 50 gold then the script reads it and that +50 gold its add to a table of my database.
I need a server of the game to do that?
cant be done with some php or something?
Or I miss spell what you said.[/QUOTE]

Im thinking something out of the box, Every 30 sec or something a save its made and that file goes to the website files.
And after the files a script read it and write the values I want in the database, but if that file is modified illegaly it gets corrupted or its deleted.
That can be made?
 
Last edited:
Joined
Dec 16, 2017
Messages
192
Reaction score
648
First Language
English
Primarily Uses
RMMV
yes, you can do that. there's a plugin called Cloud Manager. it will allow you to do this. you'll need to learn a little programming, but overall it's very simple. it took me about one full day to figure out how it works.

search for cloudManager.js -- the zip includes everything you need to set up a database as well as the plugin for connecting your game to the database.
 

MightyEgg

Veteran
Veteran
Joined
Mar 20, 2020
Messages
60
Reaction score
10
First Language
Portuguese
Primarily Uses
RMMV
yes, you can do that. there's a plugin called Cloud Manager. it will allow you to do this. you'll need to learn a little programming, but overall it's very simple. it took me about one full day to figure out how it works.

search for cloudManager.js -- the zip includes everything you need to set up a database as well as the plugin for connecting your game to the database.
Thank you its a nice plugin. I will look around and see what I can do with it.
Thanks for your time.
 

Aesica

undefined
Veteran
Joined
May 12, 2018
Messages
1,531
Reaction score
1,424
First Language
English
Primarily Uses
RMMV
If I might offer a bit of design feedback about this idea: Consider not doing it unless your game has leaderboards, multiplayer, or is otherwise meant for players to compete against each other somehow. I say this for two major reasons:
  1. What if something goes wrong once your game goes live? You could end up deleting legit saves and that will infuriate players to the point of refunding and leaving salty reviews.
  2. Some of my fondest memories of vintage games involves what would be considered cheating--sticking certain boss/special enemy skills on party members in FFT, for example. By "banning cheating" in a noncompetitive, single player game, you're effectively limiting how players can enjoy it.
So yeah, consider not going that route unless it's absolutely necessary.
 

MightyEgg

Veteran
Veteran
Joined
Mar 20, 2020
Messages
60
Reaction score
10
First Language
Portuguese
Primarily Uses
RMMV
@Aesica I know but its very important, Im trying to do something online and I dont want to let cheaters. I want to introduce something new like a crypto automate game, where players gona farming, mining for the time they choose. I even want to create a slot machine on it.
But first I will create the game and then test it out :).
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Don't forget, aspiring writers: Personality isn't what your characters do, it is WHY they do it.
Hello! I would like to know if there are any pluggings or any way to customize how battles look?
I was thinking that when you start the battle for it to appear the eyes of your characters and opponents sorta like Ace Attorney.
Sadly I don't know how that would be possible so I would be needing help! If you can help me in any way I would really apreciate it!
The biggest debate we need to complete on which is better, Waffles or Pancakes?
rux
How is it going? :D
Day 9 of giveaways! 8 prizes today :D

Forum statistics

Threads
106,047
Messages
1,018,539
Members
137,834
Latest member
EverNoir
Top