Can not upload my game in sharemygame.com

transformUnityUpload:Error: No such object: simmer-io.appspot.com/unityUpload/KhzGxBFMdXdQIzm2oBO6ZcKhhjx2/staging/index.html at new ApiError (/workspace/node_modules/@google-cloud/common/build/src/util.js:59:15) at Util.parseHttpRespMessage (/workspace/node_modules/@google-cloud/common/build/src/util.js:161:41) at Util.handleResp (/workspace/node_modules/@google-cloud/common/build/src/util.js:135:76) at Duplexify.requestStream.on.on.res (/workspace/node_modules/@google-cloud/storage/build/src/file.js:823:31) at Duplexify.emit (events.js:198:13) at Duplexify.EventEmitter.emit (domain.js:466:23) at DestroyableTransform.emit (events.js:198:13) at DestroyableTransform.EventEmitter.emit (domain.js:466:23) at onResponse (/workspace/node_modules/retry-request/index.js:200:19) at PassThrough. (/workspace/node_modules/retry-request/index.js:152:11)

every time i upload it gets to 100% then i get this in red box :worried:

Hi @louise_collins,

In which course and lecture are you? Are there any error messages in your Unity console? Have you already tried to rebuild your game?

Thanks for your response. Its uploaded now but i can not see my game yet. Didn’t have this issue before.

If you uploaded your game a couple of minutes ago, you’ll have to wait for a while because the server has to process the uploaded data first.

yeh im having a mouse to cursor problem atm so i cancelled it anyway for now

meaning the cursor isn’t aligned with the paddle correctly

Is the camera position set to (8, 6, -10)? Did you set the correct resolution (800 x 600) in File > Build Settings > Player Settings?

1 Like

yes the problem is my cursor is in different place to paddle which spoils game im basically stuck which is a shame because its a really nice game i put a lot of work into it

When i play mode i have to move mouse further than i should to move paddle its really frustrating

I will upload game anyway then it will be easier for you to know the problems. There are a couple.

  1. Cursor wont move how it should with paddle.
  2. I added a pause menu but the animations i added plus ball and paddle wont pause. I think it’s something to do with the physics.

If you uploaded your game, tested it in your browser (icognito mode) and experienced bugs, please follow Rob’s instruction in this thread. Maybe there is a helpful error message in your browser console.

Regarding the issue with the paddle, make your life easy and use ScreenToWorldPos. Then you can drop the code for calculating the paddle position based on the screen width in World Units. In the example, cam and point are relevant for you.

awe thankyou so much for that info

i didnt have a problem downloading game today. i think it is probably security as i use 2 computers

Ive spent a few hours trying to use ScreenToWorldPos but with no change. Im probably doing it all wrong. Im quite new to coding and finding this really difficult.

Implementing ScreenToWorldPos is not that difficult, so I’m sure you are already on the right track. Maybe there is just a detail missing. You could share your code here. :slight_smile:


See also:

I trashed it sorry. Its confusing to me. There are no straight forward tutorials on how to do this anywhere

I accidentally called the method ScreenToWorldPos instead of ScreenToWorldPoint.

Here are a few steps:

  1. Assign the “Main Camera” to a variable. (See the example in the API or assign the reference as you learnt it in the course.)
  2. Call ScreenToWorldPoint. Pass the mouse position on to the method. (See the example in the API. You know how to get the mouse position because you already use it to move your paddle). Assign the returned value to a new variable, e.g. mousePos.
  3. Create a new Vector3 object with the current paddle position and assign it to a new variable, e.g. paddlePos.
  4. Assign the desired mouse coordinate in World Units, which you got from ScreenToWorldPoint, to the corresponding paddlePos component. (Hint: The Vector3 object consists of 3 components: x, y, z.)
  5. Assign the modified Vector3 object assigned to paddlePos to the transform.position of the paddle.

Done.

If you get stuck, please let me know and share what you have.

Alternatively, rewatch the videos. One of the objects probably has got a wrong position, or the aspect ratio is not set to 4:3 in the game window.


See also:

should it be 4:3 in the game window or 800x600 which appears smaller ? can you do 1920x1080 so you can have your own left and right border sprites rather than just a plane colour. Thanks for your help by the way :smiley:

If you prefer a different aspect ratio, feel free to design your game for that. However, Rick’s current solution requires you to do the maths to make the paddle follow the mouse.

For more flexibility try to implement ScreenToWorldPoint. Since you plan to make your game unique, it’s a good challenge. :slight_smile:

I would suggest to opt for a smaller resolution than 1920 x 1080 because not everybody on the internet has got a large screen. Mine, for example, has got a resolution of 1920 x 1200. In my browser, the upper and/or lower part of your game would be cropped.

ahh thanks for that info on resolution

Privacy & Terms