Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice

Trying to get started

Discussion in 'Project Tiny' started by exoainteractive, Mar 26, 2020.

  1. exoainteractive

    exoainteractive

    Joined:
    Jan 21, 2017
    Posts:
    20
    Hi there,
    I'm stuck following the "Setting up a New Project" guide on 0.23.

    I first have to mention that I started with this documentation : https://docs.unity3d.com/Packages/com.unity.tiny@0.16/manual/getting-started.html
    but it seems to be decrecated and leading to misunderstandings...

    Then I was happy to find a workshop:

    but again after watching the half of it, I figured out it was an old thing using only typescipt instead of C#.

    Then I found the official google doc, and started the "New Project" guide and had some issues setting it up :
    - There is no "Unity.Tiny.EntryPoint" but a "Unity.Rendering.EntryPoint"
    - There is no "Unity.Tiny.Main" as well
    - An error asked me to add "Unity.Physics" (and other assemblies) even if I am not using Physics
    - An other error is asking to add the CSharp Assembly, I can't find it either : "The RotateComponent component is defined in the Assembly-CSharp assembly, but that assembly is not referenced by the current build configuration. Either add it as a reference, or ensure that the conversion process that is adding that component does not run." not sure what should I do ?

    The Racing project is not referencing any "Assembly-CSharp" so I don't know what I'm missing here ?
    Thanks a lot for your help !
    regards
     
  2. Ted_Wikman

    Ted_Wikman

    Unity Technologies

    Joined:
    Oct 7, 2019
    Posts:
    914
    Hello @exoainteractive ,
    I'm sorry the on boarding experience hasn't been ideal for you.
    The easiest way to get started is by using one of the two sample projects, depending on if you want to start with 2d or 3d.

    2D Template
    https://github.com/Unity-Technologies/2D-Entities-Starter/archive/0.22.0-preview.8.zip - Download and open the project inside the zip

    3D Template
    https://github.com/Unity-Technologies/ProjectTinySamples - Download and open the Tiny3D project

    Getting started from scratch is a bit tricky right now, as it requires quite a few steps. If you want to tackle it, you can follow either the 2D or 3D guide on how to set the project up.

    2D Getting started
    https://docs.unity3d.com/Packages/com.unity.2d.entities@0.22/manual/2D-rendering.html

    3D Getting started
    https://docs.google.com/document/d/1A8hen2hLFY5FLkC5gd3JP2Z-IpHfnAX-CpYLK3aOdwA/edit

    After following these steps, let us know how it went.
     
    exoainteractive likes this.
  3. exoainteractive

    exoainteractive

    Joined:
    Jan 21, 2017
    Posts:
    20
    Thank you so much for the proper links! The 2D template using 0.22 works fine.

    Just for information do you know why it asked for the "Assembly-Csharp" to be added when I tried to use the 0.23 ?

    Thanks !
     
    Last edited: Mar 26, 2020
  4. exoainteractive

    exoainteractive

    Joined:
    Jan 21, 2017
    Posts:
    20
    Also I can't get the samples working online for some reason. They are working on my local webserver, but as soon as I upload them I get a blank page with these errors :

    Code (JavaScript):
    1.  
    2. [libil2cpp] A managed exception was thrown. The Tiny runtime does not support managed exceptions.
    3. a5461602-b3d2-408e-8d8b-3d6d818fd3e4:28 [libil2cpp] The exception message is: ToString is not implemented on System.Object for the Tiny profile. Please override ToString in the derived class if it is required.
    4. a5461602-b3d2-408e-8d8b-3d6d818fd3e4:28 [libil2cpp] No managed stack trace exists. Make sure this is a development build to enable managed stack traces.
    5. a5461602-b3d2-408e-8d8b-3d6d818fd3e4:28 [libil2cpp] No native stack trace exists. Make sure this is platform supports native stack traces.
    6. a5461602-b3d2-408e-8d8b-3d6d818fd3e4:131 Uncaught Error: trap!
    7.     at abort (a5461602-b3d2-408e-8d8b-3d6d818fd3e4:131)
    8.     at _llvm_trap (a5461602-b3d2-408e-8d8b-3d6d818fd3e4:6066)
    9.  
    Test links :
    https://tinyurl.com/teht3u4
    https://tinyurl.com/r5p3rlz


    Whereas your own online version runs really well. Did I miss something ?
    Thanks again !
     
    Last edited: Mar 26, 2020
  5. Ted_Wikman

    Ted_Wikman

    Unity Technologies

    Joined:
    Oct 7, 2019
    Posts:
    914
    Great that the links worked for you.

    Regarding Assembly-Csharp, this is the default assembly if you do not have an assembly definition (.asmdef) in the folder (or the parent folder) where a script is located. If you select a script in the project view, you can see in the inspector which assembly the script is associated with.
    MyScript.png

    The solution is to make sure that all scripts are associated with one of your assembly definitions used by your tiny project. See more here.

    Regarding the issue you are seeing when building and deploying a web build, what are you trying to build and deploy? and if you run the same build on Windows/MacOS, do you see any errors or warnings in the console inside Unity?

    Also, this might not be the root of the problem, but do make sure that your FTP program has its transfer mode set to binary, to avoid any corruption of the files on upload.
     
  6. exoainteractive

    exoainteractive

    Joined:
    Jan 21, 2017
    Posts:
    20
    Thank you! That worked for both issues :)
     
    Ted_Wikman likes this.
  7. cavehunter

    cavehunter

    Joined:
    Jun 2, 2020
    Posts:
    7
    I was stuck with the same issue when I uploaded the game to my website. Changing transfer type from Auto(default) to Binary on FileZilla solved the issue. Thanks!:)
     
    Ted_Wikman likes this.