You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So, no package name. To make it work, Im adding package name by hand, and then I have to also remove dots from the field types on messages (so optional .CSGOInterpolationInfoPB cl_interp = 12; will become optional CSGOInterpolationInfoPB cl_interp = 12;). I'm trying currently to make it work on the fork of the project, but I'm quite new to zig, so it's not going super fast
The text was updated successfully, but these errors were encountered:
Overall, love the generator, and the only thing that stumbled me was the fact that I can't generate zig files from protos without "package" directive.
I think we inherited this behaviour from the original generator that served as basis of this one. It was a go-based one, and it required packages. I'll take a look into it to know if i can find a workaround about this.
I have to also remove dots from the field types on messages
Looking a the proto language spec :
It would seem that a dot is allowed before a type name, for some reason. It's also allowed for inner messages, i think. I'll have to look into that, and handle at least properly the beginning dot.
Overall, love the generator, and the only thing that stumbled me was the fact that I can't generate zig files from protos without "package" directive.
Currently working on game data parser, and protos look like this:
So, no package name. To make it work, Im adding package name by hand, and then I have to also remove dots from the field types on messages (so
optional .CSGOInterpolationInfoPB cl_interp = 12;
will becomeoptional CSGOInterpolationInfoPB cl_interp = 12;
). I'm trying currently to make it work on the fork of the project, but I'm quite new to zig, so it's not going super fastThe text was updated successfully, but these errors were encountered: