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
 
Last edited:

Latest Threads

Latest Posts

Latest Profile Posts

So I finally played Persona 4 to see what it's all about. I'm like wait...what the...this is JOJO!
Map025.png

The second settlement you'll visit in my newest game. The small village of Teytal.
sketch 4 an opening cinematic in my gameeee >:]
Untitled_Artwork_16.jpg
oh god how do I add pictures on here it keeps saying i need a link <--( suddenly forgot how technology works )
avery wip.png

"i have to work in like 5 hours ... let's start the main character's face set"
--me, an adult for the past 20 years

Forum statistics

Threads
123,161
Messages
1,154,497
Members
161,517
Latest member
palberth
Top