Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
S
srvpro
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
3
Merge Requests
3
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
srvpro
Commits
e9063687
Commit
e9063687
authored
Jul 21, 2017
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
temp again
parent
f442e192
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
6 deletions
+5
-6
ygopro-server.coffee
ygopro-server.coffee
+3
-3
ygopro-server.js
ygopro-server.js
+2
-3
No files found.
ygopro-server.coffee
View file @
e9063687
...
...
@@ -905,7 +905,7 @@ ygopro.ctos_follow 'JOIN_GAME', false, (buffer, info, client, server)->
replay_id
=
Cloud_replay_ids
[
Math
.
floor
(
Math
.
random
()
*
Cloud_replay_ids
.
length
)]
redisdb
.
hgetall
"replay:"
+
replay_id
,
client
.
open_cloud_replay
else
if
info
.
version
!=
settings
.
version
and
(
info
.
version
!=
9018
or
settings
.
version
!=
9019
or
client
.
name
!=
"Knight of Hanoi"
)
#YGOMobile不更新,强行兼容
else
if
info
.
version
!=
settings
.
version
and
(
!
(
info
.
version
>=
9016
and
info
.
version
<=
9019
)
or
settings
.
version
!=
4926
)
#强行兼容23333版
ygopro
.
stoc_send_chat
(
client
,
settings
.
modules
.
update
,
ygopro
.
constants
.
COLORS
.
RED
)
ygopro
.
stoc_send
client
,
'ERROR_MSG'
,
{
msg
:
4
...
...
@@ -1090,13 +1090,13 @@ ygopro.ctos_follow 'JOIN_GAME', false, (buffer, info, client, server)->
ygopro
.
stoc_die
(
client
,
"${invalid_password_room}"
)
else
if
info
.
version
==
9018
and
settings
.
version
==
9019
and
client
.
name
==
"Knight of Hanoi"
#YGOMobile不更新,强行兼容
if
info
.
version
>=
9016
and
info
.
version
<=
9019
and
settings
.
version
==
4926
#强行兼容23333版
info
.
version
=
settings
.
version
struct
=
ygopro
.
structs
[
"CTOS_JoinGame"
]
struct
.
_setBuff
(
buffer
)
struct
.
set
(
"version"
,
info
.
version
)
buffer
=
struct
.
buffer
ygopro
.
stoc_send_chat
(
client
,
"看起来你是YGOMobile的用户,请记得更新先行卡补丁,否则会看到白卡"
,
ygopro
.
constants
.
COLORS
.
GREEN
)
#
ygopro.stoc_send_chat(client, "看起来你是YGOMobile的用户,请记得更新先行卡补丁,否则会看到白卡", ygopro.constants.COLORS.GREEN)
#log.info 'join_game',info.pass, client.name
room
=
ROOM_find_or_create_by_name
(
info
.
pass
,
client
.
ip
)
...
...
ygopro-server.js
View file @
e9063687
...
...
@@ -1132,7 +1132,7 @@
}
else
if
(
info
.
pass
.
toUpperCase
()
===
"
W
"
&&
settings
.
modules
.
cloud_replay
.
enabled
)
{
replay_id
=
Cloud_replay_ids
[
Math
.
floor
(
Math
.
random
()
*
Cloud_replay_ids
.
length
)];
redisdb
.
hgetall
(
"
replay:
"
+
replay_id
,
client
.
open_cloud_replay
);
}
else
if
(
info
.
version
!==
settings
.
version
&&
(
info
.
version
!==
9018
||
settings
.
version
!==
9019
||
client
.
name
!==
"
Knight of Hanoi
"
))
{
}
else
if
(
info
.
version
!==
settings
.
version
&&
(
!
(
info
.
version
>=
9016
&&
info
.
version
<=
9019
)
||
settings
.
version
!==
4926
))
{
ygopro
.
stoc_send_chat
(
client
,
settings
.
modules
.
update
,
ygopro
.
constants
.
COLORS
.
RED
);
ygopro
.
stoc_send
(
client
,
'
ERROR_MSG
'
,
{
msg
:
4
,
...
...
@@ -1326,13 +1326,12 @@
}
else
if
(
info
.
pass
.
length
&&
!
ROOM_validate
(
info
.
pass
))
{
ygopro
.
stoc_die
(
client
,
"
${invalid_password_room}
"
);
}
else
{
if
(
info
.
version
===
9018
&&
settings
.
version
===
9019
&&
client
.
name
===
"
Knight of Hanoi
"
)
{
if
(
info
.
version
>=
9016
&&
info
.
version
<=
9019
&&
settings
.
version
===
4926
)
{
info
.
version
=
settings
.
version
;
struct
=
ygopro
.
structs
[
"
CTOS_JoinGame
"
];
struct
.
_setBuff
(
buffer
);
struct
.
set
(
"
version
"
,
info
.
version
);
buffer
=
struct
.
buffer
;
ygopro
.
stoc_send_chat
(
client
,
"
看起来你是YGOMobile的用户,请记得更新先行卡补丁,否则会看到白卡
"
,
ygopro
.
constants
.
COLORS
.
GREEN
);
}
room
=
ROOM_find_or_create_by_name
(
info
.
pass
,
client
.
ip
);
if
(
!
room
)
{
...
...
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