lxFirebal69xl Posted September 5, 2015 Posted September 5, 2015 I was working on an update for the demo of "A Demon's Game", I got reepblue's LEX integrated and started using his ChangeLevel script that came with the template to change the level in the game's demo. However, everytime I tried to change the map, it just gives me an error on the console. Failed to read file "C:/Users/Ruben/Documents/Leadwerks/Projects/ADemonsGame/Sewers_2.map". If I try to use the script that comes with leadwerks, this error pops up. "C:/Users/Ruben/Documents/Leadwerks/Projects/ADemonsGame/scripts/objects/triggers/triggerchangemap.lua" : 10 : attempt to call method 'changeMap' (a nil value) This only started happening recently, so I really don't know what could be causing it. I have attached all 3 scripts that were used. Main.lua ChangeMap.lua CollisionTrigger.lua Quote
xtom Posted September 5, 2015 Posted September 5, 2015 Looks like the filepath might be missing the Maps/ bit. Quote Check out my games: One More Day / Halloween Pumpkin Run
lxFirebal69xl Posted September 6, 2015 Author Posted September 6, 2015 Looks like the filepath might be missing the Maps/ bit. Yea, that was exactly the problem, thanks. 1 Quote
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.