Sims3GameplayObjects.dll has some conflicting issues

Talk nerdy to us here.
Post Reply
User avatar
lyralei
Reactions:
Posts: 13
Joined: January 30th, 2021, 5:36 am

Sims3GameplayObjects.dll has some conflicting issues

Post by lyralei » May 7th, 2023, 7:12 am

Hey everyone!

I'm uncertain if this was intentional, though I've noticed when using the Sims3GameplayObjects.dll that ships with Nraas, I'm having some issues with it. Now, some issues I can change by either using the dll file straight from the game files, or even using "unprotect" on it. However, in this situation that's not quite useful.

Here's the code:

Code: Select all

                LotManager.ExitingBuildBuyMode += OnExitBuildBuyMode;
Since the error i'm having then says: "Ambiguity between 'LotManager.ExitingBuildBuyMode' and 'LotManager.ExitingBuildBuyMode'"

From what I can tell, according to my Visual Studio, it's because LotManager has, indeed, 2 of them (and i'm assuming that the none-event one used to be private)

Code: Select all

        public static event VoidEventHandler ExitingBuildBuyMode;
        public static VoidEventHandler ExitingBuildBuyMode;
I know I can edit the dll if I wanted to, but I'm wondering if this was done on purpose?

User avatar
lyralei
Reactions:
Posts: 13
Joined: January 30th, 2021, 5:36 am

Sims3GameplayObjects.dll has some conflicting issues

Post by lyralei » May 7th, 2023, 7:17 am

Argh wait I'm being silly here, it's Sims3GameplaySystems that I want... seems to be working now!

User avatar
lyralei
Reactions:
Posts: 13
Joined: January 30th, 2021, 5:36 am

Sims3GameplayObjects.dll has some conflicting issues

Post by lyralei » May 8th, 2023, 3:08 pm

Hrm it seems that the same issue keeps persisting, but now with Sims3GameplaySystems. In the previous post I changed it back to the Nraas dll and that's fine.

However, in this project, this isn't working however... Ilspy (or DNSpy for that matter) isn't picking up on two LotManager.ActiveLotChanged's but somehow VS is...

Here's the error:

Ambiguity between 'LotManager.ActiveLotChanged' and 'LotManager.ActiveLotChanged'

and my line of code:

Code: Select all

            LotManager.ActiveLotChanged += EnergyManager.PickEnergyCompanyForFamily;

Post Reply