Page 1 of 1
RE: Console - Almost Human
Posted: Fri Mar 25, 2016 3:59 am
by Eleven Warrior
I am not sure about this but, is there a way to stop the player in a game spawning items from the console. If not can the Dev's put this into the main code. That way the player cannot spawn a massive weapon and beat your mod(s).
Just asking that's all

Re: RE: Console - Almost Human
Posted: Fri Mar 25, 2016 4:11 am
by minmay
You can't control what the user does on their own computer. Disabling the debug console wouldn't do anything to stop cheating; they could just edit the dungeon file, use TAS programs, cheat engine, etc.
If you don't want players to cheat in your mods, perhaps you should make your mods fun to play instead, so that they don't have a reason to cheat.
Re: RE: Console - Almost Human
Posted: Fri Mar 25, 2016 6:21 am
by Isaac
minmay wrote:You can't control what the user does on their own computer. Disabling the debug console wouldn't do anything to stop cheating; they could just edit the dungeon file, use TAS programs, cheat engine, etc.
If you don't want players to cheat in your mods, perhaps you should make your mods fun to play instead, so that they don't have a reason to cheat.
Hypothetically... (and setting aside that nothing will stop the truly determined)... What about obfuscating (by renaming) all of the item definitions [custom and standard] to non-descriptive alphanumerics, and including only compiled lua scripts?
*Of course... This won't stop someone from writing full scripts into the console to poll the cell contents, to read the object names, but that's not most players.
...And so how about optionally, adding code to every item, that runs at spawn... that calls GameMode.completeGame() with a cheater's outro if the item fails a custom authenticity check.
** Another option is for those uber weapons on the out of reach shelf... to not really be there (as an object), until they are within reach of the party; the display object being a dummy prop or just a model component ~preventing it from being moved into reach via the console.
Re: RE: Console - Almost Human
Posted: Sat Mar 26, 2016 12:28 am
by Eleven Warrior
Thank you Issac awesome reply. I will try your method. 85 percent of the items I have, have different id's etc...
If I don't include say the item dagger in the items.lua will the player still be able to spawn a dagger from the console? I assume it's hard coded. Thxs for your time

Re: RE: Console - Almost Human
Posted: Sat Mar 26, 2016 2:11 am
by Isaac
Eleven Warrior wrote:Thank you Issac awesome reply. I will try your method. 85 percent of the items I have, have different id's etc...
If I don't include say the item dagger in the items.lua will the player still be able to spawn a dagger from the console? I assume it's hard coded. Thxs for your time

If there is no item definition defined as 'dagger', then one cannot use spawn('dagger') to get a dagger. To get a dagger, they would have to use the item name with the spawn function; and the item name of a dagger could be item671128. This means removing [substituting] the import standard_assets.lua found in your init.lua, and substituting a modified copy that references your own modified item definition scripts.
Btw... this could play hell with 3rd party scripts, and your own that make assumptions about what items are defined (and spawned by them), unless all item names are updated in the affected scripts.