作者归档:keyboardmeow

关于程序员35岁门槛的个人见解

最近,网上关于程序员甚至互联网从业者35岁门槛失业的论调越来越多,其实自己作为一个程序出身在这个行业做了十几年的“老人”,自然也对这个话题比较有感触。我自己的一点看法如下:

1、确实存在35岁门槛这个问题,当然也不一定正好是35岁,只是代表这个年龄段。其实类似人们常说三十而立一样,到了这个年龄段,自然而然会有这方面的感触。尤其是遇到不如意的时候,一旦安静下来就很容易去想这方面的事。

2、这个问题的原因分析网上有很多了,尤其是那些贩卖焦虑的视频估计大家都刷到很多,站在我的角度,其实算是有喜有忧吧。喜在早早就有所转型,不算是完全的一线程序,也有点技术之外的一些资源积累,摸索过不少东西。但忧在可能由于能力性格见识机遇等原因,一直也做不大,起伏波动频繁,这两年随着互联网行业整体走下坡路,甚至越来越萎缩。而且要变现的话,曾经拥有的技术能力毕竟只是非常小的一个影响因素。

3、关于后续该怎么走,其实也在摸索中,失意情绪低落的时候,确实有点迷茫,就跟网上说的一样,多少有点20出头刚入行会迷茫有点类似吧。做技术出路的话无非就那几条:

a)继续死磕技术,走技术专家这方面(不是真正热爱技术,只是混口饭吃,没有特别出众的功底,就国内这环境还是Pass吧,至少不能All In这条线)

b)走管理这方面。有工作,公司也还行,就试试呗,已经创业了或者自由职业了,没有公司自然就没法走这个方向了,而且提到管理吧,还是比较有感触的,很看平台和老板,就是说成就一番事业,要么自己开辟也就是创业,这个后面再说,要么就是加入别人的事业了。这很看机遇、运气、看人的眼光,得跟对人,比如韩信前期跟项羽就没前途,后来跟刘邦就做起来了嘛,当然最后兔死狗烹的下场就另说了。总之碰上好的平台和值得跟的老板,还是可以的,但其实还是挺难的。

c)自己创业或者自由职业。关于这条线,感觉也越来越多人进来了,一般会分几步吧,前期主业之外,业余时间搞点副业尝试一下,感觉能差不多做起来,就有可能重心就主副置换了,再往后可能自由职业了。再往后可能由于需要开发票需要公户之类的,也有一定的资源积累能组团队的,可能逐渐变成创业这样。

4、到这里,可能有些人觉得最后这种方式可能比较不错,但实际上,最后这一种其实是要求最高的,走这个路,你要变成多边形战士,这还不是说做个产品,既能搞定美术、又能搞定程序、策划、音频等等这种层面,而是指的更大层面的超级多边形战士,前面这几种最多都属于产品层面,还要搞定人、钱等各个层面的东西,而且还需要特别强大的心力,是非常容易吃力不讨好的,就是付出N多努力,却得到很不成正比的回报,尤其是在这条路的初期,甚至中期,得坚持慢慢积累才有可能做出来。这个展开聊起来就太长了,回头有空再说吧。如果确定想走这条路,适合技术尝试的现在的市场环境下可以考虑的一般就是自媒体、讲课和接活,大多数人也就是这三个方向了,无非就是看自己更看重哪方面想在哪方面投入更多吧。

最后总结一下吧,程序这个工种无非是360行其中的一种,普通人能够得着的职业,以前吃了行业的红利,可能你会比同龄人赚的更多,当然你也付出了身体健康和时间青春(互联网大佬不是曾经说过996其实是福报嘛)。现在行业没有红利了,很多人会有些失落,甚至这个落差让人难以接受,很受打击。但完全看自己怎么想吧,作为这个年龄段的行业老兵来说,你作为一个普通人曾经高薪过,用十年、十五年的时间把很多人几十年赚的钱都赚了,现在休息下来搞个植物店,做点小生意,只要自己和家庭这一关能过得去,其实也还好。如果之前自己花费过于激进把家底都折腾没了,那也怪不得别人,自怨自艾也没有用,成年人的世界没有容易二字,好在只要还活着,就还有机会,心态放平吧,想开点,我们身处当下,来世上走这一遭无非就是个体验,没有最好的时代,也没有最坏的时代!

参加48小时极限游戏开发活动日志(Global Game Jam 2023 济南站)

第一天(周五)中午开车出发,路过传说中赫赫有名各种拥堵的经十路,傍晚抵达场地:济南汉峪金谷互联网大厦。发现济南近些年变化确实大,没有之前那么土的印象了,这CBD还有点像样。不过来的有点晚,大家都已经开始了,没有组到队,于是打算自己单刷,过了会儿,工作人员之一(一个十几岁的姑娘,济南外国语的高中生)过来问有没有要分享的,大家巴拉巴拉聊了一些有的没的,才发现大家基本上以学生居多,工作的很少,说我好像是年龄最大的。。?且被告知济南站点场地原因不能晚上留下过夜,7点半就要离开,又大无语,没办法,抓紧订酒店,就这样没过多久到7点多开车去酒店了。

晚上酒店没啥意思,也正流感难受,别的啥也没干就下楼吃点饭睡了。

