Discovered GM Commands [Dedicated]

General discussion about Life is Feudal MMO and Life is Feudal: Your Own, The main section and backbone of the forums.

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.


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?


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.


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'


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.


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?


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.

User avatar
Dwolf
 
Posts: 9
Joined: 21 Sep 2014, 12:52

Re: Discovered GM Commands [Dedicated]

Post by Dwolf » 23 Sep 2014, 14:06

GM mode works but the other commands doesn't work. Could anyone explain me how to compare that columns from diferents tables?
Edit: I changed GM to 1 and now it works
Last edited by Dwolf on 23 Sep 2014, 16:21, edited 1 time in total.


Dilu
 
Posts: 8
Joined: 18 Sep 2014, 07:28

Re: Discovered GM Commands [Dedicated]

Post by Dilu » 23 Sep 2014, 15:03

Anyone know the command to connect to a server via console?

User avatar
Arrakis
 
Posts: 5476
Joined: 25 Oct 2013, 14:11
Location: Space

Re: Discovered GM Commands [Dedicated]

Post by Arrakis » 23 Sep 2014, 15:49

in the console (~)
[ on the join server list page ]

type in:
joinToRemoteServer("IP:PORT","PASSWORD")

[ if no password use "" ]

and it will manually connect you



MH6
 
Posts: 29
Joined: 22 Sep 2014, 14:59

Re: Discovered GM Commands [Dedicated]

Post by MH6 » 23 Sep 2014, 16:57

TorZar wrote: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'


If you are interested, I wrote a plugin to maintain a unique DB table that contains all the active players. I'm doing this for my live web map viewer, which shows all the current players and structures on the map in your web browser. I don't get login times (I am polling data every so often at the moment) but I'd imagine it can be done via callbacks.

I'm also writing a plugin to automatically sync character and skill data between server instances.

It'd be nice if we could get access to a few of the source server .cs files :D

User avatar
Dwolf
 
Posts: 9
Joined: 21 Sep 2014, 12:52

Re: Discovered GM Commands [Dedicated]

Post by Dwolf » 23 Sep 2014, 17:41

Is there any command to show the server ip?


Revv
 
Posts: 76
Joined: 22 Sep 2014, 12:53

Re: Discovered GM Commands [Dedicated]

Post by Revv » 23 Sep 2014, 17:50

Do we have to know how to use mysql to do this or is there an easier way I have no idea on how to use mysql.


MH6
 
Posts: 29
Joined: 22 Sep 2014, 14:59

Re: Discovered GM Commands [Dedicated]

Post by MH6 » 23 Sep 2014, 18:07

Dwolf wrote:Is there any command to show the server ip?


listAllServers(); maybe? Or just select the server in the server browser and it should show the address in the bottom right.


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

Re: Discovered GM Commands [Dedicated]

Post by Kobiwaldi » 23 Sep 2014, 18:10

Manual BAN of a Player (by Steam ID)

Database: compare table 'character' column 'AccountID' to table 'account' column 'ID' and set isActive to 0 (from 1 to 0)

Player is baned. 8-)


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

Re: Discovered GM Commands [Dedicated]

Post by TgTemplar » 23 Sep 2014, 18:54

/alignment set # - Sets alignment on user. Only seems to work up to 0.

/heal - As the name suggests. (Only brings a user to 100 flat.)

/Reagents - Gives you a LOT of alchemical goods. A LOT.
Image
New RP Server that is driven entirely by you, the players.
post25586/#p25586
Give us a go!


Revv
 
Posts: 76
Joined: 22 Sep 2014, 12:53

Re: Discovered GM Commands [Dedicated]

Post by Revv » 23 Sep 2014, 19:01

Are you guys using something like MySQL to edit the database files or is there another program to edit the tables?


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

Re: Discovered GM Commands [Dedicated]

Post by TgTemplar » 23 Sep 2014, 19:02

If you use the site that's depicted in your README when you get the ded. server files, Maria comes with Heidi.

I've been using that.

----

Anyone know how to modify starting inventories for a server? I'd love to give everyone starting gear, like basic leather and a sword.
Image
New RP Server that is driven entirely by you, the players.
post25586/#p25586
Give us a go!


Sherwood23
 
Posts: 10
Joined: 10 Sep 2014, 23:06

Re: Discovered GM Commands [Dedicated]

Post by Sherwood23 » 23 Sep 2014, 20:09

The /gm works as I get GM in my name; however...

None of the other commands work, what file are you guys editing ?

Thanks


Pbwolf
 
