Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
M
MDPro3
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Senator John
MDPro3
Commits
a664bef9
Commit
a664bef9
authored
Jun 02, 2024
by
SherryChaos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lflist in ypk support
parent
6e4db9fa
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
102 additions
and
21 deletions
+102
-21
Assets/Addressables/Text/UpdateContent.txt
Assets/Addressables/Text/UpdateContent.txt
+5
-4
Assets/Fonts/SourceHanSansSC-Medium SDF.asset
Assets/Fonts/SourceHanSansSC-Medium SDF.asset
+32
-5
Assets/Scripts/MDPro3/Duel/MDPro3.YGOSharp/BanlistManager.cs
Assets/Scripts/MDPro3/Duel/MDPro3.YGOSharp/BanlistManager.cs
+51
-8
Assets/Scripts/MDPro3/Helper/StringHelper.cs
Assets/Scripts/MDPro3/Helper/StringHelper.cs
+5
-3
Assets/Scripts/MDPro3/Program.cs
Assets/Scripts/MDPro3/Program.cs
+2
-1
Assets/Scripts/MDPro3/Servants/EditDeck.cs
Assets/Scripts/MDPro3/Servants/EditDeck.cs
+7
-0
No files found.
Assets/Addressables/Text/UpdateContent.txt
View file @
a664bef9
...
...
@@ -2,10 +2,11 @@ MDPro3 v1.1.3更新:
1.现在能设置决斗开始时是否自动加速了。
2.现在能显示已知盖卡了,设置中可以关闭。
3.新增 [超融合] [技能抽取] [无限泡影] [闪电风暴] [效果遮蒙者]特效。
4.修复SelectSum消息中,可选卡片数量为1时,点击不可选卡片会导致游戏无法继续的错误。
5.修复上版本中,更改设置中的[画面质量]导致游戏背景异常的错误。
6.修复部分情况下立绘为空白的错误。
7.修复弹窗确认卡片时,使用快捷键关闭弹窗时游戏无法继续的错误。
4.支持[Expansions]文件夹下的[lflist.conf]与*.ypk文件根目录下的[lflist.conf]禁限卡表的读取。
5.修复SelectSum消息中,可选卡片数量为1时,点击不可选卡片会导致游戏无法继续的错误。
6.修复上版本中,更改设置中的[画面质量]导致游戏背景异常的错误。
7.修复部分情况下立绘为空白的错误。
8.修复弹窗确认卡片时,使用快捷键关闭弹窗时游戏无法继续的错误。
MDPro3 v1.1.2更新:
1.现在房主能在房间中添加AI进行游戏了。
...
...
Assets/Fonts/SourceHanSansSC-Medium SDF.asset
View file @
a664bef9
This diff is collapsed.
Click to expand it.
Assets/Scripts/MDPro3/Duel/MDPro3.YGOSharp/BanlistManager.cs
View file @
a664bef9
using
System.Collections.Generic
;
using
Ionic.Zip
;
using
System.Collections.Generic
;
using
System.IO
;
namespace
MDPro3.YGOSharp
...
...
@@ -7,11 +8,56 @@ namespace MDPro3.YGOSharp
{
public
static
List
<
Banlist
>
Banlists
{
get
;
private
set
;
}
public
static
void
Initialize
(
string
fileName
)
public
static
void
Initialize
()
{
Banlists
=
new
List
<
Banlist
>();
StreamReader
reader
=
null
;
if
(
Config
.
GetBool
(
"Expansions"
,
true
))
{
var
confPath
=
Program
.
expansionsPath
+
Program
.
slash
+
"lflist.conf"
;
if
(
File
.
Exists
(
confPath
))
{
reader
=
new
StreamReader
(
confPath
);
InitializeFromReader
(
reader
);
reader
.
Close
();
}
foreach
(
var
zip
in
ZipHelper
.
zips
)
{
if
(
zip
.
Name
.
ToLower
().
EndsWith
(
"script.zip"
))
continue
;
foreach
(
var
file
in
zip
.
EntryFileNames
)
{
if
(
file
.
ToLower
().
EndsWith
(
"lflist.conf"
))
{
var
e
=
zip
[
file
];
if
(!
Directory
.
Exists
(
Program
.
tempFolder
))
Directory
.
CreateDirectory
(
Program
.
tempFolder
);
var
tempFile
=
Path
.
Combine
(
Path
.
GetFullPath
(
Program
.
tempFolder
),
file
);
e
.
Extract
(
Path
.
GetFullPath
(
Program
.
tempFolder
),
ExtractExistingFileAction
.
OverwriteSilently
);
reader
=
new
StreamReader
(
tempFile
);
InitializeFromReader
(
reader
);
reader
.
Close
();
File
.
Delete
(
tempFile
);
}
}
}
}
Banlist
current
=
null
;
reader
=
new
StreamReader
(
Program
.
lflistPath
);
InitializeFromReader
(
reader
);
reader
.
Close
();
current
=
new
Banlist
();
current
.
Name
=
"N/A"
;
Banlists
.
Add
(
current
);
Program
.
I
().
editDeck
.
banlist
=
Banlists
[
0
];
Program
.
I
().
editDeck
.
SetBanlistName
(
Program
.
I
().
editDeck
.
banlist
.
Name
);
}
public
static
void
InitializeFromReader
(
StreamReader
reader
)
{
Banlist
current
=
null
;
StreamReader
reader
=
new
StreamReader
(
fileName
);
while
(!
reader
.
EndOfStream
)
{
string
line
=
reader
.
ReadLine
();
...
...
@@ -32,20 +78,17 @@ namespace MDPro3.YGOSharp
continue
;
if
(
current
==
null
)
continue
;
string
[]
data
=
line
.
Split
(
new
char
[]
{
' '
},
System
.
StringSplitOptions
.
RemoveEmptyEntries
);
string
[]
data
=
line
.
Split
(
new
char
[]
{
' '
},
System
.
StringSplitOptions
.
RemoveEmptyEntries
);
int
id
=
int
.
Parse
(
data
[
0
]);
int
count
=
int
.
Parse
(
data
[
1
]);
current
.
Add
(
id
,
count
);
}
catch
(
System
.
Exception
e
)
catch
(
System
.
Exception
e
)
{
UnityEngine
.
Debug
.
Log
(
line
);
UnityEngine
.
Debug
.
Log
(
e
);
}
}
current
=
new
Banlist
();
current
.
Name
=
"N/A"
;
Banlists
.
Add
(
current
);
}
public
static
int
GetIndex
(
uint
hash
)
...
...
Assets/Scripts/MDPro3/Helper/StringHelper.cs
View file @
a664bef9
...
...
@@ -36,17 +36,19 @@ namespace MDPro3
var
language
=
Config
.
Get
(
"Language"
,
"zh-CN"
);
var
path
=
Program
.
localesPath
+
Program
.
slash
+
language
+
"/strings.conf"
;
var
text
=
File
.
ReadAllText
(
path
);
if
(
Config
.
Get
(
"Expansions"
,
"1"
)
==
"1"
)
if
(
Config
.
GetBool
(
"Expansions"
,
true
)
)
{
foreach
(
var
conf
in
Directory
.
GetFiles
(
"Expansions"
,
"*.conf"
))
text
+=
"\r\n"
+
File
.
ReadAllText
(
conf
);
if
(!
conf
.
ToLower
().
EndsWith
(
"lflist.conf"
))
text
+=
"\r\n"
+
File
.
ReadAllText
(
conf
);
foreach
(
var
zip
in
ZipHelper
.
zips
)
{
if
(
zip
.
Name
.
ToLower
().
EndsWith
(
"script.zip"
))
continue
;
foreach
(
var
file
in
zip
.
EntryFileNames
)
{
if
(
file
.
ToLower
().
EndsWith
(
".conf"
))
if
(
file
.
ToLower
().
EndsWith
(
".conf"
)
&&
!
file
.
ToLower
().
EndsWith
(
"lflist.conf"
))
{
var
ms
=
new
MemoryStream
();
var
e
=
zip
[
file
];
...
...
Assets/Scripts/MDPro3/Program.cs
View file @
a664bef9
...
...
@@ -94,7 +94,7 @@ namespace MDPro3
Directory
.
CreateDirectory
(
dataPath
);
Config
.
Initialize
(
configPath
);
items
.
Initialize
();
BanlistManager
.
Initialize
(
lflistPath
);
BanlistManager
.
Initialize
();
InitializeAllManagers
();
InitializeAllServants
();
}
...
...
@@ -102,6 +102,7 @@ namespace MDPro3
public
void
InitializeForDataChange
()
{
ZipHelper
.
Initialize
();
BanlistManager
.
Initialize
();
StringHelper
.
Initialize
();
CardsManager
.
Initialize
();
}
...
...
Assets/Scripts/MDPro3/Servants/EditDeck.cs
View file @
a664bef9
...
...
@@ -137,6 +137,13 @@ namespace MDPro3
itemOnList
=
result
.
Result
;
};
}
public
void
SetBanlistName
(
string
listName
)
{
if
(
manager
==
null
)
manager
=
GetComponent
<
ElementObjectManager
>();
manager
.
GetElement
<
Text
>(
"TextBanlist"
).
text
=
listName
;
}
public
override
void
Show
(
int
preDepth
)
{
base
.
Show
(
preDepth
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment