SkittlesAreFalling Posted June 26, 2014 Share Posted June 26, 2014 (edited) I tried to create custom zombie skins for my zombie server but they're not loading for some reason. I tried doing what another zombie gamemode does, that zombie gamemode isn't working for me either so I think it's a client-side issue. meta.xml <meta> <info author="SkittlesAreFalling" type="gamemode" name="Zombie" description="A zombie server." /> <file src="skins/13.txd" /> <file src="skins/22.txd" /> <file src="skins/56.txd" /> <file src="skins/67.txd" /> <file src="skins/68.txd" /> <file src="skins/69.txd" /> <file src="skins/70.txd" /> <file src="skins/84.txd" /> <file src="skins/92.txd" /> <file src="skins/97.txd" /> <file src="skins/105.txd" /> <file src="skins/107.txd" /> <file src="skins/108.txd" /> <file src="skins/111.txd" /> <file src="skins/126.txd" /> <file src="skins/127.txd" /> <file src="skins/128.txd" /> <file src="skins/152.txd" /> <file src="skins/162.txd" /> <file src="skins/167.txd" /> <file src="skins/188.txd" /> <file src="skins/192.txd" /> <file src="skins/195.txd" /> <file src="skins/206.txd" /> <file src="skins/209.txd" /> <file src="skins/212.txd" /> <file src="skins/229.txd" /> <file src="skins/230.txd" /> <file src="skins/258.txd" /> <file src="skins/264.txd" /> <file src="skins/274.txd" /> <file src="skins/277.txd" /> <file src="skins/280.txd" /> <file src="skins/287.txd" /> <file src="sounds/mgroan1.ogg" /> <file src="sounds/mgroan2.ogg" /> <file src="sounds/mgroan3.ogg" /> <file src="sounds/mgroan4.ogg" /> <file src="sounds/mgroan5.ogg" /> <file src="sounds/mgroan6.ogg" /> <file src="sounds/mgroan7.ogg" /> <file src="sounds/mgroan8.ogg" /> <file src="sounds/mgroan9.ogg" /> <file src="sounds/mgroan10.ogg" /> <script src="Zombie.lua" type="server" /> <script src="Zombie_Client.lua" type="client" /> </meta> Zombie_Client.lua resourceRoot = getResourceRootElement(); LoadZombieSkins = function() outputConsole("--- Load Zombie Skins Started ---"); -- This does not display. local Skin = false; Skin = engineLoadTXD("skins/13.txd"); --bleedin eyes 31 by Slothman if(Skin == false) then outputConsole("Skin 13 failed to load!"); end if(not(engineImportTXD(Skin, 13)) then outputConsole("Skin 13 failed to import!"); end Skin = engineLoadTXD("skins/22.txd"); -- slashed 12 by Wall-E if(Skin == false) then outputConsole("Skin 22 failed to load!"); end if(not(engineImportTXD(Skin, 22)) then outputConsole("Skin 22 failed to import!"); end Skin = engineLoadTXD("skins/56.txd"); -- young and blue by Slothman if(Skin == false) then outputConsole("Skin 56 failed to load!"); end if(not(engineImportTXD(Skin, 56)) then outputConsole("Skin 56 failed to import!"); end Skin = engineLoadTXD( "skins/67.txd"); -- slit r* employee if(Skin == false) then outputConsole("Skin 67 failed to load!"); end if(not(engineImportTXD(Skin, 67)) then outputConsole("Skin 67 failed to import!"); end Skin = engineLoadTXD("skins/68.txd"); -- shredded preist by Deixell if(Skin == false) then outputConsole("Skin 68 failed to load!"); end if(not(engineImportTXD(Skin, 68)) then outputConsole("Skin 68 failed to import!"); end Skin = engineLoadTXD("skins/69.txd"); --bleedin eyes in denim by Capitanazop if(Skin == false) then outputConsole("Skin 69 failed to load!"); end if(not(engineImportTXD(Skin, 69)) then outputConsole("Skin 69 failed to import!"); end Skin = engineLoadTXD("skins/70.txd"); --ultra gory scientist by 50p if(Skin == false) then outputConsole("Skin 70 failed to load!"); end if(not(engineImportTXD(Skin, 70)) then outputConsole("Skin 70 failed to import!"); end Skin = engineLoadTXD("skins/84.txd"); --guitar wolf (nonzombie) by Slothman if(Skin == false) then outputConsole("Skin 84 failed to load!"); end if(not(engineImportTXD(Skin, 84)) then outputConsole("Skin 84 failed to import!"); end Skin = engineLoadTXD("skins/92.txd"); -- peeled flesh by xbost if(Skin == false) then outputConsole("Skin 92 failed to load!"); end if(not(engineImportTXD(Skin, 92)) then outputConsole("Skin 92 failed to import!"); end Skin = engineLoadTXD("skins/97.txd"); -- easterboy by Slothman if(Skin == false) then outputConsole("Skin 97 failed to load!"); end if(not(engineImportTXD(Skin, 97)) then outputConsole("Skin 97 failed to import!"); end Skin = engineLoadTXD("skins/105.txd"); --Scarred Grove Gangster by Wall-E if(Skin == false) then outputConsole("Skin 105 failed to load!"); end if(not(engineImportTXD(Skin, 105)) then outputConsole("Skin 105 failed to import!"); end Skin = engineLoadTXD("skins/107.txd"); --ripped and slashed grove by Wall-E if(Skin == false) then outputConsole("Skin 107 failed to load!"); end if(not(engineImportTXD(Skin, 107)) then outputConsole("Skin 107 failed to import!"); end Skin = engineLoadTXD("skins/108.txd"); -- skeleton thug by Deixell if(Skin == false) then outputConsole("Skin 108 failed to load!"); end if(not(engineImportTXD(Skin, 108)) then outputConsole("Skin 108 failed to import!"); end Skin = engineLoadTXD("skins/111.txd"); --Frank West from dead rising (nonzombie) by Slothman if(Skin == false) then outputConsole("Skin 111 failed to load!"); end if(not(engineImportTXD(Skin, 111)) then outputConsole("Skin 111 failed to import!"); end Skin = engineLoadTXD("skins/126.txd"); -- bullet ridden wiseguy by Slothman if(Skin == false) then outputConsole("Skin 126 failed to load!"); end if(not(engineImportTXD(Skin, 126)) then outputConsole("Skin 126 failed to import!"); end Skin = engineLoadTXD("skins/127.txd"); --flyboy from dawn of the dead by Slothman if(Skin == false) then outputConsole("Skin 127 failed to load!"); end if(not(engineImportTXD(Skin, 127)) then outputConsole("Skin 127 failed to import!"); end Skin = engineLoadTXD("skins/128.txd"); --holy native by Slothman if(Skin == false) then outputConsole("Skin 128 failed to load!"); end if(not(engineImportTXD(Skin, 128)) then outputConsole("Skin 128 failed to import!"); end Skin = engineLoadTXD("skins/152.txd"); --bitten schoolgirl by Slothman if(Skin == false) then outputConsole("Skin 152 failed to load!"); end if(not(engineImportTXD(Skin, 152)) then outputConsole("Skin 152 failed to import!"); end Skin = engineLoadTXD("skins/162.txd"); --shirtless redneck by Slothman if(Skin == false) then outputConsole("Skin 162 failed to load!"); end if(not(engineImportTXD(Skin, 162)) then outputConsole("Skin 162 failed to import!"); end Skin = engineLoadTXD("skins/167.txd"); --dead chickenman by 50p if(Skin == false) then outputConsole("Skin 167 failed to load!"); end if(not(engineImportTXD(Skin, 167)) then outputConsole("Skin 167 failed to import!"); end Skin = engineLoadTXD("skins/188.txd"); --burnt greenshirt by Slothman if(Skin == false) then outputConsole("Skin 188 failed to load!"); end if(not(engineImportTXD(Skin, 188)) then outputConsole("Skin 188 failed to import!"); end Skin = engineLoadTXD("skins/192.txd"); --Alice from resident evil (nonzombie) by Slothman if(Skin == false) then outputConsole("Skin 192 failed to load!"); end if(not(engineImportTXD(Skin, 192)) then outputConsole("Skin 192 failed to import!"); end Skin = engineLoadTXD("skins/195.txd"); --bloody ex by Slothman if(Skin == false) then outputConsole("Skin 195 failed to load!"); end if(not(engineImportTXD(Skin, 195)) then outputConsole("Skin 195 failed to import!"); end Skin = engineLoadTXD("skins/206.txd"); -- faceless zombie by Slothman if(Skin == false) then outputConsole("Skin 206 failed to load!"); end if(not(engineImportTXD(Skin, 206)) then outputConsole("Skin 206 failed to import!"); end Skin = engineLoadTXD("skins/209.txd"); --Noodle vendor by 50p if(Skin == false) then Edited June 26, 2014 by Guest Link to comment
gghvcffcv Posted June 26, 2014 Share Posted June 26, 2014 I think your problem is in the meta you put type = Gamemode... Link to comment
SkittlesAreFalling Posted June 26, 2014 Author Share Posted June 26, 2014 Switched to type = "script" and it didn't do anything different. Thanks for responding. Link to comment
SkittlesAreFalling Posted June 26, 2014 Author Share Posted June 26, 2014 http://prntscr.com/3wlqsb It showed that I was missing a lot of ')' at the end of if statements but after I fixed the errors and restarted, no Lua errors and there's no zombie skin. The skin I'm in is supposed to be a zombie girl. Thanks for reply and showing me how to debug scripts. EDIT: I added this to the script and executed it in-game... addCommandHandler("zombieskins", function(Player, Command) LoadZombieSkins(); return true; end ); When I did the command, I noticed my player transforms into the zombie skin BUT turns back to normal almost instantly, is there a setting blocking custom skins? Link to comment
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