如何将Java代码(base64 varint解码)转换为PHP? [英] How to convert Java code (base64 varint decoding) to PHP?

查看:318
本文介绍了如何将Java代码(base64 varint解码)转换为PHP?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

已解决,请在下面回答. 在过去的一周中,我一直在尝试将一些Java代码转换为PHP,但是没有任何运气. 这是炉石传说(纸牌游戏)卡组代码解码代码(听起来很奇怪...).该代码是base64字符串,其中使用了很多varint数组.

此处的更多信息: https://hearthsim.info/docs/deckstrings/

仅Java和C#代码可用.任何人都可以对如何将Java代码转换为php提供一些见识?

任何帮助将不胜感激!

解决方案

要使其正常运行的解决方案是使用 https://wzrd.in/. 在模块中,编写"deckstring",最新"版本可以,您将获得一个漂亮的JS文件,这就是需要的.

Edit: Solved it, answer below. In the past week I've been trying to convert some Java code to PHP without any luck. It's a Hearthstone (card game) deck code decoding code (sounds weird...). The code is a base64 string, which uses a lot of varint arrays.

More information here: https://hearthsim.info/docs/deckstrings/

Only Java and C# code is available. Anyone could give some insights on how to convert java code to php?

Any help would be greatly appreciated!

解决方案

The solution to get it working, is to use https://wzrd.in/. In the module, write "deckstring", "latest" version is fine, you get a nice JS file and that's what is needed.

这篇关于如何将Java代码(base64 varint解码)转换为PHP?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