Jump to content
  • -1

Changing to "A8 MOV W0,#" doesn't work


kpba

Question

00001.thumb.png.b199139bf3eff0c64fe4b373a39fb4bf.png

public float get_BaseAttackSpeed() { }

The set_ under this class can be modified using "A8 MOV W0,#"

But get_ doesn't work

If I modify "get_BaseAttackSpeed() { }" with "A8 MOV W0,#", the character will not be able to attack (attack speed is like 0)

Please how should I modify it

 

Link to comment
Share on other sites

8 answers to this question

Recommended Posts

43 minutes ago, CmP said:

这是GG汇编器的问题,有工作的替代方案 - “~A8 MOV W0,WZR”。

在以下主题中已经提出并回答了类似的问题:

不能设置为假臂64 (#6rdlgvj0)

 

Thank you , I read that post, but my purpose is to increase the attack speed, get_ can be changed in some games, but it doesn’t seem to work here,maybe i got it wrong。

Link to comment
Share on other sites

35 minutes ago, kpba said:

Thank you , I read that post, but my purpose is to increase the attack speed, get_ can be changed in some games, but it doesn’t seem to work here,maybe i got it wrong。

better use hex

Link to comment
Share on other sites

Quote

A8 MOV W0,#

Hi @kpba, are you trying to set the float to 0 by not specifying values to "#"? You can add #0 to make it None or False.

Quote

public float get_BaseAttackSpeed() { }

Since this is Floating point, you might need to use Another instruction for Floats 32-bit:

FMOVS S0, #100.0 --float 100
Link to comment
Share on other sites

8 hours ago, kpba said:

00001.thumb.png.b199139bf3eff0c64fe4b373a39fb4bf.png

public float get_BaseAttackSpeed() { }

The set_ under this class can be modified using "A8 MOV W0,#"

But get_ doesn't work

If I modify "get_BaseAttackSpeed() { }" with "A8 MOV W0,#", the character will not be able to attack (attack speed is like 0)

Please how should I modify it

 

Setting a float using this method will only allow you to set it to a limited number of values, here are reverse hex edits for some valid values

["ARM8"] = {{
            ["hex_edits"] = "0000A852r",
            ["float_value"] = 2
        }, {
            ["hex_edits"] = "0020A852r",
            ["float_value"] = 8
        }, {
            ["hex_edits"] = "0040A852r",
            ["float_value"] = 32
        }, {
            ["hex_edits"] = "0060A852r",
            ["float_value"] = 128
        }, {
            ["hex_edits"] = "0080A852r",
            ["float_value"] = 512
        }, {
            ["hex_edits"] = "00A0A852r",
            ["float_value"] = 2048
        }, {
            ["hex_edits"] = "00C0A852r",
            ["float_value"] = 8192
        }, {
            ["hex_edits"] = "00E0A852r",
            ["float_value"] = 32768
        }, {
            ["hex_edits"] = "0000A952r",
            ["float_value"] = 131072
        }, {
            ["hex_edits"] = "0020A952r",
            ["float_value"] = 524288
        }}

Link to comment
Share on other sites

7 hours ago, MC189 said:

你好@kpba,您是否尝试通过不将值指定为“#”来将浮点数设置为 0?您可以添加 #0 以使其为“无”或“假”。

由于这是浮点型,您可能需要对浮点型 32 位使用另一条指令:

FMOVS S0, #100.0 --float 100

Thanks, changing "Attack Speed" with "FMOV S0, #" works

Link to comment
Share on other sites

13 hours ago, MC189 said:

Hi @kpba, are you trying to set the float to 0 by not specifying values to "#"? You can add #0 to make it None or False.

Since this is Floating point, you might need to use Another instruction for Floats 32-bit:

FMOVS S0, #100.0 --float 100

That work

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.