Commit de17af7e authored by keyongyu's avatar keyongyu

1.6.6.0

parent 3b28e21f
...@@ -53,21 +53,24 @@ public class MSE ...@@ -53,21 +53,24 @@ public class MSE
isInit=true; isInit=true;
} }
public static void Save(string file, Card[] cards,string pic){ public static void Save(string file, Card[] cards,string pic,bool isUpdate){
if(!isInit) if(!isInit)
return; return;
string setFile=Path.Combine(Application.StartupPath, "mse-set.txt"); string setFile=Path.Combine(Application.StartupPath, "mse-set.txt");
string[] images=WriteSet(setFile, cards, pic); string[] images=WriteSet(setFile, cards, pic);
if(isUpdate)//仅更新文字
return;
using(ZipStorer zips=ZipStorer.Create(file, "")) using(ZipStorer zips=ZipStorer.Create(file, ""))
{ {
zips.AddFile(setFile,"set",""); zips.AddFile(setFile,"set","");
foreach ( string img in images ) foreach ( string img in images )
{ {
zips.AddFile(img, Path.GetFileNameWithoutExtension(img),""); zips.AddFile(img, Path.GetFileName(img),"");
} }
zips.Close(); zips.Close();
} }
File.Delete(setFile);
} }
public static string[] WriteSet(string file,Card[] cards,string pic) public static string[] WriteSet(string file,Card[] cards,string pic)
{ {
...@@ -82,7 +85,7 @@ public static string[] WriteSet(string file,Card[] cards,string pic) ...@@ -82,7 +85,7 @@ public static string[] WriteSet(string file,Card[] cards,string pic)
string jpg=Path.Combine(pic,c.id+".jpg"); string jpg=Path.Combine(pic,c.id+".jpg");
if(File.Exists(jpg)){ if(File.Exists(jpg)){
list.Add(jpg); list.Add(jpg);
jpg=Path.GetFileNameWithoutExtension(jpg); jpg=Path.GetFileName(jpg);
} }
else else
jpg=""; jpg="";
......
...@@ -162,7 +162,7 @@ public static void ConvertImages(string imgpath,string gamepath,bool isreplace) ...@@ -162,7 +162,7 @@ public static void ConvertImages(string imgpath,string gamepath,bool isreplace)
break; break;
case MyTask.CopyDataBase: case MyTask.CopyDataBase:
if(mArgs!=null && mArgs.Length>=2){ if(mArgs!=null && mArgs.Length>=2){
string filename=mArgs[0]; string filename=mArgs[0];
replace=(mArgs[1]==Boolean.TrueString)?true:false; replace=(mArgs[1]==Boolean.TrueString)?true:false;
DataBase.CopyDB(filename, !replace,cardlist); DataBase.CopyDB(filename, !replace,cardlist);
} }
...@@ -179,7 +179,12 @@ public static void ConvertImages(string imgpath,string gamepath,bool isreplace) ...@@ -179,7 +179,12 @@ public static void ConvertImages(string imgpath,string gamepath,bool isreplace)
break; break;
case MyTask.SaveAsMSE: case MyTask.SaveAsMSE:
if(mArgs!=null && mArgs.Length>=2){ if(mArgs!=null && mArgs.Length>=2){
MSE.Save(mArgs[0], cardlist, mArgs[1]); replace=false;
if(mArgs.Length>=3){
if(mArgs[2]==Boolean.TrueString)
replace=true;
}
MSE.Save(mArgs[0], cardlist, mArgs[1], replace);
} }
break; break;
case MyTask.ConvertImages: case MyTask.ConvertImages:
......
...@@ -1301,8 +1301,12 @@ void Menuitem_saveasmseClick(object sender, EventArgs e) ...@@ -1301,8 +1301,12 @@ void Menuitem_saveasmseClick(object sender, EventArgs e)
dlg.Filter=LANG.GetMsg(LMSG.MseType); dlg.Filter=LANG.GetMsg(LMSG.MseType);
if(dlg.ShowDialog()==DialogResult.OK) if(dlg.ShowDialog()==DialogResult.OK)
{ {
bool isUpdate=false;
#if DEBUG
isUpdate=MyMsg.Question(LMSG.OnlySet);
#endif
TaskHelper.SetTask(MyTask.SaveAsMSE,cards, TaskHelper.SetTask(MyTask.SaveAsMSE,cards,
dlg.FileName,IMAGEPATH); dlg.FileName,IMAGEPATH,isUpdate.ToString());
Run(LANG.GetMsg(LMSG.SaveMse)); Run(LANG.GetMsg(LMSG.SaveMse));
} }
} }
......
...@@ -67,6 +67,7 @@ public enum LMSG : uint ...@@ -67,6 +67,7 @@ public enum LMSG : uint
ConvertImage, ConvertImage,
ConvertImageOK, ConvertImageOK,
CompDBOK, CompDBOK,
OnlySet,
COUNT, COUNT,
} }
} }
...@@ -28,4 +28,4 @@ ...@@ -28,4 +28,4 @@
// //
// You can specify all the values or you can use the default the Revision and // You can specify all the values or you can use the default the Revision and
// Build Numbers by using the '*' as shown below: // Build Numbers by using the '*' as shown below:
[assembly: AssemblyVersion("1.6.5.0")] [assembly: AssemblyVersion("1.6.6.0")]
...@@ -50,4 +50,5 @@ ...@@ -50,4 +50,5 @@
0x31 是否替换存在的图片? 0x31 是否替换存在的图片?
0x32 正在转换图片 0x32 正在转换图片
0x33 转换图片完成 0x33 转换图片完成
0x34 压缩数据库完成 0x34 压缩数据库完成
\ No newline at end of file 0x35 仅更新存档的文字?
\ No newline at end of file
cn2tw = true ###########################
# Magic Set Editor 2
###########################
cn2tw = true
########################### Spell/Trap
spell = [魔法卡%%] spell = [魔法卡%%]
# spell = 【魔法カード%%】
trap = [陷阱卡%%] trap = [陷阱卡%%]
# trap = 【罠カード%%】
############################ Text
pendulum-text = 】[\s\S]*?\n([\S\s]*?)\n【 pendulum-text = 】[\s\S]*?\n([\S\s]*?)\n【
# pendulum-text = ([\S\s]*?)\n【
# pendulum-text = Text:\n([\S\s]*?)\n[\S\s]*?Text:
monster-text = [果|介|述|報]】\n([\S\s]*) monster-text = [果|介|述|報]】\n([\S\s]*)
replace = ([鮟|鱇]) <i>$1</i> # monster-text = Text:[\s\S]*?Text:\n([\S\s]*)
\ No newline at end of file ########################### Replace
replace = ([鮟|鱇]) <i>$1</i>
# replace = ([A-Z]) <i>$1</i>
\ No newline at end of file
...@@ -50,4 +50,5 @@ ...@@ -50,4 +50,5 @@
0x31 If Replace Iamge When it's exisit? 0x31 If Replace Iamge When it's exisit?
0x32 Converting Images 0x32 Converting Images
0x33 Convert Images OK 0x33 Convert Images OK
0x34 Compression DataBase OK 0x34 Compression DataBase OK
\ No newline at end of file 0x35 Only Update Text of Set?
\ No newline at end of file
cn2tw = false ###########################
STisEn = true # Magic Set Editor 2
pendulum-text = Text:[\s\S]*?\n([\S\s]*?)\n[\s\S]*?Text: ###########################
monster-text = Text:[\s\S]*?\n([\S\s]*) cn2tw = true
replace = ([\|鮟|鱇]) <i>$1</i> ########################### Spell/Trap
replace = ([A-Z]) <i>$1</i> spell = [魔法卡%%]
\ No newline at end of file # spell = 【魔法カード%%】
trap = [陷阱卡%%]
# trap = 【罠カード%%】
############################ Text
pendulum-text = 】[\s\S]*?\n([\S\s]*?)\n【
# pendulum-text = ([\S\s]*?)\n【
# pendulum-text = Text:\n([\S\s]*?)\n[\S\s]*?Text:
monster-text = [果|介|述|報]】\n([\S\s]*)
# monster-text = Text:[\s\S]*?Text:\n([\S\s]*)
########################### Replace
replace = ([鮟|鱇]) <i>$1</i>
# replace = ([A-Z]) <i>$1</i>
\ No newline at end of file
[DataEditorX]1.6.5.0[DataEditorX] [DataEditorX]1.6.6.0[DataEditorX]
[URL]https://github.com/247321453/DataEditorX/raw/master/win32/win32.zip[URL] [URL]https://github.com/247321453/DataEditorX/raw/master/win32/win32.zip[URL]
★使用前,请关联lua的打开方式,例如记事本,notepad++,等。 ★使用前,请关联lua的打开方式,例如记事本,notepad++,等。
...@@ -56,6 +56,8 @@ DataEditorX.exe.config ...@@ -56,6 +56,8 @@ DataEditorX.exe.config
描述不详细的bug,我修复不了。(都不知道是bug是什么) 描述不详细的bug,我修复不了。(都不知道是bug是什么)
★更新历史 ★更新历史
1.6.6.0
mse-config.txt添加注释
1.6.5.0 1.6.5.0
改进自定义魔法陷阱 改进自定义魔法陷阱
1.6.4.0 1.6.4.0
......
No preview for this file type
...@@ -50,4 +50,5 @@ ...@@ -50,4 +50,5 @@
0x31 是否替换存在的图片? 0x31 是否替换存在的图片?
0x32 正在转换图片 0x32 正在转换图片
0x33 转换图片完成 0x33 转换图片完成
0x34 压缩数据库完成 0x34 压缩数据库完成
\ No newline at end of file 0x35 仅更新存档的文字?
\ No newline at end of file
cn2tw = true ###########################
# Magic Set Editor 2
###########################
cn2tw = true
########################### Spell/Trap
spell = [魔法卡%%] spell = [魔法卡%%]
# spell = 【魔法カード%%】
trap = [陷阱卡%%] trap = [陷阱卡%%]
# trap = 【罠カード%%】
############################ Text
pendulum-text = 】[\s\S]*?\n([\S\s]*?)\n【 pendulum-text = 】[\s\S]*?\n([\S\s]*?)\n【
# pendulum-text = ([\S\s]*?)\n【
# pendulum-text = Text:\n([\S\s]*?)\n[\S\s]*?Text:
monster-text = [果|介|述|報]】\n([\S\s]*) monster-text = [果|介|述|報]】\n([\S\s]*)
replace = ([鮟|鱇]) <i>$1</i> # monster-text = Text:[\s\S]*?Text:\n([\S\s]*)
\ No newline at end of file ########################### Replace
replace = ([鮟|鱇]) <i>$1</i>
# replace = ([A-Z]) <i>$1</i>
\ No newline at end of file
...@@ -50,4 +50,5 @@ ...@@ -50,4 +50,5 @@
0x31 If Replace Iamge When it's exisit? 0x31 If Replace Iamge When it's exisit?
0x32 Converting Images 0x32 Converting Images
0x33 Convert Images OK 0x33 Convert Images OK
0x34 Compression DataBase OK 0x34 Compression DataBase OK
\ No newline at end of file 0x35 Only Update Text of Set?
\ No newline at end of file
cn2tw = false ###########################
STisEn = true # Magic Set Editor 2
pendulum-text = Text:[\s\S]*?\n([\S\s]*?)\n[\s\S]*?Text: ###########################
monster-text = Text:[\s\S]*?\n([\S\s]*) cn2tw = true
replace = ([\|鮟|鱇]) <i>$1</i> ########################### Spell/Trap
replace = ([A-Z]) <i>$1</i> spell = [魔法卡%%]
\ No newline at end of file # spell = 【魔法カード%%】
trap = [陷阱卡%%]
# trap = 【罠カード%%】
############################ Text
pendulum-text = 】[\s\S]*?\n([\S\s]*?)\n【
# pendulum-text = ([\S\s]*?)\n【
# pendulum-text = Text:\n([\S\s]*?)\n[\S\s]*?Text:
monster-text = [果|介|述|報]】\n([\S\s]*)
# monster-text = Text:[\s\S]*?Text:\n([\S\s]*)
########################### Replace
replace = ([鮟|鱇]) <i>$1</i>
# replace = ([A-Z]) <i>$1</i>
\ No newline at end of file
...@@ -11,7 +11,7 @@ card: ...@@ -11,7 +11,7 @@ card:
name: 隱藏的機殼 name: 隱藏的機殼
attribute: trap attribute: trap
level: [陷阱卡] level: [陷阱卡]
image: 4450854 image: 4450854.jpg
rule text: rule text:
「隱藏的機殼」在1回合只能發動1張。 「隱藏的機殼」在1回合只能發動1張。
①:從自己的額外卡組把最多3只表側表示的「機殼」靈擺怪獸加入手卡。 ①:從自己的額外卡組把最多3只表側表示的「機殼」靈擺怪獸加入手卡。
...@@ -21,7 +21,7 @@ card: ...@@ -21,7 +21,7 @@ card:
name: 機殼的牲祭 name: 機殼的牲祭
attribute: spell attribute: spell
level: [魔法卡+] level: [魔法卡+]
image: 17639150 image: 17639150.jpg
rule text: rule text:
「機殼」怪獸才能裝備。 「機殼」怪獸才能裝備。
①:裝備怪獸的攻擊力上升300,不會被戰斗破壞。 ①:裝備怪獸的攻擊力上升300,不會被戰斗破壞。
...@@ -33,7 +33,7 @@ card: ...@@ -33,7 +33,7 @@ card:
name: 隱藏的機殼殺手 物質主義 name: 隱藏的機殼殺手 物質主義
attribute: earth attribute: earth
level: ********** level: **********
image: 27279764 image: 27279764.jpg
type 1: 機械族 type 1: 機械族
type 2: 效果 type 2: 效果
type 3: type 3:
...@@ -51,7 +51,7 @@ card: ...@@ -51,7 +51,7 @@ card:
name: 起動的機殼 name: 起動的機殼
attribute: trap attribute: trap
level: [陷阱卡] level: [陷阱卡]
image: 30845999 image: 30845999.jpg
rule text: rule text:
①:場上的通常召喚的「機殼」怪獸直到回合結束時攻擊力上升300,效果無效化,不受這張卡以外的魔法·陷阱卡的效果影響。 ①:場上的通常召喚的「機殼」怪獸直到回合結束時攻擊力上升300,效果無效化,不受這張卡以外的魔法·陷阱卡的效果影響。
...@@ -61,7 +61,7 @@ card: ...@@ -61,7 +61,7 @@ card:
name: 機殼基因組 貪欲 name: 機殼基因組 貪欲
attribute: earth attribute: earth
level: ****** level: ******
image: 37991342 image: 37991342.jpg
type 1: 機械族 type 1: 機械族
type 2: 靈擺 type 2: 靈擺
type 3: 效果 type 3: 效果
...@@ -85,7 +85,7 @@ card: ...@@ -85,7 +85,7 @@ card:
name: 機殼的要塞 name: 機殼的要塞
attribute: spell attribute: spell
level: [魔法卡&] level: [魔法卡&]
image: 43034264 image: 43034264.jpg
rule text: rule text:
①:只要這張卡在場地區域存在,自己在通常召喚外加上只有1次,自己主要階段可以把1只「機殼」怪獸召喚。 ①:只要這張卡在場地區域存在,自己在通常召喚外加上只有1次,自己主要階段可以把1只「機殼」怪獸召喚。
②:只要這張卡在場地區域存在,「機殼」怪獸的召喚不會被無效化。 ②:只要這張卡在場地區域存在,「機殼」怪獸的召喚不會被無效化。
...@@ -96,7 +96,7 @@ card: ...@@ -96,7 +96,7 @@ card:
name: 機殼磁盤 無感動 name: 機殼磁盤 無感動
attribute: earth attribute: earth
level: ******* level: *******
image: 64496451 image: 64496451.jpg
type 1: 機械族 type 1: 機械族
type 2: 靈擺 type 2: 靈擺
type 3: 效果 type 3: 效果
...@@ -120,16 +120,16 @@ card: ...@@ -120,16 +120,16 @@ card:
name: 機殼工具 丑惡 name: 機殼工具 丑惡
attribute: earth attribute: earth
level: ***** level: *****
image: 65518099 image: 65518099.jpg
type 1: 機械族 type 1: 機械族
type 2: 靈擺 type 2: 靈擺
type 3: type 3:
type 4: type 4:
rule text: rule text:
正在準備以副本模式啟動系統... 正在準備以副本模式啟動系統...
<i>C</i>:<i>\</i>sophia<i>\</i>sefiroth.exe^執行中發生錯誤。 C:\sophia\sefiroth.exe^執行中發生錯誤。
正在試圖執行來自未知發布者的以下程序。 正在試圖執行來自未知發布者的以下程序。
<i>C</i>:<i>\</i>tierra<i>\</i>qliphoth.exe^您想允許執行嗎?^<<i>Y</i>/<i>N</i>>...[<i>Y</i>] C:\tierra\qliphoth.exe^您想允許執行嗎?^<Y/N>...[Y]
以自律模式啟動系統。 以自律模式啟動系統。
attack: 1000 attack: 1000
defense: 2800 defense: 2800
...@@ -145,7 +145,7 @@ card: ...@@ -145,7 +145,7 @@ card:
name: 機殼殼層 拒絕 name: 機殼殼層 拒絕
attribute: earth attribute: earth
level: ******** level: ********
image: 90885155 image: 90885155.jpg
type 1: 機械族 type 1: 機械族
type 2: 靈擺 type 2: 靈擺
type 3: 效果 type 3: 效果
...@@ -169,7 +169,7 @@ card: ...@@ -169,7 +169,7 @@ card:
name: 機殼檔案 色欲 name: 機殼檔案 色欲
attribute: earth attribute: earth
level: ****** level: ******
image: 91907707 image: 91907707.jpg
type 1: 機械族 type 1: 機械族
type 2: 靈擺 type 2: 靈擺
type 3: 效果 type 3: 效果
......
[DataEditorX]1.6.5.0[DataEditorX] [DataEditorX]1.6.6.0[DataEditorX]
[URL]https://github.com/247321453/DataEditorX/raw/master/win32/win32.zip[URL] [URL]https://github.com/247321453/DataEditorX/raw/master/win32/win32.zip[URL]
★使用前,请关联lua的打开方式,例如记事本,notepad++,等。 ★使用前,请关联lua的打开方式,例如记事本,notepad++,等。
...@@ -56,6 +56,8 @@ DataEditorX.exe.config ...@@ -56,6 +56,8 @@ DataEditorX.exe.config
描述不详细的bug,我修复不了。(都不知道是bug是什么) 描述不详细的bug,我修复不了。(都不知道是bug是什么)
★更新历史 ★更新历史
1.6.6.0
mse-config.txt添加注释
1.6.5.0 1.6.5.0
改进自定义魔法陷阱 改进自定义魔法陷阱
1.6.4.0 1.6.4.0
......
No preview for this file type
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment