sphinx-dev-oss Posted July 12, 2022 Posted July 12, 2022 Hi guys! I work on my server railway signal system, but if i go in test marker (for test the txd is change) it doesnt change. Debugscript says: WARNING: ls_feny_bal\system\client.lua:9: Error loading TXD @ 'engineLoadTXD' [states/fenyjelzo_szabad.txd] WARNING: ls_feny_bal\system\client.lua:10: Bad argument @'engineImportTXD' [Expected txd at argument 1, got boolean] Client Side: local modellname = ""; local modellID = 2880; local markerTest = createMarker(1782.267578125, -1956.04296875, 12.5, "cylinder", 1.3, 255, 125, 150) function proceedSignalOnMarkerHit(hitElement) txd_floors = engineLoadTXD ( modellname.."states/fenyjelzo_szabad.txd" ) engineImportTXD ( txd_floors, modellID ) end addEventHandler("onClientMarkerHit", getRootElement(), proceedSignalOnMarkerHit)
Overkillz Posted July 12, 2022 Posted July 12, 2022 Are you sure that the file "states/fenyjelzo_szabad.txd" is loaded correctly ? Might you could add a condition with "fileExists" function to confirm that it exists. Regards.
sphinx-dev-oss Posted July 12, 2022 Author Posted July 12, 2022 22 minutes ago, Overkillz said: Are you sure that the file "states/fenyjelzo_szabad.txd" is loaded correctly ? Might you could add a condition with "fileExists" function to confirm that it exists. Regards. okay, i check it the fenyjelzo_szabad.txd is doesn't exist. How do i load it?
Overkillz Posted July 12, 2022 Posted July 12, 2022 12 minutes ago, SphinxDev said: okay, i check it the fenyjelzo_szabad.txd is doesn't exist. How do i load it? Did u add it to your meta file ? If you can, show is your meta file
sphinx-dev-oss Posted July 12, 2022 Author Posted July 12, 2022 meta.xml <meta> <script src="client.lua" type="client" /> <script src="server.lua" type="server" /> <file src="fenyjelzo.col" /> <file src="fenyjelzo.txd" /> <file src="fenyjelzo.dff" /> <script src="system/client.lua" type="client" /> <script src="system/server.lua" type="server" /> <file src="system/states/fenyjelzo_szabad.txd" /> </meta>
sphinx-dev-oss Posted July 12, 2022 Author Posted July 12, 2022 UPDATE i Fixed it TXD is exsist, but if i hit marker the current txd is not unload and after unload load fenyjelzo_szabad.txd, no debugscript 3 error UPDATE EVERYTHING IS FIXED AND WORK FINE! STAFF CAN CLOSE THE TOPIC
vx200 Posted July 15, 2022 Posted July 15, 2022 If possible, share your fix, so if anyone else face this he can fix too
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now