Skip to content

3.6.1 When decompiling the script, the label fails to display normally #99

Closed

Description

@XMDS

@x87 I noticed at compile time. The label is compiled into a numeric offset
A simple example:

{$CLEO .cs}
0000: NOP
jump @1

:1
xxxx() 
0001: wait 0 ms 
00D6: if and
0256:   player $PLAYER_CHAR defined 
03EE:   player $PLAYER_CHAR controllable 
004D: jump_if_false @1 
0226: 0@ = actor $PLAYER_ACTOR health 
0AD1: show_formatted_text_highpriority "HEALTH: %d" time 3000 0@ 
0A93: terminate_this_custom_script 

:xxxx
015D: set_gamespeed 1.0
return

Decompile:

{$CLEO .cs}

0000: NOP 
0002: jump -9 
0050: gosub -72 
0001: wait 0 ms 
00D6: if and
0256:   player $PLAYER_CHAR defined 
03EE:   player $PLAYER_CHAR controllable 
004D: jump_if_false -9 
0226: 0@ = actor $PLAYER_ACTOR health 
0AD1: show_formatted_text_highpriority "HEALTH: %D" time 3000 0@ 
0A93: terminate_this_custom_script 
015D: set_gamespeed 1.0 
0051: return

Activity

  1. XMDS commented on Nov 29, 2020

    @XMDS
    MemberAuthor

    @x87 It seems to be related to this update, there is no such problem in 3.6.0
    #81

  2. added
    priority:p1
    type:bug
    on Nov 29, 2020
  3. x87 commented on Nov 29, 2020

    @x87
    Collaborator
  4. added this to the v3.6.2 milestone on Nov 29, 2020
  5. wmysterio commented on Nov 29, 2020

    @wmysterio

    please test with this exe

    Work.

  6. x87 commented on Nov 29, 2020

    @x87
    Collaborator

    Fixed in 3.6.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority:p1scope:disassemblertype:bug

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions