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

Creating a pkmnFoundations server error #30

Closed gokudp closed 7 years ago

gokudp commented 8 years ago

error on visual studio C:\Users\xsamp\Desktop\pkmn-classic-framework-master\GamestatsBase\GamestatsBase\GamestatsBase.csproj : error : The project file could not be loaded. Could not find a part of the path 'C:\Users\xsamp\Desktop\pkmn-classic-framework-master\GamestatsBase\GamestatsBase\GamestatsBase.csproj'. C:\Users\xsamp\Desktop\pkmn-classic-framework-master\GamestatsBase\GamestatsBase\GamestatsBase.csproj

ghost commented 8 years ago

git clone --depth 1 https://github.com/mm201/pkmn-classic-framework

Or download GameStatsBase and put it in the GamestatsBase folder

gokudp commented 8 years ago

got it, thanks i'm going to last instruction: GlobalTerminalService>bin>debug>GlobalTerminalService.exe (Battle Video Server) and set gamestats2.gs.nintendowifi.net and pkgdsprod.nintendo.co.jp to your IP (external if a public server, Internal if LAN only).

1

got this x.509 certificate not found, and i dont know what is. and how i set gamestats2.gs.nintendowifi.net and pkgdsprod.nintendo.co.jp to my IP?

ghost commented 8 years ago

Ignore the X.509 cert error, it doesnt affect your usage of the game, and you need to set it in your DNS server. I also recommend against using Ubuntu, as mono has issues with the server (not the server you're using in the screenshot, but the regular Global Terminal server)

gokudp commented 8 years ago

but there are no instrunctions to setup dwc_network_server_emulator on windows, and we need it right?

ghost commented 8 years ago

Yes, but in practice @mm201 runs his server seperately and AltWFC merely forwards to it; you can setup AltWFC with Windows, just copy the v-hosts into your XAMPP apache directory, enable them in the conf file and restart, and then just get the required Python packages.

gokudp commented 8 years ago

thanks i got sucess installing python packages, im stuck in copy v-hosts into apache. are you talking about these files:? gamestats.gs.nintendowifi.net.conf gamestats2.gs.nintendowifi.net.conf nas-naswii-dls1-conntest.nintendowifi.net.conf sake.gs.nintendowifi.net.conf

where i put it? C:\xampp\apache\conf or C:\xampp\apache\conf\extra or C:\xampp\apache\conf\original\extra

and how to enable them in conf file?

and in dwc_network_server_emulator

how i do this on windows, what file i have to edit and add servername localhost

After that, to prevent a problem with Apache complaining about not being able to find the server's fully qualified domain name, we need to add a line into Apache's config file. Open it by typing:

sudo nano /etc/apache2/apache2.conf Add the following line at the bottom of the file. Warning, this is case-sensitive!

ServerName localhost Exit by pressing CTRL+X, then confirm your edits with Y and Enter.

ghost commented 8 years ago

http://itridersblog.com/blog/setup-virtual-host-xampp/ for VHosts, and the FQDN thing can be ignored :P

gokudp commented 8 years ago

i did this with my vhost file:

<VirtualHost *:80> DocumentRoot "C:\xampp\htdocs" ServerName localhost </VirtualHost>

<VirtualHost *:80>
        ServerAdmin webmaster@localhost
        ServerName gamestats.gs.nintendowifi.net
        ServerAlias "gamestats.gs.nintendowifi.net, gamestats.gs.nintendowifi.net"
        ProxyPreserveHost On
        ProxyPass / http://127.0.0.1:9002/
        ProxyPassReverse / http://127.0.0.1:9002/
</VirtualHost>
<VirtualHost *:80>
        ServerAdmin webmaster@localhost
        ServerName gamestats2.gs.nintendowifi.net
        ServerAlias "gamestats2.gs.nintendowifi.net, gamestats2.gs.nintendowifi.net"
        ProxyPreserveHost On
        ProxyPass / http://127.0.0.1:9002/
        ProxyPassReverse / http://127.0.0.1:9002/
</VirtualHost>
<VirtualHost *:80>
        ServerAdmin webmaster@localhost
        ServerName naswii.nintendowifi.net
        ServerAlias "naswii.nintendowifi.net, naswii.nintendowifi.net"
        ServerAlias "nas.nintendowifi.net"
        ServerAlias "nas.nintendowifi.net, nas.nintendowifi.net"
        ServerAlias "dls1.nintendowifi.net"
        ServerAlias "dls1.nintendowifi.net, dls1.nintendowifi.net"
        ServerAlias "conntest.nintendowifi.net"
        ServerAlias "conntest.nintendowifi.net, conntest.nintendowifi.net"
        ProxyPreserveHost On
        ProxyPass / http://127.0.0.1:9000/
        ProxyPassReverse / http://127.0.0.1:9000/
</VirtualHost>
<VirtualHost *:80>
        ServerAdmin webmaster@localhost
        ServerName sake.gs.nintendowifi.net
        ServerAlias sake.gs.nintendowifi.net *.sake.gs.nintendowifi.net
        ServerAlias secure.sake.gs.nintendowifi.net
        ServerAlias secure.sake.gs.nintendowifi.net *.secure.sake.gs.nintendowifi.net
        ProxyPass / http://127.0.0.1:8000/
        CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>

and got this error trying start apache 09:15:16 [Apache] Error: Apache shutdown unexpectedly. 09:15:16 [Apache] This may be due to a blocked port, missing dependencies, 09:15:16 [Apache] improper privileges, a crash, or a shutdown by another method. 09:15:16 [Apache] Press the Logs button to view error logs and check 09:15:16 [Apache] the Windows Event Viewer for more clues 09:15:16 [Apache] If you need more help, copy and post this 09:15:16 [Apache] entire log window on the forums

gokudp commented 8 years ago

well i copied all .conf files from dwc_network_server_emulator-master\tools\apache-hosts to C:\xampp\apache\conf\extra

do you know how to enable them like in linux was sudo a2ensite

how i enable them in windows?

mm201 commented 8 years ago

I can probably fix mod_mono issues pretty easily if there's interest.

Edit: And using Apache on Windows is probably the worst of both worlds, since the problem seems to be Apache-side. (as opposed to mono) (haven't tested)

ghost commented 8 years ago

IDK; Why users would need to build their own server makes no sense; if you want a pokemon trading facility you want it to be centralised :/

gokudp commented 8 years ago

for private trades, because wi-fi club or any other way does not work, so need to use GTS and i dont want to get hacked pokemons from others.

ghost commented 8 years ago

Private trades would work in WiFi club, and you can just check the Pokémon if you have the right packet dumping equipment

mm201 commented 7 years ago

Wi-fi club does work, just not in emulators. If you need to trade over GTS, one effective strategy is to put up, e.g., a Magikarp but ask for Dialga. Then get the other guy to accept that trade. The other guy also puts up a Magikarp but asks for Palkia or whomever. Even if someone else fulfills your trade, free legendaries!

And with emulators, swapping save files is always an option.