Forum Announcement, Click Here to Read More From EA_Cade.

Custom object with custom class

IngeJonesIngeJones Posts: 3,247 Member
edited March 5 in Nominated Threads
Ok so the line in the tuning file of an arch goes something like:

<I c="Door" i="object" m="objects.doors.door" n="object_arch" s="25173">

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?
Post edited by EA_Cade on

Comments

  • Options
    IngeJonesIngeJones Posts: 3,247 Member
    @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.
  • Options
    IngeJonesIngeJones Posts: 3,247 Member
    Are scripts under the Mods folder all read in as if they were at the root of the game's script system?
  • Options
    SimGuruEugiSimGuruEugi Posts: 503 SimGuru
    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.

Leave a Comment

BoldItalicStrikethroughOrdered listUnordered list
Emoji
Image
Align leftAlign centerAlign rightToggle HTML viewToggle full pageToggle lights
Drop image/file
Return to top