Jump to content

Recommended Posts

View File

Sorry for my English, it is not my native language.

 

Description
This small mod designed to play with Deviously Cursed Loot. It catches adding devious keys and triggers dcl events when player tries to add them using "player.additem". Keys are removed from inventory.
Key names are: "Restraints Key", "Chastity Key", "Piercing Removal Tool", "Leg Restraints Key", "Head Restraints Key", "Hand Restraints Key" and "Body Restranits Key".
Console commands are catched and actions:
tgm - executes tgm again, disabling god mode

 

tcl - executes tcl again, disabling no clip
unlock - executes "lock 100", locking at master level
kill - nothing happens (any ideas ?)
When console command (or key) found triggers one of dcl events.
Possible events:
- standart cursed trap
- rubber doll collar
- belt of shame
- yoke of shame
You can select desired events from mcm menu, If no events selected, nothing happens but other actions remains (key will be removed from inventory)
Of couse, if anybody really wants to cheat, he finds the way.
This mod also tracks using AddItemMenu. Configurable in MCM.
When mod updates it unlocks menu so you can reconfigure new options.

 

MCM Menu
In mcm menu you can:
- disable/enable control of various key types
- disable/enable console commands.
- toggle support of AddItemMenu
- select DCL events
- "lock menu" to disable future option changes. Unlocking is not possible, so use with cation.

 

Requirements
Deviously Cursed Loot, http://www.loverslab.com/files/file/1216-deviously-cursed-loot/
ConsoleUtils, http://www.nexusmods.com/skyrim/mods/66257/?
and it's requirements.


  • Submitter
  • Submitted
    12/17/2016
  • Category
  • Requires
    Deviously Cursed Loot, ConsoleUtils
  • Special Edition Compatible

 

Link to comment

why would you need this? if you don't want to cheat...just don't cheat, opening the console is a choice. If a person can't control themselves enough to not open the console and type into it they've got bigger issues.

Sounds like "why people need Devious Devices - Integration, if you dont want device to be removed, do not do it."

This mod adds more self-control. And hardcore mode in DCL is nothing against console. Using this mod is risky, because player can be catched in devices or in trouble but people who install this mod understand this. BDSM is risky itself. If somebody needs version without tcl and tgm contol, i will release it.

 

Link to comment

Easy way to bypass this: target a container while the console is open, add keys to the container, close the console, open the container, pick up the keys.  This mod only triggers if it both:

  1. Detects one of a small number of explicitly named keys is added to the player's inventory.
    AND
  2. Can't see a "source container" that the key(s) came from.

 

This doesn't really stop "cheating".

Link to comment

Easy way to bypass this: target a container while the console is open, add keys to the container, close the console, open the container, pick up the keys.  This mod only triggers if it both:

  1. Detects one of a small number of explicitly named keys is added to the player's inventory.

    AND

  2. Can't see a "source container" that the key(s) came from.

 

This doesn't really stop "cheating".

 

Brilliant.  The author has put up a patch in response to this.  So, now instead of just preventing the user from spawning keys, they can't use "additem" or "placeatme" at all... for anything.  Yeah, that's a completely sane response.  Nevermind that it breaks a good number of mods from Nexus because the authors were too lazy to add crafting recipes or add items to the world somewhere.  :dodgy:

 

ssonly: What you should be doing is parsing the item that gets added, rather than the parent command, much like you're doing with the OnItemAdded() event.

Link to comment

I'm liking the idea. Not sure of the possible script lag of checking each key input for the 'OnKeyDown'.

 

And to the haters, if you don't like the idea than just don't download it? A bit sad to bitch about a mod you don't like. Just move on and respect the author or give constructive feedback that can be used.

Link to comment

 

Easy way to bypass this: target a container while the console is open, add keys to the container, close the console, open the container, pick up the keys.  This mod only triggers if it both:

  1. Detects one of a small number of explicitly named keys is added to the player's inventory.

    AND

  2. Can't see a "source container" that the key(s) came from.

 

This doesn't really stop "cheating".

 

