- Joined
- Jul 10, 2007
- Messages
- 6,306
Anyone know how?
/sad face at
the name of the file is passed in, but don't know how to access /cry.
I already tried $FILENAME$ : (.
edit
Tried debug.getinfo(1).source.
From this I learned that external blocks create a temp file in the Temp directory and write the lua script into that (never deletes them mind you!).
So it the debug outputted VC21E.tmp.lua /cry.
Also, using external block seems to create like 6 temp files every time it is used, and these tmp files just pile up in the Temp directory and never ever get deleted >.>.
Anyways, on the subject, I currently see no way to get the currently saving map's filename : |.
What I am now thinking of is going into the trigger strings and retrieving the map's game name via FileExporter and regex ;D.
/sad face at
//! externalblock extension=lua ObjectMerger $FILENAME$
the name of the file is passed in, but don't know how to access /cry.
I already tried $FILENAME$ : (.
edit
Tried debug.getinfo(1).source.
From this I learned that external blocks create a temp file in the Temp directory and write the lua script into that (never deletes them mind you!).
So it the debug outputted VC21E.tmp.lua /cry.
Also, using external block seems to create like 6 temp files every time it is used, and these tmp files just pile up in the Temp directory and never ever get deleted >.>.
Anyways, on the subject, I currently see no way to get the currently saving map's filename : |.
What I am now thinking of is going into the trigger strings and retrieving the map's game name via FileExporter and regex ;D.
Last edited: