Android Tutorial for DDNet 9.3.1/zh-cn: Difference between revisions
ForgottenCat (talk | contribs) Created page with "首次进入游戏时,你可以设置自己的昵称,之后你便能看到主页。搜索框位于''Host Address''上方,清除里面的内容后你便能看到服务器。''DDNet''和''LAN''选项内不会自动刷新服务器。如果你想加入一个本地服务器,在''Host Address''下方输入地址即可。" |
ForgottenCat (talk | contribs) Created page with "如果你刷新太快,搜索引擎会停止工作,手机版ddnet刷新比较慢。如果你看到右下角显示''x of 1000+ servers'',说明刷新很成功,之后慢慢等待即可。" |
||
Line 131: | Line 131: | ||
首次进入游戏时,你可以设置自己的昵称,之后你便能看到主页。搜索框位于''Host Address''上方,清除里面的内容后你便能看到服务器。''DDNet''和''LAN''选项内不会自动刷新服务器。如果你想加入一个本地服务器,在''Host Address''下方输入地址即可。 | 首次进入游戏时,你可以设置自己的昵称,之后你便能看到主页。搜索框位于''Host Address''上方,清除里面的内容后你便能看到服务器。''DDNet''和''LAN''选项内不会自动刷新服务器。如果你想加入一个本地服务器,在''Host Address''下方输入地址即可。 | ||
如果你刷新太快,搜索引擎会停止工作,手机版ddnet刷新比较慢。如果你看到右下角显示''x of 1000+ servers'',说明刷新很成功,之后慢慢等待即可。 | |||
<div lang="en" dir="ltr" class="mw-content-ltr"> | <div lang="en" dir="ltr" class="mw-content-ltr"> |
Revision as of 16:24, 18 July 2024
这里是手机版 DDNet教程。在你正式决定开始之前,我们想要告诉你的是:当前手机版有许多漏洞,因为它已经很久没有更新过了。一个更新版本的DDNet移动端正在被制作。
为了读懂这个教程,你需要有基础的绑定知识,并且明白你自己需要什么功能。如果你在手机版方面需要相关帮助,你可以去找ForgottenCat,他在wiki,Bilibili,Discord都有账号。目前很多人包括管理员都不是很清楚手机版相关问题,不要过多的去打扰他们。
这个教程用了个人的设置当做例子,因此可能不会符合你自己的需求。
下载
最新版本移动端DDNet的版本号为9.3.1,并且只支持安卓系统。点击此处去下载。一些设备无法正常安装此安装包,因为这个安装包过于老旧,你可以通过Android Debug Bridge安装它们。
开始教程
当你第一次打开应用时,你可以看到"Tap left joystick to jump"。重新打开游戏,之后你可以在屏幕上方看到一个写着"CHANGE DEVICE CONFIGURATION"的长条。按下他就可以进入设置页面。
在这个界面里,所有设置都会被自动保存
按钮和映射
映射是一个不同于电脑版DDNet的特殊操作。对于普通的键盘,每个按键都有属于它们自己的名字,比如ctrl,alt。在开始绑定之前,我们需要给这些按键一个名字,这也是映射存在的意义。
“On-screen keyboard”,“Remap physical keys”,“Two-finger screen gestures”,这三个是映射有关的选项。
屏幕按键
- 这个选项可以改变关于屏幕上按键的相关设置。
- On-screen keyboard theme
- 改变屏幕上按键的材质。Sun是默认材质,也是唯一一个会在虚拟摇杆上显示触摸位置的材质。
- On-screen keyboard size
- 改变屏幕上按键的可触碰范围,不推荐在此修改。
- Size of button images
- 改变屏幕上按键的图片大小,但是不改变可触碰范围。
- On-screen keyboard transparency
- 改变屏幕上按键图片的透明度。由"Invisible"(完全透明)到"Non-transparent"(完全不透明)透明度逐渐递减。
- Customize on-screen keyboard layout
- 建议在此修改屏幕上按键位置。你可以直接拖拽按键,也可以选择一个按键后,在空白位置处滑动,以此改变按键的形状。上方会有文字显示你正选中的按键名称。
- 如果你的材质不是Sun,那么在修改界面的材质会固定为Simple Theme。
- Remap on-screen controls
- 一共有7个按键和2个摇杆。你无法映射Text input button,即文本输入按钮,也无法映射摇杆。推荐将Joystick1关闭,用它控制移动会让你无法在行走过程中跳跃,或者在不跳的情况下开始行走。如果需要关掉它,请根据图片显示操作。
- Joystick 2是你唯一可以用来出钩的工具,不要将其关闭。点击ok即可保存设置然后进入映射界面,之后你可以看到如下画面。
- 将一个按键映射为一个按键名实际上可以让这个按键做这个按键名对应的事。举个例子,如果你将button 1映射为A,那么button 1就会变得和电脑键盘上面的A一模一样。
- 最上方有正在映射的按键名。你只需要知道这是button几,不需要关心他后面接的用途。同时,按钮通常有个默认映射。推荐将按键绑定为A,D,SPACE,X,PAGEDOWN。这是因为这些按键名默认有自己的绑定,如果你将按键映射为它们你就不需要重新绑定。
- 同时,你必须替换开火键,默认为mouse1,对应鼠标左键。在手机版按下mouse1的方法是点击屏幕空白位置。但是,你按下屏幕上按键时无法触发mouse1,因此如果你不修改的话操作难度会大幅度提升。我们建议映射一个屏幕上按键为开火键。例如将button 6映射为WORLD_55,之后 bind world_55 "+fire"即可。
- 默认bind:A=向左移动,D=向右移动,SPACE=跳跃,X=切换分身,PAGEDOWN=切换至下一个武器,Mouse1=开火。
- 如果你在映射完所有按键之前退出映射,已经被映射的按键会保留设置,其余的则不变。映射完成后,你可以根据自己的需要改变按键的位置,然后对于屏幕上按键的设置就结束了。
映射物理按键
- 通常设备有音量键和返回键。这些按键在跑图过程中不那么容易按到,因此不要给他们一个需要时刻使用的功能。首先,在图中所示的界面按下任意一个按钮。
- 然后按下 Show all keycodes,其他功能根本不管用。之后你就可以映射了,一次只能映射一个物理按键。
- 你可以将物理按键映射为鼠标左键,但是这完全是没必要的操作。如果你需要这么做,在主界面选择Mouse emulation(鼠标模拟),然后选择Left mouse click(鼠标左键点击),最后选择Physical key,然后按下任一物理按键即可。在此之后你仍可以通过触摸屏幕来移动光标。
- 另一个物理按键的优势在于,他们可以被轻松地绑定。你可以在DDNet中找到一个名叫控制的界面(一个电脑版DDNet也有的界面)。屏幕上的按钮和屏幕手势均无法触发,你只能在此修改物理按键和mouse1的绑定。
映射二指屏幕手势
- 一共4个手势,Zoom in即放大手势,Zoom out即缩小手势,Rotate left即逆时针手势,Rotate right即顺时针手势。他们与物理按键一样无法被轻易触发,因此给予它们一个不那么常用的功能。
- 我们一般选择Medium作为sensitivity,即灵敏度。你可以自己看哪个选项最适合自己。
- 所有手势默认映射为UNKNOWN。这不是个合法的按键,它们也无法在DDNet中被绑定。你需要将手势映射为一个除此之外的合法按键。
- 做手势的方法:将恰好两根手指放置于屏幕空白处。对于Zoom in/out,使手指分别远离/靠近中心点(类似于放大和缩小图片时做的手势)。对于Rotate left/right,使其中一根手指不动,另一个绕其转圈即可。
- 另一个问题在于,触发顺时针手势时,有时候缩小手势会被一起触发。类似的案例很少发生,你可以自己尝试一下。
映射注意事项
- 请记下每个按键对应的映射,之后绑定会省去不必要的麻烦。
- 为避免你给予的映射恰好有你不知道的绑定,你可以将按键映射为World_X,这类名称前带有world的按键没有默认绑定。
- 映射结束后,你可以重新进入映射界面以查看映射是否存在问题。上一次映射保存的按键会显示在最上方。
- 如果你要像图片那样放置按钮
,你最好将跳跃键放高一些。否则可能在你做踢人动作时出现bug。(按下任意移动键,之后钩子摇杆,最后跳跃键,并且速度比较快时,所有按键可能突然失效,并且无法触发直到你松开所有手指。可以通过将跳跃键放高一些或者只需要抬高一些你按跳跃键的手指)
- 在Mouse emulation选项中,你可以设置Calibrate touchscreen,即"安全区"。触摸屏幕上的4个角落即可。
- 所有映射会在你离开整个界面并进入DDNet后才会生效。这也意味着手势按键无法触发,物理按键暂时未被映射。
映射举例
- Button 1: A
- Button 2: SPACE
- Button 3: D
- Button 4: X
- Button 5: PAGEDOWN
- Button 6: WORLD_55
- 音量+: RCTRL
- 音量-: LALT
- 返回键: RETURN
- Zoom in: WORLD_5
- Zoom out: ESCAPE
- Rotate left: K
- Rotate right: F1
- 解释:你的映射中必须包括RETURN,这个无法改变。这是来源于ForgottenCat的设置。
- Ctrl和Alt不存在。取而代之的是RCTRL和LCTRL,以及RALT和LALT。绑定输入按键名时我们也不能用ctrl和alt。
游戏内设置和绑定
基础设置
首次进入游戏时,你可以设置自己的昵称,之后你便能看到主页。搜索框位于Host Address上方,清除里面的内容后你便能看到服务器。DDNet和LAN选项内不会自动刷新服务器。如果你想加入一个本地服务器,在Host Address下方输入地址即可。
如果你刷新太快,搜索引擎会停止工作,手机版ddnet刷新比较慢。如果你看到右下角显示x of 1000+ servers,说明刷新很成功,之后慢慢等待即可。
Remember, all changes made after entering ddnet could only be saved by exiting using the X at the top right corner.
Tap the gear at the top right corner to enter the setting interface. In the option Controls you can bind your mouse1 or physical buttons conveniently.
There is a special option in HUD: Show Chat. If you turn it off, the text input button will act weirdly. Normally when using the button, you will open chat automatically, then you can input messages. But turning Show chat off will prevent the chat from entering. For example, you input "/lock", you will kill, because the last word of /lock is K, and k is bound to kill. So if you input "yyyyyyk", you will also kill.
Now, get into a random DDNet server, and start binding.
Basic Bindings
Press the button that is mapped to F1, then you can use the Text input button to input commands.
If you decided to use an on-screen button to fire, it's recommended to bind mouse1 to spectate. Because while spectating, you have to hold the screen to choose which who you want to spec. If you bind another button to spectate, you need to hold that button and the screen at the same time.
After all these settings, your mobile ddnet is now playable! You can now beat most easy maps, but if you are going to higher difficulties, you will find serious problems. You can choose whether to skip mode switch key, but I recommend you not to read them if you are not very familiar with DDNet, or you aren't planning to be a pro in mobile ddnet.
Mode Switch Key
There are too many bindings, but we don't have that many buttons to use. Also, commands like "bind ctrl+a" is not usable in mobile ddnet. So mode switch key is the best solution.
Firstly, you need to know Config Files, and you need to know basic commands. You must place your config files in /storage/emulated/0/Android/data/tw.ddnet/files/data/. Take care that there is a folder named "data", and it has the same content as the current folder. Placing files in there will do nothing.
The Mode switch key is used for bind lots of buttons to another usage. For example, I create a config file called "on.cfg". The following commands are what's inside.
- bind a "zoom+"
- bind d "zoom-"
- bind rctrl "exec off.cfg"
Then, create another config file called "off.cfg". The following commands are what's inside.
- bind a "+left"
- bind d "+right"
- bind rctrl "exec on.cfg"
Then, go into game, tap f1, input "exec off.cfg", the key is now usable. Let's see what the key can do.
Firstly, you use the key, the key a and d can now zoom, and the mode switch key can now execute the "off.cfg". When you finish zooming, use the rctrl again, the key a and d can now make you move, and the key rctrl can now execute on.cfg. As you see, rctrl is considered as a mode switch key there, it can temporarily change the binding of other buttons and have the ability to reset them after using. This is similar to "bind rctrl+a", but mobile ddnet does not support this, so we have to make a small change.
Sounds easy right? But there are more you need to care about while creating your own mode switch key. Firstly, the key that will be changed shouldn't be changed by mode switch key. For example, deep fly will change the binding of fire button. After changing, you need to use the mode switch key to reset bindings. But if it will reset the binding of fire button, the deep fly bind just disappear.
Another issue is, you can't let the key can be triggered by accident. Triggering mode switch key by accident is usually fatal, it may deprive you of your ability to move, if your mode switch key has something to do with move buttons. Take physical keys such as volume keys as mode switch keys is a good option, they can't be triggered easily.
To know which mode you are currently at, using emote is a good choice. Upon entering setting mode, show an afk emote, and upon resetting, show a happy emote. This can prevent you from misunderstanding.
You shouldn't to relate screen gestures to mode change keys. They can't be triggered if you can't release hook for a period of time, and they are easily triggered by accident.
Two mode switch key is enough for now, just two volume keys. Too many mode switch keys will make you confused.
Bugs and Solutions
- On-Screen buttons released itself or cant be released.
- Your hook usually breaks itself, especially in hf parts, endless, and dummy drags. Avoid situations that you must hold hook for a long time or you will die. If it's not avoidable, release all your buttons before starting to hook, then touch hook joystick only. After this you can start moving, and try not to release your finger which is on the moving buttons. This is a useful way to prevent this bug from occuring.
- In some hookthrough part or rehook part, you will find your hook won't release even though you release your finger. The only way to deal with this problem is to tap your joystick for another time. Of course this is not useful most of the time. A map named Polarity is a good example, this map is way harder for mobile players because of this bug.
- A more common issue is you can't release on-screen buttons, it usually occurs when you are holding your hook joystick, you just can't release your move buttons. The solution is to touch move buttons before jumping. Jump, then move while holding hook at a fast speed will 100% cause this bug.
- Of course, sometimes your move button will release itself. Probably because you are releasing hook joystick. Lots of hook part requires you to drag dummy, go back, then go forward and get a faster speed to pass through some freeze zone, which means you probably need to release hook. The solution is, when you release your hook, just quickly tap the hook joystick again, then your move button will recover.
- White hell
- If you placing ddnet client in the background, or something like this, when you come back, your entity will be completely white or something you can't understand most of the time. And if you repeat the action, everything will just collapse. Just reopen the game can fix this problem.
- /load problem
- Sometimes after using /load, the collision between two tees will act very weird, seems very laggy. The solution is, just don't enter solo mode before /load. If you can't, use /timeout or entering a solo tile after /load.
- Full-width breakdown
- The text input button can't input full-width characters such as Chinese characters. If you do that, the game will crash normally. But maybe, this bug only occurs on certain devices. However, if you open the input interface without using text input button, the game won't crash if you input full-width characters. For example, change your name in the setting input box. And, for some reason, if you get into a server, don't connect your dummy, and write some Chinese characters in the input box without using that button, then you may temporarily get the ability to send full-width characters without crashing the game.
- Normally, the solution is to create some config files. Placing commands like player_name or say. Then while playing you can f1 and execute those files to help you swaping, changing name, or sending messages.
Textures
/storage/emulated/0/Android/data/tw.ddnet/files/data/, there you can find every texture. Just replace the original texture without changing the file name. The entity texture is in the editor folder, its name is entities_clear.png. If you want to add skins, put files in the skins folder. x_ninja.png is the default skin when tee is in freeze. Replace it without changing the file name can change the in-freeze skin.
设置样例
这是ForgottenCat目前的全局设置,希望对你有所帮助。
映射
- 音量+:RCTRL
- 音量-:LALT
- 返回键:RETURN
- Button 1:A
- Button 2:SPACE
- Button 3:D
- Button 4:X
- Button 5:PAGEDOWN
- Button 6:WORLD_55
- 放大手势:WORLD_5
- 缩小手势:ESCAPE
- 逆时针旋转手势:K
- 顺时针旋转手势:F1
绑定
ctrlon.cfg
emote 12
bind a "zoom+"
bind d "zoom-"
bind space "say /team 1;toggle cl_dummy 0 1;say /team 1"
bind pagedown "toggle cl_dummy_copy_moves 0 1"
bind x "exec deepfly.cfg"
bind rctrl "exec ctrloff.cfg"
bind world_5 "toggle cl_mouse_max_distance 400 2;toggle inp_mousesens 200 1"
bind return "say /spec"
ctrloff.cfg
emote 2
bind a "+left"
bind d "+right"
bind x "toggle cl_dummy 0 1"
bind pagedown "+nextweapon"
bind space "+jump"
bind rctrl "exec ctrlon.cfg"
bind lalt "exec alton.cfg"
bind return "toggle cl_overlay_entities 100 0"
deepfly.cfg
bind world_55 "+fire;+toggle cl_dummy_hammer 1 0"
bind x "exec deepflyoff.cfg"
emote 1
deepflyoff.cfg
*bind world_55 "+fire"
*bind x "exec deepfly.cfg"
*emote 12
alton.cfg
emote 12
bind d "player_name DDNET;dummy_name DDRACE"
bind x "toggle cl_dummy_resetonswitch 0 1"
bind space "say /dnd;toggle cl_dummy 0 1;say /dnd"
bind lalt "exec ctrloff.cfg"
bind rctrl "+showhookcoll"
bind return "Help yourself this is empty"
bind a "exec fastron.cfg"
bind pagedown "Help yourself this is empty"
fastron.cfg
exec ctrloff.cfg
emote 5
bind return "say /r"
结语
这就是本教程的全部内容了,感谢你的阅读!在手机或是平板上游玩DDNet甚是方便,也能给我们一个全新的体验。但是,我们不希望你仅仅因为你想展示你自己从而使用移动端。当然,手机版十分难以操作,难以设置,但是这不是向他人寻求过分帮助的理由。手机版玩家并不是残疾tee,只要你足够努力,疯狂图照样打。祝你好运,游玩愉快!