@JohnnyC wrote:
Very strange problem.
My code already works on iOS, Android and Mac.With my game now updated to Cocos2d-x 3.9, using the win8.1-universal project (win32 project creates an executable that doesn't run!!!).
Run my game...music plays
(quit game)
Run my game again...assert!!!!!!!!!!!!The game will NOT play music until I rename the audio file or rename the folder it's in (eg. Resources/Audio/music.wav to Resources/WTF/music.wav), obviously I rename the filename/path within the code to reflect this change.
After renaming, it'll run once, then everytime after....assert!!!!
The assert is this one:
long FileUtils::getFileSize(const std::string &filepath) { CCASSERT(false, "getFileSize should be override by platform FileUtils"); return 0; }
Someone else obviously has exactly the same issue here:
Also, I've checked that the file (& paths) have been copied across by VS into the "proj.win8.1-universal/Debug/mygame.Windows/AppX/Assets/Resources/" folder.
Posts: 1
Participants: 1