Been looking into manually patching in compatibility between Khas' Ultra Lighting and Victor's Diagonal Movement, and I'm having some issues figuring out exactly how. To go into what I've tried so far, I've already added in diagonal-aimed light images for a flashlight to the Lights folder, so it's just a matter of getting them to actually show up during play. Looking into VDM, I saw that he designates each diagonal direction as 1, 3, 7, and 9, so I went into the preset lights in the Lantern add-on and added those numbers to the flashlight preset's ':light =>' setting, so it now reads:
I also scrolled through the KUL script to see if I could recognize any other instances that call for the player's direction, and found at line 1088 a set of LightCache[@key[x]].clone parameters (where x is the direction, so, 2, 4, 6, and 8) and added in the designated directions 1, 3, 7, and 9 there as well.
However, the script still doesn't seem to recognize these new directions, and so it only displays the 2, 4, 6, and 8 images.
I then assumed that, because I have VDM listed underneath Khas' scripts, I could just move those above it, but that also didn't work. I then thought that perhaps I could look back through VXA's core engine to try and see if I could manually add in Victor's directions in there, but had no luck locating where exactly the direction parameters are defined. After that, I tried changing the 1, 3, 7, and 9 that I had put in the flashlight preset to different combinations of 2, 4, 6, and 8, doing so by calling them (x,y), but that only returned an 'invalid number of arguments' error.
Finally, I scoured the main KUL thread to see if anyone else had asked about it, and had no luck. One person asked Khas about it directly, but it doesn't look like Khas ever got back to them.
Would anybody be able to help me figure out what I'm doing wrong?
Code:
:light => {1 => "lantern_1", 2 => "lantern_2", 3 => "lantern_3", 4 => "lantern_4", 6 => "lantern_6", 7 => "lantern_7", 8 => "lantern_8", 9 => "lantern_9"},
I also scrolled through the KUL script to see if I could recognize any other instances that call for the player's direction, and found at line 1088 a set of LightCache[@key[x]].clone parameters (where x is the direction, so, 2, 4, 6, and 8) and added in the designated directions 1, 3, 7, and 9 there as well.
However, the script still doesn't seem to recognize these new directions, and so it only displays the 2, 4, 6, and 8 images.
I then assumed that, because I have VDM listed underneath Khas' scripts, I could just move those above it, but that also didn't work. I then thought that perhaps I could look back through VXA's core engine to try and see if I could manually add in Victor's directions in there, but had no luck locating where exactly the direction parameters are defined. After that, I tried changing the 1, 3, 7, and 9 that I had put in the flashlight preset to different combinations of 2, 4, 6, and 8, doing so by calling them (x,y), but that only returned an 'invalid number of arguments' error.
Finally, I scoured the main KUL thread to see if anyone else had asked about it, and had no luck. One person asked Khas about it directly, but it doesn't look like Khas ever got back to them.
Would anybody be able to help me figure out what I'm doing wrong?