mm201 / pkmn-classic-framework

Pokémon application logic for Generation IV and V, including servers
http://pkmnclassic.net/
Other
219 stars 43 forks source link

How to install? #12

Closed ghost closed 9 years ago

ghost commented 9 years ago

How do you install onto a clean AltWFC server?

mm201 commented 9 years ago

It doesn't communicate directly with AltWFC. (This is true of all the http gamestats servers.)

To run the GTS, you need a mysql database and an ASP.Net capable web server. I use IIS but I don't see any reason why nginx fastCGI and Apache mod-mono wouldn't work. You'll need to change the database IP address, username, and password in each of the *.config files to match your database. Run the included database.sql then run the VeekunImport project to build the Pokedex. After that it should just work.

The battle video server should run as a plain old process if the DEBUG flag is set.

ghost commented 9 years ago

Thanks, I've done some of this, but I had a few issues:

Can you explain step-by-step how to set everything up (from config to running the programs)

mm201 commented 9 years ago

VeekunImport: You need pokedex.sqlite from http://veekun.com/dex/downloads Don't bother with the bvCrawler projects. They crawled the now defunct official battle video server and saved videos. GTServer isn't GTS, it's "Global Terminal" which is battle videos and things like that. It seems to be working perfectly?

Try running the web projects in VS to get more meaningful errors. I'm willing to bet it's the database not being initialized fully.

ghost commented 9 years ago

Thanks! This'll help a lot! I'll look into the web projects, and post any errors here.

VeekunImport: You need pokedex.sqlite from http://veekun.com/dex/downloads Don't bother with the bvCrawler projects. They crawled the now defunct official battle video server and saved videos. GTServer isn't GTS, it's "Global Terminal" which is battle videos and things like that. It seems to be working perfectly?

Try running the web projects in VS to get more meaningful errors. I'm willing to bet it's the database not being initialized fully.

— Reply to this email directly or view it on GitHub https://github.com/mm201/pkmnFoundations/issues/12#issuecomment-112104396.

ghost commented 9 years ago

OK. I don't understand how to run projects in VS (when web projects), and I got the VeekunImport working. I've tried using GTS (HTTP500 to DS, My IIS says 'XML Parsing Error: no element found;Location: http://IP/Global.aspx;Line Number 1, Column 1: ' - ; = a new line (I added that in) ' when trying to access the main page via Firefox, or even the info.asp. Also, considering there's only some files and no folders how does that work?

My BattleVideo server wasnt working either, 106025.

Packet Capture of all this > https://openwrt.cloudshark.org/captures/3271d7f97ddb <

mm201 commented 9 years ago

The battle video server isn't working because you don't have a DNS entry for pkgdsprod.nintendo.co.jp. The GTS is a web app and needs to be deployed to a folder from VS. (Build / Publish Web Site)

ghost commented 9 years ago

I was just going to say, I need to do the DNS. And thanks!

ghost commented 9 years ago

Can I run the GTS server and the pkmnclassic website in the same place? If no, I'll try having the website on :81

ghost commented 9 years ago

Closing, I've done everything. Thanks a lot @mm201 !

ghost commented 9 years ago

Problem @mm201 I get 404 on my gts when trying to connect to it via Platinum. https://openwrt.cloudshark.org/captures/f57bdab71cf2 For some reason I used to never get it.

mm201 commented 9 years ago

Looks like the host gamestats2.gs.nintendowifi.net isn't routing to the correct application.

ghost commented 9 years ago

OK. Also, why does it try to redirect to 12400? Whenever I recompile and put into IIS it enables a redirect. And how isnt it going to the correct application, it points to my server holding WebServer

ghost commented 9 years ago

Hey @mm201 , I've redone the install, and I've actually done this on mod_mono. I've also setup the tetrisds store.asp, great job on that btw, and I have only one issue, which is my mod_mono isn't taking requests for /pokemondpds/worldexchange/info.asp, only /pokemondpds.ashx/worldexchange/info. However, I have messaged a person who IK uses mod_mono, so let's hope it works :stuck_out_tongue:

DracoMilesX commented 8 years ago

@PokeAcer549 Just wondering are you able to re-write the wiki on installing the web app and battle server for Linux with mod_mono? Or update the Windows one? Since you state to publish the GTS folder to my web root but then the page remains blank.

celorodovalho commented 7 years ago

@DracoMilesX @PokeAcer549 +1 for the last reply above

ghost commented 7 years ago

Sure, but I currently have no time :P

ductator commented 7 years ago

Would also appreciate more detailed instructions. My attempts fail at reaching gts, as Internal HTTP error get's returned every time.

ghost commented 7 years ago

Ensure you have ASP.NET correctly configured.