Search this Thread |
![]() |
#26 |
Battery
|
ok can you upload your solution ? |
|
|
![]() |
#27 |
CyrusBanefort |
@Battery , Here. Class2 and Class3 are my code, Class4 is the original cane code. https://mega.nz/folder/LNBiGRaS#TU4s0rmSIb20j99p8I9GfQ |
|
|
![]() |
#28 |
Battery
|
irgh its one of those vs solutions that prevents sd from opening it i need to create a new solution for it E: using static Cyrus.Sims3Game.CanesForEveryone.Class3; in class2.cs using directives cant contain things like static public etc E: this is a mistake on my end c# 9.0 allows that |
|
Last edited by Battery : 30th Oct 2020 at 11:36 PM.
|
![]() |
#29 |
CyrusBanefort |
@Battery , I did that because I got some errors with things on another class, put some using directives, tried to point to a exact class inside the other Classes, and VS suggested that to me. It worked, so I maintaned that in. |
|
|
![]() |
#30 |
Battery
|
class4.cs has no namespace at all but still contains a class in class4 you need to implement all your interfaces there are a few mising |
|
Last edited by Battery : 30th Oct 2020 at 11:05 PM.
|
![]() |
#31 |
CyrusBanefort |
@Battery , Class4 I did not use at all. It's just a copy/paste of the cane code, as I said. When trying to make the mod work, I just used Class2 and Class3. |
|
|
![]() |
#32 |
Battery
|
in the onpreload method you would need to apply the canges you made to your naming Cane.UseCane.Singleton = new NewUseCane.Definition(); wont work in this new context you need to access it via all paths Cane.UseCane.Singleton = new Class3.NewUseCane.Definition(); |
|
|
![]() |
#33 |
Battery
|
ok i cleaned up your solution you can use this as a base to start from. please dont use c# features tha sd doesnt support, im not going to redo the same classes over and over again anymore to fix the same erros this should compile |
|
|
![]() |
#34 |
CyrusBanefort |
It seems I found what has been causing some of the problems. The Jazz Script for the cane postures is limited to elders, and I'm trying to fix it... But SmoothJazz keeps giving me the same error, for some reason. I open the script and try to edit these lines:
Code:
Parameter "x:Age" = "elder" Parameter "y:Age" = "child" To these:
Code:
Parameter "x:Age" = "youngadult" Parameter "y:Age" = "child" When I try to save, after making just this one change, SmoothJazz tells me that the code got a syntax error on line 43. (For reference, those two lines are line 8 and 9) Even when I restore the script to its original form, it continues to give the same error. Would someone know what exactly is happening? (I also tried to change the x parameter to child, just to see if it would work, but it continued giving me the same error.) |
|
|
![]() |
#35 | |
Lyralei
|
Quote:
![]() So indeed, try to copy small bits and pieces and test those, rather than the whole lot. | |
|
|
![]() |
#36 | |
PuddingFace
|
Quote:
Are you using the latest version of SmoothJazz? The ModTheSims version is not the latest. Use this version http://www.simlogical.com/ContentUp...te/uploads/842/ and make sure you are using this version if you have both installed and also post what's on line 43. | |
|
|
![]() |
#37 |
CyrusBanefort |
@PuddingFace , Yes, apparently, I was using the wrong version, and I managed to create the jazz script, export it, and put it in the mod package. But now, when I try to use the cane, ErrorTrap gives me a script error and the sim is resetted. |
|
|
![]() |
#38 |
PuddingFace
|
You still have the original Jazz by EA right? You might have to work on the Jazz again. |
|
|
![]() |
#39 |
CyrusBanefort |
@PuddingFace , What exactly could be causing the script errors? Is putting "youngadult" correct or should I put something different? |
|
|
![]() |
#40 | |
PuddingFace
|
Quote:
Line 43 is giving error so post the code in line 42, 43 and 44. I can't tell otherwise. | |
|
|
![]() |
#41 |
CyrusBanefort |
@PuddingFace , Here's lines 40 to 45.
Code:
State "e_elderCane_idle01_" { Transitions to "Loop" Play 0x6b20c4f3:0x38000000:"a_elderCane_idle01_cane" for "cane" Play 0x6b20c4f3:0x38000000:"a_elderCane_idle01_x" for "x" } |
|
|
![]() |
#42 |
PuddingFace
|
I don't see anything that could be an error. What is the error exactly, does it say anything? And also post the line 39. Maybe just upload the Jazz file completely so I can open it on my computer with Smooth Jazz and check. |
|
Last edited by PuddingFace : 4th Nov 2020 at 6:09 AM.
|
![]() |
CyrusBanefort |
This message has been deleted by CyrusBanefort.
Reason: Wrong message
|
![]() |
#43 |
CyrusBanefort |
@PuddingFace . According to the other version of SmoothJazz, the error was in the character 24. Oh, by the way, I ended up sending lines 39 to 45, not 40 to 45. Here's the jazz file of the cane animations: |
|
|
![]() |
#44 | |
Lyralei
|
Quote:
(scroll to "I got a "Parser doesn't recognise literal" error, what do I do?" )https://modthesims.info/showthread....118#post5637118 Hope that helps! | |
|
|
![]() |
#45 |
CyrusBanefort |
Ok, I managed to get rid of the script errors by deleting the T and G values in the jazz scripts. But, I still can't get the animations to actually appear. What could I be doing wrong? |
|
|
![]() |
#46 |
PuddingFace
|
Um I didn't get any error with Smooth Jazz. It saved into the package just fine. Uploaded the .package with the .Jazz file inside. Edit:-what do you mean by t and g values? |
|
|
![]() |
#47 |
CyrusBanefort |
@PuddingFace , After I downloaded the latest version of SmoothJazz, that was not the problem anymore, it was the script errors ErrorTrap would give when trying to use the cane. This was also solved, and now I am here trying to figure out why the animations don't play. |
|
|
![]() |
#48 |
PuddingFace
|
Oh ok sorry. Upload the error trap document maybe? |
|
|
![]() |
#49 |
CyrusBanefort |
@PuddingFace , It's okay. That problem was solved, errortrap is not giving me script errors anymore. However, the animations still don't appear, even if the script is executed correctly. Perhaps there's a difference in the elder skeleton and the adult skeleton? That goes in the realm of guesswork, as animations aren't my forte. |
|
|
![]() |
#50 |
PuddingFace
|
The skeletons are same but maybe we need to duplicate and then rename the duplicated animations using Blender. Export the animations with Canes to a folder. Now import the animations into Blender. Then export but change the name, switch the 'e's to 'a's so e2a becomes a2a for eg. The animations that are already 'a' don't need to be changed. Also in the Jazz script change x:age from elder to adult. The Jazz Script you gave me seems to be about harassing with cane and not about walking with the cane. Maybe I am mistaken. |
|
|
![]() |