图片转化器转出来不对啊……



chen_xin_ming
2011-03-06 12:15:12

[i=s] 本帖最后由 chen_xin_ming 于 2011-3-6 14:19 编辑 [/i]

256色模式,是什么地方设错了吗?
源图片是256*192的png,8位和24位色都试过,都是这样。

[attach]20789[/attach]


白枫
2011-03-06 13:06:21

这色彩太美妙了


785590
2011-03-06 13:14:49

好残像的说 话说太........


gyyfifafans
2011-03-06 13:25:14

雷叔求解!!


伪·红莲
2011-03-06 14:13:20

怎么这比偶以前玩的256色的游戏还256色的。。。


悸樱奏
2011-03-06 15:06:33

这是某高滴新作吗


william6849
2011-03-06 16:19:17

這時候雷叔呢...


lrb2010
2011-03-06 16:19:59

太漂亮了。。。。


chen_xin_ming
2011-03-07 09:39:41

雷叔解答一下吧,试了各种规格的图片没有一张转出来能用的……


雷精灵
2011-03-07 10:41:19

注意看本少爷的截图和乃的截图之间的差异。
选择完颜色模式之后,点一下别的单元格,于是刚才选中项的文字就会居中显示。这个时候才算是真正的选择完颜色模式。然后再转化就没问题了。


chen_xin_ming
2011-03-07 13:26:58

[b]回复 [url=http://www.yayabo.cn/redirect.php?goto=findpost&pid=215272&ptid=16998]10#[/url] [i]雷精灵[/i] [/b]

试着弄了一下,色彩问题解决了,但是有一些黑像素,源图片8位和24位色都试过,24位色的图黑像素少些,但是也有黑色区域。
求雷叔解答。

[attach]20845[/attach]


雷精灵
2011-03-07 13:51:38

切换到PAKViewer,载入乃刚才做好的这个PAK,然后双击列表项,弹出预览窗口之后,菜单,Show Info,截图贴出来。


chen_xin_ming
2011-03-07 14:52:29

[b]回复 [url=http://www.yayabo.cn/redirect.php?goto=findpost&pid=215365&ptid=16998]12#[/url] [i]雷精灵[/i] [/b]

打开pak文件的时候报错,如图
[attach]20849[/attach]


chen_xin_ming
2011-03-07 14:56:37

[b]回复 [url=http://www.yayabo.cn/redirect.php?goto=findpost&pid=215365&ptid=16998]12#[/url] [i]雷精灵[/i] [/b]

然后点continue之后能看到正常的图片,但是选择show info之后报下面的错,点continue之后显示的就是一个红叉。我权限低,本贴不能再上图了……上错误信息吧。

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.NullReferenceException: Object reference not set to an instance of an object.
at ImageExplorer.formPreview.picPreview_Paint(Object sender, PaintEventArgs e)
at System.Windows.Forms.Control.OnPaint(PaintEventArgs e)
at System.Windows.Forms.PictureBox.OnPaint(PaintEventArgs pe)
at System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer, Boolean disposeEventArgs)
at System.Windows.Forms.Control.WmPaint(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3615 (GDR.050727-3600)
CodeBase: file:///c:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
ImageExplorer
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///F:/MyDocuments/projects/MO2/ImageExplorer.exe
----------------------------------------
Microsoft.VisualBasic
Assembly Version: 8.0.0.0
Win32 Version: 8.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Microsoft.VisualBasic/8.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
----------------------------------------
System
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3614 (GDR.050727-3600)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Runtime.Remoting
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Runtime.Remoting/2.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:





When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.


雷精灵
2011-03-07 15:49:37

转换图片的时候取消掉“Transparent”。


chen_xin_ming
2011-03-07 17:08:03

试过了,还是一样的结果


白枫
2011-03-07 17:27:02

雷叔何不做一个使用教程。


雷精灵
2011-03-07 18:12:02

那么看来就应该是工具的bug了。今晚尝试修正一下。


雷精灵
2011-03-07 22:06:17

BUG已修正。重新下载工具。


dbcliu
2011-03-07 22:18:23

话说chen大已经在着手用ggmds做mo了莫


chen_xin_ming
2011-03-07 22:59:26

[b]回复 [url=http://www.yayabo.cn/redirect.php?goto=findpost&pid=215581&ptid=16998]20#[/url] [i]dbcliu[/i] [/b]

啊,MO1还是AMDS吧,也许以后会用GGMDS做MO6……如果玩过以后有爱的话。


chen_xin_ming
2011-03-08 00:47:53

[b]回复 [url=http://www.yayabo.cn/redirect.php?goto=findpost&pid=215578&ptid=16998]19#[/url] [i]雷精灵[/i] [/b]

新的工具查看pak的时候倒是不报错了,但是运行出来还是有黑像素……
在模拟器和真机上都试过了。
下面是截图

[attach]20857[/attach]

附件是我用的图片,请雷叔测试一下……
[attach]20858[/attach]


雷精灵
2011-03-08 09:12:05

是转化器的BUG。晚上回家之后立刻修正。

如果乃现在着急使用的话,有个暂时的方法可以解决问题:
用UE或者WinHex或者随便什么十六进制编辑器打开pak:
[attach]20860[/attach]
注意看那个光标处的“False”。把它改成小写的“false”。
然后保存就可以了。

其实这是C和VB.net之间的一个差异——C对大小写敏感而VB.net不敏感。


白枫
2011-03-08 11:08:17

AMDS->AMP->GGMDS
公布一个神公式。


chen_xin_ming
2011-03-08 13:39:24

[b]回复 [url=http://www.yayabo.cn/redirect.php?goto=findpost&pid=215696&ptid=16998]23#[/url] [i]雷精灵[/i] [/b]
雷叔辛苦,还有问题,附件中有两幅图片,message.png是24位色+8位alpha,用32 Colors + 8 Alpha转换出来色彩不对,用8 Colors + 32 Alpha转换的时候程序死掉。
MI03BA.png是8位色+transparancy,用256色模式+transparancy转换色彩不对。[attach]20862[/attach]
[attach]20862[/attach]


dbcliu
2011-03-08 17:35:53

MO6也是明文的莫?要是MO6ipod有简中的版本的话研究研究图片一类的转换打包方法说不定可以用官方引擎的做游戏咧~


chen_xin_ming
2011-03-08 18:37:31

[b]回复 [url=http://www.yayabo.cn/redirect.php?goto=findpost&pid=215831&ptid=16998]26#[/url] [i]dbcliu[/i] [/b]

MO6和MO2一样是日文……要当游戏引擎还是拿MO1比较好。MO6现在还缺汉化文本,不知道生叔能不能搞到?
更现实的考虑是,我们可以修改GGMDS的函数库,使之和MO的脚本命令类似,这样可以尽可能少的更改MO系列的脚本,移植MO2和MO6会更容易。