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

JSON: "map_sides" field should allow null/undefined #163

Open
FlowingSPDG opened this issue May 22, 2024 · 3 comments
Open

JSON: "map_sides" field should allow null/undefined #163

FlowingSPDG opened this issue May 22, 2024 · 3 comments

Comments

@FlowingSPDG
Copy link
Contributor

Hello, thank you for developing/maintaining awesome plugin for CS2 era!
I was big fan of get5 originally, and developing get5-based match management app for few years.

So I was trying to use my old project for get5 with MatchZy, and figured out some properties are not compatible with original get5 load_match json structure.

https://splewis.github.io/get5/latest/match_schema/#schema
In this case, get5 allows undefined which is null in JSON but in MatchZy it does not allow null.

if (jsonData[field]!.Type != JTokenType.Array)

I am currently thinking to use an empty array instead of null, but it could be compatibility issue imo.

P.S. I am also curious to how veto_mode works! :)

@shobhit-pathak
Copy link
Owner

Hey!

Apologies for replying late, and thanks for highlighting it!
I thought it is compatible but I've definitely missed out a few things. As you said, for now you can use an empty array, or do not send map_sides in the json.
I'll be looking into it soon

veto_mode should be same as get5, it specifies the ban/pick order

@FlowingSPDG
Copy link
Contributor Author

FlowingSPDG commented Jun 3, 2024

Hi @shobhit-pathak and No problem at all!

Copy, I'll use empty array for my project and https://github.com/FlowingSPDG/Got5 . Thank you❤️‍🔥

@FlowingSPDG
Copy link
Contributor Author

Maybe this relates to #101 ?

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

No branches or pull requests

2 participants