Welcome to
Mod The Sims
Online: 2462
News:
Have an account? Sign in:
pass:
If you don't have an account, why not sign up now? It's free!
Other sites: SimsWiki
Reply  Replies: 1 (Who?), Viewed: 1895 times.
Search this Thread
Old 10th Jul 2011, 01:43 PM DefaultGenerations Cane for YoungAdults #1
Jasumi
Original Poster

Scholar

Join Date: Aug 2007
Posts: 1,149
Thanks: 8605 in 14 Posts
16 Achievements


Hello MTS^^

Lately, I've been trying to create my first scripting mod for the Sims 3, however, I seem to get a ton of build errors when I try to build my .dll

In a nutshell, I simply want to change the "AgeRestriction" values in Cane.cs from the Sims3GameplaySystems.dll that I extracted from the gameplay package.

But everytime I modify this script in Visual Studio and try to build it, I get around 22-80 errors preventing me from exporting it.


So I have some questions:

1. How exactly am I supposed to go about simply modification EA's code (as opposed to scripting from scratch)?

2. How do I compile only one file (instead of every .cs file from the orginal .dll)?


Thanks in advance....

Two Things I Dislike: this thing and these things
~<>~
Two Things I Like: this guy and this girl
Old 10th Jul 2011, 03:57 PM #2
Odistant
Field Researcher

Join Date: Jul 2009
Posts: 259
Thanks: 998 in 5 Posts
7 Achievements


Errrr....


Are you literally decompiling Sims3GameplaySystems.dll into a project? If so, that's not what you should be doing.


What you should do is clone the cane in S3OC and then find the class that's for the cane and use that to look over on how EAxis did it. I personally wouldn't copy/paste the full coding as that will most likely give you tons of errors and I'm guessing that some of the animations are for elders only.


If I were you, I would start simple by firstly adding the interaction, then getting it into the inventory, etc.

You might also have to do a little bit core modding to compile without the "access denied" errors, I'm guessing that's what gave you most of the errors.
Reply


Section jump:


Powered by MariaDB Some icons by http://dryicons.com.