Builtin Content Broken - Cannot Revert

nicky9499

SSoTW Bot
Two builtin assets:

Set Junctions,<kuid:-25:1046>
Trigger Check,<kuid:-25:903>

Are marked as broken and showing these errors respectively:

Warning: This asset uses an obsolete trainz-build number. Trainz-build numbers below 2.7 are no longer supported.
Error: setjunctionsrule.gs(139) : function SetDefaultDirection not declared in class Junction or derivative, line 139.
Error: .. while compiling 'setjunctionsrule.gs'
Warning: This asset uses an obsolete trainz-build number. Trainz-build numbers below 2.7 are no longer supported.
Error: triggercheckrule.gs(323) : variable m_bDoesConditionalScenarioBehaviorResetChildrenWhenDeflagged not declared, line 323.
Error: triggercheckrule.gs(323) : cannot cast from bool to , line 323.
Error: triggercheckrule.gs(324) : variable m_bDoesConditionalScenarioBehaviorSetCompleteWhenDeflagged not declared, line 324.
Error: triggercheckrule.gs(324) : cannot cast from bool to , line 324.
Error: triggercheckrule.gs(380) : function FlagConditionalScenarioBehavior not declared, line 380.
Error: triggercheckrule.gs(385) : invalid if expression, line 385.
Error: triggercheckrule.gs(390) : function DeflagConditionalScenarioBehavior not declared, line 390.
Error: .. while compiling 'triggercheckrule.gs'

Usually my go-to fix for broken builtins would be to just revert. However in this case those options are grayed out. There are no more dependencies to drill down. So...they broke by themselves?? Can someone advise please?
 
You could try deleting everything in <TS12Install>\UserData\cache\libraries, forcing Trainz to rebuild the script cache.

Peter
 
You could try deleting everything in <TS12Install>\UserData\cache\libraries, forcing Trainz to rebuild the script cache.

Peter

I had the same problem with a built-in item that had been open for edit, except that the revert command was not grayed out. However, it still would not commit.

Deleting the content of the UserData\cache\libraries, and then opening surveyor to rebuild the libraries folder worked. I reopened CMP, and was able to commit the item.

Thanks Peter for the info,

Joe
 
Or worse... Running a QDR sometimes fixes that problem. I'd try the cache fix first as it beats waiting through the long repair and then a validation again if there is any.

John
 
Also just check the editing folder, last time I had an issue like that it was actually in the editing folder but not showing as open for edit, deleting it from there plus QDR solved the problem, I did notice a reference to xyx kuid removed from editing folder while watching the QDR text.
 
Hmm, just sat through a "quick" database repair lasting 5 hours. Deleted the Libraries folders, nothing in Editing folder too.
Both assets still broken. Any ideas?
 
Back
Top