第二天(周六)上午从酒店抵达现场,结果有工作的事情把时间浪费了,下午才正式开始的,因为时间剩下不多,决定基于现成的框架去写,考虑今年公布的主题是“Make Me Laugh”,也就是让我笑,想着满足了需求,不就能让别人笑了呗,所以做个模拟经营游戏,满足客户需求,卖给他们想要的东西或者提供他们想要的服务就好了,所以设定了几个客户,大概就是愁眉苦脸遇到不顺心的事,来到玩家开的店里,或者是饿汉需要食物,或者病人需要药剂之类的。发现不管事食物、药剂之类的其实都可以合成,所以想加个合成当核心玩法,拿食物来说,做个类似胡闹厨房的做菜合成食物的玩法,药剂也是同样的道理了,写一套配方的配表通用就可以了,看时间来不来的及加吧。

策划设计决定了之后,开始搭程序框架,最终找到个CodeMonkey的胡闹厨房的核心玩法的实现,拿来熟悉了下又改了改,做菜合成食物的核心玩法就有了。到这里差不多就又到晚上7点了,收拾一下,开车去酒店,晚上又是吃点东西就睡觉了。

第三天(周日)上午从酒店抵达现场,开始加游戏的主流程,从菜单界面到剧情交代到串联起做菜关卡的合成玩法,然后成功或失败返回主界面的循环搞定。其中剧情交代多花了些时间,基于武士2复仇的开头漫画的剧情交代方式和实现代码改了一下。改完这些差不多到中午了。主要还剩下替换资源,中午吃了口带的面包和奶,开始着手换剧情文字和剧情插图,这些资源最后是场地内另一个没组到队的哥们用AI帮我生成的,灰常感谢啊。原本还帮我出了一些配表,比如做菜的配方以及相应的配件图片等,结果换上后发现要调整的比较多,最大的问题是还需要相应配件的3D模型,这个他搞不定,AI生成3D模型这块还不成熟。想想短时间内确实很难搞,所以就放弃了。就这样把能换的换上,调整个别的一些细节,到了下午3点半左右,该演示了,还差点音频,随便从网上下载了点BGM换上,打出包来,齐活,就坐等看热闹了。

看着大家一组组上去演示,大多确实简单,没有之前北京站的水平那么有意思,包括创意上,体量上,完成度上,效果上等等吧,能相差几个等级。但想想毕竟学生嘛,以能做出来为主,而且自己不也是抱着玩乐体验的心态来的嘛。直到最终演示完,也没有自己印象特别深刻的游戏。演示过程,除了现场的团队演示之外,还有线上的团队进行演示,是通过腾讯会议分享屏幕这样,相对来说那些完成度感觉更高一点,可能时间更充分一些吧,但毕竟少了些线下面对面的体验。我是最后一个进行演示的,可能我第一天来的晚,没登记?主持人好像都没意识到还差我没演示呢,就准备让大家撤了,我赶紧说还有我没演示呢,(lll¬ω¬)汗呐!就这样,我自己一个人把游戏的开发过程、创意玩法介绍、实机演示上去过了一下,最后留了个自己B站的二维码,方便大家私信交流就结束了。

完事下来之后,发现大家对我的游戏好像有点感兴趣?过来要试玩。但更确切的说,可能是对我的经历比较感兴趣吧,因为都是过来问各种入行啊、职业啊、发展啊之类的问题,一瞬间,仿佛又有点在高校教课学生向我问问题的感觉。有点应接不暇,可能有些也没都回答到点上,不一定是人家想知道的,但那种情况下一时间我也确实难以应付过来,于是加VX呗,有啥问题可以之后再聊,我还是比较乐意跟大家分享那点行业经历的。其中有给我印象比较深刻的一个学生,是专门从外地跨省过来的,跟我说他的志向是做游戏引擎,这一下子我是思绪万千,欲语却无从开口的感觉,因为我自己就是游戏引擎出身的,一路走过来,确实很不容易,尤其现在这种Unity、Unreal等第三方引擎当道的市场情况下,居然还是有学生有意向搞引擎。当时说了很多我的看法,也不知道对他有没有帮助。另外还有个美术妹子给我印象也比较深,她对自己的2D美术很自信,但一直苦于找程序,演示的时候也出Bug,只能通过PPT讲完自己的创意,因为座位跟我坐在同一排,所以偶尔聊天跟我聊要上架Steam,要怎么怎么样,还拉我合作,一起把项目完成,巴拉巴拉。。。

我不禁感慨还是学生更有激情啊,虽然青涩一些,但青春热血,能够投身热爱啊。此刻,小小怀念一秒钟当年的自己吧!就这样,大家相互交流一下,留了几个联系方式,合影留念就匆匆撤了,开个夜车回家,把做的游戏传到GGJ国内和国外的官网上分享出来,至此结束了这次的2023济南站48小时极限游戏开发之旅!

此次体验印象比较深的一点感触:

1、济南确实大有变化,起码汉峪金谷这个地方是气派了很多,周围都是高层写字楼,不过停车费是比以前贵不少,济南的停车问题还是个老大难,停车是门好生意啊,在汉峪金谷的地下停车场,大概从早上10点到晚上5、6点吧,停车费需要40块钱,仅次于之前在青岛五星级大酒店下面停车?第一天晚上就停了2、3个小时左右,扣了14块钱。然后去酒店是优惠停车,应该是从晚上7点左右吧到早上8点,10块钱,我住的几天要么晚上来的太早了,要么是早上晚了个把小时,扣了14、16块钱,住宿费倒是不贵,条件一般,反正没啥追求,凑合能睡就行。

