Replies: 2 (Who?), Viewed: 136 times.
Lab Assistant
Original Poster
#1 Old 22nd May 2022 at 9:18 PM
Default I am Currently stuck in the "Adding Interactions to Existing Objects (or Sims)" tutorial
I have followed the tutorial to the best of my abilities. However, errors appear on the two separate words CheckMyTemp. The error is CS0103 and the message that appears is "The name 'CheckMyTemp' does not exist in the current context.
My question is how would I go about fixing this error? I will Link the tutorial that I am following along with pictures of my code from Class1 and my Assembly

The link to the tutorial that I have questions about: http://www.simlogical.com/ContentUploadsRemote/uploads/1596/How_inject_interactio_with_pure_script_mod.pdf

I have been stuck on this tutorial for a good while. I have done and revisited

Tutorial #1: https://modthesims.info/wiki.php?title=Tutorial:Sims_3_Pure_Scripting_Modding
Tutorial #2: https://modthesims.info/wiki.php?title=Tutorial:Sims_3_Object_Modding
Tutorial #3 https://modthesims.info/showthread.php?t=491875

However, even after revisiting and scratching my head around the tutorials that I did before this one. I still made
no progress in advancing in the fourth tutorial that I decided to follow. Any help would be appreciated.
Screenshots
Advertisement
Field Researcher
#2 Old 23rd May 2022 at 2:32 AM
In the tutorial you're following, "CheckMyTemp" is the name of your custom interaction's class. Since you haven't yet made an interaction class, the C# compiler doesn't know what you're referring to when you say "CheckMyTemp."

If you continue following tutorial #3, you'll create an example "Show Sim Names" immediate interaction with a "Singleton" InteractionDefinition field inside of it. Once you've added this class (or your own based off of it), change "CheckMyTemp" to the name of that class ("ShowNotification" in the tutorial), and the error should go away.

"The Internet is the first thing that humanity has built that humanity doesn't understand, the largest experiment in anarchy that we have ever had." - Eric Schmidt

If you enjoy the mods I put out, consider supporting me on patreon: www.patreon.com/Gamefreak130
Lab Assistant
Original Poster
#3 Old 23rd May 2022 at 5:41 PM
Quote:
Originally Posted by gamefreak130
In the tutorial you're following, "CheckMyTemp" is the name of your custom interaction's class. Since you haven't yet made an interaction class, the C# compiler doesn't know what you're referring to when you say "CheckMyTemp."

If you continue following tutorial #3, you'll create an example "Show Sim Names" immediate interaction with a "Singleton" InteractionDefinition field inside of it. Once you've added this class (or your own based off of it), change "CheckMyTemp" to the name of that class ("ShowNotification" in the tutorial), and the error should go away.


Thank you. I took a look at tutorial #3 again and found the set of code which makes the interaction class. Once I added that code. The two errors which was affecting "CheckMyTemp" disappeared. I tested it in the game and the mod worked. I was able to successfully get an interaction to appear whenever a sim clicks on another sim. Which the interaction would show a notification of the sims name whenever that interaction is clicked. I will include pictures of the line of code that I added.

Again, thank you. I appreciate your help as I really want to become competent in becoming a sims 3 Modder. I will most likely use this forum if I ever get stuck again.
Screenshots
Back to top