死灵书中的黑魔法 ~ 之 ~ vim resources/app/main.bundle.js
bitburner吧
全部回复
仅看楼主
level 1
qweytr_123 楼主
这是一个……非常神奇的教程
首先你需要一个神奇的程序,比如vim
理论上你可以用游戏里的vim在游戏里打开游戏源代码main.bundle.js文件并进行修改(!)
(第一步最好存成txt,如果存成js,会触发各种计算,比如那个脚本占用1.18TB内存什么的……)
wget main.bundle.js resources/app/main.bundle.txt
vim resources/app/main.bundle.txt
:s/this.intelligence_exp\+=e/this.intelligence_exp=1e300/g
:s/StockMarketCommission:1e5/StockMarketCommission:-1e9/g
:wq!
download resources/app/main.bundle.txt
(选择Bitburner/resources/app/main.bundle.js)
输入时候,记得切英文输入法,第一个英文冒号必须输入,剩下的可以复制粘贴
一切做完就可以重启游戏了。
重启游戏之后,虽然我不确定你究竟能走到哪一步,但至少你可以在华尔街呼风唤雨
2022年01月05日 15点01分 1
level 4
请问一下楼主
我下载了这个问题main.bundle.txt 打开一堆代码 需要在最后加入你写的代码吗?
2022年01月06日 03点01分 2
vim是游戏内置编辑器,:是vim命令,:s/StockMarketCommission:1e5/StockMarketCommission:-1e9/g是把证券交易所的手续费改成负数:wq!是保存并退出,最后覆盖源文件,重启游戏(或许还需要一次soft reset重新读一下StockMarketCommission的值),就可以看到改变了。
2022年01月06日 05点01分
这样的做法属于黑魔法,是hack游戏的重要组成部分。代码功底不高而使用黑魔法容易走火入魔,切记。
2022年01月06日 05点01分
@qweytr_123 哈哈 谢谢 我已经用vc-code存档修改了money [呵呵]
2022年01月06日 08点01分
level 1
qweytr_123 楼主
或许需要贴一下游戏关于黑魔法的原文:
https://github.com/danielyxie/bitburner/blob/dev/src/Exploits/Exploit.ts
The game cannot block every possible exploits. Specially since one of them is
that you can just edit your save file and that's impragmatic to prevent.
So instead we have source file minus 1. It is not obtained by destroying a
BitNode but instead it is awarded when the player finds innovative ways to break
the game, this serves 2 purpose, [one] the developpers don't have to spend time
trying to implement anti-cheat measures and [two] finding ways to break a
hacking game is very much in the spirit of the game.
Source-File minus 1 is extremely weak because it can be fully level up quickly.
2022年01月06日 05点01分 3
在不看源代码的情况下,我所知的sourceFile -1升级方式,其中一个是点击UI层,某个不可见、不可点的按钮。 需要通过脚本,修改html结构去实现,这个游戏本身是基于electron、react开发的。 还有一个是去吃一碗面就可以获得。
2022年01月06日 06点01分
@千域远山 ��面已经吃了好几碗了,就差SourceFile-1了
2022年01月06日 09点01分
@千域远山 vim是修改源代码,不是sf-1(虽然可以做sf-1,但直接改源代码更hack一些)
2022年01月08日 14点01分
1