More built in script errors.

sniper297

Coconut God
Made a new route and some sessions in my working copy of TS2010 build 49933. Couldn't get the test copy to look at what's new on the DLS, so I just deleted it, installed and patched a brand new TS2010 49933. Saved route to CDP and sessions to another CDP, shut down the working copy, opened the new virgin copy, imported CDPs. Downloaded all dependencies, checked no errors, warnings, or missing dependencies in content mangler. Launched game, got script errors;

29860165.jpg


Shouldn't have anything busted in a brand new install, so I checked the driver commands;

93769460.jpg


Nothing wrong in here, so cancel out of it.

77334461.jpg


In the original four sessions work perfectly, in this new install I can duplicate this in all four sessions every time. Shouldn't need to fix a brand new patched to 49933 copy, but I went ahead and did a QDR anyway. No change, still throws the same script error, trying to edit driver commands crashes it every time.

Any ideas?
 
Sniper297:

I have had similar script errors show up when a driver command or rule is missing although I do not believe it has resulted in Trainz crashing completely. Driver commands are not included in the config.txt file when the session is saved so the asset might not show missing dependencies in CM. The second screen shot shows a line in red which possibly includes the kuid of the missing asset. The alternative is to go back to your original and make a list of the rules and commands you have used and make sure they are in your new install.
 
If you click on the 'More' button on the error dialogue boxes in your first pic you will get the kuid of the missing command/rule. You import that, then it will throw up a new error (and possible crash) for the next missing command/rule. You import that and you guessed it - another missing rule/command... Eventually you get the lot. It's a neat bit of programming....

Andy :(
 
I sometimes get this when importing a session - it is due to a missing driver. Alastair was removed/renamed from the list of built-in drivers part way through TS2009, by his families request. I wouldn't be surprised if this problem is related to that.
 
Okay, first part;

Begin:
? 0:02.3 : InterfaceTextDB> failed to load compiled interfacetext file
? 0:04.0 : TrainzHIDLoader> TrainzHID.dll initialised
? 0:09.6 : ScriptLog> Could not resolve native link $void@Servlet::SetPersistentData(string,Soup)
? 0:09.6 : ScriptLog> Could not resolve native link $void@Servlet::GetPersistentData(string,Soup)
? 0:09.6 : ScriptLog> Could not resolve native link $int@Servlet::AdminValidateLogin(string,string)
? 0:09.6 : ScriptLog> Could not resolve native link $Soup@Servlet::AdminListAvailableServlets(int)
? 0:09.6 : ScriptLog> Could not resolve native link $Soup@Servlet::AdminListInstalledServlets(int)
? 0:09.6 : ScriptLog> Could not resolve native link $bool@Servlet::AdminInstallContent(int,KUID)
? 0:09.6 : ScriptLog> Could not resolve native link $bool@Servlet::AdminStartServlet(int,KUID)
? 0:09.6 : ScriptLog> Could not resolve native link $void@Servlet::AdminStopServlet(int,KUID)
? 0:11.5 : ScriptLog> GSMachine::GetLibrary> library '0x9F27EDD0 0x5D31E279' not found in link table
? 0:11.5 : ScriptLog> GSMachine: Error -2 loading library f:\ts2010new/UserData/cache/libraries/d615b4d78c54b692.gsl (auranachievementsservlet.gs)
? 0:56.5 : Animation::Open> unable to find animation 'hash-4f/kuid 52682 39120/anim.kin'
? 1:04.0 : Interface.Print> 'MultipleMain started;'
? 1:04.3 :
? 1:04.3 : WorldState::WarnObsolete> Train.GetVelocity> do not use this function
? 1:04.3 : ScriptLog> function $float@Train::GetVelocity(), line -1
? 1:04.3 : ScriptLog> function $void@SFX_Loco::AirSound(), line 52
? 1:04.3 : World.NativePlaySound> Cannot find attachment point 'äƒã}' in asset '<kuid:522774:7617>'.
? 1:04.3 : World.NativePlaySound> Cannot find attachment point 'äƒã}' in asset '<kuid:522774:7640>'.

? 1:04.4 : SCRIPT> DriverCommands.SetProperties> requested driver command was not available, creating <kuid2:192081:1:6>
? 1:06.2 : SCRIPT> DriverCommands.SetProperties> requested driver command was not available, creating <kuid:-3:10090>

? 1:17.7 : SCRIPT> DriverCommandRule.SetProperties> 18 commands loaded
? 1:17.7 : SCRIPT> DriverCommandRule.CreateCommandsNow> 2 commands removed
? 1:31.3 : ScriptLog> World.AddDriverCommand> not a DriverCommand asset: <kuid2:57145:81100:1> (file world.gs)
? 1:31.3 : ScriptLog> *** DUMPING ALL THREAD STACKS ***

Then it goes on with all the industry stuff. Ones in red are what look like the relevant errors, blue is my PO&N RS-11s, no idea why those should have problems after all this time, but whatever that is probably ain't part of the script error.
 
All RIGHTY then! Another argument in favor of the argument we already lost, can we petition once again to get ALL required assets in the KUID tables so the content creators can upload stuff that works out of the box, batteries included no assembly required? I understood the whole purpose of the download helper and error checks was to make sure nothing is missing, if it's ignorant of missing dependencies that cause the asset to fail, what's the point?

Copy Commands From,<kuid2:192081:1:6> - built in, not faulty or locally modified.
WaitFor,<kuid:-3:10090> - built in, not faulty or locally modified.
Couple At Trackmark,<kuid2:57145:81100:1> - not installed, not used in the session but was checked ON in driver commands. That's all it took, download that one driver command and the script error is gone, no more crash trying to edit the driver commands in the session rules. If the absence of that one asset causes the game to throw script errors and crash, wouldn't that be considered a critical asset? Surveyor doesn't think so, manually add stuff like that to the KUID table so it WILL get downloaded, but don't edit the session after that - surveyor sees it in the KUID table and decides it's not needed, so it removes it when you save the session. :n:
 
no need to get so excited it is a known and acknowledged bug that certain things get left from the route or session kuid table. lots of threads on it.
 
"known and acknowledged" by who? The developers certainly don't consider it a bug, they always insist it's "user error".
 
Possibly it's my Chicago accent, I often have trouble making people understand what I'm actually saying.

http://forums.auran.com/trainz/showthread.php?82653-One-last-appeal-to-N3V

One guy says it's up to the creator of the rule to add some special tag to the rule so it does automatically get added to the KUID table, another guy says no special tag is needed, it should automatically add itself to the KUID table. Rules and driver characters never get automatically added to the KUID table, apparently neither of the responders ever actually tested this on a virgin copy of the game.
 
If you look at the first picture, the bottom part is the "MORE" screen pasted over the first screen.

It is. Scroll right, that second line can be of biblical scroll proportions, but it saves accessing the log to get the dud kuid :)
 
