Compiled Images error...
ryandebraal
23 Jun 2007, 20:38The game works great, until I try to complie it, in QComile it says it cannot find the file name room_#curr_room#.jpg
obviously i'm assigning currentroom to a variable, then using that variable in the path to the image - it retrievs the file fine in the dev mode but refesed to compile with sounds and pictures with this error:
- Found library, opening...
Including files...
Can't find file C:\Documents and Settings\Ryan\Desktop\Quest\room_#curr_room#.jpg
why does this work in development moe, but cant be used for 'retail' compilations??!? Thanks!
obviously i'm assigning currentroom to a variable, then using that variable in the path to the image - it retrievs the file fine in the dev mode but refesed to compile with sounds and pictures with this error:
- Found library, opening...
Including files...
Can't find file C:\Documents and Settings\Ryan\Desktop\Quest\room_#curr_room#.jpg
why does this work in development moe, but cant be used for 'retail' compilations??!? Thanks!
ryandebraal
23 Jun 2007, 21:13I have tried removedd the # signs, I have tried using the actual built in variable #quest.currentroom#
it just doesnt translate the string value into a filename - it takes my input 'litterly'.
it just doesnt translate the string value into a filename - it takes my input 'litterly'.
ryandebraal
23 Jun 2007, 21:13would adding the resources manually matter?
ryandebraal
23 Jun 2007, 22:56I solved the problem with a very long and ugly Select case
Freak
24 Jun 2007, 16:36Short answer: When running in dev mode, it doesn't look for the file until you try to load it, by which point it has a value for #curr_room#. When trying to compile, it doesn't yet have a value for #curr_room#, so it can't substitute.
Alex
28 Jun 2007, 22:07If you add all possible images manually as resources though, it should work. This is precisely why I created a mechanism for manually adding resources!