Brilliant.  The author has put up a patch in response to this.  So, now instead of just preventing the user from spawning keys, they can't use "additem" or "placeatme" at all... for anything.  Yeah, that's a completely sane response.  Nevermind that it breaks a good number of mods from Nexus because the authors were too lazy to add crafting recipes or add items to the world somewhere.  :dodgy:

 

ssonly: What you should be doing is parsing the item that gets added, rather than the parent command, much like you're doing with the OnItemAdded() event.

 

 

Well, for lack of a response from ssonly, I guess I'll continue to quote myself.

 

Much better.  The code is a mess, but you've narrowed the focus back down to keys.  Now all you need is to re-write to use an MCM menu so the user can toggle which keys they want to be cheat-blocked, and you should have a good mod on your hands.

 

Also, if you like, I can provide some code snippets to clean things up a little bit for you, ones that won't throw log errors and such, and are much easier to read.

Link to comment

Some alternate code to get key forms without doing math translations or looking directly into quest aliases (which can cause log errors if the quest doesn't exist):

Key ChastityKey
Key RestraintsKey
Key PiercingRemovalTool
Key HandRestraintsKey
Key HeadRestraintsKey
Key BodyRestraintsKey
Key LegRestraintsKey
 
If(Game.GetModByName("Devious Devices - Integration.esm") != 255)
    ChastityKey = Game.GetFormFromFile(0x008A4F, "Devious Devices - Integration.esm") As Key
    RestraintsKey = Game.GetFormFromFile(0x01775F, "Devious Devices - Integration.esm") As Key
    PiercingRemovalTool = Game.GetFormFromFile(0x0409A4, "Devious Devices - Integration.esm") As Key
EndIf
 
If(Game.GetModByName("Deviously Cursed Loot.esp") != 255)
    HandRestraintsKey = Game.GetFormFromFile(0x04BB4B, "Deviously Cursed Loot.esp") As Key
    HeadRestraintsKey = Game.GetFormFromFile(0x04BB4C, "Deviously Cursed Loot.esp") As Key
    BodyRestraintsKey = Game.GetFormFromFile(0x04BB4D, "Deviously Cursed Loot.esp") As Key
    LegRestraintsKey = Game.GetFormFromFile(0x04BB4E, "Deviously Cursed Loot.esp") As Key
EndIf

It is completely untested, as I haven't personally written anything dealing with keys yet, but it should at the very least get you on the right track.  If declaring them as keys doesn't work, you could try declaring them as Form instead.

 

EDIT: Oh, and with this code, you can remove the hard dependency on Deviously Cursed Loot.

Link to comment

It returns Form, form can't me compared with number or string. GetFormID() retrurns int but type cast does not work with hex numbers.

In file ID stored as number, program shows it in hex, but skyrim does not convert in hex string.

 

So, in that case, I'd still use the code above, but then convert to an Int by GetFormID() as you said.  Also convert Hex to Int.  Then you can compare Int to Int.  It's not perfect, but it works.

 

Alternatively, you can convert both to String so that you aren't doing any mathematical translations.

Link to comment

I like the idea, but will most likely not use this mod. I either use console for testing, or when I am stuck, but not for cheating. I do know of another cheat I use often:

 

Save -> Do Pickpocket -> Fail -> Load  (or success -> save)

 

The reason I cheat has little to do with wanting to cheat, but more because I dislike the crime-system. See this topic. Your mod made me remember what I dislike about the current crime-system. Fixing that will probably remove my desire to cheat.

Link to comment

I like the Idea from this Mod. Sure If you want to cheat, you can do it but in the other case you rethink about it.

But maybe you are blocking Additemmenu. Only to take the keys. In my case i use additemmenu in many ways and not to cheat keys.

Not sure that I understood you correctly. Are you asking to include Additemmenu block in addon or you have trouble with using Additemmenu ?

I am thinking about additemmenu, but it may be buggy.

 

Link to comment

Well... once in a while, when I feel like I need this kind of hardcore devious skyrim, I use DCL's "lock menu when tied" + "hardcore mode" in combination with a tiny mod from the Nexus called "Disable console". It really just uses "Key helper" (which is also on the Nexus) to take away the ~ key function so you can't access the console.
Of course you need a stable game for that, but then there really is little cheating to be done.

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more information, see our Privacy Policy & Terms of Use