View Full Version : Has Pets/patch 1.26 broken the Smooth Jazz app? Anyone know of another way to edit jazz files?
Esmeralda
25th Oct 2011, 5:27 PM
Hi, I'm attempting to remake my 'No coughing while eating' mod to be compatible with Pets/patch 1.26 - I'm told that my existing mod interferes with the new 'Throw scrap' action for throwing scrap to pets, so I want to produce a new version from the new patched JazzData.package.
So I ran Smooth Jazz to produce a new mod, usually a quick and easy operation. However, this time, it insists there is a syntax error where there is none (at least, I don't think there is, but may be wrong as I'm not an expert coder), in the coding of the newly added "Throw Scrap" state machine...
Here's a copy of the 'Throw Scrap' state machine:
State "ThrowScrap"
{
Properties Public, OneShot, Explicit
Transitions to "Loop Eat"
Select on Parameter "eatPosture"
{
Value "diningIn"
{
Select on Parameter "UtensilType"
{
Value "fork"
{
Play 0x6b20c4f3:0x48000000:0x2C45510815302057 for "utensil"
Play 0x6b20c4f3:0x48000000:0x1C0960FF86BE0B01 for "x"
{
Actor "chairdining" Suffix "sitTemplateSuffix"
}
}
Value "hand"
{
Play 0x6b20c4f3:0x48000000:0x4D1FB95DBC39DC8C for "x"
{
Actor "diningChair" Suffix "sitTemplateSuffix"
}
Play 0x6b20c4f3:0x48000000:0x658BE3791BDB6694 for "thingToEat"
}
}
}
Value "diningOut"
{
Select on Parameter "UtensilType"
{
Value "fork"
{
Play 0x6b20c4f3:0x48000000:0x472B9B8C5A9F1CC4 for "utensil"
Play 0x6b20c4f3:0x48000000:0x6933FBB7E3D6B9B8 for "x"
{
Actor "chairdining" Suffix "sitTemplateSuffix"
}
}
It's saying that "there is a syntax error in Line 5548, character 40". "Line 5548" is the 11th line in the quoted code above, the one that says 'Value "fork"', and there is no character 40, that line ends with character 33. Smooth Jazz gives no idea as to what the syntax error is, nor does it even highlight the error (whatever it is!) in red as it always does.
Does anyone know of this issue? Unfortunately we can't ask the creator of Smooth Jazz, TigerM, as he hasn't logged in here for about two years. But it looks as if Pets/1.26 has added something that is no longer compatible with Smooth Jazz. Anyone know of another app to edit jazz files, or another way around this problem?
Buzzler
25th Oct 2011, 6:40 PM
Are you positive that you're looking at the right place? SmoothJazz still highlights syntax errors in red for me, but it already chokes on 'Blend In 0,2333333.0' in line 1791 for me. Since I don't have pets, I took the JAZZ file from the base game.
There do seem to be some changes, though.
cmomoney
25th Oct 2011, 6:59 PM
It seems Smooth Jazz in choking on the colons in the keys.my speculation-> If you can find the name map for the Pets CLIPs you can point Smooth Jazz to that package in Tools->Options. But I don't know where that is and s3pe won't show the names for the Pets CLIPs either(maybe its looking for the name map too).
Shimrod101
25th Oct 2011, 7:08 PM
The Smooth Jazz program looks like it's acting exactly the same to me with the new JazzData file. There have always been syntax errors in gobs and gobs of EA's jazz scripts, at least according to this program. I have always seen them highlighted in red though. I think the program is actually wrong, and these errors are not errors. An example is in the dancetogether jazz. Take a look at it and tell me if there is indeed an error there or not.
I would ignore the fact that Smooth Jazz proclaims this syntax error and proceed with modding it.
Esmeralda
25th Oct 2011, 7:59 PM
Thanks everyone. There seems to be something screwy going on with the new JazzData package and Smooth Jazz, and unfortunately I'm not experienced enough to figure it out, all I know is that I've never had a problem before with the previous patched JazzData packages. The last time I re-made this particular mod was with the Late Night version of JazzData and that was no problem.
The Smooth Jazz program looks like it's acting exactly the same to me with the new JazzData file. There have always been syntax errors in gobs and gobs of EA's jazz scripts, at least according to this program. I have always seen them highlighted in red though. I think the program is actually wrong, and these errors are not errors. An example is in the dancetogether jazz. Take a look at it and tell me if there is indeed an error there or not.
I would ignore the fact that Smooth Jazz proclaims this syntax error and proceed with modding it.
That's the problem, Smooth Jazz is saying there is a syntax error but is not highlighting anything in red.
I've just opened the dancetogether jazz in Smooth Jazz to see what error it displays, as you mentioned, but it's not showing anything as an error for me, so that's strange if it shows an error for you!
I would ignore the bogus syntax error and proceed, but Smooth Jazz won't let me export the finished package, because it claims it has errors! All I can export is an eat.jazz file, it won't let me do the 'package all into' a .package file option that I need to be able to do. Is there a way to get around that? Opening one of my previous versions of this mod in s3pe, I see it only contains the eat.jazz file and a '_KEY' file. Is there a way to just package this ourselves using s3pe? Where do we get a _KEY file from?
(@Buzzler, thanks for editing the script for readability - I couldn't get it to format properly when I pasted it here!)
UPDATE: Just tried using s3pe to update an old version of my mod by exporting the JAZZ file from the .package, renaming my new modified eat.jazz (which is all I can get Smooth Jazz to export) to the name of the exported file (S3_02D5DF13_00000000_D8CFB5186BA4FFE9_ingame%5cobjects%5ceating%5canimation%5ceat.jazz%%+JAZZ.jazz) and re-importing it as a 'duplicate file' using the same TGI numbers. s3pe imports it but doesn't recognise it as what it should be, the Value preview pane displays error messages rather than what it should display. So that doesn't work - there must be some extra step Smooth Jazz makes when packaging to new jazz script into a .package.
FURTHER UPDATE: Have now realised that all of the 'Play' lines in the 'Throw Scrap' section I quoted above from the Eat jazz script, make reference to values that were not defined in the beginning of the script - for instance, with 'Play 0x6b20c4f3:0x48000000:0x2C45510815302057', '0x6b20c4f3:0x48000000:0x2C45510815302057' is not defined under the Assign Actor section like everything used by all the other state machines. The game must be pulling them from somewhere else, and maybe this is why Smooth Jazz thinks this section is an error.
YET ANOTHER UPDATE: Just in case anyone is still reading this, I found something that finally enabled me to export a package. Using Play 0x6b20c4f3:0x48000000:0x79530DBEC5994AD9 for "x" as an example, in the 'Play' statement I deleted the T and G numbers so that there was only the Instance number left, eg Play 0x79530DBEC5994AD9 for "x", and added Assign Actor lines at the beginning of the script for the Type number, eg Assign Actor 0x6b20c4f3."fork" as "utensil" and so on. It had just suddenly struck me that in the World Adventures version of JazzData.package, some of the new animations were displayed in Type and Instance number form rather than in English as they had been in the base game jazz file. Having done all that TGI editing in 'Throw Scrap', I was finally able to achieve a syntax error free script and export the package file.
Have just tested it in my patched game to make sure it a) doesn't crash the game and b) does what it's supposed to do, ie stop all those coughing fits, and it works fine - BUT, I can't test the 'Throw Scrap' stuff nor make sure it doesn't cause any other pet-related problems, as I don't yet have Pets! I'm going to upload it and ask Pets owners to test it, and hope all's well!
Hope this will help point anyone else having this problem in at least somewhat the right direction.
vBulletin v3.0.14, Copyright ©2000-2013, Jelsoft Enterprises Ltd.