My game working when i launch it from editor but not when i published it, since today

here is error i get from my game.
Cubemap is blurry to
make playcanvas any update
here is the link for game
https://playcanv.as/b/txrcyUXE/

__game-scripts.js:1 Uncaught TypeError: Cannot read properties of undefined (reading ‘setSteeringValue’)
at i.PlayerVehicle.update (__game-scripts.js:1)
at t.i._scriptMethod (playcanvas-stable.min.js:6)
at t.i._onUpdate (playcanvas-stable.min.js:6)
at t.i._callComponentMethod (playcanvas-stable.min.js:6)
at t.i._onUpdate (playcanvas-stable.min.js:6)
at Function.t._helper (playcanvas-stable.min.js:6)
at Function.t.update (playcanvas-stable.min.js:6)
at i.n.update (playcanvas-stable.min.js:6)
at playcanvas-stable.min.js:6
PlayerVehicle.update @ __game-scripts.js:1
i._scriptMethod @ playcanvas-stable.min.js:6
i._onUpdate @ playcanvas-stable.min.js:6
i._callComponentMethod @ playcanvas-stable.min.js:6
i._onUpdate @ playcanvas-stable.min.js:6
t._helper @ playcanvas-stable.min.js:6
t.update @ playcanvas-stable.min.js:6
n.update @ playcanvas-stable.min.js:6
(anonymous) @ playcanvas-stable.min.js:6
requestAnimationFrame (async)
(anonymous) @ playcanvas-stable.min.js:6
requestAnimationFrame (async)
(anonymous) @ playcanvas-stable.min.js:6
requestAnimationFrame (async)
(anonymous) @ playcanvas-stable.min.js:6
requestAnimationFrame (async)
(anonymous) @ playcanvas-stable.min.js:6
requestAnimationFrame (async)
(anonymous) @ playcanvas-stable.min.js:6
requestAnimationFrame (async)
(anonymous) @ playcanvas-stable.min.js:6
requestAnimationFrame (async)
(anonymous) @ playcanvas-stable.min.js:6
requestAnimationFrame (async)
(anonymous) @ playcanvas-stable.min.js:6
requestAnimationFrame (async)
(anonymous) @ playcanvas-stable.min.js:6
requestAnimationFrame (async)
(anonymous) @ playcanvas-stable.min.js:6
requestAnimationFrame (async)
(anonymous) @ playcanvas-stable.min.js:6
requestAnimationFrame (async)
(anonymous) @ playcanvas-stable.min.js:6
requestAnimationFrame (async)
(anonymous) @ playcanvas-stable.min.js:6
requestAnimationFrame (async)
(anonymous) @ playcanvas-stable.min.js:6
requestAnimationFrame (async)
(anonymous) @ playcanvas-stable.min.js:6
requestAnimationFrame (async)
(anonymous) @ playcanvas-stable.min.js:6
requestAnimationFrame (async)
(anonymous) @ playcanvas-stable.min.js:6
requestAnimationFrame (async)
(anonymous) @ playcanvas-stable.min.js:6
requestAnimationFrame (async)
(anonymous) @ playcanvas-stable.min.js:6
requestAnimationFrame (async)
(anonymous) @ playcanvas-stable.min.js:6
requestAnimationFrame (async)
(anonymous) @ playcanvas-stable.min.js:6
requestAnimationFrame (async)
(anonymous) @ playcanvas-stable.min.js:6
requestAnimationFrame (async)
(anonymous) @ playcanvas-stable.min.js:6
requestAnimationFrame (async)
(anonymous) @ playcanvas-stable.min.js:6
requestAnimationFrame (async)
(anonymous) @ playcanvas-stable.min.js:6
requestAnimationFrame (async)
(anonymous) @ playcanvas-stable.min.js:6
requestAnimationFrame (async)
(anonymous) @ playcanvas-stable.min.js:6
requestAnimationFrame (async)
(anonymous) @ playcanvas-stable.min.js:6
requestAnimationFrame (async)
(anonymous) @ playcanvas-stable.min.js:6
requestAnimationFrame (async)
(anonymous) @ playcanvas-stable.min.js:6
requestAnimationFrame (async)
(anonymous) @ playcanvas-stable.min.js:6

Just tried it myself. Seems to load fine here?

Looks like it is all related to the skybox being null on the published build but I can’t workout why

If I delete all the scripts in the project, the skybox is not null and renders correctly in the published build so some logic in the project is causing this issue

Ok,i have script its change the skybox settings,maybe i made mistake with it?
I have day and night in game for this i change the skybox settings dynamically,maybe there is a problem in this script.Bu all work when i launch from editor why?

I have day and night in game for this i change the skybox settings dynamically,maybe there is a problem in this script.Bu all work when i launch from editor why?

I don’t know. That’s something wrong going on and it’s not clear what is causing the issue

Looks like the workaround is to tick preload on the skybox textures:

For some reason, they aren’t being loaded on the published build.

Will investigate more latter

Yes it was the problem, thanks.A little question,how can i make a scene first scene although i created as second or third? Because i create my first scene not as first and in Build section i muss choose all the time the first scene again and again.

Can you rephrase please? I didn’t understand the question

Created a ticket for the skybox issue: https://github.com/playcanvas/editor/issues/593

I have to scene in project. Currently first scene is “Game Play” and second is “User Interface”.How can i make User Interface first scene?

Unfortunately I believe it is ordered in alphabetical order. There’s a feature request related to this: https://github.com/playcanvas/editor/issues/376