Welcome to
Mod The Sims
Online: 3238
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: 90 (Who?), Viewed: 12824 times.
Search this Thread
Old 9th Nov 2010, 06:03 AM DefaultSolved-Updating Dolphin's Magic Gardening Gnome for Late Night. #1
claudiasharon
Original Poster

Scholar

Join Date: Dec 2004
Posts: 1,031
Thanks: 13862 in 222 Posts
21 Achievements

View My Journal


I got a request to update Dolphin's Magic Gardening Gnome and I have never done a mod like that before. But I would like to learn how to update it. Are there any tutorials or anyone that would be willing to help me?

For crying out loud you frakking fekik!
Frelling trasta ko litbak!
Call me M-I-N-Z-Y (Minzy). ;)
Some More Sims made by me!
Last edited by claudiasharon : 11th Dec 2010 at 05:31 AM. Reason: solved
Old 9th Nov 2010, 07:32 AM #2
velocitygrass
Forum Resident

Join Date: Jun 2009
Posts: 668
Thanks: 17166 in 11 Posts
17 Achievements


Have you looked at Kolipoki's Object Modding tutorial?

The problem is probably the Namespace problem introduced in the patch.

So basically the steps would be to extract the .dll from the package, open it to get the code in Reflector and then either just copy/paste from there into a newly created Visual Studio project or get the FileGenerator or FileDisassembler plugins for Reflector which will generate a project for you.

In that project you replace the existing namespace with:

Sims3.Gameplay.Objects.TheNamespaceYouHadBefore

Compile the project, import the new .dll into the S3SA resource in the package via Grid and see if it works in your game.
Old 9th Nov 2010, 02:26 PM #3
claudiasharon
Original Poster

Scholar

Join Date: Dec 2004
Posts: 1,031
Thanks: 13862 in 222 Posts
21 Achievements

View My Journal


How do I extract the .dll from the package?

Nevermind, I think I found it, but I have no idea how to find the code you're talking about.

For crying out loud you frakking fekik!
Frelling trasta ko litbak!
Call me M-I-N-Z-Y (Minzy). ;)
Some More Sims made by me!
Old 9th Nov 2010, 03:10 PM #4
velocitygrass
Forum Resident

Join Date: Jun 2009
Posts: 668
Thanks: 17166 in 11 Posts
17 Achievements


Have you taken a look at the .dll in Reflector?
Old 9th Nov 2010, 03:10 PM #5
claudiasharon
Original Poster

Scholar

Join Date: Dec 2004
Posts: 1,031
Thanks: 13862 in 222 Posts
21 Achievements

View My Journal


Yeah I opened it, but I couldn't find the code.

I see that it says namespace Dolphin26.MagicGardeningGnome
and that needs to be changed in order to get the object to work probably.

For crying out loud you frakking fekik!
Frelling trasta ko litbak!
Call me M-I-N-Z-Y (Minzy). ;)
Some More Sims made by me!
Old 9th Nov 2010, 03:17 PM #6
velocitygrass
Forum Resident

Join Date: Jun 2009
Posts: 668
Thanks: 17166 in 11 Posts
17 Achievements


Try double-clicking on one of the methods, if you don't see the code window. I'll upload a screenshot of how it should look in a moment.
Old 9th Nov 2010, 03:19 PM #7
claudiasharon
Original Poster

Scholar

Join Date: Dec 2004
Posts: 1,031
Thanks: 13862 in 222 Posts
21 Achievements

View My Journal


Yeah I'm not getting it.

For crying out loud you frakking fekik!
Frelling trasta ko litbak!
Call me M-I-N-Z-Y (Minzy). ;)
Some More Sims made by me!
Old 9th Nov 2010, 03:22 PM #8
velocitygrass
Forum Resident

Join Date: Jun 2009
Posts: 668
Thanks: 17166 in 11 Posts
17 Achievements


I've attached a picture of how it should look like. Double-clicking to open the code window only works for methods and members, so go down the tree on the left until you can't open anything more and click on something without children. That should bring up the code window.
Screenshots
Click image for larger version

