pjs20806

Warper
Member
Joined
Jul 22, 2017
Messages
3
Reaction score
3
First Language
Kr
Primarily Uses
RMMV
The redis: https://redis.io/

Before starting: I'm South Korean, it's mean... i don't use English well. and please understand when i use English silly

Original article: http://avangs.info/study_rpg_mv/1682432

First of all, i just test at "window 10", "RMMV 1.5.2", "redis 2.8.0", "redis-server 3.0"

RMMV 'Game.exe' is run by Node.js on javascript. It(Game.exe) is Node-webkit, exactly. the node-webkit is an application program version of node.js.
The 'User area' is mean game editing user interface including local project directory(ex: C:\Users\[user name]\Documents\Games\[project name])

If when installing redis on node.js through the NPM(Nodejs package manager) and Visual Studio(tested over 2015), you can see the two changes. First, on the main directory. There are a new directory would be created. And that name is "node_modules". Second, the package.json file would be edited.

The first change is easily conceivable. It is a node.js version of Redis client file. But the second change is not. that different of two phase is "Dependences" object.
When a Node.js is started, it reference "package.json".

So, we can use NPM? right? Unfortunately, is not. Node-webkit of RMMV was packaged. and is not on 'User area'.
When you run debug game on RMMV, It will be run node-webkit. there are located on (...\steamApps\common\RPG Maker MV\nwjs-win). when you use Window OS, directory nwjs(node-webkit javascript)-win is correct.
And the node.js reference package.json. reference "main" : "inedx.html" object, and that turn to 'User area'.

You just install it manually, as NPM did.
First, on nwjs-win directory. You create the directory " node_modules " and then you put in redis client folder into it.
The node_modules folder must be in the same directory as the package.json.

78352ce0437c076fa63466ee98b895bd.PNG


Second, modify package.json to add the "dependencies".

9b7beeb55feb5888cdd17f01416ca808.PNG


Finally, the redis client installation is complete. too easy, right?


download:

redis-node.js git:
https://github.com/NodeRedis/node_redis
 

Latest Threads

Latest Posts

Latest Profile Posts

After the initial success with one event, I set up four different events on the same map to detect who is in which slot in my current party, and fortunately it managed to work as intended, with the events changing image to match the party members even as I swapped their positions around in formation. This will be a great tool for immersive scene design.
Finally finished the first hand-drawn map! It took me a week, but I'm so proud!
Actual line of code I just had to write for a plugin:

return Object.keys(this._shopStock).map(key => key.split(",")).map(element => element.map(value => Number(value))).filter(key => key[0] === mapId && key[1] === eventId);

Forum statistics

Threads
118,447
Messages
1,116,062
Members
155,421
Latest member
Vance11k
Top