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

是否有办法批量下载图片和内容从不同的img和wz中? #227

Open
WarshawskyG opened this issue Jul 18, 2023 · 8 comments
Open

Comments

@WarshawskyG
Copy link

下载图片只能一个一个下载,但是在对比不同版本的时候可以导出更新和被移除的图片。有什么办法可以像对比版本那样导出图片吗?

@Kagamia
Copy link
Owner

Kagamia commented Jul 18, 2023

https://github.com/Kagamia/WzComparerR2/blob/master/WzComparerR2.LuaConsole/Examples/DumpImages.lua

@WarshawskyG
Copy link
Author

https://github.com/Kagamia/WzComparerR2/blob/master/WzComparerR2.LuaConsole/Examples/DumpImages.lua

非常感谢,这个程序非常好用。但是我在使用动画转换时被告知SaveGif不能被调用,然后被存储为了apng文件。我想问一下是否有办法直接存储为gif文件?

@Kagamia
Copy link
Owner

Kagamia commented Jul 18, 2023

#170

这个讨论串包含了一些示例代码,包括如何简单地识别gif和导出gif。

@WarshawskyG
Copy link
Author

#170

这个讨论串包含了一些示例代码,包括如何简单地识别gif和导出gif。

尝试的过程中发现了新的问题 :( “NLua.Exceptions.LuaScriptException: [string "chunk"]:65: A .NET exception occured in user-code
System.Exception: Apng error: FileError.
在 WzComparerR2.Common.BuildInApngEncoder..ctor(String fileName, Int32 width, Int32 height)”
以及旧的问题“NLua.Exceptions.LuaScriptException: [string "chunk"]:67: method 'SaveGif' is not callable (a nil value)”
我这是存在函数库的问题吗?

@Kagamia
Copy link
Owner

Kagamia commented Jul 19, 2023

可以额外说明一下您正在使用的wz客户端地区,版本,以及试图提取的wz image路径吗

@WarshawskyG
Copy link
Author

是CMS国服的测试服T193。路径是选的'Skill\15212.img',不过试过其他的路径也都有出现过这两个问题。之前单个选择effect调用savepicture来保存gif是可行的,且sound和png的提取是流畅的。测试服地址在这https://mxd.web.sdo.com/web6/news/newsContent.asp?ID=351693&CategoryID=275

@Kagamia
Copy link
Owner

Kagamia commented Jul 19, 2023

Gif 确实没有声明SaveGif方法,您可以参考 #170 (comment) 自行改写成lua。

@WarshawskyG
Copy link
Author

Gif 确实没有声明SaveGif方法,您可以参考 #170 (comment) 自行改写成lua。

好的!感谢大佬指点!真是不好意思麻烦你这么久

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

No branches or pull requests

2 participants