Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
YGOProUnity_V2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
1
Issues
1
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
MyCard
YGOProUnity_V2
Commits
63a5778c
Commit
63a5778c
authored
Jun 26, 2025
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
support REPLAY_ID_YRP2
parent
987cd120
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
2 deletions
+21
-2
Assets/SibylSystem/coreWrapper.cs
Assets/SibylSystem/coreWrapper.cs
+10
-2
Assets/SibylSystem/selectReplay/selectReplay.cs
Assets/SibylSystem/selectReplay/selectReplay.cs
+11
-0
No files found.
Assets/SibylSystem/coreWrapper.cs
View file @
63a5778c
...
@@ -1287,8 +1287,15 @@ namespace Percy
...
@@ -1287,8 +1287,15 @@ namespace Percy
yrp3dbuilder
=
new
BinaryWriter
(
stream
);
yrp3dbuilder
=
new
BinaryWriter
(
stream
);
sendToPlayer
(
yrp
.
getNamePacket
());
sendToPlayer
(
yrp
.
getNamePacket
());
dll
.
end_duel
(
duel
);
dll
.
end_duel
(
duel
);
var
mtrnd
=
new
MersenneTwister
(
yrp
.
Seed
);
if
(
yrp
.
ID
==
0x32707279
)
// REPLAY_ID_YRP2
duel
=
dll
.
create_duel
(
mtrnd
.
genrand_Int32
());
{
duel
=
dll
.
create_duel_v2
(
yrp
.
SeedsV2
);
}
else
{
var
mtrnd
=
new
MersenneTwister
(
yrp
.
Seed
);
duel
=
dll
.
create_duel
(
mtrnd
.
genrand_Int32
());
}
godMode
=
true
;
godMode
=
true
;
isFirst
=
true
;
isFirst
=
true
;
dll
.
set_player_info
(
duel
,
0
,
yrp
.
StartLp
,
yrp
.
StartHand
,
yrp
.
DrawCount
);
dll
.
set_player_info
(
duel
,
0
,
yrp
.
StartLp
,
yrp
.
StartHand
,
yrp
.
DrawCount
);
...
@@ -1396,6 +1403,7 @@ namespace Percy
...
@@ -1396,6 +1403,7 @@ namespace Percy
public
List
<
PlayerData
>
playerData
=
new
List
<
PlayerData
>();
public
List
<
PlayerData
>
playerData
=
new
List
<
PlayerData
>();
public
byte
[]
Props
=
new
byte
[
8
];
public
byte
[]
Props
=
new
byte
[
8
];
public
uint
Seed
=
0
;
public
uint
Seed
=
0
;
public
uint
[]
SeedsV2
=
new
uint
[
8
];
public
int
StartHand
=
0
;
public
int
StartHand
=
0
;
public
int
StartLp
=
0
;
public
int
StartLp
=
0
;
public
int
Version
=
0
;
public
int
Version
=
0
;
...
...
Assets/SibylSystem/selectReplay/selectReplay.cs
View file @
63a5778c
...
@@ -139,6 +139,17 @@ public class selectReplay : WindowServantSP
...
@@ -139,6 +139,17 @@ public class selectReplay : WindowServantSP
returnValue
.
DataSize
=
reader
.
ReadInt32
();
returnValue
.
DataSize
=
reader
.
ReadInt32
();
returnValue
.
Hash
=
reader
.
ReadInt32
();
returnValue
.
Hash
=
reader
.
ReadInt32
();
returnValue
.
Props
=
reader
.
ReadBytes
(
8
);
returnValue
.
Props
=
reader
.
ReadBytes
(
8
);
if
(
returnValue
.
ID
==
0x32707279
)
// REPLAY_ID_YRP2
{
for
(
int
i
=
0
;
i
<
8
;
i
++)
{
returnValue
.
SeedsV2
[
i
]
=
reader
.
ReadUInt32
();
}
for
(
int
i
=
0
;
i
<
4
;
i
++)
// other flags, unused for now
{
reader
.
ReadUInt32
();
}
}
var
raw
=
reader
.
ReadToEnd
();
var
raw
=
reader
.
ReadToEnd
();
if
((
returnValue
.
Flag
&
0x1
)
>
0
)
if
((
returnValue
.
Flag
&
0x1
)
>
0
)
{
{
...
...
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