Repository for the Server + Management Server for 2009scape, an open source RS2 remake.
Find a file
Qweqker a35b1ffe1c Dialogue Changes, Hairdresser and Clothing Makeover changes (#73)
* Restored Feature to enable/disable the default clan when an account is registered.

* "Cleaned Up" the dialogue options for the Hairdresser
Added some facial animations other than HALF_GUILTY (Not sure if they are accurate)
Changed the interfaces the Hairdresser opens to the 2009 ones.
The Hairdresser will no longer cut the player's hair if the player is wearing a helmet, shield or sword

* Changed the code to use the 2008/2009 interfaces
made two methods two handle each gender interface
Buttons should work on each interface
Removed some redundant code
Added a //TODO for later
Added a facial expression to the dialogue the hairdresser says after confirming the hairstyles

* Added //TODO's for later
Added Facial Expressions other than HALF_GUILTY
Prep work for showing how old the player's account is

* Very minor id change

* "Cleaned Up" Thessalia's dialogue
Changed the menus the npc opens to the 2008/2009 interfaces
Added Facial Expressions other than HALF_GUILTY
Added ability to check if player is wearing any armour (if the player is wearing armour, Thessalia will tell the player to take it off)
Moved an argument to the ThessaliaInterface java class
Added comments tp separate sections of the code

* "Cleaned Up" the interface button code
Added a dialogue from Thessalia when the player accepts changes
Added a couple of arrays to properly change clothes to the correct ID
Added a variable to handle the clothing recolour stuff
Changed the interface components to the 2008/2009 menus
Redid all the case code executions
added a method that would handle clothing recolouring
Added comments to separate different sections of code
Redid the confirmation code to be similar to the hairdresser interfaces
2020-02-15 13:40:11 -05:00
.idea New Accounts will now automatically join the 2009Scape clan chat (#60) 2020-01-20 21:10:11 -05:00
Client Space to continue dialogue (#67) 2020-01-26 11:01:23 -05:00
CompiledServer Fixup compile errors (#72) 2020-02-02 18:01:33 -05:00
Management-Server Merge Qweqker 2020-01-21 20:18:26 -05:00
Server Dialogue Changes, Hairdresser and Clothing Makeover changes (#73) 2020-02-15 13:40:11 -05:00
Tools Fixes and more (#69) 2020-01-26 16:30:32 -05:00
.attach_pid3023 Latest compile 2019-11-03 12:16:14 -05:00
.gitignore Make setup easier by having the correct directories marked as src (#50) 2020-01-06 20:45:55 -05:00
README.md Update README.md 2020-01-11 14:14:04 -05:00
RS-2009.iml Easier setup 2020-01-06 20:47:55 -05:00

RS 2009 - The most complete Runescape Emulation server. Pull requests welcome!

Join our Discord server: https://discord.gg/4zrA2Wy

We also have a live game in the Releases section that always runs the latest code.

Setting up the project

Requirements:

  • General knowledge of git
  • General knowledge of SQL
  • Intellij

Be sure to check the debugging section when something goes wrong.

Step 1:

  • Fork this repository to your repo

Step 2: Setting up IntelliJ

  • Open IntelliJ
  • Click File > New > Project from Version Control
    • Paste the URL of your forked repository in the URL field, click Done
    • Wait for the repository to clone
  • Click File > Project Structure > Modules > 09HDscape > Paths > Inherit project compile output path
    • Hit OK
  • Click File > Project Structure > Project > Change the Project Compiler Output to the folder where the project exists on your computer

Step 3: Setting up the Database

Since this portion of the guide is operating-system specific, you will either need basic database knowledge or a bit of help. Below are the things that need to be configured.

Windows & Linux GUI:

  • Download and install xampp
  • Start the Apache and MySQL modules
  • Navigate to http://localhost/phpmyadmin/
  • Create 2 new tables named server and global
  • Import Server/server.sql and Server/global.sql into their respective databases
    • Refer here for help importing the .sql files

Linux Command Line

  • Instructions for various Linux distros can be found here

Step 4: Running the Server & Client

  • Run the management-server
    • In IntelliJ, navigate to 09HDscape-management-server/src/org/keldagrim/Main.java, right click > Run
  • Run the server
    • In IntelliJ, navigate to 09HDscape-server/src/org/crandor/Main.java, right click > Run
      • It will fail
    • Top right there should be Main (1) in a dropdown, click it then select Edit Configurations
    • Change the working directory to 09HDscape-server so it can find server.properties
  • Run the client
    • In IntelliJ, navigate to 09HDscape-client/src/org/runite/GameLaunch.java, right click > Run

You should now be set up!

Debugging

Errors could not find library:

  • Click File > Project Structure > Modules > 09HDscape > Paths > Inherit project compile output path
    • Now click Dependencies
    • Click the + on the right-hand side > JARs or directories
    • Add the following things:
      • 09HDscape-client/lib directory
      • 09HDscape-client/clientlibs.jar file
      • 09HDscape-management-server/lib director

Errors regarding java.nio.BufferUnderflowException in server:

  • Reclone the repository. This happened to me (Red Bracket) once, could never reproduce.