Skip to content
This repository was archived by the owner on Oct 30, 2019. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions SQL/luni-2015-09-14.sql
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ CREATE TABLE IF NOT EXISTS `characters` (
`faction` tinyint(1) NOT NULL DEFAULT '0',
`worldID` int(11) NOT NULL DEFAULT '0',
`lastZoneId` int(11) NOT NULL,
`mapInstance` int(11) NOT NULL,
`mapClone` int(11) NOT NULL,
`mapInstance` int(11) NOT NULL DEFAULT '0',
`mapClone` int(11) NOT NULL DEFAULT '0',
`x` double NOT NULL DEFAULT '0',
`y` double NOT NULL DEFAULT '0',
`z` double NOT NULL DEFAULT '0',
Expand Down
2 changes: 1 addition & 1 deletion Source/AccountsDB.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ unsigned long long AccountsTable::addAccount(std::string name, std::string passw
unsigned int id = AccountsTable::getAccountID(name);
if (id > 0) return 0; //Account name already exists
std::string hpw = hashPassword(password); //Hash password
Database::Query("INSERT INTO `accounts` (`id`, `name`, `password`, `email`, `ip`, `rank`, `numChars`, `frontChar`, `lastLog`, `activeSub`, `subTime`, `legoClub`, `locked`, `banned`, `loginTries`) VALUES (NULL, '" + name + "', '" + hpw + "', '', '127.0.0.1', '0', '0', '0', CURRENT_TIMESTAMP, '0', '', '', '0', '0', '0');");
Database::Query("INSERT INTO `accounts` (`id`, `name`, `password`, `email`, `ip`, `rank`, `numChars`, `frontChar`, `lastLog`, `activeSub`, `subTime`, `legoClub`, `locked`, `banned`, `loginTries`) VALUES (NULL, '" + name + "', '" + hpw + "', '', '127.0.0.1', '0', '0', '0', CURRENT_TIMESTAMP, '0', '0', '0', '0', '0', '0');");
unsigned long long accountid = mysql_insert_id(Database::getConnection());
return accountid;
}
Expand Down
6 changes: 3 additions & 3 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
## Setup Instructions
You should be familiar with the setup of LUNI before working with this repository.

1. Setup xampp with mysql and import luni.sql
1. Setup xampp with mysql and import SQL/luni-2015-09-14.sql
2. To configure the server to run correctly on your machine, you need to adjust the redirect_ip in the config.ini file.
- The redirect IP there is used to tell the client where to find the char/world server i.e. it is the IP the server sends whenever it informs the client about a necessary redirect.
- If you care about multiplayer, this IP needs to be one that is accessible for all PCs that want to connect, so for a LAN server this would be your local address (e.g. 192.168.0.9 for me)
- You could set it up to use your global IP but then you have to deal with port forwarding and the like.
- You could set it up to use your global IP but then you have to deal with port forwarding and the like. Ports 1001, 2002, 2003, and 2004 would be forwarded.
- Finally if you only want to test it locally, you can simply put in 127.0.0.1
3. Open the project in Visual Studio
- Please use the Debug mode for now to see where crashes come from
Expand Down Expand Up @@ -43,4 +43,4 @@ There are different kinds of "crashes" that can happen, so please pay attention
- The server displays an error in the log
- The server does not recieve anything/shows nothing in the log

> The LEGO® Group has not endorsed or authorized the operation of this game and is not liable for any safety issues in relation to the operation of this game. All files are under the General Public License, version 3, and are only for use on a non-commercial basis.
> The LEGO® Group has not endorsed or authorized the operation of this game and is not liable for any safety issues in relation to the operation of this game.