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
e3bf3b1a
Commit
e3bf3b1a
authored
Mar 30, 2016
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
8b1f8400
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
10 deletions
+7
-10
room.coffee
room.coffee
+2
-2
room.js
room.js
+1
-4
ygopro-server.coffee
ygopro-server.coffee
+2
-2
ygopro-server.js
ygopro-server.js
+2
-2
No files found.
room.coffee
View file @
e3bf3b1a
...
...
@@ -327,7 +327,7 @@ class Room
return
return
if
@
windbot
log
.
info
@
windbot
#
log.info @windbot
@
ai_process
=
spawn
'mono'
,
[
'WindBot.exe'
],
{
cwd
:
'windbot'
,
env
:
{
YGOPRO_VERSION
:
settings
.
version
...
...
@@ -339,7 +339,7 @@ class Room
}
}
@
ai_process
.
stdout
.
on
'data'
,
(
data
)
=>
log
.
info
"AI stdout: "
+
data
#
log.info "AI stdout: " + data
return
@
ai_process
.
stderr
.
on
'data'
,
(
data
)
=>
log
.
info
"AI stderr: "
+
data
...
...
room.js
View file @
e3bf3b1a
...
...
@@ -431,7 +431,6 @@
});
});
if
(
_this
.
windbot
)
{
log
.
info
(
_this
.
windbot
);
_this
.
ai_process
=
spawn
(
'
mono
'
,
[
'
WindBot.exe
'
],
{
cwd
:
'
windbot
'
,
env
:
{
...
...
@@ -443,9 +442,7 @@
YGOPRO_DIALOG
:
_this
.
windbot
.
dialog
}
});
_this
.
ai_process
.
stdout
.
on
(
'
data
'
,
function
(
data
)
{
log
.
info
(
"
AI stdout:
"
+
data
);
});
_this
.
ai_process
.
stdout
.
on
(
'
data
'
,
function
(
data
)
{});
_this
.
ai_process
.
stderr
.
on
(
'
data
'
,
function
(
data
)
{
log
.
info
(
"
AI stderr:
"
+
data
);
});
...
...
ygopro-server.coffee
View file @
e3bf3b1a
...
...
@@ -577,7 +577,7 @@ ygopro.stoc_follow 'JOIN_GAME', false, (buffer, info, client, server)->
if
client
.
room
.
welcome
ygopro
.
stoc_send_chat
client
,
client
.
room
.
welcome
,
14
if
settings
.
modules
.
enable_cloud_replay
and
!
client
.
room
.
recorder
if
!
client
.
room
.
recorder
client
.
room
.
recorder
=
recorder
=
net
.
connect
client
.
room
.
port
,
->
ygopro
.
ctos_send
recorder
,
'PLAYER_INFO'
,
{
name
:
"Marshtomp"
...
...
@@ -592,7 +592,7 @@ ygopro.stoc_follow 'JOIN_GAME', false, (buffer, info, client, server)->
return
recorder
.
on
'data'
,
(
data
)
->
return
unless
client
.
room
return
unless
client
.
room
and
settings
.
modules
.
enable_cloud_replay
client
.
room
.
recorder_buffers
.
push
data
recorder
.
on
'error'
,
(
error
)
->
...
...
ygopro-server.js
View file @
e3bf3b1a
...
...
@@ -647,7 +647,7 @@
if
(
client
.
room
.
welcome
)
{
ygopro
.
stoc_send_chat
(
client
,
client
.
room
.
welcome
,
14
);
}
if
(
settings
.
modules
.
enable_cloud_replay
&&
!
client
.
room
.
recorder
)
{
if
(
!
client
.
room
.
recorder
)
{
client
.
room
.
recorder
=
recorder
=
net
.
connect
(
client
.
room
.
port
,
function
()
{
ygopro
.
ctos_send
(
recorder
,
'
PLAYER_INFO
'
,
{
name
:
"
Marshtomp
"
...
...
@@ -661,7 +661,7 @@
ygopro
.
ctos_send
(
recorder
,
'
HS_TOOBSERVER
'
);
});
recorder
.
on
(
'
data
'
,
function
(
data
)
{
if
(
!
client
.
room
)
{
if
(
!
(
client
.
room
&&
settings
.
modules
.
enable_cloud_replay
)
)
{
return
;
}
return
client
.
room
.
recorder_buffers
.
push
(
data
);
...
...
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