|
oh lol meant 165 data mb!!! well i didnt say im god of java ! but like i see its just adding the npcs and make the objects work #and btw knowledge dont come by sitting and looking at other people work so i belive that if try doing it better than just sitting watching how people making awsome updates atleast im trying and please runer-server stop that rude comments !!
Not trying to be rude, I'm just surprised that you couldn't figure out fixing banks but you are supposedly capable of coding something complex like raids 1 which would honestly be a good amount of work.
To fix banks on this, you find the ID of the object (I believe this type of bank specifically is second click) and add that object ID to the existing block for second click object banking.
Sorry for a bit of a gravedig, but are there any known issues with this? Been away from RSPS for god knows how many years and looking for a decent base to build on for educational purposes.
Decided to organize the opcodes on the client side for convenience. Also added gaps for unused opcodes to make it easier to add your own.
Someone might find it useful.
Code:package com.runescape.util; /** * The class that contains packet-related constants. * * @author Seven * @author TheChosenOne * Organized by Alta */ public final class PacketConstants { public static final int IDLE = 0; public static final int STOP_ALL_ANIMATIONS = 1; public static final int FOCUS_CHANGE = 3; public static final int SEND_GFX = 4; public static final int SEND_MODEL_TO_INTERFACE = 8; public static final int INTERFACE_SCROLL_RESET = 9; public static final int SET_SCROLLBAR_HEIGHT = 10; public static final int SEND_ENTER_AMOUNT = 27; public static final int UPDATE_SPECIFIC_ITEM = 34; public static final int SEND_EARTHQUAKE = 35; public static final int SEND_CONFIG_BYTE = 36; public static final int SET_AUTOCAST_ID = 38; public static final int SEND_GROUND_ITEM = 44; public static final int FLAG_ACCOUNT = 45; public static final int ADD_FRIEND = 50; public static final int REMOVE_FRIEND = 51; public static final int SEND_UPDATE_ITEMS = 53; public static final int SEND_EFFECT_TIMER = 54; public static final int SEND_CURRENT_BANK_TAB = 55; public static final int ITEM_ON_NPC = 57; public static final int SEND_MULTIPLE_MAP_PACKETS = 60; public static final int SEND_MULTICOMBAT_ICON = 61; public static final int SEND_EXIT = 62; public static final int DELETE_GROUND_ITEM = 64; public static final int NPC_UPDATING = 65; public static final int MOVE_COMPONENT = 70; public static final int SEND_SIDE_TAB = 71; public static final int CLEAN_ITEMS_OF_INTERFACE = 72; public static final int SEND_MAP_REGION = 73; public static final int PLAY_SONG = 74; public static final int SHOW_NPC_HEAD_ON_INTERFACE = 75; public static final int CLEAR_MINIMAP_FLAG = 78; public static final int PLAYER_UPDATING = 81; public static final int SEND_ALTER_GROUND_ITEM_COUNT = 84; public static final int SEND_REGION = 85; public static final int CAMERA_MOVEMENT = 86; public static final int SEND_CONFIG_INT = 87; public static final int SEND_NON_WALKABLE_INTERFACE = 97; public static final int SEND_MINIMAP_STATE = 99; public static final int SEND_REMOVE_OBJECT = 101; public static final int DESIGN_SCREEN = 101; public static final int SEND_PLAYER_OPTION = 104; public static final int SWITCH_TAB = 106; public static final int RESET_CAMERA = 107; public static final int SET_TOTAL_EXP = 108; public static final int LOGOUT = 109; public static final int SEND_RUN_ENERGY = 110; public static final int SEND_TOGGLE_QUICK_PRAYERS = 111; public static final int SEND_TOGGLE_RUN = 113; public static final int SYSTEM_UPDATE = 114; public static final int SHOW_CLANCHAT_OPTIONS = 115; public static final int SEND_PROJECTILE = 117; public static final int NEXT_OR_PREVIOUS_SONG = 121; public static final int LOADED_REGION = 121; public static final int SEND_CHANGE_INTERFACE_COLOUR = 122; public static final int SEND_CONSOLE_COMMAND = 123; public static final int SET_INTERFACE_TEXT = 126; public static final int UPDATE_PLAYER_RIGHTS = 127; public static final int SEND_SKILL = 134; public static final int SEND_SOLO_NON_WALKABLE_SIDEBAR_INTERFACE = 142; public static final int TRANSFORM_PLAYER_TO_OBJECT = 147; public static final int SEND_OBJECT = 151; public static final int SEND_REMOVE_GROUND_ITEM = 156; public static final int ANIMATE_OBJECT = 160; public static final int SEND_NONWALKABLE_CHATBOX_INTERFACE = 164; public static final int SPIN_CAMERA = 166; public static final int SHOW_HIDE_INTERFACE_CONTAINER = 171; public static final int PLAY_SOUND_EFFECT = 174; public static final int MOVE_CAMERA = 177; public static final int OPEN_WELCOME_SCREEN = 176; public static final int SHOW_PLAYER_HEAD_ON_INTERFACE = 185; public static final int BUTTON_CLICK = 185; public static final int SEND_ENTER_NAME = 187; public static final int SEND_RECEIVED_PRIVATE_MESSAGE = 196; public static final int SEND_ANIMATE_INTERFACE = 200; public static final int IDLE_LOGOUT = 202; public static final int UPDATE_CHAT_MODES = 206; public static final int SEND_WALKABLE_INTERFACE = 208; public static final int ENTER_REGION = 210; public static final int MOVE_ITEM = 214; public static final int ADD_IGNORE = 214; public static final int REMOVE_IGNORE = 215; public static final int CLAN_CHAT = 217; // 317 did not have this public static final int REPORT_PLAYER = 218; public static final int SEND_WALKABLE_CHATBOX_INTERFACE = 218; public static final int CLOSE_INTERFACE = 219; public static final int SET_FRIENDSERVER_STATUS = 221; public static final int SET_MODEL_INTERFACE_ZOOM = 230; public static final int SEND_PLAYER_WEIGHT = 240; public static final int SEND_REGION_MAP_REGION = 241; public static final int MOUSE_CLICK = 241; public static final int SEND_ITEM_TO_INTERFACE = 246; public static final int SEND_DUO_INTERFACE = 248; public static final int SEND_INITIALIZE_PACKET = 249; public static final int ENABLE_NOCLIP = 250; public static final int SEND_URL = 251; public static final int SEND_CLAN_CHAT_MESSAGE = 252; public static final int SEND_MESSAGE = 253; public static final int SEND_HINT_ICON = 254; }
Anyone know why I get this while starting the server in eclipse?
The path does exist and the files are in there that were included. I've done minor debugging but can't figure out why. Tried hardcoding the path that calls it also.Jul 27, 2019 8:15:14 PM com.elvarg.Server main
INFO: Initializing the Bootstrap...
java.io.FileNotFoundException: .\data\clipping\loc.dat (The system cannot find the path specified)
at java.io.RandomAccessFile.open0(Native Method)
at java.io.RandomAccessFile.open(Unknown Source)
at java.io.RandomAccessFile.<init>(Unknown Source)
at java.io.RandomAccessFile.<init>(Unknown Source)
at com.elvarg.util.FileUtil.readFile(FileUtil.java:16 )
at com.elvarg.game.definition.ObjectDefinition.init(O bjectDefinition.java:269)
at com.elvarg.game.collision.RegionManager.init(Regio nManager.java:56)
at com.elvarg.game.GameBuilder.initialize(GameBuilder .java:45)
at com.elvarg.Bootstrap.bind(Bootstrap.java:47)
at com.elvarg.Server.main(Server.java:53)
java.io.FileNotFoundException: .\data\clipping\loc.idx (The system cannot find the path specified)
at java.io.RandomAccessFile.open0(Native Method)
at java.io.RandomAccessFile.open(Unknown Source)
at java.io.RandomAccessFile.<init>(Unknown Source)
at java.io.RandomAccessFile.<init>(Unknown Source)
at com.elvarg.util.FileUtil.readFile(FileUtil.java:16 )
at com.elvarg.game.definition.ObjectDefinition.init(O bjectDefinition.java:270)
at com.elvarg.game.collision.RegionManager.init(Regio nManager.java:56)
at com.elvarg.game.GameBuilder.initialize(GameBuilder .java:45)
at com.elvarg.Bootstrap.bind(Bootstrap.java:47)
at com.elvarg.Server.main(Server.java:53)
java.lang.NullPointerException
at com.elvarg.game.collision.Buffer.readUnsignedWord( Buffer.java:66)
at com.elvarg.game.definition.ObjectDefinition.init(O bjectDefinition.java:275)
at com.elvarg.game.collision.RegionManager.init(Regio nManager.java:56)
at com.elvarg.game.GameBuilder.initialize(GameBuilder .java:45)
at com.elvarg.Bootstrap.bind(Bootstrap.java:47)
at com.elvarg.Server.main(Server.java:53)
Jul 27, 2019 8:15:15 PM com.elvarg.Server main
SEVERE: An error occurred while binding the Bootstrap!
javax.naming.OperationNotSupportedException: map_index was not found!
at com.elvarg.game.collision.RegionManager.init(Regio nManager.java:61)
at com.elvarg.game.GameBuilder.initialize(GameBuilder .java:45)
at com.elvarg.Bootstrap.bind(Bootstrap.java:47)
at com.elvarg.Server.main(Server.java:53)
To add on this, if anyone wants the version of this without all the custom networking code (and disconnection problems), here's a link: https://www.mediafire.com/file/d4syj...17_io.zip/file
Read more here: https://www.rune-server.ee/runescape...ml#post5638129
Looks like the /data/ folder cannot be found (that contains all the clip data etc), make sure it's added in the project's root directory.
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |