Forum Discussion

IngeJones's avatar
9 years ago

Custom object with custom class

Ok so the line in the tuning file of an arch goes something like:



So supposing I want to make a special type of door with it's own python class (but heavily borrowing from the existing door class), m = "IngeDoor" n="object_IngeDoor". What would I put for the m = ?

Anything else special about custom object classes that is not included in the modding advice in the modding guidance pdf?

3 Replies

Replies have been turned off for this discussion
  • @SimGuruModSquad ? I guess I am talking about the this.that.theother bit of the structure. Given that the script will end up in the Mods folder somewhere I am stumped about what path to refer to the class by.
  • Are scripts under the Mods folder all read in as if they were at the root of the game's script system?
  • SimGuruEugi's avatar
    SimGuruEugi
    Icon for EA Staff (Retired) rankEA Staff (Retired)
    9 years ago
    Put the fully qualified module name. Imagine your script mods being an extension of the Sims 4 code base. If you match the folder structure (starting from Mods/), I *believe* the files would behave as if they were in the official folders. You'll have to play around with it.

About The Sims 4 Mods & Custom Content

Find expert tips, troubleshooting help, tutorials for mods and custom content, and The Sims 4 patch files in our forum.14,437 PostsLatest Activity: 47 minutes ago