I want to prevent Innershade and Rukraria from overwriting mapicons.bam for their respective new locations in the worldmap. During discussions with Nightfarer over PMs, he pointed me to this thread and specifically, this TPA which would enable me to do what I wanted.
I tried using the code for Rukraria and the issue is I can't seem to make it work.. I get this error:
ERROR: icon_index specified (30) outside of range 0 to 15 cycles in rukrakia/WMP/mapicon1.bam; no map icons added
Thing is, if I open Rukraria's mapicons.bam in NearInfinity, I properly see 30 cycles in it I'm not versed in the BAM structure at the moment and not too inclined to get into its details at the moment so need help.
The code I'm using is this:
INCLUDE ~rukrakia/LIB/add_map_icons.tpa~ LAUNCH_ACTION_FUNCTION ~ADD_MAP_ICONS~ INT_VAR icon_index = 30 STR_VAR path_to_icons = ~rukrakia/WMP/mapicon1.bam~ RET icons_added = icons_added new_icon_index = new_icon_index END PRINT ~%icons_added% icon(s) added, new icon index is %new_icon_index%~
I have attached the faulty version of the mod to this post for anyone to try further. (these are only changed files to keep the archive small - you'll need the main Rukraria package from here) Thanks in advance!
PS: I know this should be in the Help forums but come on - this is the only active place to be in SHS right now