资源算法psmmo

psmmo

2020-01-16 | |  79 |   0 |   0

psmmo

A pokemon mmo using pokemonshowdown's server.

How to setup PSMMO

PART 1 - SETUP POKEMON SHOWDOWN

  1. Download & Install Pokemon Showdown

  2. In the root directory add bot.js & mmo.js from this repo's "serverpsjs" folder

  3. Add these lines to the very end of the "chat-commands.js" file

    • const Bot = require('./bot').setup(exports.commands);

    • const MMO = require('./mmo').setup(exports.commands);

  4. Replace sockets.js from the root with the "serverpsjs" folders's sockets.js

Part 2 - SETUP PSMMO

  1. Download PSMMO

  2. Add to a webserver OR add to /static/ folder in Pokemon-Showdown

    • if using /static/ set the port = 80 in vars.js

  3. Change pokemon showdown server @ vars.js and change vars.server to your ip address && vars.port, if needed

Info

Changes to Pokemon Showdown:

  • bot.js - comes with bot that battles

  • mmo.js - mmo commands (encounter pokemon, moving in maps, chat, etc.)

  • sockets.js - snippet of code for bot.js to work (hackish)

Bot

  • Change its name on client @ vars.js - vars.wildPokemonBot

  • Change its name on server @ bot.js - bot.name

Don't forget to run the command below on your server, otherwise nothing will work. /makechatroom psmmo


上一篇:tf_cortexnet

下一篇:DaggerMock

用户评价
全部评价

热门资源

  • allennlp-server

    allennlp-server Serve allennlp services as sep...

  • ubuntu-allennlp

    ubuntu-allennlp AllenAI AllenNLP image based o...

  • allennlp_extras

    allennlp_extras Some utilities build on top of...

  • allennlp-dureader

    An Apache 2.0 NLP research library, built on Py...

  • seetafaceJNI

    项目介绍 基于中科院seetaface2进行封装的JAVA...