Set project name to "Cosmic" (#2)

* Change name to Cosmic

* Update database credentials
This commit is contained in:
Ponk
2021-03-29 22:22:06 +02:00
committed by GitHub
parent c2d80578fe
commit 4acc5675d6
31 changed files with 94 additions and 90 deletions
+12 -14
View File
@@ -1,7 +1,5 @@
<img src="https://heavenmssurveyhome.files.wordpress.com/2018/12/heavenmslogo.png" width="370" height="auto" alt="HeavenMS logo">
# HeavenMS 2
The continuation of HeavenMS, HeavenMS 2 (*name not finalized*) lead by `Ponk`, launched on March 21st 2021.
# Cosmic - MapleStory v83
Cosmic launched as a continuation of HeavenMS on March 21st 2021.
## Words from previous head developer, Ronan C. P. Lana
@@ -22,7 +20,7 @@ The main objective of this effort is to try as best as possible to recreate what
---
### Download items
Server files: https://github.com/P0nk/HeavenMS-2
Server files: https://github.com/P0nk/Cosmic
Client files & general tools: https://drive.google.com/drive/folders/1hgnb92MGL6xqEp9szEMBh0K9pSJcJ6IT?usp=sharing
@@ -158,9 +156,9 @@ Hamachi is optional, though. You don't have to install Hamachi if you want to ma
---
### Installing the SERVER
By downloading through the Github download button, you may have obtained a ZIP file with a single "HeavenMS-2-master" folder on it. EXTRACT that folder.
By downloading through the Github download button, you may have obtained a ZIP file with a single "Cosmic-master" folder on it. EXTRACT that folder.
For expediency, "HeavenMS-2-master" folder on this guide will be referred just as "HeavenMS". Rename it for convenience. Then, set "HeavenMS" the folder on a place of your preference. It is recommended to use "C:\Nexon\HeavenMS".
For expediency, "Cosmic-master" folder on this guide will be referred just as "Cosmic". Rename it for convenience. Then, set "Cosmic" the folder on a place of your preference. It is recommended to use "C:\Nexon\Cosmic".
Setting up the SQL: open MySQL Query Browser, then create a new session with the parameters below, then click OK.
@@ -170,15 +168,15 @@ Setting up the SQL: open MySQL Query Browser, then create a new session with the
Now it must be done CAREFULLY:
1. File -> Open Script... -> Browse for "C:\Nexon\HeavenMS\sql" -> db_database.sql, and execute it.
1. File -> Open Script... -> Browse for "C:\Nexon\Cosmic\sql" -> db_database.sql, and execute it.
2. File -> Open Script... -> Browse for "C:\Nexon\HeavenMS\sql" -> db_drops.sql, and execute it.
2. File -> Open Script... -> Browse for "C:\Nexon\Cosmic\sql" -> db_drops.sql, and execute it.
Now it is OPTIONAL, you don't need to run it if you don't want, as it will simply change some NPC shops to set some new goods, not present in the original MapleStory, to sell:
3. File -> Open Script... -> Browse for "C:\Nexon\HeavenMS\sql" -> db_shopupdate.sql, and execute it.
3. File -> Open Script... -> Browse for "C:\Nexon\Cosmic\sql" -> db_shopupdate.sql, and execute it.
At the end of the execution of these SQLs, you should have installed a database schema named "heavenms". REGISTER YOUR FIRST ACCOUNT to be used in-game by **creating manually** an entry on the table "accounts" at that database with a login and a password.
At the end of the execution of these SQLs, you should have installed a database schema named "cosmic". REGISTER YOUR FIRST ACCOUNT to be used in-game by **creating manually** an entry on the table "accounts" at that database with a login and a password.
Configure the IP you want to use for your MapleStory server in "configuration.ini" file, or set it as "localhost" if you want to run it only on your machine. Alternatively, you can use the IP given by Hamachi to use on a Hamachi network, or you can use a non-Hamachi method of port-forwarding. Neither will be approached here.
@@ -249,7 +247,7 @@ After creating a character, experiment typing in all-chat "@commands". This will
To change a character's GM level, make sure that character is not logged in, then:
* Open MySQL Query Browser;
* Double-click "heavenms" schema;
* Double-click "cosmic" schema;
* Double click "characters" table;
* Execute the selected query;
* Mark "Edit" flag on the MySQL Query Browser UI screen;
@@ -282,7 +280,7 @@ To make it happen:
* Paste it on the "dist" subfolder.
* Inside "dist", open the command prompt by alt+right clicking there.
* Execute "java -jar MobBookUpdate.jar". It will generate a "MonsterBook_updated.img.xml" file.
* At last, overwrite the "MonsterBook.img.xml" on "C:\Nexon\HeavenMS\wz\String.wz" with this file, renaming it back to "MonsterBook.img.xml".
* At last, overwrite the "MonsterBook.img.xml" on "C:\Nexon\Cosmic\wz\String.wz" with this file, renaming it back to "MonsterBook.img.xml".
At this point, **just the server-side** Monster Book has been updated with the current state of the database's drop data.
@@ -303,7 +301,7 @@ The default login/password also varies, so use the link http://www.routerpasswor
Now you have logged in the router system, search for anything related to portforwarding. Should the system prompt you between portforwarding and portriggering, pick the first, it is what we will be using.
Now, it is needed to enable the right ports for the Internet. For HeavenMS, it is basically needed to open ports 7575 to 7575 + (number of channels) and port 8484. Create a new custom service which enables that range of ports for the server's channel and opt to use TCP/UDP protocols. Finally, create a custom service now for using port 8484.
Now, it is needed to enable the right ports for the Internet. For Cosmic, it is basically needed to open ports 7575 to 7575 + (number of channels) and port 8484. Create a new custom service which enables that range of ports for the server's channel and opt to use TCP/UDP protocols. Finally, create a custom service now for using port 8484.
Optionally, if you want to host a webpage, portforward the port 80 (the HTTP port) as well.
+3 -3
View File
@@ -162,9 +162,9 @@ server:
USE_THREAD_TRACKER: false #[SEVERE] This deadlock auditing thing will bloat the memory as fast as the time frame one takes to lose track of a raindrop on a tempesting day. Only for debugging purposes.
#Database Configuration
DB_URL: "jdbc:mysql://localhost:3306/heavenms"
DB_USER: "root"
DB_PASS: ""
DB_URL: "jdbc:mysql://localhost:3306/cosmic"
DB_USER: "snail"
DB_PASS: "shell"
DB_CONNECTION_POOL: true #Installs a connection pool to hub DB connections. Set false to default.
#Login Configuration
+1 -1
View File
@@ -13,7 +13,7 @@ services:
image: mysql:5.6
environment:
MYSQL_ALLOW_EMPTY_PASSWORD: "yes"
MYSQL_DATABASE: "heavenms"
MYSQL_DATABASE: "cosmic"
MYSQL_USER: "root"
MYSQL_PASSWORD: ""
volumes:
+1 -1
View File
@@ -23,7 +23,7 @@ P.S.:
Yeah, these explanations are pretty simplistic, I know. If one really wants to
compare the original v83 WZ with the ones I provided, I recommend do the following:
- Open HaRepacker and, for each HeavenMS's WZ file, extract all the XMLs
- Open HaRepacker and, for each Cosmic's WZ file, extract all the XMLs
for "Private Server".
- Now, install MapleStory from "ManagerMsv83.exe" on an other folder and do the
same procediment said above.
+7 -1
View File
@@ -13,7 +13,7 @@ var name_cursor, role_cursor;
// new server names are to be appended at the start of the name stack, building up the chronology.
// make sure the server names are lexicograffically equivalent to their correspondent function.
var servers = ["HeavenMS", "MapleSolaxia", "MoopleDEV", "BubblesDEV", "MetroMS", "OdinMS", "Contributors"];
var servers = ["Cosmic", "HeavenMS", "MapleSolaxia", "MoopleDEV", "BubblesDEV", "MetroMS", "OdinMS", "Contributors"];
var servers_history = [];
function addPerson(name, role) {
@@ -33,6 +33,12 @@ function writeServerStaff_MapleNext() {
}
*/
function writeServerStaff_Cosmic() {
addPerson("Ponk", "Developer");
setHistory(2021, 2021);
}
function writeServerStaff_HeavenMS() {
addPerson("Ronan", "Developer");
addPerson("Vcoc", "Freelance Developer");
+3 -3
View File
@@ -8,9 +8,9 @@ SET time_zone = "+00:00";
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
DROP DATABASE IF EXISTS `heavenms`;
CREATE DATABASE `heavenms` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;
USE `heavenms`;
DROP DATABASE IF EXISTS `cosmic`;
CREATE DATABASE `cosmic` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;
USE `cosmic`;
CREATE TABLE IF NOT EXISTS `accounts` (
`id` int(11) NOT NULL AUTO_INCREMENT,
+1 -1
View File
@@ -1,7 +1,7 @@
#THIS SQL MUST BE USED AFTER 'db_database.sql'
#NEXT SQL 'db_shopupdate.sql' IS OPTIONAL
USE `heavenms`;
USE `cosmic`;
INSERT IGNORE INTO temp_data (`dropperid`, `itemid`, `minimum_quantity`, `maximum_quantity`, `questid`, `chance`) VALUES
#-- copy+paste inside here as many drop data as possible from the spider (drop generator) files --
+1 -1
View File
@@ -1,7 +1,7 @@
#THIS SQL IS OPTIONAL, TO BE USED AFTER 'db_drops.sql'
#THIS REQUIRES PROVIDED WZ FILES
USE `heavenms`;
USE `cosmic`;
# Scroll shop at Asia, chair shop at Kino Konoko, potion shop at T-1337
INSERT INTO `shops` (`shopid`,`npcid`) VALUES
+1 -1
View File
@@ -1,4 +1,4 @@
---- HeavenMS MySQL Database ----
---- Cosmic MySQL Database ----
These SQL files must be executed IN ORDER to set up the database:
- db_database.sql
+4 -4
View File
@@ -6710,11 +6710,11 @@ public class MapleCharacter extends AbstractMapleCharacterObject {
} else if (level == 80) {
yellowMessage("You think you are powerful enough? Try facing horntail!");
} else if (level == 85) {
yellowMessage("Did you know? The majority of people who hit level 85 in HeavenMS don't live to be 85 years old?");
yellowMessage("Did you know? The majority of people who hit level 85 in Cosmic don't live to be 85 years old?");
} else if (level == 90) {
yellowMessage("Hey do you like the amusement park? I heard Spooky World is the best theme park around. I heard they sell cute teddy-bears.");
} else if (level == 95) {
yellowMessage("100% of people who hit level 95 in HeavenMS don't live to be 95 years old.");
yellowMessage("100% of people who hit level 95 in Cosmic don't live to be 95 years old.");
} else if (level == 100) {
yellowMessage("Mid-journey so far... You just reached level 100! Now THAT's such a feat, however to manage the 200 you will need even more passion and determination than ever! Good hunting!");
} else if (level == 105) {
@@ -8853,7 +8853,7 @@ public class MapleCharacter extends AbstractMapleCharacterObject {
}
public void sendPolice(int greason, String reason, int duration) {
announce(MaplePacketCreator.sendPolice(String.format("You have been blocked by the#b %s Police for %s.#k", "HeavenMS", reason)));
announce(MaplePacketCreator.sendPolice(String.format("You have been blocked by the#b %s Police for %s.#k", "Cosmic", reason)));
this.isbanned = true;
TimerManager.getInstance().schedule(new Runnable() {
@Override
@@ -10323,7 +10323,7 @@ public class MapleCharacter extends AbstractMapleCharacterObject {
}
this.ban(reason);
announce(MaplePacketCreator.sendPolice(String.format("You have been blocked by the#b %s Police for HACK reason.#k", "HeavenMS")));
announce(MaplePacketCreator.sendPolice(String.format("You have been blocked by the#b %s Police for HACK reason.#k", "Cosmic")));
TimerManager.getInstance().schedule(new Runnable() {
@Override
public void run() {
@@ -40,6 +40,6 @@ public class TimeCommand extends Command {
public void execute(MapleClient client, String[] params) {
DateFormat dateFormat = new SimpleDateFormat("HH:mm:ss");
dateFormat.setTimeZone(TimeZone.getDefault());
client.getPlayer().yellowMessage("HeavenMS Server Time: " + dateFormat.format(new Date()));
client.getPlayer().yellowMessage("Cosmic Server Time: " + dateFormat.format(new Date()));
}
}
+2 -2
View File
@@ -864,7 +864,7 @@ public class Server {
}
public void init() {
System.out.println("HeavenMS v" + ServerConstants.VERSION + " starting up.\r\n");
System.out.println("Cosmic v" + ServerConstants.VERSION + " starting up.\r\n");
if(YamlConfig.config.server.SHUTDOWNHOOK)
Runtime.getRuntime().addShutdownHook(new Thread(shutdown(false)));
@@ -954,7 +954,7 @@ public class Server {
System.out.println("Listening on port 8484\r\n\r\n");
System.out.println("HeavenMS is now online.\r\n");
System.out.println("Cosmic is now online.\r\n");
online = true;
MapleSkillbookInformationProvider.getInstance();
@@ -9,9 +9,9 @@ import java.sql.SQLException;
* @author The Real Spookster - some modifications to this beautiful code
*/
public class DatabaseConnection {
private static String DB_URL = "jdbc:mysql://localhost:3306/heavenms";
private static String DB_USER = "root";
private static String DB_PASS = "";
private static String DB_URL = "jdbc:mysql://localhost:3306/cosmic";
private static String DB_USER = "snail";
private static String DB_PASS = "shell";
public static final int RETURN_GENERATED_KEYS = 1;
@@ -9,9 +9,9 @@ import java.sql.SQLException;
* @author The Real Spookster - some modifications to this beautiful code
*/
public class DatabaseConnection {
private static String DB_URL = "jdbc:mysql://localhost:3306/heavenms";
private static String DB_USER = "root";
private static String DB_PASS = "";
private static String DB_URL = "jdbc:mysql://localhost:3306/cosmic";
private static String DB_USER = "snail";
private static String DB_PASS = "shell";
public static final int RETURN_GENERATED_KEYS = 1;
@@ -48,10 +48,10 @@ import tools.Pair;
Estimated parse time: 2 minutes
*/
public class MapleCashDropFetcher {
static String host = "jdbc:mysql://localhost:3306/heavenms";
static String host = "jdbc:mysql://localhost:3306/cosmic";
static String driver = "com.mysql.jdbc.Driver";
static String username = "root";
static String password = "";
static String username = "snail";
static String password = "shell";
static String wzPath = "../../wz";
@@ -9,9 +9,9 @@ import java.sql.SQLException;
* @author The Real Spookster - some modifications to this beautiful code
*/
public class DatabaseConnection {
private static String DB_URL = "jdbc:mysql://localhost:3306/heavenms";
private static String DB_USER = "root";
private static String DB_PASS = "";
private static String DB_URL = "jdbc:mysql://localhost:3306/cosmic";
private static String DB_USER = "snail";
private static String DB_PASS = "shell";
public static final int RETURN_GENERATED_KEYS = 1;
@@ -45,10 +45,10 @@ import java.sql.Statement;
Estimated parse time: 2 minutes (for 100 code entries)
*/
public class MapleCodeCouponGenerator {
static String host = "jdbc:mysql://localhost:3306/heavenms";
static String host = "jdbc:mysql://localhost:3306/cosmic";
static String driver = "com.mysql.jdbc.Driver";
static String username = "root";
static String password = "";
static String username = "snail";
static String password = "shell";
static Connection con = null;
static InputStreamReader fileReader = null;
@@ -35,10 +35,10 @@ import java.sql.SQLException;
*
*/
public class MapleCouponInstaller {
static String host = "jdbc:mysql://localhost:3306/heavenms";
static String host = "jdbc:mysql://localhost:3306/cosmic";
static String driver = "com.mysql.jdbc.Driver";
static String username = "root";
static String password = "";
static String username = "snail";
static String password = "shell";
static Connection con = null;
static InputStreamReader fileReader = null;
@@ -55,10 +55,10 @@ import java.util.regex.Pattern;
*/
public class MapleGachaponItemidRetriever {
static String host = "jdbc:mysql://localhost:3306/heavenms";
static String host = "jdbc:mysql://localhost:3306/cosmic";
static String driver = "com.mysql.jdbc.Driver";
static String username = "root";
static String password = "";
static String username = "snail";
static String password = "shell";
static Connection con = null;
static InputStreamReader fileReader = null;
@@ -48,10 +48,10 @@ import java.util.ArrayList;
public class MapleIdRetriever {
private final static boolean INSTALL_SQLTABLE = true;
static String host = "jdbc:mysql://localhost:3306/heavenms";
static String host = "jdbc:mysql://localhost:3306/cosmic";
static String driver = "com.mysql.jdbc.Driver";
static String username = "root";
static String password = "";
static String username = "snail";
static String password = "shell";
static Connection con = null;
static InputStreamReader fileReader = null;
@@ -48,10 +48,10 @@ import java.util.Set;
* A file is generated listing all the inexistent ids.
*/
public class MapleNoItemIdFetcher {
static String host = "jdbc:mysql://localhost:3306/heavenms";
static String host = "jdbc:mysql://localhost:3306/cosmic";
static String driver = "com.mysql.jdbc.Driver";
static String username = "root";
static String password = "";
static String username = "snail";
static String password = "shell";
static String wzPath = "../../wz";
static String newFile = "lib/result.txt";
@@ -9,9 +9,9 @@ import java.sql.SQLException;
* @author The Real Spookster - some modifications to this beautiful code
*/
public class DatabaseConnection {
private static String DB_URL = "jdbc:mysql://localhost:3306/heavenms";
private static String DB_USER = "root";
private static String DB_PASS = "";
private static String DB_URL = "jdbc:mysql://localhost:3306/cosmic";
private static String DB_USER = "snail";
private static String DB_PASS = "shell";
public static final int RETURN_GENERATED_KEYS = 1;
@@ -9,9 +9,9 @@ import java.sql.SQLException;
* @author The Real Spookster - some modifications to this beautiful code
*/
public class DatabaseConnection {
private static String DB_URL = "jdbc:mysql://localhost:3306/heavenms";
private static String DB_USER = "root";
private static String DB_PASS = "";
private static String DB_URL = "jdbc:mysql://localhost:3306/cosmic";
private static String DB_USER = "snail";
private static String DB_PASS = "shell";
public static final int RETURN_GENERATED_KEYS = 1;
@@ -36,10 +36,10 @@ import java.io.*;
*
*/
public class MapleMobBookIndexer {
static String host = "jdbc:mysql://localhost:3306/heavenms";
static String host = "jdbc:mysql://localhost:3306/cosmic";
static String driver = "com.mysql.jdbc.Driver";
static String username = "root";
static String password = "";
static String username = "snail";
static String password = "shell";
static String fileName = "lib/MonsterBook.img.xml";
@@ -46,10 +46,10 @@ import java.io.*;
*
*/
public class MapleMobBookUpdate {
static String host = "jdbc:mysql://localhost:3306/heavenms";
static String host = "jdbc:mysql://localhost:3306/cosmic";
static String driver = "com.mysql.jdbc.Driver";
static String username = "root";
static String password = "";
static String username = "snail";
static String password = "shell";
static String fileName = "lib/MonsterBook.img.xml";
static String newFile = "lib/MonsterBook_updated.img.xml";
@@ -65,10 +65,10 @@ import tools.Pair;
public class MapleQuestItemFetcher {
static MapleItemInformationProvider ii;
static String host = "jdbc:mysql://localhost:3306/heavenms";
static String host = "jdbc:mysql://localhost:3306/cosmic";
static String driver = "com.mysql.jdbc.Driver";
static String username = "root";
static String password = "";
static String username = "snail";
static String password = "shell";
static String wzPath = "../../wz";
static String directoryName = "../..";
@@ -9,9 +9,9 @@ import java.sql.SQLException;
* @author The Real Spookster - some modifications to this beautiful code
*/
public class DatabaseConnection {
private static String DB_URL = "jdbc:mysql://localhost:3306/heavenms";
private static String DB_USER = "root";
private static String DB_PASS = "";
private static String DB_URL = "jdbc:mysql://localhost:3306/cosmic";
private static String DB_USER = "snail";
private static String DB_PASS = "shell";
public static final int RETURN_GENERATED_KEYS = 1;
@@ -44,10 +44,10 @@ import java.io.File;
*/
public class MapleReactorDropFetcher {
static String host = "jdbc:mysql://localhost:3306/heavenms";
static String host = "jdbc:mysql://localhost:3306/cosmic";
static String driver = "com.mysql.jdbc.Driver";
static String username = "root";
static String password = "";
static String username = "snail";
static String password = "shell";
static String reactorScriptPath = "../../scripts/reactor";
@@ -36,10 +36,10 @@ import java.io.*;
*/
public class MapleSkillMakerFetcher {
static String host = "jdbc:mysql://localhost:3306/heavenms";
static String host = "jdbc:mysql://localhost:3306/cosmic";
static String driver = "com.mysql.jdbc.Driver";
static String username = "root";
static String password = "";
static String username = "snail";
static String password = "shell";
static String fileName = "../../wz/Etc.wz/ItemMake.img.xml";
static String newFile = "lib/MakerData.sql";
@@ -40,10 +40,10 @@ import java.util.List;
*
*/
public class MapleSkillMakerReagentIndexer {
static String host = "jdbc:mysql://localhost:3306/heavenms";
static String host = "jdbc:mysql://localhost:3306/cosmic";
static String driver = "com.mysql.jdbc.Driver";
static String username = "root";
static String password = "";
static String username = "snail";
static String password = "shell";
static String fileName = "../../wz/Item.wz/Etc/0425.img.xml";
static String newFile = "lib/MakerReagentData.sql";
@@ -9,9 +9,9 @@ import java.sql.SQLException;
* @author The Real Spookster - some modifications to this beautiful code
*/
public class DatabaseConnection {
private static String DB_URL = "jdbc:mysql://localhost:3306/heavenms";
private static String DB_USER = "root";
private static String DB_PASS = "";
private static String DB_URL = "jdbc:mysql://localhost:3306/cosmic";
private static String DB_USER = "snail";
private static String DB_PASS = "shell";
public static final int RETURN_GENERATED_KEYS = 1;