android / tuningfork

Android Performance Tuner is a library to help developers measure frame rendering time across different devices and game stages. This plugin will help developers integrate Android Performance Tuner into their game.
https://developer.android.com/games/sdk/performance-tuner/unity
Other
53 stars 30 forks source link

ProtocCompiler error on dev_tuningfork.proto - Error related to ascii codepoint #41

Closed Unitarian2 closed 10 months ago

Unitarian2 commented 10 months ago

Hello, I've just created a new project for my next mobile game and decided to work with the integration of the plugins first.

When I imported the package(v1.5.2), An error message appears in console

ProtocCompiler error: dev_tuningfork.proto:15:5: Interpreting non ascii codepoint 196. dev_tuningfork.proto:15:5: Expected type name. dev_tuningfork.proto:15:6: Interpreting non ascii codepoint 177.

UnityEngine.Debug:LogErrorFormat (string,object[]) Google.Android.PerformanceTuner.Editor.ProtocCompiler:CompileProto (string,string[],string) (at Assets/AndroidPerformanceTuner/Editor/Scripts/ProtocCompiler.cs:93) Google.Android.PerformanceTuner.Editor.ProtocCompiler:GenerateProtoAndDesc () (at Assets/AndroidPerformanceTuner/Editor/Scripts/ProtocCompiler.cs:50) Google.Android.PerformanceTuner.Editor.Initializer/<>c__DisplayClass29_0:b__0 () (at Assets/AndroidPerformanceTuner/Editor/Scripts/Initializer.cs:234) Google.Android.PerformanceTuner.Editor.Initializer:CreateProtoFile (Google.Android.PerformanceTuner.Editor.DevDescriptor) (at Assets/AndroidPerformanceTuner/Editor/Scripts/Initializer.cs:248) Google.Android.PerformanceTuner.Editor.Initializer:Init () (at Assets/AndroidPerformanceTuner/Editor/Scripts/Initializer.cs:138) Google.Android.PerformanceTuner.Editor.Initializer:.cctor () (at Assets/AndroidPerformanceTuner/Editor/Scripts/Initializer.cs:112)

I've tried it with both Unity versions 2022.3.4f1 and 2021.3.22f1. I've attached my dev_tuningfork.proto file. Any help?

Proto.zip

labalov commented 10 months ago

Hey,

Looks like a small typo on your dev_tuningfork.proto file. On line 15, you said ınt32 instead of int32.