Search Unity

i have a problem with tiny unity

Discussion in 'Project Tiny' started by HamzaLk, Apr 21, 2019.

  1. HamzaLk

    HamzaLk

    Joined:
    Jul 16, 2017
    Posts:
    3
    i imported the tiny unity to unity 2019.1
    an i get this error
    Library\PackageCache\com.unity.tiny@0.14.4-preview\Editor\Export\TinyAssetExporter.cs(712,38): error CS1061: 'TMP_FontAsset' does not contain a definition for 'characterDictionary' and no accessible extension method 'characterDictionary' accepting a first argument of type 'TMP_FontAsset' could be found (are you missing a using directive or an assembly reference?)


    how to fix it
     
  2. missli93

    missli93

    Joined:
    Oct 5, 2018
    Posts:
    2
    i get this error,too . hope receive solution:)
     
  3. TVHSE

    TVHSE

    Joined:
    Mar 24, 2018
    Posts:
    1
    same here
     
  4. rachidDev

    rachidDev

    Joined:
    May 19, 2017
    Posts:
    10
    Me too , Unity version 2019.1.0f2
     
  5. marks32

    marks32

    Joined:
    Mar 27, 2019
    Posts:
    1
    I just got the error too, looks like still no fixes yet
     
  6. nubfight4

    nubfight4

    Joined:
    Sep 9, 2017
    Posts:
    2
    I got the same error on 2019.1 too, but 2018.3 doesn't have this problem though.
     
  7. GobniLin

    GobniLin

    Joined:
    Mar 7, 2015
    Posts:
    1
    Tiny Mode is depending on TextMesh Pro "1.3.0".
    'characterDictionary' method is deleted on 1.4.0
    so downgrade TextMeshPro to 1.3.0
     
  8. raymondyunity

    raymondyunity

    Unity Technologies

    Joined:
    Apr 30, 2018
    Posts:
    97
    Downgrading is a valid workaround however there should be a fix coming today.
     
    chrizstvan and missli93 like this.
  9. ben4d85

    ben4d85

    Joined:
    Dec 26, 2018
    Posts:
    9
    @raymondyunity I am still receiving the TMP error that @HamzaLk mentioned.

    Versions:
    - Unity 2019.1.0f2
    - Tiny Mode 0.14.4
    - TextMesh Pro 2.0.0

    If I downgrade TextMesh Pro to 1.3.0 as recommended by @GobniLin, I receive the following error:

    Code (CSharp):
    1. Exception: Failed to update dependencies:
    2. TINY SHELL> C:\unity\MyProject\Tiny\Dist
    3.  
    4. SET PATH=C:\Program Files\Unity\Hub\Editor\2019.1.0f2\Editor\Data\MonoBleedingEdge\bin;%PATH%
    5.  
    6. bee.exe
    7.  
    8. [33m[BUSY 6s] [0mDownload and unpack artifacts/Stevedore/tiny-samples/.StevedoreVersion
    9.  
    10. [33m[BUSY 6s] [0mDownload and unpack artifacts/Stevedore/tiny-dist/.StevedoreVersion
    11.  
    12. [33m[BUSY 7s] [0mDownload and unpack artifacts/Stevedore/tiny-samples/.StevedoreVersion
    13.  
    14. [33m[BUSY 7s] [0mDownload and unpack artifacts/Stevedore/tiny-dist/.StevedoreVersion
    15.  
    16. [33m[BUSY 8s] [0mDownload and unpack artifacts/Stevedore/tiny-samples/.StevedoreVersion
    17.  
    18. [33m[BUSY 8s] [0mDownload and unpack artifacts/Stevedore/tiny-dist/.StevedoreVersion
    19.  
    20. [33m[BUSY 9s] [0mDownload and unpack artifacts/Stevedore/tiny-samples/.StevedoreVersion
    21.  
    22. [33m[BUSY 9s] [0mDownload and unpack artifacts/Stevedore/tiny-dist/.StevedoreVersion
    23.  
    24. [33m[BUSY 10s] [0mDownload and unpack artifacts/Stevedore/tiny-samples/.StevedoreVersion
    25.  
    26. [33m[BUSY 10s] [0mDownload and unpack artifacts/Stevedore/tiny-dist/.StevedoreVersion
    27.  
    28. [31m[2/4 10s] Download and unpack artifacts/Stevedore/tiny-samples/.StevedoreVersion
    29.  
    30. [0m[33m##### CommandLine
    31.  
    32. [0mC:\unity\MyProject\Tiny\Dist\bee.exe steve internal-unpack testing tiny-samples/24b467d6656b00060f60cba04aa94438e2416ee1_0aa6216384de2bba66969d0e60403ed2f7973b947832c2b4b29438df1a671f50.7z "artifacts/Stevedore/tiny-samples"
    33.  
    34. [33m##### Custom Environment Variables
    35.  
    36. [0mBEE_INTERNAL_STEVEDORE_7ZA=C:\unity\MyProject\Tiny\Dist\artifacts\Stevedore\7za-win-x64\7za.exe
    37.  
    38. [33m##### ExitCode
    39.  
    40. [0m1
    41.  
    42. [33m##### Output
    43.  
    44. [0mstevedore: Failed to download (timeout: 10000 ms): http://stevedore.hq.unity3d.com/r/testing/tiny-samples/24b467d6656b00060f60cba04aa94438e2416ee1_0aa6216384de2bba66969d0e60403ed2f7973b947832c2b4b29438df1a671f50.7z
    45.  
    46. [31m[3/4 10s] Download and unpack artifacts/Stevedore/tiny-dist/.StevedoreVersion
    47.  
    48. [0m[33m##### CommandLine
    49.  
    50. [0mC:\unity\MyProject\Tiny\Dist\bee.exe steve internal-unpack testing tiny-dist/24b467d6656b00060f60cba04aa94438e2416ee1_fb80481159e1b247fa9990f42cd7b84b69c130101fd15f45e967354ad533d8b0.7z "artifacts/Stevedore/tiny-dist"
    51.  
    52. [33m##### Custom Environment Variables
    53.  
    54. [0mBEE_INTERNAL_STEVEDORE_7ZA=C:\unity\MyProject\Tiny\Dist\artifacts\Stevedore\7za-win-x64\7za.exe
    55.  
    56. [33m##### ExitCode
    57.  
    58. [0m1
    59.  
    60. [33m##### Output
    61.  
    62. [0mstevedore: Failed to download (timeout: 10000 ms): http://stevedore.hq.unity3d.com/r/testing/tiny-dist/24b467d6656b00060f60cba04aa94438e2416ee1_fb80481159e1b247fa9990f42cd7b84b69c130101fd15f45e967354ad533d8b0.7z
    63.  
    64. [31m*** Bee build failed (10.84 seconds), 2 items updated[0m
    65.  
    66. Unity.Tiny.TinyRuntimeInstaller.UpdateToolchain (System.Boolean force) (at Library/PackageCache/com.unity.tiny@0.14.4-preview/Editor/Export/TinyRuntimeInstaller.cs:430)
    67. Unity.Tiny.TinyRuntimeInstaller.Install (System.Boolean force, System.Boolean silent) (at Library/PackageCache/com.unity.tiny@0.14.4-preview/Editor/Export/TinyRuntimeInstaller.cs:439)
    68. Unity.Tiny.TinyRuntimeInstaller.LazyInstall () (at Library/PackageCache/com.unity.tiny@0.14.4-preview/Editor/Export/TinyRuntimeInstaller.cs:40)
    69. Unity.Tiny.TinyRuntimeInstaller..cctor () (at Library/PackageCache/com.unity.tiny@0.14.4-preview/Editor/Export/TinyRuntimeInstaller.cs:21)
    70. Rethrow as TypeInitializationException: The type initializer for 'Unity.Tiny.TinyRuntimeInstaller' threw an exception.
    71. Unity.Tiny.TinyShell.RunToolNoWait (System.String name, System.String[] args, System.Diagnostics.DataReceivedEventHandler outputReceived, System.Diagnostics.DataReceivedEventHandler errorReceived) (at Library/PackageCache/com.unity.tiny@0.14.4-preview/Editor/Utility/TinyShell.cs:77)
    72. Unity.Tiny.BasicServer.SetupProcess () (at Library/PackageCache/com.unity.tiny@0.14.4-preview/Editor/LiveLink/BasicServer.cs:165)
    73. Unity.Tiny.BasicServer.Listen (System.Int32 port) (at Library/PackageCache/com.unity.tiny@0.14.4-preview/Editor/LiveLink/BasicServer.cs:221)
    74. Unity.Tiny.WebSocketServer+<>c.<Initialize>b__40_0 (Unity.Tiny.TinyProject project, Unity.Tiny.TinyContext context) (at Library/PackageCache/com.unity.tiny@0.14.4-preview/Editor/LiveLink/WebSocketServer.cs:128)
    75. Unity.Tiny.TinyEditorApplication.LoadContext (Unity.Tiny.TinyEditorContext context) (at Library/PackageCache/com.unity.tiny@0.14.4-preview/Editor/Windows/TinyEditorApplication.cs:949)
    76. Unity.Tiny.TinyEditorApplication.LoadTemp (Unity.Tiny.ContextUsage usage) (at Library/PackageCache/com.unity.tiny@0.14.4-preview/Editor/Windows/TinyEditorApplication.cs:882)
    77. Unity.Tiny.TinyEditorApplication+<>c.<Update>b__32_0 () (at Library/PackageCache/com.unity.tiny@0.14.4-preview/Editor/Windows/TinyEditorApplication.cs:141)
     
    Last edited: Apr 26, 2019
  10. Exsert

    Exsert

    Joined:
    Oct 22, 2015
    Posts:
    42
    Hello, @ben4d85

    As discussed in another thread it seems that @raymondyunity has got a fix ready to go for 0.14.5 but is having trouble quickly getting it onto the package manager.

    Unfortunately there seemed to be a problem with one of the server configurations being changed.

    Sadly we're just going to have to wait.

    Personally i tried several different versions 0.13 etc... but I did not have any luck with that for some reason.

    Hopefully it will be resolved soon because the product sounds amazing :)
     
    ivanbatista likes this.
  11. ben4d85

    ben4d85

    Joined:
    Dec 26, 2018
    Posts:
    9
    Thanks for explaining, @Exsert.

    If I used 2018.3 instead, what versions of Tiny and TMP would I need to install?
     
  12. Exsert

    Exsert

    Joined:
    Oct 22, 2015
    Posts:
    42
    @ben4d85 From what I've read through the forums 2018.3 until 0.14.1

    As in the release message of 0.14.3 @raymondyunity says "You do not have to upgrade unless you want to use 2019.1."
    And In this response He says "The only change in 0.14.2-preview was to fix the bug where Unity 2019.1 would not exit properly."

    But If it doesn't work on 2018.3 i think a lot of the tutorial content was using 0.13, So it might work using one of those versions. personally I can't get any version working, So I'm waiting out until 0.14.5 gets onto the package manager.

    Edit: Found reason 2018.3 wasn't working on my computer, I was using an alternate Hard drive. Swapped to using "My Documents" And it was resolved.
    I am now using 14.1
     
    raymondyunity likes this.
  13. ben4d85

    ben4d85

    Joined:
    Dec 26, 2018
    Posts:
    9
    @Exsert and anyone else who is having problems with this: For me, it appears to work with the following versions:

    - Unity: 2018.3.11f1
    - Tiny: 0.14.3
    - TextMesh Pro: 1.3.0
     
    raymondyunity and Exsert like this.
  14. Chrisdbhr

    Chrisdbhr

    Joined:
    May 21, 2016
    Posts:
    6
    same here.

    Unity 2019.1.0f2, created a blank project and just imported TinyMode 0.14.5 from project manager.
     
  15. PauloBissonho

    PauloBissonho

    Joined:
    Dec 1, 2018
    Posts:
    4
    For me, it appears to work with the following versions:
    2019.1.1f1, TextMesh Pro: 1.3.0 , Tiny: 0.14.5
     
    ben4d85 and Mitshi like this.
  16. rachidDev

    rachidDev

    Joined:
    May 19, 2017
    Posts:
    10
    Library\PackageCache\com.unity.tiny@0.14.5-preview\Editor\Export\TinyAssetExporter.cs(712,38): error CS1061: 'TMP_FontAsset' does not contain a definition for 'characterDictionary' and no accessible extension method 'characterDictionary' accepting a first argument of type 'TMP_FontAsset' could be found (are you missing a using directive or an assembly reference?)

    unity version 2019.1.2f1
     
  17. profanicus

    profanicus

    Joined:
    Nov 23, 2009
    Posts:
    286
    You need to downgrade TextMesh Pro to 1.3.0 for it to work with Tiny 0.14.5 and Unity 2019.

    (Package Manager/TextMesh Pro/See All Versions/1.3.0/Update to 1.3.0)
     
    MaDDoX and ben4d85 like this.
  18. IvovdMarel

    IvovdMarel

    Joined:
    Jun 1, 2014
    Posts:
    5
    Just removing the TextMesh Pro package worked for me (2019.1.3f1)
     
    PandemoniumGames and yemzzz like this.
  19. PandemoniumGames

    PandemoniumGames

    Joined:
    May 17, 2015
    Posts:
    1
    Thanks a ton, it helped!
     
  20. JC-Cimetiere

    JC-Cimetiere

    Unity Technologies

    Joined:
    May 8, 2014
    Posts:
    23
    Hello,
    please note, there's a new version of project Tiny, read the "Project Tiny C# Preview Available" post for details:
    https://forum.unity.com/threads/project-tiny-c-preview-available.688969/
    The package is now called "Project Tiny" and requires 2019.2.0b3 or above.

    Preview versions with Typescript (0.14.x or below) are no longer supported or getting updates.
    JC
     
  21. thienquangwp

    thienquangwp

    Joined:
    May 10, 2019
    Posts:
    1
    If you want to use TMP, replace these lines to TinyAssetExporter.cs in Tiny Package.

    Line 713.
    // From...
    foreach (var kvp in font.characterDictionary)
    {
    var ci = kvp.Value;
    var tinyCI = new Runtime.Text.TinyCharacterInfo(entity.Registry);
    tinyCI.value = (uint)ci.id;

    tinyCI.advance = ci.xAdvance;

    tinyCI.bearingX = ci.xOffset;
    tinyCI.bearingY = ci.yOffset;
    tinyCI.width = ci.width;
    tinyCI.height = ci.height;


    var min = new Vector2(ci.x / font.atlas.width, (font.atlas.height - ci.y - ci.height) / font.atlas.height);
    var off = new Vector2(ci.width / font.atlas.width, ci.height / font.atlas.height);
    tinyCI.characterRegion = new Rect(min.x, min.y, off.x, off.y);
    data.Add(tinyCI.Tiny);
    }


    // To
    foreach (var kvp in font.glyphLookupTable)
    {
    var ci = kvp.Value;
    var tinyCI = new Runtime.Text.TinyCharacterInfo(entity.Registry);
    tinyCI.value = (uint)ci.index;

    tinyCI.advance = ci.metrics.horizontalAdvance;

    tinyCI.bearingX = ci.metrics.horizontalBearingX;
    tinyCI.bearingY = ci.metrics.horizontalBearingY;
    tinyCI.width = ci.metrics.width;
    tinyCI.height = ci.metrics.height;


    var min = new Vector2(ci.glyphRect.x / font.atlas.width, (font.atlas.height - ci.glyphRect.y - ci.glyphRect.height) / font.atlas.height);
    var off = new Vector2(ci.glyphRect.width / font.atlas.width, ci.glyphRect.height / font.atlas.height);
    tinyCI.characterRegion = new Rect(min.x, min.y, off.x, off.y);
    data.Add(tinyCI.Tiny);
    }
     
  22. doodle_bingo

    doodle_bingo

    Joined:
    Jun 25, 2018
    Posts:
    1
    Versions:
    - Unity 2018.4.3f1
    - Tiny Mode 0.13.4
    - TextMesh Pro 1.3.0

    this is work
     
  23. Helious73

    Helious73

    Joined:
    May 4, 2019
    Posts:
    2
    how can i o that??