Jump to content

[HELP] TXD doesnt change on marker hit


Recommended Posts

Posted

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)
 


 

 
 
 
Posted

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.

Posted
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?

Posted
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

Posted

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>

 

Posted

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


 

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...