2、济南站的游戏开发氛围和技能水平还是一般,比不了北上广,相对来说这次现场气氛比较安静,只有到最后演示环节大家进行展示之后,才有些过来聊天的,问问各自的情况,加了几个VX,但时间已经很仓促了,快速聊几句,活动就结束了。记得以前在北京站参加的时候,展示环节大家乐此不疲,各种不想走,有非常充分的时间交流试玩,这一点应该还是因为这次的场地问题7点多就得离场影响比较大吧,还有大家的心态也只是随便做出点东西来就可以的吧,可以理解,而且组织者确实年龄不大,拉赞助、找场地等待都很不容易,已经非常腻害了,点个赞!

adb常用命令包括wifi安装apk及scrcpy使用相关实践

adb常用命令

列出当前连接的 Android 设备列表:

adb devices安装APK: adb install  xxxx.apk

替换已存在的应用程序(覆盖安装):adb install -r xxxx.apk

卸载APK: adb uninstall

包名查看安装的所有应用:adb shell pm list packages

查看log:adb logcat | find ‘com.xxx.xxx’ >D:/log.txt

scrcpy相关资料:

https://www.bilibili.com/video/BV1zd4y1T7Dz/?spm_id_from=333.1007.top_right_bar_window_history.content.click

scrcpy源码

scrcpy下载地址

scrcpy文档参考资料

一些scrcpy的使用实践记录

Microsoft Windows [版本 10.0.22000.2057]
(c) Microsoft Corporation。保留所有权利。

C:\Users\Administrator>
C:\Users\Administrator>adb -version
adb.exe: unknown command -version 3333

C:\Users\Administrator>scrcpy –version
scrcpy 2.3.1 <https://github.com/Genymobile/scrcpy>

Dependencies (compiled / linked):
– SDL: 2.28.5 / 2.28.5
– libavcodec: 60.31.102 / 60.31.102
– libavformat: 60.16.100 / 60.16.100
– libavutil: 58.29.100 / 58.29.100
– libusb: – / 1.0.26

C:\Users\Administrator>adb –version
Android Debug Bridge version 1.0.41
Version 34.0.5-10900879
Installed as D:\Program Files\scrcpy-win64-v2.3.1\adb.exe
Running on Windows 10.0.22000

C:\Users\Administrator>adb devices
* daemon not running; starting now at tcp:5037
* daemon started successfully
List of devices attached

C:\Users\Administrator>adb devices
List of devices attached

C:\Users\Administrator>adb connect 192.168.0.123
failed to authenticate to 192.168.0.123:5555

C:\Users\Administrator>adb connect 192.168.0.123:7077
cannot connect to 192.168.0.123:7077: 由于目标计算机积极拒绝,无法连接。 (10061)

C:\Users\Administrator>adb tcpip 5555
restarting in TCP mode port: 5555

C:\Users\Administrator>adb connect 192.168.0.123
already connected to 192.168.0.123:5555

C:\Users\Administrator>adb devices
List of devices attached
192.168.0.123:5555 device

C:\Users\Administrator>scrcpy
scrcpy 2.3.1 <https://github.com/Genymobile/scrcpy>
INFO: ADB device found:
INFO: –> (tcpip) 192.168.0.123:5555 device RG_stationPro
D:\Program Files\scrcpy-win64-v2.3.1\scrcpy-server: 1 file pushed, 0 skipped. 87.5 MB/s (66007 bytes in 0.001s)
[server] INFO: Device: [Rokid] Rokid RG-stationPro (Android 12)
INFO: Renderer: direct3d
INFO: Texture: 1920×1080
WARN: Killing the server…

C:\Users\Administrator>scrcpy –display 2
scrcpy 2.3.1 <https://github.com/Genymobile/scrcpy>
WARN: –display is deprecated, use –display-id instead.
INFO: ADB device found:
INFO: –> (tcpip) 192.168.0.123:5555 device RG_stationPro
D:\Program Files\scrcpy-win64-v2.3.1\scrcpy-server: 1 file pushed, 0 skipped. 86.1 MB/s (66007 bytes in 0.001s)
[server] INFO: Device: [Rokid] Rokid RG-stationPro (Android 12)
INFO: Renderer: direct3d
INFO: Texture: 3840×1200

C:\Users\Administrator>scrcpy –display 2 –crop 1920:1200:0:0
scrcpy 2.3.1 <https://github.com/Genymobile/scrcpy>
WARN: –display is deprecated, use –display-id instead.
INFO: ADB device found:
INFO: –> (tcpip) 192.168.0.123:5555 device RG_stationPro
D:\Program Files\scrcpy-win64-v2.3.1\scrcpy-server: 1 file pushed, 0 skipped. 66.2 MB/s (66007 bytes in 0.001s)
[server] INFO: Device: [Rokid] Rokid RG-stationPro (Android 12)
INFO: Renderer: direct3d
INFO: Texture: 1920×1200
WARN: Killing the server…

C:\Users\Administrator>scrcpy –display 2 –crop 1920:1200:0:0 –record file.mp4
scrcpy 2.3.1 <https://github.com/Genymobile/scrcpy>
WARN: –display is deprecated, use –display-id instead.
INFO: ADB device found:
INFO: –> (tcpip) 192.168.0.123:5555 device RG_stationPro
D:\Program Files\scrcpy-win64-v2.3.1\scrcpy-server: 1 file pushed, 0 skipped. 101.1 MB/s (66007 bytes in 0.001s)
[server] INFO: Device: [Rokid] Rokid RG-stationPro (Android 12)
[server] ERROR: Display 2 not found
List of displays:
–display-id=0 (1920×1080)
–display-id=3 (3840×1200)
ERROR: Server connection failed

