Map List - Possible Bug

image

I using Map List to map variable N and K

but problem output the System.Collections.Generic.List`1

I need to make a same function of this ob1 to ob2 - > How to loop on a LIST variable | OpenBullet

Please provide some sample LoliCode to reproduce, thanks. Even with example lists.

Example

VAR PWD is  = 19018103

N (ListOfStrings) = [4, 5, 3, 9, 7, 8, 6, 2, 1, 0]

K (ListOfStrings) = [#kwSf;, #H4hN;, #WdoM;, #Unsl;, #a3C5;, #LxI7;, #uTQt;, #cVqr;, #DjEz;, #Y0v1;]
#MapKeys UTILITY List "N" Map "K" -> VAR "NK" 

#SplitPWD PARSE "<PASS>" REGEX "(\\d)" "[0]" Recursive=TRUE -> VAR "PWD" 

#FormPWD FUNCTION Constant "<NK(<PWD[0]>)>;<NK(<PWD[1]>)>;<NK(<PWD[2]>)>;<NK(<PWD[3]>)>;<NK(<PWD[4]>)>;<NK(<PWD[5]>)>;<NK(<PWD[6]>)>;<NK(<PWD[7]>)>;" -> VAR "PWD"

I’ll give you an example, then you can work out the rest

BLOCK:ConstantList
  value = ["1", "2", "3", "4", "5", "6"]
  => VAR @list1
ENDBLOCK

BLOCK:ConstantList
  value = ["one", "two", "three", "four", "five", "six"]
  => VAR @list2
ENDBLOCK

BLOCK:MapLists
  list1 = @list1
  list2 = @list2
  => VAR @mapped
ENDBLOCK

BLOCK:ConstantString
  value = "12531643"
  => VAR @pass
ENDBLOCK

BLOCK:Parse
  input = @pass
  pattern = "(\\d)"
  outputFormat = "[0]"
  RECURSIVE
  MODE:Regex
  => VAR @pwd
ENDBLOCK

BLOCK:ConstantString
  value = $"<mapped[pwd[0]]>;<mapped[pwd[1]]>"
  => VAR @result
ENDBLOCK

ok, i work now. Thanks you Ruri

I edited the snippet above so you can see how to access them exactly like you did by parsing a string and then using the values from that to query the dictionary :slight_smile:

Nice, it helped a lot :slight_smile:

I need more help, problem with

    BLOCK:MapLists
  list1 = @N
  list2 = @K
  => VAR @NK
ENDBLOCK

BLOCK:Parse
LABEL:PWDFINAL
  input = $"<PWD>"
  pattern = "\\d"
  outputFormat = "[0]"
  RECURSIVE
  MODE:Regex
  => VAR @PWDFINAL
ENDBLOCK

BLOCK:ConstantString
  value = $"<NK[PWD[0]]>;<NK[PWD[1]]>;<NK[PWD[2]]>;<NK[PWD[3]]>;<NK[PWD[4]]>;<NK[PWD[5]]>;<NK[PWD[6]]>;<NK[PWD[7]]>;"
  => VAR @PWDFINALZ
ENDBLOCK

Error

[IDLE] CompilationErrorException: (27,47): error CS1503: Argument 1: cannot convert from 'char' to 'string'

You need to use PWDFINAL not PWD in the last block.

Sucessfull :slight_smile: I love you Ruri.