Hi there! You are currently browsing as a guest. Why not create an account? Then you get less ads, can thank creators, post feedback, keep a list of your favourites, and more!
Quick Reply
Search this Thread
Instructor
Original Poster
#1 Old 25th Nov 2019 at 6:40 PM
Default Modding : placing inventory items in inactives' houses
I guys, hope you are all doing well!

I'm looking for an information, when my sim goes to a neighbours' house I can't place most inventory items in their house except some objects such as the box of danger for instance. My question is the following : what can be modded to enable other inventory objects to be placed in inactive houses? Is it xml/itun tunning? Script moding?

Any help will be greatly appreciated
Advertisement
Forum Resident
#2 Old 26th Nov 2019 at 4:37 PM Last edited by MissPat : 1st Dec 2019 at 1:05 AM.
Hello Anitaka!

I personally use a series of mods over at Nraas.net to achieve this goal. Mainly, Debug Enabler.
So it looks like it would be script modding.

Steps I recorded in my notes (sorry I can't start the game so I hope this will not be confusing):
1) I add the desired object on my active sim lot

2) I click on the object then "Nraas > Debug Enabler > object… > "Siminteraction whoami"
After that, a notification (yellow popup in the right side of the screen) shows up in my game with the details of the object.
The word after "sims3core" is usually the object name, like "nectarmaker"; I just put it at the beginning of the Debug Enabler command to create objects (see step 2).
For instance: "NectarMaker, EP1, Sims3[...]NectarMaker"

2) I go to the inactive sims' lot, I click on the floor, then "Nraas > Debug Enabler > create object"
A popup window appears and I enter the required object data. The object is then created.
Instructor
Original Poster
#3 Old 26th Nov 2019 at 8:24 PM
Quote: Originally posted by MissPat
Hello Anitaka!

I personally use a series of mods over at Nraas.net to achieve this goal. Mainly, Debug Enabler.
So it looks like it would be script modding.

Steps I recorded in my notes (sorry I can't start the game so I hope this will not be confusing):
1) I add the desired object on my active sim lot

2) I click on the object then "Nraas > Debug Enabler > object… > "Siminteraction whoami"
After that, a notification (yellow popup in the right side of the screen) shows up in my game with the details of the object.
The word after "sims3core" is usually the object name, like "nectarmaker"; I just put it at the beginning of the Debug Enabler command to create objects (see step 2).
For instance: "NectarMaker, EP1, Sims3[...]NectarMaker"

2) I go to the inactive sims' lot, I click on the floor, then "Nraas > Debug Enabler > create object"
A popup window appear and I enter the required object data. The object is then created.


Hi MissPat thank you for answering :D

I took pictures to explain what I'm trying to do : when my sim is at a neighboor's house I'd like to be able to place items from his/her inventory. Basically, no items from active sims inventory can be placed on a neighboor's lot, but I notice that the Box of Magic can actually!

So I'm wondering what can be done to enable more items to be placed on inactives' lots from inventory.
Screenshots
Forum Resident
#4 Old 27th Nov 2019 at 12:37 AM
Thanks for the clarification! I'm afraid I can't help further...

I don't know where to look in the code to remove the trigger / flag that identifies objects a non-household-member can or cannot drop on a lot.

Hopefully a more experienced modder can stop by and help out!
Space Pony
#5 Old 27th Nov 2019 at 6:52 PM
Hey Anitaka00,

here is a quick n dirty solution



i hadnt much time to think about it so you might want to do some testing, if you need my help i probably got more time on the weekend to do ingame testing etc
Instructor
Original Poster
#6 Old 28th Nov 2019 at 10:41 AM
Thank you for your support PissPat :D!

Hi Battery, thank you for offering your help, I'm going to try your code very soon and give you feedbacks

Have a nice day!
Instructor
Original Poster
#7 Old 28th Nov 2019 at 9:14 PM
Hi Battery,

I'm trying your solution for the crib

I'm trying to test it in game, but strangely I cannot put the crib in my sims' inventory anymore. I'm posting the package here if you have time to look at it maybe you'll notice something wrong.

Thanks for your help
Attached files:
File Type: rar  PortableCheapCribV2.rar (311.1 KB, 5 downloads) - View custom content
Space Pony
#8 Old 28th Nov 2019 at 10:01 PM
Hi Anitaka,
i noticed that you also changed your script target in your objk to "Sims3.Gameplay.Objects.Beds.Mimics.Anitaka00.PortableCheapCrib : CribCheap, IPlaceableObject" you have to state just the class name and namespace there and not the inheiretance aswell.

In other words there was/is no need to change the string just use "Sims3.Gameplay.Objects.Beds.Mimics.Anitaka00.PortableCheapCrib" like before and you should be good to go

The first sign that your new script didnt get registered in the first place is that the object has the namespace+class as the name instead of something like "crib cheap"
Instructor
Original Poster
#9 Old 29th Nov 2019 at 4:24 PM
Quote: Originally posted by Battery
Hi Anitaka,
i noticed that you also changed your script target in your objk to "Sims3.Gameplay.Objects.Beds.Mimics.Anitaka00.PortableCheapCrib : CribCheap, IPlaceableObject" you have to state just the class name and namespace there and not the inheiretance aswell.

In other words there was/is no need to change the string just use "Sims3.Gameplay.Objects.Beds.Mimics.Anitaka00.PortableCheapCrib" like before and you should be good to go

The first sign that your new script didnt get registered in the first place is that the object has the namespace+class as the name instead of something like "crib cheap"


Thank you Battery I will try that in a few days
Instructor
Original Poster
#10 Old 1st Dec 2019 at 10:13 PM
Congratulations! You did it Battery, it works , now we are able to place a crib on our neighbours'lot! That's a big game changer.

Once the crib is placed we cannot move it nor pick it up anymore, do you have an idea why?

Anyway you made my day thank you
Space Pony
#11 Old 2nd Dec 2019 at 6:16 PM Last edited by Battery : 2nd Dec 2019 at 7:00 PM.
Hey Anitaka,

add this to your class
Code:
		public override bool HandToolAllowPickupOnOtherResidentialLots()
		{
			return true;
		}


Kind regards

Battery
Instructor
Original Poster
#12 Old 2nd Dec 2019 at 9:50 PM
Thanks again Battery it works like a charm!

May I ask how did you find the solution? Is there documentation for Sims 3 code?
Space Pony
#13 Old 7th Dec 2019 at 2:16 PM
Yay Weekend, sorry for the late response.

Unfortunately there is no documentation that i know of. But you did alsmost solve the problem yourself when you stated that the Magic Box was placeable.
So i just looked what the magic box did and copied the necessary code over. You are already using a decompiler like ilspy right ? If not well the wole world of sims 3 modding probably just opened up for you (if you start using it)

have a nice weekend
Instructor
Original Poster
#14 Old 8th Dec 2019 at 1:26 PM
Quote: Originally posted by Battery
Yay Weekend, sorry for the late response.

Unfortunately there is no documentation that i know of. But you did alsmost solve the problem yourself when you stated that the Magic Box was placeable.
So i just looked what the magic box did and copied the necessary code over. You are already using a decompiler like ilspy right ? If not well the wole world of sims 3 modding probably just opened up for you (if you start using it)

have a nice weekend


Hi Battery! Thank you for answering.
I am using Ilspy... ^^' I'm still trying to figure out what does what there, as well as C# logic. For instance, I looked at the Magic Box in Ilspy, but was not able to understand how to apply the IPlaceableObject to another object like you did. But the more I try, the more I'll understand
Back to top