Need Help With Mod Ending
Posted: Fri Feb 23, 2018 6:20 pm
Okay, finally finished my dungeon and played through it and when I got to the ending a screen came up that looked like it was attempting to play the ending.lua file but then I got a white box pop up that said file not found.
Here are my suspicions.
When I scripted the end game section, I actually took the game ending line from another source file of a dungeon I downloaded just to see how they handled it. The file was in modassets, which is where the default file is.
However, the path in the source code is only a partial path. While it starts at modassets, before that, there is much more path on my actual system.
So my suspicion is that the system doesn't know where modassets is on my particular system.
Now, if I change the path to the complete path, which starts in MyDocuments, it might play on my system but what if the person playing this dungeon has their modassets someplace else?
Is there a way to get around this problem or is the problem I'm having something entirely different? The rest of the dungeon works fine except for this error on game end.
Any assistance or insight into what it might be will be greatly appreciated.
Thanks.
** EDIT ** PLEASE READ BELOW
Okay, I figured out the problem. I now got the ending script to load and play. Now I have another problem.
I can't use it.
I assumed this was just the default ending that comes with the game for people who want to create their own dungeons but don't want to design a custom lua script. It is not. The ending I'm using was specifically designed for the custom dungeon I downloaded.
So...here is my problem.
Inside the dungeon that I created, when fulfilling the win condition, the only thing I do is call ending.lua. Now, obviously this script is calling other scripts or files. I discovered this because upon first recompile I got an error that a DDS file was missing. So tracked that down. Then after recompiling again, I got an error that texture in the cinematics folder was missing. It was the logo for this particular dungeon. So I tracked that down.
Obviously, ending.lua is calling other things.
So...here is my question.
Is there a way for me to load ending.lua into some kind of editor so see just what it's calling. I can then design my end game (cinematic score, graphics, etc.) based on the same code. I'm assuming inside ending.lua there are calls to various files.
Ultimately, I can't use this ending as its somebody else's work. So any assistance in this area will be appreciated. Right now, all I want to be able to do is view the contents of ending.lua.
Thanks.
** EDIT 2 ** PLEASE READ BELOW
Okay, I downloaded both Notepad ++ and Luaedit and pulled the ending.lua script into both but all I get it gibberish except for the path and file names of the various files loaded. But I can't make any sense of any of the source code. Is there anything at all that I can use that will load the ending.lua script that will make it readable? I'm out of ideas.
Here are my suspicions.
When I scripted the end game section, I actually took the game ending line from another source file of a dungeon I downloaded just to see how they handled it. The file was in modassets, which is where the default file is.
However, the path in the source code is only a partial path. While it starts at modassets, before that, there is much more path on my actual system.
So my suspicion is that the system doesn't know where modassets is on my particular system.
Now, if I change the path to the complete path, which starts in MyDocuments, it might play on my system but what if the person playing this dungeon has their modassets someplace else?
Is there a way to get around this problem or is the problem I'm having something entirely different? The rest of the dungeon works fine except for this error on game end.
Any assistance or insight into what it might be will be greatly appreciated.
Thanks.
** EDIT ** PLEASE READ BELOW
Okay, I figured out the problem. I now got the ending script to load and play. Now I have another problem.
I can't use it.
I assumed this was just the default ending that comes with the game for people who want to create their own dungeons but don't want to design a custom lua script. It is not. The ending I'm using was specifically designed for the custom dungeon I downloaded.
So...here is my problem.
Inside the dungeon that I created, when fulfilling the win condition, the only thing I do is call ending.lua. Now, obviously this script is calling other scripts or files. I discovered this because upon first recompile I got an error that a DDS file was missing. So tracked that down. Then after recompiling again, I got an error that texture in the cinematics folder was missing. It was the logo for this particular dungeon. So I tracked that down.
Obviously, ending.lua is calling other things.
So...here is my question.
Is there a way for me to load ending.lua into some kind of editor so see just what it's calling. I can then design my end game (cinematic score, graphics, etc.) based on the same code. I'm assuming inside ending.lua there are calls to various files.
Ultimately, I can't use this ending as its somebody else's work. So any assistance in this area will be appreciated. Right now, all I want to be able to do is view the contents of ending.lua.
Thanks.
** EDIT 2 ** PLEASE READ BELOW
Okay, I downloaded both Notepad ++ and Luaedit and pulled the ending.lua script into both but all I get it gibberish except for the path and file names of the various files loaded. But I can't make any sense of any of the source code. Is there anything at all that I can use that will load the ending.lua script that will make it readable? I'm out of ideas.