C:\Users\Administrator>adb tcpip 5555
restarting in TCP mode port: 5555

C:\Users\Administrator>scrcpy –display 3 –crop 1920:1200:0:0 –record file.mp4
scrcpy 2.3.1 <https://github.com/Genymobile/scrcpy>
WARN: –display is deprecated, use –display-id instead.
INFO: ADB device found:
INFO: –> (tcpip) 192.168.0.123:5555 device RG_stationPro
D:\Program Files\scrcpy-win64-v2.3.1\scrcpy-server: 1 file pushed, 0 skipped. 98.8 MB/s (66007 bytes in 0.001s)
[server] INFO: Device: [Rokid] Rokid RG-stationPro (Android 12)
INFO: Recording started to mp4 file: file.mp4
INFO: Renderer: direct3d
INFO: Texture: 1920×1200
WARN: [FFmpeg] track 1: codec frame size is not set
INFO: Recording complete to mp4 file: file.mp4

C:\Users\Administrator>adb tcpip 5555
restarting in TCP mode port: 5555

C:\Users\Administrator>scrcpy –display 2 –crop 1920:1200:0:0 –record file.mp4
scrcpy 2.3.1 <https://github.com/Genymobile/scrcpy>
WARN: –display is deprecated, use –display-id instead.
INFO: ADB device found:
INFO: –> (tcpip) 192.168.0.123:5555 device RG_stationPro
D:\Program Files\scrcpy-win64-v2.3.1\scrcpy-server: 1 file pushed, 0 skipped. 88.7 MB/s (66007 bytes in 0.001s)
[server] INFO: Device: [Rokid] Rokid RG-stationPro (Android 12)
[server] ERROR: Display 2 not found
List of displays:
–display-id=0 (1920×1080)
–display-id=4 (3840×1200)
ERROR: Server connection failed

C:\Users\Administrator>scrcpy –display 4 –crop 1920:1200:0:0 –record file.mp4
scrcpy 2.3.1 <https://github.com/Genymobile/scrcpy>
WARN: –display is deprecated, use –display-id instead.
INFO: ADB device found:
INFO: –> (tcpip) 192.168.0.123:5555 device RG_stationPro
D:\Program Files\scrcpy-win64-v2.3.1\scrcpy-server: 1 file pushed, 0 skipped. 108.1 MB/s (66007 bytes in 0.001s)
[server] INFO: Device: [Rokid] Rokid RG-stationPro (Android 12)
INFO: Recording started to mp4 file: file.mp4
INFO: Renderer: direct3d
INFO: Texture: 1920×1200
WARN: [FFmpeg] track 1: codec frame size is not set
INFO: Recording complete to mp4 file: file.mp4

C:\Users\Administrator>adb install -r G:\xxx.apk
Performing Streamed Install
Success

C:\Users\Administrator>adb install -r G:\xxx.apk
Performing Streamed Install
Success

C:\Users\Administrator>adb install -r G:\xxx.apk
Performing Streamed Install
Success

C:\Users\Administrator>scrcpy –display 4 –crop 1920:1200:0:0 –record file.mp4
scrcpy 2.3.1 <https://github.com/Genymobile/scrcpy>
WARN: –display is deprecated, use –display-id instead.
INFO: ADB device found:
INFO: –> (tcpip) 192.168.0.123:5555 device RG_stationPro
D:\Program Files\scrcpy-win64-v2.3.1\scrcpy-server: 1 file pushed, 0 skipped. 67.1 MB/s (66007 bytes in 0.001s)
[server] INFO: Device: [Rokid] Rokid RG-stationPro (Android 12)
INFO: Recording started to mp4 file: file.mp4
INFO: Renderer: direct3d
INFO: Texture: 1920×1200
WARN: [FFmpeg] track 1: codec frame size is not set
INFO: Recording complete to mp4 file: file.mp4

C:\Users\Administrator>adb install -r G:\xxx.apk
Performing Streamed Install
Success

C:\Users\Administrator>scrcpy –display 4 –crop 1920:1200:0:0 –record file.mp4
scrcpy 2.3.1 <https://github.com/Genymobile/scrcpy>
WARN: –display is deprecated, use –display-id instead.
INFO: ADB device found:
INFO: –> (tcpip) 192.168.0.123:5555 device RG_stationPro
D:\Program Files\scrcpy-win64-v2.3.1\scrcpy-server: 1 file pushed, 0 skipped. 57.8 MB/s (66007 bytes in 0.001s)
[server] INFO: Device: [Rokid] Rokid RG-stationPro (Android 12)
INFO: Recording started to mp4 file: file.mp4
INFO: Renderer: direct3d
INFO: Texture: 1920×1200
WARN: [FFmpeg] track 1: codec frame size is not set
INFO: Recording complete to mp4 file: file.mp4

C:\Users\Administrator>adb install -r G:\xxx.apk
Performing Streamed Install
Success