Name:  reflector_smaller.png
Views: 0
Size:  54.2 KB  
Old 9th Nov 2010, 03:26 PM #9
claudiasharon
Original Poster

Scholar

Join Date: Dec 2004
Posts: 1,031
Thanks: 13862 in 222 Posts
21 Achievements

View My Journal


Rock on, it worked, thank you. And I need to expand methods, correct?

For crying out loud you frakking fekik!
Frelling trasta ko litbak!
Call me M-I-N-Z-Y (Minzy). ;)
Some More Sims made by me!
Old 9th Nov 2010, 03:33 PM #10
velocitygrass
Forum Resident

Join Date: Jun 2009
Posts: 668
Thanks: 17166 in 11 Posts
17 Achievements


If you want to copy the code of the whole class, yes. As I mentioned, in that case you would have to create a Visual Studio project yourself (and add missing using statements for the Sims .dlls; you can take a look at Buzzler's new scripting tutorial for notes on that).

An alternative would be to download a plugin for Reflector that allows you to export the .dll as a project that you could theoretically open in VS and compile directly. Though that's not always perfect.
Old 9th Nov 2010, 03:36 PM #11
claudiasharon
Original Poster

Scholar

Join Date: Dec 2004
Posts: 1,031
Thanks: 13862 in 222 Posts
21 Achievements

View My Journal


I was having trouble with the plugin, I'm not sure how to use it. :\

For crying out loud you frakking fekik!
Frelling trasta ko litbak!
Call me M-I-N-Z-Y (Minzy). ;)
Some More Sims made by me!
Old 9th Nov 2010, 03:39 PM #12
velocitygrass
Forum Resident

Join Date: Jun 2009
Posts: 668
Thanks: 17166 in 11 Posts
17 Achievements


Which one did you download? Did you add it via the View->Add-Ins... command?
Old 9th Nov 2010, 03:41 PM #13
claudiasharon
Original Poster

Scholar

Join Date: Dec 2004
Posts: 1,031
Thanks: 13862 in 222 Posts
21 Achievements

View My Journal


Yep. It shows up under tools, I got both of the ones you mentioned.

And I'm having trouble getting it to work in Microsoft Visual C#.

For crying out loud you frakking fekik!
Frelling trasta ko litbak!
Call me M-I-N-Z-Y (Minzy). ;)
Some More Sims made by me!
Old 9th Nov 2010, 03:53 PM #14
velocitygrass
Forum Resident

Join Date: Jun 2009
Posts: 668
Thanks: 17166 in 11 Posts
17 Achievements


If you select "Generate Files..." it should open up a window that lets you select a path. Check both boxes, select the .dll on the left in the tree and click the "Generate Files" button.

This should work and generate a project that can be opened in VS. In my test on my own exported .dll in Visual C# 2008 Express it prompted me to convert, but that went fine, though I still had to go through the various steps of setting up a project for .dlls (adding references to sims .dlls).

ETA:
Quote:
And I'm having trouble getting it to work in Microsoft Visual C#.

It might be cleaner to start a project from scratch going through this tutorial. Then you'll know you have all the references in place and only need to take the .cs file(s) from the generated files and add it/them to the project.
Screenshots
Click image for larger version

Name:  generate_files.png
Views: 0
Size:  8.8 KB  
Old 9th Nov 2010, 03:59 PM #15
claudiasharon
Original Poster

Scholar

Join Date: Dec 2004
Posts: 1,031
Thanks: 13862 in 222 Posts
21 Achievements

View My Journal


I keep getting this error.





And I used that tutorial to set up my project but I keep getting around 37 errors.

EDIT:

Okay, now I only get 7 errors.




For crying out loud you frakking fekik!
Frelling trasta ko litbak!
Call me M-I-N-Z-Y (Minzy). ;)
Some More Sims made by me!
Last edited by claudiasharon : 9th Nov 2010 at 04:16 PM.
Old 9th Nov 2010, 04:22 PM #16
velocitygrass
Forum Resident

Join Date: Jun 2009
Posts: 668
Thanks: 17166 in 11 Posts
17 Achievements


