Skip to content

banksemi/Gachon-Village

Repository files navigation

Gachon-Village

Welcome our virtual world which contains gachon life!

YouTube

Video

How to build

1. Unzip to the appropriate path.

image

Mysql Setup

2. Install MariaDB in a different path. (MYSQL is possible but not verified)

3. Create Mysql Database (gachon_village).

Please set the encoding setting to utf8 -- UTF-8 Unicode.

If it is MYSQL 5.6 or MariaDB 10.1 or higher version,
Modify my.cnf because MYSQL doesn't default value about Not Null attribute.

[mysqld] 
sql_mode=NO_ENGINE_SUBSTITUTION

4. Run gachon_village.sql to your database!

So, The following table and view will be created. image

Server Start

5. Create the file to /Gachon-Server/MainServer/private_data(git).cs

6. Please Enter your database setting. and Save it!

using SQL_Library;
namespace MainServer
{
    class private_data
    {
        public static MysqlOption mysqlOption = new MysqlOption("mysql_host", "mysql_database", "id", "password");
    }
}

7. Run Or Build your server!!

If the build succeeds, your network library will be connected to Unity because of my build event setting.

  • Check server screen image

  • Check created file in /Gachon-Village/Unity Client/Gachon Vilage/Assets/Plugins/NetworkLibrary/ image

Unity Client

8. Please install the version('2018.2.12' to '2018.2.18.') of Unity engine

9. Open the project /Gachon-Village/Unity Client/Gachon Vilage/ by using Unity.

10. Select Login Scene. (double click Assets/Scenes/Login.scene file)

However, if NGUI is not set, nothing will be visible.

11. Import your NGUI file.

Run the NGUI file with the Unity running! (Version 3.11)

image

So, This is result.

image

Since the resolution of our game is 1600*900, It would be better to fix the resolution.

image

12. Enter your server IP

Open the file to ./Unity Client/Gachon Vilage/Assets/Script/Network/NetworkMain.cs

server = new Client("127.0.0.1", 1119);

1119 is Default Port for Main Socket.

8282 is port for File Transfer.