C:\Users\Administrator>scrcpy –display 4 –crop 1920:1200:0:0 –record file.mp4
scrcpy 2.3.1 <https://github.com/Genymobile/scrcpy>
WARN: –display is deprecated, use –display-id instead.
INFO: ADB device found:
INFO: –> (tcpip) 192.168.0.123:5555 device RG_stationPro
D:\Program Files\scrcpy-win64-v2.3.1\scrcpy-server: 1 file pushed, 0 skipped. 76.1 MB/s (66007 bytes in 0.001s)
[server] INFO: Device: [Rokid] Rokid RG-stationPro (Android 12)
INFO: Recording started to mp4 file: file.mp4
INFO: Renderer: direct3d
INFO: Texture: 1920×1200
WARN: [FFmpeg] track 1: codec frame size is not set
INFO: Recording complete to mp4 file: file.mp4

C:\Users\Administrator>adb install -r G:\

Microsoft Windows [版本 10.0.22000.2057]
(c) Microsoft Corporation。保留所有权利。

C:\Users\Administrator>
C:\Users\Administrator>adb -version
adb.exe: unknown command -version 3333

C:\Users\Administrator>scrcpy –version
scrcpy 2.3.1 <https://github.com/Genymobile/scrcpy>

Dependencies (compiled / linked):
– SDL: 2.28.5 / 2.28.5
– libavcodec: 60.31.102 / 60.31.102
– libavformat: 60.16.100 / 60.16.100
– libavutil: 58.29.100 / 58.29.100
– libusb: – / 1.0.26

C:\Users\Administrator>adb –version
Android Debug Bridge version 1.0.41
Version 34.0.5-10900879
Installed as D:\Program Files\scrcpy-win64-v2.3.1\adb.exe
Running on Windows 10.0.22000

C:\Users\Administrator>adb devices
* daemon not running; starting now at tcp:5037
* daemon started successfully
List of devices attached

C:\Users\Administrator>adb devices
List of devices attached

C:\Users\Administrator>adb connect 192.168.0.123
failed to authenticate to 192.168.0.123:5555

C:\Users\Administrator>adb connect 192.168.0.123:7077
cannot connect to 192.168.0.123:7077: 由于目标计算机积极拒绝,无法连接。 (10061)

C:\Users\Administrator>adb tcpip 5555
restarting in TCP mode port: 5555

C:\Users\Administrator>adb connect 192.168.0.123
already connected to 192.168.0.123:5555

C:\Users\Administrator>adb devices
List of devices attached
192.168.0.123:5555 device

C:\Users\Administrator>scrcpy
scrcpy 2.3.1 <https://github.com/Genymobile/scrcpy>
INFO: ADB device found:
INFO: –> (tcpip) 192.168.0.123:5555 device RG_stationPro
D:\Program Files\scrcpy-win64-v2.3.1\scrcpy-server: 1 file pushed, 0 skipped. 87.5 MB/s (66007 bytes in 0.001s)
[server] INFO: Device: [Rokid] Rokid RG-stationPro (Android 12)
INFO: Renderer: direct3d
INFO: Texture: 1920×1080
WARN: Killing the server…

C:\Users\Administrator>scrcpy –display 2
scrcpy 2.3.1 <https://github.com/Genymobile/scrcpy>
WARN: –display is deprecated, use –display-id instead.
INFO: ADB device found:
INFO: –> (tcpip) 192.168.0.123:5555 device RG_stationPro
D:\Program Files\scrcpy-win64-v2.3.1\scrcpy-server: 1 file pushed, 0 skipped. 86.1 MB/s (66007 bytes in 0.001s)
[server] INFO: Device: [Rokid] Rokid RG-stationPro (Android 12)
INFO: Renderer: direct3d
INFO: Texture: 3840×1200

C:\Users\Administrator>scrcpy –display 2 –crop 1920:1200:0:0
scrcpy 2.3.1 <https://github.com/Genymobile/scrcpy>
WARN: –display is deprecated, use –display-id instead.
INFO: ADB device found:
INFO: –> (tcpip) 192.168.0.123:5555 device RG_stationPro
D:\Program Files\scrcpy-win64-v2.3.1\scrcpy-server: 1 file pushed, 0 skipped. 66.2 MB/s (66007 bytes in 0.001s)
[server] INFO: Device: [Rokid] Rokid RG-stationPro (Android 12)
INFO: Renderer: direct3d
INFO: Texture: 1920×1200
WARN: Killing the server…

C:\Users\Administrator>scrcpy –display 2 –crop 1920:1200:0:0 –record file.mp4
scrcpy 2.3.1 <https://github.com/Genymobile/scrcpy>
WARN: –display is deprecated, use –display-id instead.
INFO: ADB device found:
INFO: –> (tcpip) 192.168.0.123:5555 device RG_stationPro
D:\Program Files\scrcpy-win64-v2.3.1\scrcpy-server: 1 file pushed, 0 skipped. 101.1 MB/s (66007 bytes in 0.001s)
[server] INFO: Device: [Rokid] Rokid RG-stationPro (Android 12)
[server] ERROR: Display 2 not found
List of displays:
–display-id=0 (1920×1080)
–display-id=3 (3840×1200)
ERROR: Server connection failed

C:\Users\Administrator>adb tcpip 5555
restarting in TCP mode port: 5555

C:\Users\Administrator>scrcpy –display 3 –crop 1920:1200:0:0 –record file.mp4
scrcpy 2.3.1 <https://github.com/Genymobile/scrcpy>
WARN: –display is deprecated, use –display-id instead.
INFO: ADB device found:
INFO: –> (tcpip) 192.168.0.123:5555 device RG_stationPro
D:\Program Files\scrcpy-win64-v2.3.1\scrcpy-server: 1 file pushed, 0 skipped. 98.8 MB/s (66007 bytes in 0.001s)
[server] INFO: Device: [Rokid] Rokid RG-stationPro (Android 12)
INFO: Recording started to mp4 file: file.mp4
INFO: Renderer: direct3d
INFO: Texture: 1920×1200
WARN: [FFmpeg] track 1: codec frame size is not set
INFO: Recording complete to mp4 file: file.mp4

