Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-2pick
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
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
ygopro-2pick
Commits
a2ff3c1d
Commit
a2ff3c1d
authored
Mar 30, 2019
by
mercury233
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://github.com/Fluorohydride/ygopro
into server
parents
a3df4546
bf6356b8
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
17 additions
and
13 deletions
+17
-13
gframe/duelclient.cpp
gframe/duelclient.cpp
+1
-0
gframe/game.cpp
gframe/game.cpp
+1
-1
gframe/single_duel.cpp
gframe/single_duel.cpp
+6
-5
gframe/tag_duel.cpp
gframe/tag_duel.cpp
+6
-5
ocgcore
ocgcore
+1
-1
script
script
+1
-1
strings.conf
strings.conf
+1
-0
No files found.
gframe/duelclient.cpp
View file @
a2ff3c1d
...
@@ -1068,6 +1068,7 @@ int DuelClient::ClientAnalyze(char * msg, unsigned int len) {
...
@@ -1068,6 +1068,7 @@ int DuelClient::ClientAnalyze(char * msg, unsigned int len) {
else
else
mainGame
->
dInfo
.
tag_player
[
0
]
=
true
;
mainGame
->
dInfo
.
tag_player
[
0
]
=
true
;
}
}
mainGame
->
dInfo
.
duel_rule
=
BufferIO
::
ReadInt8
(
pbuf
);
mainGame
->
dInfo
.
lp
[
mainGame
->
LocalPlayer
(
0
)]
=
BufferIO
::
ReadInt32
(
pbuf
);
mainGame
->
dInfo
.
lp
[
mainGame
->
LocalPlayer
(
0
)]
=
BufferIO
::
ReadInt32
(
pbuf
);
mainGame
->
dInfo
.
lp
[
mainGame
->
LocalPlayer
(
1
)]
=
BufferIO
::
ReadInt32
(
pbuf
);
mainGame
->
dInfo
.
lp
[
mainGame
->
LocalPlayer
(
1
)]
=
BufferIO
::
ReadInt32
(
pbuf
);
myswprintf
(
mainGame
->
dInfo
.
strLP
[
0
],
L"%d"
,
mainGame
->
dInfo
.
lp
[
0
]);
myswprintf
(
mainGame
->
dInfo
.
strLP
[
0
],
L"%d"
,
mainGame
->
dInfo
.
lp
[
0
]);
...
...
gframe/game.cpp
View file @
a2ff3c1d
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
#include "single_mode.h"
#include "single_mode.h"
#endif //YGOPRO_SERVER_MODE
#endif //YGOPRO_SERVER_MODE
const
unsigned
short
PRO_VERSION
=
0x134
8
;
const
unsigned
short
PRO_VERSION
=
0x134
9
;
namespace
ygo
{
namespace
ygo
{
...
...
gframe/single_duel.cpp
View file @
a2ff3c1d
...
@@ -569,25 +569,26 @@ void SingleDuel::TPResult(DuelPlayer* dp, unsigned char tp) {
...
@@ -569,25 +569,26 @@ void SingleDuel::TPResult(DuelPlayer* dp, unsigned char tp) {
char
startbuf
[
32
],
*
pbuf
=
startbuf
;
char
startbuf
[
32
],
*
pbuf
=
startbuf
;
BufferIO
::
WriteInt8
(
pbuf
,
MSG_START
);
BufferIO
::
WriteInt8
(
pbuf
,
MSG_START
);
BufferIO
::
WriteInt8
(
pbuf
,
0
);
BufferIO
::
WriteInt8
(
pbuf
,
0
);
BufferIO
::
WriteInt8
(
pbuf
,
host_info
.
duel_rule
);
BufferIO
::
WriteInt32
(
pbuf
,
host_info
.
start_lp
);
BufferIO
::
WriteInt32
(
pbuf
,
host_info
.
start_lp
);
BufferIO
::
WriteInt32
(
pbuf
,
host_info
.
start_lp
);
BufferIO
::
WriteInt32
(
pbuf
,
host_info
.
start_lp
);
BufferIO
::
WriteInt16
(
pbuf
,
query_field_count
(
pduel
,
0
,
0x1
));
BufferIO
::
WriteInt16
(
pbuf
,
query_field_count
(
pduel
,
0
,
0x1
));
BufferIO
::
WriteInt16
(
pbuf
,
query_field_count
(
pduel
,
0
,
0x40
));
BufferIO
::
WriteInt16
(
pbuf
,
query_field_count
(
pduel
,
0
,
0x40
));
BufferIO
::
WriteInt16
(
pbuf
,
query_field_count
(
pduel
,
1
,
0x1
));
BufferIO
::
WriteInt16
(
pbuf
,
query_field_count
(
pduel
,
1
,
0x1
));
BufferIO
::
WriteInt16
(
pbuf
,
query_field_count
(
pduel
,
1
,
0x40
));
BufferIO
::
WriteInt16
(
pbuf
,
query_field_count
(
pduel
,
1
,
0x40
));
NetServer
::
SendBufferToPlayer
(
players
[
0
],
STOC_GAME_MSG
,
startbuf
,
1
8
);
NetServer
::
SendBufferToPlayer
(
players
[
0
],
STOC_GAME_MSG
,
startbuf
,
1
9
);
startbuf
[
1
]
=
1
;
startbuf
[
1
]
=
1
;
NetServer
::
SendBufferToPlayer
(
players
[
1
],
STOC_GAME_MSG
,
startbuf
,
1
8
);
NetServer
::
SendBufferToPlayer
(
players
[
1
],
STOC_GAME_MSG
,
startbuf
,
1
9
);
if
(
!
swapped
)
if
(
!
swapped
)
startbuf
[
1
]
=
0x10
;
startbuf
[
1
]
=
0x10
;
else
startbuf
[
1
]
=
0x11
;
else
startbuf
[
1
]
=
0x11
;
for
(
auto
oit
=
observers
.
begin
();
oit
!=
observers
.
end
();
++
oit
)
for
(
auto
oit
=
observers
.
begin
();
oit
!=
observers
.
end
();
++
oit
)
NetServer
::
SendBufferToPlayer
(
*
oit
,
STOC_GAME_MSG
,
startbuf
,
1
8
);
NetServer
::
SendBufferToPlayer
(
*
oit
,
STOC_GAME_MSG
,
startbuf
,
1
9
);
#ifdef YGOPRO_SERVER_MODE
#ifdef YGOPRO_SERVER_MODE
if
(
cache_recorder
)
if
(
cache_recorder
)
NetServer
::
SendBufferToPlayer
(
cache_recorder
,
STOC_GAME_MSG
,
startbuf
,
1
8
);
NetServer
::
SendBufferToPlayer
(
cache_recorder
,
STOC_GAME_MSG
,
startbuf
,
1
9
);
if
(
replay_recorder
)
if
(
replay_recorder
)
NetServer
::
SendBufferToPlayer
(
replay_recorder
,
STOC_GAME_MSG
,
startbuf
,
1
8
);
NetServer
::
SendBufferToPlayer
(
replay_recorder
,
STOC_GAME_MSG
,
startbuf
,
1
9
);
turn_player
=
0
;
turn_player
=
0
;
phase
=
1
;
phase
=
1
;
#endif
#endif
...
...
gframe/tag_duel.cpp
View file @
a2ff3c1d
...
@@ -571,27 +571,28 @@ void TagDuel::TPResult(DuelPlayer* dp, unsigned char tp) {
...
@@ -571,27 +571,28 @@ void TagDuel::TPResult(DuelPlayer* dp, unsigned char tp) {
char
startbuf
[
32
],
*
pbuf
=
startbuf
;
char
startbuf
[
32
],
*
pbuf
=
startbuf
;
BufferIO
::
WriteInt8
(
pbuf
,
MSG_START
);
BufferIO
::
WriteInt8
(
pbuf
,
MSG_START
);
BufferIO
::
WriteInt8
(
pbuf
,
0
);
BufferIO
::
WriteInt8
(
pbuf
,
0
);
BufferIO
::
WriteInt8
(
pbuf
,
host_info
.
duel_rule
);
BufferIO
::
WriteInt32
(
pbuf
,
host_info
.
start_lp
);
BufferIO
::
WriteInt32
(
pbuf
,
host_info
.
start_lp
);
BufferIO
::
WriteInt32
(
pbuf
,
host_info
.
start_lp
);
BufferIO
::
WriteInt32
(
pbuf
,
host_info
.
start_lp
);
BufferIO
::
WriteInt16
(
pbuf
,
query_field_count
(
pduel
,
0
,
0x1
));
BufferIO
::
WriteInt16
(
pbuf
,
query_field_count
(
pduel
,
0
,
0x1
));
BufferIO
::
WriteInt16
(
pbuf
,
query_field_count
(
pduel
,
0
,
0x40
));
BufferIO
::
WriteInt16
(
pbuf
,
query_field_count
(
pduel
,
0
,
0x40
));
BufferIO
::
WriteInt16
(
pbuf
,
query_field_count
(
pduel
,
1
,
0x1
));
BufferIO
::
WriteInt16
(
pbuf
,
query_field_count
(
pduel
,
1
,
0x1
));
BufferIO
::
WriteInt16
(
pbuf
,
query_field_count
(
pduel
,
1
,
0x40
));
BufferIO
::
WriteInt16
(
pbuf
,
query_field_count
(
pduel
,
1
,
0x40
));
NetServer
::
SendBufferToPlayer
(
players
[
0
],
STOC_GAME_MSG
,
startbuf
,
1
8
);
NetServer
::
SendBufferToPlayer
(
players
[
0
],
STOC_GAME_MSG
,
startbuf
,
1
9
);
NetServer
::
ReSendToPlayer
(
players
[
1
]);
NetServer
::
ReSendToPlayer
(
players
[
1
]);
startbuf
[
1
]
=
1
;
startbuf
[
1
]
=
1
;
NetServer
::
SendBufferToPlayer
(
players
[
2
],
STOC_GAME_MSG
,
startbuf
,
1
8
);
NetServer
::
SendBufferToPlayer
(
players
[
2
],
STOC_GAME_MSG
,
startbuf
,
1
9
);
NetServer
::
ReSendToPlayer
(
players
[
3
]);
NetServer
::
ReSendToPlayer
(
players
[
3
]);
if
(
!
swapped
)
if
(
!
swapped
)
startbuf
[
1
]
=
0x10
;
startbuf
[
1
]
=
0x10
;
else
startbuf
[
1
]
=
0x11
;
else
startbuf
[
1
]
=
0x11
;
for
(
auto
oit
=
observers
.
begin
();
oit
!=
observers
.
end
();
++
oit
)
for
(
auto
oit
=
observers
.
begin
();
oit
!=
observers
.
end
();
++
oit
)
NetServer
::
SendBufferToPlayer
(
*
oit
,
STOC_GAME_MSG
,
startbuf
,
1
8
);
NetServer
::
SendBufferToPlayer
(
*
oit
,
STOC_GAME_MSG
,
startbuf
,
1
9
);
#ifdef YGOPRO_SERVER_MODE
#ifdef YGOPRO_SERVER_MODE
if
(
cache_recorder
)
if
(
cache_recorder
)
NetServer
::
SendBufferToPlayer
(
cache_recorder
,
STOC_GAME_MSG
,
startbuf
,
1
8
);
NetServer
::
SendBufferToPlayer
(
cache_recorder
,
STOC_GAME_MSG
,
startbuf
,
1
9
);
if
(
replay_recorder
)
if
(
replay_recorder
)
NetServer
::
SendBufferToPlayer
(
replay_recorder
,
STOC_GAME_MSG
,
startbuf
,
1
8
);
NetServer
::
SendBufferToPlayer
(
replay_recorder
,
STOC_GAME_MSG
,
startbuf
,
1
9
);
turn_player
=
0
;
turn_player
=
0
;
phase
=
1
;
phase
=
1
;
#endif
#endif
...
...
ocgcore
@
86e5aa82
Subproject commit
f66541cd4744d5978826a6f4ae184ddfe0d37b07
Subproject commit
86e5aa82650d9dc3f103891845dd76eb473c87f2
script
@
68a3de27
Subproject commit
f3c20205858de66cd956871c3e1db1a5a62b6638
Subproject commit
68a3de27cbd22e6cf74157feeaa2b8e5ee455636
strings.conf
View file @
a2ff3c1d
...
@@ -568,6 +568,7 @@
...
@@ -568,6 +568,7 @@
!
counter
0
x104d
信号指示物
!
counter
0
x104d
信号指示物
!
counter
0
x4e
指示物(魂之灵摆)
!
counter
0
x4e
指示物(魂之灵摆)
!
counter
0
x104f
蛊指示物
!
counter
0
x104f
蛊指示物
!
counter
0
x50
指示物(娱乐伙伴 掉头跑骑兵)
#setnames, using tab for comment
#setnames, using tab for comment
!
setname
0
x1
正义盟军
A
・
O
・
J
!
setname
0
x1
正义盟军
A
・
O
・
J
!
setname
0
x2
次世代 ジェネクス
!
setname
0
x2
次世代 ジェネクス
...
...
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