Skip to content

ZeroIPDev/vc_server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VirtuaCreature, by Zero Imagination Productions

Client | Server

Warning

This is an old, mostly unmaintained codebase.

This project contains a lot of old code, and it being our first major project, there are mistakes and bad practices. We will not be refactoring, improving styling or readability, etc, so treat this repo primarily as an archive.

Since the majority of functions are tied to SmartFoxServer 2X, reading the plethora of help docs is a great place to look if you're unsure on how a particular aspect of this server works.

Prerequisites

  • JDK 11 installation, such as Adoptium
  • SmartFoxServer 2X working installation
  • MySQL server, such as MariaDB, and software to connect to said server and execute queries such as HeidiSQL/MySQL Workbench etc
  • Connector/J; download and extract the Platform Independent ZIP, and drop the jar file into the /SFS2X/extensions/__lib__/ folder on your SmartFox installation

Installation

Ensure prerequisites are already installed and functioning before beginning.

  1. Download and extract the latest release
  2. Copy /extensions/ and /zones/ into the /SFS2X/ folder on your SmartFox installation
  3. Open both VC-Accounts.zone.xml and VirtuaCreature.zone.xml inside /SFS2X/zones/; navigate to the databaseManager node near the bottom, and replace the username/password values with the real login for your MySQL server
  4. Connect to your MySQL server via your chosen client and create a new database called sfs2x
  5. Load /sql/db_setup.sql and execute the query on said database, which should create 5 new vc_ tables

At this point you should be able to launch SmartFox successfully.

Connecting in-game

  1. Copy sfs-config.xml from the /config/ folder to the root of your VirtuaCreature installation
  2. Open and change the ip value to the IP address of the server, if it's not running on the local machine

You should now be able to launch VirtuaCreature and connect to the server. If you wish to allow others to play on your server, simply send them this file with the IP correctly set and they will be able to connect.

NOTE: If you receive a "user not found" error before you've registered, you will need to clear your previous login cache. Simply navigate to %appdata%\zip.vc\ and delete the ELS folder, then restart the game and try again. You will likely have to do this when switching between servers.