Common setup issues
From NetGore Wiki
| Difficulty | |
|---|---|
| Topics | Engine setup |
| Prerequisites | Setup guide |
| (view all tutorials) | |
This page explains some common issues that people run across when setting up NetGore. Please refer to the setup guide first.
InstallationValidator fails to import database dump
In rare cases, the InstallationValidator may fail to import the database dump for you. If this happens, the easiest alternative is to take the same approach the InstallationValidator does, but to do it manually. Start by opening up the command prompt (Start Menu -> Find/Open -> Enter "cmd") and enter the commands to produce the following output:
C:\> mysql --user=<USERNAME> --password=<PASSWORD> --host=localhost mysql> CREATE DATABASE demogame; mysql> USE demogame mysql> SOURCE <PATH>
Note: You are only entering the text to the right of the ">" (don't enter "C:\>" or "mysql>")
The first line will connect to you to the MySQL database. Be sure to replace <USERNAME> and <PASSWORD> with your actual username and password. The user will likely be root. The second line will create the database. The third will select the database to be used. The fourth and final like will import the database contents from the db.sql file. Be sure to replace <PATH> with the absolute path to the db.sql file that came with NetGore. If you installed to C:\NetGore\, this file will be located at C:\NetGore\db.sql.
Error compiling: Something about 'NUnit'
NUnit is the unit testing framework used by NetGore. It is only used in the NetGore.Tests project. This project is not needed to run NetGore - it simply just provides automated tests to help ensure everything in NetGore is working. If you don't feel like installing NUnit, then simply just unload the project by doing the following:
- Open the NetGore solution in Visual Studio (netgore.sln)
- Locate the project "NetGore.Tests" in the Solution Explorer in Visual Studio
- Right-click the project and click "Unload Project" - it should now be grayed out and say "Unavailable"