Jump to content

Failed to read map file.


lxFirebal69xl
 Share

Recommended Posts

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

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...