Hmmm, got the thing sdrawkcab, the one on top is the more, the one underneath is the first message you see. Well, good tip, since couple at trackmark is only 47k let's delete the little culprit and repeat the gripe.

31579212.jpg


No errors, warnings, or missing dependencies showing in route or sessions, never mind that it's user error because the programmers say so. :hehe:

70599445.jpg


No scroll thingy in windowed mode, but you can grab the sides of the message window and stretch it out - and there she be, <kuid2:57145:81100:1> which is the one I just deleted. :cool:

I'm gonna bookmark this for future reference, since I know Trainz 2018 will still have the same bug (sorry, "user error").
 
I had that exact same error show after I issued a drive to command to an industry asset. The asset in question was something I modified and the command could not find the attachment point for the track.

John
 
Sniper,

? 1:04.3 : World.NativePlaySound> Cannot find attachment point 'äƒã}' in asset '<kuid:522774:7617>'.
? 1:04.3 : World.NativePlaySound> Cannot find attachment point 'äƒã}' in asset '<kuid:522774:7640>'.

What are you using as a text editor? Looks to me that the attachment point name in red is corrupt.

Ian


 
I use notepad, but it's entirely possible something in those two are corrupt, they're both build 2.4.

PON RS11 7617,<kuid:522774:7617>
PON RS11 7640,<kuid:522774:7640>

Two of my earliest reskins for Trainz, no actual problems that I ever heard of for those. OTOH this community doesn't report problems very often, everyone is so used to having to fix everything they download they just take it for granted when they find something busted.
 
Possibly it's my Chicago accent, I often have trouble making people understand what I'm actually saying.

http://forums.auran.com/trainz/showthread.php?82653-One-last-appeal-to-N3V

Yes i read that earlier, and if you recall i also posted in that thread at the time, explaining pretty much what you have here. i know of this because when developing Mojave for TS12 we used TS10, and we made driver characters and among other things, commands like the instant-load rule you recently learned about. when testing on other installs i found that a serious crash could occur if the command was missing, or if the driver character was missing, because they were not added to the kuid table automatically. whatever the problem was then, it was fixed.

One guy says it's up to the creator of the rule to add some special tag to the rule so it does automatically get added to the KUID table, another guy says no special tag is needed, it should automatically add itself to the KUID table. Rules and driver characters never get automatically added to the KUID table, apparently neither of the responders ever actually tested this on a virgin copy of the game.

note that this talking about something completely different than what you mentioned above. this deals with rules that do not gather their dependencies correctly because the function was not used. it is not related to checking an item or items in the driver command list and the items being added to the kuid table, which seems to be what you are talking about. again whatever the issue used to be in TS09 and 10, it is gone in TS12, so your comment about it being persistent to Trainz 2018 is false. if you have questions about updating the older versions, i would suggest seeing the other thread where Chris explains it in this post http://forums.auran.com/trainz/showthread.php?82653-One-last-appeal-to-N3V&p=908797#post908797


OTOH this community doesn't report problems very often, everyone is so used to having to fix everything they download they just take it for granted when they find something busted.

i want to point out that N3V are very receptive to fixing bugs that are reported, and they are reported a lot by the large group of testers. this is understandably more important in the current software than the older versions from years ago (like the post says).
 
Last edited:
Wonderful news, if anyone did acknowledge it as a bug and said they were fixing it in 12, this is the first I've heard of it. My original gameplan was developing in 2009 and testing for compatibility in 2010 and 12 so it would work out of the box in all three. I recently gave up on 2009 because there were simply too many things that were incompatible between 2009 SP4 and 2010, but if they have abandoned 2010 and won't be sending any more patches I guess I'll need to shift to TS12 exclusively a lot sooner than I thought.

Another thing I missed, what's up with that;

? 1:04.3 : WorldState::WarnObsolete> Train.GetVelocity> do not use this function
? 1:04.3 : ScriptLog> function $float@Train::GetVelocity(), line -1
? 1:04.3 : ScriptLog> function $void@SFX_Loco::AirSound(), line 52

I remember seeing "GetVelocity" in a bunch of scripts, if that's obsolete now what are we supposed to be using instead?

On to other business, I made one template session with the schedule library, then cloned that to make more with different AI trains and loose consists. Two of the clones still have this;

28725216.jpg


Rather than fiddlefaddling with figuring out what could possibly be wrong with quickdrive.gs I just deleted those two sessions since I have four others working.
 
Back
Top