- 好友
- 6
- 在线时间
- 197 小时
- 最后登录
- 2024-11-28
骑士
自由骑士 联机ID:8080
- UID
- 1659112
- 第纳尔
- 1588
- 精华
- 0
- 互助
- 52
- 荣誉
- 1
- 贡献
- 0
- 魅力
- 115
- 注册时间
- 2013-11-8
鲜花( 67) 鸡蛋( 0)
|
原帖:http://bbs.mountblade.com.cn/thread-2039625-1-1.html由于没有泡菜源码,我下载了一个反编译软件:MBCodeEditor,但是反编译出来的文件我拿去编译报错,在网上也没找到解决方案
突然发现里面可以把py代码转为txt机器码,我就试了下
我先在script.txt里找game_get_upgrade_xp,找到目标
然后根据R大的代码:
("game_get_upgrade_xp",
[
(store_script_param_1, ":troop_id"),
(assign, ":needed_upgrade_xp", 0),
(store_character_level, ":troop_level", ":troop_id"),
(try_for_range, ":upgrade_path", 0, 2),
(troop_get_upgrade_troop, ":upgrade_troop", ":troop_id", ":upgrade_path"),
(gt, ":upgrade_troop", 0),
(store_character_level, ":upgrade_troop_level", ":upgrade_troop"),
(gt, ":upgrade_troop_level", ":troop_level"),
(get_level_boundary, ":cur_level_boundary", ":troop_level"),
(get_level_boundary, ":upgrade_level_boundary", ":upgrade_troop_level"),
(store_sub, ":xp_diff", ":upgrade_level_boundary", ":cur_level_boundary"),
(val_add, ":needed_upgrade_xp", ":xp_diff"),
(eq, ":upgrade_path", 1),
(val_div, ":needed_upgrade_xp", 2),
(try_end),
(val_mul, ":needed_upgrade_xp", 6),
(val_div, ":needed_upgrade_xp", 800),
(val_max, ":needed_upgrade_xp", 30),
(assign, reg0, ":needed_upgrade_xp"),
(set_trigger_result, reg0),
]),
转为了txt代码
21 1 1224979098644774912 2133 2 1224979098644774913 0 2171 2 1224979098644774914 1224979098644774912 6 3 1224979098644774915 0 2 1561 3 1224979098644774916 1224979098644774912 1224979098644774915 32 2 1224979098644774916 0 2171 2 1224979098644774917 1224979098644774916 32 2 1224979098644774917 1224979098644774914 991 2 1224979098644774918 1224979098644774914 991 2 1224979098644774919 1224979098644774917 2121 3 1224979098644774920 1224979098644774919 1224979098644774918 2105 2 1224979098644774913 1224979098644774920 31 2 1224979098644774915 1 2108 2 1224979098644774913 2 3 0 2107 2 1224979098644774913 6 2108 2 1224979098644774913 800 2111 2 1224979098644774913 30 2133 2 72057594037927936 1224979098644774913 2075 1 72057594037927936
把上面的换了上去
保存后可以正常打开游戏
但不知道有没有起效果
|
|