I still have 13 Give me a moment to see if I can get it work for me.
Old 9th Nov 2010, 04:23 PM #17
claudiasharon
Original Poster

Scholar

Join Date: Dec 2004
Posts: 1,031
Thanks: 13862 in 222 Posts
21 Achievements

View My Journal


Okay will do.

Edit: Now I get four errors.




For crying out loud you frakking fekik!
Frelling trasta ko litbak!
Call me M-I-N-Z-Y (Minzy). ;)
Some More Sims made by me!
Old 9th Nov 2010, 04:30 PM #18
velocitygrass
Forum Resident

Join Date: Jun 2009
Posts: 668
Thanks: 17166 in 11 Posts
17 Achievements


Got it to compile \o/

Okay, the virtual thing on the "GetPath()" is because in the patch they added bool isFemale as parameter so just change it to "GetPath(bool isFemale)" and it should be okay. The rest is probably because you reference the mscorlib from the system, not the one distributed with the Sims game. Check steps 3 and 4 in the tutorial I linked earlier to change that.

ETA: I see you solved the rest yourself, so the GetPath() change should be it
Old 9th Nov 2010, 04:31 PM #19
claudiasharon
Original Poster

Scholar

Join Date: Dec 2004
Posts: 1,031
Thanks: 13862 in 222 Posts
21 Achievements

View My Journal


I didn't reference it, I changed it to link to the sims one, I have no idea why it's referencing it.

And I can't seem to find the get path.

LOL nevermind. Find ftw.

So after I compile it...it's a .dll?

For crying out loud you frakking fekik!
Frelling trasta ko litbak!
Call me M-I-N-Z-Y (Minzy). ;)
Some More Sims made by me!
Old 9th Nov 2010, 04:35 PM #20
velocitygrass
Forum Resident

Join Date: Jun 2009
Posts: 668
Thanks: 17166 in 11 Posts
17 Achievements


Double-clicking on the error should jump to the line.
Old 9th Nov 2010, 04:36 PM #21
claudiasharon
Original Poster

Scholar

Join Date: Dec 2004
Posts: 1,031
Thanks: 13862 in 222 Posts
21 Achievements

View My Journal


Found it. It compiled just fine.

But where does it go when compiled?

For crying out loud you frakking fekik!
Frelling trasta ko litbak!
Call me M-I-N-Z-Y (Minzy). ;)
Some More Sims made by me!
Old 9th Nov 2010, 04:39 PM #22
velocitygrass
Forum Resident

Join Date: Jun 2009
Posts: 668
Thanks: 17166 in 11 Posts
17 Achievements


Great

Quote:
So after I compile it...it's a .dll?


Yes, it's a .dll and then you can open the package again, import it into the same resource. (Did you already make the namespace changes?)

Save the package and copy to your mod folder and test if it still crashes.
Old 9th Nov 2010, 04:42 PM #23
claudiasharon
Original Poster

Scholar

Join Date: Dec 2004
Posts: 1,031
Thanks: 13862 in 222 Posts
21 Achievements

View My Journal


Yeah I made the namespace changes, then I compiled it.

But I can't figure out the .dll part, under my projects are all these files but no .dll.

For crying out loud you frakking fekik!
Frelling trasta ko litbak!
Call me M-I-N-Z-Y (Minzy). ;)
Some More Sims made by me!
Old 9th Nov 2010, 04:46 PM #24
velocitygrass
Forum Resident

Join Date: Jun 2009
Posts: 668
Thanks: 17166 in 11 Posts
17 Achievements


Ah, okay. Check for a folder called "bin" and in there "Release". Or just search the whole project folder for any .dll. It should be in there somewhere.
Old 9th Nov 2010, 04:50 PM #25
claudiasharon
Original Poster

Scholar

Join Date: Dec 2004
Posts: 1,031
Thanks: 13862 in 222 Posts
21 Achievements

View My Journal


Yeah it was in the bin. Anyways, thank you for your help, now I have to go test it in my game to see if it works.

For crying out loud you frakking fekik!
Frelling trasta ko litbak!
Call me M-I-N-Z-Y (Minzy). ;)
Some More Sims made by me!
Reply


Section jump:


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