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.
- 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
Ensure prerequisites are already installed and functioning before beginning.
- Download and extract the latest release
- Copy
/extensions/and/zones/into the/SFS2X/folder on your SmartFox installation - Open both
VC-Accounts.zone.xmlandVirtuaCreature.zone.xmlinside/SFS2X/zones/; navigate to thedatabaseManagernode near the bottom, and replace the username/password values with the real login for your MySQL server - Connect to your MySQL server via your chosen client and create a new database called
sfs2x - Load
/sql/db_setup.sqland execute the query on said database, which should create 5 newvc_tables
At this point you should be able to launch SmartFox successfully.
- Copy
sfs-config.xmlfrom the/config/folder to the root of your VirtuaCreature installation - Open and change the
ipvalue 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.