JediMindTrix Posted August 29, 2015 Share Posted August 29, 2015 For an example, Opcode Color Pulse (50): Parameter 1 can be made up of four different decimal values, one of which is effectively unused (I.E. 000, 255, 222, 219). This translates in binary to: 00000000 11111111 11011110 11011011. My question(s) are: is there a DECIMAL225 like there is a BIT1? If not, what is the best means to count these bits correctly so one knows which to set to get the colors you want? Link to comment
Jarno Mikkola Posted August 29, 2015 Share Posted August 29, 2015 My question(s) are: is there a DECIMAL225 like there is a BIT1?Just write the decimals to the RGB offsets: 0x0000 being the red, 0x0001 being the green, and 0x0002 being the blue. Link to comment
JediMindTrix Posted August 29, 2015 Author Share Posted August 29, 2015 LPF ALTER_EFFECT INT_VAR check_globals = 0 check_headers = 1 match_opcode = 142 match_dicenumber = 14 opcode = 50 parameter1 = parameter2 = 0 parameter3 = 30 dicenumber = 0 So I would set parameter1 to 0, then after this change occurs: WRITE_BYTE 0x00/0x01/0x02? Link to comment
Jarno Mikkola Posted August 29, 2015 Share Posted August 29, 2015 Or you could probably just: LPF ALTER_EFFECT SET r = SET g = SET b = INT_VAR check_globals = 0 check_headers = 1 match_opcode = 142 match_dicenumber = 14 opcode = 50 parameter1 = ~r + 256*g + 65536*b~ parameter2 = 0 parameter3 = 30 dicenumber = 0 And then write the r, g and b to what exact values you wish them to be.A small disclaimer, I haven't used the above code, so test at your own discression. Link to comment
JediMindTrix Posted September 1, 2015 Author Share Posted September 1, 2015 What do those asterisks signify? Link to comment
Jarno Mikkola Posted September 1, 2015 Share Posted September 1, 2015 What do those asterisks signify? It's the multiplication of the offset or value... you can use those in Weidu's .tp2 files, just like +, -, /, **, = etc. Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.