nicksapp1209
New member
I just downloaded the Jointed rail freeware item UTLX 23000 gallon Funnel Flow tankcar, but the CM indicated an error and this turned upError: Script class does not match asset kind (vehicle).) Any way to fix this?
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Here's how it fixed itself...It seems after I launched trainz the error just disappeared, don't know how it just fixed itself.
Hmm, no I don't, and haven't done so for years. What I did was to commit those assets you sent me in TS10 and TS12 and all were clear of errors....
The secret is the system setting for Commit after import--John and I don't auto-commit, Paul did. Note the similar lack of success in that Trackside asset problem the OP had for a time... with J-R assets!
- ... // Frank
OK, sorry I misunderstood you, We'd been better off with VOI, but you keep those funny hours! In any event, we agree they went away when a commit happened. You got no error validating the asset manually, I kept getting them on TS09 AND two version (levels) of TS12... and I've lost more hair (not to mention time!) than I could afford over those! At least you, Justin, and I agree committing the asset seems one way to verify the validity of the error! If it sticks around, something else is fishy. Nuff said. // FHmm, no I don't, and haven't done so for years. What I did was to commit those assets you sent me in TS10 and TS12 and all were clear of errors.
The script validation on commit appears to be rather different from a simple Trainzutil compile which I use as a parser check. I've had some strange errors, particularly when an asset's script is dependent on another, as NFS37 mentioned, but I don't recall that particular error in that context. I've only seen that error when experimenting to see what classes I can use with particular asset KINDs.
Not sure when an isolated asset fix would generate a compile error. I can tell you in general, I keep a filter so all the 'work' assets I've selected stay in the main view, normally just less than a screen full. I've learned the hard way to not open more than half-a-dozen at a time of that work list, and proceed progressively through them by author (often the same issues) until they've all been cured and committed. Those, since they were being so stubborn I would occasionally revisit, normally right after successfully fixing and committing something less stubborn. Hence residual compile error state seems unlikely.Why that error would be output when the kind is traincar and the script class is derived from the Vehicle class seems rather odd. I can only imagine that a compilation error has occurred immediately prior to that and the compiling process has "gone off the track" and is misreporting. That's not unusual for compilers in other programming languages.
Cheers
Paul
Edit: Sorry, I intended Trainzutil compile and not validate.
....
Not sure when an isolated asset fix would generate a compile error. ....// Frank