C:\Users\Administrator>adb tcpip 5555
restarting in TCP mode port: 5555

C:\Users\Administrator>scrcpy –display 2 –crop 1920:1200:0:0 –record file.mp4
scrcpy 2.3.1 <https://github.com/Genymobile/scrcpy>
WARN: –display is deprecated, use –display-id instead.
INFO: ADB device found:
INFO: –> (tcpip) 192.168.0.123:5555 device RG_stationPro
D:\Program Files\scrcpy-win64-v2.3.1\scrcpy-server: 1 file pushed, 0 skipped. 88.7 MB/s (66007 bytes in 0.001s)
[server] INFO: Device: [Rokid] Rokid RG-stationPro (Android 12)
[server] ERROR: Display 2 not found
List of displays:
–display-id=0 (1920×1080)
–display-id=4 (3840×1200)
ERROR: Server connection failed

C:\Users\Administrator>scrcpy –display 4 –crop 1920:1200:0:0 –record file.mp4
scrcpy 2.3.1 <https://github.com/Genymobile/scrcpy>
WARN: –display is deprecated, use –display-id instead.
INFO: ADB device found:
INFO: –> (tcpip) 192.168.0.123:5555 device RG_stationPro
D:\Program Files\scrcpy-win64-v2.3.1\scrcpy-server: 1 file pushed, 0 skipped. 108.1 MB/s (66007 bytes in 0.001s)
[server] INFO: Device: [Rokid] Rokid RG-stationPro (Android 12)
INFO: Recording started to mp4 file: file.mp4
INFO: Renderer: direct3d
INFO: Texture: 1920×1200
WARN: [FFmpeg] track 1: codec frame size is not set
INFO: Recording complete to mp4 file: file.mp4

C:\Users\Administrator>adb install -r G:\xxx.apk
Performing Streamed Install
Success

C:\Users\Administrator>adb install -r G:\xxx.apk
Performing Streamed Install
Success

C:\Users\Administrator>adb install -r G:\xxx.apk
Performing Streamed Install
Success

C:\Users\Administrator>scrcpy –display 4 –crop 1920:1200:0:0 –record file.mp4
scrcpy 2.3.1 <https://github.com/Genymobile/scrcpy>
WARN: –display is deprecated, use –display-id instead.
INFO: ADB device found:
INFO: –> (tcpip) 192.168.0.123:5555 device RG_stationPro
D:\Program Files\scrcpy-win64-v2.3.1\scrcpy-server: 1 file pushed, 0 skipped. 67.1 MB/s (66007 bytes in 0.001s)
[server] INFO: Device: [Rokid] Rokid RG-stationPro (Android 12)
INFO: Recording started to mp4 file: file.mp4
INFO: Renderer: direct3d
INFO: Texture: 1920×1200
WARN: [FFmpeg] track 1: codec frame size is not set
INFO: Recording complete to mp4 file: file.mp4

C:\Users\Administrator>adb install -r G:\xxx.apk
Performing Streamed Install
Success

C:\Users\Administrator>scrcpy –display 4 –crop 1920:1200:0:0 –record file.mp4
scrcpy 2.3.1 <https://github.com/Genymobile/scrcpy>
WARN: –display is deprecated, use –display-id instead.
INFO: ADB device found:
INFO: –> (tcpip) 192.168.0.123:5555 device RG_stationPro
D:\Program Files\scrcpy-win64-v2.3.1\scrcpy-server: 1 file pushed, 0 skipped. 57.8 MB/s (66007 bytes in 0.001s)
[server] INFO: Device: [Rokid] Rokid RG-stationPro (Android 12)
INFO: Recording started to mp4 file: file.mp4
INFO: Renderer: direct3d
INFO: Texture: 1920×1200
WARN: [FFmpeg] track 1: codec frame size is not set
INFO: Recording complete to mp4 file: file.mp4

C:\Users\Administrator>adb install -r G:\xxx.apk
Performing Streamed Install
Success

C:\Users\Administrator>scrcpy –display 4 –crop 1920:1200:0:0 –record file.mp4
scrcpy 2.3.1 <https://github.com/Genymobile/scrcpy>
WARN: –display is deprecated, use –display-id instead.
INFO: ADB device found:
INFO: –> (tcpip) 192.168.0.123:5555 device RG_stationPro
D:\Program Files\scrcpy-win64-v2.3.1\scrcpy-server: 1 file pushed, 0 skipped. 76.1 MB/s (66007 bytes in 0.001s)
[server] INFO: Device: [Rokid] Rokid RG-stationPro (Android 12)
INFO: Recording started to mp4 file: file.mp4
INFO: Renderer: direct3d
INFO: Texture: 1920×1200
WARN: [FFmpeg] track 1: codec frame size is not set
INFO: Recording complete to mp4 file: file.mp4

C:\Users\Administrator>adb install -r G:\xxx.apk
Performing Streamed Install
Success

C:\Users\Administrator>adb install -r G:\xxx.apk
Performing Streamed Install
Success

