Search the Community
Showing results for tags 'LoadPrefab'.
-
Hi there, having to trouble with my Scripts. I'm using an Spawn Script for Zombies. This works finde in Editor Mode and Debug. No Problems so far. After Publishing the Game. On first spawn i get following Error Message: Error: Failed to read file "C:/Users/Marco/Desktop/ZombieZ-Starter/GameStarter/G ameStarter/bin/Debug/Data/Horde/offshore/AddOns/Zombie Character Pack/zombie1.pfb". Error: Failed to load prefab "C:/Users/Marco/Desktop/ZombieZ-Starter/GameStarter /GameStarter/bin/Debug/Data/Horde/offshore/AddOns/Zombie Character Pack/zombie1.pfb". Lua Error: [string "C:/Users/Marco/Desktop/ZombieZ-Starter/GameStarter/GameStart er/bin/Debug/Data/Horde/offshore/scripts/gamecontroller.lua"]:99: attempt to index local 'zombie' (a nil value) I guess the problem is that the script wants to load the file from this path: C:/Users/Marco/Desktop/ZombieZ-Starter/GameStarter /GameStarter/bin/Debug/Data/Horde/offshore/AddOns/Zombie Character Pack/zombie1.pfb This can not work, because all of the Game Data is zipped in the Data directory. Any idea how to fix this issue?