All pastes #837463 Raw Edit

Something

public lua v1 · immutable
#837463 ·published 2007-12-29 18:17 UTC
rendered paste body
-- Dark Crusade units that can see through stealth (i.e. keen_sight_radius > 0)-- Found in file Data\attrib\ebps\races\chaos\structures\chaos_mine_field.rgd :GameData["sight_ext"]["keen_sight_radius"] = 6-- Found in file Data\attrib\ebps\races\chaos\structures\chaos_turret_bolter.rgd :GameData["sight_ext"]["keen_sight_radius"] = 35-- Found in file Data\attrib\ebps\races\chaos\structures\chaos_turret_missile_launcher_sp.rgd :GameData["sight_ext"]["keen_sight_radius"] = 35-- Found in file Data\attrib\ebps\races\chaos\troops\chaos_sorcerer.rgd :GameData["sight_ext"]["keen_sight_radius"] = 30-- Found in file Data\attrib\ebps\races\chaos\troops\chaos_sorcerer_advance_sp.rgd :GameData["sight_ext"]["keen_sight_radius"] = 30-- Found in file Data\attrib\ebps\races\chaos\troops\chaos_sorcerer_stronghold_sp.rgd :GameData["sight_ext"]["keen_sight_radius"] = 30-- Found in file Data\attrib\ebps\races\chaos\troops\chaos_sorcerer_torment_sp.rgd :GameData["sight_ext"]["keen_sight_radius"] = 30-- Found in file Data\attrib\ebps\races\eldar\structures\eldar_mine_field.rgd :GameData["sight_ext"]["keen_sight_radius"] = 6-- Found in file Data\attrib\ebps\races\eldar\structures\eldar_support_platform_cannon_sp.rgd :GameData["sight_ext"]["keen_sight_radius"] = 35-- Found in file Data\attrib\ebps\races\eldar\structures\eldar_support_platform_scatterlaser.rgd :GameData["sight_ext"]["keen_sight_radius"] = 35-- Found in file Data\attrib\ebps\races\eldar\troops\eldar_harlequins.rgd :GameData["sight_ext"]["keen_sight_radius"] = 35-- Found in file Data\attrib\ebps\races\eldar\troops\eldar_warlock.rgd :GameData["sight_ext"]["keen_sight_radius"] = 30-- Found in file Data\attrib\ebps\races\eldar\troops\eldar_warlock_seer.rgd :GameData["sight_ext"]["keen_sight_radius"] = 30-- Found in file Data\attrib\ebps\races\eldar\troops\eldar_warlock_seer_advance_sp.rgd :GameData["sight_ext"]["keen_sight_radius"] = 30-- Found in file Data\attrib\ebps\races\guard\structures\guard_mines.rgd :GameData["sight_ext"]["keen_sight_radius"] = 6-- Found in file Data\attrib\ebps\races\guard\structures\guard_turret_heavy_bolter.rgd :GameData["sight_ext"]["keen_sight_radius"] = 40-- Found in file Data\attrib\ebps\races\guard\structures\guard_turret_missile_launcher_sp.rgd :GameData["sight_ext"]["keen_sight_radius"] = 40-- Found in file Data\attrib\ebps\races\guard\troops\guard_leaders_psyker.rgd :GameData["sight_ext"]["keen_sight_radius"] = 30-- Found in file Data\attrib\ebps\races\guard\troops\guard_leaders_psyker_advance_sp.rgd :GameData["sight_ext"]["keen_sight_radius"] = 30-- Found in file Data\attrib\ebps\races\guard\troops\guard_leaders_psyker_command_squad.rgd :GameData["sight_ext"]["keen_sight_radius"] = 30-- Found in file Data\attrib\ebps\races\guard\troops\guard_leaders_psyker_command_squad_advance_sp.rgd :GameData["sight_ext"]["keen_sight_radius"] = 30-- Found in file Data\attrib\ebps\races\guard\troops\guard_leaders_psyker_sp_mdc5.rgd :GameData["sight_ext"]["keen_sight_radius"] = 30-- Found in file Data\attrib\ebps\races\necrons\structures\necron_turret.rgd :GameData["sight_ext"]["keen_sight_radius"] = 35-- Found in file Data\attrib\ebps\races\necrons\structures\necron_turret_missile_sp.rgd :GameData["sight_ext"]["keen_sight_radius"] = 35-- Found in file Data\attrib\ebps\races\necrons\troops\necron_builder_scarab.rgd :GameData["sight_ext"]["keen_sight_radius"] = 35-- Found in file Data\attrib\ebps\races\necrons\troops\necron_builder_scarab_advance_sp.rgd :GameData["sight_ext"]["keen_sight_radius"] = 35-- Found in file Data\attrib\ebps\races\necrons\troops\necron_wraith.rgd :GameData["sight_ext"]["keen_sight_radius"] = 20-- Found in file Data\attrib\ebps\races\necrons\troops\necron_wraith_advance_sp.rgd :GameData["sight_ext"]["keen_sight_radius"] = 20-- Found in file Data\attrib\ebps\races\npc\structures\npc_infiltration_spotter.rgd :GameData["sight_ext"]["keen_sight_radius"] = 12-- Found in file Data\attrib\ebps\races\orks\structures\ork_mine_field.rgd :GameData["sight_ext"]["keen_sight_radius"] = 6-- Found in file Data\attrib\ebps\races\orks\structures\ork_waagh_banner.rgd :GameData["sight_ext"]["keen_sight_radius"] = 25-- Found in file Data\attrib\ebps\races\orks\structures\ork_waagh_banner_missile_sp.rgd :GameData["sight_ext"]["keen_sight_radius"] = 25-- Found in file Data\attrib\ebps\races\orks\structures\ork_waagh_banner_turret_sp.rgd :GameData["sight_ext"]["keen_sight_radius"] = 25-- Found in file Data\attrib\ebps\races\orks\troops\ork_armored_nob.rgd :GameData["sight_ext"]["keen_sight_radius"] = 25-- Found in file Data\attrib\ebps\races\orks\troops\ork_armored_nob_advance_sp.rgd :GameData["sight_ext"]["keen_sight_radius"] = 25-- Found in file Data\attrib\ebps\races\orks\troops\ork_mek_boy.rgd :GameData["sight_ext"]["keen_sight_radius"] = 20-- Found in file Data\attrib\ebps\races\orks\troops\ork_mek_boy_advance_sp.rgd :GameData["sight_ext"]["keen_sight_radius"] = 20-- Found in file Data\attrib\ebps\races\orks\troops\ork_warboss.rgd :GameData["sight_ext"]["keen_sight_radius"] = 25-- Found in file Data\attrib\ebps\races\orks\troops\ork_warboss_advance_sp.rgd :GameData["sight_ext"]["keen_sight_radius"] = 25-- Found in file Data\attrib\ebps\races\orks\troops\ork_warboss_sp_md2.rgd :GameData["sight_ext"]["keen_sight_radius"] = 25-- Found in file Data\attrib\ebps\races\orks\troops\ork_warboss_stronghold_sp.rgd :GameData["sight_ext"]["keen_sight_radius"] = 25-- Found in file Data\attrib\ebps\races\space_marines\structures\space_marine_mine_field.rgd :GameData["sight_ext"]["keen_sight_radius"] = 6-- Found in file Data\attrib\ebps\races\space_marines\structures\space_marine_turret_bolter.rgd :GameData["sight_ext"]["keen_sight_radius"] = 35-- Found in file Data\attrib\ebps\races\space_marines\structures\space_marine_turret_missile_sp.rgd :GameData["sight_ext"]["keen_sight_radius"] = 35-- Found in file Data\attrib\ebps\races\space_marines\troops\evil_librarian.rgd :GameData["sight_ext"]["keen_sight_radius"] = 30-- Found in file Data\attrib\ebps\races\space_marines\troops\librarian.rgd :GameData["sight_ext"]["keen_sight_radius"] = 30-- Found in file Data\attrib\ebps\races\space_marines\troops\librarian_advance_sp.rgd :GameData["sight_ext"]["keen_sight_radius"] = 30-- Found in file Data\attrib\ebps\races\space_marines\troops\librarian_stronghold_sp.rgd :GameData["sight_ext"]["keen_sight_radius"] = 30-- Found in file Data\attrib\ebps\races\space_marines\troops\skull_probe.rgd :GameData["sight_ext"]["keen_sight_radius"] = 30-- Found in file Data\attrib\ebps\races\tau\troops\tau_troop_clones\tau_pathfinder_clone.rgd :GameData["sight_ext"]["keen_sight_radius"] = 30-- Found in file Data\attrib\ebps\races\tau\troops\tau_ethereal.rgd :GameData["sight_ext"]["keen_sight_radius"] = 30-- Found in file Data\attrib\ebps\races\tau\troops\tau_ethereal_stronghold_sp.rgd :GameData["sight_ext"]["keen_sight_radius"] = 30-- Found in file Data\attrib\ebps\races\tau\troops\tau_pathfinder.rgd :GameData["sight_ext"]["keen_sight_radius"] = 30-- Found in file Data\attrib\ebps\races\tau\troops\tau_pathfinder_advance_sp.rgd :GameData["sight_ext"]["keen_sight_radius"] = 30-- Found in file Data\attrib\ebps\races\tau\troops\tau_vespid_auxiliary.rgd :GameData["sight_ext"]["keen_sight_radius"] = 30-- Found in file Data\attrib\ebps\races\tau\troops\tau_vespid_elders_advance_sp.rgd :GameData["sight_ext"]["keen_sight_radius"] = 30-- Found in file Data\attrib\ebps\races\tau\troops\tau_vespid_strain_leader.rgd :GameData["sight_ext"]["keen_sight_radius"] = 30-- Found in file Data\attrib\ebps\races\tau\troops\tau_vespid_strain_leader_advance_sp.rgd :GameData["sight_ext"]["keen_sight_radius"] = 30-- Macro to generate this list:-- Macro configuration:key_to_find = "keen_sight_radius"max_examples_to_find = math.huge-- Each rgd is passed into this function:function each_file(rgd)	current_file_name = rgd.path -- save the filename of the RGD for later		-- Iterate over all root tables in the RGD (eg. GameData)	for key,val in rgd do		search_table(val,key,"Inherit",key)	endend-- Each table in each RGD is passed into this function:-- 'table' => the table being searched-- 'prefix' => the identifier of the table (eg. "GameData["some_ext"]["modifiers"]")-- 'func' => either "Reference" or "Inherit"-- 'tname' => the name of the table (eg. "modifiers")function search_table(table, prefix, func, tname)	if tname == key_to_find then -- If the table itself matches the search key:		found_one()		print(prefix," = ",func,"([[",table["$REF"] or "","]])")	end	for key,val in table do -- Look through all entries in the table:		if type(val) == "userdata" then -- Recursively search child tables:			search_table(val,prefix .. "[\"" .. key .. "\"]","Reference",key)			elseif key == key_to_find and val > 0 then			found_one()			if type(val) ~= "string" then				print(prefix,"[\"",key,"\"] = ",val)			else				print(prefix,"[\"",key,"\"] = [[",val,"]]")			end		end	endend-- Whenever an example is found, this function is calledfunction found_one()	print("-- Found in file ",current_file_name," :")	if (max_examples_to_find or 0) > 0 then		max_examples_to_find = max_examples_to_find - 1		if max_examples_to_find < 1 then			each_file = nil		end	endend