question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

A2S_RULES not decoding correctly ?

See original GitHub issue

Hello and thanks a lot for the API! I try to get all mods on a server, for that I use the a2s_rules. I’d like to know if it’s decoded correctly ?

import a2s address = ("205.178.177.120", 2303) mods = a2s.rules(address) print(mods)

->

{'\x01\n': '\x01\x01\x01\x02\x01\x01\x01\x02gn(T"d\x7fp�\x04�H��\x15DayZ-Expansion-Quests*\x01\x03�v\x04�\x1a��\x17Chernobyl Zone Building2�l5\x04�-��\x11UndergroundBunkerp��\x04\x04�p�e\x10BaseBuilding', '\x02\n': "Plus�Q�\x01\x01\x04��\x1eb\x08CodeLock6\x14�9\x04?�m�\x08MagicBox\x16�v�\x04\x05~�l\x0fBreachingcharge\x1b�\x08E\x04��Ł\nSPBuilding�\x07�\x04q���\x11BuildingsModPack7'�\x03\x1c\x04�\x07\x06�\x1dArma", '\x03\n': ' 2 Helicopters Remastered1\x1e�(\x04dS\x19�\x17Survivalists_FacePaints��l�\x04 ���\x0eDabs Framework�ڄ\x04]�k�\x13Rearmed Server Packnm\x15\x0b\x04�<Ý\x0eTactic', '\x04\n': 'al Flava�\x03��\x04[�U�\x0fCrocos QuadbikeNc�O\x04�+\x1f�\x06ZStuff\x0b"��\x04g橎\x0fTerrain Islands�ү�\x04��8m\rFlipTransport���\x17\x04�锌\x11IndustrialModPackɖ�', '\x05\n': '\x01\x01\x04.���\x14BuildingsMegaModPack.���\x04�ޙ�\x17DayZ-Expansion-Vehicles\x1d\x0f�:\x04ȩ��\x18DayZ-Expansion-Name-Tagsvž(\x04�l��\x19DayZ-Expansion-Animati', '\x06\n': 'ons��SE\x04�\x01\x03!~\x17DayZ-Expansion-Licensed|�\x13E\x04\x16�R�\x15DayZ-Expansion-Market�x{�\x04\\ޙ�\x13DayZ-Expansion-Core����\x04T��l\rVPPAdminTools?,\x10\x01\x01\x04�', '\x07\n': "Z��\x0eMagObfuscation$�\x16\x19\x04�(��\x12DayZ Editor Loaderk\x10�]\x04_A��\x13InventoryMoveSounds�\x1c*O\x04ztM�\x07Dogtags\x18��\x01\x01\x04\x01\x02\x08'k\x12WindstrideClothing'���\x04", '\x08\n': '(��v\rMuchStuffPack�\x1a\nt\x04\x04��\\\x13Community Framework\x16\x03BBP\x0bcftoolsRoot\nCodeLockv3\x0eCrocoDocPublic\x03CZB\x04dayz\tdesignful\tExpansion\tGormirn', '\t\n': 'TI\x04HDSN\tHelkhiana\x0cInclementDab\x0bItsATreeev2\x0eJacob_Mango_V3\tJosecitox\nliquidrock\tSPModding\x06Starlv\x03VPP\tWardog.v3\x07Wayward\nWindstrid', '\n\n': 'e', 'allowedBuild': '0', 'dedicated': '1', 'island': 'Enoch', 'language': '65545', 'platform': 'win', 'requiredBuild': '0', 'requiredVersion': '119', 'timeLeft': '15'}

Any idea on how to get the clean mods list ? 😃

Thanks!

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:13 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
Yepolebcommented, Oct 29, 2022

There you go https://github.com/Yepoleb/dayzquery. If you can document some values please open a pull request.

0reactions
dlartigucommented, Oct 29, 2022

Wooooo dude!! That’s amazing! Yes I’m determined when I do something haha But, wooo that a lot. Thanks so much!

I’ll see what I can do to document it 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Decode doesn't decode correctly [duplicate] - Stack Overflow
I'm having problems decoding a byte[] to string following a tutorial... This is my code: import java.util.Base64; import java.nio.charset.
Read more >
Encoding/Decoding not working on Dictionary Objects
I'm trying to Encode/Decode an object in order to store it in UserDefaults. My object contains a Dictionary object contining a key, with...
Read more >
Google Auth Call back generates error - The string to ... - GitHub
Error: Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded. at Error (native) at b64_to_utf8 ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found