upbge icon indicating copy to clipboard operation
upbge copied to clipboard

Add support to bge.logic.startGame load blend from binary data

Open joelgomes1994 opened this issue 7 years ago • 2 comments

Currently, bge.logic.startGame loads a blend file from disk only, however, bge.logic.LibLoad provides an option to load binary data instead of a file from disk. Could this be implemented in bge.logic.startGame?

Example of Use In order to protect blend files, blend files can be extracted from a encrypted ZIP file to memory, then started with bge.logic.startGame directly from memory.

joelgomes1994 avatar Jul 30 '18 15:07 joelgomes1994

It will be hard to allow restartGame from a startGameof memory data, is it fine to avoid this situation ?

panzergame avatar Aug 12 '18 14:08 panzergame

I think so, using startGame again instead of restartGame could be easily a replacement for this issue. As long this limitation is documented in API, I think this will not be a major issue.

joelgomes1994 avatar Aug 12 '18 15:08 joelgomes1994