Posts: 2
Joined: 22 Sep 2014, 18:08

Re: Discovered GM Commands [Dedicated]

Post by Pbwolf » 23 Sep 2014, 21:04

You have to edit the database. There is a character table, with a column for GM. Change it to 1 for your character.


Rebumai
 
Posts: 2
Joined: 21 Sep 2014, 10:20

Re: Discovered GM Commands [Dedicated]

Post by Rebumai » 23 Sep 2014, 21:10

Pbwolf wrote:You have to edit the database. There is a character table, with a column for GM. Change it to 1 for your character.


The thing is we don't know how to do that.

User avatar
Dwolf
 
Posts: 9
Joined: 21 Sep 2014, 12:52

Re: Discovered GM Commands [Dedicated]

Post by Dwolf » 23 Sep 2014, 21:49

MH6 wrote:
Dwolf wrote:Is there any command to show the server ip?


listAllServers(); maybe? Or just select the server in the server browser and it should show the address in the bottom right.

Thanks that worked :D


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

Re: Discovered GM Commands [Dedicated]

Post by TorZar » 23 Sep 2014, 22:06

MH6 wrote:If you are interested, I wrote a plugin to maintain a unique DB table that contains all the active players. I'm doing this for my live web map viewer, which shows all the current players and structures on the map in your web browser. I don't get login times (I am polling data every so often at the moment) but I'd imagine it can be done via callbacks.

I'm also writing a plugin to automatically sync character and skill data between server instances.

It'd be nice if we could get access to a few of the source server .cs files :D

you are a step ahead of me, just today at work I was running through my head the easiest way to line up and map out the DB player coords to a map... I'm kinda pulling back the throttle some to see where things are headed here. Just poking around here and there. If it goes the right direction, there is definitely potential and worth the time to develop some nice admin software..

TgTemplar wrote:/alignment set # - Sets alignment on user. Only seems to work up to 0.

/heal - As the name suggests. (Only brings a user to 100 flat.)

/Reagents - Gives you a LOT of alchemical goods. A LOT.

nice work, thanks for the effort ;) I'll add to main post

Revv wrote:Do we have to know how to use mysql to do this or is there an easier way I have no idea on how to use mysql.
Revv wrote:Are you guys using something like MySQL to edit the database files or is there another program to edit the tables?

HeidiSQL is a decent free program, I personally use Navicat. Knowing/learning even the most basic SQL is always helpful (for this and future endeavors).. but in terms of whats going on here, can easily be done with very little to no knowledge beyond setting the correct SQL server port (default 3306) and typing in the password.. Most of it would be looking at plain text in tables.


Nazgul111
 
Posts: 9
Joined: 23 Sep 2014, 12:52

Re: Discovered GM Commands [Dedicated]

Post by Nazgul111 » 23 Sep 2014, 22:17

would be usefull to know the exact filename of the database file we need to edit, the only sql file i could find in blackbox files is new.sql


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

Re: Discovered GM Commands [Dedicated]

Post by TgTemplar » 23 Sep 2014, 22:20

To explain what I've noticed from /gm compared to setting yourself as GM via SQL Database.

/GM enables what seems like a 'GM Mode.'
All crafting and action times are reduced to 1 second. Skills are generally ignored and as long as you have a single point in the skill, you can do anything in/with the skill.

For example:

I have 1 skill point in Masonry. Without /GM, all I can make is the stone low-walls and a well. With /GM enabled, I can make literally anything within the Masonry tree, assuming I have the required resources and tools.

This said, actually having to toggle a player's status in the SQL feels a bit like a fail-safe. Even if word gets out about your Admin passwords, players can't actually use the complete, add or any other command. To be honest, I actually prefer this set up and the security it, even if unintentionally, provides.
Image
New RP Server that is driven entirely by you, the players.
post25586/#p25586
Give us a go!


Nazgul111
 
Posts: 9
Joined: 23 Sep 2014, 12:52

Re: Discovered GM Commands [Dedicated]

Post by Nazgul111 » 23 Sep 2014, 22:35

hmm for some reason when i press '`' ingame now it does not seem to appear at all, any ideas as to why? it worked before


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

Re: Discovered GM Commands [Dedicated]

Post by TgTemplar » 23 Sep 2014, 22:41

Well, for what it's worth, you can just use /'Command' in any channel to use the commands listed. Issue is, you don't see any of the prompts.

Sounds like you may have unbound your key but, I can't be sure.
Image
New RP Server that is driven entirely by you, the players.
post25586/#p25586
Give us a go!

Return to General Discussion