Welcome guest, is this your first visit? Click the "Create Account" button now to join.
Results 1 to 10 of 29

Threaded View

  1. #3
    Master LUNA: A new step into the unknown of scriptsLUNA: A new step into the unknown of scripts
    Join Date
    Nov 2017
    Location
    europa
    Posts
    81
    Rep Power
    161

    Default

    You are right the right format is the second, this is a bug caused by the decryption algorithm that Djeman used to create the Jigolua software and which does not take into account an additional specificity related to the decoding of LUNA .

    we actually have two parameters that appear using it:

    self.SetupSearchCenter [self.selectedCenterType] (self.SetupSearchCenter, self)

    by analyzing this sequence given by jigolua

    function OneBoxSearch: SetupQuery (filter)
    self.query = sc_copy_table (self.defaultQuery)
    self.query.filter = filter or ui.keyboard: InputValue ()
    self.query.limit = self.maxResult
    self.SetupSearchCenter [self.selectedCenterType] (self.SetupSearchCenter, self)
    self.query.poi.providerIds = self: GetQueryProviders ()
    self.query.poi.containerIds = self.selectedPoiContainers
    self.query.poi.nameOnly = self.poiIsNameOnly
    end

    we immediately notice that 'self' must in fact represent the 'OneBoxSearch' entity

    for my part, on the two parameters listed, I kept only the first one whereas it was the one he was going to eliminate
    Spoiler: Click to see content

    and this is what we find from the disassembly
    % function <jgrulmvkm / hg_search_base.lua: 359,362> (11 instructions, 44 bytes at function # 17)
    1 param, 4 slot, 0 upvalue, 1 local, 7 constant, 0 function
    1 [360]: 0x46004000: GETTABLE 1 0 -1; R1: = R0 ["SetupSearchCenter"]
    2 [360]: 0x85400000: GETGLOBAL 2 -2; R2: = Gbl ["EOneBoxSearchCenterTypes"]
    3 [360]: 0x86804001: GETTABLE 2 2 -3; R2: = R2 ["Global"]
    4 [360]: 0x86C04001: GETTABLE 2 2 -4; R2: = R2 ["value"]
    5 [360]: 0x4B808000: SELF 1 1 2; R2: = R1; R1: = R1 [R2]
    6 [360]: 0xC0000000: MOVE 3 0; R3: = R0
    7 [360]: 0x5C40A001: CALL 1 3129; R1, ...: = R1 (R2, R3)
    8 [361]: 0x46004100: GETTABLE 1 0 -5; R1: = R0 ["query"]
    9 [361]: 0x86804100: GETTABLE 2 0 -7; R2: = R0 ["nearbySearchRange"]
    10 [361]: 0x49808082: SETTABLE 1 -6 2; R1 ["maxDistance"]: = R2
    11 [362]: 0x1E008000: RETURN 0 1; return

    constants (7) for function # 17:
    1 "SetupSearchCenter"
    2 "EOneBoxSearchCenterTypes"
    3 "Global"
    4 "value"
    5 "query"
    6 "maxDistance"
    7 "nearbySearchRange"

    locals (1) for function # 17:
    0 self 1 11 ==> as R0
    which is the function
    Code:
    Please Login or Register to see the links
    and not this
    Code:
    Please Login or Register to see the links
    or this
    Code:
    Please Login or Register to see the links
    in these cases the erroneous representation would be worth

    Code:
    Please Login or Register to see the links
    when in reality the correct code would be
    Code:
    Please Login or Register to see the links


    the content of the following code should be suitable to replace that of the lua
    Spoiler: hg_search_base.lua
    Code:
    Please Login or Register to see the links


    Thank you for reporting this bug, I think I identified its origin, I must check that it does not affect other lua files in the pack, otherwise in which case I will repost the corrections for all the archives as attachments to the first message

    the list of impacted files is still quite small:

    listseparator.lua, hg_search_base.lua, shop.lua, shop_enums.lua vr_ovde_parser.lua and speedcam.lua


    A complementary attached list is available in post # 15
    [Only registered and activated users can see links. ]
    Attached Files Attached Files
    • This post requires you to click the "LIKE this post" button to see Attachments.
    Last edited by lunapark; 20th July 2021 at 01:23 AM.

 

 

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •