Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
M
mycard
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
syntax_j
mycard
Commits
a8b7ca8e
Commit
a8b7ca8e
authored
May 27, 2014
by
eire
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update 0.0.8.7z
Add zh99998's code to support EFZ in maotama
parent
c7cf5dd5
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
41 additions
and
19 deletions
+41
-19
app/apps.json
app/apps.json
+12
-0
app/js/controllers.coffee
app/js/controllers.coffee
+18
-14
app/js/controllers.js
app/js/controllers.js
+10
-4
app/js/controllers.map
app/js/controllers.map
+1
-1
No files found.
app/apps.json
View file @
a8b7ca8e
[
{
"id"
:
"efz"
,
"category"
:
"game"
,
"name"
:
"零之永恒"
,
"network"
:
{
"protocol"
:
"udp"
,
"port"
:
88
},
"main"
:
"战网服务器EX防鬼版.exe"
,
"summary"
:
"使用说明:
\n
- 点 [添加] 选择游戏路径 [战网服务器EX防鬼版.exe]
\n
- 点 [开始] 运行联网器,并在88端口建主 (直接按Enter,注意配置文件里端口号应该是88)
\n
- 点 [反重力场] 获取公网IP和端口
\n
- 把那个通过QQ等即时通讯工具告诉你的对手
\n
- 对方要手动更改配置文件 [lang_2052.txt] 第22行, 106= 后面改上端口号, 然后运行 [战网服务器EX防鬼版.exe] 填IP"
,
"languages"
:
[
"ja-JP"
]
},
{
"id"
:
"th135"
,
"category"
:
"game"
,
...
...
app/js/controllers.coffee
View file @
a8b7ca8e
...
...
@@ -162,19 +162,23 @@ angular.module('maotama.controllers', [])
$scope
.
run
=
()
->
$scope
.
runtime
.
running
=
true
$scope
.
candy
.
contentWindow
.
postMessage
(
type
:
'status'
,
status
:
"正在玩
#{
$scope
.
app
.
name
}
"
,
show
:
"dnd"
,
$scope
.
candy
.
src
)
game
=
child_process
.
spawn
$scope
.
app
.
main
,
[
"--maotama-username=
#{
$rootScope
.
current_user
.
name
}
"
,
"--maotama-ranking-
#{
$rootScope
.
current_user
.
name
}
=
#{
$scope
.
profile
.
score
}
"
,
"--maotama-ranking-博丽灵梦=6500"
,
"--maotama-ranking-♂Van♂=5800"
,
"--maotama-ranking-比利♂海灵顿=5600"
,
"--maotama-ranking-德国Boy=5430"
,
"--maotama-ranking-麦当劳叔叔=5400"
,
"--maotama-ranking-村口王师傅=5200"
,
"--maotama-ranking-帝国元首=4800"
,
"--maotama-ranking-葛老师=3600"
,
"--maotama-ranking-五道杠大队长=3300"
,
],
cwd
:
$scope
.
local
.
installation
if
$scope
.
app
.
id
is
"efz"
game
=
child_process
.
spawn
"cmd.exe"
,
[
"/c"
,
$scope
.
app
.
main
],
cwd
:
$scope
.
local
.
installation
else
game
=
child_process
.
spawn
$scope
.
app
.
main
,
[
"--maotama-username=
#{
$rootScope
.
current_user
.
name
}
"
,
"--maotama-ranking-
#{
$rootScope
.
current_user
.
name
}
=
#{
$scope
.
profile
.
score
}
"
,
"--maotama-ranking-博丽灵梦=6500"
,
"--maotama-ranking-♂Van♂=5800"
,
"--maotama-ranking-比利♂海灵顿=5600"
,
"--maotama-ranking-德国Boy=5430"
,
"--maotama-ranking-麦当劳叔叔=5400"
,
"--maotama-ranking-村口王师傅=5200"
,
"--maotama-ranking-帝国元首=4800"
,
"--maotama-ranking-葛老师=3600"
,
"--maotama-ranking-五道杠大队长=3300"
,
],
cwd
:
$scope
.
local
.
installation
game
.
stdout
.
setEncoding
(
'utf8'
);
game
.
stdout
.
on
'data'
,
(
data
)
->
console
.
log
data
...
...
@@ -239,7 +243,7 @@ angular.module('maotama.controllers', [])
$scope
.
runtime
.
tunneling
=
true
$scope
.
runtime
.
tunnel
=
null
tunnel
.
listen
10800
,
server
.
url
,
(
address
)
->
tunnel
.
listen
$scope
.
app
.
network
.
port
,
server
.
url
,
(
address
)
->
$scope
.
runtime
.
tunneling
=
false
$scope
.
runtime
.
tunnel
=
address
$scope
.
$digest
()
...
...
app/js/controllers.js
View file @
a8b7ca8e
...
...
@@ -263,9 +263,15 @@
status
:
"
正在玩
"
+
$scope
.
app
.
name
,
show
:
"
dnd
"
},
$scope
.
candy
.
src
);
game
=
child_process
.
spawn
(
$scope
.
app
.
main
,
[
"
--maotama-username=
"
+
$rootScope
.
current_user
.
name
,
"
--maotama-ranking-
"
+
$rootScope
.
current_user
.
name
+
"
=
"
+
$scope
.
profile
.
score
,
"
--maotama-ranking-博丽灵梦=6500
"
,
"
--maotama-ranking-♂Van♂=5800
"
,
"
--maotama-ranking-比利♂海灵顿=5600
"
,
"
--maotama-ranking-德国Boy=5430
"
,
"
--maotama-ranking-麦当劳叔叔=5400
"
,
"
--maotama-ranking-村口王师傅=5200
"
,
"
--maotama-ranking-帝国元首=4800
"
,
"
--maotama-ranking-葛老师=3600
"
,
"
--maotama-ranking-五道杠大队长=3300
"
],
{
cwd
:
$scope
.
local
.
installation
});
if
(
$scope
.
app
.
id
===
"
efz
"
)
{
game
=
child_process
.
spawn
(
"
cmd.exe
"
,
[
"
/c
"
,
$scope
.
app
.
main
],
{
cwd
:
$scope
.
local
.
installation
});
}
else
{
game
=
child_process
.
spawn
(
$scope
.
app
.
main
,
[
"
--maotama-username=
"
+
$rootScope
.
current_user
.
name
,
"
--maotama-ranking-
"
+
$rootScope
.
current_user
.
name
+
"
=
"
+
$scope
.
profile
.
score
,
"
--maotama-ranking-博丽灵梦=6500
"
,
"
--maotama-ranking-♂Van♂=5800
"
,
"
--maotama-ranking-比利♂海灵顿=5600
"
,
"
--maotama-ranking-德国Boy=5430
"
,
"
--maotama-ranking-麦当劳叔叔=5400
"
,
"
--maotama-ranking-村口王师傅=5200
"
,
"
--maotama-ranking-帝国元首=4800
"
,
"
--maotama-ranking-葛老师=3600
"
,
"
--maotama-ranking-五道杠大队长=3300
"
],
{
cwd
:
$scope
.
local
.
installation
});
}
game
.
stdout
.
setEncoding
(
'
utf8
'
);
game
.
stdout
.
on
(
'
data
'
,
function
(
data
)
{
var
achievement
,
achievement_item
,
command
,
matches
,
score
,
_base
,
_i
,
_len
,
_name
,
_ref
;
...
...
@@ -361,7 +367,7 @@
$scope
.
runtime
.
tunnel_server
=
server
;
$scope
.
runtime
.
tunneling
=
true
;
$scope
.
runtime
.
tunnel
=
null
;
return
tunnel
.
listen
(
10800
,
server
.
url
,
function
(
address
)
{
return
tunnel
.
listen
(
$scope
.
app
.
network
.
port
,
server
.
url
,
function
(
address
)
{
$scope
.
runtime
.
tunneling
=
false
;
$scope
.
runtime
.
tunnel
=
address
;
return
$scope
.
$digest
();
...
...
app/js/controllers.map
View file @
a8b7ca8e
This diff is collapsed.
Click to expand it.
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