- Site Map >
- Modding and Creation >
- Sims 3 Creation >
- Modding Discussion >
- I make a script from a hoverboard for motorcycles and bicycles, but I do not work the object in the game
- Site Map >
- Modding and Creation >
- Sims 3 Creation >
- Modding Discussion >
- I make a script from a hoverboard for motorcycles and bicycles, but I do not work the object in the game
Replies: 16 (Who?), Viewed: 3605 times.
#1
24th May 2019 at 5:21 PM
Posts: 67
Thanks: 85 in 1 Posts
I make a script from a hoverboard for motorcycles and bicycles, but I do not work the object in the game
Hi, i am 3ttu (mittsu (well you know, 三㤠in japanese. its just sound like my own nickname - Mittz))! I think it is worth saying that I do not know anything about coding, I couldn't even go because of illness for a couple of lessons at school on Basic, which was no more
Despite it all, looking at codes of the other guys on this site - I can quite understand what they meant (although, again, I don't understand everything because I have no experience with this. And this is my first.. code?)
I'm quite interested in coding and I've already looked through, probably, all the lessons here. I already have ideas for mods and this is one of them:
I love how these boards go flying everywhere. I want to make that motorcycles and bikes go also like.
I can buy an object in the shopping mode and my game don't crush, but when I put and hover the cursor over it - there is a hint with the his catalog.
To be honest, I'm sure it's done wrong, but I can't think of anything else to do with it... I hope for your help? below archive with files..
Sorry for English, it's not my native language :ь
Attached files:
dll and package.rar (1.18 MB, 11 downloads) - View custom content | ||||||||||
----------- --------- -------- ----- -------- ----- -------- ---- ..A.... 3584 1413 39% 24-05-19 15:10 F4F54386 3ttu_motorcycleChopper_DriveEverywhere.dll ..A.... 1676780 1237093 73% 24-05-19 19:13 E0A9FD94 3ttu_motorcycleChopper_DriveEverywhere.package ----------- --------- -------- ----- -------- ----- -------- ---- 1680364 1238506 73% 2 |
||||||||||
vs project.rar (36.9 KB, 10 downloads) - View custom content | ||||||||||
----------- --------- -------- ----- -------- ----- -------- ---- ..A.... 3976 989 24% 17-05-19 01:57 37F634B9 3ttu.Sims3Game/3ttu.Sims3Game.csproj ..A.... 144 138 95% 13-03-19 21:52 B9422E06 3ttu.Sims3Game/3ttu.Sims3Game.csproj.user ..A.... 4523 1130 24% 24-05-19 15:10 535560FA 3ttu.Sims3Game/3ttu_motorcycleChopper_DriveEverywhere.cs ..A.... 3584 1413 39% 24-05-19 15:10 F4F54386 3ttu.Sims3Game/bin/x86/Debug/3ttu.Sims3Game.dll ..A.... 9728 533 5% 24-05-19 15:10 C4A1F894 3ttu.Sims3Game/bin/x86/Debug/3ttu.Sims3Game.pdb ..A.... 42 42 100% 13-03-19 21:59 B9EC8A73 3ttu.Sims3Game/obj/Debug/3ttu.Sims3Game.csproj.CoreCompileInputs.cache ..A.... 40488 3505 8% 13-03-19 21:59 27809643 3ttu.Sims3Game/obj/Debug/3ttu.Sims3Game.csprojAssemblyReference.cache ..A.... 3584 1402 39% 13-03-19 21:50 6D2E2AA2 3ttu.Sims3Game/obj/Debug/3ttu.Sims3Game.dll ..A.... 9728 533 5% 13-03-19 21:50 C4A1F894 3ttu.Sims3Game/obj/Debug/3ttu.Sims3Game.pdb ..A.... 244344 19549 8% 17-05-19 01:35 775EDA54 3ttu.Sims3Game/obj/Debug/AssemblyReference.cache ..A.... 6221 1125 18% 13-03-19 21:59 669E68B2 3ttu.Sims3Game/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache ..A.... 42 42 100% 24-05-19 15:10 B9EC8A73 3ttu.Sims3Game/obj/x86/Debug/3ttu.Sims3Game.csproj.CoreCompileInputs.cache ..A.... 467 141 30% 24-05-19 15:10 37F31CAB 3ttu.Sims3Game/obj/x86/Debug/3ttu.Sims3Game.csproj.FileListAbsolute.txt ..A.... 3584 1413 39% 24-05-19 15:10 F4F54386 3ttu.Sims3Game/obj/x86/Debug/3ttu.Sims3Game.dll ..A.... 9728 533 5% 24-05-19 15:10 C4A1F894 3ttu.Sims3Game/obj/x86/Debug/3ttu.Sims3Game.pdb ..A.... 1509 765 50% 24-05-19 02:19 FD5D1F61 3ttu.Sims3Game/obj/x86/Debug/DesignTimeResolveAssemblyReferences.cache ..A.... 6228 1131 18% 17-05-19 01:55 906F6561 3ttu.Sims3Game/obj/x86/Debug/DesignTimeResolveAssemblyReferencesInput.cache ..A.... 2047 894 43% 13-03-19 22:19 7C25E51F 3ttu.Sims3Game/Properties/AssemblyInfo.cs ...D... 0 0 0% 13-03-19 22:08 00000000 3ttu.Sims3Game/obj/x86/Debug/TempPE ...D... 0 0 0% 24-05-19 15:10 00000000 3ttu.Sims3Game/bin/x86/Debug ...D... 0 0 0% 13-03-19 20:56 00000000 3ttu.Sims3Game/obj/Debug/TempPE ...D... 0 0 0% 24-05-19 15:10 00000000 3ttu.Sims3Game/obj/x86/Debug ...D... 0 0 0% 13-03-19 20:56 00000000 3ttu.Sims3Game/bin/Debug ...D... 0 0 0% 13-03-19 20:56 00000000 3ttu.Sims3Game/bin/Release ...D... 0 0 0% 13-03-19 22:08 00000000 3ttu.Sims3Game/bin/x86 ...D... 0 0 0% 17-05-19 01:35 00000000 3ttu.Sims3Game/obj/Debug ...D... 0 0 0% 13-03-19 22:08 00000000 3ttu.Sims3Game/obj/x86 ...D... 0 0 0% 13-03-19 22:08 00000000 3ttu.Sims3Game/bin ...D... 0 0 0% 13-03-19 22:08 00000000 3ttu.Sims3Game/obj ...D... 0 0 0% 13-03-19 22:19 00000000 3ttu.Sims3Game/Properties ...D... 0 0 0% 24-05-19 19:15 00000000 3ttu.Sims3Game ----------- --------- -------- ----- -------- ----- -------- ---- 349967 35278 10% 31 |
Advertisement
#2
24th May 2019 at 6:07 PM
Posts: 3,860
Thanks: 8560 in 67 Posts
Moooost of the time it's usually that the namespace + class isn't correctly noted. It is however really confusing when it happens. I took a peek and it seems you forgot a small bit to add, which is your user name
So, always remember to simply copy the correct namespace, because it's always your script's namespace + first class. So: Sims3.Gameplay.Objects.Miscellaneous.3ttu.MotorcycleChopper_DriveEverywhere
Hope that helps! I would recommend maybe removing the 3 from your namespace though. Visual studio and C# sees this as an integer and not necessarily a part of the string. So always make sure it's ONLY a string and NO numbers
So, always remember to simply copy the correct namespace, because it's always your script's namespace + first class. So: Sims3.Gameplay.Objects.Miscellaneous.3ttu.MotorcycleChopper_DriveEverywhere
Hope that helps! I would recommend maybe removing the 3 from your namespace though. Visual studio and C# sees this as an integer and not necessarily a part of the string. So always make sure it's ONLY a string and NO numbers
#3
24th May 2019 at 7:01 PM
Posts: 67
Thanks: 85 in 1 Posts
Quote: Originally posted by Lyralei
Hope that helps! I would recommend maybe removing the 3 from your namespace though. Visual studio and C# sees this as an integer and not necessarily a part of the string. So always make sure it's ONLY a string and NO numbers |
Oh, that's why my name was underlined in red in the project.. xD thanks, I didn't know this
Quote: Originally posted by Lyralei
Moooost of the time it's usually that the namespace + class isn't correctly noted. It is however really confusing when it happens. I took a peek and it seems you forgot a small bit to add, which is your user name So, always remember to simply copy the correct namespace, because it's always your script's namespace + first class. So: Sims3.Gameplay.Objects.Miscellaneous.3ttu.MotorcycleChopper_DriveEverywhere |
Sorry, so.. I correctly understand that I have to specify full path? like, so:
Code:
protected override string GetInteractionName(Sim a, Sims3.Gameplay.Objects.Miscellaneous.3ttu.MotorcycleChopper_DriveEverywhere target, InteractionObjectPair interaction)
Or i forgot my name in OBJK's resource?
Sorry, i not entirely understand.
#4
25th May 2019 at 1:12 PM
Posts: 67
Thanks: 85 in 1 Posts
I added a bit to the DLL, thinking that just "UseHoverboard" would not work.. but nothing has changed..
Attached files:
dll and package 2.rar (1.18 MB, 7 downloads) - View custom content | ||||||||||
----------- --------- -------- ----- -------- ----- -------- ---- ..A.... 1676785 1237098 73% 25-05-19 03:09 4EDE3038 3ttu_motorcycleChopper_DriveEverywhere.package ..A.... 3584 1413 39% 25-05-19 02:54 F4F54386 3ttu_motorcycleChopper_DriveEverywhere.dll ----------- --------- -------- ----- -------- ----- -------- ---- 1680369 1238511 73% 2 |
Space Pony
#5
25th May 2019 at 2:19 PM
Posts: 433
Thanks: 792 in 6 Posts
hey 3ttu,
Lyralei is right you must not have your namespace begin with a digit see https://stackoverflow.com/questions...g-with-a-number.
And when i look at your dll there is nothing there. arent you getting any compile errors ? because i get a few when trying to compile your code.
Lyralei is right you must not have your namespace begin with a digit see https://stackoverflow.com/questions...g-with-a-number.
And when i look at your dll there is nothing there. arent you getting any compile errors ? because i get a few when trying to compile your code.
#6
25th May 2019 at 2:55 PM
Posts: 3,860
Thanks: 8560 in 67 Posts
Objk indeed! In the code, you never want to ever have your namespace mentioned like that in a class. Not in this case at least. So this should always be just:
Ah yeah I had a few warnings as well but somehow that did not enter my fried brain yesterday Good catch Battery
Indeed, there are a few issues in the script itself and C#/Visual studio is really strict when it comes to errors. For good reason too! It basically is a way Visual studio points out that it doesn't understand specific bits as well. Which means, C# doesn't get it, thus refuses to continue reading the script.
Now, most of these errors exist out of error mistakes really, and the lack of ending brackets at specific classes, which if you're new to coding is completely fine! I'll give one away though.
Why : ? Because it's an overload You can read more about them here: https://csharpindepth.com/articles/Overloading
If you wanna, I would really recommend checking out some basic C# videos, because it really does make your coding experience (or coding for ts3 in general) so much easier and you're starting to really understand what error means which, because they are indeed super vague. :P
Code:
protected override string GetInteractionName(Sim a, MotorcycleChopper_DriveEverywhere target, InteractionObjectPair interaction)
Ah yeah I had a few warnings as well but somehow that did not enter my fried brain yesterday Good catch Battery
Indeed, there are a few issues in the script itself and C#/Visual studio is really strict when it comes to errors. For good reason too! It basically is a way Visual studio points out that it doesn't understand specific bits as well. Which means, C# doesn't get it, thus refuses to continue reading the script.
Now, most of these errors exist out of error mistakes really, and the lack of ending brackets at specific classes, which if you're new to coding is completely fine! I'll give one away though.
Code:
THIS: List<Hoverboard> list = sim.Inventory.FindAll<Hoverboard>(checkInUse: false); SHOULD BE: List<Hoverboard> list = sim.Inventory.FindAll<Hoverboard>(checkInUse, false);
Why : ? Because it's an overload You can read more about them here: https://csharpindepth.com/articles/Overloading
If you wanna, I would really recommend checking out some basic C# videos, because it really does make your coding experience (or coding for ts3 in general) so much easier and you're starting to really understand what error means which, because they are indeed super vague. :P
#7
25th May 2019 at 4:13 PM
Last edited by 3ttu : 25th May 2019 at 5:45 PM.
Posts: 67
Thanks: 85 in 1 Posts
Quote: Originally posted by Battery
hey 3ttu, Lyralei is right you must not have your namespace begin with a digit see https://stackoverflow.com/questions...g-with-a-number. And when i look at your dll there is nothing there. arent you getting any compile errors ? because i get a few when trying to compile your code. |
Oh, I think I'm confusing this with "build-build solution" (F7)? :? sorry, I thought that was compile. ^^'
Quote: Originally posted by Lyralei
Objk indeed! In the code, you never want to ever have your namespace mentioned like that in a class. Not in this case at least. So this should always be just: Code:
Code:
protected override string GetInteractionName(Sim a, MotorcycleChopper_DriveEverywhere target, InteractionObjectPair interaction) |
I thought writing just "MotorcycleChopper_DriveEverywhere" was okay, because it's painted green, thx.
Quote: Originally posted by Lyralei
Why : ?Because it's an overload You can read more about them here:https://csharpindepth.com/articles/Overloading |
Hm.. Interesing. thanku!
Quote: Originally posted by Lyralei
If you wanna, I would really recommend checking out some basic C# videos, because it really does make your coding experience (or coding for ts3 in general) so much easier and you're starting to really understand what error means which, because they are indeed super vague.:P |
Oh, yeah, I was actually going! (actually, it was worth doing before I created this thread lol)
#8
25th May 2019 at 4:40 PM
Posts: 67
Thanks: 85 in 1 Posts
I tried to compile using the command line.. and there really are a lot of mistakes (not surprisingly). :/
Space Pony
#9
25th May 2019 at 5:36 PM
Posts: 433
Thanks: 792 in 6 Posts
Hey 3ttu,
you can compile without the command line via the ide.
In the ide i use f5 is the shortcut for compile and RUN.
The run part beeig the problem, since you cant "run" a dll. Visual studio should give you that feedback when you press f5. Try build project instead (that is if f5 really is build+run in visual studio).
You need to get rid of all the errors before the compile process finishes. So i would suggest starting at the first error the compiler throws out and work your way trough them till there are no errors left.
You might want to post the error messages here to let us help you if you get stuck or have a problem you cant solve yourself
hope your endeavors in the coding world begin to bear fruit soon
you can compile without the command line via the ide.
In the ide i use f5 is the shortcut for compile and RUN.
The run part beeig the problem, since you cant "run" a dll. Visual studio should give you that feedback when you press f5. Try build project instead (that is if f5 really is build+run in visual studio).
You need to get rid of all the errors before the compile process finishes. So i would suggest starting at the first error the compiler throws out and work your way trough them till there are no errors left.
You might want to post the error messages here to let us help you if you get stuck or have a problem you cant solve yourself
hope your endeavors in the coding world begin to bear fruit soon
#10
25th May 2019 at 6:09 PM
Posts: 67
Thanks: 85 in 1 Posts
Quote: Originally posted by Battery
Hey 3ttu, you can compile without the command line via the ide. In the ide i use f5 is the shortcut for compile and RUN. The run part beeig the problem, since you cant "run" a dll. Visual studio should give you that feedback when you press f5. Try build project instead (that is if f5 really is build+run in visual studio). You need to get rid of all the errors before the compile process finishes. So i would suggest starting at the first error the compiler throws out and work your way trough them till there are no errors left. |
but doesn't "build" just create a cs file? no compilation? when I build - VS says that there are no errors
Quote:
You might want to post the error messages here to let us help you if you get stuck or have a problem you cant solve yourself |
thanks for the offer. if it's something I can't find or understand , I'll try asking here
Quote:
(that is if f5 really is build+run in visual studio). |
when I wrote that comment I mixed up F5 and F7, although I kept it in my head.. :facepalm:
Quote:
hope your endeavors in the coding world begin to bear fruit soon |
wow.. you think too well of me.XD although in fact, I also dream about this
Space Pony
#11
25th May 2019 at 6:14 PM
Posts: 433
Thanks: 792 in 6 Posts
Yeah sorry i just skimmed the text and didnt read the f7 part my bad.
so when you got your namespace fixed what errors are you getting ?
so when you got your namespace fixed what errors are you getting ?
#12
25th May 2019 at 8:32 PM
Posts: 67
Thanks: 85 in 1 Posts
Quote: Originally posted by Battery
so when you got your namespace fixed what errors are you getting ? |
You know, I created a new project and copied the code from the old one.. don't know why, but in the old I have, under "building" there were no errors, but now there are! basically, I fixed them and no more error alerts appear.
I don't understand these things now:
1) things highlighted in bold - gray, but if you remove them there or remove the "m" i have errors.. What to do?
Code:
private static readonly string sLocalizationKey = "Gameplay/Objects/EP11/Hoverboard"; public static bool kDebug = true; private bool mBeingPlaced; private bool mPlaced = true; private bool mUsingHoverboardAlways; private bool mUsingHoverboardOnLot; private bool mRestoreUseAfterRouting;
2) what are "m", "k", "t", etc.? m - main, k - key, t - target? where can I read about it?
3)it is normal that the DLL is not in
Code:
(like here), but in Documents\Visual Studio xxxx\Projects\{YourProjectName}\{yourprojectname}\bin\Release
Code:
?
Documents\Visual Studio xxxx\Projects\{YourProjectName}\{yourprojectname}\bin\x86\Debug
Attached files:
cs project 3.rar (511.8 KB, 9 downloads) - View custom content | ||||||||||
----------- --------- -------- ----- -------- ----- -------- ---- ..A..H. 41472 3741 9% 25-05-19 22:26 1A030B1A 3ttu_DriveEverywhere/.vs/3ttu_DriveEverywhere/v15/.suo ..A.... 4001 1005 25% 25-05-19 21:27 5E9B16BD 3ttu_DriveEverywhere/3ttu_DriveEverywhere.csproj ..A.... 1491 502 33% 25-05-19 21:27 BC892F7E 3ttu_DriveEverywhere/3ttu_DriveEverywhere.sln ..A.... 15360 6942 45% 25-05-19 22:01 FB303680 3ttu_DriveEverywhere/bin/x86/Debug/3ttu_DriveEverywhere.dll ..A.... 42496 6786 15% 25-05-19 22:01 89645C8E 3ttu_DriveEverywhere/bin/x86/Debug/3ttu_DriveEverywhere.pdb ..A.... 18870 3637 19% 25-05-19 21:57 560E9496 3ttu_DriveEverywhere/Class1.cs ..A.... 42 42 100% 25-05-19 21:26 CADE4B7C 3ttu_DriveEverywhere/obj/Debug/3ttu_DriveEverywhere.csproj.CoreCompileInputs.cache ..A.... 40488 3497 8% 25-05-19 21:26 3F4C096D 3ttu_DriveEverywhere/obj/Debug/3ttu_DriveEverywhere.csprojAssemblyReference.cache ..A.... 0 0 0% 25-05-19 21:20 00000000 3ttu_DriveEverywhere/obj/Debug/build.force ..A.... 6228 1133 18% 25-05-19 21:20 87C113AF 3ttu_DriveEverywhere/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache ..A.... 42 42 100% 25-05-19 22:01 CADE4B7C 3ttu_DriveEverywhere/obj/x86/Debug/3ttu_DriveEverywhere.csproj.CoreCompileInputs.cache ..A.... 512 147 28% 25-05-19 22:01 BDAF0381 3ttu_DriveEverywhere/obj/x86/Debug/3ttu_DriveEverywhere.csproj.FileListAbsolute.txt ..A.... 15360 6942 45% 25-05-19 22:01 FB303680 3ttu_DriveEverywhere/obj/x86/Debug/3ttu_DriveEverywhere.dll ..A.... 42496 6786 15% 25-05-19 22:01 89645C8E 3ttu_DriveEverywhere/obj/x86/Debug/3ttu_DriveEverywhere.pdb ..A.... 6234 1136 18% 25-05-19 21:26 91DB1087 3ttu_DriveEverywhere/obj/x86/Debug/DesignTimeResolveAssemblyReferencesInput.cache ..A.... 2059 903 43% 25-05-19 21:20 F2B9BC00 3ttu_DriveEverywhere/Properties/AssemblyInfo.cs ...D... 0 0 0% 25-05-19 21:20 00000000 3ttu_DriveEverywhere/.vs/3ttu_DriveEverywhere/v15/Server/sqlite3 ...D... 0 0 0% 25-05-19 21:20 00000000 3ttu_DriveEverywhere/.vs/3ttu_DriveEverywhere/v15/Server ...D... 0 0 0% 25-05-19 21:26 00000000 3ttu_DriveEverywhere/obj/x86/Debug/TempPE ...D... 0 0 0% 25-05-19 21:20 00000000 3ttu_DriveEverywhere/.vs/3ttu_DriveEverywhere/v15 ...D... 0 0 0% 25-05-19 22:01 00000000 3ttu_DriveEverywhere/bin/x86/Debug ...D... 0 0 0% 25-05-19 21:20 00000000 3ttu_DriveEverywhere/obj/Debug/TempPE ...D... 0 0 0% 25-05-19 22:01 00000000 3ttu_DriveEverywhere/obj/x86/Debug ...D... 0 0 0% 25-05-19 21:20 00000000 3ttu_DriveEverywhere/.vs/3ttu_DriveEverywhere ...D... 0 0 0% 25-05-19 21:20 00000000 3ttu_DriveEverywhere/bin/Debug ...D... 0 0 0% 25-05-19 21:20 00000000 3ttu_DriveEverywhere/bin/Release ...D... 0 0 0% 25-05-19 21:26 00000000 3ttu_DriveEverywhere/bin/x86 ...D... 0 0 0% 25-05-19 21:26 00000000 3ttu_DriveEverywhere/obj/Debug ...D... 0 0 0% 25-05-19 21:26 00000000 3ttu_DriveEverywhere/obj/x86 ...D.H. 0 0 0% 25-05-19 21:20 00000000 3ttu_DriveEverywhere/.vs ...D... 0 0 0% 25-05-19 21:26 00000000 3ttu_DriveEverywhere/bin ...D... 0 0 0% 25-05-19 21:26 00000000 3ttu_DriveEverywhere/obj ...D... 0 0 0% 25-05-19 21:20 00000000 3ttu_DriveEverywhere/Properties ...D... 0 0 0% 25-05-19 21:57 00000000 3ttu_DriveEverywhere ..A.... 0 0 0% 25-05-19 21:20 00000000 3ttu_DriveEverywhere/.vs/3ttu_DriveEverywhere/v15/Server/sqlite3/db.lock ..A.... 4096 81 1% 25-05-19 21:20 E44C3219 3ttu_DriveEverywhere/.vs/3ttu_DriveEverywhere/v15/Server/sqlite3/storage.ide ..A.... 32768 1857 5% 25-05-19 22:05 F8266787 3ttu_DriveEverywhere/.vs/3ttu_DriveEverywhere/v15/Server/sqlite3/storage.ide-shm ..A.... 3489672 475533 13% 25-05-19 22:22 7F3318C9 3ttu_DriveEverywhere/.vs/3ttu_DriveEverywhere/v15/Server/sqlite3/storage.ide-wal ----------- --------- -------- ----- -------- ----- -------- ---- 3763687 520712 13% 38 |
||||||||||
dll and package 3.rar (1.19 MB, 7 downloads) - View custom content | ||||||||||
----------- --------- -------- ----- -------- ----- -------- ---- ..A.... 15360 6942 45% 25-05-19 22:01 FB303680 3ttu_motorcycleChopper_DriveEverywhere.dll ..A.... 1684917 1243872 73% 25-05-19 22:04 A8A31CC8 3ttu_motorcycleChopper_DriveEverywhere.package ----------- --------- -------- ----- -------- ----- -------- ---- 1700277 1250814 73% 2 |
#13
25th May 2019 at 8:50 PM
Posts: 67
Thanks: 85 in 1 Posts
by the way! In OBJK a Script>String do I need to name as namespace (_3ttu_DriveEverywhere) in a project or as a project name (3ttu_DriveEverywhere.cs) or as a loaded DLL (3ttu_motorcycleChopper_DriveEverywhere.dll)? I'm little blunt..
now is .. oh i forgotten to change the name entirely and so there Sims3.Gameplay.Objects.Miscellaneous._3ttu.MotorcycleChopper_DriveEverywhere. :facepalm:
It should be Sims3._3ttu_DriveEverywhere?
now is .. oh i forgotten to change the name entirely and so there Sims3.Gameplay.Objects.Miscellaneous._3ttu.MotorcycleChopper_DriveEverywhere. :facepalm:
It should be Sims3._3ttu_DriveEverywhere?
#14
25th May 2019 at 10:09 PM
Posts: 3,860
Thanks: 8560 in 67 Posts
So the 'm, t, k' are actually variables, or for us to use them as things that need to hold data/info. Usually, at first, they're always set to 'false' or an empty string, 0 etc. the usage of this is basically... say, we want to store the name of a specific sim, and that name we want to use in different kind of functions, then you'd want to use a variable just for easier access really, and not having to copy paste any function/method to get the name constantly. If you REALLY want to remove the m, then you'll need to change this throughout your code (So within classes, functions, etc). I recommend not changing these at all really. You can read about them here: https://www.guru99.com/c-sharp-variables-operator.html
Regarding the export, I thiiiink that's probably because you set your active to 86x. Which is totally fine! As long as there is A dll then you're good I wouldn't advice saving it as a 64x one though, not sure if ts3 will like that...
In the OBJK You add the Namespace of your script + the Class (In your case indeed Sims3.Gameplay.Objects.Miscellaneous._3ttu.MotorcycleChopper_DriveEverywhere).
In the script itself whenever you mention the Target (Aka "Which object should I execute this function to?") Should always be MotorcycleChopper_DriveEverywhere
Regarding the export, I thiiiink that's probably because you set your active to 86x. Which is totally fine! As long as there is A dll then you're good I wouldn't advice saving it as a 64x one though, not sure if ts3 will like that...
In the OBJK You add the Namespace of your script + the Class (In your case indeed Sims3.Gameplay.Objects.Miscellaneous._3ttu.MotorcycleChopper_DriveEverywhere).
In the script itself whenever you mention the Target (Aka "Which object should I execute this function to?") Should always be MotorcycleChopper_DriveEverywhere
#15
26th May 2019 at 8:43 PM
Last edited by 3ttu : 26th May 2019 at 9:05 PM.
Posts: 67
Thanks: 85 in 1 Posts
I was a little confused about String for OBJK AT first, but now I've fixed it and I can use the object in the game!
Because I copied the code from hoverboard - I have the applicable "to fly, not walk" and "walk"; when I press it on them, it only works on hoverboards so far.. but I will try to fix it!
(I think this and that this object goes on the road - depends on the subclass of the object, at present in my project it comes from a motorcycle)
UPD: i change it, but now sim is calling a taxi instead of using my moto in any variant.
is it because of these errors (it is highlighted in green wavy underline, but in the end still compiled) -
(just in case I leave it without translation) or because I need to make a new class (?) by type UsingHoverboard?
Because I copied the code from hoverboard - I have the applicable "to fly, not walk" and "walk"; when I press it on them, it only works on hoverboards so far.. but I will try to fix it!
(I think this and that this object goes on the road - depends on the subclass of the object, at present in my project it comes from a motorcycle)
UPD: i change it, but now sim is calling a taxi instead of using my moto in any variant.
is it because of these errors (it is highlighted in green wavy underline, but in the end still compiled) -
Code:
1>C:\Users\User\Documents\VS Projects\3ttu_DriveEverywhere\Class1.cs(360,32,360,63): warning CS0108: "MotorcycleChopper_DriveEverywhere.kHoverboardMedatorInstanceNames" Ñкрывает наÑледуемый член "Hoverboard.kHoverboardMedatorInstanceNames". ЕÑли Ñкрытие было намеренным, иÑпользуйте ключевое Ñлово new.
(just in case I leave it without translation) or because I need to make a new class (?) by type UsingHoverboard?
#16
30th May 2019 at 11:57 AM
Posts: 3,860
Thanks: 8560 in 67 Posts
So I took a look at the code and it seems that it needs geostates, which the motorcycle doesn't have. So I think creating a motorcycle like this is going to get a little trickier than expected. It's always super important to know what you're copying, understand what it's calling/expecting. Because else you're going to make it really tough on yourself.
I think what the warning is saying without having looked at that specific bit is the fact that the variable isn't correctly assigned I think. Unless it's linked with a constructor, which then you'd want to use the new keyword. It really is just figuring stuff out and debugging the hell out of it :P
I think what the warning is saying without having looked at that specific bit is the fact that the variable isn't correctly assigned I think. Unless it's linked with a constructor, which then you'd want to use the new keyword. It really is just figuring stuff out and debugging the hell out of it :P
#17
6th Jun 2019 at 10:52 PM
Posts: 67
Thanks: 85 in 1 Posts
Quote: Originally posted by Lyralei
So I took a look at the code and it seems that it needs geostates, which the motorcycle doesn't have. So I think creating a motorcycle like this is going to get a little trickier than expected. It's always super important to know what you're copying, understand what it's calling/expecting. Because else you're going to make it really tough on yourself. I think what the warning is saying without having looked at that specific bit is the fact that the variable isn't correctly assigned I think. Unless it's linked with a constructor, which then you'd want to use the new keyword. It really is just figuring stuff out and debugging the hell out of it :P |
Ah, that's why when I did manage to make the action work - the object (motorcycle) was not, and the animation from the hoverboard remained. it's logical.
By the way.. "posture" and "machine animation" as I understand things are different, but the motorcycle a have pose (if not mistaken). do I understand correctly that in this case, you will need to make separate animations based on the original? and why doesn't the "cool exhaust"function work? do i need to write separate code for this object? it seemed to me that if I will simply refer to this then the option will be.
okay, thanks for your help, but I guess it not under force yet.
Who Posted
|