登录 [F2] | 注册 | 找回密码 | 软件下载 | 更新历史 | 关于本站 | 管理团队
首页 排行榜 录像 雷界 论坛 教程 雷神殿 我的地盘 新手上路
[问答]saolei.wang 是用什么编程语言编写的? (11/1865)
 [雷圣] 托马斯 发表于 2021年10月17日
首先,我为谷歌翻译的中文道歉。

我是 Thomas Kolar,又名 ralokt。 你们中的一些人从 WoM 认识我,但我也是 ViennaSweeper 的维护者和 Web 开发人员(我创建了 scoreganizer.net)。

有人告诉我 saolei.wang 不接受 RMV 重播的主要原因是没有人为该格式实现解析器。 我很想改变它!

现在唯一阻止我这样做的是我不知道 saolei.wang 是用哪种编程语言编写的。我只能说它是 ASP 的某种风格,这意味着我必须学习新的 编程语言为了做到这一点,我想学习正确的:D

所以:谁能告诉我 saolei.wang 是用什么编程语言编写的?

下面的原文,以防谷歌翻译把它弄得面目全非:

First of all, my apologies for the google translated chinese.

I'm Thomas Kolar aka ralokt. Some of you know me from WoM, but I'm also maintainer of ViennaSweeper and a web developer (I made scoreganizer.net).

I've been told that the main reason why saolei.wang doesn't accept RMV replays is that nobody has implemented a parser for that format. I'd love to change that!

The only thing stopping me from doing that right now is that I don't know which programming language saolei.wang is written in. All I can tell is that it's some flavor of ASP, which means that I'll have to learn a new programming language in order to do that, and I'd like to learn the right one :D

So: Can someone tell me what programming language saolei.wang is written in?
回复此主题
第 1 楼
 [雷圣] 郭锦洋 回复于 2021年10月17日
maybe just a little change will make vienna sweeper available on this site. 
第 2 楼
 [雷神] 王嘉宁 回复于 2021年10月17日
貌似不是这个原因。不支持RMV格式的原因只有一个,那就是saolei.wang根本没有RMV格式的录像。貌似历史上只接受上传mvf和avf格式的录像
第 3 楼
 [雷神] 王嘉宁 回复于 2021年10月17日
貌似这是开源地址:
https://github.com/shenjia/saolei.net-2008
第 4 楼
 [雷圣] 张砷镓 回复于 2021年10月17日
Hi bro, I created this site on 2008. The whole site wrote in ASP, but there's no such function to read status data from replays. Player has to input time and 3BV when they upload it, and reviewer has to check those data manually. But some developers build additional tools to help us to check those data automatically. 

So, you can find the whole codes in https://github.com/shenjia/saolei.net-2008, but I'm sorry for that doesn't help to add RMV replays to saolei.wang anymore. Since I already lost my all enthusiasm on minesweeper many years ago, It's hard to find a reason for me to update it.
第 5 楼
 [雷神] 毛涤尘 回复于 2021年10月17日
Kolar,

I'm mostly guessing here. 

1 The site stores the data as is.
2 user downloads the raw data.
3 there is a page with js pulls the raw data and draws the replay. this funtion is mainly developed by Hu En-bin.
4 RMV format spec is needed for js display function and for auto-checker function (which is written by java).

I don't think you need to know ASP here.

Cheers,
Amao
第 6 楼
 [雷神] 毛涤尘 回复于 2021年10月17日
PS. Oh, yes, the admin is no longer active. But as long as you can teach Hu En-bin to master your format. We'll find a way to update the site.
第 7 楼
 [雷圣] 托马斯 回复于 2021年10月17日
感谢大家的回复!

代码我看过了,我的印象和你的阿毛一样。

服务器代码中似乎有一个地方检查了扩展名,但您不必了解 ASP 就知道如何更改它:
https://github.com/shenjia/saolei.net-2008/blob/master/asp/Video/Action/Upload_Action.asp#L36

至于客户端,这似乎是进行验证的地方:
https://github.com/shenjia/saolei.net-2008/blob/master/asp/Play/js/play_avf.js#L355

所以,在我看来,迄今为止最大的任务是
 - 添加`playRmvVideo` 功能
 - 更新 java 自动检查器

我将立即开始第一点 - 将让您了解我的进度!

自动检查器的源代码是否开源/在哪里可以找到?

顺便说一下,关于 RMV 格式:它有多种开源实现:
 -https://github.com/ralokt/sweeping-view(Python 库)
 -https://github.com/thefinerminer/minesweeper-rawvf (C 工具)

因此,如果有人想编写一些 Java 代码,这些可能是一个很好的起点。另外,有问题可以问我哦!

--------

Thanks to everyone for the replies!

I've had a look at the code - my impression was the same as yours Amao.

There seems to be one place in the server code where the extension is checked, but you don't have to know ASP to know how to change that:
https://github.com/shenjia/saolei.net-2008/blob/master/asp/Video/Action/Upload_Action.asp#L36

As for the client, this seems to be where validation takes place:
https://github.com/shenjia/saolei.net-2008/blob/master/asp/Play/js/play_avf.js#L355

So, as far as I see it, the biggest tasks by far would be
 - adding a `playRmvVideo` function
 - updating the java auto-checker

I'll get started on the first point right away - will keep you posted on my progress!

Is the source code for the auto-checker open source/where can I find it?

By the way, regarding the RMV format: there are multiple open-source implementations of it:
 - https://github.com/ralokt/sweeping-view (Python library)
 - https://github.com/thefinerminer/minesweeper-rawvf (C tools)

So if anyone wants to go write some java code, these would probably be a great starting point. Also, feel free to ask me questions!
第 8 楼
 [雷神] 毛涤尘 回复于 2021年10月17日
Kolar,

Please stop using google translate. Thank you!

Get in touch with Hu En-bin is the better alternative for your play video task coz he implemented the whole play on page stuff and got them into the current site. So it's much easier to have him adding a new feature into his project.

There might a little minor more minor changes in the asp side for some basic authentication when uploading. Hu should be able to handle them as well.

As for auto-checker, it's me. However, I'm away from my code for the time being. I don't have a schedule for when I'll be back yet. Sorry for the inconvenience. When replay is online, at least admins can check them manually. :)

So, find Hu and motivate him should be your primary task.

Sincerely,
Amao
第 9 楼
 [雷圣] 胡恩彬 回复于 2021年10月17日
As for the part about playing "RMV" videos, since I am rebuilding my web video player, shortly, this site will support playing "RMV" videos.

Of course, there is no definite time frame for this yet, and the exact timing will be affected by my free time and feature completion.

If you are eager to have the site support "RMV" video upload and playback now, you can change the site's code and submit a merge request yourself.

However, I want you to be aware that I may have to replace the entire video player with a new one after a while. This includes, of course, the part of the code you intend to submit now.

If you're interested, you can see a demo of my currently completed feature here: https://hgraceb.github.io/web-minesweeper-player-demo/
第 10 楼
 [雷圣] 托马斯 回复于 2021年10月18日
https://github.com/shenjia/saolei.net-2008/pull/34

Oops, too late :D

The parser is deliberately factored out into its own class - so reusing that code should be easy :)
  共 11 篇回复  首页 | 上一页 | 下一页 | 末页  现在是第 1/2 页
楼主信息
Copyright @ 2008 扫雷网 Saolei.wang 版权所有 陕ICP备19026089号-1