Jump to content

Compile dff files problem


Polak0

Recommended Posts

Hello everybody. It's me again. I have a problem with the model. I  have a script, which drives compile the *.dff models. But idk where is the problem. PLS help.

 

script on the server's type:

function code(name)
  local f = fileOpen(name)
  f:read(34)
  f:setPos(0)
  b = f:read(34)
  f:setPos(0)
  f:write("123456789012345678901234567890")
  f:setPos(f.size)
  f:write(string.reverse(b))
  f:write("123456789012345678901234567890")
  f:write(teaEncode("123456789012345678901234567890",math.random(999999)))
  f:close(f)
end
code("1337.dff")

script on the client's type:

local txd = engineLoadTXD("1337.txd", 1337)
            engineImportTXD(txd, 1337)
local dff = engineLoadDFF("1337.dff", true)
            engineReplaceModel(dff, 1337, true)
local col = engineLoadCOL ("1337.col")
            engineReplaceCOL (col, 1337)
            
engineSetModelLODDistance(1337, 300)

 

Meta.xml:

<meta>
    <oop>true</oop>
    <file src="1337.dff"/>
    <file src="1337.txd"/>
    <file src="1337.col"/>
    <script src="s.lua" type="server" cache="false"></script>
    <script src="c.lua" type="client" cache="false"></script>
</meta>

 

DB3 errors:

Download error: HTTP server file mismatch (TEST-RESOURCE) 1337.dff [Got size:15544 MD5:28CB5633BB549D939E86F4CCB17521EB, wanted MD5:557CDB674F012AD8BE1CA52516449E8E]


[18:54:48] DIAGNOSTIC: l3g3nd4 #1013 HTTP server file mismatch (TEST-RESOURCE) 1337.dff [Got size:15544 MD5:28CB5633BB549D939E86F4CCB17521EB, wanted MD5:557CDB674F012AD8BE1CA52516449E8E]

c.lua:4: Bad usage  @ 'EngineReplaceModel' , [Model ID 1337 replace failed]

 

Edited by Polak0
Link to comment

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...