| Search this Thread |
|
|
|
|
claudiasharon
Original Poster
|
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
|
|
|
#2 |
|
velocitygrass
|
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. |
|
|
|
|
|
#3 |
|
claudiasharon
Original Poster
|
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! |
|
|
|
|
|
|
#4 |
|
velocitygrass
|
Have you taken a look at the .dll in Reflector? |
|
|
|
|
|
#5 |
|
claudiasharon
Original Poster
|
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! |
|
|
|
|
|
|
#6 |
|
velocitygrass
|
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. |
|
|
|
|
|
#7 |
|
claudiasharon
Original Poster
|
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! |
|
|
|
|
|
|
#8 |
|
velocitygrass
|
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. |
|
|
|
|
|
#9 |
|
claudiasharon
Original Poster
|
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! |
|
|
|
|
|
|
#10 |
|
velocitygrass
|
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. |
|
|
|
|
|
#11 |
|
claudiasharon
Original Poster
|
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! |
|
|
|
|
|
|
#12 |
|
velocitygrass
|
Which one did you download? Did you add it via the View->Add-Ins... command? |
|
|
|
|
|
#13 |
|
claudiasharon
Original Poster
|
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! |
|
|
|
|
|
|
#14 | |
|
velocitygrass
|
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:
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. |
|
|
|
|
|
|
#15 |
|
claudiasharon
Original Poster
|
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.
|
|
|
#16 |
|
velocitygrass
|
I still have 13 |
|
|
|
|
|
#17 |
|
claudiasharon
Original Poster
|
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! |
|
|
|
|
|
|
#18 |
|
velocitygrass
|
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
|
|
|
|
|
|
#19 |
|
claudiasharon
Original Poster
|
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! |
|
|
|
|
|
|
#20 |
|
velocitygrass
|
Double-clicking on the error should jump to the line. |
|
|
|
|
|
#21 |
|
claudiasharon
Original Poster
|
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! |
|
|
|
|
|
|
#22 | |
|
velocitygrass
|
Great ![]() Quote:
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. |
|
|
|
|
|
|
#23 |
|
claudiasharon
Original Poster
|
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! |
|
|
|
|
|
|
#24 |
|
velocitygrass
|
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. |
|
|
|
|
|
#25 |
|
claudiasharon
Original Poster
|
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! |
|
|
|
|
![]() |

Have you made some custom content?





Twitter
del.icio.us
StumbleUpon
Google