Warnings when submit new content

G.M.

Well-known member
A few warnings i get when submitting a fresh made train
and questions directly under the log entry


nlsubmit.jpg



; <kuid:99999:99424> : Validating <kuid:99999:99424>
! <kuid:99999:99424> : VE48: This asset uses an obsolete trainz-build number. Trainz-build numbers below 3.5 are no longer supported.
This "warning" seems pointless, I make content that works from build 2.2 till 4.7, with hardly any support from anyone.
! <kuid:99999:99424> : VE109: The low-detail meshes total more than 500 polygons. This may have a negative impact on performance: 0: 6711, 1: 3154, 2: 1208
This "warning" seems pointless, as you can see I use polies sparingly to begin with and use 3 LODs wherever i can
; <kuid:99999:99424> : Script Compile
; <kuid:99999:99424> : Compiling script 'nlmw.gs' for asset <kuid:99999:99424> "Northlander-Mw"
! <kuid:99999:99424> : VE220: nlmw.gs(54) : function GetVelocity is obsolete in object Train.
What is the alternative function?, it works just fine in a few hundred scripts of mine in trains since 2004
! <kuid:99999:99424> : VE220: nlmw.gs(67) : function GetVelocity is obsolete in object Train.
! <kuid:99999:99424> : VE220: nlmw.gs(83) : function GetVehicleList is obsolete in object World.
What is the alternative function?, it works just fine in a few hundred scripts of mine in trains since 2004
! <kuid:99999:99424> : VE220: nlmw.gs(127) : function LoadHTMLString is obsolete in object Browser.
What is the alternative function?, it works just fine in a few hundred scripts of mine in trains since 2004
; <kuid:99999:99424> : CacheScripts> finished compiling 'nlmw.gs' to 'C:/T19local/cache/libraries/kuid 99999 99424/0c5fdf4d7ffaba32.gsl'


If i use alternative or updated functions, can trs2009 users still use my content?


Thanks to anyone that can help
have a good x-mas all
greeting GM
 
Hello G.M.,

Beautiful model for the Dutch and the Canadians...

I have used GetSmoothedVelocity() in a script of mine.

Vriendelijke groet,
Paul
 
Dankje Paul, Thanks Paul

From the current trainz wiki:
GetSmoothedVelocity
public native float GetSmoothedVelocity(void)
Parameters: None
Returned Value : Returns a smoothed velocity, intended for human consumption. <--i wont eat it, i need the actual speed
Syntax: float speed = train.GetSmoothedVelocity();
Notes
If you require an accurate velocity readout for physics operations, use GetVelocity(). <--and i need accurate for my Diesel consumption

groetjes/ greetings GM
 
You could use GetTrainVelocity instead of GetVelocity. It's available at least since TRS09.

The obsolete functions are currently still working, but could be removed in the future.

Peter
 
Danke/thanks Peter


2003 GetVelocity()
2009 GetTrainVelocity()
2021 GetTrainActualVelocity()
2025 GetTrainPreciseActualVelocity()


The point here... (and many many threads on this forum)
-Do not change what works and is not broken
-Add features do not remove or break old ones
-Do not annoy Users and Contentcreators with unneeded errors or warnings
Trainz should be fun and more(not less) people should be able to play/contribute/create.


btw i had to edit your driver command <kuid2:206816:99020:6> Change Destination Sign (MP)
cause the destination list ran of the screen on a big route, adding SubdivideItems(); keeps it on screen ;-)
maybe you can update it on the DLS in the future (no hurry)


greetings GM
 
I have created that driver command, without being able to test it myself (can't use multiplayer with my installation). I have stopped any further development of this driver command.

Peter
 
Back
Top