diff --git a/NOTES.md b/NOTES.md index 5ac93447c..24aaca473 100644 --- a/NOTES.md +++ b/NOTES.md @@ -21,3 +21,4 @@ Open SQL Developer and go to the cluster_list table and change the address to yo ## DMZ or Port Forwarding Go into your router configuration area and find the DMZ setting. Enable it and point it at the LAN address of the SWG server - you may also be able to simply forward the [SWG ports](ports) to the game server instead, which would be more secure. + diff --git a/README.md b/README.md index d7b63a929..4a3ab2031 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ We anons working on this fully support all the SWG emus out there and recognize ## Missing NPCs -As for the missing NPC's, the majority of them are in the sku.0/sys.server/compiled/game/datatables/buildouts _ws.iff files, but so far we have been unable to load them. There is a method to persist them to the database but it has been hit and miss. This method involves attaching the script working.jhaskell_test to a character and using a macro with "/yell persist_obj /sleep 2; ..." for each oid. +As for the missing NPC's, the majority of them are in the sku.0/sys.server/compiled/game/datatables/buildouts _ws.iff files, but so far we have been unable to load them. There is a method to persist them to the database but it has been hit and miss. This method is documented in the USEFUL_COMMANDS.md file. ## Contact diff --git a/README_LINUX.md b/README_LINUX.md index 1f7f8c3ee..43beabd96 100644 --- a/README_LINUX.md +++ b/README_LINUX.md @@ -9,7 +9,7 @@ Before you do anything, make sure to install sudo if it isn't already, and add y su #and enter your root password at the prompt apt-get install sudo - vim /etc/sudoers + visudo Add the following line anywhere in the file, replacing "user" with your username: @@ -17,7 +17,6 @@ Add the following line anywhere in the file, replacing "user" with your username To save, hit the ESC key, then type wq! and hit enter. You may then exit from your root shell. - ## Specifications To run this game in any capacity, you MUST have an Oracle database server setup and configured for remote access. @@ -55,6 +54,8 @@ Add the following to your ~/.bashrc, replacing "swg" with your database name Using a 32 bit installation of Ubuntu or Debian Linux, clone this repo and execute the build_linux.sh script from a terminal. While building, if you haven't already, go ahead and setup the database server, as build time is quite long. +If you get errors about a CFLAG, remove the offending cflag from src/CMakeLists.txt and try again. gcc-5.2 is HIGHLY suggested, it builds a much more efficient server and supports all cflags. This is why using Debian Sid is a good option, else you can build gcc yourself or find a PPA to supply it. + ## Configuration Add preload files: diff --git a/USEFUL_COMMANDS.md b/USEFUL_COMMANDS.md index 25ddac284..454de8ad5 100644 --- a/USEFUL_COMMANDS.md +++ b/USEFUL_COMMANDS.md @@ -1,3 +1,140 @@ +Small blurb about command syntax: + /command + + /command <> + + /command [optional argument you may not need to specify] [] + + /command -parameter means you need to actually type -whatever -parameter + + /command [TARGET] simply means it must be your current target. [TARGET] + + /command means there is more than one option. Pick 1. | ARGUMENT | + + +#Enabling God Mode (Admin) +Note: Your localOptions.cfg file must have "adminGodToAll=1" in the [GameServer] section. Alternatively, if you would only like certain users to have access to the God Mode abilities, you can toggle that bool to 0 in localOptions and instead you will need to edit both the "qa_admin" and "us_admin" .tab files with the account username you'd like to have. Set their GodLevel to 55 for all commands and abilities, and their skill to "admin". Then compile it with the miff.exe tool. It is recommended that once you have compiled this file once, you only make future revisions with TRE Explorer as compiling the .tab document can get complex. + +Once you have either globally enabled login or have enabled it for your account, login to the game and type: + + /setGodMode + # Turns on God Mode + /setGodMode 50 + # If you have adminGodToAll Enabled, do this instead. + /setGodMode off + # Disables the features of God Mode + +# Making Admin Commands Work In Your Client +You need to edit your user.cfg file and add the following: +(Note: You only need what's under [ClientGame], the UserInterface modifications just make everything so much easier. + + [ClientGame] + 0fd345d9 = true + [ClientUserInterface] + debugExamine=1 + debugClipboardExamine=1 + allowTargetAnything=1 + drawNetworkIds=1 + +0fd345d9 enables the admin commands in your client. Without it your client will not send the commands to the server and will return the "no such command" error. + +debugExamine allows you to /examine an object and get the ObjectID, and various other information like it's template. + +debugClipboardExamine makes the debug info you get from /examine get placed on your clipboard so you can paste it with Ctrl+v + +allowTargetAnything enables the ability to target objects like entire structures or objects you normally cannot to fix issues. + +drawNetworkIds puts the ObjectID and NetworkID above every objects name. + + +# Basic God Mode Commands - Teleportation + + /planetWarp + # Teleports you to the specified planet/terrain. + /planetWarpTarget + # Teleports your target to the specified planet/terrain. + /teleport + # Teleports you to the specified coordinates on the current terrain. + /teleportTo + # Teleports you to the specified player anywhere in the galaxy. + /teleportTarget + # Teleports your target to the specified coordinates on the current terrain. + /npeGoToMedicalBay + # Teleports your character to the opening medical bay instance (don't do with invulnerable on) + /npeGotoMilleniumFalcon + # Teleports your character to the opening millenium falcon instance. + /npeGoToStationGamma + # Teleports your character to Station Gamma. + /npeGoToTansariiStation + # Teleports your character to Tansarii Station. + +# Basic God Mode Commands - Managing Your Character + + /invulnerable + # Toggles Invulnerability - Makes your character invulnerable (removes health/action) and you appear as a NPC. + /aiIgnore + # Toggles aiIgnore - Artificial Intelligence ignore you (no aggro). + /setSpeed + # Changes the speed by which your character negotiates terrain. Recommended that you don't go higher than 5. + /getPlayerId + # Returns the object ID (oid) of your character. This will be used frequently. + /object hide + # Hides your character from non God Mode characters. Set bool to 0 for visible and 1 for hidden. Make a macro for 0 and 1. It's easier. + +# Basic God Mode Commands - Managing Other Characters + + /getAccountInfo + # Returns various account information about the specified character including their IP Address. They must be online. + /getStationName + # Returns the username of the specified player character. Does not work if player is offline. + /getPlayerId + # Returns the object ID (oid) of the specified player character. Does not work if player is offline. + /server getCharacterInfo + # Returns Station ID, and Object ID of a character, even when they are offline. Along with other info. + /freezePlayer + # Freezes the player preventing them from moving. It's like being rooted. + /unfreezePlayer + # Reverses the effects of /freezePlayer + /squelch [TARGET] + # Prevents your target from talking, using mail, spatial, or tells. Must be your TARGET (don't type TARGET) + /unsquelch [TARGET] + # Reverses the effects of /squelch + /csDisconnectPlayer + # Disconnects the specified player. + /kick + # Kicks the specified player from the server and returns them to the character screen. + /findPlayer + # Searches the galaxy for any players with matching names. + /cityInfo + # Displays an SUI window in which you can search and manage cities across the galaxy. + /listGuilds + # Spams your chat box with information on all active guilds of the galaxy. + /credits [-target] <+|- value> + # Gives you (or optionally your target) the specified (or subtracts the specified) amount of credits from/to the bank or cash. + +Attach QATool: + + /script attach test.qatool + +To see what QAtool can do: + + /qatool + +# Planet Persist + +Set your localOptions.cfg to only have 1 persister thread and loadWholePlanets=1. Teleport to the planet you want to persist, attach the QATool, and as god, run + + /qatool persistplanet + +Once you have persisted all planets, shutdown the server and optionally remove the data/sku.0/sys.server/compiled/game/datatables/buildout/