3 Examples error for cocos2d-x-3.4, 3.5, 3.6 [solved]

General discussion about the R.U.B.E editor
Post Reply
gOzaru
Posts: 16
Joined: Wed May 27, 2015 6:33 am

3 Examples error for cocos2d-x-3.4, 3.5, 3.6 [solved]

Post by gOzaru »

I just test the examples for cocos2d-x-3.4
I used cocos2d-x-3.4, 3.5 and 3.6 to test.
And the only examples work for those engines are:
01. basic load
02. images load
03. destroy bodies
04. pinball demo
The above examples runs well on Lumia 535

The rest examples give the same error in all engines:
01. Planetcute demo
02. Simple menu demo
03. UI controls demo

in MediaSteamer.cpp line 85

Code: Select all

    if (file.Get()==INVALID_HANDLE_VALUE)
    {
        throw ref new Platform::FailureException();  <---- error here. 
    }
I intend to buy RUBE but I need to test all these examples.
And three of them are failure.
while I need them the most.

Please somebody help me.
Last edited by gOzaru on Thu May 28, 2015 1:36 am, edited 1 time in total.
iforce2d
Site Admin
Posts: 861
Joined: Sat Dec 22, 2012 7:20 pm

Re: 3 Examples error for cocos2d-x-3.4, 3.5, 3.6

Post by iforce2d »

Those three samples use .wav file sounds, and "MediaStreamer" sounds like a class that loads and plays sounds. Does the Windows phone version of cocos2dx support loading of .wav files?

fwiw I can run all the examples ok on Android 4.0 and 5.1

EDIT: actually, file.Get()==INVALID_HANDLE_VALUE looks like the .wav files are simply not being found. Are they included in the app bundle successfully, at the correct path etc?
gOzaru
Posts: 16
Joined: Wed May 27, 2015 6:33 am

Re: 3 Examples error for cocos2d-x-3.4, 3.5, 3.6

Post by gOzaru »

yeah, you are right.
it's about path.
"res/sounds/pickupgem.wav"
I added res/ and it works...

One more time, can I pay without paypal?
check maybe?
gOzaru
Posts: 16
Joined: Wed May 27, 2015 6:33 am

Re: 3 Examples error for cocos2d-x-3.4, 3.5, 3.6

Post by gOzaru »

the others two examples don't work.
yeah, indeed the json is loaded, but still error.
and all images are loaded.
you can see the output.
please, help me.
thank you
Attachments
examples error (MenuScreenRUBELayer)
examples error (MenuScreenRUBELayer)
rube failed 01.jpg (203.87 KiB) Viewed 15486 times
gOzaru
Posts: 16
Joined: Wed May 27, 2015 6:33 am

Re: 3 Examples error for cocos2d-x-3.4, 3.5, 3.6

Post by gOzaru »

no problem I already know where I got wrong.
in class: ButtonRUBELayer, I have to add this line too:

Code: Select all

"res/sound/....wav"
thank you.

can I pay using account bank?
beside paypal?
iforce2d
Site Admin
Posts: 861
Joined: Sat Dec 22, 2012 7:20 pm

Re: 3 Examples error for cocos2d-x-3.4, 3.5, 3.6 [solved]

Post by iforce2d »

There is no means to pay except for PayPal at the moment. If you have a credit card, you can use it to pay through PayPal (you'd need to make an account which does not take long).
gOzaru
Posts: 16
Joined: Wed May 27, 2015 6:33 am

Re: 3 Examples error for cocos2d-x-3.4, 3.5, 3.6 [solved]

Post by gOzaru »

okay, I have a credit card.
Is there a guide to use paypal with credit card without registering an account in paypal?
iforce2d
Site Admin
Posts: 861
Joined: Sat Dec 22, 2012 7:20 pm

Re: 3 Examples error for cocos2d-x-3.4, 3.5, 3.6 [solved]

Post by iforce2d »

As I said, you'd need to make an account.
Post Reply