razor Posted April 5 Posted April 5 (edited) 0.9.9 Steam/ Build 2574 Created new fps project > made map containing one brush and character > attached FPSPlayer component to player model > run in release. I get the following error: I cannot attach the fpsplayer script to camera or brush. Will get the same error. Can attach and run camera control script without error. Did update projects in project manager previous day. Have not made any changes to FPSPlayer or main script. fps2a is a destination folder. fps_test.zip map file is included. fps_test.zip Edited April 5 by razor Updated Information 1 Quote
Josh Posted April 5 Posted April 5 Hi, can you please upload the file fps2a(?), as well as your map file? It seems strange that there is no file extension on the file fps2a. Quote My job is to make tools you love, with the features you want, and performance you can't live without.
Josh Posted April 6 Posted April 6 Thanks, I can easily reproduce this error. Give me a few minutes... Quote My job is to make tools you love, with the features you want, and performance you can't live without.
Solution Josh Posted April 6 Solution Posted April 6 Okay, this was just some simple scripting errors in FPSPlayer.lua: At line 63 replace this: self.sound_hit[n] = LoadSound("Sound/Impact/bodypunch" .. tostring(n) .. ".wav") With this: if FileType("Sound/Impact/bodypunch" .. tostring(n) .. ".wav") == 1 then self.sound_hit[n] = LoadSound("Sound/Impact/bodypunch" .. tostring(n) .. ".wav") end Around line 222 replace this: if type(properties[key]) == "string" then With this: if type(properties[key]) == "string" and properties[key] ~= "" then Modified file is attached. FPSPlayer.lua 1 Quote My job is to make tools you love, with the features you want, and performance you can't live without.
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.