Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in protobuf loading #11

Closed
Maarethyu opened this issue Jan 15, 2017 · 7 comments
Closed

Error in protobuf loading #11

Maarethyu opened this issue Jan 15, 2017 · 7 comments
Labels

Comments

@Maarethyu
Copy link
Contributor

I am loading csgo-float with a logged instance of node-steam-user and the script crash to this:

Error: Parse error at line 1: unexpected '404'
at Parser.ProtoBuf.DotProto.ParserPrototype.parse (/home/x/node_modules/protobufjs/dist/ProtoBuf.js:777:35)
at Function.ProtoBuf.DotProto.Parser.parse (/home/x/node_modules/protobufjs/dist/ProtoBuf.js:795:39)
at Object.ProtoBuf.loadProto (/home/x/node_modules/protobufjs/dist/ProtoBuf.js:5038:59)
at Object.ProtoBuf.loadProtoFile (/home/x/node_modules/protobufjs/dist/ProtoBuf.js:5084:52)
at Object. (/home/x/node_modules/csgo-float/protos/index.js:7:10)

@balthazar
Copy link
Owner

Which version are you using? Protos should have been published on npm and you shouldn't have to download them

@Maarethyu
Copy link
Contributor Author

Maarethyu commented Jan 16, 2017

I've tried a npm upgrade and even a rm -r node_modules/ but it stills throw the above error.
This is what i use

"csgo-float": "^0.1.2"
"steam-user": "^3.15.0"

I've also checked the .proto files in node_modules/csgo-float/ and they're just "404: Not Found"

@balthazar balthazar added the bug label Jan 16, 2017
@Maarethyu
Copy link
Contributor Author

I've also checked protos/update.js and if i go manually to

https://raw.githubusercontent.com/SteamDatabase/GameTracking/master/Protobufs/csgo/engine_gcmessages.proto

or any other protos it return "404: Not Found"

@Maarethyu
Copy link
Contributor Author

I think i just found what's wrong: SteamDatabase splitted their protobufs dumps for some games.
Now csgo protobufs are located in

https://raw.githubusercontent.com/SteamDatabase/GameTracking-CSGO/master/Protobufs/

@Maarethyu
Copy link
Contributor Author

Made a pull request: #12

@balthazar
Copy link
Owner

Haha was ingame and about to make the change, nicely done ;)

@balthazar
Copy link
Owner

Published 0.2.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants