Problem with Publish error

The game starts and can be played in editor and preview WebGL and Preview Canvas, but when i try to Publish :

engine.zuoyouxi.com/lib/1.0.6/qc-core.js:1 Class:Player not exists

and breaks everything after.
how can i Fix it?

 imgur.com/hFEz279 
Has invited:

weism

Favor from: DonFrag

When define a behaviour script: 
   var playerScript = qc.defineBehaviour('qc.engine.playerScript', qc.Behaviour, function() {
the class name is 'qc.engine.playerScript' but not 'playerScript'. 
 

DonFrag

Favor from:

i created the player sprite again from 0
and the script of it too and named it different. Now throws the same error but with the new script name
engine.zuoyouxi.com/lib/1.0.6/qc-core.js:1 Class:playerScript not exists
this happens onlye with Publish
in editor and preview mode the game works ok
 

DonFrag

Favor from:

I know how occurs but i don't know  how to fix it.
 
if i have a node with a Script on it and make it prefab, in editor mode the instance works fine
in publish the prefab throws an error.
 
i had to place the prefab to the game heirarchy  and unmake it prefab. The error dissapear, but it throws it again with other sprite with a script attached.
 

weism

Favor from:

Can you send the project to me? 
My email: weism@qcplay.com

eric

Favor from:

It's strange case, normally the preview works then publish should works with no different. Can you send your project with error reappearable to my colleague's mail weism@qcplay.com, so we can help you to check this issue.

DonFrag

Favor from:

I just sent it to you. thanks

DonFrag

Favor from:

I was going to publish the soolution you gave me but i was too slow haha.
exactly i was missing qc.engine.  before the script name.
 
thank you so much
 

To reply to a question, please Login or registered