C:\Users\Administrator>scrcpy –display 4 –crop 1920:1200:0:0 –record file.mp4
scrcpy 2.3.1 <https://github.com/Genymobile/scrcpy>
WARN: –display is deprecated, use –display-id instead.
INFO: ADB device found:
INFO: –> (tcpip) 192.168.0.123:5555 device RG_stationPro
D:\Program Files\scrcpy-win64-v2.3.1\scrcpy-server: 1 file pushed, 0 skipped. 67.8 MB/s (66007 bytes in 0.001s)
[server] INFO: Device: [Rokid] Rokid RG-stationPro (Android 12)
INFO: Recording started to mp4 file: file.mp4
INFO: Renderer: direct3d
INFO: Texture: 1920×1200
WARN: [FFmpeg] track 1: codec frame size is not set
INFO: Recording complete to mp4 file: file.mp4

C:\Users\Administrator>adb install -r G:\xxx.apk
Performing Streamed Install
Success

C:\Users\Administrator>adb install -r G:\xxx.apk
Performing Streamed Install
Success

C:\Users\Administrator>adb install -r G:\xxx.apk
Performing Streamed Install
Success

C:\Users\Administrator>scrcpy –display 4 –crop 1920:1200:0:0 –record file.mp4
scrcpy 2.3.1 <https://github.com/Genymobile/scrcpy>
WARN: –display is deprecated, use –display-id instead.
INFO: ADB device found:
INFO: –> (tcpip) 192.168.0.123:5555 device RG_stationPro
D:\Program Files\scrcpy-win64-v2.3.1\scrcpy-server: 1 file pushed, 0 skipped. 96.8 MB/s (66007 bytes in 0.001s)
[server] INFO: Device: [Rokid] Rokid RG-stationPro (Android 12)
INFO: Recording started to mp4 file: file.mp4
INFO: Renderer: direct3d
INFO: Texture: 1920×1200
WARN: [FFmpeg] track 1: codec frame size is not set
INFO: Recording complete to mp4 file: file.mp4

C:\Users\Administrator>adb install -r G:\xxx.apk
Performing Streamed Install
Success

C:\Users\Administrator>scrcpy –display 4 –crop 1920:1200:0:0 –record file.mp4
scrcpy 2.3.1 <https://github.com/Genymobile/scrcpy>
WARN: –display is deprecated, use –display-id instead.
INFO: ADB device found:
INFO: –> (tcpip) 192.168.0.123:5555 device RG_stationPro
D:\Program Files\scrcpy-win64-v2.3.1\scrcpy-server: 1 file pushed, 0 skipped. 62.5 MB/s (66007 bytes in 0.001s)
[server] INFO: Device: [Rokid] Rokid RG-stationPro (Android 12)
INFO: Recording started to mp4 file: file.mp4
INFO: Renderer: direct3d
INFO: Texture: 1920×1200
WARN: [FFmpeg] track 1: codec frame size is not set
INFO: Recording complete to mp4 file: file.mp4

C:\Users\Administrator>adb install -r G:\xxx.apk
Performing Streamed Install
Success

C:\Users\Administrator>scrcpy –display 4 –crop 1920:1200:0:0 –record file.mp4
scrcpy 2.3.1 <https://github.com/Genymobile/scrcpy>
WARN: –display is deprecated, use –display-id instead.
INFO: ADB device found:
INFO: –> (tcpip) 192.168.0.123:5555 device RG_stationPro
D:\Program Files\scrcpy-win64-v2.3.1\scrcpy-server: 1 file pushed, 0 skipped. 44.4 MB/s (66007 bytes in 0.001s)
[server] INFO: Device: [Rokid] Rokid RG-stationPro (Android 12)
INFO: Recording started to mp4 file: file.mp4
INFO: Renderer: direct3d
INFO: Texture: 1920×1200
WARN: [FFmpeg] track 1: codec frame size is not set
INFO: Recording complete to mp4 file: file.mp4

C:\Users\Administrator>adb install -r C:\Users\Administrator\Desktop\xxx.apk
Performing Streamed Install
Success

C:\Users\Administrator>

.apk
Performing Streamed Install
Success

C:\Users\Administrator>adb install -r G:\xxx.apk
Performing Streamed Install
Success

C:\Users\Administrator>scrcpy –display 4 –crop 1920:1200:0:0 –record file.mp4
scrcpy 2.3.1 <https://github.com/Genymobile/scrcpy>
WARN: –display is deprecated, use –display-id instead.
INFO: ADB device found:
INFO: –> (tcpip) 192.168.0.123:5555 device RG_stationPro
D:\Program Files\scrcpy-win64-v2.3.1\scrcpy-server: 1 file pushed, 0 skipped. 67.8 MB/s (66007 bytes in 0.001s)
[server] INFO: Device: [Rokid] Rokid RG-stationPro (Android 12)
INFO: Recording started to mp4 file: file.mp4
INFO: Renderer: direct3d
INFO: Texture: 1920×1200
WARN: [FFmpeg] track 1: codec frame size is not set
INFO: Recording complete to mp4 file: file.mp4

C:\Users\Administrator>adb install -r G:\xxx.apk
Performing Streamed Install
Success

C:\Users\Administrator>adb install -r G:\xxx.apk
Performing Streamed Install
Success

C:\Users\Administrator>adb install -r G:\xxx.apk
Performing Streamed Install
Success

