Discovered GM Commands [Dedicated]

General discussion of Life is Feudal, The main section and backbone of the forums.
User avatar
TorZar
 
Posts: 46
Joined: 20 Sep 2014, 15:47

Discovered GM Commands [Dedicated]

Post by TorZar » 22 Sep 2014, 17:52

|REQUIRED STEP & Only for DEDICATED SERVERS|
Database: compare table 'character' column 'AccountID' to table 'account' column 'ID' and set isGM to 1

|USEFUL LINKS|
TgTemplar Explains why you need isGM = 1
What's DEDICATED mean? WTH are we talking about??
Prolasis Goes over some of the database on Youtube
Official response to GM Commands [They added a nice itemID lookup for us]
Life is Feudal - VPS/Dedicated Server Setup Guide
Skill Tree - SkillID's
Vamyan's Scheduled Server Restart Script

9/27/2014 - GM Mode Patch (0.2.0.0) is out!
Commands now available for Client Based (Create World) Servers

~ in-game for console

/gm (duh)
/gm password (using the password set in world_X.xml [GM friends can use])
/add "Heavy Targe Shield" 1 100 20000 (quantity 1, quality 100, durability 200) <creds: TorZar / Nazgul111>
/add apple 100 100 (adds apple stack to inv. no " needed on single words. Quality of 100 fills hunger from 0)
/add 41 1 50 20000 (ObjectID in \Life is Feudal Your Own\data\cm_equipTypes.xml)
/complete [KeyBind=B] (while aiming/targeted at an un-built structure)
/alignment # (-1000~1000) <creds: TgTemplar>
/heal (Only brings a user to 100 flat health) <creds: TgTemplar>(something's not right with this, only worked once..?)
/Reagents (Gives you a LOT of alchemical goods. A LOT) [you weren't kidding.. jesus] <creds: TgTemplar>
/delobj [KeyBind=N] (removes targeted/aimed at object) <creds: Kobiwaldi (won a cookie for this)>
/addobj 520 (places a "School (wooden)" at your feet, location and direction based on char pos/direction - obj ID found in DB table 'objects_types' column 'ID') <creds: Kobiwaldi / TorZar>
/setmystat # 75 (0 = str, 1 = agi, 2 = wil, 3 = int, 4 = con | sets stat, appears to max at 110???) <creds: Kobiwaldi / TorZar>
/setmyskill 41 100 (Set skill 2H blades mastery to 100, ID's found in DB table 'skill_type' column 'ID') <creds: Various Mentions/PM's>
/setmyskill "Piercing mastery" -90 (Subtracts 90 from the skill)
F8 FLY
F7 EXIT FLY
[Disabled 0.2.0.0]God Mode (See "|CUSTOM GM BINDINGS/SCRIPTING|" below [Simple Version] Not really god mode, but.. meh.. )
[Disabled 0.2.0.0]/effectadd # # # (#1=effect #2=magnitute #3=duration (-1 = infinite) [effect list in \Life is Feudal Your Own Dedicated Server\data\cm_effects.xml) <creds: Kobiwaldi & ty Hambeast>
/weather Fair (Fair / Cloudy / Shower) <creds: Admins for correct states>
/grow (4x for noticing change) <creds: Admins >

Manual Banning DB: Compare table 'character' column 'AccountID' to table 'account' colum 'ID' and set 'IsActive' to 0

ON THE HUNT: TO BE DISCOVERED ~ IF EXIST
(some may be built-in dev cheats? not necessarily just GM tools)
teleport
time of day (Managed to get time to fly by. 1 day in 1 min.. was testing console commands.. 'set[TAB to complete line](random#)' Playing around too fast, don't know which it was)
set hunger (superApple sufficient?)
set max skill cap (fixing server skillcap setting in next update?)
set hard/soft health/stam
flatten area
suggestions?

|Unrelated but helpful|
Manually connect to server:
joinToRemoteServer("IP:PORT","PASSWORD") (if no password use "") <creds: Arrakis09>

|CUSTOM GM BINDINGS/SCRIPTING|

ALT+M (@ title screen will connect you directly to the server you specify)
Z (Will toggle /GM MODE)
[Disabled 0.2.0.0]ALT+Z (God Mode skills) [I haven't dug to see why this function triggers 2x yet]
ALT+Z (New GM char all max stats/all skills)
ALT+N (Gives a few basic items for a 'newbie pack' if you want to encourage some new players)
NOTE: Toggling FLY (F8 then F7) resets /GM and GodMode

Steam\SteamApps\common\Life is Feudal Your Own\scripts\client\init.cs (Section found at line 133)
Code: Select all
// Default player key bindings
//exec("scripts/client/default.bind.cs");
exec("scripts/client/default.bindCommands.cs");
exec("scripts/client/torbinds.cs");  //<-- ADD THIS LINE

Steam\SteamApps\common\Life is Feudal Your Own\scripts\client\
ADD FILE torbinds.cs
Code: Select all
//AUTO-CONNECT TO (FAVORITE/OWN) SERVER FROM TITLE SCREEN WITH ALT+M - AVOIDING SERVER LIST DELAY
GlobalActionMap.bindCmd(keyboard, "alt m", "", "joinToRemoteServer(\"###.###.###.###:28000\",\"\");");

//Z = TOGGLE GM MODE
moveMap.bindCmd(keyboard, z, "doSlashCommand(\"/GM password\");");

//ALT+N = NEWBIE PACK TO PASS OUT
GlobalActionMap.bind(keyboard, "alt n", newbiePack);

//ALT+Z = NEW GM CHAR. ALL SKILLS & STATS
GlobalActionMap.bind(keyboard, "alt z", allSkills);

function allSkills()
{
warn("ALL SKILLS");
doSlashCommand("/setmystat 0 110");
doSlashCommand("/setmystat 1 110");
doSlashCommand("/setmystat 2 110");
doSlashCommand("/setmystat 3 110");
doSlashCommand("/setmystat 4 110");
for(%i = 1; %i < 66; %i++)
   {
      %commandToSend = "/setmyskill " @ %i @ " 90";
      doSlashCommand(%commandToSend);
   }
}

function newbiePack()
{
warn("NewbiePack");
doSlashCommand("/ADD 458 1"); //backpack
doSlashCommand("/ADD 40 1 100 50000"); //shovel
doSlashCommand("/ADD 555 1 100 50000"); //practice sword
doSlashCommand("/ADD 48 1 100 50000"); //pickaxe
doSlashCommand("/ADD 45 1 100 50000"); //primitive axe
doSlashCommand("/ADD 51 1 100 50000"); //saw
doSlashCommand("/ADD 33 1 100 50000"); //sickle
doSlashCommand("/ADD 974 25 50 50000"); //semiSuperAppleBuns
doSlashCommand("/ADD 885 1 50"); //helm
doSlashCommand("/ADD 886 1 50"); //chest
doSlashCommand("/ADD 887 1 50"); //arms
doSlashCommand("/ADD 888 1 50"); //gaunlets
doSlashCommand("/ADD 889 1 50"); //leggings
doSlashCommand("/ADD 890 1 50"); //boots
}

Last edited by TorZar on 27 Oct 2014, 16:43, edited 54 times in total.


Kobiwaldi
 
Posts: 32
Joined: 08 Sep 2014, 04:22

Re: Discovered GM Commands

Post by Kobiwaldi » 22 Sep 2014, 19:21

Hm... tried it via console to become a GM. Working. (/gm password)

*edit*

Work on Dedi Server
Last edited by Kobiwaldi on 23 Sep 2014, 09:33, edited 1 time in total.

User avatar
TorZar
 
Posts: 46
Joined: 20 Sep 2014, 15:47

Re: Discovered GM Commands

Post by TorZar » 22 Sep 2014, 19:34

The couple I've listed above definitely function. At least I wouldn't imagine I'm running a different server than others.

Basically just here to combine efforts from others that have some info to share.


Klein
 
Posts: 2
Joined: 22 Sep 2014, 19:57

Re: Discovered GM Commands

Post by Klein » 22 Sep 2014, 19:59

Kobiwaldi wrote:Hm... tried it via console to become a GM. Working. (/gm password)
But other then this nothing is really working - so i can't say if these commands will work ^^


Same here. GM mode activated but the other commands do nothing.

TorZar wrote:The couple I've listed above definitely function. At least I wouldn't imagine I'm running a different server than others.

Dedicated server or built in game server?

User avatar
TorZar
 
Posts: 46
Joined: 20 Sep 2014, 15:47

Re: Discovered GM Commands

Post by TorZar » 22 Sep 2014, 21:07

Dedicated

Edit: was leaving work :Yahoo!:
Which I should have mentioned in the main post.. I think DB access, I automatically think dedicated. Shouldn't have assumed. I'll update it.

User avatar
TorZar
 
Posts: 46
Joined: 20 Sep 2014, 15:47

Re: Discovered GM Commands [Dedicated]

Post by TorZar » 22 Sep 2014, 22:38

I'm working on an app to parse the server log for current logged in users then I'll go back to testing / digging for commands. Would LOVE to see columns in the DB 'character' table of 'lastlogin' and 'lastlogout'

User avatar
TgTemplar
 
Posts: 54
Joined: 31 Mar 2014, 22:03

Re: Discovered GM Commands [Dedicated]

Post by TgTemplar » 23 Sep 2014, 00:45

This will not work unless you have altered the status of a player in your SQL database.

Worked just fine for me after toggling my status in the database.
Image
New RP Server that is driven entirely by you, the players.
post25586/#p25586
Give us a go!


Sireandrew
 
Posts: 1
Joined: 20 Sep 2014, 20:50

Re: Discovered GM Commands [Dedicated]

Post by Sireandrew » 23 Sep 2014, 01:58

Ok two things.
My server trying to access console commands and all but /gm password work.

* HOW DO I TARGET A SITE TO /COMPLETE*
I stared at it and it gave me the distance/ what I wanted to build.
But when I /complete the console says " ExecuteSlashCommand" but nothing happens. :Bravo:

And where are u finding the ItemID codes.

User avatar
Danielb
Alpha Tester
 
Posts: 50
Joined: 23 Mar 2014, 12:33

Re: Discovered GM Commands [Dedicated]

Post by Danielb » 23 Sep 2014, 06:25

Anybody know how to prepare/use/setup the BlackBoxServers platform to be able to use ANY GM commands?

User avatar
TorZar
 
Posts: 46
Joined: 20 Sep 2014, 15:47

Re: Discovered GM Commands [Dedicated]

Post by TorZar » 23 Sep 2014, 10:16

TgTemplar wrote:This will not work unless you have altered the status of a player in your SQL database.

Worked just fine for me after toggling my status in the database.


Thanks for this, as that was the first thing I did and didn't test that afterwords.

Sireandrew wrote:Ok two things.
My server trying to access console commands and all but /gm password work.

* HOW DO I TARGET A SITE TO /COMPLETE*


That is all that's required as far as "targeting". As long as you're 'aimed' at it.

Seems setting isGM in the database for your char is required.

Sireandrew wrote:And where are u finding the ItemID codes.


I should have done more testing before mentioning the itemID part. I went digging in the DB and found nothing linking the items that appeared to the numbers I was entering.. went back in-game, and entered '/add 5 1' 5 times and received a different item each time i entered it.. So, still unaware what its attempting to do here. although the full name works.

Return to General Discussion