Skip to content

Commit 769a69f

Browse files
committed
tuning killacc
1 parent 9f2a13a commit 769a69f

File tree

8 files changed

+29
-19
lines changed

8 files changed

+29
-19
lines changed

0.sh

+13-10
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@
4747
./extract.py unpack
4848
}
4949
release() {
50-
# local lr=docs/.vuepress/public/${1:-script.lr}
51-
local lr=release/${1:-script.lr}
50+
local lr=docs/.vuepress/public/${1:-script.lr}
51+
# local lr=release/${1:-script.lr}
5252
git add -u
5353
# cd release
5454
cp /F:/software/懒人精灵3.6.0/out/main.lr $lr
@@ -58,11 +58,11 @@
5858
local md5=$(md5sum $lr | cut -d' ' -f1)
5959
echo $md5 >$lr.md5
6060

61-
cp $lr release/${lr##*/}
62-
cp $lr.md5 release/${lr##*/}.md5
63-
git -C release add -u
64-
git -C release commit --amend --allow-empty-message -m ""
65-
git -C release push --force
61+
# cp $lr release/${lr##*/}
62+
# cp $lr.md5 release/${lr##*/}.md5
63+
# git -C release add -u
64+
# git -C release commit --amend --allow-empty-message -m ""
65+
# git -C release push --force
6666

6767

6868
cp ../dlt/dlt.py dlt.py
@@ -209,9 +209,9 @@ prts.wiki/images/a/a0/Bskill_meet_spd1.png
209209
git submodule update --init --recursive --remote
210210
./extract.py skillicon2operator >png_noalpha/skillicon2operator.json
211211

212-
# local skill=docs/.vuepress/public/skill.zip
213-
# mkdir -p "$(dirname "$skill")"
214-
local skill=release/skill.zip
212+
local skill=docs/.vuepress/public/skill.zip
213+
mkdir -p "$(dirname "$skill")"
214+
# local skill=release/skill.zip
215215

216216
zip $skill -q -r -j png_noalpha
217217
local md5=$(md5sum $skill | cut -d' ' -f1)
@@ -284,6 +284,9 @@ prts.wiki/images/a/a0/Bskill_meet_spd1.png
284284
serial() {
285285
../dlt/dlt.py DLT all2serial $@
286286
}
287+
edu() {
288+
../dlt/dlt.py edu $@
289+
}
287290
"$@"
288291
wait
289292
}

docs/.vuepress/public/script.lr

3.82 KB
Binary file not shown.

docs/.vuepress/public/script.lr.md5

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
df9142a7acd923e166f4c4b4fd3df5b5
1+
0e1658cfeba05c1f0421259d062f2119

docs/.vuepress/public/skill.zip

23.6 KB
Binary file not shown.

docs/.vuepress/public/skill.zip.md5

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
49115ea3f1562634cc8a10884a1733f9
1+
0e367aed392c9fdf387056f6f66503ff

main.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ default_findcolor_confidence = 95 / 100
5050
-- 设成1000//30时,真机同时开着B服与官服时会出现点着点着脚本就停(从基建开始做邮件)
5151
frame_milesecond = 1000 // 30
5252
milesecond_after_click = frame_milesecond
53-
release_date = "2022.06.13 22:54"
53+
release_date = "2022.06.14 20:33"
5454
ui_submit_color = "#ff0d47a1"
5555
ui_cancel_color = "#ff1976d2"
5656
ui_warn_color = "#ff33ccff"

release

Submodule release updated from 306ca8e to b5a358b

util.lua

+12-5
Original file line numberDiff line numberDiff line change
@@ -166,8 +166,8 @@ catchClick = function()
166166
end
167167
end
168168
home = function()
169-
open(package)
170-
-- keyPress(3)
169+
-- open(package)
170+
keyPress(3)
171171
end
172172
back = function() keyPress(4) end
173173
power = function() keyPress(26) end
@@ -788,7 +788,7 @@ findColorAbsolute = function(color, confidence)
788788
end
789789

790790
findOne_game_up_check_last_time = 0
791-
findOne_keepalive_check_last_time = 0
791+
findOne_keepalive_check_last_time = time()
792792
findOne_last_time = time()
793793
findOne_locked = false
794794
findOne = function(x, confidence, disable_game_up_check)
@@ -5011,6 +5011,7 @@ killacc = function()
50115011
-- ' 2>&1 ]]
50125012
open(package)
50135013
appear({package = package}, 5)
5014+
ssleep(1)
50145015

50155016
local cmd = [[nohup su root sh -c ' \
50165017
# settings put global heads_up_notifications_enabled 0
@@ -5053,7 +5054,11 @@ echo -1000 > /proc/$(pidof ]] .. package .. [[:acc)/oom_score_adj
50535054
-- log(1)
50545055
-- exit()
50555056

5056-
-- tap({screen.width + 1, screen.height + 1}, true, true)
5057+
-- home()
5058+
-- tap({screen.width + 1, screen.width + 1}, true, true)
5059+
ssleep(1)
5060+
home()
5061+
wait_game_up()
50575062

50585063
-- exit()
50595064

@@ -5455,8 +5460,10 @@ isweekday = function()
54555460
if cur_time < 6 then return true end
54565461
end
54575462

5458-
memory_clean_last_time = 0
5463+
memory_clean_last_time = time()
54595464
request_memory_clean = function()
5465+
oom_score_adj()
5466+
54605467
local did = false
54615468
if not did and (time() - memory_clean_last_time > keepalive_interval * 1000) then
54625469
memory_clean_last_time = time()

0 commit comments

Comments
 (0)