C:\Users\Administrator>scrcpy –display 4 –crop 1920:1200:0:0 –record file.mp4
scrcpy 2.3.1 <https://github.com/Genymobile/scrcpy>
WARN: –display is deprecated, use –display-id instead.
INFO: ADB device found:
INFO: –> (tcpip) 192.168.0.123:5555 device RG_stationPro
D:\Program Files\scrcpy-win64-v2.3.1\scrcpy-server: 1 file pushed, 0 skipped. 96.8 MB/s (66007 bytes in 0.001s)
[server] INFO: Device: [Rokid] Rokid RG-stationPro (Android 12)
INFO: Recording started to mp4 file: file.mp4
INFO: Renderer: direct3d
INFO: Texture: 1920×1200
WARN: [FFmpeg] track 1: codec frame size is not set
INFO: Recording complete to mp4 file: file.mp4

C:\Users\Administrator>adb install -r G:\xxx.apk
Performing Streamed Install
Success

C:\Users\Administrator>scrcpy –display 4 –crop 1920:1200:0:0 –record file.mp4
scrcpy 2.3.1 <https://github.com/Genymobile/scrcpy>
WARN: –display is deprecated, use –display-id instead.
INFO: ADB device found:
INFO: –> (tcpip) 192.168.0.123:5555 device RG_stationPro
D:\Program Files\scrcpy-win64-v2.3.1\scrcpy-server: 1 file pushed, 0 skipped. 62.5 MB/s (66007 bytes in 0.001s)
[server] INFO: Device: [Rokid] Rokid RG-stationPro (Android 12)
INFO: Recording started to mp4 file: file.mp4
INFO: Renderer: direct3d
INFO: Texture: 1920×1200
WARN: [FFmpeg] track 1: codec frame size is not set
INFO: Recording complete to mp4 file: file.mp4

C:\Users\Administrator>adb install -r G:\xxx.apk
Performing Streamed Install
Success

C:\Users\Administrator>scrcpy –display 4 –crop 1920:1200:0:0 –record file.mp4
scrcpy 2.3.1 <https://github.com/Genymobile/scrcpy>
WARN: –display is deprecated, use –display-id instead.
INFO: ADB device found:
INFO: –> (tcpip) 192.168.0.123:5555 device RG_stationPro
D:\Program Files\scrcpy-win64-v2.3.1\scrcpy-server: 1 file pushed, 0 skipped. 44.4 MB/s (66007 bytes in 0.001s)
[server] INFO: Device: [Rokid] Rokid RG-stationPro (Android 12)
INFO: Recording started to mp4 file: file.mp4
INFO: Renderer: direct3d
INFO: Texture: 1920×1200
WARN: [FFmpeg] track 1: codec frame size is not set
INFO: Recording complete to mp4 file: file.mp4

C:\Users\Administrator>adb install -r C:\Users\Administrator\Desktop\xxx.apk
Performing Streamed Install
Success

C:\Users\Administrator>

自研新PC游戏《混乱风暴:战略版》已开放Steam商店页面

近日,自研新PC游戏《混乱风暴:战略版》已开放Steam商店页面,即将发布,敬请期待!有兴趣的玩家可以先加一下愿望单。

《混乱风暴:战略版》是一款西方魔幻风格的塔防策略游戏。玩家将扮演特定阵营的首领,通过不断战斗增强自身实力,守卫己方据点,并不断扩张领土,最终成为整个世界的统治者。

实时操控多元战斗,玩家可控制守卫远程射杀来犯之敌,可操控英雄一路披荆斩棘,也可组织地空部队协同作战,或者施放强大的法术,击败那些试图夺取你的旗帜并摧毁你的城堡的敌人,最终赢得战斗胜利。

《混乱风暴:战略版》游戏宣传片

自研新VR游戏《猎影特攻VR》上线Pico商店

近日,自研新VR游戏《猎影特攻VR》已上线Pico商店,同时,Steam商店页面也已公开,即将发布,敬请期待!该游戏曾屡获殊荣,包括高通XR大赛Pico优质游戏专项奖、2023星鲨杯全球虚拟现实大赛最佳体验奖等。

《猎影特攻VR》是一款基于VR一体机的猎杀狙击类VR游戏,玩家将化身主角“猎影”,从起初单纯的复仇行动,到逐渐担负起重建世界秩序的使命,进而踏上一场超越时空的猎杀之旅。

《猎影特攻VR》游戏宣传片

使用Unity进行RokidAR开发相关记录

硬件相关要注意的:

Rokid max studio+眼镜

眼镜端的线口不要插反

Rokid max studio的正面朝上,然后右下角的带蓝色包围的typec口才是真正充电和连眼镜的口;有时插电脑上没有磁盘显示,即使开了开发者模式也不行,可以用官方论坛中的一个软件慧眼助手类似360手机助手的一个软件来进行安装。当然adb应该也可以。

开发流程按照官方文档来就可以https://custom.rokid.com/prod/rokid_web/c88be4bcde4c42c0b8b53409e1fa1701/pc/cn/8d684c36da714eadaa23e47b6ab5a3a2.html?documentId=0858e7044d8e4218933cdb1775cf3c08

开发环境是Unity2021.3,在装XR Interaction Toolkit 时找不到这个包,可以点左上角的+号,选择 Add Package by name,输入 com.unity.xr.interaction.toolkit,即可导入。

不同的 Unity 版本可能导入 XR Interaction Toolkit 的方式会有点不一样,具体可以参考官方文档中的 Guides -> Installation(https://docs.unity3d.com/Packages/com.unity.xr.interaction.toolkit@2.3/manual/installation.html,在里面找到自己正在使用的版本)