content
stringlengths
5
1.05M
return { source = { type = 'dist', location = 'https://dbus.freedesktop.org/releases/dbus/dbus-1.10.14.tar.gz', sha256sum = '23238f70353e38ce5ca183ebc9525c0d97ac00ef640ad29cf794782af6e6a083' }, patches = { 'capi-dbus-1-pc.patch', 'capi-dbus-add-send-with-reply-set-notify.patch', 'capi-dbus-add-support-for-custom-marshalling.patch', 'capi-dbus-block-acquire-io-path-on-send.patch', 'capi-dbus-correct-dbus-connection-block-pending-call.patch', 'capi-dbus-send-with-reply-and-block-delete-reply-on-error.patch', }, build = { type = 'gnu', -- fails to find lexpat on target otherwise configure_needs_install_dir = true, options = { '--enable-shared', '--disable-static', '--disable-compiler-coverage', '--disable-xml-docs', '--disable-doxygen-docs', '--disable-ducktype-docs', '--enable-abstract-sockets', '--disable-selinux', '--disable-apparmor', '--disable-libaudit', '--enable-inotify', '--disable-kqueue', '--disable-console-owner-file', '--disable-launchd', '--disable-systemd', '--disable-embedded-tests', '--disable-modular-tests', '--disable-tests', '--disable-installed-tests', '--enable-epoll', '--disable-x11-autolaunch', '--disable-Werror', '--disable-stats', '--without-x', } }, install = { libs = { 'dbus-1' } }, requires = { 'expat' }, }
require("__5dim_core__.lib.resources.generation-masher") local crafting = 2 local modules = 2 local energy = 360 local emisions = 1 local techCount = 250 -- Electric furnace 01 genMasher { number = "01", subgroup = "masher", craftingSpeed = crafting, moduleSlots = modules, energyUsage = energy, new = true, order = "a", ingredients = { {"steel-plate", 10}, {"electronic-circuit", 7}, {"iron-gear-wheel", 10} }, pollution = emisions, nextUpdate = "5d-masher-02", tech = { number = 1, count = techCount * 1, packs = { {"automation-science-pack", 1}, {"logistic-science-pack", 1}, {"chemical-science-pack", 1} }, prerequisites = { "advanced-material-processing-2" } } } crafting = crafting + 2 modules = modules + 1 energy = energy + 180 emisions = emisions + 0.75 -- Electric furnace 02 genMasher { number = "02", subgroup = "masher", craftingSpeed = crafting, moduleSlots = modules, energyUsage = energy, new = true, order = "b", ingredients = { {"5d-masher-01", 1}, {"steel-plate", 10}, {"electronic-circuit", 5}, {"iron-gear-wheel", 10} }, pollution = emisions, nextUpdate = "5d-masher-03", tech = { number = 2, count = techCount * 2, packs = { {"automation-science-pack", 1}, {"logistic-science-pack", 1}, {"chemical-science-pack", 1} }, prerequisites = { "5d-masher-1", "advanced-material-processing-3" } } } crafting = crafting + 2 energy = energy + 180 emisions = emisions + 0.75 -- Electric furnace 03 genMasher { number = "03", subgroup = "masher", craftingSpeed = crafting, moduleSlots = modules + 1, energyUsage = energy, new = true, order = "c", ingredients = { {"5d-masher-02", 1}, {"steel-plate", 10}, {"advanced-circuit", 3}, {"iron-gear-wheel", 10} }, pollution = emisions, nextUpdate = "5d-masher-04", tech = { number = 3, count = techCount * 3, packs = { {"automation-science-pack", 1}, {"logistic-science-pack", 1}, {"chemical-science-pack", 1}, {"production-science-pack", 1} }, prerequisites = { "5d-masher-2", "production-science-pack", "advanced-material-processing-4" } } } crafting = crafting + 2 modules = modules + 1 energy = energy + 180 emisions = emisions + 0.75 -- Electric furnace 04 genMasher { number = "04", subgroup = "masher", craftingSpeed = crafting, moduleSlots = modules, energyUsage = energy, new = true, order = "d", ingredients = { {"5d-masher-03", 1}, {"steel-plate", 10}, {"advanced-circuit", 3}, {"iron-gear-wheel", 10} }, pollution = emisions, nextUpdate = "5d-masher-05", tech = { number = 4, count = techCount * 4, packs = { {"automation-science-pack", 1}, {"logistic-science-pack", 1}, {"chemical-science-pack", 1}, {"production-science-pack", 1} }, prerequisites = { "5d-masher-3", "advanced-material-processing-5" } } } crafting = crafting + 2 energy = energy + 180 emisions = emisions + 0.75 -- Electric furnace 05 genMasher { number = "05", subgroup = "masher", craftingSpeed = crafting, moduleSlots = modules + 1, energyUsage = energy, new = true, order = "e", ingredients = { {"5d-masher-04", 1}, {"steel-plate", 10}, {"advanced-circuit", 3}, {"iron-gear-wheel", 10}, {"speed-module", 1} }, pollution = emisions, nextUpdate = "5d-masher-06", tech = { number = 5, count = techCount * 5, packs = { {"automation-science-pack", 1}, {"logistic-science-pack", 1}, {"chemical-science-pack", 1}, {"production-science-pack", 1} }, prerequisites = { "5d-masher-4", "advanced-material-processing-6" } } } crafting = crafting + 2 modules = modules + 1 energy = energy + 180 emisions = emisions + 0.75 -- Electric furnace 06 genMasher { number = "06", subgroup = "masher", craftingSpeed = crafting, moduleSlots = modules, energyUsage = energy, new = true, order = "f", ingredients = { {"5d-masher-05", 1}, {"steel-plate", 10}, {"advanced-circuit", 3}, {"iron-gear-wheel", 10}, {"productivity-module", 1} }, pollution = emisions, nextUpdate = "5d-masher-07", tech = { number = 6, count = techCount * 6, packs = { {"automation-science-pack", 1}, {"logistic-science-pack", 1}, {"chemical-science-pack", 1}, {"production-science-pack", 1} }, prerequisites = { "5d-masher-5", "advanced-material-processing-7" } } } crafting = crafting + 2 energy = energy + 180 emisions = emisions + 0.75 -- Electric furnace 07 genMasher { number = "07", subgroup = "masher", craftingSpeed = crafting, moduleSlots = modules + 1, energyUsage = energy, new = true, order = "g", ingredients = { {"5d-masher-06", 1}, {"steel-plate", 10}, {"processing-unit", 5}, {"iron-gear-wheel", 10}, {"speed-module-2", 1} }, pollution = emisions, nextUpdate = "5d-masher-08", tech = { number = 7, count = techCount * 7, packs = { {"automation-science-pack", 1}, {"logistic-science-pack", 1}, {"chemical-science-pack", 1}, {"production-science-pack", 1} }, prerequisites = { "5d-masher-6", "advanced-material-processing-8" } } } crafting = crafting + 2 modules = modules + 1 energy = energy + 180 emisions = emisions + 0.75 -- Electric furnace 08 genMasher { number = "08", subgroup = "masher", craftingSpeed = crafting, moduleSlots = modules, energyUsage = energy, new = true, order = "h", ingredients = { {"5d-masher-07", 1}, {"steel-plate", 10}, {"processing-unit", 5}, {"iron-gear-wheel", 10}, {"productivity-module-2", 1} }, pollution = emisions, nextUpdate = "5d-masher-09", tech = { number = 8, count = techCount * 8, packs = { {"automation-science-pack", 1}, {"logistic-science-pack", 1}, {"chemical-science-pack", 1}, {"production-science-pack", 1}, {"utility-science-pack", 1} }, prerequisites = { "5d-masher-7", "utility-science-pack", "advanced-material-processing-9" } } } crafting = crafting + 2 energy = energy + 180 emisions = emisions + 0.75 -- Electric furnace 09 genMasher { number = "09", subgroup = "masher", craftingSpeed = crafting, moduleSlots = modules + 1, energyUsage = energy, new = true, order = "i", ingredients = { {"5d-masher-08", 1}, {"steel-plate", 10}, {"low-density-structure", 2}, {"iron-gear-wheel", 10}, {"speed-module-3", 1} }, pollution = emisions, nextUpdate = "5d-masher-10", tech = { number = 9, count = techCount * 9, packs = { {"automation-science-pack", 1}, {"logistic-science-pack", 1}, {"chemical-science-pack", 1}, {"production-science-pack", 1}, {"utility-science-pack", 1} }, prerequisites = { "5d-masher-8", "advanced-material-processing-10" } } } crafting = crafting + 2 modules = modules + 1 energy = energy + 180 emisions = emisions + 0.75 -- Electric furnace 10 genMasher { number = "10", subgroup = "masher", craftingSpeed = crafting, moduleSlots = modules + 1, energyUsage = energy, new = true, order = "j", ingredients = { {"5d-masher-09", 1}, {"steel-plate", 10}, {"low-density-structure", 2}, {"iron-gear-wheel", 10}, {"productivity-module-3", 1} }, pollution = emisions, tech = { number = 10, count = techCount * 10, packs = { {"automation-science-pack", 1}, {"logistic-science-pack", 1}, {"chemical-science-pack", 1}, {"production-science-pack", 1}, {"utility-science-pack", 1} }, prerequisites = { "5d-masher-9", "advanced-material-processing-11" } } }
Citizen.CreateThread(function() while not ESX do TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end) Citizen.Wait(500) end end) local isNearPump = false local isFueling = false local currentFuel = 0.0 local currentCost = 0.0 local currentCash = 1000 local fuelSynced = false local inBlacklisted = false local display = false RegisterNUICallback("exit", function(data) isFueling = false SetDisplay(false) end) RegisterNUICallback("main", function(data) local vehicle = GetPlayersLastVehicle() local ped = PlayerPedId() TriggerEvent('lucky_tankstelle:refuelFromPump', isNearPump, ped, vehicle) end) RegisterNUICallback("error", function(data) SetDisplay(false) end) function SetDisplay(bool) display = bool SetNuiFocus(bool, bool) SendNUIMessage({ type = "ui", status = bool, name = GetCurrentResourceName(), locale = Config.Locale }) end Citizen.CreateThread(function() while display do Citizen.Wait(0) DisableControlAction(0, 1, display) DisableControlAction(0, 2, display) DisableControlAction(0, 142, display) DisableControlAction(0, 18, display) DisableControlAction(0, 322, display) DisableControlAction(0, 106, display) end end) function getFuelSync(vehicle, cb) ESX.TriggerServerCallback("lucky_tankstelle:sync", function(fuel) if fuel then SetFuel(vehicle, fuel) cb(fuel) else SetFuel(vehicle, GetFuel(vehicle)) cb(false) end end, GetVehicleNumberPlateText(vehicle)) end function ManageFuelUsage(vehicle) if not DecorExistOn(vehicle, Config.FuelDecor) then local haveFuel = getFuelSync(vehicle, function(status) if status ~= false then SetFuel(vehicle, status) else SetFuel(vehicle, Config.StandardFuel) end end) elseif not fuelSynced then local haveFuel = getFuelSync(vehicle, function(status) if status then SetFuel(vehicle, status) else SetFuel(vehicle, GetFuel(vehicle)) end end) fuelSynced = true end if IsVehicleEngineOn(vehicle) then SetFuel(vehicle, GetVehicleFuelLevel(vehicle) - Config.FuelUsage[Round(GetVehicleCurrentRpm(vehicle), 1)] * (Config.Classes[GetVehicleClass(vehicle)] or 1.0) / 10) end end Citizen.CreateThread(function() DecorRegister(Config.FuelDecor, 1) for index = 1, #Config.Blacklist do if type(Config.Blacklist[index]) == 'string' then Config.Blacklist[GetHashKey(Config.Blacklist[index])] = true else Config.Blacklist[Config.Blacklist[index]] = true end end for index = #Config.Blacklist, 1, -1 do table.remove(Config.Blacklist, index) end while true do Citizen.Wait(1000) local ped = PlayerPedId() if IsPedInAnyVehicle(ped) then local vehicle = GetVehiclePedIsIn(ped) if Config.Blacklist[GetEntityModel(vehicle)] then inBlacklisted = true else inBlacklisted = false end if not inBlacklisted and GetPedInVehicleSeat(vehicle, -1) == ped then ManageFuelUsage(vehicle) Citizen.Wait(200) TriggerServerEvent("lucky_tankstelle:save", GetVehicleFuelLevel(vehicle), GetVehicleNumberPlateText(vehicle)) end else if fuelSynced then fuelSynced = false end if inBlacklisted then inBlacklisted = false end end end end) Citizen.CreateThread(function() while true do Citizen.Wait(250) local pumpObject, pumpDistance = FindNearestFuelPump() if pumpDistance < 2.5 then isNearPump = pumpObject ESX.TriggerServerCallback("lucky_tankstelle:money") else isNearPump = false Citizen.Wait(math.ceil(pumpDistance * 20)) end end end) Citizen.CreateThread(function() while true do Citizen.Wait(1000) local pumpObject, pumpDistance = FindNearestFuelPump() if pumpDistance < 2.5 then isNearPump = pumpObject local vehicle = GetPlayersLastVehicle() currentFuel = Round(GetVehicleFuelLevel(vehicle),1) SendNUIMessage({ type = "anzahl", current = currentFuel }) else Citizen.Wait(math.ceil(pumpDistance * 20)) end end end) RegisterNetEvent("lucky_tankstelle:setMoney") AddEventHandler("lucky_tankstelle:setMoney", function(money) currentCash = money end) AddEventHandler('lucky_tankstelle:startFuelUpTick', function(pumpObject, ped, vehicle) currentFuel = GetVehicleFuelLevel(vehicle) while isFueling do Citizen.Wait(500) local oldFuel = DecorGetFloat(vehicle, Config.FuelDecor) local fuelToAdd = math.random(10, 20) / 10.0 local extraCost = fuelToAdd / 1.5 * Config.CostMultiplier if not pumpObject then if GetAmmoInPedWeapon(ped, 883325847) - fuelToAdd * 100 >= 0 then currentFuel = oldFuel + fuelToAdd SetPedAmmo(ped, 883325847, math.floor(GetAmmoInPedWeapon(ped, 883325847) - fuelToAdd * 100)) else isFueling = false end else currentFuel = oldFuel + fuelToAdd end if currentFuel > 100.0 then currentFuel = 100.0 isFueling = false end currentCost = currentCost + extraCost SetFuel(vehicle, currentFuel) TriggerServerEvent("lucky_tankstelle:save", currentFuel, GetVehicleNumberPlateText(vehicle)) end if pumpObject then TriggerServerEvent('lucky_tankstelle:paybill', currentCost) end currentCost = 0.0 end) AddEventHandler('lucky_tankstelle:refuelFromPump', function(pumpObject, ped, vehicle) TaskTurnPedToFaceEntity(ped, vehicle, 1000) Citizen.Wait(1000) SetCurrentPedWeapon(ped, -1569615261, true) LoadAnimDict("timetable@gardener@filling_can") TaskPlayAnim(ped, "timetable@gardener@filling_can", "gar_ig_5_filling_can", 2.0, 8.0, -1, 50, 0, 0, 0, 0) TriggerEvent('lucky_tankstelle:startFuelUpTick', pumpObject, ped, vehicle) while isFueling do for _, controlIndex in pairs(Config.DisableKeys) do DisableControlAction(0, controlIndex) end local vehicleCoords = GetEntityCoords(vehicle) if pumpObject then local stringCoords = GetEntityCoords(pumpObject) local extraString = "" SendNUIMessage({ type = "anzahl", current = Round(currentFuel, 1) }) SendNUIMessage({ type = "bill", bill = Round(currentCost, 1), }) end if not IsEntityPlayingAnim(ped, "timetable@gardener@filling_can", "gar_ig_5_filling_can", 3) then TaskPlayAnim(ped, "timetable@gardener@filling_can", "gar_ig_5_filling_can", 2.0, 8.0, -1, 50, 0, 0, 0, 0) end if IsControlJustReleased(0, 38) or DoesEntityExist(GetPedInVehicleSeat(vehicle, -1)) or (isNearPump and GetEntityHealth(pumpObject) <= 0) then isFueling = false end Citizen.Wait(0) end ClearPedTasks(ped) RemoveAnimDict("timetable@gardener@filling_can") end) Citizen.CreateThread(function() while true do local ped = PlayerPedId() if not isFueling and ((isNearPump and GetEntityHealth(isNearPump) > 0) or (GetSelectedPedWeapon(ped) == 883325847 and not isNearPump)) then if IsPedInAnyVehicle(ped) and GetPedInVehicleSeat(GetVehiclePedIsIn(ped), -1) == ped then local pumpCoords = GetEntityCoords(isNearPump) else local vehicle = GetPlayersLastVehicle() local vehicleCoords = GetEntityCoords(vehicle) if DoesEntityExist(vehicle) and GetDistanceBetweenCoords(GetEntityCoords(ped), vehicleCoords) < 2.5 then if not DoesEntityExist(GetPedInVehicleSeat(vehicle, -1)) then local stringCoords = GetEntityCoords(isNearPump) local canFuel = true if GetSelectedPedWeapon(ped) == 883325847 then stringCoords = vehicleCoords if GetAmmoInPedWeapon(ped, 883325847) < 100 then canFuel = false end end if GetVehicleFuelLevel(vehicle) < 99 and canFuel then if currentCash > 0 then DrawText3Ds(stringCoords.x, stringCoords.y, stringCoords.z + 1.6, _U("open_menu")) if IsControlJustReleased(0, 38) then isFueling = true SetDisplay(not display) end else DrawText3Ds(stringCoords.x, stringCoords.y, stringCoords.z + 1.2, _U("poor_man")) end elseif not canFuel then else DrawText3Ds(stringCoords.x, stringCoords.y, stringCoords.z + 1.6, _U("cant_refuel")) end end elseif isNearPump then else Citizen.Wait(250) end end else Citizen.Wait(250) end Citizen.Wait(0) end end) if Config.ShowNearestGasStationOnly then Citizen.CreateThread(function() local currentGasBlip = 0 while true do local coords = GetEntityCoords(PlayerPedId()) local closest = 1000 local closestCoords for _, gasStationCoords in pairs(Config.GasStations) do local dstcheck = GetDistanceBetweenCoords(coords, gasStationCoords) if dstcheck < closest then closest = dstcheck closestCoords = gasStationCoords end end if DoesBlipExist(currentGasBlip) then RemoveBlip(currentGasBlip) end currentGasBlip = CreateBlip(closestCoords) Citizen.Wait(10000) end end) elseif Config.ShowAllGasStations then Citizen.CreateThread(function() for _, gasStationCoords in pairs(Config.GasStations) do CreateBlip(gasStationCoords) end end) end
module 'mock' CLASS: Behaviour ( Component ) :MODEL{} :META{ category = 'behaviour' } -------------------------------------------------------------------- function Behaviour:installInputListener( option ) return installInputListener( self, option ) end function Behaviour:uninstallInputListener() return uninstallInputListener( self ) end -------------------------------------------------------------------- function Behaviour:installMsgListener() local onMsg = self.onMsg if onMsg then self._msgListener = self._entity:addMsgListener( function( msg, data, src ) return onMsg( self, msg, data, src ) end ) end end function Behaviour:uninstallMsgListener() if self._msgListener then self._entity:removeMsgListener( self._msgListener ) self._msgListener = false end end -------------------------------------------------------------------- function Behaviour:onAttach( entity ) if self.onMsg then self:installMsgListener() end end function Behaviour:onDetach( entity ) self:uninstallInputListener() self:uninstallMsgListener() self:clearCoroutines() end function Behaviour:onStart( entity ) if self.onThread then self:addCoroutine( 'onThread' ) end end
---@meta ---@class cc.EventListenerAssetsManagerEx :cc.EventListenerCustom local EventListenerAssetsManagerEx={ } cc.EventListenerAssetsManagerEx=EventListenerAssetsManagerEx ---* Initializes event with type and callback function ---@param AssetsManagerEx cc.AssetsManagerEx ---@param callback function ---@return boolean function EventListenerAssetsManagerEx:init (AssetsManagerEx,callback) end ---* ---@return self function EventListenerAssetsManagerEx:clone () end ---* / Overrides ---@return boolean function EventListenerAssetsManagerEx:checkAvailable () end ---* Constructor ---@return self function EventListenerAssetsManagerEx:EventListenerAssetsManagerEx () end
nssm:register_mob("nssm:lava_titan", "Lava Titan", { type = "monster", hp_max = 180, hp_min = 180, collisionbox = {-0.45, -0.05, -0.45, 0.45, 1.8, 0.45}, visual = "mesh", mesh = "lava_titan.x", textures = {{"lava_titan.png"}}, visual_size = {x=2.7, y=2.7}, makes_footstep_sound = true, view_range = 20, fear_height = 4, lifetimer = 500, walk_velocity = 0.5, run_velocity = 1.3, floats = 1, sounds = { random = "lava_titan", }, damage = 8, jump = false, jump_height=0, drops = { {name = "nssm:life_energy", chance = 1, min = 7, max = 9,}, {name = "nssm:lava_titan_eye", chance = 1, min = 1, max = 1,}, {name = "bucket:bucket_lava", chance = 2, min = 1, max = 3,}, }, armor = 20, drawtype = "front", water_damage = 25, rotate = 270, light_damage = 0, lava_damage = 0, on_rightclick = nil, floats = 0, blood_texture="stone_blood.png", blood_amount=50, knock_back=0, attack_type = "dogshoot", dogshoot_switch = true, arrow = "nssm:lava_arrow", shoot_interval = 2, shoot_offset = 0, --[[ on_dist_attack = function(self, player) local pos = player:get_pos() for dy=-1, 6, 1 do for dx=-1, 1, 2 do for dz=-1, 1, 2 do local p = {x=pos.x+dx, y=pos.y+dy, z=pos.z+dz} local n = core.get_node(p).name if n~="default:lava_flowing" and not minetest.is_protected(p, "") then minetest.set_node(p, {name="default:lava_flowing"}) end end end end end, ]] animation = { speed_normal = 25, speed_run = 45, stand_start = 120, stand_end = 300, walk_start = 10, walk_end = 110, run_start = 10, run_end = 110, punch_start = 301, punch_end = 340, shoot_start =340, shoot_end=400, }, do_custom = function (self) digging_attack(self, nil, self.run_velocity, {x=0, y=4, z=0}) -- Deactivated because... non existent ? --digging_ability(self, nil, self.run_velocity, {x=0, y=5, z=0}) -- For now deactivate - it places lava under it, sinks, then places lava under it, sinks, etc ... --putting_ability(self, "default:lava_source", self.run_velocity) end, --[[ custom_attack = function (self) -- digging_attack mobs:set_animation(self, "punch") local p2 = p local s2 = s p2.y = p2.y + 1.5 s2.y = s2.y + 1.5 if mobs:line_of_sight(self, p2, s2) == true then -- play attack sound if self.sounds.attack then minetest.sound_play(self.sounds.attack, { object = self.object, max_hear_distance = self.sounds.distance }) end -- punch player self.attack:punch(self.object, 1.0, { full_punch_interval = 1.0, damage_groups = {fleshy = self.damage} }, nil) end end, --]] })
local class = require 'middleclass' local lovetoys = require 'lovetoys.lovetoys' local System = class('BehaviorSystem', lovetoys.System) function System:initialize() lovetoys.System.initialize(self) end function System:requires() return { 'Actor', 'Behavior' } end function System:update(dt) for index, entity in pairs(self.targets) do local action = entity:get('Behavior'):action(entity) if action then entity:get('Actor'):schedule(action) end end self.active = false end function System:nextTurn() self.active = true end return System
local utils = require("config/utils") vim.opt.number = true vim.opt.relativenumber = true vim.opt.hlsearch = false vim.opt.hidden = true vim.opt.errorbells = false vim.opt.wrap = false vim.opt.swapfile = false vim.opt.backup = false vim.opt.tabstop = 4 vim.opt.softtabstop = 4 vim.opt.shiftwidth = 4 vim.opt.expandtab = true vim.opt.autoindent = true vim.opt.undofile = true vim.opt.scrolloff = 8 vim.opt.signcolumn = "yes:1" vim.opt.encoding = "UTF-8" vim.opt.termguicolors = true vim.opt.pumheight = 10 vim.cmd([[ set undodir=~/.vim/undodir ]]) -- vim.cmd([[ -- " let g:tokyonight_style="storm" -- " colorscheme tokyonight -- colorscheme onedark -- ]]) vim.cmd("set guicursor=") vim.cmd([[ set listchars=tab:▸\ ,trail:·,precedes:←,extends:→,eol:↲,nbsp:␣ autocmd InsertEnter * set list autocmd VimEnter,BufEnter,InsertLeave * set nolist ]]) vim.g.mapleader = " " vim.cmd([[ vnoremap J :m '>+1<CR>gv=gv vnoremap K :m '<-2<CR>gv=gv nnoremap Y yg$ nnoremap n nzzzv nnoremap N Nzzzv nnoremap J mzJ`z xnoremap <leader>p "_dP nnoremap <leader>y "+y vnoremap <leader>y "+y nmap <leader>Y "+Y " Escape terminal mode tnoremap <Esc> <C-\><C-n> " resize current buffer by +/- 5 nnoremap <M-Right> :vertical resize -5<cr> nnoremap <M-Up> :resize +5<cr> nnoremap <M-Down> :resize -5<cr> nnoremap <M-Left> :vertical resize +5<cr> nnoremap <leader>/ :Commentary<CR> vnoremap <leader>/ :Commentary<CR> ]])
local dap = require("dap") dap.defaults.fallback.external_terminal = {command = "/usr/bin/kitty", args = {"-e"}} vim.g.dap_virtual_text = true -- Nodejs debugging -- https://github.com/mfussenegger/nvim-dap/wiki/Debug-Adapter-installation#javascript dap.adapters.node2 = { type = "executable", command = "node", args = {os.getenv("HOME") .. "/repos/vscode-node-debug2/out/src/nodeDebug.js"}, -- console = "externalTerminal", } dap.configurations.typescript = { { type = "node2", request = "attach", -- program = '${file}', cwd = vim.fn.getcwd(), sourceMaps = true, skipFiles = {"<node_internals>/**/*.js"}, protocol = "inspector", -- console = 'integratedTerminal', console = "integratedConsole", -- console = 'externalTerminal', -- outputCapture = "std", -- externalConsole = true, }, }
local L = LibStub("AceLocale-3.0"):NewLocale("BestInSlotRedux", "itIT") if L then end
local args = {...} local pss = args[1] --text for the stage counter local stage_text local failed = pss:GetFailed() local dark_length = 0 if failed then local songs_passed = pss:GetSongsPassed() if songs_passed < 10 then dark_length = 1 end stage_text = string.format("%02d STAGE",pss:GetSongsPassed()) else stage_text ="CLEAR" end return Def.ActorFrame{ Def.BitmapText{ Font="_gotham Bold 18px"; Text=stage_text; InitCommand=function(s) s:y(10):zoom(10/9) end; OnCommand=function(s) s:AddAttribute(0, {Length=dark_length, Diffuse=color "#777777"} ) end; }; Def.BitmapText{ Font="ScoreDisplayNormal Text"; InitCommand=function(s) s:y(-10) end; Text=SecondsToMMSSMsMs(pss:GetAliveSeconds()); } }
__source 'extensions/lua_tools/ac_ext_lua_tools.cpp' __allow 'luatools' require './common/internal_import' require './common/ac_audio' require './common/ac_light' require './common/ac_render' require './common/ac_ray' require './common/ac_positioning_helper' require './common/ac_ui' require './common/ac_apps' require './common/ac_scene' require './common/ac_car_control' require './common/ac_game' ---Draw virtual mirror. ---@param pos vec2 ---@param size vec2 ---@param color rgbm? @Default value: `rgbm.colors.white`. function ui.drawVirtualMirror(pos, size, color) ui.drawImage('dynamic::mirror', pos, size, color, vec2(1, 0), vec2(0, 1)) end -- automatically generated entries go here: __definitions() -- script format: ---@class ScriptData ---@single-instance script = {} --[[? if (ctx.ldoc) out(]] ---Called each frame. ---@param dt number @Time passed since last `update()` call, in seconds. function script.update(dt) end --[[) ?]]
local cjson = require "cjson" ngx.say(cjson.encode({ status = true })) return ngx.exit(ngx.HTTP_OK)
-- Script to set RGB color to a device -- Define your device and settings here: local trigger = deviceManager:findByName('red') -- Name of the trigger local rgb = deviceManager:findByName('rgb') -- Name of the rgb-device ------ Do not change below ------ local deviceManager = require "telldus.DeviceManager" function onDeviceStateChanged(device, state, stateValue) if trigger == nil then return end if rgb == nil then return end if device:id() ~= trigger:id() then return end rgb:command("rgbw", 0xFF000000, "RGB") end
local theme = require("vsdark.theme") local utils = {} utils.highlight = function(group, highlights) local fg = highlights[1] and " guifg=" .. highlights[1] or " guifg=NONE" local bg = highlights[2] and " guibg=" .. highlights[2] or " guibg=NONE" local attr = highlights[3] and " gui=" .. highlights[3] or " gui=NONE" local sp = highlights[4] and " guisp=" .. highlights[4] or "" vim.api.nvim_command("highlight " .. group .. fg .. bg .. attr .. sp) end utils.load = function () vim.g.colors_name = "vsdark" vim.cmd("hi clear") if vim.fn.exists("syntax_on") then vim.cmd("syntax reset") end vim.o.background = "dark" vim.o.termguicolors = true local syntax = theme.load_syntax() for group, color in pairs(syntax) do utils.highlight(group, color) end theme.link_highlight() end return utils
local inventory = {} function inventory.new(width, height) local slots = {} for x = 1, width do slots[x] = {} for y = 1, height do slots[x][y] = {amount=0} end end return setmetatable({ slots = slots, }, {__index=inventory}) end return inventory
--region CStringSpliter_Tester.lua --Author : jefflwq --Date : 2015/2/28 --说明 : CStringSpliter 类的测试程序 --endregion if true then --false:启用测试, true:禁用测试(测试无问题后请设为true) return end using "Joop" using "System.Tester" using "System.Text" namespace "Testers.JLib" { static_class "CStringSpliter_Tester" : CJoopTester { --IsEnabled = true, OnTest = function(self, ...) local obj = CStringSpliter() obj.Spliter = "." obj.IgnoreEmpty = false obj.Plain = true obj:Split("ab.asd.fa.sfasd..fasdf") Print(obj:Size(), obj:GetItem(1), obj:GetItem(2), obj:GetItem(3), obj:GetItem(4), obj:GetItem(5), obj:GetItem(6)) end, --你可以定义这个函数以指定传递给OnTest的参数 --GetSpecifiedParams = --function(self, ...) --return "SpecifiedParam1", "SpecifiedParam2" --end, }, }
local skynet = require "skynet" require "skynet.manager" local CMD = {} skynet.register_protocol { name = "text", id = skynet.PTYPE_TEXT, unpack = skynet.tostring, dispatch = function(_, address, msg) log.debug(string.format("[%08x]: %s", address, msg)) end } skynet.register_protocol { name = "SYSTEM", id = skynet.PTYPE_SYSTEM, unpack = function(...) return ... end, dispatch = function(_, _) log.fatal("SIGHUP") end } skynet.start(function() skynet.register(".logger") skynet.dispatch("lua", function(_, _, cmd, ...) local func = assert(CMD[cmd], cmd .. " not found") if func then func(...) end end) end)
local mapengine = {} local mapBank = {} local spritBank = {} local spritesheet = '' local protoMap function mapengine:loadLevel(level, world) protoMap = loadfile(level)() spritesheet = love.graphics.newImage('images/roguelikeDungeon_transparent.png') for y=1, protoMap.height do mapBank[y] = {} for x=1, protoMap.width do mapBank[y][x] = {} end end for index, tile in ipairs(protoMap.tiles) do local quad_x, quad_y if tile.quad ~= nil then quad_x = tile.quad.x quad_y = tile.quad.y else quad_x = protoMap.default_quad.x quad_y = protoMap.default_quad.y end if tile.x_range then for x=tile.x_range[1], tile.x_range[2] do local temp = { title = 'simple ground', quad = love.graphics.newQuad( quad_x, quad_y, 16, 16, 492, 305) } mapBank[tile.y][x] = temp world:add(temp, (x - 1) * 16, (tile.y - 1) * 16, 16, 16) end elseif tile.y_range then for y=tile.y_range[1], tile.y_range[2] do local temp = { quad = love.graphics.newQuad( quad_x, quad_y, 16, 16, 492, 305) } mapBank[y][tile.x] = temp world:add(temp, (tile.x - 1) * 16, (y - 1) * 16, 16, 16) end elseif tile.x and tile.y then local temp = { quad = love.graphics.newQuad( quad_x, quad_y, 16, 16, 492, 305) } mapBank[tile.y][tile.x] = temp world:add(temp, (tile.x - 1) * 16, (tile.y - 1) * 16, 16, 16) end end local goal = protoMap.goal local temp = { title = 'goal', quad = love.graphics.newQuad( goal.quad.x, goal.quad.y, 16, 16, 492, 305) } mapBank[goal.y][goal.x] = temp world:add(temp, (goal.x - 1) * 16, (goal.y - 1) * 16, 16, 16) end function mapengine:draw() for y, vy in ipairs(mapBank) do for x, tile in ipairs(vy) do if tile.quad then love.graphics.draw( spritesheet, tile.quad, (x - 1) * 16, (y - 1) * 16 ) end end end end function mapengine:setStartZone(player) player.x = protoMap.start.x * 16 player.y = protoMap.start.y * 16 end return mapengine
local kEchoDelay = 4 -- from 5 seconds to 4 seconds. local gTeleportClassnames local function GetTeleportClassname(techId) if not gTeleportClassnames then gTeleportClassnames = {} gTeleportClassnames[kTechId.TeleportHydra] = "Hydra" gTeleportClassnames[kTechId.TeleportWhip] = "Whip" gTeleportClassnames[kTechId.TeleportTunnel] = "TunnelEntrance" gTeleportClassnames[kTechId.TeleportCrag] = "Crag" gTeleportClassnames[kTechId.TeleportShade] = "Shade" gTeleportClassnames[kTechId.TeleportShift] = "Shift" gTeleportClassnames[kTechId.TeleportVeil] = "Veil" gTeleportClassnames[kTechId.TeleportSpur] = "Spur" gTeleportClassnames[kTechId.TeleportShell] = "Shell" gTeleportClassnames[kTechId.TeleportHive] = "Hive" gTeleportClassnames[kTechId.TeleportEgg] = "Egg" gTeleportClassnames[kTechId.TeleportHarvester] = "Harvester" end return gTeleportClassnames[techId] end if Server then function Shift:TriggerEcho(techId, position) local teleportClassname = GetTeleportClassname(techId) local teleportCost = LookupTechData(techId, kTechDataCostKey, 0) local success = false local validPos = GetIsBuildLegal(techId, position, 0, kStructureSnapRadius, self:GetOwner(), self) local builtStructures = {} local matureStructures = {} if validPos then local teleportAbles = GetEntitiesForTeamWithinXZRange(teleportClassname, self:GetTeamNumber(), self:GetOrigin(), kEchoRange) for index, entity in ipairs(teleportAbles) do if HasMixin(entity, "Construct") and entity:GetIsBuilt() then table.insert(builtStructures, entity) if HasMixin(entity, "Maturity") and entity:GetIsMature() then table.insert(matureStructures, entity) end end end if #matureStructures > 0 then teleportAbles = matureStructures elseif #builtStructures > 0 then teleportAbles = builtStructures end Shared.SortEntitiesByDistance(self:GetOrigin(), teleportAbles) for _, teleportAble in ipairs(teleportAbles) do if teleportAble:GetCanTeleport() then teleportAble:TriggerTeleport(kEchoDelay, self:GetId(), position, teleportCost) if HasMixin(teleportAble, "Orders") then teleportAble:ClearCurrentOrder() end self:TriggerEffects("shift_echo") success = true self.echoActive = true self.timeLastEcho = Shared.GetTime() break end end end return success end end
_G.scale = 3 function love.load() resize(_G.scale) love.graphics.setBackgroundColor(hex2rgb("25262c")) love.graphics.setDefaultFilter('nearest', 'nearest') loadSprites() end function love.update(dt) end function love.draw() width = love.graphics.getWidth() height = love.graphics.getHeight() --drawSelects(width, height) debugStuff(width, height) --love.graphics.draw(_G.cubes, _G.sprites["void"], 50, 50, 0, 3) --love.graphics.draw(_G.cubes, _G.sprites["voidGlow"], 100, 50, 0, 3) drawSprites(width, height) end -- Graphics Functions function loadSprites () _G.sprites = {} _G.glyphQuads = {} _G.cubes = love.graphics.newImage("img/Sprite-Preview-Sheet-001.png") _G.glyphs = love.graphics.newImage("img/Sprite-Preview-Sheet-002.png") _G.testsheet = love.graphics.newImage("img/testsheet.png") _G.names = {"grass", "grassGlow", "desert", "desertGlow", "mushroom", "mushroomGlow", "lava", "lavaGlow", "void", "voidGlow"} for i=0,9 do _G.sprites[_G.names[i+1]] = love.graphics.newQuad( 63*i, 0, 63, 63, 630, 63 ) end _G.glyphNames = {"top", "bottom"} for i=0,1 do _G.glyphQuads[_G.glyphNames[i+1]] = love.graphics.newQuad( 63*i, 0, 63, 63, 63*2, 63 ) end return sprites end function drawSelects(width, height) width = love.graphics.getWidth() height = love.graphics.getHeight() for i=0,4 do love.graphics.setColor(0, 0, 0, 0) if love.mouse.getX() > width/5*i and love.mouse.getX() <= width/5*(i+1) then love.graphics.setColor(hex2rgb("646493")) end love.graphics.rectangle("fill", width/5* i, 0, width/5, height) end end function drawSprites(width, height) local spriteSize = 63*_G.scale for i=0,4 do left = width / 5 * i right = width / 5 * (i + 1) posx = left + (right-left)/2 - spriteSize/2 posy = height/2 - spriteSize/2 if love.mouse.getX() > width/5*i and love.mouse.getX() <= width/5*(i+1) then love.graphics.draw(_G.cubes, _G.sprites[_G.names[i*2 + 2]], posx, posy, 0, _G.scale) love.graphics.draw(_G.glyphs, _G.glyphQuads[_G.glyphNames[1]], posx, posy - 80 * _G.scale, 0, _G.scale) love.graphics.draw(_G.glyphs, _G.glyphQuads[_G.glyphNames[2]], posx, posy + 80 * _G.scale, 0, _G.scale) else love.graphics.draw(_G.cubes, _G.sprites[_G.names[i*2 + 1]], posx, posy, 0, _G.scale) end end end function debugStuff(width, height) -- debug text love.graphics.setColor(1,1,1) love.graphics.print(love.mouse.getX(),10,10) love.graphics.print(love.graphics.getWidth(),10,20) for i=0,4 do if love.mouse.getX() > width/5*i and love.mouse.getX() <= width/5*(i+1) then love.graphics.print("!",50,30+10*i) end love.graphics.print(width/5 * i,10,30+10*i) end end -- Pure Fuctions function resize(i) windowSizeX = 384 windowSizeY = 216 love.window.setMode(windowSizeX * i, windowSizeY * i, {resizable=true}) end function hex2rgb(hex) return tonumber("0x"..hex:sub(1,2))/255, tonumber("0x"..hex:sub(3,4))/255, tonumber("0x"..hex:sub(5,6))/255 end
function div(a, b) return math.floor(a/b) end for line in io.lines(arg[1]) do local s = {} for i in line:gmatch("%S+") do s[#s+1] = tonumber(i) end local n = s[1] s[1], s[#s] = s[#s], nil table.sort(s) local u, r = s[div(n, 2) + 1], 0 for _, i in ipairs(s) do r = r + math.abs(i - u) end print(r) end
local E, L, DF = unpack(ElvUI) local RD = E:NewModule('RAIDCD', 'AceEvent-3.0') ---------------------------------------------------------------------------------------- -- Raid cooldowns -- Modify by eui.cc at 2012.8.20 ---------------------------------------------------------------------------------------- local show = { raid = true, party = true, arena = true, } local raid_spells local filter = COMBATLOG_OBJECT_AFFILIATION_RAID + COMBATLOG_OBJECT_AFFILIATION_PARTY + COMBATLOG_OBJECT_AFFILIATION_MINE local band = bit.band local sformat = string.format local floor = math.floor local GetTime = GetTime local tremove, select, tostring, wipe = tremove, select, tostring, wipe local SendChatMessage = SendChatMessage local CUSTOM_CLASS_COLORS, RAID_CLASS_COLORS = CUSTOM_CLASS_COLORS, RAID_CLASS_COLORS local UnitClass = UnitClass local IsInInstance = IsInInstance local GetSpellInfo = GetSpellInfo local timer = 0 local bars = {} local FormatTime = function(time) if time >= 60 then return sformat("%.2d:%.2d", floor(time / 60), time % 60) else return sformat("%.2d", time) end end local CreateFS = function(frame, fsize, fstyle) local fstring = frame:CreateFontString(nil, "OVERLAY") if E.db.euiscript.raidcd_style == 'bar' then fstring:FontTemplate(nil, E.db.general.fontSize, 'OUTLINE') else fstring:FontTemplate(nil, E.db.euiscript.raidcd_iconfontsize, 'OUTLINE') end return fstring end function RD:UpdatePositions() if E.db.euiscript.raidcd_style == 'bar' then for i = 1, #bars do bars[i]:ClearAllPoints() if i == 1 then bars[i]:Point("TOPLEFT", RaidCDAnchor, "TOPLEFT", 26, 0) else if self.db.raidcd_direction == "up" then bars[i]:Point("BOTTOMLEFT", bars[i-1], "TOPLEFT", 0, 5) else bars[i]:Point("TOPLEFT", bars[i-1], "BOTTOMLEFT", 0, -5) end end bars[i].id = i end else local button, lastButton, lastColumnButton, buttonsPerRow; for i = 1, #bars do buttonsPerRow = E.db.euiscript.raidcd_perrow lastButton = bars[i-1]; lastColumnButton = bars[i-buttonsPerRow]; if E.db.euiscript.raidcd_maxbars < E.db.euiscript.raidcd_perrow then E.db.euiscript.raidcd_perrow = E.db.euiscript.raidcd_maxbars; end bars[i]:ClearAllPoints() local pointx, pointy, space = "TOPLEFT", "TOPRIGHT", E.db.euiscript.raidcd_iconspace if E.db.euiscript.raidcd_icondirection == 'left' then pointx = "TOPRIGHT" pointy = "TOPLEFT" space = -(space) end if i == 1 then bars[i]:Point(pointx, RaidCDAnchor, pointx, 0, 0) elseif (i-1) % buttonsPerRow == 0 then bars[i]:Point("TOP", lastColumnButton.left, "BOTTOM", 0, -E.db.euiscript.raidcd_iconspace) else bars[i]:Point(pointx, lastButton, pointy, space, 0) end bars[i].id = i end end end function RD:StopTimer(bar) bar:SetScript("OnUpdate", nil) bar:Hide() tremove(bars, bar.id) self:UpdatePositions() end local BarUpdate = function(self, elapsed) local curTime = GetTime() if self.endTime < curTime then RD:StopTimer(self) return end if E.db.euiscript.raidcd_style == 'bar' then self:SetValue(100 - (curTime - self.startTime) / (self.endTime - self.startTime) * 100) end self.right:SetText(FormatTime(self.endTime - curTime)) end local OnEnter = function(self) GameTooltip:SetOwner(self, "ANCHOR_RIGHT") GameTooltip:AddDoubleLine(self.name.. '-'.. self.spell, self.right:GetText()) GameTooltip:SetClampedToScreen(true) GameTooltip:Show() end local OnLeave = function(self) GameTooltip:Hide() end local OnMouseDown = function(self, button) if button == "LeftButton" then SendChatMessage(sformat("EUI:".." %s: %s", self.name..' - '..self.spell, self.right:GetText()), E:CheckChat()) elseif button == "RightButton" then RD:StopTimer(self) end end function RD:CreateBar(style) local bar if style == 'bar' then bar = CreateFrame("Statusbar", nil, E.UIParent) bar:SetFrameStrata("LOW") bar:Size(self.db.raidcd_width - self.db.raidcd_height - 6, self.db.raidcd_height) bar:SetStatusBarTexture(E["media"].normTex) bar:SetMinMaxValues(0, 100) bar.backdrop = CreateFrame("Frame", nil, bar) bar.backdrop:Point("TOPLEFT", -2, 2) bar.backdrop:Point("BOTTOMRIGHT", 2, -2) bar.backdrop:SetTemplate() bar.backdrop:SetFrameStrata("BACKGROUND") if E.db.general.transparent and E.db.general.transparentStyle == 1 then bar.backdrop:SetAlpha(E.db.general.backdropfadecolor.a or 0.4) end bar.bg = bar:CreateTexture(nil, "BACKGROUND") bar.bg:SetAllPoints(bar) bar.bg:SetTexture(E["media"].glossTex) bar.left = CreateFS(bar) bar.left:Point("LEFT", 2, 0) bar.left:SetJustifyH("LEFT") bar.left:Size(self.db.raidcd_width - self.db.raidcd_height, self.db.raidcd_height) bar.right = CreateFS(bar) bar.right:Point("RIGHT", 1, 0) bar.right:SetJustifyH("RIGHT") bar.icon = CreateFrame("Button", nil, bar) bar.icon:Size(self.db.raidcd_height) bar.icon:Point("BOTTOMRIGHT", bar, "BOTTOMLEFT", -6, 0) bar.icon.backdrop = CreateFrame("Frame", nil, bar.icon) bar.icon.backdrop:Point("TOPLEFT", -2, 2) bar.icon.backdrop:Point("BOTTOMRIGHT", 2, -2) bar.icon.backdrop:SetTemplate() bar.icon.backdrop:SetFrameStrata("BACKGROUND") else bar = CreateFrame("Button", nil, E.UIParent) bar:Size(self.db.raidcd_iconsize) bar.bg = CreateFrame("Frame", nil, bar) bar.bg:Point("TOPLEFT", -2, 2) bar.bg:Point("BOTTOMRIGHT", 2, -2) bar.bg:SetTemplate() bar.bg:SetFrameStrata("BACKGROUND") bar.left = CreateFS(bar) bar.left:Point("TOP", bar, "BOTTOM", 0, -4) bar.left:SetJustifyH("CENTER") -- bar.left:SetSize(self.db.raidcd_iconsize, 12) bar.right = CreateFS(bar) bar.right:Point("CENTER", 1, 0) bar.right:SetJustifyH("CENTER") end return bar end function RD:StartTimer(name, spellId) for i = 1, #bars do if bars[i].spell == GetSpellInfo(spellId) and bars[i].name == name then return end end if #bars > E.db.euiscript.raidcd_maxbars then return; end local bar = self:CreateBar(E.db.euiscript.raidcd_style) local spell,_, icon = GetSpellInfo(spellId) local class = select(2, UnitClass(name)) if E.db.euiscript.raidcd_style == 'bar' then bar.endTime = GetTime() + raid_spells[tostring(spellId)].cd bar.startTime = GetTime() bar.left:SetText(E:ShortenString(name,2,true).." - "..E:ShortenString(spell,4,true)) bar.right:SetText(FormatTime(raid_spells[tostring(spellId)].cd)) bar.icon:SetNormalTexture(icon) bar.icon:GetNormalTexture():SetTexCoord(0.1, 0.9, 0.1, 0.9) bar.spell = spell bar.name = name local color = (CUSTOM_CLASS_COLORS and CUSTOM_CLASS_COLORS[class] or RAID_CLASS_COLORS[class]) if color then bar:SetStatusBarColor(color.r, color.g, color.b) bar.bg:SetVertexColor(color.r, color.g, color.b, 0.25) else bar:SetStatusBarColor(0.3, 0.7, 0.3) bar.bg:SetVertexColor(0.3, 0.7, 0.3, 0.25) end else bar.endTime = GetTime() + raid_spells[tostring(spellId)].cd bar.startTime = GetTime() bar.left:SetText(E:ShortenString(name,4)) bar.right:SetText(FormatTime(raid_spells[tostring(spellId)].cd)) bar:SetNormalTexture(icon) bar:GetNormalTexture():SetTexCoord(0.1, 0.9, 0.1, 0.9) bar.spell = spell bar.name = name local color = (CUSTOM_CLASS_COLORS and CUSTOM_CLASS_COLORS[class] or RAID_CLASS_COLORS[class]) if color then bar.bg:SetBackdropBorderColor(color.r, color.g, color.b, 1) bar.left:SetTextColor(color.r, color.g, color.b) else bar.bg:SetStatusBarColor(0.3, 0.7, 0.3) end end bar:SetScript("OnUpdate", BarUpdate) bar:EnableMouse(true) bar:SetScript("OnEnter", OnEnter) bar:SetScript("OnLeave", OnLeave) bar:SetScript("OnMouseDown", OnMouseDown) bar:Show() tinsert(bars, bar) self:UpdatePositions() end function RD:COMBAT_LOG_EVENT_UNFILTERED() local timestamp, eventType, _, sourceGUID, sourceName, sourceFlags, _, _, _, _, _, spellId, _, _, arg15, arg16 = CombatLogGetCurrentEventInfo() if band(sourceFlags, filter) == 0 then return end if raid_spells[tostring(spellId)] and raid_spells[tostring(spellId)].enable and show[select(2, IsInInstance())] then if sourceName then sourceName = sourceName:gsub("-.+", "") else return end if raid_spells[tostring(spellId)].enable and raid_spells[tostring(spellId)].cc and not E.db.euiscript.raidcccd then return end local _, sclass = UnitClass(sourceName) if eventType == "SPELL_RESURRECT" and not spellId == 61999 then if spellId == 95750 then spellId = 6203 end self:StartTimer(sourceName, spellId) elseif eventType == "SPELL_AURA_APPLIED" then if spellId == 20707 and sclass == 'WARLOCK' then self:StartTimer(sourceName, spellId) end if spellId == 87023 and sclass == 'MAGE' then self:StartTimer(sourceName, spellId) end if spellId == 105763 and sclass == 'SHAMAN' then self:StartTimer(sourceName, 16190) end if spellId == 187616 or spellId == 187617 or spellId == 187618 or spellId == 187619 or spellId == 187620 then self:StartTimer(sourceName, spellId) end elseif eventType == "SPELL_CAST_SUCCESS" then self:StartTimer(sourceName, spellId) end if eventType == "SPELL_RESURRECT" and spellId == 20484 then self:StartTimer(sourceName, spellId) end end end function RD:ZONE_CHANGED_NEW_AREA() if select(2, IsInInstance()) == "arena" then for k, v in pairs(bars) do self:StopTimer(v) end end end function RD:ToggleRaidCD() raid_spells = E.db.euiscript.raid_spells if E.db.euiscript.raidcd then self:RegisterEvent("COMBAT_LOG_EVENT_UNFILTERED") self:RegisterEvent("ZONE_CHANGED_NEW_AREA") else self:UnregisterEvent("COMBAT_LOG_EVENT_UNFILTERED") self:UnregisterEvent("ZONE_CHANGED_NEW_AREA") end self:UpdateSetting() end function RD:UpdateSetting() for i = 1, #bars do if bars[i] then bars[i]:SetScript("OnUpdate", nil) bars[i]:Hide() end end wipe(bars) RaidCDAnchor:SetSize(self.db.raidcd_width, self.db.raidcd_height) end function RD:CreateAnchor() if RaidCDAnchor then return; end local RaidCDAnchor = CreateFrame("Frame", "RaidCDAnchor", E.UIParent) RaidCDAnchor:Point("TOPLEFT", Minimap, "BOTTOMLEFT", 0, -28) RaidCDAnchor:SetSize(self.db.raidcd_width, self.db.raidcd_height) E:CreateMover(RaidCDAnchor, "RaidCDAnchorMover", L["raidcd"], nil, nil, nil, "ALL,EUI", nil, "euiscript,euiscript_raidcd", "db,euiscript,raidcd") end function RD:Initialize() self.db = E.db["euiscript"] self:CreateAnchor() self:ToggleRaidCD() end local function InitializeCallback() RD:Initialize() end E:RegisterModule(RD:GetName(), InitializeCallback)
#!/bin/env lua local values = require("custom/values") local awful = require("awful") modkey = values.modkey keys = awful.util.table.join( -- terminal awful.key({ modkey, }, "Return", function () awful.util.spawn(values.terminal_tmux) end), awful.key({ modkey, "Shift" }, "Return", function () awful.util.spawn(values.terminal) end), -- sound awful.key({ }, "XF86AudioRaiseVolume", function () awful.util.spawn("vol_up.sh") end), awful.key({ }, "XF86AudioLowerVolume", function () awful.util.spawn("vol_down.sh") end), awful.key({ }, "XF86AudioMute", function () awful.util.spawn("mute_toggle.sh") end), -- Screen Lock awful.key({ modkey, "Control" }, "-", function () awful.util.spawn("xscreensaver-command -lock") end), awful.key({ modkey, }, "Print", function () awful.util.spawn("screenshot.sh") end), awful.key({ modkey, "Control"}, "Print", function () awful.util.spawn("screenshot.sh -w") end), awful.key({ modkey, "Shift"}, "Print", function () awful.util.spawn("maim -s") end) ) return keys
-- Команда /spectateself для тестирования наблюдения local DEBUG_SPECTATING = false local isActive = false local spectatingPlayerIndex = 1 local spectatingPlayer local mouseX = 0 local mouseY = 0 local screenSize = Vector2(guiGetScreenSize()) local cameraRotation = 0 local cameraVertical = 15 local autoSwitchTimer function startSpectating() if isActive then return end isActive = true localPlayer.frozen = true fadeCamera(true) showCursor(true) spectatingPlayerIndex = 1 updateSpectatingPlayer() showGameHUD(false) setComponentVisible("pb_hud", true) setComponentVisible("pb_killchat", true) end local function smallestAngleDiff( target, source ) local a = target - source if (a > 180) then a = a - 360 elseif (a < -180) then a = a + 360 end return a end local function getPlayersList() if DEBUG_SPECTATING then return {localPlayer} end local players = {} for i, p in ipairs(getSquadPlayers()) do if isElement(p) and p ~= localPlayer and p:getData("matchId") == localPlayer:getData("matchId") and not p:getData("dead") then table.insert(players, p) end end return players end function stopSpectating(keepCamera) if not isActive then return end setComponentVisible("pb_hud", false) setComponentVisible("pb_killchat", false) isActive = false localPlayer.frozen = false showCursor(false) if not keepCamera then setCameraTarget(localPlayer) end localPlayer:setData("spectatingPlayer", false, false) end function updateSpectatingPlayer() local players = getPlayersList() if not isElement(players[spectatingPlayerIndex]) then return end spectatingPlayer = players[spectatingPlayerIndex] localPlayer:setData("spectatingPlayer", spectatingPlayer, false) end local function switchSpectatingPlayer(delta) if not isActive then return end if not delta then delta = 1 end if isTimer(autoSwitchTimer) then killTimer(autoSwitchTimer) end local players = getPlayersList() if #players == 0 then return end spectatingPlayerIndex = spectatingPlayerIndex + 1 if spectatingPlayerIndex > #players then spectatingPlayerIndex = 1 elseif spectatingPlayerIndex < 1 then spectatingPlayerIndex = #players end updateSpectatingPlayer() end bindKey("arrow_r", "down", function () switchSpectatingPlayer(1) end) bindKey("arrow_l", "down", function () switchSpectatingPlayer(-1) end) addEventHandler("onClientPreRender", root, function (dt) dt = dt / 1000 if not isActive or not isElement(spectatingPlayer) then return end if spectatingPlayer:getData("dead") then spectatingPlayer = nil autoSwitchTimer = setTimer(switchSpectatingPlayer, 1500, 1) return end local targetVertical = 15 if spectatingPlayer.ducked then targetVertical = 5 end cameraRotation = cameraRotation + (smallestAngleDiff(360 - spectatingPlayer:getCameraRotation(), cameraRotation)) * 7 * dt cameraVertical = cameraVertical + (targetVertical - cameraVertical) * 3 * dt if cameraRotation == cameraRotation then local plane = getPlane() if spectatingPlayer:getData("isInPlane") and isElement(plane) then setCameraMatrix( plane.position + Vector3(40, 40, 40), plane.position, 0, 70 ) else local distance = 3 local camPosition = spectatingPlayer.position if spectatingPlayer.vehicle then distance = 8 camPosition = spectatingPlayer.vehicle.position end local pitch = math.rad(cameraVertical) local yaw = math.rad(cameraRotation - 90) local cameraOffset = Vector3(math.cos(yaw) * math.cos(pitch), math.sin(yaw) * math.cos(pitch), math.sin(pitch)) setCameraMatrix( camPosition + cameraOffset * distance, camPosition + Vector3(0, 0, 0.2), 0, 70 ) end end end) local function isMouseOver(x, y, w, h) return mouseX >= x and mouseX <= x + w and mouseY >= y and mouseY <= y + h end local function drawButton(text, x, y, width, height, bg, color, scale) if not bg then bg = tocolor(250, 250, 250) end if not color then color = tocolor(0, 0, 0, 200) end if not scale then scale = 1.25 end dxDrawRectangle(x, y, width, height, bg) dxDrawRectangle(x, y + height - 5, width, 5, tocolor(0, 0, 0, 10)) dxDrawText(text, x, y, x + width, y + height, color, scale, "default-bold", "center", "center") if isMouseOver(x, y, width, height) then dxDrawRectangle(x, y, width, height, tocolor(0, 0, 0, 100)) if getKeyState("mouse1") then return true end end return false end addEventHandler("onClientRender", root, function () if not isActive then return end local mx, my = getCursorPosition() if mx then mx = mx * screenSize.x my = my * screenSize.y else mx, my = 0, 0 end mouseX, mouseY = mx, my local bw = 200 local bh = 50 if drawButton(localize("rank_exit_to_lobby"), screenSize.x / 2 - bw / 2, screenSize.y - bh - 100, bw, bh) then stopSpectating() triggerEvent("onExitToLobby", resourceRoot) end end) if DEBUG_SPECTATING then addCommandHandler("selfspectate", startSpectating) end
local Dictionary = script.Parent local Llama = Dictionary.Parent local t = require(Llama.t) local validate = t.table local function values(dictionary) assert(validate(dictionary)) local valuesList = {} local index = 1 for _, value in pairs(dictionary) do valuesList[index] = value index = index + 1 end return valuesList end return values
--*********************************************************** --** THE INDIE STONE ** --*********************************************************** ---@class ISJoypadDebugUI : ISUIElement ISJoypadDebugUI = ISUIElement:derive("ISJoypadDebugUI"); local FONT_HGT_DEBUG = getTextManager():getFontHeight(UIFont.Debug) function ISJoypadDebugUI:createChildren() end function ISJoypadDebugUI:update() self:bringToTop() end function ISJoypadDebugUI:prerender() ISUIElement.prerender(self) end local function uiToString(ui) return ui and ui:toString() or "nil" end function ISJoypadDebugUI:render() ISUIElement.prerender(self) local x1 = getCore():getScreenWidth() - 300 local y = 20 local x2 = x1 + 130 self:drawRect(x1 - 10, y - 10, 300, FONT_HGT_DEBUG * 31 + 10 + 10, 0.75, 0.0, 0.0, 0.0) for i,joypadData in ipairs(JoypadState.joypads) do y = self:addLine(x1, x2, y, "Joypad " .. i .. ":", nil) y = self:addLine(x1 + 15, x2, y, "connected:", tostring(joypadData.controller and joypadData.controller.connected or false)) y = self:addLine(x1 + 15, x2, y, "id: ", tostring(joypadData.id)) y = self:addLine(x1 + 15, x2, y, "player: ", tostring(joypadData.player)) y = self:addLine(x1 + 15, x2, y, "focus: ", uiToString(joypadData.focus)) y = self:addLine(x1 + 15, x2, y, "lastfocus: ", uiToString(joypadData.lastfocus)) y = self:addLine(x1 + 15, x2, y, "activeWhilePaused: ", tostring(joypadData.activeWhilePaused)) y = y + FONT_HGT_DEBUG end end function ISJoypadDebugUI:addLine(x1, x2, y, label, value) self:drawText(label, x1, y, 1, 1, 1, 1, UIFont.DebugConsole, true) if value then self:drawText(value, x2, y, 1, 1, 1, 1, UIFont.DebugConsole, true) end return y + FONT_HGT_DEBUG end function ISJoypadDebugUI:new() o = ISUIElement.new(self, 0, 0, 1, 1) return o end
local AutoApp = {} AutoApp.__index = AutoApp function AutoApp.new(appConfig, example__Printer, example__AltPrinter) return setmetatable( { appConfig = appConfig, printer = example__Printer, altPrinter = example__AltPrinter }, AutoApp) end function AutoApp.run(self) self.printer:write("Goodbye World") self.altPrinter.write(self.appConfig.logPath) print(self.appConfig.counter) self.appConfig.counter = self.appConfig.counter - 2 end return AutoApp
local mmh3 = require "murmurhash3" local murmurhash3 = mmh3.murmurhash3 local murmurhash3_128 = mmh3.murmurhash3_128 local function assert_cmd_success(cmd) local exit = os.execute(cmd) -- The return value from os.execute of different LuaJIT version is -- different, because of the compatibility with Lua 5.2. if exit ~= 0 and exit ~= true then assert.is_true(false) end assert.is_true(true) end it('murmurhash3', function() local data_fn = "data.txt" os.execute("python generate_fixture.py " .. data_fn) local f = io.open(data_fn) local luajit_32bit_out = io.open("luajit_32.out", "w") local luajit_128bit_out = io.open("luajit_128.out", "w") local seed = 0 for line in f:lines() do luajit_32bit_out:write(murmurhash3(line, seed) .. "\n") luajit_128bit_out:write(murmurhash3_128(line, seed) .. "\n") seed = seed + 1 end luajit_32bit_out:close() luajit_128bit_out:close() assert_cmd_success("diff -au luajit_32.out python_32.out") assert_cmd_success("diff -au luajit_128.out python_128.out") end)
----------------------------------- -- -- Zone: Halvung (62) -- ----------------------------------- local ID = require("scripts/zones/Halvung/IDs") require("scripts/globals/helm") ----------------------------------- function onInitialize(zone) tpz.helm.initZone(zone, tpz.helm.type.MINING) end function onZoneIn(player, prevZone) local cs = -1 if player:getXPos() == 0 and player:getYPos() == 0 and player:getZPos() == 0 then player:setPos(160.54, -22.001, 139.988, 244) end return cs end function onRegionEnter(player, region) end function onEventUpdate(player, csid, option) end function onEventFinish(player, csid, option) end
slash_warrior = { cast = function(player, target) local d = {} local m = player.m local x = player.x local y = player.y local sound = 60 local magic = 60 if not player:canCast(1, 1, 0) then return end if (player.magic < magic) then player:sendMinitext("You do not have enough mana.") return end local damage = math.ceil((player.health *.0245) + (player.might * 11.435)) if player:hasDuration("chin_baek_ho_ryung") then damage = math.ceil(damage * 1.5) end local endvita = math.floor(player.health * 0.90) player.magic = player.magic - 180 if (player.side == 0) then y = y - 1 end if (player.side == 1) then x = x + 1 end if (player.side == 2) then y = y + 1 end if (player.side == 3) then x = x - 1 end d = player:getObjectsInCell(m, x, y, BL_MOB) e = player:getAliveObjectsInCell(m, x, y, BL_PC) local alive = {} if (#e > 0) then for z = 1, #e do if (e[z].state ~= 1) then table.insert(alive, "" .. e[z].ID .. "") end end end if (#d > 0) then if (d[1].blType == BL_MOB) then d[1]:sendAnimation(31) d[1].attacker = player.ID d[1]:removeHealthExtend(damage, 1, 1, 1, 1, 0) player:addThreat(d[1].ID, damage) player.health = endvita -- added 5/29 supposed to take vita in both situations if you hit target player:sendStatus() end end if (#e > 0 and #alive > 0) then if (player.pvp > 0) then for z = 1, #alive do Player(alive[z]):sendMinitext(player.name .. " casts Slash on you.") Player(alive[z]).attacker = player.ID if (player.group[1] == Player(alive[z]).group[1]) then else Player(alive[z]):sendAnimation(31) Player(alive[z]):removeHealthExtend( damage, 1, 1, 1, 1, 0 ) end end player.health = endvita player:sendStatus() else e[1]:sendAnimation(31) end end player:sendStatus() player:sendAction(1, 30) player:playSound(sound) player:sendMinitext("You cast Slash.") player:setAether("slash_warrior", 1000) end, requirements = function(player) local l = 22 local i = { Item("tigers_heart").id, Item("mountain_ginseng").id, Item("antler").id, 0 } local ia = {5, 1, 5, 1000} local d = "A quick attack that deals damage to your enemy." return l, i, ia, d end }
Config = { ResolutionX = 1280, ResolutionY = 720, VolumeSfx = 1, VolumeMusic = 1, AutoZoom = true, AutoFocus = true, -- only works when AutoZoomEnabled }
P = function(v) print(vim.inspect(v)) return v end RELOAD = function(...) return require("plenary.reload").reload_module(...) end R = function(name) RELOAD(name) return require(name) end
--[[ main file to train a deep neural network. run as: >> th main.lua -data mydata.dat to see additional parameters: >> th main.lua --help ]] require 'nn' require 'stratBatchIter' require 'meanF1score' require 'optim' require 'hdf5' json = require 'json' cmd = torch.CmdLine() cmd:text() cmd:text() cmd:text('Deep neural network for HAR') cmd:text() cmd:text('Options') cmd:option('-seed', 123, 'initial random seed') cmd:option('-logdir', 'exp', 'path to store model progress, results, and log file') cmd:option('-data', 'opp1.dat', 'data-set to run on (DP datasource)') cmd:option('-gpu', 0, 'GPU to run on (default: 1)') -- NOTE:1 cmd:option('-cpu', false, 'Run on CPU') cmd:option('-numLayers', 1, 'Number of hidden layers') cmd:option('-layerSize', 512, 'Number of units in hidden layers') cmd:option('-learningRate', 0.0001, 'Learning rate') cmd:option('-batchSize', 64, 'Batch-size') cmd:option('-dropout', 0.5, 'Dropout') cmd:option('-momentum', 0.9, 'Momentum') cmd:option('-learningRateDecay', 5e-4, 'Learning rate decay') cmd:option('-maxInNorm', 3, 'Max-in-norm for regularisation') cmd:option('-patience', 10, 'Patience in early stopping') cmd:option('-minEpoch', 30, 'Minimum number of epochs before check for convergence') cmd:option('-maxEpoch', 150, 'Stop after this number of epochs even if not converged') -- cmd:option('-ignore', false, 'Is there a class we should ignore?') -- cmd:option('-ignoreClass', 0, 'Class to ignore for analysis') cmd:text() -- parse input params params = cmd:parse(arg) print(params.data) if not params.cpu then require 'cutorch' require 'cunn' cutorch.setDevice(params.gpu) cutorch.manualSeed(params.seed, params.gpu) end paths.mkdir(params.logdir) -- 1. FILESYSTEM: IMPORT DATA f = hdf5.open(params.data, 'r') data = f:read('/'):all() f:close() data.classes = json.load(params.data .. '.classes.json') setmetatable(data.training, {__index = function(t, i) return {t.inputs[i], t.targets[i]} end} ); function data.training:size() return self.inputs:size(1) end -- 2. DEFINE MODEL model = nn.Sequential() --Assume the data is 3D, where: -- Dimension 1: the index of the sliding window (e.g. 11437) -- Dimension 2: the number of timepoints per sliding window (e.g. 30) -- Dimension 3: the number of sensor features (e.g. 113) if data.training.inputs:size():size()==3 then --add reshape layer to model inputLayerSize = data.training.inputs:size(2)*data.training.inputs:size(3) model:add(nn.Reshape(inputLayerSize)) firstLayer = nn.Linear(inputLayerSize, params.layerSize) else firstLayer = nn.Linear(data.training.inputs:size(2), params.layerSize) end model:add(firstLayer) model:add(nn.Dropout(params.dropout)) model:add(nn.ReLU()) --Adding hidden layers: for layer=1,params.numLayers do model:add(nn.Linear(params.layerSize, params.layerSize)) model:add(nn.Dropout(params.dropout)) model:add(nn.ReLU()) end outputSize = 18 model:add(nn.Linear(params.layerSize, outputSize)) model:add(nn.LogSoftMax()) classWeights = {0.695899274285215, 0.0126781498644749, 0.0134650695112355, 0.0104922619568069, 0.0181865873917985, 0.0190609425548658, 0.0105796974731136, 0.0146017312232229, 0.0116289236687943, 0.0126781498644749, 0.014251989157996, 0.0112791816035674, 0.0195855556527061, 0.0200227332342397, 0.0106671329894203, 0.015825828451517, 0.072484043018274, 0.0166127480982775} classWeights = torch.Tensor(classWeights) classWeights = torch.ones(18):cdiv(classWeights) criterion = nn.ClassNLLCriterion(classWeights) print(model) -- 3. COMPUTATION SETTINGS torch.manualSeed(params.seed) torch.setnumthreads(16) if params.cpu==false then criterion:cuda() data.training.inputs = data.training.inputs:cuda() data.test.inputs = data.test.inputs:cuda() data.validation.inputs = data.validation.inputs:cuda() data.training.targets = data.training.targets:cuda() data.test.targets = data.test.targets:cuda() data.validation.targets = data.validation.targets:cuda() model:cuda() end --4. TRAINING / BACKPROPAGATION epochPerformance={} testPerformance={} -- get parameter references and initialise parameters, gradParameters = model:getParameters() parameters:uniform(-0.08,0.08) -- helper functions batchIter = stratBatchIter -- max in norm renormW = function(mod) -- rescale to incoming 2-norm of maxInNorm for each hidden unit local par = mod:parameters() -- skip layers without parameters (e.g. ReLU()) if not par then return end for i,p in pairs(par) do if p:dim() > 1 then -- layer weights p:renorm(2,p:dim(),params.maxInNorm) end end end local checkConvergence = function(epoch, win) -- check for convergence over last win epochs (on validation set) for p=(epoch-win+1),epoch do if (epochPerformance[p].meanF1score) > (epochPerformance[epoch-win].meanF1score) then -- if performance has increased relatively to last epoch at least once, -- then we have not converged! return false end end -- all epochs decreased in performance, we have converged return true end -- training function function train(data, labels) -- epoch tracker epoch = epoch or 1 -- set model to training mode model:training() -- local vars local time = sys.clock() -- do one epoch print('<trainer> on training set:') print("<trainer> online epoch # " .. epoch .. ' [batchSize = ' .. params.batchSize .. ']') local nbatch = torch.floor(data:size(1) / params.batchSize) local cnt = 1 -- cycle through stratified batches for batchIndex in batchIter(labels, params.batchSize) do -- create mini batch if data:nDimension()==3 then inputs = data:index(1,batchIndex):view(batchIndex:size(1),data:size(2),data:size(3)) end if params.cpu==false then targets = labels:index(1,batchIndex):cuda() else targets = labels:index(1,batchIndex) end -- create closure to evaluate f(X) and df/dX local feval = function(x) -- just in case: collectgarbage() -- get new parameters if x ~= parameters then parameters:copy(x) end -- reset gradients gradParameters:zero() -- evaluate function for complete mini batch local outputs = model:forward(inputs) local f = criterion:forward(outputs, targets:view(targets:size(1))) --print(f) -- estimate df/dW local df_do = criterion:backward(outputs, targets:view(targets:size(1))) if params.weights then df_do:cmul(params.weights:expandAs(df_do)) end -- backpropagate model:backward(inputs, df_do) -- return f and df/dX return f,gradParameters end sgdState = sgdState or { learningRate = params.learningRate, momentum = params.momentum, learningRateDecay = params.learningRateDecay } optim.sgd(feval, parameters, sgdState) -- renormalise weights for i,mod in ipairs(model.modules) do renormW(mod) end xlua.progress(cnt, nbatch) cnt = cnt + 1 end -- time taken time = sys.clock() - time time = time / data:size(1) print("<trainer> time to learn 1 sample = " .. (time*1000) .. 'ms') epoch = epoch + 1 end function test(data, labels, classes, testing) -- local vars local time = sys.clock() local confusion = optim.ConfusionMatrix(classes) confusion:zero() -- set to test mode model:evaluate() -- test over given data print('<trainer> on testing Set:') local nbatch = torch.floor(labels:size(1) / params.batchSize) local cnt = 1 for batchIndex in batchIter(labels:view(labels:size(1)), params.batchSize) do -- disp progress xlua.progress(cnt, nbatch) -- create mini batch -- local inputs = data:index(1,batchIndex):cuda() local inputs = data:index(1,batchIndex):view(batchIndex:size(1),data:size(2),data:size(3)) local targets = labels:index(1,batchIndex):view(batchIndex:size(1)) if not params.cpu then local targets = targets:cuda() end -- test samples local preds = model:forward(inputs) -- turn into softmax preds:exp() preds:cdiv(preds:sum(2):expandAs(preds)) -- confusion: for i = 1,batchIndex:size(1) do confusion:add(preds[i], targets[i]) end cnt = cnt + 1 end -- timing time = sys.clock() - time time = time / data:size(1) print("<trainer> time to test 1 sample = " .. (time*1000) .. 'ms') -- print confusion matrix print(confusion) local perf = {} perf.confusion = confusion perf.meanF1score = meanF1score(confusion) perf.TN = confusion.mat[1][1] / confusion.mat[1]:sum() perf.TP = confusion.mat[2][2] / confusion.mat[2]:sum() if testing == true then table.insert(testPerformance, perf) else table.insert(epochPerformance, perf) end return meanF1score(confusion) end local best = 0 local progress = {} progress.epochPerformance = epochPerformance progress.testPerformance = testPerformance for e=1,params.maxEpoch do train(data.training.inputs, data.training.targets) local score = test(data.validation.inputs, data.validation.targets, data.classes, false) test(data.test.inputs, data.test.targets, data.classes, true) if score > best then best = score epochPerformance.best = e torch.save(params.logdir .. '/model.dat', model) end -- save progress torch.save(params.logdir .. '/progress.dat', progress) if e > params.minEpoch then -- check for convergence if checkConvergence(e,params.patience) == true then break end end end
local Milo = require('milo') local Sound = require('sound') local UI = require('ui') local colors = _G.colors local context = Milo:getContext() local device = _G.device local speakerNode = context.storage:getSingleNode('speaker') if speakerNode then Sound.setVolume(speakerNode.volume) end local wizardPage = UI.Window { title = 'Speaker', index = 2, backgroundColor = colors.cyan, [1] = UI.Text { x = 2, y = 2, textColor = colors.yellow, value = 'Set the volume for sound effects', }, form = UI.Form { x = 2, ex = -2, y = 3, ey = -2, manualControls = true, volume = UI.TextEntry { formLabel = 'Volume', formKey = 'volume', width = 5, limit = 3, validate = 'numeric', help = 'A value from 0 (mute) to 1 (loud)', }, testSound = UI.Button { x = 15, y = 2, text = 'Test', event = 'test_sound', help = 'Test sound volume', }, }, } function wizardPage:setNode(node) self.form:setValues(node) end function wizardPage:saveNode(node) Sound.setVolume(node.volume) end function wizardPage:validate() return self.form:save() end function wizardPage:isValidType(node) local m = device[node.name] return m and m.type == 'speaker' and { name = 'Speaker', value = 'speaker', category = 'custom', help = 'Sound effects', } end function wizardPage:isValidFor(node) return node.mtype == 'speaker' end function wizardPage:eventHandler(event) if event.type == 'test_sound' then local vol = tonumber(self.form.volume.value) Sound.play('entity.item.pickup', vol) end end UI:getPage('nodeWizard').wizard:add({ speaker = wizardPage })
Object = require('./helpers/classic') Bullet = Object:extend() local bulletImage = love.graphics.newImage('resources/player/bullet1.png') function Bullet:new(x, y, direction) self.name = 'Bullet' self.startX = x self.startY = y self.x = x self.y = y self.xVelocity = 200 self.direction = direction self.scale = 0.05 self.width, self.height = bulletImage:getDimensions() world:add(self, x, y, self.width * self.scale, self.height * self.scale) end function Bullet:filter(other) local kind = other.name if kind == 'Enemy' then other.isVisible = false return 'touch' end return 'cross' end function Bullet:update(self, dt) -- self.x = self.x + self.xVelocity * dt -- self.y = self.y local goalX = self.x + self.xVelocity * self.direction * dt local goalY = self.y local actualX, actualY, cols, len = world:move(self, goalX, goalY, self.filter) self.x = actualX self.y = self.y --[[ -- check collisions self.x = self.x + actualX self.y = self.y + actualY if len > 0 then for item = 1, len do if cols[item].other.name == 'Enemy' then -- self.isVisible = false world:remove(self) end end end -- self.xVelocity = self.xVelocity + self.direction * dt ]]-- end function Bullet:draw(self) local originOffsetX = 0 if self.direction == -1 then originOffsetX = self.width end love.graphics.rectangle('line', self.x, self.y, self.width * self.scale, self.height * self.scale, 0, self.direction, 1, originOffsetX, 0) -- love.graphics.draw(bulletImage, self.x, self.y, 0, self.scale * self.direction , self.scale, originOffsetX, 0) love.graphics.draw(bulletImage, self.x, self.y, 0, self.direction * self.scale, self.scale, originOffsetX, 0) end -- destroy code. function Bullet:destroy(self) world:remove(self) end
--------------------------------------------------------------------------------------------------- ---main_menu_page_init_callbacks.lua ---author: Karl ---date: 2021.7.7 ---desc: implements the callbacks that initializes the main menu menu pages --------------------------------------------------------------------------------------------------- ---@class MainMenuPageInitCallbacks local _callbacks = {} --------------------------------------------------------------------------------------------------- ---menu page init callbacks ---create a replay saver/loader local function InitReplayMenuPage(is_saving, menu_manager) local ReplayMenuPage = require("BHElib.scenes.main_menu.replay_menu_page") return ReplayMenuPage(1, is_saving, menu_manager.replay_folder_path, 10, 3) end ---create a replay saver menu page ---@param menu_manager MainMenuManager function _callbacks.ReplaySaver(menu_manager) return InitReplayMenuPage(true, menu_manager) end ---create a replay loader menu page ---@param menu_manager MainMenuManager function _callbacks.ReplayLoader(menu_manager) return InitReplayMenuPage(false, menu_manager) end ---create a title menu page ---@param menu_manager MainMenuManager function _callbacks.Title(menu_manager) local TitleMenuPage = require("BHElib.scenes.main_menu.title_menu_page") return TitleMenuPage(1, menu_manager.temp_replay_path) end return _callbacks
local BASE_URL = "https://raw.githubusercontent.com/Deleranax/ComputerCraft-Projects/master/" if not _G.tpmTemp then _G.tpmTemp = {database = {}, installed = {}} end function httpGet(url) if not http then printError("HTTP is not available.") return nil end local data, err = http.get(url, nil, true) if not data then printError(url) printError(err or "Invalid URL.") return nil end return data.readAll() end function httpGetLines(url) if not http then printError("HTTP is not available.") return nil end local rtn = {} local data, err = http.get(url, nil, true) if not data then printError(url) printError(err or "Invalid URL.") return nil end local line = data.readLine() while line do table.insert(rtn, line) line = data.readLine() end return rtn end function get(name) if name == "" then return _G.tpmTemp.database end local cwd = _G.tpmTemp.database for v in name:gmatch("[^/]+") do cwd = cwd[v] if not cwd then break end end return cwd end function getInstalled(name) return _G.tpmTemp.installed[name] end function checkDir(url) local index = httpGetLines(BASE_URL..url.."CCINDEX") for i, v in ipairs(index) do if v:sub(-1) == "/" then get(url)[v:sub(1,-2)] = {} checkDir(url..v) else get(url)[v] = checkPack(url, v) end end end function checkPack(url, name) local manifest = httpGetLines(BASE_URL..url..name.."/CCMANIFEST") local version = tonumber(manifest[1]) local maintainer = manifest[2] table.remove(manifest, 1) table.remove(manifest, 1) return {name = name, version = version, maintainer = maintainer, url = BASE_URL..url..name.."/", files = manifest} end function listEntries(url, rtn) local index = get(url) for k, v in pairs(index) do if not v.name then if url == "" then listEntries(url..k, rtn) else listEntries(url.."/"..k, rtn) end else if url == "" then table.insert(rtn, k) else table.insert(rtn, url.."/"..k) end end end end function getPackageList() local rtn = {} listEntries("", rtn) return rtn end function getInstalledPackages() return _G.tpmTemp.installed end function getInstalledList() local keys = {} for k, v in pairs(_G.tpmTemp.installed) do table.insert(keys, k) end return keys end function getPackage(url) reloadDatabase() if not get(url) then printError("Unable to locate package "..url) return end if not get(url).name then printError("Unable to locate package "..url) return end return get(url) end function reloadDatabase() write("Reading package list... ") if not fs.exists(".tpm") then printError("Missing database. Try to update database.") return end file = fs.open(".tpm", "r") data = textutils.unserialize(file.readAll()) _G.tpmTemp.database = data.database _G.tpmTemp.installed = data.installed file.close() print("Done") end function updateDatabase() reloadDatabase() write("Connecting... ") httpGet(BASE_URL.."CCINDEX") print("Success") write("Updating package list... ") checkDir("") print("Done") saveDatabase() end function install(url) reloadDatabase() if not get(url) then printError("Unable to locate package "..url) return false end print("Fetching files...") for i, v in ipairs(get(url).files) do print("GET: "..v) file = fs.open(v, "wb") file.write(httpGet(BASE_URL..url.."/"..v)) file.close() end local name = "" local urls = "" for v in url:gmatch("[^/]+") do urls = urls..name name = v end _G.tpmTemp.installed[url] = checkPack(urls.."/", name) saveDatabase() print("Package successfully installed") return true end function remove(url) reloadDatabase() if not get(url) then printError("Unable to locate package "..url) end if not _G.tpmTemp.installed[url] then printError("Package "..url.." is not installed, so not removed") return false end print("Deleting files...") for i, v in ipairs(_G.tpmTemp.installed[url].files) do print("DEL: "..v) fs.delete(v) end _G.tpmTemp.installed[url] = nil saveDatabase() print("Package successfully removed") return true end function saveDatabase() write("Saving database... ") file = fs.open(".tpm", "wb") data = textutils.serialize({database = _G.tpmTemp.database, installed = _G.tpmTemp.installed}) file.write(data) file.close() print("Done") end return {BASE_URL = BASE_URL, httpGet = httpGet, httpGetLines = httpGetLines, reloadDatabase = reloadDatabase, updateDatabase = updateDatabase, saveDatabase = saveDatabase, get = get, getPackage = getPackage, getPackageList = getPackageList, getInstalledPackages = getInstalledPackages, getInstalledList = getInstalledList, install = install, remove = remove}
function extDynamicLib(location, dllname, env) local configs = { { filter="platforms:*32", arch="x86" }, { filter="platforms:*64", arch="x64" } } for key,config in pairs(configs) do filter (config.filter) local command = '{COPY} "$(SolutionDir)..\\' .. location:gsub('/', '\\') .. '\\' .. config.arch .. '\\' .. dllname .. '.dll" "$(OutputPath)"' postbuildcommands { command } end filter {} end function extStaticLib(location, libname) includedirs { location .. "/include" } filter "platforms:*32" libdirs { location .. "/lib/x86" } filter "platforms:*64" libdirs { location .. "/lib/x64" } filter {} links { "" .. libname } end function configure() configurations { "Debug", "Release" } platforms { "Win32", "x64" } filter "platforms:*32" system "Windows" architecture "x86" filter "platforms:*64" system "Windows" architecture "x86_64" filter {} flags { "ExtraWarnings", "FatalWarnings" } includedirs { "." } end function baseProject(kind_name, name) project(name) kind(kind_name) language "C++" configure() end function staticLibrary(name) baseProject("StaticLib", name) end function dynamicLibrary(name, file_filters) baseProject("DynamicLib", name) end function application(name, file_filters) baseProject("ConsoleApp", name) end workspace "DSEmu" location "build" startproject "DSEmu" configure() filter "configurations:Debug" defines { "DEBUG" } flags { "Symbols" } filter "configurations:Release" defines { "NDEBUG" } flags { "Symbols", "Optimize" } filter {} defines { "_CRT_SECURE_NO_WARNINGS" } staticLibrary "CpuTrace" files { "Contrib/CpuTrace/src/**.h", "Contrib/CpuTrace/src/**.cpp" } staticLibrary "Core" files { "Core/**.h", "Core/**.cpp", "Core/**.inl" } staticLibrary "NDS" files { "NDS/**.h", "NDS/**.cpp", } application "DSEmu" files { "DSEmu/**.h", "DSEmu/**.cpp", } links { "Core", "NDS", } application "ArmCpuGen" files { "Tools/ArmCpuGen/**.h", "Tools/ArmCpuGen/**.cpp", } application "ArmCpuReplay" files { "Tools/ArmCpuReplay/**.h", "Tools/ArmCpuReplay/**.cpp", } links { "Core", "CpuTrace", }
local KUI, E, L, V, P, G = unpack(select(2, ...)) function KUI:LoadDetailsProfile() _detalhes_global["__profiles"]['Klix'] = { ["capture_real"] = { ["heal"] = true, ["spellcast"] = true, ["miscdata"] = true, ["aura"] = true, ["energy"] = true, ["damage"] = true, }, ["row_fade_in"] = { "in", -- [1] 0.2, -- [2] }, ["player_details_window"] = { ["scale"] = 1, ["bar_texture"] = "Klix", ["skin"] = "ElvUI", }, ["numerical_system"] = 1, ["use_row_animations"] = false, ["report_heal_links"] = false, ["remove_realm_from_name"] = true, ["class_icons_small"] = "Interface\\AddOns\\Details\\images\\classes_small", ["report_to_who"] = "", ["overall_flag"] = 13, ["profile_save_pos"] = true, ["tooltip"] = { ["header_statusbar"] = { 0.3, -- [1] 0.3, -- [2] 0.3, -- [3] 0.8, -- [4] false, -- [5] false, -- [6] "WorldState Score", -- [7] }, ["fontcolor_right"] = { 1, -- [1] 0.7, -- [2] 0, -- [3] 1, -- [4] }, ["tooltip_max_targets"] = 2, ["icon_size"] = { ["W"] = 13, ["H"] = 13, }, ["tooltip_max_pets"] = 2, ["anchor_relative"] = "top", ["abbreviation"] = 2, ["anchored_to"] = 1, ["show_amount"] = false, ["header_text_color"] = { 1, -- [1] 0.9176, -- [2] 0, -- [3] 1, -- [4] }, ["fontsize"] = 12, ["background"] = { 0.196, -- [1] 0.196, -- [2] 0.196, -- [3] 0.8697, -- [4] }, ["submenu_wallpaper"] = true, ["fontsize_title"] = 12, ["icon_border_texcoord"] = { ["B"] = 0.921875, ["L"] = 0.078125, ["T"] = 0.078125, ["R"] = 0.921875, }, ["commands"] = { }, ["tooltip_max_abilities"] = 5, ["fontface"] = "Expressway", ["border_color"] = { 1, -- [1] 1, -- [2] 1, -- [3] 0, -- [4] }, ["border_texture"] = "Blizzard Tooltip", ["anchor_offset"] = { 0, -- [1] 0, -- [2] }, ["menus_bg_texture"] = "Interface\\SPELLBOOK\\Spellbook-Page-1", ["maximize_method"] = 1, ["border_size"] = 14, ["fontshadow"] = true, ["anchor_screen_pos"] = { 507.7, -- [1] -350.5, -- [2] }, ["anchor_point"] = "bottom", ["menus_bg_coords"] = { 0.309777336120606, -- [1] 0.924000015258789, -- [2] 0.213000011444092, -- [3] 0.279000015258789, -- [4] }, ["fontcolor"] = { 1, -- [1] 1, -- [2] 1, -- [3] 1, -- [4] }, ["menus_bg_color"] = { 0.8, -- [1] 0.8, -- [2] 0.8, -- [3] 0.2, -- [4] }, }, ["ps_abbreviation"] = 3, ["world_combat_is_trash"] = false, ["update_speed"] = 0.0500000011920929, ["track_item_level"] = true, ["windows_fade_in"] = { "in", -- [1] 0.2, -- [2] }, ["instances_menu_click_to_open"] = false, ["overall_clear_newchallenge"] = true, ["time_type"] = 2, ["instances_disable_bar_highlight"] = false, ["trash_concatenate"] = false, ["disable_stretch_from_toolbar"] = false, ["disable_lock_ungroup_buttons"] = false, ["memory_ram"] = 64, ["disable_window_groups"] = false, ["instances_suppress_trash"] = 0, ["font_faces"] = { ["menus"] = "Expressway", }, ["segments_amount"] = 12, ["report_lines"] = 5, ["skin"] = "ElvUI Frame Style", ["override_spellids"] = true, ["use_battleground_server_parser"] = true, ["default_bg_alpha"] = 0.5, ["clear_ungrouped"] = true, ["chat_tab_embed"] = { ["enabled"] = false, ["tab_name"] = "", ["single_window"] = false, }, ["minimum_combat_time"] = 5, ["animate_scroll"] = false, ["cloud_capture"] = true, ["damage_taken_everything"] = false, ["scroll_speed"] = 2, ["new_window_size"] = { ["height"] = 155, ["width"] = 320, }, ["memory_threshold"] = 3, ["deadlog_events"] = 32, ["class_specs_coords"] = { [62] = { 0.251953125, -- [1] 0.375, -- [2] 0.125, -- [3] 0.25, -- [4] }, [63] = { 0.375, -- [1] 0.5, -- [2] 0.125, -- [3] 0.25, -- [4] }, [250] = { 0, -- [1] 0.125, -- [2] 0, -- [3] 0.125, -- [4] }, [251] = { 0.125, -- [1] 0.25, -- [2] 0, -- [3] 0.125, -- [4] }, [252] = { 0.25, -- [1] 0.375, -- [2] 0, -- [3] 0.125, -- [4] }, [253] = { 0.875, -- [1] 1, -- [2] 0, -- [3] 0.125, -- [4] }, [254] = { 0, -- [1] 0.125, -- [2] 0.125, -- [3] 0.25, -- [4] }, [255] = { 0.125, -- [1] 0.25, -- [2] 0.125, -- [3] 0.25, -- [4] }, [66] = { 0.125, -- [1] 0.25, -- [2] 0.25, -- [3] 0.375, -- [4] }, [257] = { 0.5, -- [1] 0.625, -- [2] 0.25, -- [3] 0.375, -- [4] }, [258] = { 0.6328125, -- [1] 0.75, -- [2] 0.25, -- [3] 0.375, -- [4] }, [259] = { 0.75, -- [1] 0.875, -- [2] 0.25, -- [3] 0.375, -- [4] }, [260] = { 0.875, -- [1] 1, -- [2] 0.25, -- [3] 0.375, -- [4] }, [577] = { 0.25, -- [1] 0.375, -- [2] 0.5, -- [3] 0.625, -- [4] }, [262] = { 0.125, -- [1] 0.25, -- [2] 0.375, -- [3] 0.5, -- [4] }, [581] = { 0.375, -- [1] 0.5, -- [2] 0.5, -- [3] 0.625, -- [4] }, [264] = { 0.375, -- [1] 0.5, -- [2] 0.375, -- [3] 0.5, -- [4] }, [265] = { 0.5, -- [1] 0.625, -- [2] 0.375, -- [3] 0.5, -- [4] }, [266] = { 0.625, -- [1] 0.75, -- [2] 0.375, -- [3] 0.5, -- [4] }, [267] = { 0.75, -- [1] 0.875, -- [2] 0.375, -- [3] 0.5, -- [4] }, [268] = { 0.625, -- [1] 0.75, -- [2] 0.125, -- [3] 0.25, -- [4] }, [269] = { 0.875, -- [1] 1, -- [2] 0.125, -- [3] 0.25, -- [4] }, [270] = { 0.75, -- [1] 0.875, -- [2] 0.125, -- [3] 0.25, -- [4] }, [70] = { 0.251953125, -- [1] 0.375, -- [2] 0.25, -- [3] 0.375, -- [4] }, [102] = { 0.375, -- [1] 0.5, -- [2] 0, -- [3] 0.125, -- [4] }, [71] = { 0.875, -- [1] 1, -- [2] 0.375, -- [3] 0.5, -- [4] }, [103] = { 0.5, -- [1] 0.625, -- [2] 0, -- [3] 0.125, -- [4] }, [72] = { 0, -- [1] 0.125, -- [2] 0.5, -- [3] 0.625, -- [4] }, [104] = { 0.625, -- [1] 0.75, -- [2] 0, -- [3] 0.125, -- [4] }, [73] = { 0.125, -- [1] 0.25, -- [2] 0.5, -- [3] 0.625, -- [4] }, [64] = { 0.5, -- [1] 0.625, -- [2] 0.125, -- [3] 0.25, -- [4] }, [105] = { 0.75, -- [1] 0.875, -- [2] 0, -- [3] 0.125, -- [4] }, [65] = { 0, -- [1] 0.125, -- [2] 0.25, -- [3] 0.375, -- [4] }, [256] = { 0.375, -- [1] 0.5, -- [2] 0.25, -- [3] 0.375, -- [4] }, [261] = { 0, -- [1] 0.125, -- [2] 0.375, -- [3] 0.5, -- [4] }, [263] = { 0.25, -- [1] 0.375, -- [2] 0.375, -- [3] 0.5, -- [4] }, }, ["close_shields"] = false, ["class_coords"] = { ["HUNTER"] = { 0, -- [1] 0.25, -- [2] 0.25, -- [3] 0.5, -- [4] }, ["WARRIOR"] = { 0, -- [1] 0.25, -- [2] 0, -- [3] 0.25, -- [4] }, ["ROGUE"] = { 0.49609375, -- [1] 0.7421875, -- [2] 0, -- [3] 0.25, -- [4] }, ["MAGE"] = { 0.25, -- [1] 0.49609375, -- [2] 0, -- [3] 0.25, -- [4] }, ["PET"] = { 0.25, -- [1] 0.49609375, -- [2] 0.75, -- [3] 1, -- [4] }, ["DRUID"] = { 0.7421875, -- [1] 0.98828125, -- [2] 0, -- [3] 0.25, -- [4] }, ["MONK"] = { 0.5, -- [1] 0.73828125, -- [2] 0.5, -- [3] 0.75, -- [4] }, ["DEATHKNIGHT"] = { 0.25, -- [1] 0.5, -- [2] 0.5, -- [3] 0.75, -- [4] }, ["MONSTER"] = { 0, -- [1] 0.25, -- [2] 0.75, -- [3] 1, -- [4] }, ["UNKNOW"] = { 0.5, -- [1] 0.75, -- [2] 0.75, -- [3] 1, -- [4] }, ["PRIEST"] = { 0.49609375, -- [1] 0.7421875, -- [2] 0.25, -- [3] 0.5, -- [4] }, ["SHAMAN"] = { 0.25, -- [1] 0.49609375, -- [2] 0.25, -- [3] 0.5, -- [4] }, ["Alliance"] = { 0.49609375, -- [1] 0.7421875, -- [2] 0.75, -- [3] 1, -- [4] }, ["ENEMY"] = { 0, -- [1] 0.25, -- [2] 0.75, -- [3] 1, -- [4] }, ["DEMONHUNTER"] = { 0.73828126, -- [1] 1, -- [2] 0.5, -- [3] 0.75, -- [4] }, ["Horde"] = { 0.7421875, -- [1] 0.98828125, -- [2] 0.75, -- [3] 1, -- [4] }, ["PALADIN"] = { 0, -- [1] 0.25, -- [2] 0.5, -- [3] 0.75, -- [4] }, ["UNGROUPPLAYER"] = { 0.5, -- [1] 0.75, -- [2] 0.75, -- [3] 1, -- [4] }, ["WARLOCK"] = { 0.7421875, -- [1] 0.98828125, -- [2] 0.25, -- [3] 0.5, -- [4] }, }, ["overall_clear_logout"] = false, ["disable_alldisplays_window"] = false, ["pvp_as_group"] = true, ["force_activity_time_pvp"] = true, ["windows_fade_out"] = { "out", -- [1] 0.2, -- [2] }, ["death_tooltip_width"] = 300, ["clear_graphic"] = true, ["hotcorner_topleft"] = { ["hide"] = false, }, ["segments_auto_erase"] = 1, ["options_group_edit"] = true, ["segments_amount_to_save"] = 5, ["minimap"] = { ["onclick_what_todo"] = 1, ["radius"] = 160, ["text_type"] = 1, ["minimapPos"] = 220, ["text_format"] = 3, ["hide"] = false, }, ["instances_amount"] = 5, ["max_window_size"] = { ["height"] = 450, ["width"] = 480, }, ["trash_auto_remove"] = true, ["only_pvp_frags"] = false, ["disable_stretch_button"] = false, ["time_type_original"] = 2, ["default_bg_color"] = 0.0941, ["numerical_system_symbols"] = "auto", ["segments_panic_mode"] = false, ["window_clamp"] = { -8, -- [1] 0, -- [2] 21, -- [3] -14, -- [4] }, ["standard_skin"] = { ["show_statusbar"] = false, ["backdrop_texture"] = "Details Ground", ["color"] = { 1, -- [1] 1, -- [2] 1, -- [3] 1, -- [4] }, ["menu_anchor"] = { 16, -- [1] 2, -- [2] ["side"] = 2, }, ["bg_r"] = 0.3294, ["skin"] = "ElvUI Frame Style", ["following"] = { ["bar_color"] = { 1, -- [1] 1, -- [2] 1, -- [3] }, ["enabled"] = false, ["text_color"] = { 1, -- [1] 1, -- [2] 1, -- [3] }, }, ["color_buttons"] = { 1, -- [1] 1, -- [2] 1, -- [3] 1, -- [4] }, ["switch_healer"] = false, ["micro_displays_locked"] = true, ["bg_b"] = 0.3294, ["tooltip"] = { ["n_abilities"] = 3, ["n_enemies"] = 3, }, ["desaturated_menu"] = false, ["switch_tank_in_combat"] = false, ["switch_all_roles_in_combat"] = false, ["instance_button_anchor"] = { -27, -- [1] 1, -- [2] }, ["bg_alpha"] = 0.51, ["attribute_text"] = { ["enabled"] = true, ["shadow"] = true, ["side"] = 1, ["text_color"] = { 1, -- [1] 1, -- [2] 1, -- [3] 0.7, -- [4] }, ["custom_text"] = "{name}", ["text_face"] = "Expressway", ["anchor"] = { -18, -- [1] 3, -- [2] }, ["show_timer"] = { true, -- [1] true, -- [2] true, -- [3] }, ["enable_custom_text"] = false, ["text_size"] = 12, }, ["libwindow"] = { }, ["menu_alpha"] = { ["enabled"] = false, ["onleave"] = 1, ["ignorebars"] = false, ["iconstoo"] = true, ["onenter"] = 1, }, ["stretch_button_side"] = 1, ["micro_displays_side"] = 2, ["switch_healer_in_combat"] = false, ["strata"] = "LOW", ["hide_in_combat_type"] = 1, ["statusbar_info"] = { ["alpha"] = 1, ["overlay"] = { 1, -- [1] 1, -- [2] 1, -- [3] }, }, ["switch_tank"] = false, ["hide_in_combat_alpha"] = 0, ["switch_all_roles_after_wipe"] = false, ["menu_icons"] = { true, -- [1] true, -- [2] true, -- [3] true, -- [4] true, -- [5] false, -- [6] ["space"] = -2, ["shadow"] = true, }, ["switch_damager"] = false, ["show_sidebars"] = true, ["window_scale"] = 1, ["bars_grow_direction"] = 1, ["row_info"] = { ["textR_outline"] = true, ["spec_file"] = "Interface\\AddOns\\Details\\images\\spec_icons_normal", ["textL_outline"] = true, ["texture_highlight"] = "Interface\\FriendsFrame\\UI-FriendsList-Highlight", ["textL_outline_small"] = true, ["textL_enable_custom_text"] = false, ["fixed_text_color"] = { 1, -- [1] 1, -- [2] 1, -- [3] }, ["space"] = { ["right"] = -2, ["left"] = 1, ["between"] = 1, }, ["texture_background_class_color"] = false, ["textL_outline_small_color"] = { 0, -- [1] 0, -- [2] 0, -- [3] 1, -- [4] }, ["font_face_file"] = "Interface\\Addons\\Details\\fonts\\Expressway.ttf", ["textL_custom_text"] = "{data1}. {data3}{data2}", ["font_size"] = 12, ["height"] = 16, ["texture_file"] = "Interface\\AddOns\\Details\\images\\bar_skyline", ["icon_file"] = "Interface\\AddOns\\Details\\images\\classes_small_alpha", ["texture_custom_file"] = "Interface\\", ["texture_background_file"] = "Interface\\AddOns\\Details\\images\\bar_background", ["use_spec_icons"] = true, ["textR_enable_custom_text"] = false, ["models"] = { ["upper_model"] = "Spells\\AcidBreath_SuperGreen.M2", ["lower_model"] = "World\\EXPANSION02\\DOODADS\\Coldarra\\COLDARRALOCUS.m2", ["upper_alpha"] = 0.5, ["lower_enabled"] = false, ["lower_alpha"] = 0.1, ["upper_enabled"] = false, }, ["fixed_texture_color"] = { 0, -- [1] 0, -- [2] 0, -- [3] }, ["textL_show_number"] = true, ["fixed_texture_background_color"] = { 0, -- [1] 0, -- [2] 0, -- [3] 0.339636147022247, -- [4] }, ["backdrop"] = { ["enabled"] = false, ["texture"] = "Details BarBorder 2", ["color"] = { 0, -- [1] 0, -- [2] 0, -- [3] 1, -- [4] }, ["size"] = 4, }, ["textR_custom_text"] = "{data1} ({data2}, {data3}%)", ["texture"] = "KlixOnePixel", ["textR_outline_small"] = true, ["percent_type"] = 1, ["textR_show_data"] = { true, -- [1] true, -- [2] true, -- [3] }, ["texture_background"] = "DGround", ["alpha"] = 0.8, ["textR_class_colors"] = false, ["textR_outline_small_color"] = { 0, -- [1] 0, -- [2] 0, -- [3] 1, -- [4] }, ["no_icon"] = false, ["textL_class_colors"] = false, ["texture_custom"] = "Klix", ["font_face"] = "Expressway", ["texture_class_colors"] = true, ["start_after_icon"] = false, ["fast_ps_update"] = false, ["textR_separator"] = ",", ["textR_bracket"] = "(", }, ["grab_on_top"] = false, ["hide_icon"] = true, ["switch_damager_in_combat"] = false, ["row_show_animation"] = { ["anim"] = "Fade", ["options"] = { }, }, ["bars_sort_direction"] = 1, ["auto_current"] = true, ["toolbar_side"] = 1, ["bg_g"] = 0.3294, ["menu_anchor_down"] = { 16, -- [1] -2, -- [2] }, ["hide_in_combat"] = false, ["auto_hide_menu"] = { ["left"] = false, ["right"] = false, }, ["menu_icons_size"] = 0.899999976158142, ["plugins_grow_direction"] = 1, ["wallpaper"] = { ["overlay"] = { 0.999997794628143, -- [1] 0.999997794628143, -- [2] 0.999997794628143, -- [3] 0.799998223781586, -- [4] }, ["width"] = 266.000061035156, ["texcoord"] = { 0.0480000019073486, -- [1] 0.298000011444092, -- [2] 0.630999984741211, -- [3] 0.755999984741211, -- [4] }, ["enabled"] = true, ["anchor"] = "all", ["height"] = 225.999984741211, ["alpha"] = 0.800000071525574, ["texture"] = "Interface\\AddOns\\Details\\images\\skins\\elvui", }, ["total_bar"] = { ["enabled"] = false, ["only_in_group"] = true, ["icon"] = "Interface\\ICONS\\INV_Sigil_Thorim", ["color"] = { 1, -- [1] 1, -- [2] 1, -- [3] }, }, ["hide_out_of_combat"] = false, ["skin_custom"] = "", ["ignore_mass_showhide"] = false, ["bars_inverted"] = false, }, ["row_fade_out"] = { "out", -- [1] 0.2, -- [2] }, ["use_scroll"] = false, ["class_colors"] = { ["HUNTER"] = { 0.67, -- [1] 0.83, -- [2] 0.45, -- [3] }, ["WARRIOR"] = { 0.78, -- [1] 0.61, -- [2] 0.43, -- [3] }, ["PALADIN"] = { 0.96, -- [1] 0.55, -- [2] 0.73, -- [3] }, ["MAGE"] = { 0.41, -- [1] 0.8, -- [2] 0.94, -- [3] }, ["ARENA_YELLOW"] = { 0.9, -- [1] 0.9, -- [2] 0, -- [3] }, ["UNGROUPPLAYER"] = { 0.4, -- [1] 0.4, -- [2] 0.4, -- [3] }, ["DRUID"] = { 1, -- [1] 0.49, -- [2] 0.04, -- [3] }, ["MONK"] = { 0, -- [1] 1, -- [2] 0.59, -- [3] }, ["DEATHKNIGHT"] = { 0.77, -- [1] 0.12, -- [2] 0.23, -- [3] }, ["ENEMY"] = { 0.94117, -- [1] 0, -- [2] 0.0196, -- [3] 1, -- [4] }, ["UNKNOW"] = { 0.2, -- [1] 0.2, -- [2] 0.2, -- [3] }, ["PRIEST"] = { 1, -- [1] 1, -- [2] 1, -- [3] }, ["SHAMAN"] = { 0, -- [1] 0.44, -- [2] 0.87, -- [3] }, ["ARENA_GREEN"] = { 0.1, -- [1] 0.85, -- [2] 0.1, -- [3] }, ["WARLOCK"] = { 0.58, -- [1] 0.51, -- [2] 0.79, -- [3] }, ["DEMONHUNTER"] = { 0.64, -- [1] 0.19, -- [2] 0.79, -- [3] }, ["version"] = 1, ["NEUTRAL"] = { 1, -- [1] 1, -- [2] 0, -- [3] }, ["ROGUE"] = { 1, -- [1] 0.96, -- [2] 0.41, -- [3] }, ["PET"] = { 0.3, -- [1] 0.4, -- [2] 0.5, -- [3] }, }, ["total_abbreviation"] = 2, ["report_schema"] = 1, ["overall_clear_newboss"] = true, ["font_sizes"] = { ["menus"] = 12, }, ["disable_reset_button"] = false, ["data_broker_text"] = "", ["instances_no_libwindow"] = false, ["instances_segments_locked"] = false, ["deadlog_limit"] = 16, ["instances"] = { { ["__pos"] = { ["normal"] = { ["y"] = -452.999885559082, ["x"] = 650.000244140625, ["w"] = 200.000061035156, ["h"] = 155.999969482422, }, ["solo"] = { ["y"] = 2, ["x"] = 1, ["w"] = 300, ["h"] = 200, }, }, ["hide_in_combat_type"] = 1, ["backdrop_texture"] = "None", ["color"] = { 1, -- [1] 1, -- [2] 1, -- [3] 1, -- [4] }, ["menu_anchor"] = { 16, -- [1] 2, -- [2] ["side"] = 2, }, ["__snapV"] = false, ["__snapH"] = false, ["bg_r"] = 0.3294, ["row_show_animation"] = { ["anim"] = "Fade", ["options"] = { }, }, ["plugins_grow_direction"] = 1, ["hide_out_of_combat"] = false, ["__was_opened"] = true, ["following"] = { ["enabled"] = false, ["bar_color"] = { 1, -- [1] 1, -- [2] 1, -- [3] }, ["text_color"] = { 1, -- [1] 1, -- [2] 1, -- [3] }, }, ["color_buttons"] = { 1, -- [1] 1, -- [2] 1, -- [3] 1, -- [4] }, ["switch_healer"] = false, ["skin_custom"] = "", ["bars_sort_direction"] = 1, ["show_statusbar"] = false, ["bars_grow_direction"] = 1, ["menu_anchor_down"] = { 16, -- [1] -2, -- [2] }, ["tooltip"] = { ["n_abilities"] = 3, ["n_enemies"] = 3, }, ["StatusBarSaved"] = { ["center"] = "DETAILS_STATUSBAR_PLUGIN_CLOCK", ["right"] = "DETAILS_STATUSBAR_PLUGIN_PDPS", ["options"] = { ["DETAILS_STATUSBAR_PLUGIN_PDPS"] = { ["textColor"] = { 1, -- [1] 1, -- [2] 1, -- [3] 1, -- [4] }, ["textXMod"] = 0, ["textFace"] = "Expressway", ["textStyle"] = 2, ["textAlign"] = 0, ["textSize"] = 10, ["textYMod"] = 1, }, ["DETAILS_STATUSBAR_PLUGIN_PSEGMENT"] = { ["textColor"] = { 1, -- [1] 1, -- [2] 1, -- [3] 1, -- [4] }, ["segmentType"] = 2, ["textXMod"] = 0, ["textFace"] = "Expressway", ["textAlign"] = 0, ["textStyle"] = 2, ["textSize"] = 12, ["textYMod"] = 1, }, ["DETAILS_STATUSBAR_PLUGIN_CLOCK"] = { ["textColor"] = { 1, -- [1] 1, -- [2] 1, -- [3] 1, -- [4] }, ["textStyle"] = 2, ["textFace"] = "Expressway", ["textAlign"] = 0, ["textXMod"] = 6, ["timeType"] = 1, ["textSize"] = 10, ["textYMod"] = 1, }, }, ["left"] = "DETAILS_STATUSBAR_PLUGIN_PSEGMENT", }, ["total_bar"] = { ["enabled"] = false, ["only_in_group"] = true, ["icon"] = "Interface\\ICONS\\INV_Sigil_Thorim", ["color"] = { 1, -- [1] 1, -- [2] 1, -- [3] }, }, ["switch_all_roles_in_combat"] = false, ["instance_button_anchor"] = { -27, -- [1] 1, -- [2] }, ["version"] = 3, ["attribute_text"] = { ["show_timer"] = { true, -- [1] true, -- [2] true, -- [3] }, ["shadow"] = true, ["side"] = 1, ["text_color"] = { 1, -- [1] 1, -- [2] 1, -- [3] 0.7, -- [4] }, ["custom_text"] = "{name}", ["text_face"] = "Expressway", ["anchor"] = { -18, -- [1] 3, -- [2] }, ["text_size"] = 12, ["enable_custom_text"] = false, ["enabled"] = true, }, ["__locked"] = true, ["menu_alpha"] = { ["enabled"] = false, ["onenter"] = 1, ["iconstoo"] = true, ["ignorebars"] = false, ["onleave"] = 1, }, ["switch_damager_in_combat"] = false, ["micro_displays_locked"] = true, ["switch_tank_in_combat"] = false, ["strata"] = "LOW", ["grab_on_top"] = false, ["__snap"] = { [3] = 2, }, ["switch_tank"] = false, ["hide_in_combat_alpha"] = 0, ["switch_all_roles_after_wipe"] = false, ["menu_icons"] = { true, -- [1] true, -- [2] true, -- [3] true, -- [4] true, -- [5] false, -- [6] ["space"] = -2, ["shadow"] = true, }, ["switch_damager"] = false, ["micro_displays_side"] = 2, ["statusbar_info"] = { ["alpha"] = 1, ["overlay"] = { 1, -- [1] 1, -- [2] 1, -- [3] }, }, ["window_scale"] = 1, ["libwindow"] = { ["y"] = 10,-------Anchorpoint ["x"] = -210,-------Anchorpoint ["point"] = "BOTTOMRIGHT", }, ["desaturated_menu"] = true, ["bars_inverted"] = false, ["hide_icon"] = true, ["switch_healer_in_combat"] = false, ["bg_alpha"] = 0.55, ["auto_current"] = true, ["toolbar_side"] = 1, ["bg_g"] = 0.3294, ["skin"] = "ElvUI Frame Style", ["hide_in_combat"] = false, ["posicao"] = { ["normal"] = { ["y"] = -452.999885559082, ["x"] = 650.000244140625, ["w"] = 200.000061035156, ["h"] = 155.999969482422, }, ["solo"] = { ["y"] = 2, ["x"] = 1, ["w"] = 300, ["h"] = 200, }, }, ["menu_icons_size"] = 0.899999976158142, ["ignore_mass_showhide"] = false, ["wallpaper"] = { ["enabled"] = false, ["texture"] = "Interface\\AddOns\\Details\\images\\skins\\elvui", ["texcoord"] = { 0.0480000019073486, -- [1] 0.298000011444092, -- [2] 0.630999984741211, -- [3] 0.755999984741211, -- [4] }, ["overlay"] = { 0.999997794628143, -- [1] 0.999997794628143, -- [2] 0.999997794628143, -- [3] 0.799998223781586, -- [4] }, ["anchor"] = "all", ["height"] = 225.999984741211, ["alpha"] = 0.800000071525574, ["width"] = 266.000061035156, }, ["stretch_button_side"] = 1, ["auto_hide_menu"] = { ["left"] = true, ["right"] = false, }, ["show_sidebars"] = false, ["row_info"] = { ["textR_outline"] = false, ["spec_file"] = "Interface\\AddOns\\Details\\images\\spec_icons_normal", ["textL_outline"] = false, ["textR_outline_small"] = true, ["textL_outline_small"] = true, ["percent_type"] = 1, ["fixed_text_color"] = { 1, -- [1] 1, -- [2] 1, -- [3] }, ["space"] = { ["right"] = 0, ["left"] = 0, ["between"] = 2, }, ["texture_background_class_color"] = false, ["start_after_icon"] = false, ["font_face_file"] = "Interface\\AddOns\\ElvUI_KlixUI\\media\\fonts\\Expressway.ttf", ["textL_custom_text"] = "{data1}. {data3}{data2}", ["font_size"] = 12, ["texture_custom_file"] = "Interface\\", ["texture_file"] = "Interface\\AddOns\\ElvUI_KlixUI\\media\\textures\\KlixOnePixel.tga", ["icon_file"] = "Interface\\AddOns\\Details\\images\\classes_small_alpha", ["use_spec_icons"] = true, ["models"] = { ["upper_model"] = "Spells\\AcidBreath_SuperGreen.M2", ["lower_model"] = "World\\EXPANSION02\\DOODADS\\Coldarra\\COLDARRALOCUS.m2", ["upper_alpha"] = 0.5, ["lower_enabled"] = false, ["lower_alpha"] = 0.1, ["upper_enabled"] = false, }, ["textR_bracket"] = "(", ["textR_enable_custom_text"] = false, ["backdrop"] = { ["enabled"] = false, ["size"] = 4, ["color"] = { 0, -- [1] 0, -- [2] 0, -- [3] 1, -- [4] }, ["texture"] = "Details BarBorder 2", }, ["fixed_texture_color"] = { 0, -- [1] 0, -- [2] 0, -- [3] }, ["textL_show_number"] = true, ["fixed_texture_background_color"] = { 0, -- [1] 0, -- [2] 0, -- [3] 0.339636147022247, -- [4] }, ["texture_custom"] = "", ["textR_custom_text"] = "{data1} ({data2}, {data3}%)", ["texture"] = "KlixOnePixel", ["texture_highlight"] = "Interface\\FriendsFrame\\UI-FriendsList-Highlight", ["textL_enable_custom_text"] = false, ["textR_class_colors"] = true, ["textL_class_colors"] = true, ["textR_outline_small_color"] = { 0, -- [1] 0, -- [2] 0, -- [3] 1, -- [4] }, ["texture_background"] = "Empty", ["alpha"] = 0.8, ["no_icon"] = false, ["textR_show_data"] = { true, -- [1] true, -- [2] true, -- [3] }, ["textL_outline_small_color"] = { 0, -- [1] 0, -- [2] 0, -- [3] 1, -- [4] }, ["font_face"] = "Expressway", ["texture_class_colors"] = true, ["texture_background_file"] = "Interface\\Addons\\ElvUI_KlixUI\\media\\textures\\Empty.tga", ["fast_ps_update"] = false, ["textR_separator"] = ",", ["height"] = 16, }, ["bg_b"] = 0.3294, }, -- [1] { ["__pos"] = { ["normal"] = { ["y"] = -452.999885559082, ["x"] = 852.000122070313, ["w"] = 200,-----Windowsize ["h"] = 155.999969482422, }, ["solo"] = { ["y"] = 2, ["x"] = 1, ["w"] = 300, ["h"] = 200, }, }, ["hide_in_combat_type"] = 1, ["backdrop_texture"] = "None", ["color"] = { 1, -- [1] 1, -- [2] 1, -- [3] 1, -- [4] }, ["menu_anchor"] = { 16, -- [1] 2, -- [2] ["side"] = 2, }, ["__snapV"] = false, ["__snapH"] = false, ["bg_r"] = 0.3294, ["row_show_animation"] = { ["anim"] = "Fade", ["options"] = { }, }, ["plugins_grow_direction"] = 1, ["hide_out_of_combat"] = false, ["__was_opened"] = true, ["following"] = { ["enabled"] = false, ["bar_color"] = { 1, -- [1] 1, -- [2] 1, -- [3] }, ["text_color"] = { 1, -- [1] 1, -- [2] 1, -- [3] }, }, ["color_buttons"] = { 1, -- [1] 1, -- [2] 1, -- [3] 1, -- [4] }, ["switch_healer"] = false, ["skin_custom"] = "", ["bars_sort_direction"] = 1, ["show_statusbar"] = false, ["bars_grow_direction"] = 1, ["menu_anchor_down"] = { 16, -- [1] -2, -- [2] }, ["tooltip"] = { ["n_abilities"] = 3, ["n_enemies"] = 3, }, ["StatusBarSaved"] = { ["center"] = "DETAILS_STATUSBAR_PLUGIN_CLOCK", ["right"] = "DETAILS_STATUSBAR_PLUGIN_PDPS", ["options"] = { ["DETAILS_STATUSBAR_PLUGIN_PDPS"] = { ["textYMod"] = 1, ["textXMod"] = 0, ["textFace"] = "Expressway", ["textAlign"] = 0, ["textStyle"] = 2, ["textSize"] = 12, ["textColor"] = { 1, -- [1] 1, -- [2] 1, -- [3] 0.7, -- [4] }, }, ["DETAILS_STATUSBAR_PLUGIN_THREAT"] = { ["isHidden"] = false, ["textStyle"] = 2, ["textYMod"] = 1, ["segmentType"] = 2, ["textXMod"] = 0, ["textFace"] = "Expressway", ["textAlign"] = 0, ["textSize"] = 10, ["textColor"] = { 1, -- [1] 1, -- [2] 1, -- [3] 0.7, -- [4] }, }, ["DETAILS_STATUSBAR_PLUGIN_CLOCK"] = { ["textColor"] = { 1, -- [1] 1, -- [2] 1, -- [3] 0.7, -- [4] }, ["textXMod"] = 6, ["textFace"] = "Expressway", ["textAlign"] = 0, ["textStyle"] = 2, ["timeType"] = 1, ["textSize"] = 12, ["textYMod"] = 1, }, }, ["left"] = "DETAILS_STATUSBAR_PLUGIN_THREAT", }, ["total_bar"] = { ["enabled"] = false, ["only_in_group"] = true, ["icon"] = "Interface\\ICONS\\INV_Sigil_Thorim", ["color"] = { 1, -- [1] 1, -- [2] 1, -- [3] }, }, ["switch_all_roles_in_combat"] = false, ["instance_button_anchor"] = { -27, -- [1] 1, -- [2] }, ["version"] = 3, ["attribute_text"] = { ["show_timer"] = { true, -- [1] true, -- [2] true, -- [3] }, ["shadow"] = true, ["side"] = 1, ["text_color"] = { 1, -- [1] 1, -- [2] 1, -- [3] 0.7, -- [4] }, ["custom_text"] = "{name}", ["text_face"] = "Expressway", ["anchor"] = { -18, -- [1] 3, -- [2] }, ["text_size"] = 12, ["enable_custom_text"] = false, ["enabled"] = true, }, ["__locked"] = true, ["menu_alpha"] = { ["enabled"] = false, ["onenter"] = 1, ["iconstoo"] = true, ["ignorebars"] = false, ["onleave"] = 1, }, ["switch_damager_in_combat"] = false, ["micro_displays_locked"] = true, ["switch_tank_in_combat"] = false, ["strata"] = "LOW", ["grab_on_top"] = false, ["__snap"] = { 1, -- [1] }, ["switch_tank"] = false, ["hide_in_combat_alpha"] = 0, ["switch_all_roles_after_wipe"] = false, ["menu_icons"] = { true, -- [1] true, -- [2] true, -- [3] true, -- [4] true, -- [5] false, -- [6] ["space"] = -2, ["shadow"] = true, }, ["switch_damager"] = false, ["micro_displays_side"] = 2, ["statusbar_info"] = { ["alpha"] = 1, ["overlay"] = { 1, -- [1] 1, -- [2] 1, -- [3] }, }, ["window_scale"] = 1, ["libwindow"] = { ["y"] = 30.0000705718994, ["x"] = -26.9998779296875, ["point"] = "BOTTOMRIGHT", }, ["desaturated_menu"] = true, ["bars_inverted"] = false, ["hide_icon"] = true, ["switch_healer_in_combat"] = false, ["bg_alpha"] = 0.55, ["auto_current"] = true, ["toolbar_side"] = 1, ["bg_g"] = 0.3294, ["skin"] = "ElvUI Frame Style", ["hide_in_combat"] = false, ["posicao"] = { ["normal"] = { ["y"] = -452.999885559082, ["x"] = 852.000122070313, ["w"] = 204.000091552734, ["h"] = 155.999969482422, }, ["solo"] = { ["y"] = 2, ["x"] = 1, ["w"] = 300, ["h"] = 200, }, }, ["menu_icons_size"] = 0.899999976158142, ["ignore_mass_showhide"] = false, ["wallpaper"] = { ["enabled"] = false, ["texture"] = "Interface\\AddOns\\Details\\images\\skins\\elvui", ["texcoord"] = { 0.0480000019073486, -- [1] 0.298000011444092, -- [2] 0.630999984741211, -- [3] 0.755999984741211, -- [4] }, ["overlay"] = { 0.999997794628143, -- [1] 0.999997794628143, -- [2] 0.999997794628143, -- [3] 0.799998223781586, -- [4] }, ["anchor"] = "all", ["height"] = 225.999984741211, ["alpha"] = 0.800000071525574, ["width"] = 266.000061035156, }, ["stretch_button_side"] = 1, ["auto_hide_menu"] = { ["left"] = true, ["right"] = false, }, ["show_sidebars"] = false, ["row_info"] = { ["textR_outline"] = false, ["spec_file"] = "Interface\\AddOns\\Details\\images\\spec_icons_normal", ["textL_outline"] = false, ["textR_outline_small"] = true, ["textL_outline_small"] = true, ["percent_type"] = 1, ["fixed_text_color"] = { 1, -- [1] 1, -- [2] 1, -- [3] }, ["space"] = { ["right"] = 0, ["left"] = 0, ["between"] = 2, }, ["texture_background_class_color"] = false, ["start_after_icon"] = false, ["font_face_file"] = "Interface\\AddOns\\ElvUI_KlixUI\\media\\fonts\\Expressway.ttf", ["textL_custom_text"] = "{data1}. {data3}{data2}", ["font_size"] = 12, ["texture_custom_file"] = "Interface\\", ["texture_file"] = "Interface\\AddOns\\ElvUI_KlixUI\\media\\textures\\KlixOnePixel.tga", ["icon_file"] = "Interface\\AddOns\\Details\\images\\classes_small_alpha", ["use_spec_icons"] = true, ["models"] = { ["upper_model"] = "Spells\\AcidBreath_SuperGreen.M2", ["lower_model"] = "World\\EXPANSION02\\DOODADS\\Coldarra\\COLDARRALOCUS.m2", ["upper_alpha"] = 0.5, ["lower_enabled"] = false, ["lower_alpha"] = 0.1, ["upper_enabled"] = false, }, ["textR_bracket"] = "(", ["textR_enable_custom_text"] = false, ["backdrop"] = { ["enabled"] = false, ["size"] = 4, ["color"] = { 0, -- [1] 0, -- [2] 0, -- [3] 1, -- [4] }, ["texture"] = "Details BarBorder 2", }, ["fixed_texture_color"] = { 0, -- [1] 0, -- [2] 0, -- [3] }, ["textL_show_number"] = true, ["fixed_texture_background_color"] = { 0, -- [1] 0, -- [2] 0, -- [3] 0.339636147022247, -- [4] }, ["texture_custom"] = "", ["textR_custom_text"] = "{data1} ({data2}, {data3}%)", ["texture"] = "KlixOnePixel", ["texture_highlight"] = "Interface\\FriendsFrame\\UI-FriendsList-Highlight", ["textL_enable_custom_text"] = false, ["textR_class_colors"] = true, ["textL_class_colors"] = true, ["textR_outline_small_color"] = { 0, -- [1] 0, -- [2] 0, -- [3] 1, -- [4] }, ["texture_background"] = "Empty", ["alpha"] = 0.8, ["no_icon"] = false, ["textR_show_data"] = { true, -- [1] true, -- [2] true, -- [3] }, ["textL_outline_small_color"] = { 0, -- [1] 0, -- [2] 0, -- [3] 1, -- [4] }, ["font_face"] = "Expressway", ["texture_class_colors"] = true, ["texture_background_file"] = "Interface\\Addons\\ElvUI_KlixUI\\media\\textures\\Empty.tga", ["fast_ps_update"] = false, ["textR_separator"] = ",", ["height"] = 16, }, ["bg_b"] = 0.3294, }, -- [2] }, } _detalhes:ApplyProfile('Klix') end
require 'torch' require 'cutorch' require 'nn' require 'cunn' require 'cudnn' require 'string' require 'csvigo' require 'image' require 'math' require 'randomkit' require 'Dataframe' require 'os' npy4th = require 'npy4th' local utils = {} function utils.init_identity(net) --[[ Inits with identity weights Args: net: network model ]] local identity3x3x3 = torch.FloatTensor(3,3,3):fill(0) identity3x3x3[{1,1,1}] = 1 local n_layer = 1 for i = 1, #net.modules do local m = net.modules[i] if m.__typename == 'nn.VolumetricDilatedConvolution' then m.bias = torch.FloatTensor(m.bias:size()):fill(0) m.bias = randomkit.normal(m.bias, 0, 2.0/(m.nInputPlane + m.nOutputPlane)) for out_f = 1, m.nOutputPlane do for in_f = 1, m.nInputPlane do if n_layer ~= 8 then t = torch.FloatTensor(3,3,3):fill(0) t = randomkit.normal(t, 0, 2.0/(m.nInputPlane + m.nOutputPlane)) t[{1,1,1}] = 1 + randomkit.normal(0, 2.0/(m.nInputPlane + m.nOutputPlane)) m.weight[{out_f, in_f, {}, {}, {}}] = t:clone() else m.weight[{out_f, in_f, {}, {}, {}}] = 1 + randomkit.normal(0, 2.0/(m.nInputPlane + m.nOutputPlane)) end end end n_layer = n_layer + 1 end end end function utils.init_xavier(net) --[[ Inits with xavier weights Args: net: network model ]] local identity3x3x3 = torch.FloatTensor(3,3,3):fill(0) identity3x3x3[{1,1,1}] = 1 local n_layer = 1 for i = 1, #net.modules do local m = net.modules[i] if m.__typename == 'nn.VolumetricDilatedConvolution' then m.bias = torch.FloatTensor(m.bias:size()):fill(0) m.bias = randomkit.normal(m.bias, 0, 2.0/(m.nInputPlane + m.nOutputPlane)) for out_f = 1, m.nOutputPlane do for in_f = 1, m.nInputPlane do if n_layer ~= 8 then t = torch.FloatTensor(3,3,3):fill(0) t = randomkit.normal(t, 0, 2.0/(m.nInputPlane + m.nOutputPlane)) m.weight[{out_f, in_f, {}, {}, {}}] = t:clone() else m.weight[{out_f, in_f, {}, {}, {}}] = randomkit.normal(0, 2.0/(m.nInputPlane + m.nOutputPlane)) end end end n_layer = n_layer + 1 end end end function utils.train(net, criterion, optimMethod, data, coordinates, amount, nPerBrain, batchSize, subsizes, lossInfo) --[[ Inits with identity weights Args: net: network model criterion: criterion optimMethod: optimization method data: data with brains and labels coordinates: generated coordinate grid for subvolumes amount: amount of subvolumes per epoch nPerBrain: amount of subvolumes generated per brain, batchSize: mini-batch size subsizes: subvolumes sizes lossInfo: table with mean and std of loss function values per epoch ]] net:training() print 'Training' local time = sys.clock() local overall_train_loss = torch.Tensor(amount / batchSize) local i = 1 for t = 1, amount, batchSize do local inputs, targets = utils.create_cuda_mini_batch( data, coordinates, batchSize, subsizes, nPerBrain, 0, 'train') local trainFunc = function(x) if x ~= parameters then parameters:copy(x) end gradParameters:zero() local outputs = net:forward(inputs) local loss = criterion:forward(outputs, targets) overall_train_loss[i] = loss i = i + 1 local df_do = criterion:backward(outputs, targets) net:backward(inputs, df_do) return loss, gradParameters end optimMethod(trainFunc, parameters, optimState) end table.insert(lossInfo.trainMean, overall_train_loss:mean()) table.insert(lossInfo.trainStd, overall_train_loss:std()) time = sys.clock() - time print("time to learn 1 epoch = " .. (time * 1000) .. 'ms') end function utils.valid(net, criterion, data, coordinates, amount, nPerBrain, batchSize, subsizes, lossInfo) --[[ Inits with identity weights Args: net: network model criterion: criterion data: data with brains and labels coordinates: generated coordinate grid for subvolumes amount: amount of subvolumes per epoch nPerBrain: amount of subvolumes generated per brain, batchSize: mini-batch size subsizes: subvolumes sizes lossInfo: table with mean and std of loss function values per epoch ]] net:evaluate() print 'Validating' local time = sys.clock() local overall_valid_loss = torch.Tensor(amount / batchSize) local k = 1 for t = 1, amount, batchSize do local inputs, targets = utils.create_cuda_mini_batch( data, coordinates, batchSize, subsizes, nPerBrain, t, 'valid') local outputs = net:forward(inputs) overall_valid_loss[k] = criterion:forward(outputs, targets) k = k + 1 end table.insert(lossInfo.validMean, overall_valid_loss:mean()) table.insert(lossInfo.validStd, overall_valid_loss:std()) time = sys.clock() - time time = time / amount print("time to valid 1 sample = " .. (time*1000) .. 'ms') end function utils.calculate_metrics(prediction, target, nClasses) --[[ Calculates metrics from prediction Args: prediction: model prediction target: ground thruth labels nClasses: number of classes Returns: brain_metrics: calculated metrics ]] local splitted_output = utils.split_classes(prediction, nClasses) local splitted_target = utils.split_classes(target, nClasses) local brain_metrics = {} brain_metrics.f1_score = {} brain_metrics.avd = {} for c = 1, nClasses do brain_metrics.f1_score[c] = utils.f1_score(splitted_output[c], splitted_target[c]) brain_metrics.avd[c] = utils.average_volumetric_difference(splitted_output[c], splitted_target[c]) end return brain_metrics end function utils.save_metrics(foldList, brain_metrics, nClasses, outputFile) --[[ Save metrics to csv Args: brain_metrics: table with metrics nClasses: number of classes outputFile: filename to save ]] local model_csv = {} model_csv['brain'] = {} model_csv['time'] = {} local first_run = true for c = 1, nClasses do model_csv['f1_' .. tostring(c)] = {} model_csv['avd_' .. tostring(c)] = {} for b = 1, #brain_metrics do if first_run then model_csv.brain[b] = foldList[b] model_csv.time[b] = brain_metrics[b].time end model_csv['f1_' .. tostring(c)][b] = brain_metrics[b].f1_score[c] model_csv['avd_' .. tostring(c)][b] = brain_metrics[b].avd[c] end first_run = false end local df = Dataframe() print (model_csv) df:load_table{data=Df_Dict(model_csv)} df:to_csv(outputFile) end function utils.predict(brain, model, opt) --[[ Predicts segmentation. Args: brain: brain with input and target (loaded using utils.load_brain) model: model weights opt: table with options Returns: segmentation: predicted segmentation ]] -- define gathering function local gather_function = {} if opt.predType == 'maxclass' then gather_function = utils.gather_maxclass elseif opt.predType == 'maxsoftmax' then gather_function = utils.gather_maxsoftmax else print('Invalid prediction type. Should be maxclass or maxsoftmax.') end -- define extend local extend = opt.extend or {{0, 0}, {0, 0}, {0, 0}} -- define volume sizes local sizes = brain.input:size() sizes = {sizes[1], sizes[2] + math.floor((extend[1][1] + extend[1][2]) / 2), sizes[3] + math.floor((extend[2][1] + extend[2][2]) / 2), sizes[4] + math.floor((extend[3][1] + extend[3][2]) / 2)} -- define subvolumes sizes local subsizes = {sizes[1], opt.zLen, opt.yLen, opt.xLen} -- define mean and std for gaussian sampling local mean = opt.mean or {math.floor(sizes[2]/2), math.floor(sizes[3]/2), math.floor(sizes[4]/2)} local std = opt.std or {math.floor(sizes[2]/6) + 8, math.floor(sizes[3]/6) + 8, math.floor(sizes[4]/6) + 8} -- define softmax layer local softmax = cudnn.VolumetricLogSoftMax():cuda() -- correct number of subvvolumes based of batchsize opt.nSubvolumes = opt.nSubvolumes - opt.nSubvolumes % opt.batchSize -- define coordinate grid local coords_grid = coords_grid or utils.create_dataset_coords( sizes, opt.nSubvolumes, subsizes, extend, opt.sampleType, mean, std) -- define output segmentation local segmentation = {} if opt.predType == 'maxclass' then segmentation = torch.IntTensor(opt.nClasses, sizes[2] + extend[1][1] + extend[1][2], sizes[3] + extend[2][1] + extend[2][2], sizes[4] + extend[3][1] + extend[3][2]):fill(0) elseif opt.predType == 'maxsoftmax' then segmentation = torch.DoubleTensor(opt.nClasses, sizes[2] + extend[1][1] + extend[1][2], sizes[3] + extend[2][1] + extend[2][2], sizes[4] + extend[3][1] + extend[3][2]):fill(0) else print('Invalid prediction type. Should be maxclass or maxsoftmax.') end -- predict local time = sys.clock() for i = 1, #coords_grid, opt.batchSize do local inputs, targets = utils.create_cuda_mini_batch( {brain}, coords_grid, opt.batchSize, subsizes, opt.nSubvolumes, i, 'test') local outputs = model:forward(inputs) outputs = softmax:forward(outputs) segmentation = gather_function(outputs, segmentation, coords_grid, i) end local maxs, segmentation = torch.max(segmentation, 1) time = sys.clock() - time print (time, 'seconds') brain = utils.reduceData(brain, extend) segmentation = utils.reduceOutput(segmentation, extend)[1] return segmentation, time end function utils.load_brains(pathes, extend, inputFiles, labelFile) --[[ Load brains from fold. Args: pathes: table with pathes to brains directories inputFiles: filenames with input images (for example: 'T1.npy', 'T2.npy'} for multi modal case) labelFile: filename with labels extend: table of extensions of MRI image for every axis from left and right sides (Example table to extend from every side of axises MRI image by 10: {{10, 10}, {10, 10}, {10, 10}}) Returns: data: table with brains ]] if #pathes == 0 then print 'No pathes to brains directories' return {} end inputFiles = inputFiles or {'T1.npy'} labelFile = labelFile or 'labels.npy' extend = extend or {{0, 0}, {0, 0}, {0, 0}} local data = {} for i = 1, #pathes do data[i] = utils.load_brain(pathes[i], extend, inputFiles, labelFile) end return data end function utils.load_brain_nolabel(path, extend, inputFiles) --[[ Load brains from fold. Args: path: path to brain directory inputFiles: filenames with input images (for example: 'T1.npy', 'T2.npy'} for multi modal case) extend: table of extensions of MRI image for every axis from left and right sides (Example table to extend from every side of axises MRI image by 10: {{10, 10}, {10, 10}, {10, 10}}) Returns: data: brain data ]] inputFiles = inputFiles or {'T1.npy'} extend = extend or {{0, 0}, {0, 0}, {0, 0}} local data = {} for j = 1, #inputFiles do local t = npy4th.loadnpy(path .. inputFiles[j]):float() -- scale to unit interval t = (t - t:min()) / (t:max() - t:min()) if j == 1 then data.input = torch.FloatTensor(#inputFiles, t:size()[1], t:size()[2], t:size()[3]) end data.input[{j, {}, {}, {}}] = t end data = utils.extendData(data, extend) return data end function utils.load_brain(path, extend, inputFiles, labelFile) --[[ Load brains from fold. Args: path: path to brain directory inputFiles: filenames with input images (for example: 'T1.npy', 'T2.npy'} for multi modal case) labelFile: filename with labels extend: table of extensions of MRI image for every axis from left and right sides (Example table to extend from every side of axises MRI image by 10: {{10, 10}, {10, 10}, {10, 10}}) Returns: data: brain data ]] inputFiles = inputFiles or {'T1.npy'} labelFile = labelFile or 'labels.npy' extend = extend or {{0, 0}, {0, 0}, {0, 0}} local data = {} for j = 1, #inputFiles do local t = npy4th.loadnpy(path .. inputFiles[j]):float() -- scale to unit interval t = (t - t:min()) / (t:max() - t:min()) if j == 1 then data.input = torch.FloatTensor(#inputFiles, t:size()[1], t:size()[2], t:size()[3]) end data.input[{j, {}, {}, {}}] = t end data.target = {} data.target = npy4th.loadnpy(path .. labelFile):int() -- torch labels start from 1, not from 0 data.target = data.target:add(1) data = utils.extendData(data, extend) return data end function utils.nooverlapCoordinates(sizes, subsizes, extend) --[[ Creates nonoverlap grid Args: sizes: MRI image side length subsizes: subvolume's side lengths extend: table of extensions of MRI image for every axis from left and right sides (Example table to extend from every side of axises MRI image by 10: {{10, 10}, {10, 10}, {10, 10}}) Return: coords: table of nonoverlap grid coordinates ]] local coords = {} local k = 1 for z1 = 1 + extend[1][1], sizes[2] - extend[1][2] - subsizes[2] + 1, subsizes[2] do for y1 = 1 + extend[2][1], sizes[3] - extend[2][2] - subsizes[3] + 1, subsizes[3] do for x1 = 1 + extend[3][1], sizes[4] - extend[3][2] - subsizes[4] + 1, subsizes[4] do coords[k] = {} coords[k].z1 = z1 coords[k].y1 = y1 coords[k].x1 = x1 coords[k].z2 = coords[k].z1 + subsizes[2] - 1 coords[k].y2 = coords[k].y1 + subsizes[3] - 1 coords[k].x2 = coords[k].x1 + subsizes[4] - 1 k = k + 1 end end end return coords end function utils.gaussianCoordinates(sizes, subsizes, amount, mean, std) --[[ Creates gaussian grid Args: sizes: MRI image side length subsizes: subvolume's side lengths amount: amount of subvolumes mean: table with mean values for every axis std: table with std values for every axis Return: coords: table of gaussian grid coordinates ]] mean = mean or {sizes[2] / 2, sizes[3] / 2, sizes[4] / 2} std = std or {50, 50, 50} local coords = {} local half_subsizes = {subsizes[2] / 2, subsizes[3] / 2, subsizes[4] / 2} local left_bound = {half_subsizes[1], half_subsizes[2], half_subsizes[3]} local right_bound = {sizes[2] - half_subsizes[1] + 1, sizes[3] - half_subsizes[2] + 1, sizes[4] - half_subsizes[3] + 1} local k = 1 while k < amount + 1 do local rc = { torch.round(randomkit.normal(mean[1], std[1])), torch.round(randomkit.normal(mean[2], std[2])), torch.round(randomkit.normal(mean[3], std[3])) } if rc[1] >= left_bound[1] and rc[2] >= left_bound[2] and rc[3] >= left_bound[3] and rc[1] < right_bound[1] and rc[2] < right_bound[2] and rc[3] < right_bound[3] then coords[k] = {} coords[k].z1 = rc[1] - half_subsizes[1] + 1 coords[k].y1 = rc[2] - half_subsizes[2] + 1 coords[k].x1 = rc[3] - half_subsizes[3] + 1 coords[k].z2 = coords[k].z1 + subsizes[2] - 1 coords[k].y2 = coords[k].y1 + subsizes[3] - 1 coords[k].x2 = coords[k].x1 + subsizes[4] - 1 k = k + 1 end end return coords end function utils.extendData(data, extend) --[[ Extend MRI image with extend values. Equivalent to padding with zeros for input and 1 for target. Args: data: brain data with input and target extend: extend: table of extensions of MRI image for every axis from left and right sides (Example table to extend from every side of axises MRI image by 10: {{10, 10}, {10, 10}, {10, 10}}) Returns: extend_data: extended version of data ]] local extend_data = {} extend_data.input = torch.FloatTensor(data.input:size()[1], data.input:size()[2] + extend[1][1] + extend[1][2], data.input:size()[3] + extend[2][1] + extend[2][2], data.input:size()[4] + extend[3][1] + extend[3][2]):fill(0) extend_data.input[{{}, {1 + extend[1][1], data.input:size()[2] + extend[1][2]}, {1 + extend[2][1], data.input:size()[3] + extend[2][2]}, {1 + extend[3][1], data.input:size()[4] + extend[3][2]}}] = data.input if data.target then extend_data.target = torch.IntTensor( data.target:size()[1] + extend[1][1] + extend[1][2], data.target:size()[2] + extend[2][1] + extend[2][2], data.target:size()[3] + extend[3][1] + extend[3][2]):fill(1) extend_data.target[{ {1 + extend[1][1], data.target:size()[1] + extend[1][2]}, {1 + extend[2][1], data.target:size()[2] + extend[2][2]}, {1 + extend[3][1], data.target:size()[3] + extend[3][2]}}] = data.target end return extend_data end function utils.reduceOutput(data, extend) --[[ Reduces output with extend amount after extending input. Args: data: output from MeshNety extend: extend: table of extensions of MRI image for every axis from left and right sides (Example table to extend from every side of axises MRI image by 10: {{10, 10}, {10, 10}, {10, 10}}) Returns: reduced_data: reduces version of data ]] local reduced_data = {} reduced_data = torch.IntTensor(data:size()[1], data:size()[2] - extend[1][1] - extend[1][2], data:size()[3] - extend[2][1] - extend[2][2], data:size()[4] - extend[3][1] - extend[3][2]):fill(1) reduced_data = data[{{}, {1 + extend[1][1], data:size()[2] - extend[1][2]}, {1 + extend[2][1], data:size()[3] - extend[2][2]}, {1 + extend[3][1], data:size()[4] - extend[3][2]}}] return reduced_data end function utils.reduceData(data, extend) --[[ Reduces MRI image with extend amount after extending. Args: data: brain data with input and target extend: extend: table of extensions of MRI image for every axis from left and right sides (Example table to extend from every side of axises MRI image by 10: {{10, 10}, {10, 10}, {10, 10}}) Returns: reduced_data: reduces version of data ]] local reduced_data = {} reduced_data.input = torch.FloatTensor(data.input:size()[1], data.input:size()[2] - extend[1][1] - extend[1][2], data.input:size()[3] - extend[2][1] - extend[2][2], data.input:size()[4] - extend[3][1] - extend[3][2]):fill(0) reduced_data.input = data.input[{{}, {1 + extend[1][1], data.input:size()[2] - extend[1][2]}, {1 + extend[2][1], data.input:size()[3] - extend[2][2]}, {1 + extend[3][1], data.input:size()[4] - extend[3][2]}}] if data.target then reduced_data.target = torch.IntTensor( data.target:size()[1] - extend[1][1] - extend[1][2], data.target:size()[2] - extend[2][1] - extend[2][2], data.target:size()[3] - extend[3][1] - extend[3][2]):fill(1) reduced_data.target = data.target[{ {1 + extend[1][1], data.target:size()[1] - extend[1][2]}, {1 + extend[2][1], data.target:size()[2] - extend[2][2]}, {1 + extend[3][1], data.target:size()[3] - extend[3][2]}}] end return reduced_data end function utils.load_prediction_model(modelFilename) --[[ Loads model for CUDA and in evaluation state Args: modelFilename: name of a file with a model Returns: model: loaded model ]] local model = torch.load(modelFilename) model:cuda() model:evaluate() return model end function utils.split_classes(volume, nClasses) --[[ Splits target or prediction tensor by class Args: volume: input volume nClasses: number of classes in volume Returns: split: table of volumes ]] local split = {} for id = 1, nClasses do split[id] = torch.IntTensor(volume:size()):fill(0) split[id] = split[id] + volume:eq(id):int() end return split end function utils.file_exists(file) --[[ Checking file existence Args: file: name of a file Returns: true if exist, otherwise false ]] local f = io.open(file, "rb") if f then f:close() end return f ~= nil end local function gather_prediction(outputCube, splitPrediction, coords) --[[ Combine prediction from splitted prediction to volume by coordinates Args: outputCube: current full size prediction splitPrediction: split on classes prediction with split_classes function coords: coordinates for current subvolume Returns: outputCube: updated full size prediction ]] for id_class = 1, #splitPrediction do outputCube[{id_class, {coords.z1, coords.z2}, {coords.y1, coords.y2}, {coords.x1, coords.x2}}] = outputCube[{id_class, {coords.z1, coords.z2}, {coords.y1, coords.y2}, {coords.x1, coords.x2}}] + splitPrediction[id_class] end return outputCube end function utils.gather_maxclass(dnnOutput, outputCube, coords, offset) --[[ Combine prediction from splitted prediction to volume by coordinates based on majority voting Args: dnnOutput: output from MeshNet outputCube: current full size prediction splitPrediction: split on classes prediction with split_classes function coords: table of coordinates for current subvolume offset: current id of coordinates Returns: outputCube: 'histogram' of classes for majority voting ]] local max, inds = torch.max(dnnOutput, 2) for id = 1, dnnOutput:size()[1] do local splitPrediction = utils.split_classes(inds[{id, 1, {}, {}, {}}], dnnOutput:size()[2]) outputCube = gather_prediction( outputCube, splitPrediction, coords[id + offset - 1]) end return outputCube end function utils.gather_maxsoftmax(dnnOutput, outputCube, coords, offset) --[[ Combine softmax values from splitted prediction to volume by coordinates Args: dnnOutput: output from MeshNet outputCube: current full size prediction splitPrediction: split on classes prediction with split_classes function coords: table of coordinates for current subvolume offset: current id of coordinates Returns: outputCube: aggregated probability for majority voting ]] for id = 1, dnnOutput:size()[1] do local c = coords[id + offset - 1] outputCube[{{}, {c.z1, c.z2}, {c.y1, c.y2}, {c.x1, c.x2}}] = outputCube[{{}, {c.z1, c.z2}, {c.y1, c.y2}, {c.x1, c.x2}}] + dnnOutput[id]:double() end return outputCube end function utils.lines_from(file) --[[ Reads lines from file. Args: file: name of a file ]] if not utils.file_exists(file) then return {} end lines = {} for line in io.lines(file) do lines[#lines + 1] = line end return lines end function utils.save_loss_info_2_csv(lossInfo, logsFilename) --[[ Saves loss inforamtion to a csv file. Args: lossInfo: table with mean and stf of a loss from training and validating logsFilename: name of a csv file to save ]] csvigo.save(logsFilename, lossInfo) end function utils.model_name_generator() --[[ Creates model name based on a time. Returns: model name ]] datetime = os.date():gsub(' ', '_') return string.format('model_%s', datetime) end function utils.true_positive(predCube, targetCube) --[[ Calculates number of True Positive voxels ]] return torch.sum(predCube:maskedSelect(targetCube:eq(1))) end function utils.true_negative(predCube, targetCube) --[[ Calculates number of True Negative voxels ]] return torch.sum(predCube:maskedSelect(targetCube:eq(0))) end function utils.false_positive(predCube, targetCube) --[[ Calculates number of False Positive voxels ]] return torch.sum(predCube:maskedSelect(targetCube:eq(0)):eq(1)) end function utils.false_negative(predCube, targetCube) --[[ Calculates number of False Negative voxels ]] return torch.sum(predCube:maskedSelect(targetCube:eq(1)):eq(0)) end function utils.precision(predCube, targetCube) --[[ Calculates precision Args: predCube: predicted volume targetCube: ground truth volume Returns: precision ]] local tp = utils.true_positive(predCube, targetCube) local fp = utils.false_positive(predCube, targetCube) if tp + fp == 0 then return 0 else return tp / (tp + fp) end end function utils.recall(predCube, targetCube) --[[ Calculates recall Args: predCube: predicted volume targetCube: ground truth volume Returns: recall ]] local tp = utils.true_positive(predCube, targetCube) local fn = utils.false_negative(predCube, targetCube) if tp + fn == 0 then return 0 else return tp / (tp + fn) end end function utils.average_volumetric_difference(predCube, targetCube) --[[ Calculates average_volumetric_difference Args: predCube: predicted volume targetCube: ground truth volume Returns: average_volumetric_difference ]] local Vp = torch.sum(predCube:eq(1)) local Vt = torch.sum(targetCube:eq(1)) return torch.abs(Vp - Vt) / Vt end function utils.f1_score(predCube, targetCube) --[[ Calculates f1_score (equivalent to DICE) Args: predCube: predicted volume targetCube: ground truth volume Returns: f1_score ]] local p = utils.precision(predCube, targetCube) local r = utils.recall(predCube, targetCube) if p + r == 0 then return 0 else return 2 * p * r / (p + r) end end function utils.create_dataset_coords(sizes, amount, subsizes, extend, sample_type, mean, std) --[[ Creates dataset of subvolumes using table of coordinates Args: sizes: size of input volumes amount: number of subvolumes subsizes: size of subvolumes extend: extend: table of extensions of MRI image for every axis from left and right sides (Example table to extend from every side of axises MRI image by 10: {{10, 10}, {10, 10}, {10, 10}}) sample_type: subvolume sampling distribution mean: table with mean values for every axis std: table with std values for every axis Returns: dataset_coords: table with coordinates with nonoverlap and sampleType grid ]] extend = extend or {{0, 0}, {0, 0}, {0, 0}} sample_type = sample_type or 'uniform' local dataset_coords = {} if sample_type == 'gaussian' then dataset_coords = utils.gaussianCoordinates( sizes, subsizes, amount, mean, std) else print(sample_type .. ' is not implemented') os.exit() end noc = utils.nooverlapCoordinates( sizes, subsizes, extend) -- change first #noc coordinates with non-overlap for j = 1, #noc do dataset_coords[j] = noc[j] end return dataset_coords end function utils.create_cuda_mini_batch(data, dataset_coords, batchSize, subsizes, nPerBrain, offset, mode) --[[ Creates CUDA mini batch from data Args: data: table with brains dataset_coords: table with coordinates batchSize: size of mini-batch subsizes: subolume side lengths nPerBrain: number of volumes per brain (need just for mode valid) offset: current number of used for train mode: mode of creating batch ('train', 'valid' ot 'test') Returns: inputs: CUDA batch of input targets: in 'train' and 'valid' mode returns CUDA batch, in 'test' mode returns empty table ]] local inputs, targets = utils.create_mini_batch( data, dataset_coords, batchSize, subsizes, nPerBrain, offset, mode) if mode ~= 'test' then return inputs:cuda(), targets:cuda() else return inputs:cuda(), {} end end function utils.create_mini_batch(data, dataset_coords, batchSize, subsizes, nPerBrain, offset, mode) --[[ Creates mini batch from data Args: data: table with brains dataset_coords: table with coordinates batchSize: size of mini-batch subsizes: subolume side lengths nPerBrain: number of volumes per brain (need just for mode valid) offset: current number of used for train mode: mode of creating batch ('train', 'valid' ot 'test') Returns: inputs: batch of input targets: in 'train' and 'valid' mode returns batch, in 'test' mode returns empty table ]] mode = mode or 'train' local inputs = torch.FloatTensor( batchSize, subsizes[1], subsizes[2], subsizes[3], subsizes[4]) local targets = {} if mode ~= 'test' then targets = torch.IntTensor( batchSize, subsizes[2], subsizes[3], subsizes[4]) end if mode == 'train' then for i = 1, batchSize do local bid = randomkit.randint(1, #data) local cid = randomkit.randint(1, #dataset_coords) inputs[{i, {}, {}, {}, {}}] = data[bid].input[{{}, {dataset_coords[cid].z1, dataset_coords[cid].z2}, {dataset_coords[cid].y1, dataset_coords[cid].y2}, {dataset_coords[cid].x1, dataset_coords[cid].x2} }] targets[{i, {}, {}, {}}] = data[bid].target[{ {dataset_coords[cid].z1, dataset_coords[cid].z2}, {dataset_coords[cid].y1, dataset_coords[cid].y2}, {dataset_coords[cid].x1, dataset_coords[cid].x2} }] end else local k = 1 for i = offset, offset + batchSize - 1 do local bid = torch.floor((i - 1) / nPerBrain) + 1 local cid = (i - 1) % nPerBrain + 1 inputs[{k, {}, {}, {}, {}}] = data[bid].input[{{}, {dataset_coords[cid].z1, dataset_coords[cid].z2}, {dataset_coords[cid].y1, dataset_coords[cid].y2}, {dataset_coords[cid].x1, dataset_coords[cid].x2}, }] if mode ~= 'test' then targets[{k, {}, {}, {}}] = data[bid].target[{ {dataset_coords[cid].z1, dataset_coords[cid].z2}, {dataset_coords[cid].y1, dataset_coords[cid].y2}, {dataset_coords[cid].x1, dataset_coords[cid].x2}, }] end k = k + 1 end end return inputs, targets end return utils
include('shared.lua') SWEP.Slot = 2 // Slot in the weapon selection menu SWEP.SlotPos = 3 // Position in the slot SWEP.DrawAmmo = false // Should draw the default HL2 ammo counter // Should draw the default crosshair SWEP.DrawWeaponInfoBox = true // Should draw the weapon info box SWEP.BounceWeaponIcon = false // Should the weapon icon bounce? SWEP.CSMuzzleFlashes = false
lspconfig = require'lspconfig' completion_callback = require'completion'.on_attach lspconfig.rust_analyzer.setup{on_attach=completion_callback}
local PedList RegisterServerEvent('InitialCore:RecupPlayerIDCardInfo') AddEventHandler('InitialCore:RecupPlayerIDCardInfo', function() local PlayerSteamID = GetPlayerIdentifier(source) MySQL.Async.fetchAll("SELECT * FROM playerinfo WHERE SteamID='" .. PlayerSteamID .. "'", {}, function(idcardinfo) local IDHash = math.random(100000000, 999999999) local IDHash2 = "IDCard#" .. tostring(IDHash) MySQL.Async.execute("INSERT INTO `initialv`.`idcard` (HashID, Prenom, Nom, DateNaissance, Nationalite, Sexe, Taille) VALUES ('" .. IDHash2 .. "', '" .. idcardinfo[1].Prenom .. "', '" .. idcardinfo[1].Nom .. "', '" .. idcardinfo[1].DateNaissance .. "', '" .. "NULLNATIONALITE" .. "', '" .. idcardinfo[1].Sexe .. "', '" .. idcardinfo[1].Taille .. "')", {}, function() print("^0[^1InitialCore^0] ^2Création de la table : (Carte d'identité) " .. PlayerSteamID .. "^0") end) MySQL.Async.execute("INSERT INTO `initialv`.`itemslist` (HashID, Nom, Poids) VALUES ('" .. IDHash2 .. "', 'Carte d''identité', '0.020')", {}, function() print("^0[^1InitialCore^0] ^2Création de la table : (Carte d'identité/item) " .. PlayerSteamID .. "^0") end) end) end) RegisterServerEvent('InitialCore:RecupInfoHangar') AddEventHandler('InitialCore:RecupInfoHangar', function(HashID) _source = source MySQL.Async.fetchAll("SELECT * FROM batiments WHERE ID='" .. HashID .. "'", {}, function(result) TriggerClientEvent('InitialCore:RecupInfoHangarC', _source, result[1].Equipement, result[1].Pousse) end) end) RegisterServerEvent('InitialCore:SetJob') AddEventHandler('InitialCore:SetJob', function(type, job, niveau, player) if type == 1 then local PlayerSteamID = GetPlayerIdentifier(source) MySQL.Async.execute("UPDATE playerinfo SET Metier='" .. job .. "', NiveauMetier='" .. niveau .. "' WHERE SteamID='" .. PlayerSteamID .. "'", {}, function() print("^0[^1InitialCore^0] ^2Changement Metier : " .. PlayerSteamID .. " (" .. job .. ")^0") end) TriggerClientEvent('InitialCore:LoadJob', source, job, "1") elseif type == 2 then MySQL.Async.execute("UPDATE playerinfo SET Metier='" .. job .. "', NiveauMetier='" .. niveau .. "' WHERE SteamID='" .. GetPlayerIdentifier(player, 0) .. "'", {}, function() print("^0[^1InitialCore^0] ^2Changement Metier : " .. player .. " (" .. job .. ")^0") end) for k, v in pairs(GetPlayers()) do if GetPlayerIdentifier(k, 0) == player then TriggerClientEvent('InitialCore:LoadJob', k, job, niveau) break end end elseif type == 3 then MySQL.Async.execute("UPDATE playerinfo SET Metier='" .. job .. "', NiveauMetier='" .. niveau .. "' WHERE SteamID='" .. player .. "'", {}, function() print("^0[^1InitialCore^0] ^2Changement Metier : " .. player .. " (" .. job .. ")^0") end) for k, v in pairs(GetPlayers()) do if GetPlayerIdentifier(k, 0) == player then TriggerClientEvent('InitialCore:LoadJob', k, job, niveau) break end end end end) RegisterServerEvent('InitialCore:RecupInfoLicenseDarmes') AddEventHandler('InitialCore:RecupInfoLicenseDarmes', function() src = source local PlayerSteamID = GetPlayerIdentifier(src) MySQL.Async.fetchAll("SELECT LicenseDarmes FROM playerinfo WHERE SteamID='" .. PlayerSteamID .. "'", {}, function(result) TriggerClientEvent('InitialCore:RecupInfoLicenseDarmesC', src, result[1].LicenseDarmes) end) end) -- DEV local IDAAAA = 0 RegisterServerEvent('alpha:setcoffre') AddEventHandler('alpha:setcoffre', function(x, y, z) local randomid = math.random(0, 1000000) local nameofbox = 'Coffre' .. randomid --Treasure2 = { -- Name = "boxb", -- Pos = {x = 3521.36, y = 2528.47, z = 7.53} --}, --{x= 26.9295, y= -1348.2445, z= 29.4970-0.98, type= "fruit"}, --print('zz') --SendWebhook("```{x= " .. x .. ", y= " .. y .. ", z= " .. z .. "},```") IDAAAA = IDAAAA+1 --SendWebhook("```{id = " .. IDAAAA .. ", use = 10, type = \"plantedeweed\", x= " .. x .. ", y= " .. y .. ", z= " .. z .. ", r = 1.0},```") SendWebhook("```{x= " .. x .. ", y= " .. y .. ", z= " .. z .. ", type= \"\"},```") --xgGShs5641sq = {id = 1, use = 10, type = "xgGShs5641sq", x = -495.108, y = 5549.455, z = 73.185, r = 1.0} end) function SendWebhook(message) webhook = "https://discordapp.com/api/webhooks/701442303545573460/m4zoLcguOakqWCyw6GZvSu3V38Rsa38oT7XuPPyBPDofL4-6xRA-bfA1JSsq-NJ6cEJZ" if webhook ~= "none" then PerformHttpRequest(webhook, function(err, text, headers) end, 'POST', json.encode({content = message}), { ['Content-Type'] = 'application/json' }) end end MySQL.ready(function() MySQL.Async.fetchAll("SELECT * FROM ped", {}, function(pedlist) PedList = pedlist end) end) RegisterServerCallback('getPedUsed', function(source, callback) callback(PedList) end) RegisterServerCallback('getArgent', function(source, callback, entreprise) print(entreprise) if not entreprise then print('ne') MySQL.Async.fetchAll("SELECT Argent FROM playerinfo WHERE SteamID='" .. GetPlayerIdentifier(source) .. "'", {}, function(resultgetinv) callback(resultgetinv[1].Argent) end) else print('ye') MySQL.Async.fetchAll("SELECT Argent FROM banque_account WHERE Entreprise='" .. entreprise .. "'", {}, function(resultgetinv) callback(resultgetinv[1].Argent) end) end end) RegisterServerCallback('getEmployees', function(source, callback, entreprise) MySQL.Async.fetchAll("SELECT SteamID, Prenom, Nom, NiveauMetier FROM playerinfo WHERE Metier='" .. entreprise .. "'", {}, function(resultgetplayer) callback(resultgetplayer) end) end) RegisterServerCallback('getJobGrade', function(source, callback, entreprise) MySQL.Async.fetchAll("SELECT Data FROM metier WHERE Nom='" .. entreprise .. "'", {}, function(resultgetdata) callback(resultgetdata[1].Data) end) end) RegisterServerEvent('InitialCore:AddFunction') AddEventHandler('InitialCore:AddFunction', function(entreprise, fonction) MySQL.Async.fetchAll("SELECT Data FROM metier WHERE Nom='" .. entreprise .. "'", {}, function(resultgetdata) local resultdecode = json.decode(resultgetdata[1].Data) table.insert(resultdecode, fonction) MySQL.Async.execute("UPDATE metier SET Data='" .. json.encode(resultdecode) .. "' WHERE Nom='" .. entreprise .. "'", {}, function() end) end) end) RegisterServerEvent('InitialCore:RemoveFunction') AddEventHandler('InitialCore:RemoveFunction', function(entreprise, id) MySQL.Async.fetchAll("SELECT Data FROM metier WHERE Nom='" .. entreprise .. "'", {}, function(resultgetdata) local resultdecode = json.decode(resultgetdata[1].Data) table.remove(resultdecode, id) MySQL.Async.execute("UPDATE metier SET Data='" .. json.encode(resultdecode) .. "' WHERE Nom='" .. entreprise .. "'", {}, function() end) end) end) RegisterServerEvent('InitialCore:AddPhoneWSteamID') AddEventHandler('InitialCore:AddPhoneWSteamID', function(num) local PlayerSteamID = GetPlayerIdentifier(source, 0) MySQL.Async.execute("INSERT INTO phone (SteamID, Phone) VALUES ('" .. PlayerSteamID .. "', '" .. num .. "');", {}, function() end) end)
local segno = {} segno.core = require "core" segno.pa = require "pa" segno.pac = require "pac" segno.osc = require "osc" segno.op = require "op" segno.env = require "env" segno.dl = require "dl" segno.fx = require "fx" segno.file = require "file" return segno
#!/usr/bin/lua5.1 require("json") if not jit then print("Not using LuaJIT. This may be really slow.") end function file_get_contents(file) local f = io.open(file, "rb") local content = f:read("*all") f:close() return content end function file_put_contents(file,data) local f = io.open(file, "w") f:write(data) f:close() end function lpad(str, len, char) if char == nil then char = ' ' end return str .. string.rep(char, len - #str) end function file_exists(name) local f=io.open(name,"r") if f~=nil then io.close(f) return true else return false end end http = require("socket.http") dir = "cache" os.execute("mkdir -p "..dir) if arg[1] == "--cache" then checkcache = true print "Checking cache first..." else print "Downloading..." checkcache = false end require("lib.bslf.bit").lut() hashlib = require("lib/hash") data = json.decode(file_get_contents("games.json")) for _,game in pairs(data.games) do io.write(lpad(game.name,32)) base = game.id.."-"..game.stable io.write("IMAGE") if checkcache and file_exists(dir.."/"..base..".png") then io.write("(CACHE)") image = file_get_contents(dir.."/"..base..".png") else io.write("(NEW) ") image = http.request(game.image) end if string.len(image) > 0 then io.write("[OK]") file_put_contents(dir.."/"..base..".png",image) else io.write("[ZERO]") end io.write(" LOVE") stable = game.stable if checkcache and file_exists(dir.."/"..base..".love") then io.write("(CACHE)") love = file_get_contents(dir.."/"..base..".love") else io.write("(NEW) ") love = http.request(game.sources[stable]) end if love then local sha1obj = hashlib.sha1() sha1obj:process(love) local hash = sha1obj:finish() if hash == game.hashes[stable] then io.write("[OK]") file_put_contents(dir.."/"..base..".love",love) else io.write("[HASH MISMATCH]") end else io.write("[NULL DATA]") end io.write("\n") end
local deep_equals = require 'lqc.helpers.deep_equals' local random = require 'lqc.random' local r = require 'lqc.report' local lqc = require 'lqc.quickcheck' local property = require 'lqc.property' local int = require 'lqc.generators.int' local str = require 'lqc.generators.string' local bool = require 'lqc.generators.bool' local tbl = require 'lqc.generators.table' local Vector = require 'lqc.helpers.vector' local function do_setup() random.seed() lqc.init(100, 100) lqc.properties = {} r.report = function() end end describe('deep_equals', function() before_each(do_setup) describe('ints', function() it('returns true if ints are the same', function() local spy_check = spy.new(function(x) return deep_equals(x, x) end) property 'deep_equals for 2 same integers returns true' { check = spy_check, generators = { int() } } lqc.check() assert.spy(spy_check).was.called(lqc.numtests) end) it('returns false if ints are not the same', function() r.report_failed_property = spy.new(r.report_failed_property) property 'deep_equals returns false for 2 different integers' { check = function(x, y) return not deep_equals(x, y) end, implies = function(x, y) return x ~= y end, generators = { int(), int() } } lqc.check() assert.spy(r.report_failed_property).was.not_called() end) end) describe('strings', function() it('returns true if strings are the same', function() local spy_check = spy.new(function(x) return deep_equals(x, x) end) property 'deep_equals returns true for strings that are the same' { generators = { str(3) }, check = spy_check } lqc.check() assert.spy(spy_check).was.called(lqc.numtests) end) it('returns false for 2 different strings', function() r.report_failed_property = spy.new(r.report_failed_property) property 'deep_equals returns false for 2 different strings' { generators = { str(3), str(3) }, check = function(x, y) return not deep_equals(x, y) end, implies = function(x, y) return x ~= y end } lqc.check() assert.spy(r.report_failed_property).was.not_called() end) end) describe('booleans', function() it('returns true if 2 booleans are the same', function() local spy_check = spy.new(function(x) return deep_equals(x, x) end) property 'deep_equals returns true for 2 booleans of equal value' { generators = { bool() }, check = spy_check } lqc.check() assert.spy(spy_check).was.called(lqc.numtests) end) it('returns false for 2 different boolean values', function() r.report_failed_property = spy.new(r.report_failed_property) property 'deep_equals returns false for 2 booleans containing different values' { generators = { bool(), bool() }, check = function(x, y) return not deep_equals(x, y) end, implies = function(x, y) return x ~= y end } lqc.check() assert.spy(r.report_failed_property).was.not_called() end) end) describe('tables (and nested structures in general)', function() it('returns true if 2 tables contain the same values (also recursively)', function() local spy_check = spy.new(function(x) return deep_equals(x, x) end) property 'deep_equals returns true for tables that contain same values' { generators = { tbl(3) }, check = spy_check } lqc.check() assert.spy(spy_check).was.called(lqc.numtests) end) it('returns false if 2 tables contain different values (also recursively)', function() local x1, y1 = { 1, 2, 3 }, { 1, 2, 4 } local x2, y2 = { '1', '2', '3' }, { '4', '5', '6' } local x3, y3 = { 1, '2', '3' }, { '1', '2', '3' } local x4, y4 = { { true, 'test' }, 1 }, { { true, '123' }, 1 } assert.is_false(deep_equals(x1, y1)) assert.is_false(deep_equals(x2, y2)) assert.is_false(deep_equals(x3, y3)) assert.is_false(deep_equals(x4, y4)) end) end) describe('vectors (or general object with metatables etc)', function() it('returns true if 2 vectors are the same', function() local x1, y1 = Vector.new(), Vector.new() local x2, y2 = Vector.new({ 1, 2, 3 }), Vector.new({ 1, 2, 3 }) local x3, y3 = Vector.new({ 1, 'a', true }), Vector.new({ 1, 'a', true }) local x4, y4 = Vector.new({ 1, { 2, true } }), Vector.new({ 1, { 2, true } }) assert.is_true(deep_equals(x1, y1)) assert.is_true(deep_equals(x2, y2)) assert.is_true(deep_equals(x3, y3)) assert.is_true(deep_equals(x4, y4)) end) it('returns false if 2 vectors are different', function() local x1, y1 = Vector.new(), Vector.new({ 1 }) local x2, y2 = Vector.new({ 1 }), Vector.new() local x3, y3 = Vector.new({ 1, 'a', true }), Vector.new({ 1, 'a', false }) local x4, y4 = Vector.new({ 1, { 2, true } }), Vector.new({ 1, { 2, false } }) local x5, y5 = Vector.new({ 1, { 2, true } }), Vector.new({ 1, { 2, true, 3 } }) assert.is_false(deep_equals(x1, y1)) assert.is_false(deep_equals(x2, y2)) assert.is_false(deep_equals(x3, y3)) assert.is_false(deep_equals(x4, y4)) assert.is_false(deep_equals(x5, y5)) end) end) end)
--[[ Copyright 2018 American Megatrends Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. --]] local _env = { -- Supposed to come from environment variable set on BMC ChassisSelf = "Self", ManagerSelf = "Self", SystemSelf = "Self", SEL = "SEL", LOG = "Logs" } return _env
local auxdbg = require( "auxdbg" ) --------------------------------------------------------------------------- -- 任务数据 local item_t = { cb = 0 } --------------------------------------------------------------------------- -- promise数据的模板 local promise_t = { items = {}, args = {}, cb_ret = {}, cb_err = 0, result = 0, count = 0, corout = 0 } --------------------------------------------------------------------------- -- promise的元表,元表可减少promise实例开销 local _promise_t = {} --------------------------------------------------------------------------- -- 执行一个任务, 并为任务提供一对执行成功和失败的回调 function _promise_t.call( self, item, args ) function _resume( obj, success, args ) -- print( 'resume: ', obj.corout, coroutine.running(), obj, debug.getinfo(1).currentline, obj.count ) obj.args = { success = success, args = args } if obj.count == 0 then obj.count = obj.count + 1 else obj.count = obj.count + 1 coroutine.resume( obj.corout ) end end function ok( self, ... ) _resume( self.ins, true, { ... } ) end function no( self, ... ) _resume( self.ins, false, { ... } ) end local ret = { pcall( item.cb, { ins = self, cur = item, ok = ok, no = no }, table.unpack( args ) ) } if ret[1] == false then self.cb_err( ret ); end end --------------------------------------------------------------------------- -- 递归查找第一个还未执行过的任务 function _promise_t.next( self, point ) local ret = nil for i, item in ipairs( point.items ) do if item.flag == false then item.flag = true return item else if type( item.items ) == 'table' then ret = self:next( item ) if ret ~= nil then return ret end end end end return nil end --------------------------------------------------------------------------- -- 协程函数,递归查找下一个任务直到全部任务结束 function _promise_t.run( self ) local task repeat -- 递归的查找下一个任务 task = self:next( self ) -- print( 'task:', task, self.corout, coroutine.running() ) if task ~= nil then -- 运行任务 self.call( self, task, self.args.args ) -- print( 'wait: ', self.corout, coroutine.running(), self, debug.getinfo(1).currentline, self.count ) -- 等待任务执行成功的回调,并更新下一个任务的参数 if self.count == 0 then self.count = self.count - 1 coroutine.yield() else self.count = self.count - 1 end end until( task == nil or self.args.success == false ) -- 执行结束回调 if type( self.cb_ret.cb ) == 'function' then local ret = { pcall( self.cb_ret.cb, self.args.success, table.unpack( self.args.args ) ) } if ret[0] == false then self.cb_err( ret ) end end end --------------------------------------------------------------------------- -- 在promise增加一个任务 function _promise_t.go( self, cb, pos ) assert( cb ~= nil ) assert( type( cb ) == 'function' ) if pos == nil then pos = self; end if pos.items == nil then pos.items = {}; end local item = { cb = cb, flag = false } table.insert( pos.items, item ) -- print( 'add cb:', self, item, cb, pos ) return self end --------------------------------------------------------------------------- -- 在promise增加一个任务 function _promise_t.error( self, cb ) assert( type( cb ) == 'function' ) self.cb_err = cb return self end --------------------------------------------------------------------------- -- promise的最后一个任务, 注意用户必须调用promise:result( cb )明确指明结束过程才会启动promise function _promise_t._result( self, args ) return function( self, cb ) assert( cb == nil or type( cb ) == 'function' ) self.cb_ret = { cb = cb, flag = false } self.args = { success = true, args = args } self.corout = coroutine.create( function( self ) self:run() end ) -- auxdbg.print( self ) -- print( 'result: ', coroutine.running(), self.corout ) coroutine.resume( self.corout, self ) end end --------------------------------------------------------------------------- -- 深复制对象 function deep_copy( source ) local target if type( source ) == 'table' then target = {} for k, v in pairs( source ) do target[ k ] = deep_copy( v ) end else target = source end return target end --------------------------------------------------------------------------- -- 请求新promise实例 function _promise_t.create( self, ... ) local ret = setmetatable( deep_copy( promise_t ), { __index = _promise_t } ) ret.result = ret._result( ret, { ... } ) return ret end --------------------------------------------------------------------------- return _promise_t
local S = technic_cnc.getter technic_cnc.register_all( "ethereal:glostone", {cracky = 1, not_in_creative_inventory = 1, light_source = 13}, {"ethereal_glostone.png"}, S("Glo Stone") ) technic_cnc.register_all( "ethereal:crystal_block", {snappy = 2, choppy = 2, oddly_breakable_by_hand = 2, not_in_creative_inventory = 1}, {"ethereal_crystal_block.png"}, S("Crystal") ) technic_cnc.register_all( "ethereal:banana_wood", {snappy = 2, choppy = 2, oddly_breakable_by_hand = 2, not_in_creative_inventory = 1}, {"ethereal_banana_wood.png"}, S("Banana Wood") ) technic_cnc.register_all( "ethereal:birch_wood", {snappy = 2, choppy = 2, oddly_breakable_by_hand = 2, not_in_creative_inventory = 1}, {"moretrees_birch_wood.png"}, S("Birch Wood") ) technic_cnc.register_all( "ethereal:frost_wood", {snappy = 2, choppy = 2, oddly_breakable_by_hand = 2, not_in_creative_inventory = 1}, {"ethereal_frost_wood.png"}, S("Frost Wood") ) technic_cnc.register_all( "ethereal:palm_wood", {snappy = 2, choppy = 2, oddly_breakable_by_hand = 2, not_in_creative_inventory = 1}, {"moretrees_palm_wood.png"}, S("Palm Wood") ) technic_cnc.register_all( "ethereal:willow_wood", {snappy = 2, choppy = 2, oddly_breakable_by_hand = 2, not_in_creative_inventory = 1}, {"ethereal_willow_wood.png"}, S("Willow Wood") ) technic_cnc.register_all( "ethereal:yellow_wood", {snappy = 2, choppy = 2, oddly_breakable_by_hand = 2, not_in_creative_inventory = 1}, {"ethereal_yellow_wood.png"}, S("Healing Tree Wood") ) technic_cnc.register_all( "ethereal:redwood_wood", {snappy = 2, choppy = 2, oddly_breakable_by_hand = 2, not_in_creative_inventory = 1}, {"ethereal_redwood_wood.png"}, S("Redwood") )
ChargedShot = { ChargeTimeMS = 400, ShotImpulse = 620, PlayerSpeedMod = 0.1, BallBashTimeMS = 125, BallBashImpulse = 1200, }
return {'vide','video','videoapparaat','videoapparatuur','videoband','videobeeld','videobewaking','videobewerking','videoboodschap','videobranche','videobrief','videobril','videocamera','videocassette','videocassetterecorder','videoclip','videoclipachtig','videoconferencing','videoconferentie','videodocumentaire','videofilm','videofilmpjes','videofoon','videofragment','videogame','videojockey','videokaart','videoketen','videokunst','videokunstenaar','videokunstenares','videomarkt','videomateriaal','videomontage','videomuur','videoplaat','videopresentatie','videoproduct','videoproductie','videoprogramma','videoproject','videorecorder','videoregistratie','videoreportage','videoscherm','videosignaal','videospel','videospeler','videosysteem','videotape','videotechniek','videotheek','videoverbinding','videoverhuur','videowerk','videowerkgroep','videowinkel','videozaak','viditel','vide','videoaanbod','videotheekhouder','videoverhuurder','videoverhuurketen','videoprojectie','videosite','videoverslag','videoanalyse','videoarchief','videobellen','videochat','videocommunicatie','videodagboek','videoformaat','videofunctie','videogeheugen','videogesprek','videograaf','videokanaal','videokwaliteit','videolink','videonetwerk','videoplatform','videoprojector','videoreclame','videoteam','videotestament','videotechnologie','videotelefonie','videochip','videokabel','videopagina','videler','videos','videobanden','videobeelden','videobestanden','videocameras','videoconferenties','videofilms','videofoons','videokunstenaars','videomonitoren','videootje','videoproducten','videoproducties','videoprojecties','videoreportages','videoschermen','videosignalen','videotheken','videowerken','videoboodschappen','videocassetterecorders','videocassettes','videoclipachtige','videoclips','videofilmpje','videofragmenten','videogames','videojockeys','videokaarten','videootjes','videoplaten','videopresentaties','videorecorders','videoregistraties','videospelen','videospellen','videospelletje','videospelletjes','videotapes','videowinkels','videozaken','vides','videotheekhouders','vides','videoformaten','videogesprekken','videosites','videospelers','videocameraatje','videoverslagen','videosystemen','videoteams','videobandje','videoanalyses','videoprojectoren','videokanalen','videonetwerken','videoprojecten','videotechnieken','videodagboeken','videoverbindingen','videobrillen','videofragmentje','videobandjes','videoapparaten','videoschermpjes','videoprogrammas','videomaterialen'}
------------------------------------------Overview------------------------------------------ -- Name: Calculation Functions -- Notes: Copyright (c) 2017 Jeremy Gulickson -- Version: 1.0.03112017 -- Usage: Functions to simplify common calculation operations. -- -- Requirements: FXTS (FXCM Trading Station) -- Download Link: http://download.fxcorporate.com/FXCM/FXTS2Install.EXE -- Documentation: http://www.fxcodebase.com/bin/products/IndicoreSDK/3.3.0/help/Lua/web-content.htm -- ---------------------------------------Version History-------------------------------------- -- v1.0.11062014: Initial release -- -------------------------------------------------------------------------------------------- function Convert_To_USD(aBase_Currency, aAmount) -- Only accurate for USD denominated accounts. local zOffers_Table = core.host:findTable("offers"); local zSize_In_USD = 0; if aBase_Currency == "EUR" then zSize_In_USD = aAmount * zOffers_Table:find("Instrument", "EUR/USD").Bid; elseif aBase_Currency == "USD" then zSize_In_USD = aAmount; elseif aBase_Currency == "GBP" then zSize_In_USD = aAmount * zOffers_Table:find("Instrument", "GBP/USD").Bid; elseif aBase_Currency == "AUD" then zSize_In_USD = aAmount * zOffers_Table:find("Instrument", "AUD/USD").Bid; elseif aBase_Currency == "NZD" then zSize_In_USD = aAmount * zOffers_Table:find("Instrument", "NZD/USD").Bid; elseif aBase_Currency == "CAD" then zSize_In_USD = aAmount * (1 / zOffers_Table:find("Instrument", "USD/CAD").Bid); elseif aBase_Currency == "CHF" then zSize_In_USD = aAmount * (1 / zOffers_Table:find("Instrument", "USD/CHF").Bid); elseif aBase_Currency == "HKD" then zSize_In_USD = aAmount * (1 / zOffers_Table:find("Instrument", "USD/HKD").Bid); elseif aBase_Currency == "JPY" then zSize_In_USD = aAmount * (1 / zOffers_Table:find("Instrument", "USD/JPY").Bid); elseif aBase_Currency == "NOK" then zSize_In_USD = aAmount * (1 / zOffers_Table:find("Instrument", "USD/NOK").Bid); elseif aBase_Currency == "SEK" then zSize_In_USD = aAmount * (1 / zOffers_Table:find("Instrument", "USD/SEK").Bid); elseif aBase_Currency == "SGD" then zSize_In_USD = aAmount * (1 / zOffers_Table:find("Instrument", "USD/SGD").Bid); elseif aBase_Currency == "TRY" then zSize_In_USD = aAmount * (1 / zOffers_Table:find("Instrument", "USD/TRY").Bid); elseif aBase_Currency == "ZAR" then zSize_In_USD = aAmount * (1 / zOffers_Table:find("Instrument", "USD/ZAR").Bid); else core.host:trace("Convert_To_USD Failed | In Else Clause"); end return zSize_In_USD; end
local mt = {} function vector(x, y) local v = {x = x, y = y} setmetatable(v, mt) return v end mt.__add = function(v1, v2) return vector(v1.x + v2.x, v1.y + v2.y) end mt.__sub = function(v1, v2) return vector(v1.x - v2.x, v1.y - v2.y) end mt.__mul = function(v1, n) return vector(v1.x * n, v1.y * n) end mt.__div = function(v1, n) return vector(v1.x / n, v1.y / n) end mt.__len = function(v) return (v.x * v.x + v.y * v.y) ^ 0.5 end mt.__eq = function(v1, v2) return v1.x == v2.x and v1.y == v2.y end mt.__index = function(v, k) if k == "print" then return function() print("[" .. v.x .. ", " .. v.y .. "]") end end end mt.__call = function(v) print("[" .. v.x .. ", " .. v.y .. "]") end v1 = vector(1, 2); v1:print() v2 = vector(3, 4); v2:print() v3 = v1 * 2; v3:print() v4 = v1 + v3; v4:print() print(#v2) print(v1 == v2) print(v2 == vector(3, 4)) v4()
E2VguiCore.RegisterVguiElementType("dcombobox.lua",true) __e2setcost(5) local function isValidDComboBox(panel) if not istable(panel) then return false end if table.Count(panel) != 3 then return false end if panel["players"] == nil then return false end if panel["paneldata"] == nil then return false end if panel["changes"] == nil then return false end return true end --register this default table creation function so we can use it anywhere E2VguiCore.AddDefaultPanelTable("dcombobox",function(uniqueID,parentPnlID) local tbl = { --this table has no impact whatsoever because it doesn't get called on the client ["uniqueID"] = uniqueID, ["parentID"] = parentPnlID, ["typeID"] = "dcombobox", ["posX"] = 0, ["posY"] = 0, ["width"] = nil, ["height"] = nil, ["text"] = "DComboBox", ["visible"] = true, ["sortItems"] = false, ["choice"] = nil, ["clear"] = nil } return tbl end) --6th argument type checker without return, --7th arguement type checker with return. False for valid type and True for invalid registerType("dcombobox", "xcb", {["players"] = {}, ["paneldata"] = {},["changes"] = {}}, nil, nil, function(retval) if not istable(retval) then error("Return value is not a table, but a "..type(retval).."!",0) end if #retval ~= 3 then error("Return value does not have exactly 3 entries!",0) end end, function(v) return not isValidDComboBox(v) end ) E2VguiCore.RegisterTypeWithID("dcombobox","xcb") --[[------------------------------------------------------------ E2 Functions ------------------------------------------------------------]]-- --- B = B registerOperator("ass", "xcb", "xcb", function(self, args) local op1, op2, scope = args[2], args[3], args[4] local rv2 = op2[1](self, op2) self.Scopes[scope][op1] = rv2 self.Scopes[scope].vclk[op1] = true return rv2 end) --TODO: Check if the entire pnl data is valid -- if (B) e2function number operator_is(xcb pnldata) return isValidDComboBox(pnldata) and 1 or 0 end -- if (!B) e2function number operator!(xcb pnldata) return isValidDComboBox(pnldata) and 0 or 1 end --- B == B --check if the names match --TODO: Check if the entire pnl data is equal (each attribute of the panel) e2function number operator==(xcb ldata, xcb rdata) if not isValidDComboBox(ldata) then return 0 end if not isValidDComboBox(rdata) then return 0 end return ldata["paneldata"]["uniqueID"] == rdata["paneldata"]["uniqueID"] and 1 or 0 end --- B == number --check if the uniqueID matches e2function number operator==(xcb ldata, n index) if not isValidDComboBox(ldata) then return 0 end return ldata["paneldata"]["uniqueID"] == index and 1 or 0 end --- number == B --check if the uniqueID matches e2function number operator==(n index,xcb rdata) if not isValidDComboBox(rdata) then return 0 end return rdata["paneldata"]["uniqueID"] == index and 1 or 0 end --- B != B --TODO: Check if the entire pnl data is equal (each attribute of the panel) e2function number operator!=(xcb ldata, xcb rdata) if not isValidDComboBox(ldata) then return 1 end if not isValidDComboBox(rdata) then return 1 end return ldata["paneldata"]["uniqueID"] == rdata["paneldata"]["uniqueID"] and 0 or 1 end --- B != number --check if the uniqueID matches e2function number operator!=(xcb ldata, n index) if not isValidDComboBox(ldata) then return 0 end return ldata["paneldata"]["uniqueID"] == index and 0 or 1 end --- number != B --check if the uniqueID matches e2function number operator!=(n index,xcb rdata) if not isValidDComboBox(rdata) then return 0 end return rdata["paneldata"]["uniqueID"] == index and 0 or 1 end --[[------------------------------------------------------------------------- Desc: Creates a dcombobox element Args: Return: dcombobox ---------------------------------------------------------------------------]] e2function dcombobox dcombobox(number uniqueID) local players = {self.player} if self.entity.e2_vgui_core_default_players != nil and self.entity.e2_vgui_core_default_players[self.entity:EntIndex()] != nil then players = self.entity.e2_vgui_core_default_players[self.entity:EntIndex()] end return { ["players"] = players, ["paneldata"] = E2VguiCore.GetDefaultPanelTable("dcombobox",uniqueID,nil), ["changes"] = {} } end e2function dcombobox dcombobox(number uniqueID,number parentID) local players = {self.player} if self.entity.e2_vgui_core_default_players != nil and self.entity.e2_vgui_core_default_players[self.entity:EntIndex()] != nil then players = self.entity.e2_vgui_core_default_players[self.entity:EntIndex()] end return { ["players"] = players, ["paneldata"] = E2VguiCore.GetDefaultPanelTable("dcombobox",uniqueID,parentID), ["changes"] = {} } end do--[[setter]]-- --------------------------------choices-------------------------------- e2function void dcombobox:addChoice(string displayText,string data) E2VguiCore.registerAttributeChange(this,"choice", {displayText,data}) end e2function void dcombobox:addChoice(string displayText,number data) E2VguiCore.registerAttributeChange(this,"choice", {displayText,data}) end e2function void dcombobox:addChoice(string displayText,vector2 data) E2VguiCore.registerAttributeChange(this,"choice", {displayText,data}) end e2function void dcombobox:addChoice(string displayText,vector data) E2VguiCore.registerAttributeChange(this,"choice", {displayText,data}) end e2function void dcombobox:addChoice(string displayText,vector4 data) E2VguiCore.registerAttributeChange(this,"choice", {displayText,data}) end --TODO: Potential problem with sending the array to the client e2function void dcombobox:addChoice(string displayText,array data) E2VguiCore.registerAttributeChange(this,"choice", {displayText,data}) end --TODO: Potential problem with sending the table to the client e2function void dcombobox:addChoice(string displayText,table data) E2VguiCore.registerAttributeChange(this,"choice", {displayText,E2VguiCore.convertToLuaTable(data)}) end e2function void dcombobox:addChoices(array dataList) for index,value in pairs(dataList) do if type(value) == "Player" then value = value:Nick() elseif type(value) == "Entity" then value = tostring(value) elseif type(value) != "string" and type(value) != "number" then continue end E2VguiCore.registerAttributeChange(this,"choice", {value,index}) end end e2function void dcombobox:addChoices(table dataList) local luaTbl = E2VguiCore.convertToLuaTable(dataList) for key,value in pairs(luaTbl) do if type(value) == "Player" then value = value elseif type(value) == "Entity" then value = value elseif type(value) != "string" and type(value) != "number" then continue end E2VguiCore.registerAttributeChange(this,"choice", {key,value}) end end --------------------------------choices-------------------------------- e2function void dcombobox:clear() E2VguiCore.registerAttributeChange(this,"clear", true) end e2function void dcombobox:setText(string text) E2VguiCore.registerAttributeChange(this,"value", text) end e2function void dcombobox:setSortItems(number sortItems) E2VguiCore.registerAttributeChange(this,"sortItems", sortItems > 0) end -- setter end do--[[getter]]-- e2function string dcombobox:getValue(entity ply) return E2VguiCore.GetPanelAttribute(ply,self.entity:EntIndex(),this,"value") or "" end e2function string dcombobox:getValueID(entity ply) return E2VguiCore.GetPanelAttribute(ply,self.entity:EntIndex(),this,"valueid") or "" end e2function string dcombobox:getData(entity ply) return E2VguiCore.GetPanelAttribute(ply,self.entity:EntIndex(),this,"data") or "" end -- getter end
---------------------------------------------------------- -- Load RayUI Environment ---------------------------------------------------------- RayUI:LoadEnv("Skins") local S = _Skins local skinned = false local function SkinBugSack() if not IsAddOnLoaded("BugSack") or not BugSack then return end hooksecurefunc(BugSack, "OpenSack", function() if skinned then return end BugSackFrame:StripTextures() S:SetBD(BugSackFrame) S:Reskin(BugSackPrevButton) S:Reskin(BugSackNextButton) S:Reskin(BugSackSendButton) BugSackSendButton:SetPoint("LEFT", BugSackPrevButton, "RIGHT", 5, 0) BugSackSendButton:SetPoint("RIGHT", BugSackNextButton, "LEFT", -5, 0) S:ReskinScroll(BugSackScrollScrollBar) local BugSackFrameCloseButton = select(1, BugSackFrame:GetChildren()) S:ReskinClose(BugSackFrameCloseButton) BugSackTabAll:ClearAllPoints() BugSackTabAll:SetPoint("TOPLEFT", BugSackFrame, "BOTTOMLEFT", 0, 1) S:CreateTab(BugSackTabAll) S:CreateTab(BugSackTabSession) S:CreateTab(BugSackTabLast) skinned = true end) end S:AddCallbackForAddon("BugSack", "BugSack", SkinBugSack)
map_data = dozipfile 'data/magic.lua.gz' function getLayer( layer ) for _, v in pairs( map_data.layers ) do if v.type == 'tilelayer' then if v.name == layer then return v end end end return nil end function getTileGrid( ts, layerName ) local layer = getLayer( layerName ) if not layer then print( 'Could not find layer: ' .. layerName ) return nil end local tg = TileGrid( ts, layer.width, layer.height ) tg:setData( layer.data ) tg:setXY( 0, 0 ) return tg end for x = 0, 800, 112 do local sky = Bitmap 'data/sky.png' local sea = Bitmap 'data/sea.png' sky.x = x sea.x = x sea.y = 304 renderlist:insert(sky) renderlist:insert(sea) end for x = 0, 800, 236 do local clouds = Bitmap 'data/clouds.png' clouds.x = x clouds.y = 88 renderlist:insert(clouds) end far_grounds = Bitmap 'data/far_grounds.png' far_grounds.x = 300 far_grounds.y = 290 renderlist:insert(far_grounds) ts = TileSet(1, 16, 16) if not ts:loadSourceBitmap( 'data/magic_cliff_tileset.png') then print( 'Could not load tile set bitmap' ) return end tilegrids = {} tilegrids.front1 = getTileGrid( ts, 'Front 1' ) tilegrids.front2 = getTileGrid( ts, 'Front 2' ) tilegrids.back1 = getTileGrid( ts, 'Back 1' ) indy_sprite = Sprite( 'data/sprites', 'templerun' ) indy = Bitmap() indy.x = 150 indy.y = 120 renderlist:insert( tilegrids.back1 ) renderlist:insert( indy ) renderlist:insert( tilegrids.front2 ) renderlist:insert( tilegrids.front1 ) animate = coroutine.create( function( time ) local prev = time while true do for index=0,9 do while time - prev < .08 do time = coroutine.yield() end prev = time indy:setBitmap( indy_sprite:getFrame( 'Run_' .. index ) ) end end end ) slide = coroutine.create( function() while true do for i=0, 25*32, 1 do tilegrids.front1:setXY( -i, 0 ) tilegrids.front2:setXY( -i, 0 ) tilegrids.back1:setXY( -i, 0 ) coroutine.yield() end end end ) table.insert( tasks, animate ) table.insert( tasks, slide ) require 'gui/button' btn_console = Button( gui.atlas, renderlist, 16, 410, 96, "Console" ) function btn_console:action() console('toggle') end gui:addChild( btn_console )
require 'torch' require 'cutorch' require 'nn' require 'densecap.modules.ReshapeBoxFeatures' require 'densecap.modules.ApplyBoxTransform' require 'densecap.modules.MakeAnchors' require 'densecap.modules.MakeBoxes' local tests = {} local tester = torch.Tester() -- Make sure that MakeAnchors + ReshapeBoxFeatures + ApplyBoxTransform -- computes the same thing as MakeBoxes local function consistencyFactory(dtype) return function() local x0, y0, sx, sy = 1, 2, 3, 4 local N, H, W = 2, 3, 5 local k = 7 local anchors = torch.randn(2, k):abs():type(dtype) local transforms = torch.randn(N, 4 * k, H, W):type(dtype) local make_boxes = nn.MakeBoxes(x0, y0, sx, sy, anchors):type(dtype) local boxes1 = make_boxes:forward(transforms) local net = nn.Sequential() local concat = nn.ConcatTable() local s = nn.Sequential() s:add(nn.MakeAnchors(x0, y0, sx, sy, anchors)) s:add(nn.ReshapeBoxFeatures(k)) concat:add(s) concat:add(nn.ReshapeBoxFeatures(k)) net:add(concat) net:add(nn.ApplyBoxTransform()) net:type(dtype) local boxes2 = net:forward(transforms) tester:assertTensorEq(boxes1, boxes2, 1e-6) end end tests.floatConsistencyTest = consistencyFactory('torch.FloatTensor') tests.doubleConsistencyTest = consistencyFactory('torch.DoubleTensor') tests.cudaConsistencyTest = consistencyFactory('torch.CudaTensor') tester:add(tests) tester:run()
thread = 2 bootstrap = "snlua bootstrap" harbor = 0 logservice = "ex_loggersvr" daemon = nil start = "ex_testsvr" profile = false if not skynet_extend then skynet_extend = ""--"skynet_extend/" end local function concat_ddpath(args) local r = '' for i = 1, # args do r = r .. ';' .. skynet_extend .. args[i] end return r .. ";" end lualoader = skynet_extend .. "skynet/lualib/loader.lua" cpath = concat_ddpath { "skynet/cservice/?.so", "cservice/?.so", "luaclib/?.so", } luaservice = concat_ddpath { "skynet/service/?.lua", "service/?.lua", } lua_path = concat_ddpath { "skynet/lualib/?.lua", "lualib/?.lua", "service/?.lua", } lua_cpath = concat_ddpath { "skynet/luaclib/?.so", "luaclib/?.so", "cservice/?.so", }
--[[ Nameplate Filter Add the nameplates name that you do NOT want to see. ]] local E, L, V, P, G = unpack(select(2, ...)); --Engine G["nameplate"]["filters"] = { ["Boss"] = { ["triggers"] = { ["level"] = true, ["curlevel"] = -1, ["nameplateType"] = { ["enable"] = true, ["enemyNPC"] = true, }, }, ["actions"] = { ["usePortrait"] = true, ["scale"] = 1.15, }, }, } E["StyleFilterDefaults"] = { ["triggers"] = { ["priority"] = 1, ["targetMe"] = false, ["isTarget"] = false, ["notTarget"] = false, ["questBoss"] = false, ["level"] = false, ["casting"] = { ["interruptible"] = false, ["spells"] = {}, }, ["role"] = { ["tank"] = false, ["healer"] = false, ["damager"] = false, }, ["classification"] = { ["worldboss"] = false, ["rareelite"] = false, ["elite"] = false, ["rare"] = false, ["normal"] = false, ["trivial"] = false, ["minus"] = false, }, ["class"] = {}, --this can stay empty we only will accept values that exist ["talent"] = { ["type"] = "normal", ["enabled"] = false, ["requireAll"] = false, ["tier1enabled"] = false, ["tier1"] = { ["missing"] = false, ["column"] = 0, }, ["tier2enabled"] = false, ["tier2"] = { ["missing"] = false, ["column"] = 0, }, ["tier3enabled"] = false, ["tier3"] = { ["missing"] = false, ["column"] = 0, }, ["tier4enabled"] = false, ["tier4"] = { ["missing"] = false, ["column"] = 0, }, ["tier5enabled"] = false, ["tier5"] = { ["missing"] = false, ["column"] = 0, }, ["tier6enabled"] = false, ["tier6"] = { ["missing"] = false, ["column"] = 0, }, ["tier7enabled"] = false, ["tier7"] = { ["missing"] = false, ["column"] = 0, }, }, ["curlevel"] = 0, ["maxlevel"] = 0, ["minlevel"] = 0, ["healthThreshold"] = false, ["healthUsePlayer"] = false, ["underHealthThreshold"] = 0, ["overHealthThreshold"] = 0, ["powerThreshold"] = false, ["powerUsePlayer"] = false, ["underPowerThreshold"] = 0, ["overPowerThreshold"] = 0, ["names"] = {}, ["nameplateType"] = { ["enable"] = false, ["friendlyPlayer"] = false, ["friendlyNPC"] = false, ["healer"] = false, ["enemyPlayer"] = false, ["enemyNPC"] = false, ["neutral"] = false }, ["reactionType"] = { ["enabled"] = false, ["reputation"] = false, ["hated"] = false, ["hostile"] = false, ["unfriendly"] = false, ["neutral"] = false, ["friendly"] = false, ["honored"] = false, ["revered"] = false, ["exalted"] = false }, ["instanceType"] = { ["none"] = false, ["scenario"] = false, ["party"] = false, ["raid"] = false, ["arena"] = false, ["pvp"] = false, }, ["instanceDifficulty"] = { ["dungeon"] = { ["normal"] = false, ["heroic"] = false, ["mythic"] = false, ["mythic+"] = false, ["timewalking"] = false, }, ["raid"] = { ["lfr"] = false, ["normal"] = false, ["heroic"] = false, ["mythic"] = false, ["timewalking"] = false, ["legacy10normal"] = false, ["legacy25normal"] = false, ["legacy10heroic"] = false, ["legacy25heroic"] = false, } }, ["cooldowns"] = { ["names"] = {}, ["mustHaveAll"] = false, }, ["buffs"] = { ["mustHaveAll"] = false, ["missing"] = false, ["names"] = {}, ["minTimeLeft"] = 0, ["maxTimeLeft"] = 0, }, ["debuffs"] = { ["mustHaveAll"] = false, ["missing"] = false, ["names"] = {}, ["minTimeLeft"] = 0, ["maxTimeLeft"] = 0, }, ["inCombat"] = false, ["outOfCombat"] = false, ["inCombatUnit"] = false, ["outOfCombatUnit"] = false, }, ["actions"] = { ["color"] = { ["health"] = false, ["power"] = false, ["border"] = false, ["name"] = false, ["healthColor"] = {r=1,g=1,b=1,a=1}, ["powerColor"] = {r=1,g=1,b=1,a=1}, ["borderColor"] = {r=1,g=1,b=1,a=1}, ["nameColor"] = {r=1,g=1,b=1,a=1} }, ["texture"] = { ["enable"] = false, ["texture"] = "ElvUI Norm", }, ["flash"] = { ["enable"] = false, ["color"] = {r=1,g=1,b=1,a=1}, ["speed"] = 4, }, ["hide"] = false, ["usePortrait"] = false, ["nameOnly"] = false, ["frameLevel"] = 0, ["scale"] = 1.0, ["alpha"] = -1, }, }
--------------------------------------------------------------------------------------------------- -- Proposal: https://github.com/smartdevicelink/sdl_evolution/blob/master/proposals/0273-webengine-projection-mode.md -- -- Description: Check videoStreamingState transitions of WEB_VIEW application on HMI events -- -- Preconditions: -- 1) SDL and HMI are started -- 2) WebEngine App with WEB_VIEW HMI type is registered -- 3) WebEngine App is not video source ('videoStreamingState' = NOT_STREAMABLE) -- -- Sequence: -- 1) One of the event below is received from HMI within 'BC.OnEventChanged' notification: -- AUDIO_SOURCE, EMBEDDED_NAVI, PHONE_CALL, EMERGENCY_EVENT -- a. SDL sends OnHMIStatus notification with 'videoStreamingState' = NOT_STREAMABLE --------------------------------------------------------------------------------------------------- --[[ Required Shared libraries ]] local common = require('test_scripts/WebEngine/commonWebEngine') --[[ Test Configuration ]] config.checkAllValidations = true --[[ Local Constants ]] local appSessionId = 1 local webEngineDevice = 1 --[[ Local Variables ]] local testCases = { [001] = { appType = "WEB_VIEW", isMedia = true, video = "NOT_STREAMABLE", event = "AUDIO_SOURCE" }, [002] = { appType = "WEB_VIEW", isMedia = true, video = "NOT_STREAMABLE", event = "EMBEDDED_NAVI" }, [003] = { appType = "WEB_VIEW", isMedia = true, video = "NOT_STREAMABLE", event = "PHONE_CALL" }, [004] = { appType = "WEB_VIEW", isMedia = true, video = "NOT_STREAMABLE", event = "EMERGENCY_EVENT" } } --[[ Local Functions ]] local function sendEvent(pEvent, pVideoSS) common.getHMIConnection():SendNotification("BasicCommunication.OnEventChanged", { eventName = pEvent, isActive = true }) common.getMobileSession():ExpectNotification("OnHMIStatus") :ValidIf(function(_, data) return common.checkVideoSS("App1", pVideoSS, data.payload.videoStreamingState) end) end --[[ Scenario ]] for n, tc in common.spairs(testCases) do common.Title("TC[" .. string.format("%03d", n) .. "]: " .. "[hmiType:" .. tc.appType .. ", isMedia:" .. tostring(tc.isMedia) .. ", event:" .. tc.event .. "]") common.Title("Preconditions") common.Step("Clean environment", common.preconditions) common.Step("Update WS Server Certificate parameters in smartDeviceLink.ini file", common.commentAllCertInIniFile) common.Step("Add AppHMIType to preloaded policy table", common.updatePreloadedPT, { appSessionId, { tc.appType }}) common.Step("Start SDL, HMI", common.startWOdeviceConnect) common.Step("Connect WebEngine device", common.connectWebEngine, { webEngineDevice, "WS" }) common.Step("Set App Config", common.setAppConfig, { appSessionId, tc.appType, tc.isMedia }) common.Step("Register App", common.registerAppWOPTU) common.Step("Activate App", common.activateApp) common.Title("Test") common.Step("Send event from HMI: " .. tc.event, sendEvent, { tc.event, tc.video }) common.Title("Postconditions") common.Step("Clean sessions", common.cleanSessions) common.Step("Stop SDL", common.postconditions) end
--------------------------------------------------------------------------------------------------- -- User story: https://github.com/smartdevicelink/sdl_requirements/issues/3 -- Use case: https://github.com/smartdevicelink/sdl_requirements/blob/master/detailed_docs/SetInteriorVehicleData.md -- Item: Use Case 1: Exceptions: 2.2 -- -- Use case: https://github.com/smartdevicelink/sdl_requirements/blob/master/detailed_docs/SetInteriorVehicleData.md -- Item: Use Case 1: Use Case 1: Exceptions: 7.3 -- -- Requirement summary: -- [SDL_RC] Set available control module settings SetInteriorVehicleData -- -- Description: -- In case: -- 1) Application registered with REMOTE_CONTROL AppHMIType and sends SetInteriorVehicleData RPC -- 2) (with "climateControlData" and RADIO moduleType) OR (with "radioControlData" and CLIMATE moduleType) -- SDL must: -- 1) Respond with "resultCode: INVALID_DATA, success: false" to this mobile app, not transferring this RPC to the vehicle --------------------------------------------------------------------------------------------------- --[[ Required Shared libraries ]] local runner = require('user_modules/script_runner') local commonRC = require('test_scripts/RC/commonRC') --[[ Test Configuration ]] runner.testSettings.isSelfIncluded = false --[[ Local Functions ]] local function setVehicleData(pModuleType) local moduleType2 = nil if pModuleType == "CLIMATE" then moduleType2 = "RADIO" elseif pModuleType == "RADIO" then moduleType2 = "CLIMATE" end local moduleData = commonRC.getSettableModuleControlData(moduleType2) moduleData.moduleType = pModuleType local cid = commonRC.getMobileSession():SendRPC("SetInteriorVehicleData", { moduleData = moduleData }) EXPECT_HMICALL("RC.SetInteriorVehicleData") :Times(0) commonRC.getMobileSession():ExpectResponse(cid, { success = false, resultCode = "INVALID_DATA" }) commonRC.wait(commonRC.timeout) end --[[ Scenario ]] runner.Title("Preconditions") runner.Step("Clean environment", commonRC.preconditions) runner.Step("Start SDL, HMI, connect Mobile, start Session", commonRC.start) runner.Step("RAI", commonRC.registerAppWOPTU) runner.Step("Activate App", commonRC.activateApp) runner.Title("Test") for _, mod in pairs(commonRC.modules) do runner.Step("SetInteriorVehicleData " .. mod .. "_gets_INVALID_DATA", setVehicleData, { mod }) end runner.Title("Postconditions") runner.Step("Stop SDL", commonRC.postconditions)
IUPSBOX = {parent = WIDGET} function IUPSBOX:CreateIUPelement (obj) return iupCreateSbox(obj[1]) end function iupsbox (o) return IUPSBOX:Constructor (o) end iup.sbox = iupsbox
-- import local SignalModule = require 'candy.signal' -- module local RenderManagerModule = {} DEFAULT_MAX_GLOBAL_TEXTURE_COUNT = 8 DEFAULT_GLOBAL_TEXTURE_START_INDEX = 8 -- local _draw = MOCKHelper.draw local _draw = function () _warn ( "MOCKHelper.draw not impl!" ) end local function _affirmMoaiTexture ( t ) local tt = type ( t ) if tt == "userdata" then return t elseif tt == "string" then local atype = getAssetType ( t ) if isSupportedTextureAssetType ( atype ) then local asset = loadAsset ( t ) return asset and asset:getMoaiTexture () end elseif isInstance ( t, TextureInstance ) then return t:getMoaiTexture () else return nil end end local _RenderManager = nil ---@return RenderManager local function getRenderManager () return _RenderManager end local createTableRenderLayer local createTableViewRenderLayer local createPartitionRenderLayer -------------------------------------------------------------------- -- GlobalTextureItem -------------------------------------------------------------------- ---@class GlobalTextureItem local GlobalTextureItem = CLASS: GlobalTextureItem () function GlobalTextureItem:__init () self.name = "" self.index = 0 end function GlobalTextureItem:setTexture ( context, tex ) return context:_setGlobalTextureValue ( self, tex ) end function GlobalTextureItem:getTexture ( context ) return context:_getGlobalTextureValue ( self ) end function GlobalTextureItem:getMoaiTexture ( context ) return _affirmMoaiTexture ( self:getTexture ( context ) ) end -------------------------------------------------------------------- -- RenderManager -------------------------------------------------------------------- ---@class RenderManager local RenderManager = CLASS: RenderManager () :MODEL {} function RenderManager:__init ( name ) _RenderManager = self self.async = false --MOAIRenderMgr.isAsync () self.name = name self.performanceProfile = "normal" self.globalTextureCount = 0 self.globalTextureUnitStart = DEFAULT_GLOBAL_TEXTURE_START_INDEX self.maxGlobalTextureCount = DEFAULT_MAX_GLOBAL_TEXTURE_COUNT self.globalTextures = {} self.globalTextureMap = {} self.materialSwitchMasks = {} self.pendingRenderTasks = {} self.pendingPostSyncCalls = {} self.pendingResAffirm = {} self.rootRenderTable = {} self.rootRenderPass = createTableRenderLayer () ---@type MOAITableLayer self.rootRenderPass:setClearMode ( MOAILayer.CLEAR_NEVER ) self.rootRenderPass:setRenderTable ( self.rootRenderTable ) self.contexts = {} self.contextMap = {} self.shaderContext = {} self.defaultContext = false self.currentContext = false self.flipRenderTarget = false SignalModule.connectGlobalSignalFunc ( "gfx.pre_sync_render_state", function () return self:preSyncRenderState () end ) SignalModule.connectGlobalSignalFunc ( "gfx.post_sync_render_state", function () return self:postSyncRenderState () end ) end function RenderManager:resetCurrent () self:setCurrentContext ( self.defaultContext ) end ---@param name string ---@param context RenderContext function RenderManager:registerContext ( name, context ) _stat ( "register render context:", name, context ) assert ( not self.contexts[ context ] ) context = context or candy.RenderContext () context.name = name self.contexts[ context ] = true self.contextMap[ name ] = context context:onInit () if self.contextReady then context:onContextReady () end return context end function RenderManager:getGraphicsAPIName () if MOAIAppNX then return "NVN", 1, 0 else local apiName = MOAIEnvironment.GraphicsAPI if apiName == "Metal" then return "Metal", 1, 2 elseif apiName == "GL3" then return "GL", 3, 1 elseif apiName == "Vulkan" then return "Vulkan", 1, 2 elseif apiName == "D3D12" then return "Direct3D", 12, 0 elseif apiName == "D3D11" then return "Direct3D", 11, 0 elseif apiName == "D3D10" then return "Direct3D", 10, 0 else return "GL", 3, 1 end end end function RenderManager:getContext ( name ) return self.contextMap[ name ] end function RenderManager:getCurrentContext () return self.currentContext end ---@param context RenderContext function RenderManager:setCurrentContext ( context ) if type ( context ) == "string" then local contextKey = context context = self.contextMap[ context ] assert ( context, "RenderManager.contextMap has nil conext: " .. contextKey ) end local context0 = self.currentContext if context0 == context then return end if context0 then context0.current = false context0:onDeactivate () end self.currentContext = context if context then context.current = true context:onActivate () end self.rootRenderTable[ 1 ] = context and context:getRenderRoot () end function RenderManager:onInit () local api, majorVer, minorVer = self:getGraphicsAPIName () _log ( "init RenderManager!!", api, majorVer, minorVer ) self.useCompiledShader = false self.flipRenderTarget = false setPropUsingRenderState ( false ) if api == "Metal" then self.useCompiledShader = true self.flipRenderTarget = true setGrabFramebufferFlip ( false ) setPropUsingRenderState ( true ) elseif api == "Direct3D" then self.useCompiledShader = true self.flipRenderTarget = true setGrabFramebufferFlip ( false ) setPropUsingRenderState ( true ) end end function RenderManager:onContextReady () -- _stat ( "context ready!!" ) self.rootRenderPass:setFrameBuffer ( MOAIGfxMgr.getFrameBuffer () ) MOAIRenderMgr.setRender ( self.rootRenderPass ) self.contextReady = true for context in pairs ( self.contexts ) do context:onContextReady () end self:initGlobalTextures () SignalModule.emitGlobalSignal ( "gfx.render_manager_ready" ) end function RenderManager:initGlobalTextures () local maxTexUnit = MOAIGfxMgr.getMaxTextureUnits () assert ( maxTexUnit > 0 ) for context in pairs ( self.contexts ) do context:updateGlobalTextures () end end function RenderManager:declareGlobalTexture ( name ) local idx = self.globalTextureCount + 1 if self.maxGlobalTextureCount < idx then _fatal ( "global texture count exceed limit", self.maxGlobalTextureCount ) end local item = GlobalTextureItem () item.index = idx item.name = name local map = self.globalTextureMap if map[ name ] then _fatal ( "duplicated global texture name", name ) end map[ name ] = item _log ( "declared global texture", name, item.index ) self.globalTextureCount = self.globalTextureCount + 1 self.globalTextures[ idx ] = item end function RenderManager:getGlobalTextureItems () return self.globalTextures end function RenderManager:getGlobalTextureItem ( name ) return self.globalTextureMap[ name ] end function RenderManager:getGlobalTextureUnit ( name ) local item = self:getGlobalTextureItem ( name ) if not item then _error ( "global texture not found", name ) return false end return self.globalTextureUnitStart + item.index end function RenderManager:getGlobalTexture ( name ) local context = self.currentContext if context then return context:getGlobalTexture ( name ) end return nil end function RenderManager:setGlobalTextures ( t ) if not self.currentContext then return end return self.currentContext:setGlobalTextures ( t ) end function RenderManager:setGlobalTexture ( name, tex ) if not self.currentContext then return end return self.currentContext:setGlobalTexture ( name, tex ) end function RenderManager:getRootRenderPass () return self.rootRenderPass end function RenderManager:_setMaterialSwitchMask ( mask ) return MOAIRenderMgr.setMaterialBatchSwitchMask ( mask ) end function RenderManager:setGlobalMaterialSwitchMask ( name ) if not name then return self:_setMaterialSwitchMask () end local mask = self.materialSwitchMasks[ name ] assert ( mask ) if mask then return self:_setMaterialSwitchMask ( mask ) end end function RenderManager:getGlobalMaterialSwitchMask ( name ) return self.materialSwitchMasks[ name ] end local function BIT ( n ) return bit.lshift ( 1, n ) end function RenderManager:declareMaterialSwitchBit ( name, bit ) return self:declareMaterialSwitchMask ( name, BIT ( bit ) ) end function RenderManager:declareMaterialSwitchMask ( name, mask ) assert ( not self.materialSwitchMasks[ name ] ) self.materialSwitchMasks[ name ] = mask end function RenderManager:addPostSyncRenderCall ( func, ... ) if self.async then table.insert ( self.pendingPostSyncCalls, { func, { ... } } ) else return func ( ... ) end end function RenderManager:affirmGfxResource ( res ) if self.async then table.insert ( self.pendingResAffirm, res ) else return res:affirm () end end function RenderManager:addRenderTask ( layer, callback, data ) local pending = self.async if pending then table.insert ( self.pendingRenderTasks, { layer, callback, data } ) else _draw ( layer ) if callback then return callback ( data ) end end end function RenderManager:updateGfxResource () -- MOCKHelper.updateResourceMgr () end function RenderManager:addRenderTaskClearFramebuffer ( fb, clearColor, clearDepth, clearStencil ) local clearRenderCommand = MOAILayer.new () clearRenderCommand:setFrameBuffer ( fb ) if clearColor then clearRenderCommand:setClearColor ( unpack ( clearColor ) ) end if clearDepth ~= false then clearRenderCommand:setClearDepth ( true ) end if clearStencil ~= false then clearRenderCommand:setClearStencil ( true ) end clearRenderCommand:setClearMode ( MOAILayer.CLEAR_ALWAYS ) return self:addRenderTask ( clearRenderCommand ) end function RenderManager:preSyncRenderState () end function RenderManager:postSyncRenderState () local pendingRes = self.pendingResAffirm local count = #pendingRes if count > 0 then for i = 1, count do local res = pendingRes[ i ] res:affirm () end self.pendingResAffirm = table.cleared ( self.pendingResAffirm ) end local pendingCalls = self.pendingPostSyncCalls local count = #pendingCalls if count > 0 then for i = 1, count do local call = pendingCalls[ i ] local func = call[ 1 ] local args = call[ 2 ] func ( unpack ( args ) ) end self.pendingPostSyncCalls = table.cleared ( self.pendingPostSyncCalls ) end local pending = self.pendingRenderTasks local count = #pending if count > 0 then for i = 1, count do local task = pending[ i ] local layer = task[ 1 ] local callback = task[ 2 ] local data = task[ 3 ] _draw ( layer ) if callback then callback ( data ) end end self.pendingRenderTasks = table.cleared ( self.pendingRenderTasks ) end end function RenderManager:setPerformanceProfile ( profile ) self.performanceProfile = profile SignalModule.emitGlobalSignal ( "gfx.performance_profile.change", profile ) self:setShaderContextValue ( "performance_profile", profile ) end function RenderManager:getPerformanceProfile () return self.performanceProfile end function RenderManager:setShaderContextValue ( k, v ) self.shaderContext[ k ] = v end function RenderManager:getShaderContextValue ( k ) return self.shaderContext[ k ] end function RenderManager:getShaderContext () return self.shaderContext end -------------------------------------------------------------------- ---@return MOAITableLayer function createTableRenderLayer () local layer = MOAITableLayer.new () layer:setClearMode ( MOAILayer.CLEAR_NEVER ) return layer end ---@return MOAITableViewLayer function createTableViewRenderLayer () local layer = MOAITableViewLayer.new () layer:setClearMode ( MOAILayer.CLEAR_NEVER ) return layer end ---@return MOAIPartitionViewLayer function createPartitionRenderLayer () local layer = MOAIPartitionViewLayer.new () layer:setClearMode ( MOAILayer.CLEAR_NEVER ) markRenderNode ( layer ) return layer end RenderManagerModule.getRenderManager = getRenderManager RenderManagerModule.GlobalTextureItem = GlobalTextureItem RenderManagerModule.RenderManager = RenderManager RenderManagerModule.createTableRenderLayer = createTableRenderLayer RenderManagerModule.createTableViewRenderLayer = createTableViewRenderLayer RenderManagerModule.createPartitionRenderLayer = createPartitionRenderLayer return RenderManagerModule
local AmpedUP_Balancing_GetSectorWeaponDPS = Balancing_GetSectorWeaponDPS function Balancing_GetSectorWeaponDPS(x, y) local dps, techLevel = AmpedUP_Balancing_GetSectorWeaponDPS(x, y) return dps * 75, techLevel end
local misc = require 'forth.extra.misc' local reason = require 'forth.extra.reason' local prompt = require 'forth.extra.prompt' local function functor (interpreter) local dictionary = interpreter.state.dictionary interpreter.module.dictionary.vocabulary 'world' interpreter.module.dictionary.definitions 'world' dictionary[ 'clear-screen' ] = function (...) if interpreter: skipping ( ) then return ... end os.execute 'clear' return ... end dictionary[ '.' ] = function (x, ...) if interpreter: skipping ( ) then return x, ... end print (prompt.output .. " " .. tostring (x)) return ... end dictionary[ '.s' ] = function (...) if interpreter: skipping ( ) then return ... end local arguments = misc.pack (...) if arguments.n > 0 then for index = 1, arguments.n do arguments[ index ] = tostring (arguments[ index ]) end print (prompt.output .. " " .. table.concat (arguments, ", ")) else print (prompt.output .. " nil") end return ... end function dictionary.words (...) if interpreter: skipping ( ) then return ... end local output = prompt.output for word in pairs (dictionary) do output = ("%s %s"): format (output, word) end print (output) return ... end dictionary[ 'all-words-for' ] = function (...) if interpreter: skipping ( ) then return ... end local token = interpreter.state.next ( ) if not token then error (reason.eol) end local entries = interpreter.module.dictionary.lookup (token) local output = prompt.output for word in pairs (entries) do output = ("%s %s"): format (output, word) end print (output) return ... end function dictionary.bye (...) if interpreter: skipping ( ) then return ... end interpreter.state.alive = false interpreter.state.next = misc.noop return -- clears the stack -- end interpreter.module.dictionary.definitions 'forth' end return functor
local List = script.Parent local Llama = List.Parent local None = require(Llama.None) local t = require(LLama.Parent.t) local validate = t.table local function concat(...) local new = {} local index = 1 for listIndex = 1, select('#', ...) do local list = select(listIndex, ...) if list ~= nil then assert(validate(list)) for _, v in ipairs(list) do if v ~= None then new[index] = v index += 1 end end end end return new end return concat
local util = require('util') local item = { type = "item-with-entity-data", name = "logistic-cargo-wagon", icon = "__logistic-cargo-wagon__/graphics/icons/logistic-cargo-wagon.png", icon_size = 32, flags = {}, subgroup = "transport", order = "a[train-system]-gz[logistic-cargo-wagon]", place_result = "logistic-cargo-wagon", stack_size = 5, } local recipe = { type = "recipe", name = "logistic-cargo-wagon", enabled = false, ingredients = { {"cargo-wagon", 1}, {"logistic-chest-requester", 1}, {"logistic-chest-active-provider", 1}, }, result = "logistic-cargo-wagon" } local technology = { type = "technology", name = "logistic-cargo-wagon", icon_size = 128, icon = "__base__/graphics/technology/railway.png", effects = { { type = "unlock-recipe", recipe = "logistic-cargo-wagon" } }, prerequisites = { "logistic-system", "automated-rail-transportation" }, unit = { count = 500, ingredients = { {"automation-science-pack", 1}, {"logistic-science-pack", 1}, {"chemical-science-pack", 1}, {"production-science-pack", 1}, {"utility-science-pack", 1} }, time = 30 }, order = "c-k-d-z" } local wagon = util.table.deepcopy(data.raw["cargo-wagon"]["cargo-wagon"]) wagon.name = "logistic-cargo-wagon" wagon.color = {r = 0.47, g = 0.16, b = 0.58, a = 0.9} wagon.icon = "__logistic-cargo-wagon__/graphics/icons/logistic-cargo-wagon.png" wagon.icon_size = 32 wagon.minable.result = "logistic-cargo-wagon" local character = util.table.deepcopy(data.raw["character"]["character"]) character.name = "logistic-cargo-wagon-proxy-player" character.collision_mask = {"ghost-layer"} if mods.robotworld then technology.unit = { count = 100, ingredients = { {"automation-science-pack", 1}, {"logistic-science-pack", 1}, }, time = 30 } if data.raw.technology["early-character-logistic-slots"] and data.raw.technology["early-character-logistic-trash-slots"] then -- robot world's early tech is active, use those as our prereqs technology.prerequisites = { "railway", "early-character-logistic-slots", "early-character-logistic-trash-slots" } else technology.prerequisites = { "railway", "character-logistic-slots-1", "character-logistic-trash-slots-1" } end end data:extend({ item, recipe, wagon, character, technology })
--内部方法 local extendFieldName = "__extendFieldName内部使用" local function _innerBind(tab,bindID,callbacks,keyField) if callbacks == nil then callbacks = {} end if keyField == nil then keyField = "" else keyField = keyField .. "_" end local extendField = tab[extendFieldName] if extendField == nil then tab[extendFieldName] = {} extendField = tab[extendFieldName] end for k,v in pairs(tab) do if k ~= extendFieldName then if type(v) == "table" then tab[extendFieldName][k] = _innerBind(v,bindID,callbacks,keyField .."".. tostring(k)) else tab[extendFieldName][k] = v end tab[k] = nil end end local oldmeta = getmetatable(tab) if oldmeta == nil then setmetatable(tab, {__hasnotmeta = true}) end oldmeta = getmetatable(tab) if oldmeta.__has_modify_meta_flag == nil then oldmeta.__has_modify_meta_flag = true --备份,撤销绑定时候需要 oldmeta.__old__index = oldmeta.__index oldmeta.__old__newindex = oldmeta.__newindex oldmeta.__bindCallbacks = {} oldmeta.__index = function(_,key) for k,v in pairs(oldmeta.__bindCallbacks) do if v then v("get",keyField .. tostring(key)) end end local ret if oldmeta.__old__index then ret = oldmeta.__old__index(_,key) end if ret == nil then ret = tab[extendFieldName][key] end return ret end oldmeta.__newindex = function(_,key,value) if type(value) == "table" then tab[extendFieldName][key] = _innerBind(value,bindID,callbacks,keyField .."".. tostring(key)) else tab[extendFieldName][key] = value end if oldmeta.__old__newindex then oldmeta.__old__newindex(_,key,value) end for k,v in pairs(oldmeta.__bindCallbacks) do if v then v("set",keyField .. tostring(key),value) end end end setmetatable(tab, oldmeta) end oldmeta.__bindCallbacks[bindID] = callbacks return tab end local function _innerUnBind(tab,bindID) local extendField = rawget(tab,extendFieldName) if extendField == nil then return tab end local oldmeta = getmetatable(tab) if oldmeta and oldmeta.__bindCallbacks then oldmeta.__bindCallbacks[bindID] = nil end local binds = 0 for k,v in pairs(oldmeta.__bindCallbacks) do binds = binds + 1 end if binds == 0 then oldmeta.__has_modify_meta_flag = nil oldmeta.__index = oldmeta.__old__index oldmeta.__newindex = oldmeta.__old__newindex oldmeta.__old__index = nil oldmeta.__old__newindex = nil if oldmeta.__hasnotmeta == true then setmetatable(tab, nil) else oldmeta.__hasnotmeta = nil setmetatable(tab, oldmeta) end for k,v in pairs(extendField) do if k ~= extendFieldName then if type(v) == "table" then tab[k] = clone(_innerUnBind(v,bindID)) else tab[k] = v end end end tab[extendFieldName] = nil end return tab end local function bind(tab,bindID,callbacks,name) return _innerBind(tab,bindID,callbacks,name) end local function unbind(tab,bindID) return _innerUnBind(tab,bindID) end --该方法需要扩展NodeEx.lua文件支持自定义退出回调 -- node 绑定结点,支持Node即子元素 -- exitCallbackID 分组回调,相关一组为同一值 -- tab 绑定数据源 -- bindID 用于区分数据源上的不同绑定ID ,不同结点绑定相同数据源需要使用该字段来区分 -- callbacks 绑定数据回调 -- name 用于自定义名称,默认不传 local isFirstLoad = true --第一次需要校验NodeEx中是否有自定义方法 local function bindNode(node,exitCallbackID,tab,bindID,callbacks,name) if isFirstLoad then assert(cc.Node.addExitCallback ~= nil ,"需要扩展支持自定义销毁") assert(cc.Node.getExitCallbackByName ~= nil ,"需要扩展支持自定义销毁") isFirstLoad = false end node:enableNodeEvents() bind(tab,bindID,callbacks,name) if node:getExitCallbackByName(exitCallbackID) == nil then node:addExitCallback(exitCallbackID,{}) end local ExitIDTab = node:getExitCallbackByName(exitCallbackID) local unbindFuc = function() unbind(tab,bindID) end ExitIDTab[#ExitIDTab + 1] = unbindFuc return function() unbindFuc() local ExitIDTab = node:getExitCallbackByName(exitCallbackID) local i = 0 for i,v in ipairs(ExitIDTab) do if v == unbindFuc then break end end if i > 0 then table.remove( ExitIDTab, i ) end if i == 1 then node:addExitCallback(exitCallbackID,nil) end end end return { bind = bind, unbind = unbind, bindNode = bindNode }
local class = require('common/utils/class') local ItemManager = class() function ItemManager:create(id_name, amount) local name, weight, description = vRP.getItemDefinition(id_name) return { idName = id_name or 'unknown', name = name or id_name or 'unknown name', weight = weight or 0, description = description or '', amount = amount } end return ItemManager
-- Enter your code here. Read input from STDIN. Print output to STDOUT T = io.read("*number", "*l") for i=0, T-1,1 do word = io.read() even = '' odd = '' for j=0, word:len(), 1 do if(j%2 == 0) then odd = odd .. word:sub(j,j) else even = even .. word:sub(j,j) end end print(even .. ' ' .. odd) end
return function(state, action) state = state or 0 if action.type == "CASH_ADD" then return math.max(state + action.cash, 0) elseif action.type == "CASH_REMOVE" then return math.max(state - action.cash, 0) elseif action.type == "CASH_SET" then return action.cash or 0 end return state end
local lex = require "ltq.lex" local utils = require "ltq.utils" local parse_expression local function get_token(pstate, index) return pstate.tokens[index] end local function skip_token(pstate) local token = pstate.token pstate.token_index = pstate.token_index + 1 pstate.token = get_token(pstate, pstate.token_index) return token end local token_representations = { EOF = "<eof>", name = "identifier", number = "number", string = "string" } local function token_to_string(tag) return token_representations[tag] or ("'" .. tag .. "'") end local function check_token(pstate, tag, msg) lex.assert(pstate.token.tag == tag, pstate, pstate.token, msg or (token_to_string(tag) .. " expected")) end local function check_and_skip_token(pstate, tag, msg) check_token(pstate, tag, msg) return skip_token(pstate) end local token_pairs = { ["("] = ")", ["{"] = "}", ["["] = "]" } local function match_token(pstate, opening_token) local msg local expectation = token_pairs[opening_token.tag] if opening_token.line ~= pstate.token.line then msg = ("%s expected (to close %s at line %d)"):format( token_to_string(expectation), token_to_string(opening_token.tag), opening_token.line ) end check_and_skip_token(pstate, expectation, msg) end local function test_token(pstate, tag) if pstate.token.tag == tag then return skip_token(pstate) else return false end end local function lookahead_token(pstate) return get_token(pstate, pstate.token_index + 1) end local function quote(op) return "`" .. op .. "`" end local function spec(...) return {tag = "Spec", ...} end local function literal(value) return {tag = "Literal", value} end local function binop(operator, expr1, expr2) if type(operator) == "table" then -- It is the pseudo binary operator (? expr :). return spec("`if`", expr1, operator, expr2) else if operator == "map" then -- expr1 \ expr2 is syntax sugar for expr1 | \ expr2 return spec("`pipe`", expr1, spec("`map`", expr2)) else return spec(quote(operator), expr1, expr2) end end end local function check_name(pstate) check_token(pstate, "name") local res = pstate.token.value skip_token(pstate) return res end -- primary_expression ::= "." | "." name | "(" expression ")" local function parse_primary_expression(pstate) if test_token(pstate, ".") then if pstate.token.tag == "name" then return spec("`index`", spec("`id`"), literal(check_name(pstate))) else return spec("`id`") end else local opening = check_and_skip_token(pstate, "(", "expected expression") local expression = parse_expression(pstate) match_token(pstate, opening) return expression end end -- suffixed_expression ::= primary_expression { "." name | "[" expression "]" } local function parse_suffixed_expression(pstate) local primary_expression = parse_primary_expression(pstate) local index_chain = {primary_expression} while true do if test_token(pstate, ".") then local index = literal(check_name(pstate)) index_chain[#index_chain + 1] = index elseif pstate.token.tag == "[" then local opening = skip_token(pstate) local index = parse_expression(pstate) match_token(pstate, opening) index_chain[#index_chain + 1] = index else break end end if #index_chain > 1 then return spec("`index`", utils.unpack(index_chain)) else return primary_expression end end -- pair ::= expression | (name | "[" expression "]") "=" expression local function parse_pair(pstate) local index if pstate.token.tag == "name" then if lookahead_token(pstate).tag == "=" then index = literal(check_name(pstate)) skip_token(pstate) end elseif pstate.token.tag == "[" then local opening = skip_token(pstate) index = parse_expression(pstate) match_token(pstate, opening) check_and_skip_token(pstate, "=") end local value = parse_expression(pstate) return index, value end -- table ::= "{" [ pair { sep pair } [sep] ] "}" -- sep ::= "," | ";" local function parse_table(pstate) local opening = check_and_skip_token(pstate, "{") local parameters = {} local next_array_index = 1 repeat if pstate.token.tag == "}" then break end local index, value = parse_pair(pstate) if not index then index = literal(next_array_index) next_array_index = next_array_index + 1 end parameters[#parameters + 1] = index parameters[#parameters + 1] = value until not test_token(pstate, ",") and not test_token(pstate, ";") match_token(pstate, opening) return spec("`table`", utils.unpack(parameters)) end -- macro ::= name | name "(" [expression {"," expression}] ")" local function parse_macro(pstate) local name = check_name(pstate) local parameters = {} if pstate.token.tag == "(" then local opening = skip_token(pstate) if not test_token(pstate, ")") then repeat local parameter = parse_expression(pstate) parameters[#parameters + 1] = parameter until not test_token(pstate, ",") match_token(pstate, opening) end end return spec(name, utils.unpack(parameters)) end local simple_tokens = utils.array_to_set({ "nil", "true", "false", "number", "string", "{", "name", ".", "(" }) -- simple_expression ::= nil | true | false | number | string | table | macro | suffixed_expression local function parse_simple_expression(pstate) if test_token(pstate, "nil") then return literal(nil) elseif test_token(pstate, "true") then return literal(true) elseif test_token(pstate, "false") then return literal(false) elseif pstate.token.tag == "number" or pstate.token.tag == "string" then local value = pstate.token.value skip_token(pstate) return literal(value) elseif pstate.token.tag == "{" then return parse_table(pstate) elseif pstate.token.tag == "name" then return parse_macro(pstate) else return parse_suffixed_expression(pstate) end end local unary_operators = { ["not"] = "not", ["-"] = "unm", ["#"] = "len", ["\\"] = "map" } local unary_priority = 12 local binary_operators = { ["+"] = "add", ["-"] = "sub", ["*"] = "mul", ["%"] = "mod", ["/"] = "div", ["//"] = "idiv", ["^"] = "pow", [".."] = "concat", ["~="] = "neq", ["=="] = "eq", ["<"] = "lt", ["<="] = "lte", [">"] = "gt", [">="] = "gte", ["and"] = "and", ["or"] = "or", ["|"] = "pipe", ["\\"] = "map" } local add_priority = {left = 10, right = 10} local mul_priority = {left = 11, right = 11} local eq_priority = {left = 7, right = 7} local pipe_priority = {left = 1, right = 1} local ternary_priority = {left = 4, right = 3} local binary_priorities = { add = add_priority, sub = add_priority, mul = mul_priority, mod = mul_priority, div = mul_priority, idiv = mul_priority, pow = {left = 14, right = 13}, concat = {left = 9, right = 8}, neq = eq_priority, eq = eq_priority, lt = eq_priority, lte = eq_priority, gt = eq_priority, gte = eq_priority, ["and"] = {left = 6, right = 6}, ["or"] = {left = 5, right = 5}, pipe = pipe_priority, map = pipe_priority } -- subexpression ::= (simple_expression | unop [subexpression]) { binop' subexpression } -- binop' ::= binop | "?" subexpression ":" local function parse_subexpression(pstate, limit) local expression local unary_operator = unary_operators[pstate.token.tag] if unary_operator then skip_token(pstate) -- `unop op expr` is ambigious when `op` can be binary or unary (E.g. "-"). -- Parse it as `(unop) op (expr)`. if simple_tokens[pstate.token.tag] or (unary_operators[pstate.token.tag] and not binary_operators[pstate.token.tag]) then local unary_operand = parse_subexpression(pstate, unary_priority) expression = spec(quote(unary_operator), unary_operand) else expression = spec(quote(unary_operator)) end else expression = parse_simple_expression(pstate) end -- Expand while operators have priorities higher than limit. while true do local binary_operator local priority if pstate.token.tag == "?" and limit < ternary_priority.left then -- ("?" expression ":") is treated as a binary operator. skip_token(pstate) binary_operator = parse_subexpression(pstate, ternary_priority.right) check_token(pstate, ":") priority = ternary_priority else binary_operator = binary_operators[pstate.token.tag] priority = binary_priorities[binary_operator] end if not binary_operator or priority.left <= limit then break end skip_token(pstate) -- Skip the operator. -- Read subexpression with higher priority. local subexpression = parse_subexpression(pstate, priority.right) expression = binop(binary_operator, expression, subexpression) end return expression end function parse_expression(pstate) return parse_subexpression(pstate, 0) end local function parse_(src, chunkname, tokens) local pstate = { src = src, chunkname = chunkname, tokens = tokens, token_index = 0 } skip_token(pstate) local res = parse_expression(pstate) check_token(pstate, "EOF") return res end -- Returns ast or nil, error. FIXME: actually return nil, error. -- ast is a table {tag = tag, ast*}. -- parse produces ast with tags "Spec" (macro specialization) and "Literal" (which carry literal value as first item). local function parse(src, chunkname) chunkname = chunkname or "ltq" local tokens, err = lex.lex(src, chunkname) if not tokens then return nil, err end local ok, res = pcall(function() return parse_(src, chunkname, tokens) end) if ok then return res else return nil, res end end return parse
local ZxSimpleUI = LibStub("AceAddon-3.0"):GetAddon("ZxSimpleUI") local UnitIsUnit, UnitPopupMenus = UnitIsUnit, UnitPopupMenus local ToggleDropDownMenu, PlayerFrameDropDown = ToggleDropDownMenu, PlayerFrameDropDown local TargetFrameDropDown, PetFrameDropDown = TargetFrameDropDown, PetFrameDropDown local RegisterUnitWatch, UnregisterUnitWatch = RegisterUnitWatch, UnregisterUnitWatch ---@class RegisterWatchHandler47 local RegisterWatchHandler47 = {} RegisterWatchHandler47.__index = RegisterWatchHandler47 ZxSimpleUI.prereqTables["RegisterWatchHandler47"] = RegisterWatchHandler47 RegisterWatchHandler47._areFocusOptionsRemoved = false RegisterWatchHandler47._popupMenuList = {} ---@param curFrame table ---@param unit string function RegisterWatchHandler47:setRegisterForWatch(curFrame, unit) curFrame = self:_setCurFrameUnit(curFrame, unit) self:_removeSetFocusFromPopups() -- Handle right click curFrame.openRightClickMenu = function() self:_handleToggleDropdownMenu(unit) end ZxSimpleUI:enableTooltip(curFrame) RegisterUnitWatch(curFrame, self:getUnitWatchState(curFrame.unit)) end ---@param curFrame table ---@param unit string function RegisterWatchHandler47:setUnregisterForWatch(curFrame, unit) curFrame = self:_setCurFrameUnit(curFrame, unit) self:_addSetFocusFromPopups() UnregisterUnitWatch(curFrame, self:getUnitWatchState(curFrame.unit)) end ---@return table function RegisterWatchHandler47:getListOfFrameDropDowns() local sortedList = {} for k, _ in pairs(_G) do if k:find("FrameDropDown$") then table.insert(sortedList, k) end end table.sort(sortedList) return sortedList end ---@param unit string ---@return boolean ---Ref: https://wowwiki.fandom.com/wiki/SecureStateDriver function RegisterWatchHandler47:getUnitWatchState(unit) return string.lower(unit) == "pet" end -- #################################### -- # PRIVATE FUNCTIONS -- #################################### ---@param curFrame table ---@param unit string ---@return table ---Set `unit` parameter so Blizzard's internal engine can find `unit` ---Also help RegisterUnitWatch function RegisterWatchHandler47:_setCurFrameUnit(curFrame, unit) curFrame.unit = unit curFrame:SetAttribute("unit", curFrame.unit) return curFrame end ---@param unit string function RegisterWatchHandler47:_handleToggleDropdownMenu(unit) if UnitIsUnit(unit, "player") then ToggleDropDownMenu(1, nil, PlayerFrameDropDown, "cursor") elseif unit == "pet" then ToggleDropDownMenu(1, nil, PetFrameDropDown, "cursor") elseif unit == "target" then ToggleDropDownMenu(1, nil, TargetFrameDropDown, "cursor") end end ---Remove "Set Focus", "Clear Focus", etc, so that our AddOn will not get tainted function RegisterWatchHandler47:_removeSetFocusFromPopups() if not self._areFocusOptionsRemoved then self._areFocusOptionsRemoved = true ZxSimpleUI:Print( "If you want to focus a target, please make macros and use `/focus` or " .. "`/clearfocus`") for key, inputList in pairs(UnitPopupMenus) do if key ~= "RAID" and key ~= "FOCUS" then for index, value in ipairs(inputList) do if value:find("FOCUS") or value:find("focus") then table.remove(inputList, index) end end end end end end function RegisterWatchHandler47:_addSetFocusFromPopups() end
--[[ * MOCK framework for Moai * Copyright (C) 2012 Tommo Zhou(tommo.zhou@gmail.com). All rights reserved. * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including * without limitation the rights to use, copy, modify, merge, publish, * distribute, sublicense, and/or sell copies of the Software, and to * permit persons to whom the Software is furnished to do so, subject to * the following conditions: * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ]] -- import local KeyMapModule = require 'candy.input.Keymaps' -- module local InputDeviceModule = {} local DefaultInputOption = { allowTouchSimulation = false } -------------------------------------------------------------------- local _inputDevices = {} local function getInputDevice ( name ) return _inputDevices[ name ] end -------------------------------------------------------------------- ---@class TouchState local TouchState = CLASS: TouchState () :MODEL {} function TouchState:__init ( id ) self.id = id self.down = false self.x = 0 self.y = 0 self.x_b = 0 self.y_b = 0 self.x0 = 0 self.y0 = 0 self.t0 = 0 self.t1 = 0 self.t1_b = 0 end function TouchState:getLoc () return self.x, self.y end function TouchState:getDeltaStep () return self.x - self.x_b, self.y - self.y_b end function TouchState:getDelta () return self.x-self.x0, self.y-self.y0 end function TouchState:getDeltaDistance () local dx, dy = self.x-self.x0, self.y-self.y0 return math.sqrt( dx*dx, dy*dy ) end function TouchState:isDown () return self.down end function TouchState:getDistance () return distance ( self.x, self.y, self.x0, self.y0 ) end function TouchState:getDeltaTime () return self.t1 - self.t0 end function TouchState:getEventDeltaTime () return self.t1 - self.t1_b end function TouchState:getAverageSpeed () local dt = self:getDeltaTime () if dt <= 0 then return 0 end return self:getDistance () / dt end -------------------------------------------------------------------- ---@class InputDevice local InputDevice = CLASS: InputDevice () function InputDevice:__init ( deviceName, virtual ) self.inputDeviceName = assert ( deviceName ) self._getTime = false _inputDevices[ deviceName ] = self self.virtual = virtual self.allowTouchSimulation = true self.enabled = true ---TOUCH self.touchListeners = {} self.touchCount = 16 self.touchStates = {} ---KEY self.keyboardListeners = {} self.keyboardCharListeners = {} self.keyboardEditListeners = {} self.keyStates = {} self.modifierState = { alt = false, shift = false, meta = false, ctrl = false } ---MOUSE self.mouseListeners = {} self.mouseRandomness = false self.mouseState = { x = 0, y = 0, scrollX = 0, scrollY = 0, dx = 0, dy = 0, --button states left = false, right = false, middle = false, leftHit = 0, rightHit = 0, middleHit = 0, } --JOYSTICKS self.joystickListeners = {} self.joystickStates = {} --MOTION self.motionAccuracy = 1 self.motionListeners = {} self.motionState = { x = 0, y = 0, z = 0, } --LEVEL self.levelState = { x = 0, y = 0, z = 0, } --COMPASS self.compassHeading = 0 self.compassListeners = {} end function InputDevice:getSensor ( name ) local dev = MOAIInputMgr[ self.inputDeviceName ] if dev then local sensor = dev[ name ] if not sensor then _stat ( 'no input sensor found:', self.inputDeviceName, name ) end return sensor else _error ( 'no input device found:', self.inputDeviceName ) return nil end end local clock = os.clock function InputDevice:getTime () if self._getTime then return self._getTime () end return clock () end -------------------------------------------------------------------- --- Common Control function InputDevice:disable () self.enabled = false end function InputDevice:enable () self.enabled = true end function InputDevice:isEnabled () return self.enabled end -------------------------------------------------------------------- --- Touch Event Listener function InputDevice:getTouchState ( id ) local s = self.touchStates[ id ] if not s then s = TouchState () self.touchStates[ id ] = s end return s end function InputDevice:addTouchListener ( func ) self.touchListeners[ func ] = true end function InputDevice:removeTouchListener ( func ) self.touchListeners[ func ] = nil end function InputDevice:sendTouchEvent ( evtype, idx, x, y, mockup ) local touchState = self:getTouchState ( idx ) local t = self:getTime () if evtype == 'down' then touchState.down = true touchState.t0 = t touchState.x0 = x touchState.y0 = y touchState.x_b = x touchState.y_b = y elseif evtype == 'up' then touchState.down = false touchState.t1_b = touchState.t1 else touchState.t1_b = touchState.t1 touchState.x_b = touchState.x touchState.y_b = touchState.y end touchState.t1 = t touchState.x = x touchState.y = y for func in pairs ( self.touchListeners ) do func ( evtype, touchState, x, y, mockup ) end end function InputDevice:initTouchEventHandler () for i = 0, 16 do self:getTouchState ( i ) --prebuild touch states end local sensor = self:getSensor ( 'touch' ) if not sensor then return end local TOUCH_DOWN = MOAITouchSensor.TOUCH_DOWN local TOUCH_UP = MOAITouchSensor.TOUCH_UP local TOUCH_MOVE = MOAITouchSensor.TOUCH_MOVE local TOUCH_CANCEL = MOAITouchSensor.TOUCH_CANCEL local function onTouchEvent ( eventType, idx, x, y, tapCount ) if not self.enabled then return end if eventType == TOUCH_DOWN then self:sendTouchEvent ( 'down', idx, x, y, false ) elseif eventType == TOUCH_UP then self:sendTouchEvent ( 'up', idx, x, y, false ) elseif eventType == TOUCH_MOVE then self:sendTouchEvent ( 'move', idx, x, y, false ) elseif eventType == TOUCH_CANCEL then self:sendTouchEvent ( 'cancel' ) end end sensor:setCallback ( onTouchEvent ) end -------------------------------------------------------------------- --- Mouse Event Listener function InputDevice:isMouseDown ( btn ) return self.mouseState[ btn ] end function InputDevice:isMouseUp ( btn ) return not self.mouseState[ btn ] end function InputDevice:pollMouseHit ( btn ) local mouseState = self.mouseState if btn == 'left' then local count = mouseState.leftHit mouseState.leftHit = 0 return count elseif btn == 'right' then local count = mouseState.rightHit mouseState.leftHit = 0 return count elseif btn == 'middle' then local count = mouseState.middleHit mouseState.leftHit = 0 return count end return 0 end function InputDevice:getMouseLoc () local mouseState = self.mouseState return mouseState.x, mouseState.y end function InputDevice:getMouseDelta () local mouseState = self.mouseState return mouseState.dx, mouseState.dy end function InputDevice:addMouseListener ( func ) self.mouseListeners[ func ] = true end function InputDevice:removeMouseListener ( func ) self.mouseListeners[ func ] = nil end function InputDevice:setMouseRandomness ( func ) self.mouseRandomness = func or false end function InputDevice:sendMouseEvent ( evtype, x, y, btn, rx, ry, mockup ) local mouseState = self.mouseState if evtype == 'down' then if btn then mouseState[ btn ] = true end elseif evtype == 'up' then if btn then mouseState[ btn ] = false end elseif evtype == 'move' then mouseState.dx = x - mouseState.x mouseState.dy = y - mouseState.y mouseState.x = x mouseState.y = y end rx = rx or 0 ry = ry or 0 for func in pairs ( self.mouseListeners ) do func ( evtype, x, y, btn, mockup ) end if self.allowTouchSimulation then local simTouchIdLeft = 1 local simTouchIdRight = 2 if evtype == 'move' then if self.mouseState.left then self:sendTouchEvent ( 'move', simTouchIdLeft, x, y, mockup ) end if self.mouseState.right then return self:sendTouchEvent ( 'move', simTouchIdRight, x, y, mockup ) end else if btn == 'left' then return self:sendTouchEvent ( evtype, simTouchIdLeft, x, y, mockup ) elseif btn == 'right' then return self:sendTouchEvent ( evtype, simTouchIdRight, x, y, mockup ) end end end if evtype == "down" or evtype == "up" then return getInputCommandMappingManager ():onMouseButtonEvent ( btn, evtype == "down", mockup ) end end function InputDevice:initMouseEventHandler () local pointerSensor = self:getSensor ( 'pointer' ) local rx, ry = nil if pointerSensor then pointerSensor:setCallback ( function ( x, y ) if not self.enabled then return end return self:sendMouseEvent ( 'move', x, y, false, rx, ry, false) end ) _stat ( 'pointer sensor callback ready' ) end local pointerRelativeSensor = self:getSensor ( "pointerRelative" ) if pointerRelativeSensor then pointerRelativeSensor:setCallback ( function ( x, y ) rx = x ry = y end ) _stat ( "relative pointer sensor callback ready" ) end local function setupMouseButtonCallback ( sensorName, btnName ) local buttonSensor = self:getSensor ( sensorName ) local hitName = btnName .. "Hit" if buttonSensor then buttonSensor:setCallback ( function ( down ) local mouseState = self.mouseState if not self.enabled then return end local x, y = mouseState.x, mouseState.y local ev = down and 'down' or 'up' if down then mouseState[ hitName ] = mouseState[ hitName ] + 1 end return self:sendMouseEvent ( ev, x, y, btnName, false ) end ) _stat ( 'mouse button sensor ' .. sensorName .. ' - ' .. btnName .. ' callback ready' ) end end local function setupMouseWheelCallback ( sensorName, btnName ) local wheelSensor = self:getSensor ( sensorName ) if wheelSensor then local wheelSensorFactor = 5 wheelSensor:setCallback ( function ( dy ) if dy > 0 then dy = 1 * wheelSensorFactor elseif dy < 0 then dy = -1 * wheelSensorFactor else dy = 0 end local dx = 0 local mouseState = self.mouseState if not self.enabled then return end mouseState.scrollY = mouseState.scrollY + dy return self:sendMouseEvent ( 'scroll', dx, dy, false, false ) end ) _stat ( 'mouse wheel sensor callback ready' ) end end setupMouseButtonCallback ( 'mouseLeft', 'left' ) setupMouseButtonCallback ( 'mouseRight', 'right' ) setupMouseButtonCallback ( 'mouseMiddle', 'middle' ) setupMouseWheelCallback ( 'mouseWheel', 'wheel' ) end -------------------------------------------------------------------- --- CommandMapping function InputDevice:setKeyboardCommandMapping ( mapping ) if not mapping then return self:clearKeyboardCommandMapping () end local keyToCommand = {} local commandToKey = {} for command, key in pairs ( mapping ) do keyToCommand[ key ] = command commandToKey[ command ] = key end self.keyToCommand = keyToCommand self.commandToKey = commandToKey end function InputDevice:setMouseCommandMapping ( mapping ) if not mapping then return self:clearMouseCommandMapping () end local mouseToCommand = {} local commandToMouse = {} for command, btn in pairs ( mapping ) do mouseToCommand[ btn ] = command commandToMouse[ command ] = btn end self.mouseToCommand = mouseToCommand self.commandToMouse = commandToMouse end function InputDevice:clearKeyboardCommandMapping () self.keyToCommand = false self.commandToKey = false end function InputDevice:clearMouseCommandMapping () self.mouseToCommand = false self.commandToMouse = false end -------------------------------------------------------------------- --- Keyboard Event Listener function InputDevice:isKeyDown ( key ) local state = self.keyStates[ key ] return state and state.down end function InputDevice:isKeyUp ( key ) local state = self.keyStates[ key ] return state and ( not state.down ) end function InputDevice:isShiftDown () return self:isKeyDown ( 'lshift' ) or self:isKeyDown ( 'rshift' ) end function InputDevice:isCtrlDown () return self:isKeyDown ( 'lctrl' ) or self:isKeyDown ( 'rctrl' ) end function InputDevice:isAltDown () return self:isKeyDown ( 'lalt' ) or self:isKeyDown ( 'ralt' ) end function InputDevice:isMetaDown () return self:isKeyDown ( 'lmeta' ) or self:isKeyDown ( 'rmeta' ) end function InputDevice:getModifierKeyStates () local state = self.modifierState local output = { ctrl = state[ 'ctrl' ], alt = state[ 'alt' ], meta = state[ 'meta' ], shift = state[ 'shift' ] } return output end function InputDevice:pollKeyHit ( key ) --get key hit counts since last polling local keyStates = self.keyStates local state = keyStates[ key ] if not state then return 0 end local count = keyStates[ key ].hit keyStates[ key ].hit = 0 return count end function InputDevice:isKeyHit ( key ) return self:pollKeyHit ( key ) > 0 end function InputDevice:addKeyboardListener ( func ) self.keyboardListeners[ func ] = true end function InputDevice:removeKeyboardListener ( func ) self.keyboardListeners[ func ] = nil end function InputDevice:addKeyboardCharListener ( func ) self.keyboardCharListeners[ func ] = true end function InputDevice:removeKeyboardCharListener ( func ) assert ( self.keyboardCharListeners[ func ] ) self.keyboardCharListeners[ func ] = nil end function InputDevice:addKeyboardEditListener ( func ) self.keyboardEditListeners[ func ] = true end function InputDevice:removeKeyboardEditListener ( func ) self.keyboardEditListeners[ func ] = nil end function InputDevice:sendKeyEvent ( key, down, mockup ) local state = self.keyStates[ key ] if not state then state = { down = false, hit = 0 } self.keyStates[ key ] = state end state.down = down if down then state.hit = state.hit + 1 end if type ( key ) == "string" and #key > 3 then if key == "lctrl" or key == "rctrl" then self.modifierState[ 'ctrl' ] = self:isCtrlDown () elseif key == "lshift" or key == "rshift" then self.modifierState[ 'shift' ] = self:isShiftDown () elseif key == "lmeta" or key == "rmeta" then self.modifierState[ 'meta' ] = self:isMetaDown () elseif key == "lalt" or key == "ralt" then self.modifierState[ 'alt' ] = self:isAltDown () end end for func in pairs ( self.keyboardListeners ) do func ( key, down, mockup ) end return getInputCommandMappingManager ():onKeyEvent ( key, down, mockup ) end function InputDevice:sendCharEvent ( char, mockup ) for func in pairs ( self.keyboardCharListeners ) do func ( char, mockup ) end end function InputDevice:sendEditEvent ( str, start, length, maxLength, mockup ) for func in pairs ( self.keyboardEditListeners ) do func ( str, start, length, maxLength, mockup ) end end function InputDevice:initKeyboardEventHandler () local keyStates = self.keyStates local keyCodeMap = KeyMapModule.getKeyMap () local keyNames = {} for k,v in pairs ( keyCodeMap ) do --precreate key states keyNames[ v ] = k keyStates[ k ] = { down = false, hit = 0 } end local sensor = self:getSensor ( 'keyboard' ) if not sensor then return end local function onKeyboardEvent ( key, down ) if not self.enabled then return end local name = keyNames[ key ] or key -- _log ( "InputDevice:onKeyboardEvent()", name, key, down ) return self:sendKeyEvent ( name, down, false ) end local function onKeyboardCharEvent ( c ) if not self.enabled then return end return self:sendCharEvent ( c, false ) end local function onKeyboardEditEvent ( str, start, length ) if not self.enabled then return end return self:sendEditEvent ( str, start, length ) end sensor:setCallback ( onKeyboardEvent ) sensor:setCharCallback ( onKeyboardCharEvent ) sensor:setEditCallback ( onKeyboardEditEvent ) end -------------------------------------------------------------------- --- JOYSTICK Event Listener function InputDevice:addJoystickListener ( func ) self.joystickListeners[ func ] = true end function InputDevice:removeJoystickListener ( func ) self.joystickListeners[ func ] = nil end local maxJoystickCount = 4 local maxJoystickAxisCount = 6 function InputDevice:sendJoystickEvent ( evtype, joyId, btn, axisId, value, mockup ) for func in pairs ( self.joystickListeners ) do func ( evtype, joyId, btn, axisId, value, mockup ) end end function InputDevice:initJoystickEventHandler () --create listener for each set of joystick sensors( button + axis ) for joyId = 1, maxJoystickCount do local joystickName = 'joystick-'..joyId local joystickExSensor = self:getSensor ( joystickName ) local joyName = 'joy-'..joyId if joystickExSensor then local function onJoystickButtonEvent ( button, down ) if not self.enabled then return end if down then return self:sendJoystickEvent ( 'down', joyId, button ) else return self:sendJoystickEvent ( 'up', joyId, button ) end end joystickExSensor:setButtonCallback ( onJoystickButtonEvent ) local function onJoystickAxisEvent ( axis, value ) if not self.enabled then return end return self:sendJoystickEvent ( 'axis', joyId, nil, axis, value ) end joystickExSensor:setAxisCallback ( onJoystickAxisEvent ) else _warn ( 'no joystick sensor registered' ) end end end -------------------------------------------------------------------- --- Acceleratemeter Event Listener function InputDevice:setMotionAccuracy ( f ) self.motionAccuracy = 10 ^ ( -f ) end function InputDevice:addMotionListener ( func ) self.motionListeners[ func ] = true end function InputDevice:removeMotionListener ( func ) self.motionListeners[ func ] = nil end local floor = math.floor local function reduceAccuracy ( v ,motionAccuracy ) return floor ( v * 1000000 * motionAccuracy ) / motionAccuracy / 1000000 end function InputDevice:sendMotionEvent ( x, y, z ) local acc = self.motionAccuracy local x, y, z = reduceAccuracy ( x, acc ), reduceAccuracy ( y, acc ), reduceAccuracy ( z, acc ) local state = self.motionState for listener in pairs ( self.motionListeners ) do listener ( x, y, z ) end if state.x ~= x or state.y ~= y or state.z ~= z then state.x = x state.y = y state.z = z end end function InputDevice:initMotionEventHandler () self:setMotionAccuracy ( 2 ) --TODO end -------------------------------------------------------------------- --- Accelerometer function InputDevice:getAccelerometerData () if self.level then return self.level:getLevel () end return 0, 0, 0 end -- function InputDevice:initAccelerometerEventHandler () --TODO self.level = self:getSensor ( 'level' ) -- if self.level then -- self.level:setCallback ( onMotionEvent ) -- end end -------------------------------------------------------------------- --- Accelerometer function InputDevice:getGyroscopeData () if self.gyroscope then return self.gyroscope:getLevel () end return 0, 0, 0 end -- function InputDevice:initGyroscopeEventHandler () --TODO self.gyroscope = self:getSensor ( 'gyroscope' ) -- if self.gyroscope then -- self.gyroscope:setCallback ( onMotionEvent ) -- end end -------------------------------------------------------------------- --- Compass function InputDevice:addCompassListener ( func ) self.compassListeners[ func ] = true end function InputDevice:removeCompassListener ( func ) self.compassListeners[ func ] = nil end function InputDevice:sendCompassEvent ( heading, mockup ) self.compassHeading = compassHeading for func in pairs ( self.compassListeners ) do func ( heading, mockup ) end end function InputDevice:getCompassHeading () return self.compassHeading end function InputDevice:initCompassEventHandler () local sensor = self:getSensor ('compass') if not sensor then return end sensor:setCallback ( function ( heading ) return self:sendCompassEvent ( heading ) end ) end -------------------------------------------------------------------- --- Location function InputDevice:getLocation () local sensor = self:getSensor ( 'location' ) if not sensor then return nil end local lng, lat, ha, alt, va, speed = sensor:getLocation () return { longitude = lng, latitude = lat, haccuracy = ha, altitude = alt, vaccuracy = va, speed = speed } end -------------------------------------------------------------------- --- ENTRY function InputDevice:init () if self.virtual then return end local device = MOAIInputMgr[ self.inputDeviceName ] if not device then _error ( 'no input device:', self.inputDeviceName ) print ( 'Available devices:' ) print ( table.print ( MOAIInputMgr ) ) end self:initTouchEventHandler () self:initKeyboardEventHandler () self:initMouseEventHandler () -- TODO: implement belows -- self:initJoystickEventHandler () -- self:initMotionEventHandler () self:initAccelerometerEventHandler () self:initGyroscopeEventHandler () self:initCompassEventHandler () end -------------------------------------------------------------------- ---default input manager -------------------------------------------------------------------- local _defaultInputDevice = InputDevice ( 'device' ) function getDefaultInputDevice () return _defaultInputDevice end function initDefaultInputEventHandlers () return _defaultInputDevice:init () end function disableUserInput () _defaultInputDevice:disable () end function enableUserInput () _defaultInputDevice:enable () end function isUserInputEnabled () return _defaultInputDevice:isEnabled () end -------------------------------------------------------------------- --- touch function getTouchState ( id ) return _defaultInputDevice:getTouchState ( id ) end function addTouchListener ( func ) _defaultInputDevice:addTouchListener ( func ) end function removeTouchListener ( func ) _defaultInputDevice:removeTouchListener ( func ) end -------------------------------------------------------------------- --- mouse function isMouseDown ( btn ) return _defaultInputDevice:isMouseDown ( btn ) end function isMouseUp ( btn ) return _defaultInputDevice:isMouseUp ( btn ) end function pollMouseHit ( btn ) return _defaultInputDevice:pollMouseHit ( btn ) end function getMouseLoc () return _defaultInputDevice:getMouseLoc () end function getMouseDelta () return _defaultInputDevice:getMouseDelta () end function addMouseListener ( func ) return _defaultInputDevice:addMouseListener ( func ) end function removeMouseListener ( func ) return _defaultInputDevice:removeMouseListener ( func ) end function setMouseRandomness ( f ) return _defaultInputDevice:setMouseRandomness ( f ) end -------------------------------------------------------------------- --- KEY function isKeyDown ( key ) return _defaultInputDevice:isKeyDown ( key ) end function isKeyUp ( key ) return _defaultInputDevice:isKeyUp ( key ) end function isShiftDown () return _defaultInputDevice:isShiftDown () end function isCtrlDown () return _defaultInputDevice:isCtrlDown () end function isAltDown () return _defaultInputDevice:isAltDown () end function isMetaDown () return _defaultInputDevice:isMetaDown () end function getModifierKeyStates () return _defaultInputDevice:getModifierKeyStates () end function pollKeyHit ( key ) --get key hit counts since last polling return _defaultInputDevice:pollKeyHit ( key ) end function isKeyHit ( key ) return _defaultInputDevice:isKeyHit ( key ) end function addKeyboardListener ( func ) return _defaultInputDevice:addKeyboardListener ( func ) end function removeKeyboardListener ( func ) return _defaultInputDevice:removeKeyboardListener ( func ) end -------------------------------------------------------------------- --- JOYSTICK -------------------------------------------------------------------- --- ACCELEROMETER function getAccelerometerData () return _defaultInputDevice:getAccelerometerData () end -------------------------------------------------------------------- --- GYROSCOPE function getGyroscopeData () return _defaultInputDevice:getGyroscopeData () end -------------------------------------------------------------------- --- COMPASS function addCompassListener ( func ) return _defaultInputDevice:addCompassListener ( func ) end function removeCompassListener ( func ) return _defaultInputDevice:removeCompassListener ( func ) end function getCompassHeading () return _defaultInputDevice:getCompassHeading () end -------------------------------------------------------------------- --- LOCATION function getLocation () return _defaultInputDevice:getLocation () end -------------------------------------------------------------------- --- FAKE INPUT function _sendTouchEvent ( ... ) return _defaultInputDevice:sendTouchEvent ( ... ) end function _sendMouseEvent ( ... ) return _defaultInputDevice:sendMouseEvent ( ... ) end function _sendKeyEvent ( ... ) return _defaultInputDevice:sendKeyEvent ( ... ) end function _sendJoystickEvent ( ... ) return _defaultInputDevice:sendJoystickEvent ( ... ) end function _sendMotionEvent ( ... ) return _defaultInputDevice:sendMotionEvent ( ... ) end function _sendLevelEvent ( ... ) return _defaultInputDevice:sendLevelEvent ( ... ) end InputDeviceModule.DefaultInputOption = DefaultInputOption InputDeviceModule.getInputDevice = getInputDevice InputDeviceModule.TouchState = TouchState InputDeviceModule.InputDevice = InputDevice InputDeviceModule.getDefaultInputDevice = getDefaultInputDevice InputDeviceModule.initDefaultInputEventHandlers = initDefaultInputEventHandlers InputDeviceModule.disableUserInput = disableUserInput InputDeviceModule.enableUserInput = enableUserInput InputDeviceModule.isUserInputEnabled = isUserInputEnabled InputDeviceModule.getTouchState = getTouchState InputDeviceModule.addTouchListener = addTouchListener InputDeviceModule.removeTouchListener = removeTouchListener InputDeviceModule.isMouseDown = isMouseDown InputDeviceModule.isMouseUp = isMouseUp InputDeviceModule.pollMouseHit = pollMouseHit InputDeviceModule.getMouseLoc = getMouseLoc InputDeviceModule.getMouseDelta = getMouseDelta InputDeviceModule.addMouseListener = addMouseListener InputDeviceModule.removeMouseListener = removeMouseListener InputDeviceModule.setMouseRandomness = setMouseRandomness InputDeviceModule.isKeyDown = isKeyDown InputDeviceModule.isKeyUp = isKeyUp InputDeviceModule.isShiftDown = isShiftDown InputDeviceModule.isCtrlDown = isCtrlDown InputDeviceModule.isAltDown = isAltDown InputDeviceModule.isMetaDown = isMetaDown InputDeviceModule.getModifierKeyStates = getModifierKeyStates InputDeviceModule.pollKeyHit = pollKeyHit InputDeviceModule.isKeyHit = isKeyHit InputDeviceModule.addKeyboardListener = addKeyboardListener InputDeviceModule.removeKeyboardListener = removeKeyboardListener InputDeviceModule.getAccelerometerData = getAccelerometerData InputDeviceModule.getGyroscopeData = getGyroscopeData InputDeviceModule.addCompassListener = addCompassListener InputDeviceModule.removeCompassListener = removeCompassListener InputDeviceModule.getCompassHeading = getCompassHeading InputDeviceModule.getLocation = getLocation InputDeviceModule._sendTouchEvent = _sendTouchEvent InputDeviceModule._sendMouseEvent = _sendMouseEvent InputDeviceModule._sendKeyEvent = _sendKeyEvent InputDeviceModule._sendJoystickEvent = _sendJoystickEvent InputDeviceModule._sendMotionEvent = _sendMotionEvent InputDeviceModule._sendLevelEvent = _sendLevelEvent return InputDeviceModule
--required Libraries --hump local Class = require("libraries.hump.class") local Gamestate = require("libraries.hump.gamestate") local vector = require("libraries.hump.vector") local Signal = require("libraries.hump.signal") --required classes --re-usable local base = require("src.re-usable.baseClasses") local physics = require("src.re-usable.physicsClasses") local graphics = require("src.re-usable.graphicsClasses") local window = require("src.re-usable.windowClasses") Player = Class{__includes = base.Object, init = function(self, x, y) base.Object.init(self, x, y, 32, 32) self.in_range_of = {} self.drawable = true end, currentSpeed = vector(0, 0), --player default values acceleration = 10, maxVelocity = 15 } function Player:update(dt) if not player.busy then self:walk(dt) self:checkAction(dt) end end function Player:walk(dt) local dx, dy = 0, 0 if love.keyboard.isDown('left') then dx = -1 * maxVelocity elseif love.keyboard.isDown('right') then dx = maxVelocity end if love.keyboard.isDown('up') then dy = -1 * maxVelocity elseif love.keyboard.isDown('down') then dy = maxVelocity end self:move(dt, dx, dy) end function Player:move(dt, dx, dy) local delta = vector(dx, dy) --work on this a bit more currentSpeed.x = currentSpeed.x + (delta.x - currentSpeed.x) self.p_body.body:setLinearVelocity(, delta.y * (dt * 100)) local newPx, newPy = self.p_body.body:getPosition() newPx = math.floor(newPx) newPy = math.floor(newPy) self.pos = vector.new(newPx, newPy) end function Player:checkAction(dt) if self.in_range_of[1] and key_press.check("z") then self.debug.text = "Player talking!" self.in_range_of[1].interact:response() end end function Player:draw() if self.debug_img and self.debug.drawable then self.debug_img:draw() elseif self.currentAnim then self.currentAnim:draw() end love.graphics.print(self.debug.text, 600, 10) end
---------------------------------------------------------------- -- Made By: Guy293 -- GitHub: https://github.com/Guy293 -- Fivem Forum: https://forum.fivem.net/u/guy293/ ---------------------------------------------------------------- --Get ESX Data Citizen.CreateThread(function() while ESX == nil do TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end) Citizen.Wait(0) end end) -- Store data for later emsonline = 0 policeonline = 0 taxionline = 0 -- Get jobs data every 10 secconds Citizen.CreateThread(function() while true do Citizen.Wait(10000) ESX.TriggerServerCallback('guy293_getJobsOnline', function(ems, police, taxi) emsonline = ems policeonline = police taxionline = taxi end) end end) -- Print text Citizen.CreateThread(function() while true do Citizen.Wait(0) DrawText2(0.70, 1.449, 1.0,1.0,0.45, "Police on duty: " .. policeonline , 0 ,119, 255, 150) DrawText2(0.70, 1.42, 1.0,1.0,0.45, "Paramedics on duty: " .. emsonline , 246 ,56, 56, 150) DrawText2(0.70, 1.391, 1.0,1.0,0.45, "Taxi on duty: " .. taxionline , 239 ,255, 0, 150) end end) function DrawText2(x,y ,width,height,scale, text, r,g,b,a) SetTextFont(4) SetTextProportional(0) SetTextScale(scale, scale) SetTextColour(r, g, b, a) SetTextDropShadow(0, 0, 0, 0,255) SetTextEdge(2, 0, 0, 0, 255) SetTextDropShadow() SetTextOutline() SetTextEntry("STRING") AddTextComponentString(text) DrawText(x - width/2, y - height/2 + 0.005) end
--運命の旅路 -- --Script by IceBarrierTrishula function c100417029.initial_effect(c) aux.AddCodeList(c,100417125) --Activate local e0=Effect.CreateEffect(c) e0:SetType(EFFECT_TYPE_ACTIVATE) e0:SetCode(EVENT_FREE_CHAIN) c:RegisterEffect(e0) --to hand local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(100417029,0)) e1:SetCategory(CATEGORY_SEARCH+CATEGORY_TOHAND+CATEGORY_HANDES) e1:SetType(EFFECT_TYPE_IGNITION) e1:SetRange(LOCATION_SZONE) e1:SetCountLimit(1,100417029) e1:SetTarget(c100417029.thtg) e1:SetOperation(c100417029.thop) c:RegisterEffect(e1) --equip local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(100417029,1)) e2:SetCategory(CATEGORY_SEARCH+CATEGORY_TOHAND+CATEGORY_EQUIP) e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e2:SetCode(EVENT_SUMMON_SUCCESS) e2:SetProperty(EFFECT_FLAG_DELAY) e2:SetRange(LOCATION_SZONE) e2:SetCountLimit(1,100417029+100) e2:SetTarget(c100417029.eqtg) e2:SetOperation(c100417029.eqop) c:RegisterEffect(e2) local e3=e2:Clone() e3:SetCode(EVENT_SPSUMMON_SUCCESS) c:RegisterEffect(e3) --indes local e4=Effect.CreateEffect(c) e4:SetType(EFFECT_TYPE_FIELD) e4:SetCode(EFFECT_INDESTRUCTABLE_COUNT) e4:SetRange(LOCATION_SZONE) e4:SetTargetRange(LOCATION_MZONE,0) e4:SetTarget(c100417029.indtg) e4:SetCountLimit(1) e4:SetValue(c100417029.indct) c:RegisterEffect(e4) end function c100417029.thfilter(c) return aux.IsCodeListed(c,100417125) and c:IsAbleToHand() and c:IsType(TYPE_MONSTER) end function c100417029.thtg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsExistingMatchingCard(c100417029.thfilter,tp,LOCATION_DECK,0,1,nil) end Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,0,0) end function c100417029.thop(e,tp,eg,ep,ev,re,r,rp) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND) local g=Duel.SelectMatchingCard(tp,c100417029.thfilter,tp,LOCATION_DECK,0,1,1,nil) if g:GetCount()>0 then Duel.SendtoHand(g,nil,REASON_EFFECT) Duel.ConfirmCards(1-tp,g) Duel.ShuffleHand(tp) Duel.BreakEffect() Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE) Duel.DiscardHand(tp,nil,1,1,REASON_EFFECT) end end function c100417029.eqfilter(c,equip,tp) return c:IsType(TYPE_EQUIP) and aux.IsCodeListed(c,100417125) and (c:IsAbleToHand() or equip and c:CheckUniqueOnField(tp) and not c:IsForbidden()) end function c100417029.cfilter(c) return c:IsCode(100417125) and c:IsFaceup() end function c100417029.eqtg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then local equip=Duel.GetLocationCount(tp,LOCATION_SZONE)>0 and Duel.IsExistingMatchingCard(c100417029.cfilter,tp,LOCATION_MZONE,0,1,nil) return Duel.IsExistingMatchingCard(c100417029.eqfilter,tp,LOCATION_DECK,0,1,nil,equip,tp) end Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,0,0) end function c100417029.eqop(e,tp,eg,ep,ev,re,r,rp) local equip=Duel.GetLocationCount(tp,LOCATION_SZONE)>0 and Duel.IsExistingMatchingCard(c100417029.cfilter,tp,LOCATION_MZONE,0,1,nil) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_OPERATECARD) local g=Duel.SelectMatchingCard(tp,c100417029.eqfilter,tp,LOCATION_DECK,0,1,1,nil,equip,tp) local tc=g:GetFirst() if g:GetCount()>0 then if equip and tc:CheckUniqueOnField(tp) and not tc:IsForbidden() and (not tc:IsAbleToHand() or Duel.SelectOption(tp,1190,aux.Stringid(100417029,2))==1) then Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_EQUIP) local sc=Duel.SelectMatchingCard(tp,c100417029.cfilter,tp,LOCATION_MZONE,0,1,1,nil) Duel.Equip(tp,tc,sc:GetFirst()) else Duel.SendtoHand(g,nil,REASON_EFFECT) Duel.ConfirmCards(1-tp,g) end end end function c100417029.indtg(e,c) return c:GetEquipCount()>0 end function c100417029.indct(e,re,r,rp) return bit.band(r,REASON_BATTLE)~=0 end
-- Documentation script to find lua wrappers Add_Folder(MODULE_FOLDER.."/DiffusionSolver/lua") Add_Folder(MODULE_FOLDER.."/LinearBoltzmannSolver/lua") Add_Folder(MODULE_FOLDER.."/MCParTra/lua") Add_Folder(MODULE_FOLDER.."/KEigenvalueSolver/lua")
if SERVER then AddCSLuaFile() end ENT.Type = "anim" ENT.Base = "base_ammo_ttt" ENT.AmmoType = "AlyxGun" ENT.AmmoAmount = 12 ENT.AmmoMax = 36 ENT.Model = Model("models/items/357ammo.mdl") ENT.AutoSpawnable = true ENT.spawnType = AMMO_TYPE_DEAGLE --- -- @ignore function ENT:Initialize() -- Differentiate from rifle ammo self:SetColor(Color(255, 100, 100, 255)) return self.BaseClass.Initialize(self) end
local mchistory = {} local mattata = require('mattata') local HTTPS = require('ssl.https') local JSON = require('dkjson') function mchistory:init(configuration) mchistory.arguments = 'mchistory <Minecraft username>' mchistory.commands = mattata.commands(self.info.username, configuration.commandPrefix):c('mchistory').table mchistory.help = configuration.commandPrefix .. 'mchistory <Minecraft username> - Returns the name history of a Minecraft username.' end function mchistory:onChannelPost(channel_post, configuration) local input = mattata.input(channel_post.text) if not input then mattata.sendMessage(channel_post.chat.id, mchistory.help, nil, true, false, channel_post.message_id) return end local jstr_uuid, res_uuid = HTTPS.request('https://api.mojang.com/users/profiles/minecraft/' .. input) if res_uuid ~= 200 then mattata.sendMessage(channel_post.chat.id, configuration.errors.connection, nil, true, false, channel_post.message_id) return end local jdat_uuid = JSON.decode(jstr_uuid) local jstr, res = HTTPS.request('https://api.mojang.com/user/profiles/' .. jdat_uuid.id .. '/names') if res ~= 200 then mattata.sendMessage(channel_post.chat.id, configuration.errors.connection, nil, true, false, channel_post.message_id) return end local jdat = JSON.decode(jstr) local output, summary for n in pairs(jdat) do if n == 1 then summary = '*This player has changed their username 1 time:*\n' output = mattata.markdownEscape(jdat[n].name) else summary = '*This player has changed their username ' .. #jdat .. ' times:*\n' output = output .. mattata.markdownEscape(jdat[n].name) end if n < #jdat then output = output .. ', ' end end mattata.sendMessage(channel_post.chat.id, summary .. output, 'Markdown', true, false, channel_post.message_id) end function mchistory:onMessage(message, language) local input = mattata.input(message.text) if not input then mattata.sendMessage(message.chat.id, mchistory.help, nil, true, false, message.message_id) return end local jstr_uuid, res_uuid = HTTPS.request('https://api.mojang.com/users/profiles/minecraft/' .. input) if res_uuid ~= 200 then mattata.sendMessage(message.chat.id, language.errors.connection, nil, true, false, message.message_id) return end local jdat_uuid = JSON.decode(jstr_uuid) local jstr, res = HTTPS.request('https://api.mojang.com/user/profiles/' .. jdat_uuid.id .. '/names') if res ~= 200 then mattata.sendMessage(message.chat.id, language.errors.connection, nil, true, false, message.message_id) return end local jdat = JSON.decode(jstr) local output, summary for n in pairs(jdat) do if n == 1 then summary = '*This player has changed their username 1 time:*\n' output = mattata.markdownEscape(jdat[n].name) else summary = '*This player has changed their username ' .. #jdat .. ' times:*\n' output = output .. mattata.markdownEscape(jdat[n].name) end if n < #jdat then output = output .. ', ' end end mattata.sendMessage(message.chat.id, summary .. output, 'Markdown', true, false, message.message_id) end return mchistory
function setup() -- Make a table to hold all the elements we want to update and draw each frame sb = {} -- Make a text screen t = Text.new(50, 30) -- Make a 50x30 text screen table.insert(sb, t) -- Add its reference to the "sb" table. t:fakeBoot() -- ;) t:color(0, 15) -- Make the text transparent on a background of white. -- Print some test text to the text screen -- Note that this does not have a second argument, so it will put a line break at the end. t:print("This is an example script, showing off the text layer, sprites, and a background! SmileBASIC isn't real") -- Make a bunch of sprites for i = 0, 63 do s = Sprites.new(i) -- Make a sprite table.insert(sb, s) -- Add its reference to the "sb" table. s:offset(8 + (i % 16) * 16, 72 + math.floor(i / 16) * 16) -- Show it in a grid s:home(8, 8) -- Set sprite's home to center of sprite end -- Make a background b = Backgrounds.new(25, 15) -- It's 25x15 tiles table.insert(sb, b) -- Add its reference to the "sb" table. b:print("FAKE BACKGROUND TEXT!", 0, 12) -- Special command for writing characters end -- Every frame, do this function update() -- We didn't lose the text reference, so print some text every few frames if window.frames % 8 == 0 then -- My "built-in" frames variable t:print("Hello, world! ", false) -- We don't want a line break, so put false at the end. end -- Handle callbacks and animations, neither of which you're currently using. Still useful. for i = 1, #sb do sb[i]:update() end end function draw() -- Yes, you have to manually clear the screen. love.graphics.clear(0, 0, 0) -- Z-sort everything you added ZSort.clear() for i = 1, #sb do ZSort.add(sb[i]) end ZSort.flush() end
function thxbob.lib.basic_item(inputs) return thxbob.lib.item.basic_item(inputs) end --[[ Cannot be used in legacy, due to new group conflict. function thxbob.lib.item(inputs) return thxbob.lib.item.item(inputs) end ]]-- function thxbob.lib.get_item_type(name) return thxbob.lib.item.get_type(name) end function thxbob.lib.get_basic_item_type(name) return thxbob.lib.item.get_basic_type(name) end function thxbob.lib.combine_items(item1_in, item2_in) return thxbob.lib.item.combine(item1_in, item2_in) end function thxbob.lib.add_item(list, item_in) thxbob.lib.item.add(list, item_in) --increments amount if exists end function thxbob.lib.add_new_item(list, item_in) thxbob.lib.item.add_new(list, item_in) --ignores if exists end function thxbob.lib.remove_item(list, item) thxbob.lib.item.remove(list, item) end function thxbob.lib.replace_science_pack (technology, old, new) thxbob.lib.tech.replace_science_pack (technology, old, new) end function thxbob.lib.add_new_science_pack (technology, pack, amount) thxbob.lib.tech.add_new_science_pack (technology, pack, amount) end function thxbob.lib.add_science_pack (technology, pack, amount) thxbob.lib.tech.add_science_pack (technology, pack, amount) end function thxbob.lib.remove_science_pack (technology, pack) thxbob.lib.tech.remove_science_pack (technology, pack) end function thxbob.lib.add_technology_recipe (technology, recipe) thxbob.lib.tech.add_recipe_unlock (technology, recipe) end function thxbob.lib.remove_technology_recipe (technology, recipe) thxbob.lib.tech.remove_recipe_unlock (technology, recipe) end function thxbob.lib.replace_technology_prerequisite (technology, old, new) thxbob.lib.tech.replace_prerequisite (technology, old, new) end function thxbob.lib.add_technology_prerequisite (technology, prerequisite) thxbob.lib.tech.add_prerequisite (technology, prerequisite) end function thxbob.lib.remove_technology_prerequisite (technology, prerequisite) thxbob.lib.tech.remove_prerequisite (technology, prerequisite) end function thxbob.lib.add_productivity_limitation(intermediate) thxbob.lib.module.add_productivity_limitation(intermediate) end function thxbob.lib.add_productivity_limitations(intermediates) thxbob.lib.module.add_productivity_limitations(intermediates) end function thxbob.lib.replace_recipe_item (recipe, old, new) thxbob.lib.recipe.replace_ingredient(recipe, old, new) end function thxbob.lib.replace_recipe_item_crude (recipe, old, new) thxbob.lib.recipe.replace_ingredient_crude(recipe, old, new) end function thxbob.lib.replace_item_all_recipes (old, new) thxbob.lib.recipe.replace_ingredient_in_all(old, new) end function thxbob.lib.remove_recipe_item (recipe, item) thxbob.lib.recipe.remove_ingredient(recipe, item) end function thxbob.lib.add_new_recipe_item (recipe, item) thxbob.lib.recipe.add_new_ingredient(recipe, item) end function thxbob.lib.add_recipe_item (recipe, item) thxbob.lib.recipe.add_ingredient(recipe, item) end function thxbob.lib.add_recipe_result(recipe, item) thxbob.lib.recipe.add_result(recipe, item) end function thxbob.lib.remove_recipe_result(recipe, item) thxbob.lib.recipe.remove_result(recipe, item) end function thxbob.lib.create_autoplace(inputs) return thxbob.lib.resource.create_autoplace(inputs) end function thxbob.lib.autoplace_peak(inputs) return thxbob.lib.resource.autoplace_peak(inputs) end function thxbob.lib.add_autoplace_peak(inputs) thxbob.lib.resource.add_autoplace_peak(inputs) end function thxbob.lib.add_item_to_resource(resource, item) thxbob.lib.resource.add_result(resource, item) end function thxbob.lib.remove_item_from_resource(resource, item) thxbob.lib.resource.remove_result(resource, item) end function thxbob.lib.stage_counts(stages, mult) return thxbob.lib.resource.stage_counts(stages, mult) end function thxbob.lib.ore_sprite(inputs) return thxbob.lib.resource.sprite(inputs) end function thxbob.lib.create_ore_item(inputs) thxbob.lib.resource.create_item(inputs) end function thxbob.lib.create_ore_resource(inputs) thxbob.lib.resource.create(inputs) end function thxbob.lib.create_ore_particle(inputs) thxbob.lib.resource.create_particle(inputs) end function thxbob.lib.generate_ore_data_stage(inputs) thxbob.lib.resource.generate_data_stage(inputs) end function thxbob.lib.generate_ore_updates_stage(inputs) thxbob.lib.resource.generate_updates_stage(inputs) end function thxbob.lib.generate_ore(inputs) thxbob.lib.resource.generate(inputs) end function thxbob.lib.machine_has_category(machine, category_in) return thxbob.lib.machine.has_category(machine, category_in) end function thxbob.lib.machine_add_category(machine, category) thxbob.lib.machine.add_category(machine, category) end function thxbob.lib.machine_type_if_category_add_category(machine_type, category, category_to_add) thxbob.lib.machine.type_if_add_category(machine_type, category, category_to_add) end
local util = require "pallene.util" local execution_tests = require "spec.execution_tests" local function compile(filename, pallene_code) assert(util.set_file_contents(filename, pallene_code)) local cmd = string.format("./pallenec --print-ir %s", util.shell_quote(filename)) local ok, _, _, errmsg = util.outputs_of_execute(cmd) assert(ok, errmsg) end describe("#pretty_printer /", function () execution_tests.run(compile, 'pretty_printer', _ENV, true) end)
return { name = "Save all files on app switch", description = "A plugin to save all modified files when app focus is lost.", author = "Paul Kulchenko", version = 0.1, onAppFocusLost = function() SaveAll(true) end, }
local theme={colors={normal={blue={0.14901960784314,0.54509803921569,0.82352941176471,1},green={0.52156862745098,0.6,0.0,1},cyan={0.16470588235294,0.63137254901961,0.59607843137255,1},white={0.57647058823529,0.63137254901961,0.63137254901961,1},red={0.86274509803922,0.19607843137255,0.1843137254902,1},magenta={0.42352941176471,0.44313725490196,0.76862745098039,1},black={0.0,0.16862745098039,0.21176470588235,1},yellow={0.70980392156863,0.53725490196078,0.0,1}},primary={background={0.0,0.16862745098039,0.21176470588235,1},foreground={0.57647058823529,0.63137254901961,0.63137254901961,1}},bright={blue={0.51372549019608,0.58039215686275,0.58823529411765,1},green={0.027450980392157,0.21176470588235,0.25882352941176,1},cyan={0.82745098039216,0.21176470588235,0.50980392156863,1},white={0.9921568627451,0.96470588235294,0.89019607843137,1},red={0.79607843137255,0.29411764705882,0.086274509803922,1},magenta={0.93333333333333,0.90980392156863,0.83529411764706,1},black={0.39607843137255,0.48235294117647,0.51372549019608,1},yellow={0.34509803921569,0.43137254901961,0.45882352941176,1}},cursor={text={0.0,0.16862745098039,0.21176470588235,1},cursor={0.57647058823529,0.63137254901961,0.63137254901961,1}}}} return theme.colors
----------------------------------------------------------------------------------------- -- -- game_ui.lua -- ----------------------------------------------------------------------------------------- local storyboard = require "storyboard" require "dialogs" local Particles = require("lib_particle_candy") ----------------------------------------------------------------------------------------- function gamePause(e) -- Pause / Resume touchesPinch[ e.id ] = nil if e.phase == "ended" then isPause = not isPause if isPause then physics.pause() Particles.Freeze() showPauseDlg() else Particles.WakeUp() physics.start() end end return true end ----------------------------------------------------------------------------------------- function gameMenu(e) touchesPinch[ e.id ] = nil if e.phase == "ended" then purgeTimers() Particles.ClearParticles() while (#Particles.EmitterIndex) > 0 do Particles.DeleteEmitter(Particles.EmitterIndex[1]) end storyboard.gotoScene( "menu", "fade", 500 ) -- gamePause(e) -- show menu end return true end ----------------------------------------------------------------------------------------- function gameRestart(e) touchesPinch[ e.id ] = nil if e.phase == "ended" then purgeTimers() Particles.CleanUp() storyboard.reloadScene() -- groupSky:removeSelf() -- group:removeSelf() -- groupHud:removeSelf() -- groupNotifications:removeSelf() -- groupPinch:removeSelf() -- storyboard.gotoScene( "restart" ) end return true end
--[[ LICENSE Copyright (c) 2014-2015 Daniel Iacoviello Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. --]] -- Background Class Definitions File class = require('lib.middleclass') bump = require('bump.bump') Tile = require('Tile') Obstical = class( 'Obstical', Tile ) function Obstical:initialize(...) -- map, cc, solid, deadly, l,t,w,h, r,g,b, updates, vx, vy, hasGravity, cFilter) Tile.initialize( self, ... ) --Tile.initialize( self, map, cc, solid, deadly, l,t,w,h, r,g,b, updates, vx, vy, hasGravity, cFilter ) end return Obstical
group "apps" include "Demo.UI" include "Editor" include "Messenger" include "Preview"
-- An in-game interface for `color-schemes` --[====[ gui/color-schemes ================= An in-game interface for `color-schemes`. This script must be called from either the title screen or the dwarf fortress default screen. ]====] --[[ +----------------------------------Color Schemes+------------------------------+ - | | | | | Colors | Name | | | | | | | Black-----------------+Dark Grey------------+ | colors LD | | | | | | | ASCII default | | | Blue------------------+Light Blue-----------+ | ... | | | | | | | invalid I | | | Green-----------------+Light Green----------+ | ... | | | | | | | | | | Cyan------------------+Light Cyan-----------+ | | a | | | | | | u | Red-------------------+Light Red------------+ | | t | | | | | | o | Magenta---------------+Light Magenta--------+ | | | | | | | | ... | | | Brown-----------------+Yellow---------------+ | | | | | | | | L: loaded I: invalid | | | Grey------------------+White----------------+ | D: default | | | | | | | | | | +---------------------+---------------------+ | p: preview R: register | | | | D: set default | | | | Enter: load ESC: exit | | | | | | +--vX.X.X---------------------------------------+-----------------------DFHack-+ - |-------------------- auto ---------------------|------------ 32 --------------| ]] --[[ Copyright (c) 2020 Nicolas Ayala `https://github.com/nicolasayala` This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions: 1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. 2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. 3. This notice may not be removed or altered from any source distribution. ]] --+================+ --| IMPORTS | --+================+ local gui = require "gui" local widgets = require "gui.widgets" local dialogs = require "gui.dialogs" local ColorSchemes = dfhack.reqscript('color-schemes') --+================+ --| GLOBALS | --+================+ VERSION = "0.1.0" --+================+ --| DEBUG | --+================+ -- local DEBUG = true function debugBackground(color) return DEBUG and {bg = color} or nil end --+========================+ --| FRAMEDSCREEN CLASS | --+========================+ --[[ FramedScreen allowing the same frame definition as `widgets.Widget` ]] FramedScreen = defclass(FramedScreen, gui.FramedScreen) FramedScreen.ATTRS { --[[ widgets.View ]]-- -- active = true, -- visible = true, -- view_id = DEFAULT_NIL, --[[ widgets.FramedScreen ]]-- -- frame_style = BOUNDARY_FRAME, -- frame_title = DEFAULT_NIL, -- frame_width = DEFAULT_NIL, -- frame_height = DEFAULT_NIL, -- frame_inset = 0, -- frame_background = CLEAR_PEN, --[[ New ]]-- frame = DEFAULT_NIL, -- same as widgets.Panel.frame focus_path = DEFAULT_NIL, version = "0.0.0", } -- Override `FramedScreen.computeFrame` function FramedScreen:computeFrame(parent_rect) local sw, sh = parent_rect.width, parent_rect.height return gui.compute_frame_body(sw, sh, self.frame, self.frame_inset, 1) end -- Override `FramedScreen.onInput`. function FramedScreen:onInput(keys) -- printall(keys) if self:inputToSubviews(keys) then return true end if keys.LEAVESCREEN then self:dismiss() return true end end function FramedScreen:onRenderFrame(painter, rect) FramedScreen.super.onRenderFrame(self, painter, rect) local style = self.frame_style local pen = style.signature_pen or style.title_pen or style.frame_pen painter:seek(rect.x1 + 2,rect.y2):string(string.format("v%s", self.version), pen) end --+====================+ --| HLAYOUT WIDGET | --+====================+ --[[ Widget horizontal layout container, computing childs' width and automatic positioning ]] HLayout = defclass(HLyaout, widgets.Widget) HLayout.ATTRS { --[[ widgets.Widget ]]-- -- frame = DEFAULT_NIL, -- frame_inset = DEFAULT_NIL, -- frame_background = DEFAULT_NIL, --[[ New ]]-- subviews = DEFAULT_NIL, space = 0, sep_pen = DEFAULT_NIL, } function HLayout:init(args) self:addviews(args.subviews) end --[[ Views with `frame.w` field take their own width. Leftover parent width is spent between childs. Finally all childs are positioned with spacing Invisible childs are properly supported ]] function HLayout:postComputeFrame(frame_body) local function is_expand(view) return not (view.frame and view.frame.w) or view.frame.expand end local function spacing(i, views, space) if not views[i].visible or i == #views or not views[i+1].visible then return 0 else return space end end local avail_w = frame_body.width -- Available width local expand_count = 0 -- Number of expanding views for i,view in ipairs(self.subviews) do local space = spacing(i, self.subviews, self.space) if view.visible then if is_expand(view) then expand_count = expand_count + 1 view.frame = view.frame or {} view.frame.expand = true else avail_w = avail_w - view.frame.w end avail_w = avail_w - space end end local auto_w = expand_count > 0 and math.floor(avail_w / expand_count) or 0 local l_offset = 0 self.separators = {} for i,view in ipairs(self.subviews) do local space = spacing(i, self.subviews, self.space) if view.visible then view.frame.l = l_offset if view.frame.expand then l_offset = l_offset + auto_w view.frame.w = auto_w else l_offset = l_offset + view.frame.w end end if space ~= 0 then table.insert(self.separators, l_offset + math.floor(space / 2)) end l_offset = l_offset + space end end function HLayout:onRenderBody(painter) for _,sep in ipairs(self.separators) do painter:fill(sep, 0, sep, painter.height, self.sep_pen) end end --+==================+ --| PANEL WIDGET | --+==================+ --[[ Panel widget with frame size relative to parent ]] Panel = defclass(Panel, widgets.Panel) Panel.ATTRS { --[[ widgets.Widget ]]-- -- frame = DEFAULT_NIL, -- frame_inset = DEFAULT_NIL, -- frame_background = DEFAULT_NIL, --[[ widgets.Panel ]]-- -- on_render = DEFAULT_NIL, -- on_layout = DEFAULT_NIL, } function Panel:preUpdateLayout(parent_rect) local frame = self.frame if not frame then return end local pw, ph = parent_rect.width, parent_rect.height local w, h = frame.w, frame.h local wp, hp = frame.wp, frame.hp local wmin, hmin = frame.wmin or 0, frame.hmin or 0 local max = math.max local min = math.min local floor = math.floor if not w and wp then frame.w = max(floor(pw * wp), wmin) end -- wmin <= pw * wp if not h and hp then frame.h = max(floor(ph * hp), hmin) end -- hmin <= ph * hp end --+==================+ --| COLOR WIDGET | --+==================+ --[[ Simple color panel with color name ]] Color = defclass(Color, widgets.Widget) Color.ATTRS { --[[ widgets.Widget ]]-- -- frame = DEFAULT_NIL, -- frame_inset = DEFAULT_NIL, -- frame_background = DEFAULT_NIL, --[[ New ]]-- name = "White", color = COLOR_WHITE, } function Color:onRenderBody(painter) painter :fill(0, 0, painter.width, painter.height, {bg = self.color}) :seek(0, 0):string(self.name, { fg = self.color, bg = COLOR_BLACK }) :seek(0, 1):string(self.name, { fg = COLOR_WHITE, bg = self.color }) end --+=================+ --| LIST WIDGET | --+=================+ --[[ List widget similiar to `widgets.List` with arrow icons and flag support ]] List = defclass(List, widgets.Widget) List.ATTRS { --[[ widgets.Widget ]]-- -- frame = DEFAULT_NIL, -- frame_inset = DEFAULT_NIL, -- frame_background = DEFAULT_NIL, --[[ New ]]-- items = DEFAULT_NIL, -- <table> (see `List:setItems`) flags = DEFAULT_NIL, -- <table> (see `List:setFlags`) text_pen = COLOR_CYAN, text_hpen = COLOR_LIGHTCYAN, on_submit = DEFAULT_NIL, -- <func(item)> on_select = DEFAULT_NIL, -- <func(item)> } local KEYS_STANDARD_SCROLL = { STANDARDSCROLL_UP = -1, STANDARDSCROLL_DOWN = 1, STANDARDSCROLL_PAGEUP = "-page_size", STANDARDSCROLL_PAGEDOWN = "+page_size", CURSOR_UP_FAST = -5, CURSOR_DOWN_FAST = 5 } function List:init(args) self:setItems(self.items) self:setFlags(self.flags) end --[[ flags template { <flag_key> : { pos : <number> text : <string> pen : <pen> } ... } ]] function List:setFlags(flags) self.flags = flags or {} -- Sanitize flags for _,flag in pairs(self.flags) do flag.text = type(flag.text) == "string" and flag.text or "" flag.pos = type(flag.pos) == "number" and flag.pos or 0 end end --[[ items template { { text : <string> flags : { <flag_key> : <boolean> ... } } ... } ]] function List:setItems(items, selected) self.items = items or {} -- Sanitize item for _,item in ipairs(self.items) do item.text = type(item.text) == "string" and item.text or "" item.flags = type(item.flags) == "table" and item.flags or {} end self.size = #self.items self:select(selected) end function List:getSelected() if self.selected then return self.items[self.selected] else return nil end end function List:isEmpty() return self.size == 0 end function List:select(index, relative) if self:isEmpty() then return nil end local new_selected if not relative then -- Clamp index to a valid item index new_selected = math.max(1, math.min(self.size, index or 1)) else -- i is relative to current selected index local delta = index -- Stop high warp (selected + delta <= self.size) delta = math.min(self.size - self.selected, delta) -- Stop low warp (selected + delta >= 1) delta = math.max( 1 - self.selected, delta) new_selected = self.selected + delta end self.selected = new_selected if self.on_select then self.on_select(self:getSelected()) end return item end function List:postComputeFrame(frame_body) self.page_size = frame_body.height end function List:onRenderBody(painter) if self:isEmpty() then return end -- Utility variables local page_size = self.page_size local ifirst = 1 local ilast = self.size local ibegin = math.floor((self.selected - 1) / page_size) * page_size + 1 local iend = math.min(ibegin + page_size, ilast) for i = ibegin,iend do -- Compute up or down arrow indicating available up or down page local arrow if page_size == 1 and i ~= ilast and i ~= ifirst then -- One element per page non first non last (for completeness sake) arrow = string.char(18) elseif i % page_size == 1 and i ~= ifirst then -- Top element with available up page arrow = string.char(24) -- 24 : up arrow elseif i % page_size == 0 and i ~= ilast then -- Bottom element with available down page arrow = string.char(25) -- 25 : down arrow end --[[ Print item ]]-- local item = self.items[i] local y = (i - ibegin) local selected = (i == self.selected) local width = painter.width local text_pen = selected and self.text_hpen or self.text_pen painter :seek(0,y):string(item.text, text_pen) -- text :seek(width - 1, y):char(arrow, text_pen) -- arrow -- Print any flags for flag_key,enabled in pairs(item.flags) do local flag = self.flags[flag_key] if flag and enabled then local flag_pen = selected and flag.hpen or flag.pen local x = flag.pos % width painter:seek(x, y):string(flag.text, flag_pen) end end end end function List:onInput(keys) if self.on_submit and keys.SELECT and self.selected then self.on_submit(self:getSelected()) return true else -- Selection keys (up/down) for key,value in pairs(KEYS_STANDARD_SCROLL) do if keys[key] then local delta if type(value) == "string" then -- Quotes over `gsub` call to retrieve only the first value delta = tonumber((string.gsub(value, "page_size", self.page_size))) else delta = value end self:select(delta, true) return true end end end return self:inputToSubviews(keys) end --+=================+ --| GRID WIDGET | --+=================+ --[[ Grid widget container, computes childs' frames ]] Grid = defclass(Grid, widgets.Panel) Grid.ATTRS { --[[ widgets.Widget ]]-- -- frame = DEFAULT_NIL, -- frame_inset = DEFAULT_NIL, -- frame_background = DEFAULT_NIL, --[[ New ]]-- columns = 3, rows = 3, spacing = 1, } function Grid:postComputeFrame(frame_body) local w = math.floor((frame_body.width - self.columns * self.spacing) / self.columns) local h = math.floor((frame_body.height - self.rows * self.spacing) / self.rows) for i, view in ipairs(self.subviews) do local c = (i - 1) % self.columns local r = math.floor((i - 1) / self.columns) local cspace = c * self.spacing local rspace = r * self.spacing view.frame = { l = c * w + cspace, t = r * h + rspace, w = w, h = h, } end end --+=========================+ --| TAB CONTAINER WIDGET | --+=========================+ --[[ Tabular menu widget TODO : Make standalone menu widget class (horizontal list) ]] TabContainer = defclass(TabContainer, widgets.Widget) TabContainer.ATTRS { --[[ New ]]-- menu_spacing = 3, menu_pen = COLOR_WHITE, menu_hpen = COLOR_GREY, tabs = DEFAULT_NIL -- <table> (see `TabContainer:init`) } --[[ tabs template { { name : <string> view : <widget> } ... } ]] function TabContainer:init(args) self.tabs = self.tabs or {} local views = {} for _,tab in ipairs(self.tabs) do table.insert(views, tab.view) end self:addviews { widgets.Pages { view_id = "pages", frame = { t = 2 }, subviews = views, } } self.pages = self.subviews.pages end function TabContainer:select(index, relative) if #self.pages.subviews == 0 then return nil end if not relative then self.pages:setSelected(index) return self.pages:getSelectedPage() else local delta = index local selected = self.pages:getSelected() return self:select(selected + delta) end end function TabContainer:onRenderBody(painter) local selected = self.pages:getSelected() for i, tab in ipairs(self.tabs) do local pen = (i == selected) and self.menu_pen or self.menu_hpen painter:string(tab.name, pen):advance(self.menu_spacing, 0) end end function TabContainer:onInput(keys) if self:inputToSubviews(keys) then return true end if keys.STANDARDSCROLL_RIGHT then self:select(1, true) return true elseif keys.STANDARDSCROLL_LEFT then self:select(-1, true) return true else return false end end --+============+ --| SCREEN | --+============+ -- If that screen is already active, just close it if screen and screen:isActive() then screen:dismiss() end screen = FramedScreen { frame_title = "Color Schemes", focus_path = "color-schemes", frame = {w = 32, xalign = 1}, frame_inset = 0, version = VERSION, } --[[=== METHODS ===]]-- function screen:onSubmit(item) -- Load scheme and update loaded flag if item ~= self.loaded_item then local scheme = item.scheme if scheme.valid then if self.loaded_item then self.loaded_item.flags.loaded = false end self.loaded_item = item self.loaded_item.flags.loaded = true ColorSchemes.load(scheme.name) end end end function screen:onRegister() dialogs.showInputPrompt( "Register", "Register color schemes by file or directory", COLOR_WHITE, "/raw/colors/", function(path) ColorSchemes.register(path) self:populateList() end ) end function screen:onSetDefault() local selected = self.list:getSelected() if selected then ColorSchemes.set_default(selected.scheme.name) if self.default_item then self.default_item.flags.default = false end self.default_item = selected self.default_item.flags.default = true end end function screen:togglePreview(enabled) self.frame.w = not enabled and 32 or nil self.preview_label.pen = enabled and COLOR_WHITE or COLOR_DARKGREY self.preview.visible = enabled self:updateLayout() end function screen:onPreview() self:togglePreview(not self.preview.visible) end function screen:populateList() local items = {} self.item_loaded = nil local schemes = ColorSchemes.list() table.sort(schemes, function(a, b) return a.name < b.name end) -- Build items for _,scheme in ipairs(schemes) do local item = { text = scheme.name, flags = { loaded = scheme.loaded, default = scheme.default, invalid = not scheme.valid, }, scheme = scheme, } if scheme.loaded then self.loaded_item = item end if scheme.default then self.default_item = item end table.insert(items, item) end self.list:setItems(items) end --[[=== SCHEMES PANEL ===]]-- screen.header = widgets.Label { frame = {t = 0, l = 0}, text = "Name", } screen.preview_label = { text = "preview", key = "CUSTOM_P", key_sep = ": ", on_activate = screen:callback("onPreview"), } screen.Lcommands = Panel { frame = { h = 6, l = 0, b = 0, wp = 0.5 }, frame_background = debugBackground(COLOR_LIGHTCYAN), subviews = { widgets.Label { text = { { text = "loaded", key = "CUSTOM_SHIFT_L", key_sep = ": ", key_pen = COLOR_GREEN}, "\n", { text = "default", key = "CUSTOM_SHIFT_D", key_sep = ": ", key_pen = COLOR_GREY}, "\n", "\n", screen.preview_label, "\n", { text = "set default", key = "CUSTOM_SHIFT_D", key_sep = ": ", on_activate = screen:callback("onSetDefault") }, "\n", { text = "load", key = "SELECT", key_sep = ": "}, "\n", } } } } screen.Rcommands = Panel { frame = { h = 6, r = 0, b = 0, wp = 0.5 }, frame_background = debugBackground(COLOR_CYAN), subviews = { widgets.Label { text = { { text = "invalid", key = "CUSTOM_SHIFT_I", key_sep = ": ", key_pen = COLOR_LIGHTRED}, "\n", "\n", "\n", { text = "register", key = "CUSTOM_SHIFT_R", key_sep = ": ", on_activate = screen:callback("onRegister") }, "\n", "\n", { text = "exit", key = "LEAVESCREEN", key_sep = ": "}, } } } } screen.list = List{ frame = { t = 2, b = 7 }, frame_background = debugBackground(COLOR_GREEN), flags = { loaded = {pos = -4, text = "L", pen = COLOR_GREEN, hpen = COLOR_LIGHTGREEN }, default = {pos = -3, text = "D", pen = COLOR_GREY, hpen = COLOR_WHITE }, invalid = {pos = -2, text = "I", pen = COLOR_RED, hpen = COLOR_LIGHTRED }, }, on_submit = screen:callback("onSubmit") } screen.schemes = Panel { frame = { w = 30 }, frame_background = debugBackground(COLOR_LIGHTBLUE), frame_inset = 1, subviews = { screen.header, screen.list, screen.Lcommands, screen.Rcommands } } --[[=== PREVIEW PANEL ===]]-- screen.colors = Grid { view_id = "Colors", columns = 2, rows = 8, spacing = 0, subviews = { Color { name = "Black", color = COLOR_BLACK}, Color { name = "Dark Grey", color = COLOR_DARKGREY}, Color { name = "Blue", color = COLOR_BLUE}, Color { name = "Light Blue", color = COLOR_LIGHTBLUE}, Color { name = "Green", color = COLOR_GREEN}, Color { name = "Light Green", color = COLOR_LIGHTGREEN}, Color { name = "Cyan", color = COLOR_CYAN}, Color { name = "Light Cyan", color = COLOR_LIGHTCYAN}, Color { name = "Red", color = COLOR_RED}, Color { name = "Light Red", color = COLOR_LIGHTRED}, Color { name = "Magenta", color = COLOR_MAGENTA}, Color { name = "Light Magenta", color = COLOR_LIGHTMAGENTA}, Color { name = "Brown", color = COLOR_BROWN}, Color { name = "Yellow", color = COLOR_YELLOW}, Color { name = "Grey", color = COLOR_GREY}, Color { name = "White", color = COLOR_WHITE}, } } screen.preview = Panel { frame_background = debugBackground(COLOR_RED), frame_inset = 1, subviews = { TabContainer { tabs = { { name = "Colors", view = screen.colors} } } } } --[[=== INITIALIZE ===]]-- screen:addviews { HLayout { frame_background = debugBackground(COLOR_MAGENTA), space = 1, sep_pen = screen.frame_style.frame_pen, subviews = { screen.preview, screen.schemes } } } screen:populateList() screen:togglePreview(false) screen:show()
hook.Add("PlayerBindPress", "Hobo sound", function(ply, bind, pressed) if ply == LocalPlayer() and IsValid(ply:GetActiveWeapon()) and string.find(string.lower(bind), "attack2") and ply:GetActiveWeapon():GetClass() == "weapon_bugbait" then LocalPlayer():ConCommand("_hobo_emitsound") end end)
-- +defense return { id = "hermesboots", name = "Hermes Boots", equipmentType = "feet", spriteSheet = "armor", spriteCoords = Vector2.new(3,2), tier = 1, stats = { moveSpeed = 10, }, tags = { "armor", }, }
-- Need for Speed: Underground (NTSC v1.0) local core = require("games.core") return core.newGame(0x802F2A5C)
--Copyright (C) 2009 <SWGEmu> --This File is part of Core3. --This program is free software; you can redistribute --it and/or modify it under the terms of the GNU Lesser --General Public License as published by the Free Software --Foundation; either version 2 of the License, --or (at your option) any later version. --This program is distributed in the hope that it will be useful, --but WITHOUT ANY WARRANTY; without even the implied warranty of --MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. --See the GNU Lesser General Public License for --more details. --You should have received a copy of the GNU Lesser General --Public License along with this program; if not, write to --the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA --Linking Engine3 statically or dynamically with other modules --is making a combined work based on Engine3. --Thus, the terms and conditions of the GNU Lesser General Public License --cover the whole combination. --In addition, as a special exception, the copyright holders of Engine3 --give you permission to combine Engine3 program with free software --programs or libraries that are released under the GNU LGPL and with --code included in the standard release of Core3 under the GNU LGPL --license (or modified versions of such code, with unchanged license). --You may copy and distribute such a system following the terms of the --GNU LGPL for Engine3 and the licenses of the other code concerned, --provided that you include the source code of that other code when --and as the GNU LGPL requires distribution of source code. --Note that people who make modified versions of Engine3 are not obligated --to grant this special exception for their modified versions; --it is their choice whether to do so. The GNU Lesser General Public License --gives permission to release a modified version without this exception; --this exception also makes it possible to release a modified version --which carries forward this exception. object_tangible_ship_attachment_weapon_shared_aggressor_weapon_s01 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_aggressor_weapon_s01.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/tie_aggressor_turret_base.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "clientdata/ship/component/tie_aggressor_turret_base.cdf", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 2582989929, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_aggressor_weapon_s01, "object/tangible/ship/attachment/weapon/shared_aggressor_weapon_s01.iff") object_tangible_ship_attachment_weapon_shared_aggressor_weapon_s02 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_aggressor_weapon_s02.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/tie_aggressor_weapon_s01.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 1122166014, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_aggressor_weapon_s02, "object/tangible/ship/attachment/weapon/shared_aggressor_weapon_s02.iff") object_tangible_ship_attachment_weapon_shared_awing_weapon_s01 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_awing_weapon_s01.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/awing_weapon_s01.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "clientdata/ship/component/wpn_awing_weapon_s01.cdf", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 3551073047, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_awing_weapon_s01, "object/tangible/ship/attachment/weapon/shared_awing_weapon_s01.iff") object_tangible_ship_attachment_weapon_shared_awing_weapon_s02 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_awing_weapon_s02.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/awing_weapon_s02.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "clientdata/ship/component/wpn_awing_weapon_generic.cdf", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 146717568, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_awing_weapon_s02, "object/tangible/ship/attachment/weapon/shared_awing_weapon_s02.iff") object_tangible_ship_attachment_weapon_shared_awing_weapon_s03 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_awing_weapon_s03.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/awing_weapon_s03.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "clientdata/ship/component/wpn_awing_weapon_generic.cdf", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 1102306317, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_awing_weapon_s03, "object/tangible/ship/attachment/weapon/shared_awing_weapon_s03.iff") object_tangible_ship_attachment_weapon_shared_awing_weapon_s04 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_awing_weapon_s04.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/awing_weapon_s04.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "clientdata/ship/component/wpn_awing_weapon_generic.cdf", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 3125868313, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_awing_weapon_s04, "object/tangible/ship/attachment/weapon/shared_awing_weapon_s04.iff") object_tangible_ship_attachment_weapon_shared_awing_weapon_s05 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_awing_weapon_s05.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/awing_weapon_s05.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "clientdata/ship/component/wpn_awing_weapon_generic.cdf", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 4082995348, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_awing_weapon_s05, "object/tangible/ship/attachment/weapon/shared_awing_weapon_s05.iff") object_tangible_ship_attachment_weapon_shared_awing_weapon_s06 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_awing_weapon_s06.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/awing_weapon_s06.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "clientdata/ship/component/wpn_awing_weapon_generic.cdf", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 675952643, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_awing_weapon_s06, "object/tangible/ship/attachment/weapon/shared_awing_weapon_s06.iff") object_tangible_ship_attachment_weapon_shared_blacksun_heavy_missile_pod_s01 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_blacksun_heavy_missile_pod_s01.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/black_sun_fighter_heavy_missile_pod_s01.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 2822706074, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_blacksun_heavy_missile_pod_s01, "object/tangible/ship/attachment/weapon/shared_blacksun_heavy_missile_pod_s01.iff") object_tangible_ship_attachment_weapon_shared_blacksun_heavy_missile_pod_s02 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_blacksun_heavy_missile_pod_s02.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/black_sun_fighter_heavy_missile_pod_s02.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 1932049165, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_blacksun_heavy_missile_pod_s02, "object/tangible/ship/attachment/weapon/shared_blacksun_heavy_missile_pod_s02.iff") object_tangible_ship_attachment_weapon_shared_blacksun_heavy_weapon1_s01 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_blacksun_heavy_weapon1_s01.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/black_sun_fighter_heavy_weapon1_s01.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "clientdata/ship/component/wpn_blacksun_heavy_wpn1_s01.cdf", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 3725694028, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_blacksun_heavy_weapon1_s01, "object/tangible/ship/attachment/weapon/shared_blacksun_heavy_weapon1_s01.iff") object_tangible_ship_attachment_weapon_shared_blacksun_heavy_weapon1_s02 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_blacksun_heavy_weapon1_s02.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/black_sun_fighter_heavy_weapon1_s02.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "clientdata/ship/component/wpn_blacksun_heavy_wpn1_s02.cdf", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 84294875, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_blacksun_heavy_weapon1_s02, "object/tangible/ship/attachment/weapon/shared_blacksun_heavy_weapon1_s02.iff") object_tangible_ship_attachment_weapon_shared_blacksun_heavy_weapon1_s03 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_blacksun_heavy_weapon1_s03.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/black_sun_fighter_heavy_weapon1_s03.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "clientdata/ship/component/wpn_blacksun_heavy_wpn1_s03.cdf", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 1275812694, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_blacksun_heavy_weapon1_s03, "object/tangible/ship/attachment/weapon/shared_blacksun_heavy_weapon1_s03.iff") object_tangible_ship_attachment_weapon_shared_blacksun_heavy_weapon1_s04 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_blacksun_heavy_weapon1_s04.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/black_sun_fighter_heavy_weapon1_s04.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "clientdata/ship/component/wpn_blacksun_heavy_wpn1_s04.cdf", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 3085463618, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_blacksun_heavy_weapon1_s04, "object/tangible/ship/attachment/weapon/shared_blacksun_heavy_weapon1_s04.iff") object_tangible_ship_attachment_weapon_shared_blacksun_heavy_weapon1_s05 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_blacksun_heavy_weapon1_s05.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/black_sun_fighter_heavy_weapon1_s05.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "clientdata/ship/component/wpn_blacksun_heavy_wpn1_s05.cdf", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 4276426703, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_blacksun_heavy_weapon1_s05, "object/tangible/ship/attachment/weapon/shared_blacksun_heavy_weapon1_s05.iff") object_tangible_ship_attachment_weapon_shared_blacksun_heavy_weapon1_s06 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_blacksun_heavy_weapon1_s06.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/black_sun_fighter_heavy_weapon1_s06.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "clientdata/ship/component/wpn_blacksun_heavy_wpn1_s06.cdf", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 636665688, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_blacksun_heavy_weapon1_s06, "object/tangible/ship/attachment/weapon/shared_blacksun_heavy_weapon1_s06.iff") object_tangible_ship_attachment_weapon_shared_blacksun_heavy_weapon2_s01 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_blacksun_heavy_weapon2_s01.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/black_sun_fighter_heavy_weapon2_s01.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "clientdata/ship/component/wpn_blacksun_heavy_wpn2_s01.cdf", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 3436279633, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_blacksun_heavy_weapon2_s01, "object/tangible/ship/attachment/weapon/shared_blacksun_heavy_weapon2_s01.iff") object_tangible_ship_attachment_weapon_shared_blacksun_heavy_weapon2_s02 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_blacksun_heavy_weapon2_s02.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/black_sun_fighter_heavy_weapon2_s02.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "clientdata/ship/component/wpn_blacksun_heavy_wpn2_s02.cdf", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 398909382, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_blacksun_heavy_weapon2_s02, "object/tangible/ship/attachment/weapon/shared_blacksun_heavy_weapon2_s02.iff") object_tangible_ship_attachment_weapon_shared_blacksun_heavy_weapon2_s03 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_blacksun_heavy_weapon2_s03.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/black_sun_fighter_heavy_weapon2_s03.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "clientdata/ship/component/wpn_blacksun_heavy_wpn2_s03.cdf", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 1590409291, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_blacksun_heavy_weapon2_s03, "object/tangible/ship/attachment/weapon/shared_blacksun_heavy_weapon2_s03.iff") object_tangible_ship_attachment_weapon_shared_blacksun_heavy_weapon2_s04 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_blacksun_heavy_weapon2_s04.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/black_sun_fighter_heavy_weapon2_s04.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "clientdata/ship/component/wpn_blacksun_heavy_wpn2_s04.cdf", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 2770899807, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_blacksun_heavy_weapon2_s04, "object/tangible/ship/attachment/weapon/shared_blacksun_heavy_weapon2_s04.iff") object_tangible_ship_attachment_weapon_shared_blacksun_heavy_weapon2_s05 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_blacksun_heavy_weapon2_s05.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/black_sun_fighter_heavy_weapon2_s05.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "clientdata/ship/component/wpn_blacksun_heavy_wpn2_s05.cdf", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 3961910482, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_blacksun_heavy_weapon2_s05, "object/tangible/ship/attachment/weapon/shared_blacksun_heavy_weapon2_s05.iff") object_tangible_ship_attachment_weapon_shared_blacksun_heavy_weapon2_s06 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_blacksun_heavy_weapon2_s06.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/black_sun_fighter_heavy_weapon2_s06.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "clientdata/ship/component/wpn_blacksun_heavy_wpn2_s06.cdf", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 926047301, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_blacksun_heavy_weapon2_s06, "object/tangible/ship/attachment/weapon/shared_blacksun_heavy_weapon2_s06.iff") object_tangible_ship_attachment_weapon_shared_blacksun_heavy_weapon3_s01 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_blacksun_heavy_weapon3_s01.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/black_sun_fighter_heavy_weapon3_s01.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "clientdata/ship/component/wpn_blacksun_heavy_wpn3_s01.cdf", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 1053941047, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_blacksun_heavy_weapon3_s01, "object/tangible/ship/attachment/weapon/shared_blacksun_heavy_weapon3_s01.iff") object_tangible_ship_attachment_weapon_shared_blacksun_heavy_weapon3_s02 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_blacksun_heavy_weapon3_s02.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/black_sun_fighter_heavy_weapon3_s02.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 3854988704, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_blacksun_heavy_weapon3_s02, "object/tangible/ship/attachment/weapon/shared_blacksun_heavy_weapon3_s02.iff") object_tangible_ship_attachment_weapon_shared_blacksun_heavy_weapon3_s03 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_blacksun_heavy_weapon3_s03.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/black_sun_fighter_heavy_weapon3_s03.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 2898989613, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_blacksun_heavy_weapon3_s03, "object/tangible/ship/attachment/weapon/shared_blacksun_heavy_weapon3_s03.iff") object_tangible_ship_attachment_weapon_shared_blacksun_heavy_weapon3_s04 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_blacksun_heavy_weapon3_s04.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/black_sun_fighter_heavy_weapon3_s04.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 1462253881, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_blacksun_heavy_weapon3_s04, "object/tangible/ship/attachment/weapon/shared_blacksun_heavy_weapon3_s04.iff") object_tangible_ship_attachment_weapon_shared_blacksun_heavy_weapon3_s05 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_blacksun_heavy_weapon3_s05.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/black_sun_fighter_heavy_weapon3_s05.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 505765556, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_blacksun_heavy_weapon3_s05, "object/tangible/ship/attachment/weapon/shared_blacksun_heavy_weapon3_s05.iff") object_tangible_ship_attachment_weapon_shared_blacksun_heavy_weapon3_s06 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_blacksun_heavy_weapon3_s06.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/black_sun_fighter_heavy_weapon3_s06.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 3308451363, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_blacksun_heavy_weapon3_s06, "object/tangible/ship/attachment/weapon/shared_blacksun_heavy_weapon3_s06.iff") object_tangible_ship_attachment_weapon_shared_blacksun_light_weapon_s01 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_blacksun_light_weapon_s01.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/black_sun_fighter_light_weapon_s01.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 3382429692, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_blacksun_light_weapon_s01, "object/tangible/ship/attachment/weapon/shared_blacksun_light_weapon_s01.iff") object_tangible_ship_attachment_weapon_shared_blacksun_light_weapon_s02 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_blacksun_light_weapon_s02.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/black_sun_fighter_light_weapon_s02.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 311193451, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_blacksun_light_weapon_s02, "object/tangible/ship/attachment/weapon/shared_blacksun_light_weapon_s02.iff") object_tangible_ship_attachment_weapon_shared_blacksun_light_weapon_s03 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_blacksun_light_weapon_s03.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/black_sun_fighter_light_weapon_s03.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 1535183078, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_blacksun_light_weapon_s03, "object/tangible/ship/attachment/weapon/shared_blacksun_light_weapon_s03.iff") object_tangible_ship_attachment_weapon_shared_blacksun_light_weapon_s04 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_blacksun_light_weapon_s04.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/black_sun_fighter_light_weapon_s04.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 2690786290, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_blacksun_light_weapon_s04, "object/tangible/ship/attachment/weapon/shared_blacksun_light_weapon_s04.iff") object_tangible_ship_attachment_weapon_shared_blacksun_light_weapon_s05 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_blacksun_light_weapon_s05.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/black_sun_fighter_light_weapon_s05.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 3916383359, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_blacksun_light_weapon_s05, "object/tangible/ship/attachment/weapon/shared_blacksun_light_weapon_s05.iff") object_tangible_ship_attachment_weapon_shared_blacksun_light_weapon_s06 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_blacksun_light_weapon_s06.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/black_sun_fighter_light_weapon_s06.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 846785768, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_blacksun_light_weapon_s06, "object/tangible/ship/attachment/weapon/shared_blacksun_light_weapon_s06.iff") object_tangible_ship_attachment_weapon_shared_blacksun_medium_weapon1_s01 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_blacksun_medium_weapon1_s01.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/black_sun_fighter_medium_weapon1_s01.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 88180936, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_blacksun_medium_weapon1_s01, "object/tangible/ship/attachment/weapon/shared_blacksun_medium_weapon1_s01.iff") object_tangible_ship_attachment_weapon_shared_blacksun_medium_weapon1_s02 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_blacksun_medium_weapon1_s02.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/black_sun_fighter_medium_weapon1_s02.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 3730186335, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_blacksun_medium_weapon1_s02, "object/tangible/ship/attachment/weapon/shared_blacksun_medium_weapon1_s02.iff") object_tangible_ship_attachment_weapon_shared_blacksun_medium_weapon1_s03 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_blacksun_medium_weapon1_s03.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/black_sun_fighter_medium_weapon1_s03.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 2539341778, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_blacksun_medium_weapon1_s03, "object/tangible/ship/attachment/weapon/shared_blacksun_medium_weapon1_s03.iff") object_tangible_ship_attachment_weapon_shared_blacksun_medium_weapon1_s04 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_blacksun_medium_weapon1_s04.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/black_sun_fighter_medium_weapon1_s04.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 1824025798, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_blacksun_medium_weapon1_s04, "object/tangible/ship/attachment/weapon/shared_blacksun_medium_weapon1_s04.iff") object_tangible_ship_attachment_weapon_shared_blacksun_medium_weapon2_s01 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_blacksun_medium_weapon2_s01.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/black_sun_fighter_medium_weapon2_s01.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 394357717, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_blacksun_medium_weapon2_s01, "object/tangible/ship/attachment/weapon/shared_blacksun_medium_weapon2_s01.iff") object_tangible_ship_attachment_weapon_shared_blacksun_medium_weapon2_s02 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_blacksun_medium_weapon2_s02.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/black_sun_fighter_medium_weapon2_s02.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 3432432450, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_blacksun_medium_weapon2_s02, "object/tangible/ship/attachment/weapon/shared_blacksun_medium_weapon2_s02.iff") object_tangible_ship_attachment_weapon_shared_blacksun_medium_weapon2_s03 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_blacksun_medium_weapon2_s03.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/black_sun_fighter_medium_weapon2_s03.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 2241569999, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_blacksun_medium_weapon2_s03, "object/tangible/ship/attachment/weapon/shared_blacksun_medium_weapon2_s03.iff") object_tangible_ship_attachment_weapon_shared_blacksun_medium_weapon2_s04 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_blacksun_medium_weapon2_s04.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/black_sun_fighter_medium_weapon2_s04.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 2121830363, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_blacksun_medium_weapon2_s04, "object/tangible/ship/attachment/weapon/shared_blacksun_medium_weapon2_s04.iff") object_tangible_ship_attachment_weapon_shared_blacksun_medium_weapon2_s05 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_blacksun_medium_weapon2_s05.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/black_sun_fighter_medium_weapon2_s04.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 930474070, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_blacksun_medium_weapon2_s05, "object/tangible/ship/attachment/weapon/shared_blacksun_medium_weapon2_s05.iff") object_tangible_ship_attachment_weapon_shared_blacksun_medium_weapon2_s06 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_blacksun_medium_weapon2_s06.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/black_sun_fighter_medium_weapon2_s04.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 3965862081, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_blacksun_medium_weapon2_s06, "object/tangible/ship/attachment/weapon/shared_blacksun_medium_weapon2_s06.iff") object_tangible_ship_attachment_weapon_shared_bwing_weapon1_s01 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_bwing_weapon1_s01.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/bwing_weapon1_s01.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 1110287443, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_bwing_weapon1_s01, "object/tangible/ship/attachment/weapon/shared_bwing_weapon1_s01.iff") object_tangible_ship_attachment_weapon_shared_bwing_weapon1_s02 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_bwing_weapon1_s02.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/bwing_weapon1_s02.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 2570718404, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_bwing_weapon1_s02, "object/tangible/ship/attachment/weapon/shared_bwing_weapon1_s02.iff") object_tangible_ship_attachment_weapon_shared_bwing_weapon1_s03 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_bwing_weapon1_s03.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/bwing_weapon1_s03.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 3493292873, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_bwing_weapon1_s03, "object/tangible/ship/attachment/weapon/shared_bwing_weapon1_s03.iff") object_tangible_ship_attachment_weapon_shared_bwing_weapon1_s04 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_bwing_weapon1_s04.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/bwing_weapon1_s04.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 735330397, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_bwing_weapon1_s04, "object/tangible/ship/attachment/weapon/shared_bwing_weapon1_s04.iff") object_tangible_ship_attachment_weapon_shared_bwing_weapon1_s05 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_bwing_weapon1_s05.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/bwing_weapon1_s05.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 1658398672, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_bwing_weapon1_s05, "object/tangible/ship/attachment/weapon/shared_bwing_weapon1_s05.iff") object_tangible_ship_attachment_weapon_shared_bwing_weapon1_s06 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_bwing_weapon1_s06.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/bwing_weapon1_s06.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 3117322055, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_bwing_weapon1_s06, "object/tangible/ship/attachment/weapon/shared_bwing_weapon1_s06.iff") object_tangible_ship_attachment_weapon_shared_bwing_weapon2l_s01 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_bwing_weapon2l_s01.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/bwing_weapon2l_s01.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 3899597756, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_bwing_weapon2l_s01, "object/tangible/ship/attachment/weapon/shared_bwing_weapon2l_s01.iff") object_tangible_ship_attachment_weapon_shared_bwing_weapon2l_s02 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_bwing_weapon2l_s02.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/bwing_weapon2l_s02.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 863537963, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_bwing_weapon2l_s02, "object/tangible/ship/attachment/weapon/shared_bwing_weapon2l_s02.iff") object_tangible_ship_attachment_weapon_shared_bwing_weapon2l_s03 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_bwing_weapon2l_s03.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/bwing_weapon2l_s03.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 2054548646, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_bwing_weapon2l_s03, "object/tangible/ship/attachment/weapon/shared_bwing_weapon2l_s03.iff") object_tangible_ship_attachment_weapon_shared_bwing_weapon2l_s04 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_bwing_weapon2l_s04.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/bwing_weapon2l_s04.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 2174142386, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_bwing_weapon2l_s04, "object/tangible/ship/attachment/weapon/shared_bwing_weapon2l_s04.iff") object_tangible_ship_attachment_weapon_shared_bwing_weapon2l_s05 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_bwing_weapon2l_s05.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/bwing_weapon2l_s05.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 3365642303, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_bwing_weapon2l_s05, "object/tangible/ship/attachment/weapon/shared_bwing_weapon2l_s05.iff") object_tangible_ship_attachment_weapon_shared_bwing_weapon2l_s06 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_bwing_weapon2l_s06.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/bwing_weapon2l_s06.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 327944360, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_bwing_weapon2l_s06, "object/tangible/ship/attachment/weapon/shared_bwing_weapon2l_s06.iff") object_tangible_ship_attachment_weapon_shared_bwing_weapon2r_s01 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_bwing_weapon2r_s01.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/bwing_weapon2r_s01.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 1542061422, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_bwing_weapon2r_s01, "object/tangible/ship/attachment/weapon/shared_bwing_weapon2r_s01.iff") object_tangible_ship_attachment_weapon_shared_bwing_weapon2r_s02 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_bwing_weapon2r_s02.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/bwing_weapon2r_s02.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 2164151801, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_bwing_weapon2r_s02, "object/tangible/ship/attachment/weapon/shared_bwing_weapon2r_s02.iff") object_tangible_ship_attachment_weapon_shared_bwing_weapon2r_s03 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_bwing_weapon2r_s03.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/bwing_weapon2r_s03.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 3388158580, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_bwing_weapon2r_s03, "object/tangible/ship/attachment/weapon/shared_bwing_weapon2r_s03.iff") object_tangible_ship_attachment_weapon_shared_bwing_weapon2r_s04 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_bwing_weapon2r_s04.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/bwing_weapon2r_s04.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 839915872, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_bwing_weapon2r_s04, "object/tangible/ship/attachment/weapon/shared_bwing_weapon2r_s04.iff") object_tangible_ship_attachment_weapon_shared_bwing_weapon2r_s05 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_bwing_weapon2r_s05.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/bwing_weapon2r_s05.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 2065530605, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_bwing_weapon2r_s05, "object/tangible/ship/attachment/weapon/shared_bwing_weapon2r_s05.iff") object_tangible_ship_attachment_weapon_shared_bwing_weapon2r_s06 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_bwing_weapon2r_s06.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/bwing_weapon2r_s06.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 2685064826, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_bwing_weapon2r_s06, "object/tangible/ship/attachment/weapon/shared_bwing_weapon2r_s06.iff") object_tangible_ship_attachment_weapon_shared_bwing_weapon3_s01 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_bwing_weapon3_s01.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/bwing_weapon3_s01.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 2733501736, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_bwing_weapon3_s01, "object/tangible/ship/attachment/weapon/shared_bwing_weapon3_s01.iff") object_tangible_ship_attachment_weapon_shared_bwing_weapon3_s02 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_bwing_weapon3_s02.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/bwing_weapon3_s02.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 2046444991, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_bwing_weapon3_s02, "object/tangible/ship/attachment/weapon/shared_bwing_weapon3_s02.iff") object_tangible_ship_attachment_weapon_shared_bwing_weapon3_s03 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_bwing_weapon3_s03.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/bwing_weapon3_s03.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 821502514, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_bwing_weapon3_s03, "object/tangible/ship/attachment/weapon/shared_bwing_weapon3_s03.iff") object_tangible_ship_attachment_weapon_shared_bwing_weapon3_s04 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_bwing_weapon3_s04.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/bwing_weapon3_s04.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 3407087910, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_bwing_weapon3_s04, "object/tangible/ship/attachment/weapon/shared_bwing_weapon3_s04.iff") object_tangible_ship_attachment_weapon_shared_bwing_weapon3_s05 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_bwing_weapon3_s05.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/bwing_weapon3_s05.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 2182704811, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_bwing_weapon3_s05, "object/tangible/ship/attachment/weapon/shared_bwing_weapon3_s05.iff") object_tangible_ship_attachment_weapon_shared_bwing_weapon3_s06 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_bwing_weapon3_s06.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/bwing_weapon3_s06.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 1494140476, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_bwing_weapon3_s06, "object/tangible/ship/attachment/weapon/shared_bwing_weapon3_s06.iff") object_tangible_ship_attachment_weapon_shared_corellian_corvette_turret_large_base_s01 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_corellian_corvette_turret_large_base_s01.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/corellian_corvette_turret_large_base_s01.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "clientdata/ship/component/wpn_corvette_turret_large.cdf", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 1889933396, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_corellian_corvette_turret_large_base_s01, "object/tangible/ship/attachment/weapon/shared_corellian_corvette_turret_large_base_s01.iff") object_tangible_ship_attachment_weapon_shared_corellian_corvette_turret_side_l = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_corellian_corvette_turret_side_l.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/corellian_corvette_turret_side_l.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 2900942561, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_corellian_corvette_turret_side_l, "object/tangible/ship/attachment/weapon/shared_corellian_corvette_turret_side_l.iff") object_tangible_ship_attachment_weapon_shared_corellian_corvette_turret_side_r = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_corellian_corvette_turret_side_r.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/corellian_corvette_turret_side_r.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 3695025010, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_corellian_corvette_turret_side_r, "object/tangible/ship/attachment/weapon/shared_corellian_corvette_turret_side_r.iff") object_tangible_ship_attachment_weapon_shared_corellian_corvette_turret_small_s01 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_corellian_corvette_turret_small_s01.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/corellian_corvette_turret_small_s01.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 2014065489, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_corellian_corvette_turret_small_s01, "object/tangible/ship/attachment/weapon/shared_corellian_corvette_turret_small_s01.iff") object_tangible_ship_attachment_weapon_shared_decimator_turret_base = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_decimator_turret_base.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/vt49_turret_base.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "clientdata/ship/component/decimator_turret_base.cdf", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 3839453665, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_decimator_turret_base, "object/tangible/ship/attachment/weapon/shared_decimator_turret_base.iff") object_tangible_ship_attachment_weapon_shared_hutt_heavy_missile_pod_s01 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_hutt_heavy_missile_pod_s01.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/hutt_fighter_heavy_missile_pod_s01.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 2160314161, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_hutt_heavy_missile_pod_s01, "object/tangible/ship/attachment/weapon/shared_hutt_heavy_missile_pod_s01.iff") object_tangible_ship_attachment_weapon_shared_hutt_heavy_missile_pod_s02 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_hutt_heavy_missile_pod_s02.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/hutt_fighter_heavy_missile_pod_s02.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 1540648870, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_hutt_heavy_missile_pod_s02, "object/tangible/ship/attachment/weapon/shared_hutt_heavy_missile_pod_s02.iff") object_tangible_ship_attachment_weapon_shared_hutt_heavy_weapon1_s01 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_hutt_heavy_weapon1_s01.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/hutt_fighter_heavy_weapon1_s01.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 2582307984, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_hutt_heavy_weapon1_s01, "object/tangible/ship/attachment/weapon/shared_hutt_heavy_weapon1_s01.iff") object_tangible_ship_attachment_weapon_shared_hutt_heavy_weapon1_s02 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_hutt_heavy_weapon1_s02.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/hutt_fighter_heavy_weapon1_s02.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 1123896327, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_hutt_heavy_weapon1_s02, "object/tangible/ship/attachment/weapon/shared_hutt_heavy_weapon1_s02.iff") object_tangible_ship_attachment_weapon_shared_hutt_heavy_weapon1_s03 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_hutt_heavy_weapon1_s03.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/hutt_fighter_heavy_weapon1_s03.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 200289162, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_hutt_heavy_weapon1_s03, "object/tangible/ship/attachment/weapon/shared_hutt_heavy_weapon1_s03.iff") object_tangible_ship_attachment_weapon_shared_hutt_heavy_weapon1_s04 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_hutt_heavy_weapon1_s04.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/hutt_fighter_heavy_weapon1_s04.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 4027777182, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_hutt_heavy_weapon1_s04, "object/tangible/ship/attachment/weapon/shared_hutt_heavy_weapon1_s04.iff") object_tangible_ship_attachment_weapon_shared_hutt_heavy_weapon1_s05 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_hutt_heavy_weapon1_s05.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/hutt_fighter_heavy_weapon1_s05.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 3105777427, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_hutt_heavy_weapon1_s05, "object/tangible/ship/attachment/weapon/shared_hutt_heavy_weapon1_s05.iff") object_tangible_ship_attachment_weapon_shared_hutt_heavy_weapon1_s06 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_hutt_heavy_weapon1_s06.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/hutt_fighter_heavy_weapon1_s06.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 1644810116, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_hutt_heavy_weapon1_s06, "object/tangible/ship/attachment/weapon/shared_hutt_heavy_weapon1_s06.iff") object_tangible_ship_attachment_weapon_shared_hutt_heavy_weapon2_s01 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_hutt_heavy_weapon2_s01.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/hutt_fighter_heavy_weapon2_s01.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 2334787469, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_hutt_heavy_weapon2_s01, "object/tangible/ship/attachment/weapon/shared_hutt_heavy_weapon2_s01.iff") object_tangible_ship_attachment_weapon_shared_hutt_heavy_weapon2_s02 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_hutt_heavy_weapon2_s02.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/hutt_fighter_heavy_weapon2_s02.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 1346219802, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_hutt_heavy_weapon2_s02, "object/tangible/ship/attachment/weapon/shared_hutt_heavy_weapon2_s02.iff") object_tangible_ship_attachment_weapon_shared_hutt_heavy_weapon2_s03 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_hutt_heavy_weapon2_s03.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/hutt_fighter_heavy_weapon2_s03.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 422627479, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_hutt_heavy_weapon2_s03, "object/tangible/ship/attachment/weapon/shared_hutt_heavy_weapon2_s03.iff") object_tangible_ship_attachment_weapon_shared_hutt_heavy_weapon2_s04 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_hutt_heavy_weapon2_s04.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/hutt_fighter_heavy_weapon2_s04.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 3805537155, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_hutt_heavy_weapon2_s04, "object/tangible/ship/attachment/weapon/shared_hutt_heavy_weapon2_s04.iff") object_tangible_ship_attachment_weapon_shared_hutt_heavy_weapon2_s05 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_hutt_heavy_weapon2_s05.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/hutt_fighter_heavy_weapon2_s05.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 2883486734, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_hutt_heavy_weapon2_s05, "object/tangible/ship/attachment/weapon/shared_hutt_heavy_weapon2_s05.iff") object_tangible_ship_attachment_weapon_shared_hutt_heavy_weapon2_s06 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_hutt_heavy_weapon2_s06.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/hutt_fighter_heavy_weapon2_s06.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 1892232345, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_hutt_heavy_weapon2_s06, "object/tangible/ship/attachment/weapon/shared_hutt_heavy_weapon2_s06.iff") object_tangible_ship_attachment_weapon_shared_hutt_heavy_weapon3_s01 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_hutt_heavy_weapon3_s01.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/hutt_fighter_heavy_weapon3_s01.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 2032840171, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_hutt_heavy_weapon3_s01, "object/tangible/ship/attachment/weapon/shared_hutt_heavy_weapon3_s01.iff") object_tangible_ship_attachment_weapon_shared_hutt_heavy_weapon3_s02 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_hutt_heavy_weapon3_s02.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/hutt_fighter_heavy_weapon3_s02.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 2721908092, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_hutt_heavy_weapon3_s02, "object/tangible/ship/attachment/weapon/shared_hutt_heavy_weapon3_s02.iff") object_tangible_ship_attachment_weapon_shared_hutt_heavy_weapon3_s03 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_hutt_heavy_weapon3_s03.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/hutt_fighter_heavy_weapon3_s03.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 3945816817, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_hutt_heavy_weapon3_s03, "object/tangible/ship/attachment/weapon/shared_hutt_heavy_weapon3_s03.iff") object_tangible_ship_attachment_weapon_shared_hutt_heavy_weapon3_s04 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_hutt_heavy_weapon3_s04.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/hutt_fighter_heavy_weapon3_s04.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 282282469, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_hutt_heavy_weapon3_s04, "object/tangible/ship/attachment/weapon/shared_hutt_heavy_weapon3_s04.iff") object_tangible_ship_attachment_weapon_shared_hutt_heavy_weapon3_s05 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_hutt_heavy_weapon3_s05.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/hutt_fighter_heavy_weapon3_s05.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 1507733096, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_hutt_heavy_weapon3_s05, "object/tangible/ship/attachment/weapon/shared_hutt_heavy_weapon3_s05.iff") object_tangible_ship_attachment_weapon_shared_hutt_heavy_weapon3_s06 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_hutt_heavy_weapon3_s06.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/hutt_fighter_heavy_weapon3_s06.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 2194245375, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_hutt_heavy_weapon3_s06, "object/tangible/ship/attachment/weapon/shared_hutt_heavy_weapon3_s06.iff") object_tangible_ship_attachment_weapon_shared_hutt_light_weapon_s01 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_hutt_light_weapon_s01.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/hutt_fighter_light_weapon_s01.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 3452909818, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_hutt_light_weapon_s01, "object/tangible/ship/attachment/weapon/shared_hutt_light_weapon_s01.iff") object_tangible_ship_attachment_weapon_shared_hutt_light_weapon_s02 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_hutt_light_weapon_s02.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/hutt_fighter_light_weapon_s01.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 383291501, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_hutt_light_weapon_s02, "object/tangible/ship/attachment/weapon/shared_hutt_light_weapon_s02.iff") object_tangible_ship_attachment_weapon_shared_hutt_light_weapon_s03 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_hutt_light_weapon_s03.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/hutt_fighter_light_weapon_s03.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 1607858144, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_hutt_light_weapon_s03, "object/tangible/ship/attachment/weapon/shared_hutt_light_weapon_s03.iff") object_tangible_ship_attachment_weapon_shared_hutt_light_weapon_s04 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_hutt_light_weapon_s04.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/hutt_fighter_light_weapon_s04.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 2755058932, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_hutt_light_weapon_s04, "object/tangible/ship/attachment/weapon/shared_hutt_light_weapon_s04.iff") object_tangible_ship_attachment_weapon_shared_hutt_light_weapon_s05 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_hutt_light_weapon_s05.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/hutt_fighter_light_weapon_s05.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 3980114809, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_hutt_light_weapon_s05, "object/tangible/ship/attachment/weapon/shared_hutt_light_weapon_s05.iff") object_tangible_ship_attachment_weapon_shared_hutt_light_weapon_s06 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_hutt_light_weapon_s06.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/hutt_fighter_light_weapon_s06.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 908858350, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_hutt_light_weapon_s06, "object/tangible/ship/attachment/weapon/shared_hutt_light_weapon_s06.iff") object_tangible_ship_attachment_weapon_shared_hutt_medium_weapon1_s01 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_hutt_medium_weapon1_s01.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/hutt_fighter_medium_weapon1_s01.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 3572528314, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_hutt_medium_weapon1_s01, "object/tangible/ship/attachment/weapon/shared_hutt_medium_weapon1_s01.iff") object_tangible_ship_attachment_weapon_shared_hutt_medium_weapon1_s02 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_hutt_medium_weapon1_s02.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/hutt_fighter_medium_weapon1_s02.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 266853421, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_hutt_medium_weapon1_s02, "object/tangible/ship/attachment/weapon/shared_hutt_medium_weapon1_s02.iff") object_tangible_ship_attachment_weapon_shared_hutt_medium_weapon1_s03 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_hutt_medium_weapon1_s03.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/hutt_fighter_medium_weapon1_s03.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 1189788576, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_hutt_medium_weapon1_s03, "object/tangible/ship/attachment/weapon/shared_hutt_medium_weapon1_s03.iff") object_tangible_ship_attachment_weapon_shared_hutt_medium_weapon1_s04 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_hutt_medium_weapon1_s04.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/hutt_fighter_medium_weapon1_s04.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 3171520692, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_hutt_medium_weapon1_s04, "object/tangible/ship/attachment/weapon/shared_hutt_medium_weapon1_s04.iff") object_tangible_ship_attachment_weapon_shared_hutt_medium_weapon1_s05 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_hutt_medium_weapon1_s05.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/hutt_fighter_medium_weapon1_s05.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 4093966137, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_hutt_medium_weapon1_s05, "object/tangible/ship/attachment/weapon/shared_hutt_medium_weapon1_s05.iff") object_tangible_ship_attachment_weapon_shared_hutt_medium_weapon1_s06 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_hutt_medium_weapon1_s06.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/hutt_fighter_medium_weapon1_s06.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 789798830, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_hutt_medium_weapon1_s06, "object/tangible/ship/attachment/weapon/shared_hutt_medium_weapon1_s06.iff") object_tangible_ship_attachment_weapon_shared_hutt_medium_weapon2_s01 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_hutt_medium_weapon2_s01.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/hutt_fighter_medium_weapon2_s01.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 3325073319, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_hutt_medium_weapon2_s01, "object/tangible/ship/attachment/weapon/shared_hutt_medium_weapon2_s01.iff") object_tangible_ship_attachment_weapon_shared_hutt_medium_weapon2_s02 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_hutt_medium_weapon2_s02.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/hutt_fighter_medium_weapon2_s02.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 489111344, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_hutt_medium_weapon2_s02, "object/tangible/ship/attachment/weapon/shared_hutt_medium_weapon2_s02.iff") object_tangible_ship_attachment_weapon_shared_hutt_medium_weapon2_s03 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_hutt_medium_weapon2_s03.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/hutt_fighter_medium_weapon2_s03.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 1412061373, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_hutt_medium_weapon2_s03, "object/tangible/ship/attachment/weapon/shared_hutt_medium_weapon2_s03.iff") object_tangible_ship_attachment_weapon_shared_hutt_medium_weapon2_s04 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_hutt_medium_weapon2_s04.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/hutt_fighter_medium_weapon2_s04.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 2949215145, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_hutt_medium_weapon2_s04, "object/tangible/ship/attachment/weapon/shared_hutt_medium_weapon2_s04.iff") object_tangible_ship_attachment_weapon_shared_hutt_medium_weapon2_s05 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_hutt_medium_weapon2_s05.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/hutt_fighter_medium_weapon2_s05.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 3871609892, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_hutt_medium_weapon2_s05, "object/tangible/ship/attachment/weapon/shared_hutt_medium_weapon2_s05.iff") object_tangible_ship_attachment_weapon_shared_hutt_medium_weapon2_s06 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_hutt_medium_weapon2_s06.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/hutt_fighter_medium_weapon2_s06.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 1037286579, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_hutt_medium_weapon2_s06, "object/tangible/ship/attachment/weapon/shared_hutt_medium_weapon2_s06.iff") object_tangible_ship_attachment_weapon_shared_imperial_gunboat_turret_ball = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_imperial_gunboat_turret_ball.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/imperial_gunboat_turret_ball.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 1577369987, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_imperial_gunboat_turret_ball, "object/tangible/ship/attachment/weapon/shared_imperial_gunboat_turret_ball.iff") object_tangible_ship_attachment_weapon_shared_imperial_gunboat_turretbase_nose = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_imperial_gunboat_turretbase_nose.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/imperial_gunboat_turretbase_nose.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "clientData/ship/component/imperial_gunboat_turretbase_nose.cdf", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 3326093060, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_imperial_gunboat_turretbase_nose, "object/tangible/ship/attachment/weapon/shared_imperial_gunboat_turretbase_nose.iff") object_tangible_ship_attachment_weapon_shared_imperial_gunboat_turretbase_wing = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_imperial_gunboat_turretbase_wing.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/imperial_gunboat_turretbase_wing.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "clientData/ship/component/imperial_gunboat_turretbase_wing.cdf", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 3373578911, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_imperial_gunboat_turretbase_wing, "object/tangible/ship/attachment/weapon/shared_imperial_gunboat_turretbase_wing.iff") object_tangible_ship_attachment_weapon_shared_kse_firespray_weapon1_s01 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_kse_firespray_weapon1_s01.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/kse_firespray_weapon1_s01.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 1950093783, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_kse_firespray_weapon1_s01, "object/tangible/ship/attachment/weapon/shared_kse_firespray_weapon1_s01.iff") object_tangible_ship_attachment_weapon_shared_kse_firespray_weapon1_s02 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_kse_firespray_weapon1_s02.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/kse_firespray_weapon1_s02.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 2938878272, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_kse_firespray_weapon1_s02, "object/tangible/ship/attachment/weapon/shared_kse_firespray_weapon1_s02.iff") object_tangible_ship_attachment_weapon_shared_kse_firespray_weapon1_s03 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_kse_firespray_weapon1_s03.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/kse_firespray_weapon1_s03.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 3861307085, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_kse_firespray_weapon1_s03, "object/tangible/ship/attachment/weapon/shared_kse_firespray_weapon1_s03.iff") object_tangible_ship_attachment_weapon_shared_kse_firespray_weapon1_s04 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_kse_firespray_weapon1_s04.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/kse_firespray_weapon1_s04.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 499512793, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_kse_firespray_weapon1_s04, "object/tangible/ship/attachment/weapon/shared_kse_firespray_weapon1_s04.iff") object_tangible_ship_attachment_weapon_shared_kse_firespray_weapon1_s05 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_kse_firespray_weapon1_s05.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/kse_firespray_weapon1_s05.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 1422430804, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_kse_firespray_weapon1_s05, "object/tangible/ship/attachment/weapon/shared_kse_firespray_weapon1_s05.iff") object_tangible_ship_attachment_weapon_shared_kse_firespray_weapon1_s06 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_kse_firespray_weapon1_s06.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/kse_firespray_weapon1_s06.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 2413771459, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_kse_firespray_weapon1_s06, "object/tangible/ship/attachment/weapon/shared_kse_firespray_weapon1_s06.iff") object_tangible_ship_attachment_weapon_shared_kse_firespray_weapon2_s01 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_kse_firespray_weapon2_s01.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/kse_firespray_weapon2_s01.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 1727853258, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_kse_firespray_weapon2_s01, "object/tangible/ship/attachment/weapon/shared_kse_firespray_weapon2_s01.iff") object_tangible_ship_attachment_weapon_shared_kse_firespray_weapon2_s02 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_kse_firespray_weapon2_s02.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/kse_firespray_weapon2_s02.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 3186317917, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_kse_firespray_weapon2_s02, "object/tangible/ship/attachment/weapon/shared_kse_firespray_weapon2_s02.iff") object_tangible_ship_attachment_weapon_shared_kse_firespray_weapon2_s03 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_kse_firespray_weapon2_s03.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/kse_firespray_weapon2_s03.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 4108729808, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_kse_firespray_weapon2_s03, "object/tangible/ship/attachment/weapon/shared_kse_firespray_weapon2_s03.iff") object_tangible_ship_attachment_weapon_shared_kse_firespray_weapon2_s04 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_kse_firespray_weapon2_s04.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/kse_firespray_weapon2_s04.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 251991748, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_kse_firespray_weapon2_s04, "object/tangible/ship/attachment/weapon/shared_kse_firespray_weapon2_s04.iff") object_tangible_ship_attachment_weapon_shared_kse_firespray_weapon2_s05 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_kse_firespray_weapon2_s05.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/kse_firespray_weapon2_s05.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 1174958409, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_kse_firespray_weapon2_s05, "object/tangible/ship/attachment/weapon/shared_kse_firespray_weapon2_s05.iff") object_tangible_ship_attachment_weapon_shared_kse_firespray_weapon2_s06 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_kse_firespray_weapon2_s06.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/kse_firespray_weapon2_s06.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 2636110302, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_kse_firespray_weapon2_s06, "object/tangible/ship/attachment/weapon/shared_kse_firespray_weapon2_s06.iff") object_tangible_ship_attachment_weapon_shared_lambda_turret = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_lambda_turret.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/lambda_turret.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 3734921862, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_lambda_turret, "object/tangible/ship/attachment/weapon/shared_lambda_turret.iff") object_tangible_ship_attachment_weapon_shared_lambda_weapon1 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_lambda_weapon1.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/lambda_weapon1.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 1662183130, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_lambda_weapon1, "object/tangible/ship/attachment/weapon/shared_lambda_weapon1.iff") object_tangible_ship_attachment_weapon_shared_lambda_weapon_body = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_lambda_weapon_body.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/lambda_weapon_body.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 3035694359, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_lambda_weapon_body, "object/tangible/ship/attachment/weapon/shared_lambda_weapon_body.iff") object_tangible_ship_attachment_weapon_shared_merchant_cruiser_medium_turret_base_s01 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_merchant_cruiser_medium_turret_base_s01.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/merchant_cruiser_medium_turretbase_s01.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "clientdata/ship/component/merchant_cruiser_medium_turretbase_s01.cdf", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 3760357625, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_merchant_cruiser_medium_turret_base_s01, "object/tangible/ship/attachment/weapon/shared_merchant_cruiser_medium_turret_base_s01.iff") object_tangible_ship_attachment_weapon_shared_rebel_gunboat_turretbase_s01 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_rebel_gunboat_turretbase_s01.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/rebel_gunboat_turretbase_s01.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "clientData/ship/component/rebel_gunboat_turretbase_s01.cdf", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 570224584, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_rebel_gunboat_turretbase_s01, "object/tangible/ship/attachment/weapon/shared_rebel_gunboat_turretbase_s01.iff") object_tangible_ship_attachment_weapon_shared_smuggler_warlord_ship_turret_ball = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_smuggler_warlord_ship_turret_ball.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/smuggler_warlord_ship_turret_ball.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 355284595, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_smuggler_warlord_ship_turret_ball, "object/tangible/ship/attachment/weapon/shared_smuggler_warlord_ship_turret_ball.iff") object_tangible_ship_attachment_weapon_shared_smuggler_warlord_ship_turret_nose = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_smuggler_warlord_ship_turret_nose.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/smuggler_warlord_ship_turretbase_nose.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "clientData/ship/component/client_shared_smuggler_warlord_ship_turret_nose.cdf", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 1506898161, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_smuggler_warlord_ship_turret_nose, "object/tangible/ship/attachment/weapon/shared_smuggler_warlord_ship_turret_nose.iff") object_tangible_ship_attachment_weapon_shared_smuggler_warlord_ship_turret_s01 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_smuggler_warlord_ship_turret_s01.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/smuggler_warlord_ship_turretbase_s01.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "clientData/ship/component/client_shared_smuggler_warlord_ship_turret_s01.cdf", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 915217099, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_smuggler_warlord_ship_turret_s01, "object/tangible/ship/attachment/weapon/shared_smuggler_warlord_ship_turret_s01.iff") object_tangible_ship_attachment_weapon_shared_smuggler_warlord_ship_turret_s02 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_smuggler_warlord_ship_turret_s02.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/smuggler_warlord_ship_turretbase_s02.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "clientData/ship/component/client_shared_smuggler_warlord_ship_turret_s02.cdf", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 3986338396, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_smuggler_warlord_ship_turret_s02, "object/tangible/ship/attachment/weapon/shared_smuggler_warlord_ship_turret_s02.iff") object_tangible_ship_attachment_weapon_shared_spacestation_turret_base_s01 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_spacestation_turret_base_s01.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/spacestation_turret_base_s01.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "clientdata/ship/component/spacestation_turret_base_s01.cdf", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 2674417340, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_spacestation_turret_base_s01, "object/tangible/ship/attachment/weapon/shared_spacestation_turret_base_s01.iff") object_tangible_ship_attachment_weapon_shared_spacestation_turret_base_s02 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_spacestation_turret_base_s02.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/spacestation_turret_base_s02.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "clientdata/ship/component/spacestation_turret_base_s02.cdf", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 1149236779, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_spacestation_turret_base_s02, "object/tangible/ship/attachment/weapon/shared_spacestation_turret_base_s02.iff") object_tangible_ship_attachment_weapon_shared_star_destroyer_mini_turret_base = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_star_destroyer_mini_turret_base.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/star_destroyer_mini_turret_base.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "clientdata/ship/component/wpn_star_destroyer_mini_turret_base.cdf", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 4094834880, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_star_destroyer_mini_turret_base, "object/tangible/ship/attachment/weapon/shared_star_destroyer_mini_turret_base.iff") object_tangible_ship_attachment_weapon_shared_star_destroyer_turret_dome_base = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_star_destroyer_turret_dome_base.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/star_destroyer_turret_dome_base.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "clientdata/ship/component/wpn_star_destroyer_turret_dome.cdf", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 2546418414, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_star_destroyer_turret_dome_base, "object/tangible/ship/attachment/weapon/shared_star_destroyer_turret_dome_base.iff") object_tangible_ship_attachment_weapon_shared_star_destroyer_turret_dome_body = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_star_destroyer_turret_dome_body.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/star_destroyer_turret_dome_body.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 1452946959, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_star_destroyer_turret_dome_body, "object/tangible/ship/attachment/weapon/shared_star_destroyer_turret_dome_body.iff") object_tangible_ship_attachment_weapon_shared_star_destroyer_turret_med_base = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_star_destroyer_turret_med_base.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/star_destroyer_turret_med_base.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "clientdata/ship/component/wpn_star_destroyer_turret_med.cdf", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 3194550652, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_star_destroyer_turret_med_base, "object/tangible/ship/attachment/weapon/shared_star_destroyer_turret_med_base.iff") object_tangible_ship_attachment_weapon_shared_star_destroyer_turret_med_gun = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_star_destroyer_turret_med_gun.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/star_destroyer_turret_med_gun.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 1688925698, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_star_destroyer_turret_med_gun, "object/tangible/ship/attachment/weapon/shared_star_destroyer_turret_med_gun.iff") object_tangible_ship_attachment_weapon_shared_star_destroyer_turret_square_base = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_star_destroyer_turret_square_base.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/star_destroyer_turret_square_base.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "clientData/ship/component/wpn_star_destroyer_turret_square.cdf", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 1727578906, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_star_destroyer_turret_square_base, "object/tangible/ship/attachment/weapon/shared_star_destroyer_turret_square_base.iff") object_tangible_ship_attachment_weapon_shared_star_destroyer_turret_square_body = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_star_destroyer_turret_square_body.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/star_destroyer_turret_square_body.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 2812655611, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_star_destroyer_turret_square_body, "object/tangible/ship/attachment/weapon/shared_star_destroyer_turret_square_body.iff") object_tangible_ship_attachment_weapon_shared_xwing_weapon1_neg_s01_0 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_xwing_weapon1_neg_s01_0.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/xwing_weapon1_neg_s01.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "clientdata/ship/component/wpn_xwing_gun_neg_s01_0.cdf", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 3105944395, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_xwing_weapon1_neg_s01_0, "object/tangible/ship/attachment/weapon/shared_xwing_weapon1_neg_s01_0.iff") object_tangible_ship_attachment_weapon_shared_xwing_weapon1_neg_s01_1 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_xwing_weapon1_neg_s01_1.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/xwing_weapon1_neg_s01.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "clientdata/ship/component/wpn_xwing_gun_neg_s01_1.cdf", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 4029519046, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_xwing_weapon1_neg_s01_1, "object/tangible/ship/attachment/weapon/shared_xwing_weapon1_neg_s01_1.iff") object_tangible_ship_attachment_weapon_shared_xwing_weapon1_neg_s02_0 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_xwing_weapon1_neg_s02_0.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/xwing_weapon1_neg_s02.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "clientdata/ship/component/wpn_xwing_gun_neg_s01_0.cdf", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 1759071096, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_xwing_weapon1_neg_s02_0, "object/tangible/ship/attachment/weapon/shared_xwing_weapon1_neg_s02_0.iff") object_tangible_ship_attachment_weapon_shared_xwing_weapon1_neg_s02_1 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_xwing_weapon1_neg_s02_1.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/xwing_weapon1_neg_s02.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "clientdata/ship/component/wpn_xwing_gun_neg_s01_1.cdf", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 567553269, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_xwing_weapon1_neg_s02_1, "object/tangible/ship/attachment/weapon/shared_xwing_weapon1_neg_s02_1.iff") object_tangible_ship_attachment_weapon_shared_xwing_weapon1_neg_s03_0 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_xwing_weapon1_neg_s03_0.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/xwing_weapon1_neg_s03.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "clientdata/ship/component/wpn_xwing_gun_neg_s01_0.cdf", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 663626601, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_xwing_weapon1_neg_s03_0, "object/tangible/ship/attachment/weapon/shared_xwing_weapon1_neg_s03_0.iff") object_tangible_ship_attachment_weapon_shared_xwing_weapon1_neg_s03_1 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_xwing_weapon1_neg_s03_1.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/xwing_weapon1_neg_s03.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "clientdata/ship/component/wpn_xwing_gun_neg_s01_1.cdf", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 1854096612, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_xwing_weapon1_neg_s03_1, "object/tangible/ship/attachment/weapon/shared_xwing_weapon1_neg_s03_1.iff") object_tangible_ship_attachment_weapon_shared_xwing_weapon1_neg_s04_0 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_xwing_weapon1_neg_s04_0.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/xwing_weapon1_neg_s04.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "clientdata/ship/component/wpn_xwing_gun_neg_s01_0.cdf", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 3488294569, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_xwing_weapon1_neg_s04_0, "object/tangible/ship/attachment/weapon/shared_xwing_weapon1_neg_s04_0.iff") object_tangible_ship_attachment_weapon_shared_xwing_weapon1_neg_s04_1 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_xwing_weapon1_neg_s04_1.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/xwing_weapon1_neg_s04.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "clientdata/ship/component/wpn_xwing_gun_neg_s01_1.cdf", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 2263236900, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_xwing_weapon1_neg_s04_1, "object/tangible/ship/attachment/weapon/shared_xwing_weapon1_neg_s04_1.iff") object_tangible_ship_attachment_weapon_shared_xwing_weapon1_neg_s05_0 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_xwing_weapon1_neg_s05_0.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/xwing_weapon1_neg_s05.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "clientdata/ship/component/wpn_xwing_gun_neg_s01_0.cdf", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 2159824568, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_xwing_weapon1_neg_s05_0, "object/tangible/ship/attachment/weapon/shared_xwing_weapon1_neg_s05_0.iff") object_tangible_ship_attachment_weapon_shared_xwing_weapon1_neg_s05_1 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_xwing_weapon1_neg_s05_1.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/xwing_weapon1_neg_s05.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "clientdata/ship/component/wpn_xwing_gun_neg_s01_1.cdf", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 3383830837, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_xwing_weapon1_neg_s05_1, "object/tangible/ship/attachment/weapon/shared_xwing_weapon1_neg_s05_1.iff") object_tangible_ship_attachment_weapon_shared_xwing_weapon1_neg_s06_0 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_xwing_weapon1_neg_s06_0.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/xwing_weapon1_neg_s06.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "clientdata/ship/component/wpn_xwing_gun_neg_s01_0.cdf", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 1363539595, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_xwing_weapon1_neg_s06_0, "object/tangible/ship/attachment/weapon/shared_xwing_weapon1_neg_s06_0.iff") object_tangible_ship_attachment_weapon_shared_xwing_weapon1_neg_s06_1 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_xwing_weapon1_neg_s06_1.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/xwing_weapon1_neg_s06.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "clientdata/ship/component/wpn_xwing_gun_neg_s01_1.cdf", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 407408902, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_xwing_weapon1_neg_s06_1, "object/tangible/ship/attachment/weapon/shared_xwing_weapon1_neg_s06_1.iff") object_tangible_ship_attachment_weapon_shared_xwing_weapon1_pos_s01_0 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_xwing_weapon1_pos_s01_0.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/xwing_weapon1_pos_s01.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "clientdata/ship/component/wpn_xwing_gun_pos_s01_0.cdf", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 1475950668, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_xwing_weapon1_pos_s01_0, "object/tangible/ship/attachment/weapon/shared_xwing_weapon1_pos_s01_0.iff") object_tangible_ship_attachment_weapon_shared_xwing_weapon1_pos_s01_1 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_xwing_weapon1_pos_s01_1.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/xwing_weapon1_pos_s01.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "clientdata/ship/component/wpn_xwing_gun_pos_s01_1.cdf", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 519331777, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_xwing_weapon1_pos_s01_1, "object/tangible/ship/attachment/weapon/shared_xwing_weapon1_pos_s01_1.iff") object_tangible_ship_attachment_weapon_shared_xwing_weapon1_pos_s02_0 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_xwing_weapon1_pos_s02_0.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/xwing_weapon1_pos_s02.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "clientdata/ship/component/wpn_xwing_gun_pos_s01_0.cdf", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 2248179839, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_xwing_weapon1_pos_s02_0, "object/tangible/ship/attachment/weapon/shared_xwing_weapon1_pos_s02_0.iff") object_tangible_ship_attachment_weapon_shared_xwing_weapon1_pos_s02_1 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_xwing_weapon1_pos_s02_1.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/xwing_weapon1_pos_s02.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "clientdata/ship/component/wpn_xwing_gun_pos_s01_1.cdf", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 3473795058, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_xwing_weapon1_pos_s02_1, "object/tangible/ship/attachment/weapon/shared_xwing_weapon1_pos_s02_1.iff") object_tangible_ship_attachment_weapon_shared_xwing_weapon1_pos_s03_0 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_xwing_weapon1_pos_s03_0.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/xwing_weapon1_pos_s03.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "clientdata/ship/component/wpn_xwing_gun_pos_s01_0.cdf", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 3377981550, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_xwing_weapon1_pos_s03_0, "object/tangible/ship/attachment/weapon/shared_xwing_weapon1_pos_s03_0.iff") object_tangible_ship_attachment_weapon_shared_xwing_weapon1_pos_s03_1 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_xwing_weapon1_pos_s03_1.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/xwing_weapon1_pos_s03.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "clientdata/ship/component/wpn_xwing_gun_pos_s01_1.cdf", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 2153418723, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_xwing_weapon1_pos_s03_1, "object/tangible/ship/attachment/weapon/shared_xwing_weapon1_pos_s03_1.iff") object_tangible_ship_attachment_weapon_shared_xwing_weapon1_pos_s04_0 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_xwing_weapon1_pos_s04_0.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/xwing_weapon1_pos_s04.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "clientdata/ship/component/wpn_xwing_gun_pos_s01_0.cdf", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 556985774, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_xwing_weapon1_pos_s04_0, "object/tangible/ship/attachment/weapon/shared_xwing_weapon1_pos_s04_0.iff") object_tangible_ship_attachment_weapon_shared_xwing_weapon1_pos_s04_1 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_xwing_weapon1_pos_s04_1.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/xwing_weapon1_pos_s04.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "clientdata/ship/component/wpn_xwing_gun_pos_s01_1.cdf", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 1748994595, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_xwing_weapon1_pos_s04_1, "object/tangible/ship/attachment/weapon/shared_xwing_weapon1_pos_s04_1.iff") object_tangible_ship_attachment_weapon_shared_xwing_weapon1_pos_s05_0 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_xwing_weapon1_pos_s05_0.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/xwing_weapon1_pos_s05.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "clientdata/ship/component/wpn_xwing_gun_pos_s01_0.cdf", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 1852147135, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_xwing_weapon1_pos_s05_0, "object/tangible/ship/attachment/weapon/shared_xwing_weapon1_pos_s05_0.iff") object_tangible_ship_attachment_weapon_shared_xwing_weapon1_pos_s05_1 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_xwing_weapon1_pos_s05_1.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/xwing_weapon1_pos_s05.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "clientdata/ship/component/wpn_xwing_gun_pos_s01_1.cdf", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 661185074, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_xwing_weapon1_pos_s05_1, "object/tangible/ship/attachment/weapon/shared_xwing_weapon1_pos_s05_1.iff") object_tangible_ship_attachment_weapon_shared_xwing_weapon1_pos_s06_0 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_xwing_weapon1_pos_s06_0.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/xwing_weapon1_pos_s06.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "clientdata/ship/component/wpn_xwing_gun_pos_s01_0.cdf", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 3214687628, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_xwing_weapon1_pos_s06_0, "object/tangible/ship/attachment/weapon/shared_xwing_weapon1_pos_s06_0.iff") object_tangible_ship_attachment_weapon_shared_xwing_weapon1_pos_s06_1 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_xwing_weapon1_pos_s06_1.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/xwing_weapon1_pos_s06.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "clientdata/ship/component/wpn_xwing_gun_pos_s01_1.cdf", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 4136720897, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_xwing_weapon1_pos_s06_1, "object/tangible/ship/attachment/weapon/shared_xwing_weapon1_pos_s06_1.iff") object_tangible_ship_attachment_weapon_shared_xwing_weapon2_neg_s01_0 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_xwing_weapon2_neg_s01_0.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/xwing_weapon2_neg_s01.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 3673279850, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_xwing_weapon2_neg_s01_0, "object/tangible/ship/attachment/weapon/shared_xwing_weapon2_neg_s01_0.iff") object_tangible_ship_attachment_weapon_shared_xwing_weapon2_neg_s01_1 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_xwing_weapon2_neg_s01_1.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/xwing_weapon2_neg_s01.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 2482809575, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_xwing_weapon2_neg_s01_1, "object/tangible/ship/attachment/weapon/shared_xwing_weapon2_neg_s01_1.iff") object_tangible_ship_attachment_weapon_shared_xwing_weapon2_neg_s02_0 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_xwing_weapon2_neg_s02_0.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/xwing_weapon2_neg_s02.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 185103705, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_xwing_weapon2_neg_s02_0, "object/tangible/ship/attachment/weapon/shared_xwing_weapon2_neg_s02_0.iff") object_tangible_ship_attachment_weapon_shared_xwing_weapon2_neg_s02_1 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_xwing_weapon2_neg_s02_1.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/xwing_weapon2_neg_s02.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 1107628756, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_xwing_weapon2_neg_s02_1, "object/tangible/ship/attachment/weapon/shared_xwing_weapon2_neg_s02_1.iff") object_tangible_ship_attachment_weapon_shared_xwing_weapon2_neg_s03_0 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_xwing_weapon2_neg_s03_0.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/xwing_weapon2_neg_s03.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 1147084104, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_xwing_weapon2_neg_s03_0, "object/tangible/ship/attachment/weapon/shared_xwing_weapon2_neg_s03_0.iff") object_tangible_ship_attachment_weapon_shared_xwing_weapon2_neg_s03_1 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_xwing_weapon2_neg_s03_1.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/xwing_weapon2_neg_s03.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 223509189, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_xwing_weapon2_neg_s03_1, "object/tangible/ship/attachment/weapon/shared_xwing_weapon2_neg_s03_1.iff") object_tangible_ship_attachment_weapon_shared_xwing_weapon2_neg_s04_0 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_xwing_weapon2_neg_s04_0.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/xwing_weapon2_neg_s04.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 2889488520, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_xwing_weapon2_neg_s04_0, "object/tangible/ship/attachment/weapon/shared_xwing_weapon2_neg_s04_0.iff") object_tangible_ship_attachment_weapon_shared_xwing_weapon2_neg_s04_1 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_xwing_weapon2_neg_s04_1.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/xwing_weapon2_neg_s04.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 3845619461, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_xwing_weapon2_neg_s04_1, "object/tangible/ship/attachment/weapon/shared_xwing_weapon2_neg_s04_1.iff") object_tangible_ship_attachment_weapon_shared_xwing_weapon2_neg_s05_0 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_xwing_weapon2_neg_s05_0.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/xwing_weapon2_neg_s05.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 3815600281, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_xwing_weapon2_neg_s05_0, "object/tangible/ship/attachment/weapon/shared_xwing_weapon2_neg_s05_0.iff") object_tangible_ship_attachment_weapon_shared_xwing_weapon2_neg_s05_1 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_xwing_weapon2_neg_s05_1.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/xwing_weapon2_neg_s05.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 2858424084, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_xwing_weapon2_neg_s05_1, "object/tangible/ship/attachment/weapon/shared_xwing_weapon2_neg_s05_1.iff") object_tangible_ship_attachment_weapon_shared_xwing_weapon2_neg_s06_0 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_xwing_weapon2_neg_s06_0.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/xwing_weapon2_pos_s06.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "clientdata/ship/component/wpn_xwing_gun_pos_s01_0.cdf", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 848611498, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_xwing_weapon2_neg_s06_0, "object/tangible/ship/attachment/weapon/shared_xwing_weapon2_neg_s06_0.iff") object_tangible_ship_attachment_weapon_shared_xwing_weapon2_neg_s06_1 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_xwing_weapon2_neg_s06_1.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/xwing_weapon2_neg_s06.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 2073669415, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_xwing_weapon2_neg_s06_1, "object/tangible/ship/attachment/weapon/shared_xwing_weapon2_neg_s06_1.iff") object_tangible_ship_attachment_weapon_shared_xwing_weapon2_pos_s01_0 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_xwing_weapon2_pos_s01_0.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/xwing_weapon2_pos_s01.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 875038317, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_xwing_weapon2_pos_s01_0, "object/tangible/ship/attachment/weapon/shared_xwing_weapon2_pos_s01_0.iff") object_tangible_ship_attachment_weapon_shared_xwing_weapon2_pos_s01_1 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_xwing_weapon2_pos_s01_1.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/xwing_weapon2_pos_s01.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 2099601888, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_xwing_weapon2_pos_s01_1, "object/tangible/ship/attachment/weapon/shared_xwing_weapon2_pos_s01_1.iff") object_tangible_ship_attachment_weapon_shared_xwing_weapon2_pos_s02_0 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_xwing_weapon2_pos_s02_0.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/xwing_weapon2_pos_s02.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 3855728222, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_xwing_weapon2_pos_s02_0, "object/tangible/ship/attachment/weapon/shared_xwing_weapon2_pos_s02_0.iff") object_tangible_ship_attachment_weapon_shared_xwing_weapon2_pos_s02_1 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_xwing_weapon2_pos_s02_1.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/xwing_weapon2_pos_s02.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 2900154835, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_xwing_weapon2_pos_s02_1, "object/tangible/ship/attachment/weapon/shared_xwing_weapon2_pos_s02_1.iff") object_tangible_ship_attachment_weapon_shared_xwing_weapon2_pos_s03_0 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_xwing_weapon2_pos_s03_0.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/xwing_weapon2_pos_s03.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 2860963407, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_xwing_weapon2_pos_s03_0, "object/tangible/ship/attachment/weapon/shared_xwing_weapon2_pos_s03_0.iff") object_tangible_ship_attachment_weapon_shared_xwing_weapon2_pos_s03_1 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_xwing_weapon2_pos_s03_1.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/xwing_weapon2_pos_s03.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 3817583042, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_xwing_weapon2_pos_s03_1, "object/tangible/ship/attachment/weapon/shared_xwing_weapon2_pos_s03_1.iff") object_tangible_ship_attachment_weapon_shared_xwing_weapon2_pos_s04_0 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_xwing_weapon2_pos_s04_0.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/xwing_weapon2_pos_s04.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 1122227087, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_xwing_weapon2_pos_s04_0, "object/tangible/ship/attachment/weapon/shared_xwing_weapon2_pos_s04_0.iff") object_tangible_ship_attachment_weapon_shared_xwing_weapon2_pos_s04_1 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_xwing_weapon2_pos_s04_1.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/xwing_weapon2_pos_s04.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 200193026, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_xwing_weapon2_pos_s04_1, "object/tangible/ship/attachment/weapon/shared_xwing_weapon2_pos_s04_1.iff") object_tangible_ship_attachment_weapon_shared_xwing_weapon2_pos_s05_0 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_xwing_weapon2_pos_s05_0.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/xwing_weapon2_pos_s05.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 229948318, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_xwing_weapon2_pos_s05_0, "object/tangible/ship/attachment/weapon/shared_xwing_weapon2_pos_s05_0.iff") object_tangible_ship_attachment_weapon_shared_xwing_weapon2_pos_s05_1 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_xwing_weapon2_pos_s05_1.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/xwing_weapon2_pos_s05.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 1153031187, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_xwing_weapon2_pos_s05_1, "object/tangible/ship/attachment/weapon/shared_xwing_weapon2_pos_s05_1.iff") object_tangible_ship_attachment_weapon_shared_xwing_weapon2_pos_s06_0 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_xwing_weapon2_pos_s06_0.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/xwing_weapon2_pos_s06.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 3696034733, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_xwing_weapon2_pos_s06_0, "object/tangible/ship/attachment/weapon/shared_xwing_weapon2_pos_s06_0.iff") object_tangible_ship_attachment_weapon_shared_xwing_weapon2_pos_s06_1 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_xwing_weapon2_pos_s06_1.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/xwing_weapon2_pos_s06.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 2504025120, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_xwing_weapon2_pos_s06_1, "object/tangible/ship/attachment/weapon/shared_xwing_weapon2_pos_s06_1.iff") object_tangible_ship_attachment_weapon_shared_xwing_weapon_neg_s01_0 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_xwing_weapon_neg_s01_0.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/xwing_weapon_neg_s01.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "clientdata/ship/component/wpn_xwing_gun_neg_s01_0.cdf", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 3659818969, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_xwing_weapon_neg_s01_0, "object/tangible/ship/attachment/weapon/shared_xwing_weapon_neg_s01_0.iff") object_tangible_ship_attachment_weapon_shared_xwing_weapon_neg_s01_1 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_xwing_weapon_neg_s01_1.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/xwing_weapon_neg_s01.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "clientdata/ship/component/wpn_xwing_gun_neg_s01_1.cdf", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 2468937812, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_xwing_weapon_neg_s01_1, "object/tangible/ship/attachment/weapon/shared_xwing_weapon_neg_s01_1.iff") object_tangible_ship_attachment_weapon_shared_xwing_weapon_neg_s02_0 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_xwing_weapon_neg_s02_0.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/xwing_weapon_neg_s02.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "clientdata/ship/component/wpn_xwing_gun_neg_s02_0.cdf", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 199090154, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_xwing_weapon_neg_s02_0, "object/tangible/ship/attachment/weapon/shared_xwing_weapon_neg_s02_0.iff") object_tangible_ship_attachment_weapon_shared_xwing_weapon_neg_s02_1 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_xwing_weapon_neg_s02_1.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/xwing_weapon_neg_s02.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "clientdata/ship/component/wpn_xwing_gun_neg_s02_1.cdf", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 1120974951, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_xwing_weapon_neg_s02_1, "object/tangible/ship/attachment/weapon/shared_xwing_weapon_neg_s02_1.iff") object_tangible_ship_attachment_weapon_shared_xwing_weapon_pos_s01_0 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_xwing_weapon_pos_s01_0.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/xwing_weapon_pos_s01.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "clientdata/ship/component/wpn_xwing_gun_pos_s01_0.cdf", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 889040094, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_xwing_weapon_pos_s01_0, "object/tangible/ship/attachment/weapon/shared_xwing_weapon_pos_s01_0.iff") object_tangible_ship_attachment_weapon_shared_xwing_weapon_pos_s01_1 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_xwing_weapon_pos_s01_1.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/xwing_weapon_pos_s01.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "clientdata/ship/component/wpn_xwing_gun_pos_s01_1.cdf", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 2112932691, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_xwing_weapon_pos_s01_1, "object/tangible/ship/attachment/weapon/shared_xwing_weapon_pos_s01_1.iff") object_tangible_ship_attachment_weapon_shared_xwing_weapon_pos_s02_0 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_xwing_weapon_pos_s02_0.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/xwing_weapon_pos_s02.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "clientdata/ship/component/wpn_xwing_gun_pos_s02_0.cdf", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 3842249965, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_xwing_weapon_pos_s02_0, "object/tangible/ship/attachment/weapon/shared_xwing_weapon_pos_s02_0.iff") object_tangible_ship_attachment_weapon_shared_xwing_weapon_pos_s02_1 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_xwing_weapon_pos_s02_1.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/xwing_weapon_pos_s02.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "clientdata/ship/component/wpn_xwing_gun_pos_s02_1.cdf", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 2886300512, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_xwing_weapon_pos_s02_1, "object/tangible/ship/attachment/weapon/shared_xwing_weapon_pos_s02_1.iff") object_tangible_ship_attachment_weapon_shared_ykl37r_turret_barrel_s01 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_ykl37r_turret_barrel_s01.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/ykl37r_turret_barrel_s01.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 4090999089, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_ykl37r_turret_barrel_s01, "object/tangible/ship/attachment/weapon/shared_ykl37r_turret_barrel_s01.iff") object_tangible_ship_attachment_weapon_shared_ykl37r_turret_barrel_s02 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_ykl37r_turret_barrel_s02.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/ykl37r_turret_barrel_s02.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 683678118, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_ykl37r_turret_barrel_s02, "object/tangible/ship/attachment/weapon/shared_ykl37r_turret_barrel_s02.iff") object_tangible_ship_attachment_weapon_shared_ykl37r_turret_base = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_ykl37r_turret_base.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/ykl37r_turret_base.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "clientdata/ship/component/ykl37r_turret_base.cdf", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 1208980716, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_ykl37r_turret_base, "object/tangible/ship/attachment/weapon/shared_ykl37r_turret_base.iff") object_tangible_ship_attachment_weapon_shared_ykl37r_turret_body_s01 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_ykl37r_turret_body_s01.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/ykl37r_turret_body_s01.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 4231136595, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_ykl37r_turret_body_s01, "object/tangible/ship/attachment/weapon/shared_ykl37r_turret_body_s01.iff") object_tangible_ship_attachment_weapon_shared_ykl37r_turret_body_s02 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_ykl37r_turret_body_s02.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/ykl37r_turret_body_s02.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 656780740, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_ykl37r_turret_body_s02, "object/tangible/ship/attachment/weapon/shared_ykl37r_turret_body_s02.iff") object_tangible_ship_attachment_weapon_shared_yt1300_radar_s01_0 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_yt1300_radar_s01_0.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/yt1300_radar_s01.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 665280141, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_yt1300_radar_s01_0, "object/tangible/ship/attachment/weapon/shared_yt1300_radar_s01_0.iff") object_tangible_ship_attachment_weapon_shared_yt1300_turret_s01 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_yt1300_turret_s01.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/yt1300_turret_base.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "clientdata/ship/component/yt1300_turret_s01.cdf", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 3561577094, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_yt1300_turret_s01, "object/tangible/ship/attachment/weapon/shared_yt1300_turret_s01.iff") object_tangible_ship_attachment_weapon_shared_yt1300_turret_s02 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_yt1300_turret_s02.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/yt1300_turret_base.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "clientdata/ship/component/yt1300_turret_s02.cdf", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 257880593, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_yt1300_turret_s02, "object/tangible/ship/attachment/weapon/shared_yt1300_turret_s02.iff") object_tangible_ship_attachment_weapon_shared_yt1300_weapon_s01_0 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_yt1300_weapon_s01_0.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/yt1300_turret_base.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "clientdata/ship/component/yt1300_turret_base.cdf", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 4197394562, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_yt1300_weapon_s01_0, "object/tangible/ship/attachment/weapon/shared_yt1300_weapon_s01_0.iff") object_tangible_ship_attachment_weapon_shared_ywing_weapon1_s01 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_ywing_weapon1_s01.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/ywing_weapon1_s01.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 1375635014, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_ywing_weapon1_s01, "object/tangible/ship/attachment/weapon/shared_ywing_weapon1_s01.iff") object_tangible_ship_attachment_weapon_shared_ywing_weapon1_s02 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_ywing_weapon1_s02.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/ywing_weapon1_s02.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 2330537681, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_ywing_weapon1_s02, "object/tangible/ship/attachment/weapon/shared_ywing_weapon1_s02.iff") object_tangible_ship_attachment_weapon_shared_ywing_weapon1_s03 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_ywing_weapon1_s03.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/ywing_weapon1_s03.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 3286518108, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_ywing_weapon1_s03, "object/tangible/ship/attachment/weapon/shared_ywing_weapon1_s03.iff") object_tangible_ship_attachment_weapon_shared_ywing_weapon1_s04 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_ywing_weapon1_s04.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/ywing_weapon1_s04.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 940008008, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_ywing_weapon1_s04, "object/tangible/ship/attachment/weapon/shared_ywing_weapon1_s04.iff") object_tangible_ship_attachment_weapon_shared_ywing_weapon1_s05 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_ywing_weapon1_s05.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/ywing_weapon1_s05.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 1896482245, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_ywing_weapon1_s05, "object/tangible/ship/attachment/weapon/shared_ywing_weapon1_s05.iff") object_tangible_ship_attachment_weapon_shared_ywing_weapon1_s06 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_ywing_weapon1_s06.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/ywing_weapon1_s06.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 2854071634, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_ywing_weapon1_s06, "object/tangible/ship/attachment/weapon/shared_ywing_weapon1_s06.iff") object_tangible_ship_attachment_weapon_shared_ywing_weapon2_s01 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_ywing_weapon2_s01.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/ywing_weapon2_s01.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 1128162651, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_ywing_weapon2_s01, "object/tangible/ship/attachment/weapon/shared_ywing_weapon2_s01.iff") object_tangible_ship_attachment_weapon_shared_ywing_weapon2_s02 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_ywing_weapon2_s02.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/ywing_weapon2_s02.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 2552876492, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_ywing_weapon2_s02, "object/tangible/ship/attachment/weapon/shared_ywing_weapon2_s02.iff") object_tangible_ship_attachment_weapon_shared_ywing_weapon2_s03 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_ywing_weapon2_s03.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/ywing_weapon2_s03.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 3508841025, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_ywing_weapon2_s03, "object/tangible/ship/attachment/weapon/shared_ywing_weapon2_s03.iff") object_tangible_ship_attachment_weapon_shared_ywing_weapon2_s04 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_ywing_weapon2_s04.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/ywing_weapon2_s04.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 717717845, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_ywing_weapon2_s04, "object/tangible/ship/attachment/weapon/shared_ywing_weapon2_s04.iff") object_tangible_ship_attachment_weapon_shared_ywing_weapon2_s05 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_ywing_weapon2_s05.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/ywing_weapon2_s05.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 1674241752, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_ywing_weapon2_s05, "object/tangible/ship/attachment/weapon/shared_ywing_weapon2_s05.iff") object_tangible_ship_attachment_weapon_shared_ywing_weapon2_s06 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_ywing_weapon2_s06.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/ywing_weapon2_s06.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 3101511247, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_ywing_weapon2_s06, "object/tangible/ship/attachment/weapon/shared_ywing_weapon2_s06.iff") object_tangible_ship_attachment_weapon_shared_z95_missile = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_z95_missile.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/z95_missile_pod_s01.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 2956556787, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_z95_missile, "object/tangible/ship/attachment/weapon/shared_z95_missile.iff") object_tangible_ship_attachment_weapon_shared_z95_weapon_s01 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_z95_weapon_s01.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/z95_weapon_s01.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "clientdata/ship/component/wpn_z95_s01.cdf", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 238417246, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_z95_weapon_s01, "object/tangible/ship/attachment/weapon/shared_z95_weapon_s01.iff") object_tangible_ship_attachment_weapon_shared_z95_weapon_s02 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_z95_weapon_s02.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/z95_weapon_s02.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "clientdata/ship/component/wpn_z95_s02.cdf", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 3575799241, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_z95_weapon_s02, "object/tangible/ship/attachment/weapon/shared_z95_weapon_s02.iff") object_tangible_ship_attachment_weapon_shared_z95_weapon_s03 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_z95_weapon_s03.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/z95_weapon_s03.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "clientdata/ship/component/wpn_z95_s03.cdf", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 2620340804, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_z95_weapon_s03, "object/tangible/ship/attachment/weapon/shared_z95_weapon_s03.iff") object_tangible_ship_attachment_weapon_shared_z95_weapon_s04 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_z95_weapon_s04.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/z95_weapon_s04.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "clientdata/ship/component/wpn_z95_s04.cdf", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 1741427024, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_z95_weapon_s04, "object/tangible/ship/attachment/weapon/shared_z95_weapon_s04.iff") object_tangible_ship_attachment_weapon_shared_z95_weapon_s05 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_z95_weapon_s05.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/z95_weapon_s05.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "clientdata/ship/component/wpn_z95_s05.cdf", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 784430813, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_z95_weapon_s05, "object/tangible/ship/attachment/weapon/shared_z95_weapon_s05.iff") object_tangible_ship_attachment_weapon_shared_z95_weapon_s06 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/ship/attachment/weapon/shared_z95_weapon_s06.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/z95_weapon_s06.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "clientdata/ship/component/wpn_z95_s06.cdf", clientGameObjectType = 1073741824, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:ship_attachment", gameObjectType = 1073741824, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@item_n:ship_attachment", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 4124499530, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/ship/attachment/base/shared_base_ship_attachment.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_ship_attachment_weapon_shared_z95_weapon_s06, "object/tangible/ship/attachment/weapon/shared_z95_weapon_s06.iff")
object_static_worldbuilding_furniture_frn_all_shelves_glass_s01 = object_static_worldbuilding_furniture_shared_frn_all_shelves_glass_s01:new { } ObjectTemplates:addTemplate(object_static_worldbuilding_furniture_frn_all_shelves_glass_s01, "object/static/worldbuilding/furniture/frn_all_shelves_glass_s01.iff")
local S = technic.getter local infinite_stacks = minetest.settings:get_bool("creative_mode") and minetest.get_modpath("unified_inventory") == nil local frames_pos = {} -- Helpers local function get_face(pos, ppos, pvect) -- Raytracer to get which face has been clicked ppos = { x = ppos.x - pos.x, y = ppos.y - pos.y + 1.5, z = ppos.z - pos.z } if pvect.x > 0 then local t = (-0.5 - ppos.x) / pvect.x local y_int = ppos.y + t * pvect.y local z_int = ppos.z + t * pvect.z if y_int > -0.45 and y_int < 0.45 and z_int > -0.45 and z_int < 0.45 then return 1 end elseif pvect.x < 0 then local t = (0.5 - ppos.x) / pvect.x local y_int = ppos.y + t * pvect.y local z_int = ppos.z + t * pvect.z if y_int > -0.45 and y_int < 0.45 and z_int > -0.45 and z_int < 0.45 then return 2 end end if pvect.y > 0 then local t = (-0.5 - ppos.y) / pvect.y local x_int = ppos.x + t * pvect.x local z_int = ppos.z + t * pvect.z if x_int > -0.45 and x_int < 0.45 and z_int > -0.45 and z_int < 0.45 then return 3 end elseif pvect.y < 0 then local t = (0.5 - ppos.y) / pvect.y local x_int = ppos.x + t * pvect.x local z_int = ppos.z + t * pvect.z if x_int > -0.45 and x_int < 0.45 and z_int > -0.45 and z_int < 0.45 then return 4 end end if pvect.z > 0 then local t = (-0.5 - ppos.z) / pvect.z local x_int = ppos.x + t * pvect.x local y_int = ppos.y + t * pvect.y if x_int > -0.45 and x_int < 0.45 and y_int > -0.45 and y_int < 0.45 then return 5 end elseif pvect.z < 0 then local t = (0.5 - ppos.z) / pvect.z local x_int = ppos.x + t * pvect.x local y_int = ppos.y + t * pvect.y if x_int > -0.45 and x_int < 0.45 and y_int > -0.45 and y_int < 0.45 then return 6 end end end local function lines(str) local t = {} local function helper(line) table.insert(t, line) return "" end helper(str:gsub("(.-)\r?\n", helper)) return t end local function pos_to_string(pos) if pos.x == 0 then pos.x = 0 end -- Fix for signed 0 if pos.y == 0 then pos.y = 0 end -- Fix for signed 0 if pos.z == 0 then pos.z = 0 end -- Fix for signed 0 return tostring(pos.x).."\n"..tostring(pos.y).."\n"..tostring(pos.z) end local function pos_from_string(str) local l = lines(str) return { x = tonumber(l[1]), y = tonumber(l[2]), z = tonumber(l[3]) } end local function pos_in_list(l, pos) for _, p in ipairs(l) do if p.x == pos.x and p.y == pos.y and p.z == pos.z then return true end end return false end local function table_empty(table) for _, __ in pairs(table) do return false end return true end local function add_table(table, toadd) local i = 1 while true do local o = table[i] if o == toadd then return end if o == nil then break end i = i + 1 end table[i] = toadd end local function move_nodes_vect(poslist, vect, must_not_move, owner) if minetest.is_protected then for _, pos in ipairs(poslist) do local npos = vector.add(pos, vect) if minetest.is_protected(pos, owner) or minetest.is_protected(npos, owner) then return end end end for _, pos in ipairs(poslist) do local npos = vector.add(pos, vect) local name = minetest.get_node(npos).name if (name ~= "air" and minetest.registered_nodes[name].liquidtype == "none" or frames_pos[pos_to_string(npos)]) and not pos_in_list(poslist, npos) then return end end local nodelist = {} for _, pos in ipairs(poslist) do local node = minetest.get_node(pos) local meta = minetest.get_meta(pos):to_table() local timer = minetest.get_node_timer(pos) nodelist[#nodelist + 1] = { oldpos = pos, pos = vector.add(pos, vect), node = node, meta = meta, timer = { timeout = timer:get_timeout(), elapsed = timer:get_elapsed() } } end local objects = {} for _, pos in ipairs(poslist) do for _, object in ipairs(minetest.get_objects_inside_radius(pos, 1)) do local entity = object:get_luaentity() if not entity or not mesecon.is_mvps_unmov(entity.name) then add_table(objects, object) end end end for _, obj in ipairs(objects) do obj:set_pos(vector.add(obj:get_pos(), vect)) end for _, n in ipairs(nodelist) do local npos = n.pos minetest.set_node(npos, n.node) local meta = minetest.get_meta(npos) meta:from_table(n.meta) local timer = minetest.get_node_timer(npos) if n.timer.timeout ~= 0 or n.timer.elapsed ~= 0 then timer:set(n.timer.timeout, n.timer.elapsed) end for __, pos in ipairs(poslist) do if npos.x == pos.x and npos.y == pos.y and npos.z == pos.z then table.remove(poslist, __) break end end end for __, pos in ipairs(poslist) do minetest.remove_node(pos) end for _, callback in ipairs(mesecon.on_mvps_move) do callback(nodelist) end end local function is_supported_node(name) return string.find(name, "tube") and string.find(name, "pipeworks") end -- Frames for xm = 0, 1 do for xp = 0, 1 do for ym = 0, 1 do for yp = 0, 1 do for zm = 0, 1 do for zp = 0, 1 do local a = 8 / 16 local b = 7 / 16 local nodeboxes = { { -a, -a, -a, -b, a, -b }, { -a, -a, b, -b, a, a }, { b, -a, b, a, a, a }, { b, -a, -a, a, a, -b }, { -b, b, -a, b, a, -b }, { -b, -a, -a, b, -b, -b }, { -b, b, b, b, a, a }, { -b, -a, b, b, -b, a }, { b, b, -b, a, a, b }, { b, -a, -b, a, -b, b }, { -a, b, -b, -b, a, b }, { -a, -a, -b, -b, -b, b }, } if yp == 0 then table.insert(nodeboxes, { -b, b, -b, b, a, b }) end if ym == 0 then table.insert(nodeboxes, { -b, -a, -b, b, -b, b }) end if xp == 0 then table.insert(nodeboxes, { b, b, b, a, -b, -b }) end if xm == 0 then table.insert(nodeboxes, { -a, -b, -b, -b, b, b }) end if zp == 0 then table.insert(nodeboxes, { -b, -b, b, b, b, a }) end if zm == 0 then table.insert(nodeboxes, { -b, -b, -a, b, b, -b }) end local nameext = string.format("%d%d%d%d%d%d", xm, xp, ym, yp, zm, zp) local groups = { snappy = 2, choppy = 2, oddly_breakable_by_hand = 2 } if nameext ~= "111111" then groups.not_in_creative_inventory = 1 end minetest.register_node("technic:frame_"..nameext, { description = S("Frame"), tiles = { "technic_frame.png" }, groups = groups, drawtype = "nodebox", node_box = { type = "fixed", fixed = nodeboxes, }, selection_box = { type = "fixed", fixed = { -0.5, -0.5, -0.5, 0.5, 0.5, 0.5 } }, paramtype = "light", frame = 1, drop = "technic:frame_111111", sunlight_propagates = true, frame_connect_all = function(nodename) local l2 = {} local l1 = { { x = -1, y = 0, z = 0 }, { x = 1, y = 0, z = 0 }, { x = 0, y = -1, z = 0 }, { x = 0, y = 1, z = 0 }, { x = 0, y = 0, z = -1 }, { x = 0, y = 0, z = 1 } } for i, dir in ipairs(l1) do if string.sub(nodename, -7 + i, -7 + i) == "1" then l2[#l2 + 1] = dir end end return l2 end, on_punch = function(pos, node, puncher) local ppos = puncher:get_pos() local pvect = puncher:get_look_dir() local pface = get_face(pos, ppos, pvect) if pface == nil then return end local nodename = node.name local newstate = tostring(1 - tonumber(string.sub(nodename, pface - 7, pface - 7))) if pface <= 5 then nodename = string.sub(nodename, 1, pface - 7 - 1)..newstate..string.sub(nodename, pface - 7 + 1) else nodename = string.sub(nodename, 1, -2)..newstate end node.name = nodename minetest.set_node(pos, node) end, on_place = function(itemstack, placer, pointed_thing) local pos = pointed_thing.above if minetest.is_protected(pos, placer:get_player_name()) then minetest.log("action", placer:get_player_name() .. " tried to place " .. itemstack:get_name() .. " at protected position " .. minetest.pos_to_string(pos)) minetest.record_protection_violation(pos, placer:get_player_name()) return itemstack end if pos == nil then return end local node = minetest.get_node(pos) if node.name ~= "air" then if is_supported_node(node.name) then local obj = minetest.add_entity(pos, "technic:frame_entity") obj:get_luaentity():set_node({ name = itemstack:get_name() }) end else minetest.set_node(pos, { name = itemstack:get_name() }) end if not infinite_stacks then itemstack:take_item() end return itemstack end, on_rightclick = function(pos, node, placer, itemstack, pointed_thing) if is_supported_node(itemstack:get_name()) then if minetest.is_protected(pos, placer:get_player_name()) then minetest.log("action", placer:get_player_name() .. " tried to place " .. itemstack:get_name() .. " at protected position " .. minetest.pos_to_string(pos)) minetest.record_protection_violation(pos, placer:get_player_name()) return itemstack end minetest.set_node(pos, { name = itemstack:get_name() }) local take_item = true local def = minetest.registered_items[itemstack:get_name()] -- Run callback if def.after_place_node then -- Copy place_to because callback can modify it local pos_copy = vector.new(pos) if def.after_place_node(pos_copy, placer, itemstack) then take_item = false end end -- Run script hook local callback = nil for _, _ in ipairs(minetest.registered_on_placenodes) do -- Copy pos and node because callback can modify them local pos_copy = { x = pos.x, y = pos.y, z = pos.z } local newnode_copy = { name = def.name, param1 = 0, param2 = 0 } local oldnode_copy = { name = "air", param1 = 0, param2 = 0 } if callback(pos_copy, newnode_copy, placer, oldnode_copy, itemstack) then take_item = false end end if take_item then itemstack:take_item() end local obj = minetest.add_entity(pos, "technic:frame_entity") obj:get_luaentity():set_node({ name = node.name }) return itemstack else --local pointed_thing = { type = "node", under = pos } if pointed_thing then return minetest.item_place_node(itemstack, placer, pointed_thing) end end end, }) end end end end end end minetest.register_entity("technic:frame_entity", { initial_properties = { physical = true, collisionbox = { -0.5, -0.5, -0.5, 0.5, 0.5, 0.5 }, visual = "wielditem", textures = {}, visual_size = { x = 0.667, y = 0.667 }, }, node = {}, set_node = function(self, node) self.node = node local pos = vector.round(self.object:getpos()) frames_pos[pos_to_string(pos)] = node.name local stack = ItemStack(node.name) local itemtable = stack:to_table() local itemname = nil if itemtable then itemname = stack:to_table().name end local item_texture = nil local item_type = "" if minetest.registered_items[itemname] then item_texture = minetest.registered_items[itemname].inventory_image item_type = minetest.registered_items[itemname].type end local prop = { is_visible = true, textures = { node.name }, } self.object:set_properties(prop) end, get_staticdata = function(self) return self.node.name end, on_activate = function(self, staticdata) self.object:set_armor_groups({ immortal = 1 }) self:set_node({ name = staticdata }) end, dig = function(self) minetest.handle_node_drops(self.object:get_pos(), { ItemStack("technic:frame_111111") }, self.last_puncher) local pos = vector.round(self.object:get_pos()) frames_pos[pos_to_string(pos)] = nil self.object:remove() end, on_punch = function(self, puncher, time_from_last_punch, tool_capabilities, dir) local pos = self.object:get_pos() if self.damage_object == nil then self.damage_object = minetest.add_entity(pos, "technic:damage_entity") self.damage_object:get_luaentity().remaining_time = 0.25 self.damage_object:get_luaentity().frame_object = self self.damage_object:get_luaentity().texture_index = 0 self.damage_object:get_luaentity().texture_change_time = 0.15 else self.damage_object:get_luaentity().remaining_time = 0.25 end self.last_puncher = puncher local ppos = puncher:get_pos() local pvect = puncher:get_look_dir() local pface = get_face(pos, ppos, pvect) if pface == nil then return end local nodename = self.node.name local newstate = tostring(1 - tonumber(string.sub(nodename, pface - 7, pface - 7))) if pface <= 5 then nodename = string.sub(nodename, 1, pface - 7 - 1)..newstate..string.sub(nodename, pface - 7 + 1) else nodename = string.sub(nodename, 1, -2)..newstate end self.node.name = nodename self:set_node(self.node) end, on_rightclick = function(self, clicker) local pos = self.object:get_pos() local ppos = clicker:get_pos() local pvect = clicker:get_look_dir() local pface = get_face(pos, ppos, pvect) if pface == nil then return end local pos_under = vector.round(pos) local pos_above = { x = pos_under.x, y = pos_under.y, z = pos_under.z } local index = ({ "x", "y", "z" })[math.floor((pface + 1) / 2)] pos_above[index] = pos_above[index] + 2 * ((pface + 1)%2) - 1 local pointed_thing = { type = "node", under = pos_under, above = pos_above } local itemstack = clicker:get_wielded_item() local itemdef = minetest.registered_items[itemstack:get_name()] if itemdef ~= nil then itemdef.on_place(itemstack, clicker, pointed_thing) end end, }) local crack = "crack_anylength.png^[verticalframe:5:0" minetest.register_entity("technic:damage_entity", { initial_properties = { visual = "cube", visual_size = { x = 1.01, y = 1.01 }, textures = { crack, crack, crack, crack, crack, crack }, collisionbox = { 0, 0, 0, 0, 0, 0 }, physical = false, }, on_step = function(self, dtime) if self.remaining_time == nil then self.object:remove() self.frame_object.damage_object = nil end self.remaining_time = self.remaining_time - dtime if self.remaining_time < 0 then self.object:remove() self.frame_object.damage_object = nil end self.texture_change_time = self.texture_change_time - dtime if self.texture_change_time < 0 then self.texture_change_time = self.texture_change_time + 0.15 self.texture_index = self.texture_index + 1 if self.texture_index == 5 then self.object:remove() self.frame_object.damage_object = nil self.frame_object:dig() end local ct = "crack_anylength.png^[verticalframe:5:"..self.texture_index self.object:set_properties({ textures = { ct, ct, ct, ct, ct, ct } }) end end, }) mesecon.register_mvps_unmov("technic:frame_entity") mesecon.register_mvps_unmov("technic:damage_entity") mesecon.register_on_mvps_move(function(moved_nodes) local to_move = {} for _, n in ipairs(moved_nodes) do if frames_pos[pos_to_string(n.oldpos)] ~= nil then to_move[#to_move + 1] = { pos = n.pos, oldpos = n.oldpos, name = frames_pos[pos_to_string(n.oldpos)] } frames_pos[pos_to_string(n.oldpos)] = nil end end if #to_move > 0 then for _, t in ipairs(to_move) do frames_pos[pos_to_string(t.pos)] = t.name local objects = minetest.get_objects_inside_radius(t.oldpos, 0.1) for _, obj in ipairs(objects) do local entity = obj:get_luaentity() if entity and (entity.name == "technic:frame_entity" or entity.name == "technic:damage_entity") then obj:set_pos(t.pos) end end end end end) minetest.register_on_dignode(function(pos, node) if frames_pos[pos_to_string(pos)] ~= nil then minetest.set_node(pos, { name = frames_pos[pos_to_string(pos)] }) frames_pos[pos_to_string(pos)] = nil local objects = minetest.get_objects_inside_radius(pos, 0.1) for _, obj in ipairs(objects) do local entity = obj:get_luaentity() if entity and (entity.name == "technic:frame_entity" or entity.name == "technic:damage_entity") then obj:remove() end end end end) -- Frame motor local function connected(pos, c, adj) for _, vect in ipairs(adj) do local pos1 = vector.add(pos, vect) local nodename = minetest.get_node(pos1).name if frames_pos[pos_to_string(pos1)] then nodename = frames_pos[pos_to_string(pos1)] end if not pos_in_list(c, pos1) and nodename ~= "air" and (minetest.registered_nodes[nodename].frames_can_connect == nil or minetest.registered_nodes[nodename].frames_can_connect(pos1, vect)) then c[#c + 1] = pos1 if minetest.registered_nodes[nodename].frame == 1 then local adj = minetest.registered_nodes[nodename].frame_connect_all(nodename) connected(pos1, c, adj) end end end end local function get_connected_nodes(pos) local c = { pos } local nodename = minetest.get_node(pos).name if frames_pos[pos_to_string(pos)] then nodename = frames_pos[pos_to_string(pos)] end connected(pos, c, minetest.registered_nodes[nodename].frame_connect_all(nodename)) return c end local function frame_motor_on(pos, node) local dirs = { { x = 0, y = 1, z = 0 }, { x = 0, y = 0, z = 1 }, { x = 0, y = 0, z = -1 }, { x = 1, y = 0, z = 0 }, { x = -1, y = 0, z = 0 }, { x = 0, y = -1, z = 0 } } local nnodepos = vector.add(pos, dirs[math.floor(node.param2 / 4) + 1]) local dir = minetest.facedir_to_dir(node.param2) local nnode = minetest.get_node(nnodepos) if frames_pos[pos_to_string(nnodepos)] then nnode.name = frames_pos[pos_to_string(nnodepos)] end local meta = minetest.get_meta(pos) if meta:get_int("last_moved") == minetest.get_gametime() then return end local owner = meta:get_string("owner") if minetest.registered_nodes[nnode.name].frame == 1 then local connected_nodes = get_connected_nodes(nnodepos) move_nodes_vect(connected_nodes, dir, pos, owner) end minetest.get_meta(vector.add(pos, dir)):set_int("last_moved", minetest.get_gametime()) end minetest.register_node("technic:frame_motor", { description = S("Frame Motor"), tiles = { "pipeworks_filter_top.png^[transformR90", "technic_lv_cable.png", "technic_lv_cable.png", "technic_lv_cable.png", "technic_lv_cable.png", "technic_lv_cable.png" }, groups = { snappy = 2, choppy = 2, oddly_breakable_by_hand = 2, mesecon = 2 }, paramtype2 = "facedir", mesecons = { effector = { action_on = frame_motor_on } }, after_place_node = function(pos, placer, itemstack) local meta = minetest.get_meta(pos) meta:set_string("owner", placer:get_player_name()) end, frames_can_connect = function(pos, dir) local node = minetest.get_node(pos) local dir2 = ({ { x= 0 , y = 1, z = 0 }, { x = 0, y = 0, z = 1 }, { x = 0, y = 0, z = -1 }, { x = 1, y = 0, z = 0 }, { x = -1, y = 0, z = 0 }, { x = 0, y = -1, z = 0 } })[math.floor(node.param2 / 4) + 1] return dir2.x ~= -dir.x or dir2.y ~= -dir.y or dir2.z ~= -dir.z end }) -- Templates local function template_connected(pos, c, connectors) local vects = { { x = 0, y = 1, z = 0 }, { x = 0, y = 0, z = 1 }, { x = 0, y = 0, z = -1 }, { x = 1, y = 0, z = 0 }, { x = -1, y = 0, z = 0 }, { x = 0, y = -1, z = 0 } } for _, vect in ipairs(vects) do local pos1 = vector.add(pos, vect) local nodename = minetest.get_node(pos1).name if not pos_in_list(c, pos1) and (nodename == "technic:template" or nodename == "technic:template_connector") then local meta = minetest.get_meta(pos1) if meta:get_string("connected") == "" then c[#c + 1] = pos1 template_connected(pos1, c, connectors) if nodename == "technic:template_connector" then connectors[#connectors + 1] = pos1 end end end end end local function get_templates(pos) local c = { pos } local connectors if minetest.get_node(pos).name == "technic:template_connector" then connectors = { pos } else connectors = {} end template_connected(pos, c, connectors) return c, connectors end local function swap_template(pos, new) local meta = minetest.get_meta(pos) local saved_node = meta:get_string("saved_node") meta:set_string("saved_node", "") technic.swap_node(pos, new) meta = minetest.get_meta(pos) meta:set_string("saved_node", saved_node) end local function save_node(pos) local node = minetest.get_node(pos) if node.name == "air" then minetest.set_node(pos, { name = "technic:template" }) return end if node.name == "technic:template" then swap_template(pos, "technic:template_connector") local meta = minetest.get_meta(pos) meta:set_string("connected", "") return end local meta = minetest.get_meta(pos) local meta0 = meta:to_table() for _, list in pairs(meta0.inventory) do for key, stack in pairs(list) do list[key] = stack:to_string() end end node.meta = meta0 minetest.set_node(pos, { name = "technic:template" }) return node end local function restore_node(pos, node) minetest.set_node(pos, node) local meta = minetest.get_meta(pos) for _, list in pairs(node.meta.inventory) do for key, stack in pairs(list) do list[key] = ItemStack(stack) end end meta:from_table(node.meta) end local function expand_template(pos) local meta = minetest.get_meta(pos) local c = meta:get_string("connected") if c == "" then return end c = minetest.deserialize(c) for _, vect in ipairs(c) do local pos1 = vector.add(pos, vect) local saved_node = save_node(pos1) local meta1 = minetest.get_meta(pos1) if saved_node ~= nil then meta1:set_string("saved_node", minetest.serialize(saved_node)) end end end local function compress_templates(pos) local templates, connectors = get_templates(pos) if #connectors == 0 then connectors = { pos } end for _, cn in ipairs(connectors) do local meta = minetest.get_meta(cn) local c = {} for _, p in ipairs(templates) do local np = vector.subtract(p, cn) if not pos_in_list(c, np) then c[#c + 1] = np end end local cc = {} for _, p in ipairs(connectors) do local np = vector.subtract(p, cn) if np.x ~= 0 or np.y ~= 0 or np.z ~= 0 then cc[pos_to_string(np)] = true end end swap_template(cn, "technic:template") meta:set_string("connected", minetest.serialize(c)) meta:set_string("connectors_connected", minetest.serialize(cc)) end for _, p in ipairs(templates) do if not pos_in_list(connectors, p) then minetest.set_node(p, { name = "air" }) end end end local function template_drops(pos, node, oldmeta, digger) local c = oldmeta.fields.connected local cc = oldmeta.fields.connectors_connected local drops if c == "" or c == nil then drops = { "technic:template 1" } else if cc == "" or cc == nil then drops = { "technic:template 1" } else local dcc = minetest.deserialize(cc) if not table_empty(dcc) then drops = {} for sp, _ in pairs(dcc) do local ssp = pos_from_string(sp) local p = vector.add(ssp, pos) local meta = minetest.get_meta(p) local d = minetest.deserialize(meta:get_string("connectors_connected")) if d ~= nil then d[pos_to_string({ x = -ssp.x, y = -ssp.y, z = -ssp.z })] = nil meta:set_string("connectors_connected", minetest.serialize(d)) end end else local stack_max = 99 local num = #minetest.deserialize(c) drops = {} while num > stack_max do drops[#drops + 1] = "technic:template "..stack_max num = num - stack_max end drops[#drops + 1] = "technic:template "..num end end end minetest.handle_node_drops(pos, drops, digger) end local function template_on_destruct(pos, node) local meta = minetest.get_meta(pos) local saved_node = meta:get_string("saved_node") if saved_node ~= "" then local nnode = minetest.deserialize(saved_node) minetest.after(0, restore_node, pos, nnode) end end minetest.register_node("technic:template", { description = S("Template"), tiles = { "technic_mv_cable.png" }, drop = "", groups = { snappy = 2, choppy = 2, oddly_breakable_by_hand = 2 }, on_destruct = template_on_destruct, after_dig_node = template_drops, on_punch = function(pos, node, puncher) swap_template(pos, "technic:template_disabled") end }) minetest.register_node("technic:template_disabled", { description = S("Template"), tiles = { "technic_hv_cable.png" }, drop = "", groups = { snappy = 2, choppy = 2, oddly_breakable_by_hand = 2, not_in_creative_inventory = 1 }, on_destruct = template_on_destruct, after_dig_node = template_drops, on_punch = function(pos, node, puncher) local _ = minetest.get_meta(pos) swap_template(pos, "technic:template_connector") end }) minetest.register_node("technic:template_connector", { description = S("Template"), tiles = { "technic_lv_cable.png" }, drop = "", groups = { snappy = 2, choppy = 2, oddly_breakable_by_hand = 2, not_in_creative_inventory = 1 }, on_destruct = template_on_destruct, after_dig_node = template_drops, on_punch = function(pos, node, puncher) swap_template(pos, "technic:template") end }) minetest.register_craftitem("technic:template_replacer", { description = S("Template (replacing)"), inventory_image = "technic_template_replacer.png", on_place = function(itemstack, placer, pointed_thing) local p = pointed_thing.under if minetest.is_protected and minetest.is_protected(p, placer:get_player_name()) then return nil end local node = minetest.get_node(p) if node.name == "technic:template" then return end local saved_node = save_node(p) itemstack:take_item() if saved_node ~= nil then local meta = minetest.get_meta(p) meta:set_string("saved_node", minetest.serialize(saved_node)) end return itemstack end }) minetest.register_tool("technic:template_tool", { description = S("Template Tool"), inventory_image = "technic_template_tool.png", on_use = function(itemstack, puncher, pointed_thing) local pos = pointed_thing.under if pos == nil or minetest.is_protected and minetest.is_protected(pos, puncher:get_player_name()) then return nil end local node = minetest.get_node(pos) if node.name ~= "technic:template" and node.name ~= "technic:template_connector" then return end local meta = minetest.get_meta(pos) local c2 = meta:get_string("connected") if c2 ~= "" then expand_template(pos) else compress_templates(pos) end end }) -- Template motor local function get_template_nodes(pos) local meta = minetest.get_meta(pos) local connected = meta:get_string("connected") if connected == "" then return {} end local adj = minetest.deserialize(connected) local c = {} for _, vect in ipairs(adj) do local pos1 = vector.add(pos, vect) local nodename = minetest.get_node(pos1).name if not(pos_in_list(c, pos1)) and nodename ~= "air" then c[#c + 1] = pos1 end end return c end local function template_motor_on(pos, node) local dirs = { { x = 0, y = 1, z = 0 }, { x = 0, y = 0, z = 1 }, { x = 0, y = 0, z = -1 }, { x = 1, y = 0, z = 0 }, { x = -1, y = 0, z = 0 }, { x = 0, y = -1, z = 0 } } local nnodepos = vector.add(pos, dirs[math.floor(node.param2 / 4) + 1]) local dir = minetest.facedir_to_dir(node.param2) local nnode = minetest.get_node(nnodepos) local meta = minetest.get_meta(pos) if meta:get_int("last_moved") == minetest.get_gametime() then return end local owner = meta:get_string("owner") if nnode.name == "technic:template" then local connected_nodes = get_template_nodes(nnodepos) move_nodes_vect(connected_nodes, dir, pos, owner) end minetest.get_meta(vector.add(pos, dir)):set_int("last_moved", minetest.get_gametime()) end minetest.register_node("technic:template_motor", { description = S("Template Motor"), tiles = { "pipeworks_filter_top.png^[transformR90", "technic_lv_cable.png", "technic_lv_cable.png", "technic_lv_cable.png", "technic_lv_cable.png", "technic_lv_cable.png" }, groups = { snappy = 2, choppy = 2, oddly_breakable_by_hand = 2, mesecon = 2 }, paramtype2 = "facedir", mesecons = { effector = { action_on = template_motor_on } }, after_place_node = function(pos, placer, itemstack) local meta = minetest.get_meta(pos) meta:set_string("owner", placer:get_player_name()) end, }) -- Crafts minetest.register_craft({ output = 'technic:frame_111111', recipe = { { '', 'default:stick', '' }, { 'default:stick', 'basic_materials:brass_ingot', 'default:stick' }, { '', 'default:stick', '' }, } }) minetest.register_craft({ output = 'technic:frame_motor', recipe = { { '', 'technic:frame_111111', '' }, { 'group:mesecon_conductor_craftable', 'basic_materials:motor', 'group:mesecon_conductor_craftable' }, { '', 'technic:frame_111111', '' }, } }) minetest.register_craft({ output = 'technic:template 10', recipe = { { '', 'basic_materials:brass_ingot', '' }, { 'basic_materials:brass_ingot', 'default:mese_crystal', 'basic_materials:brass_ingot' }, { '', 'basic_materials:brass_ingot', '' }, } }) minetest.register_craft({ output = 'technic:template_replacer', recipe = { { 'technic:template' } } }) minetest.register_craft({ output = 'technic:template', recipe = { { 'technic:template_replacer' } } }) minetest.register_craft({ output = 'technic:template_motor', recipe = { { '', 'technic:template', '' }, { 'group:mesecon_conductor_craftable', 'basic_materials:motor', 'group:mesecon_conductor_craftable' }, { '', 'technic:template', '' }, } }) minetest.register_craft({ output = 'technic:template_tool', recipe = { { '', 'technic:template', '' }, { 'default:mese_crystal', 'default:stick', 'default:mese_crystal' }, { '', 'default:stick', '' }, } })
local luash = require './lshkit' local similarityTable = torch.load('./data/SimilarityTable.400k.m') dataTensor = luash.getDataTensor(similarityTable) local indexParams = {K = 10, R = 0.9, L = 10, T = 15, M = 20, W = 386.476} local N = similarityTable.public_vectors:size(1) local dim = similarityTable.public_vectors:size(2) local index = luash.init(dataTensor, {N = N, dim = dim, doTune = true, indexFile = './data/similarity.1.400k.index', indexParams = indexParams, libdir = "./lib/"}) result = index.query(dataTensor[454]) print(result)
local snmp = require "snmp" local mib = snmp.mib require "stdlib" local logging = require "logging.console" local log = logging.console("%message") log:setLevel("DEBUG") local info = function(fmt, ...) log:info(string.format(fmt.."\n", unpack(arg))) end local debug = function(fmt, ...) log:debug(string.format(fmt.."\n", unpack(arg))) end info("Initialising SNMP") if snmp.gettrapd() == "straps" then local err = snmp.inittrap("straps") assert(not err, err) else info("Support for `%s' has been selected", snmp.gettrapd()) end local function inform_cb(vlist, ip, session) debug(" DEFAULT INFORM CALLBACK: inform sent by : "..ip) for _,vb in ipairs(vlist) do debug(" %s", snmp.sprintvar(vb)) end inform_done = true end local function trap_cb(vlist, ip, host, session) debug(" DEFAULT TRAP CALLBACK: trap sent by :%s (%s)", host, ip) for _,vb in ipairs(vlist) do debug(" %s", session.sprintvar(vb)) end trap_done = true end local sess, err = snmp.open{ community = "private", peer = "localhost", version = snmp.SNMPv2C, callback = test_cb, inform = inform_cb, trap = trap_cb } --os.execute("snmpinform -v 2c -c public localhost 3 0 sysName.0 s 'hello'") --while true do -- err = snmp.event() --end err = snmp.loop() print(err) assert(not err, err)
local config = require 'admin.config' local template = require "template" local utils = require "admin.utils" local user = require "admin.db.user" local user_token = require "admin.db.token" local role = require "admin.db.role" local header = require "admin.db.header" local Cookie = require "admin.cookie" local json = require "json" local json_encode = json.encode local json_decode = json.decode local url = require "url" local url_encode = url.encode local url_decode = url.decode local type = type local ipairs = ipairs local tostring = tostring local os_date = os.date local toint = math.tointeger local get_path = utils.get_path local get_locale = utils.get_locale local access_deny = utils.access_deny local template_path = 'lualib/admin/html/system/header/' local function verify_permission (content, db) local token = Cookie.getCookie("CFTOKEN") if not token then return false, config.login_render end local exists = user_token.token_exists(db, token) if not exists then -- Token不存在需要重新登录 return false, config.login_render end local info = user.user_info(db, exists.uid) if not info or info.is_admin ~= 1 then return false, access_deny(get_path(content)) end info.token = exists.token info.roles = role.role_permissions(db, info.role) return true, info end local system = {} -- 用户管理render function system.header_render (content) local db = config.db local ok, user = verify_permission(content, db) if not ok then return utils.redirect(user) end if not config.cache then template.cache = {} end return template.compile(template_path..'header.html'){ cdn = config.cdn, token = user.token, api_url = config.system_header_api, header_add_url = config.system_header_add_render, header_edit_url = config.system_header_edit_render, locale = get_locale(Cookie.getCookie('CFLANG')) } end -- 添加导航 function system.header_add_render (content) local db = config.db local ok, user = verify_permission(content, db) if not ok then return utils.redirect(user) end if not config.cache then template.cache = {} end return template.compile(template_path..'header-add.html'){ cdn = config.cdn, api_url = config.system_header_api, token = Cookie.getCookie("CFTOKEN"), locale = get_locale(Cookie.getCookie('CFLANG')) } end -- 编辑导航 function system.header_edit_render (content) local db = config.db local ok, user = verify_permission(content, db) if not ok then return utils.redirect(user) end local args = content.args if not args or not args.id then return utils.error_404() end local h = header.get_header(db, args.id) if not h then return utils.error_404() end if not config.cache then template.cache = {} end return template.compile(template_path..'header-edit.html'){ cdn = config.cdn, id = h.id, url = h.url, name = h.name, api_url = config.system_header_api, token = Cookie.getCookie("CFTOKEN"), locale = get_locale(Cookie.getCookie('CFLANG')) } end -- 用户管理API接口 function system.header_response (content) local db = config.db local args = content.args if type(args) ~= 'table' then return json_encode({code = 400, msg = '1. 错误的参数'}) end local token = args.token if not token then return json_encode({code = 400, msg = '2. 错误的参数'}) end -- 验证Token local exists = user_token.token_exists(db, token) if not exists then return json_encode({code = 400, msg = '3. token不存在或权限不足'}) end local user_info = user.user_info(db, exists.uid) if not user_info or user_info.is_admin == 0 then return json_encode({code = 400, msg = '4. 用户权限不足'}) end if args.action == 'delete' then local headerid = toint(args.headerid) if not headerid then return json_encode({ code = 400, msg = '1. 未知的header' }) end local exists = header.header_exists(db, headerid) if not exists then return json_encode({ code = 400, msg = '2. 试图删除一个不存在的的header' }) end header.header_delete(db, headerid) return json_encode({ code = 0, msg = '删除成功'}) end if args.action == 'list' then local headers = header.header_list(db, args) for _, header in ipairs(headers) do header.create_at = os_date("%Y-%m-%d %H:%M:%S", header.create_at) header.update_at = os_date("%Y-%m-%d %H:%M:%S", header.update_at) end return json_encode({code = 0, data = headers, count = header.header_count(db)}) end if args.action == 'add' then if not args.url or not args.name then return json_encode({ code = 400, msg = "1. 添加导航栏参数错误"}) end args.url = url_decode(args.url) args.name = url_decode(args.name) local ok = header.header_add(db, args) if not ok then return json_encode({code = 401, msg = "2. 添加导航失败"}) end return json_encode({code = 0, msg = "添加成功"}) end if args.action == 'edit' then if not args.id then json_encode({ code = 400, msg = "1. 找不到此header"}) end local url = tostring(args.url) local name = tostring(args.name) if not url or not name then json_encode({ code = 400, msg = "2. 非法的参数"}) end args.url = url_decode(args.url) args.name = url_decode(args.name) local ok = header.header_update(db, args) if not ok then return json_encode({code = 401, msg = "3. 修改失败"}) end return json_encode({ code = 0, msg = "修改成功"}) end return json_encode({code = 500, msg = '恭喜您完美的错过了所有正确参数'}) end return system
return { -- Key constants. PRESSED = 2, PRESSED_FIRST_TIME = 1, RELEASED = 3, NONE = 0, -- Actors transformations. loc_rot_scale = function(actor, px, py, pz, rx, ry, rz, sx, sy, sz) actor.position = hpms.vec3(px, py, pz) actor.rotation = hpms.from_euler(hpms.to_radians(rx), hpms.to_radians(ry), hpms.to_radians(rz)) actor.scale = hpms.vec3(sx, sy, sz) end, move = function(actor, x, y, z) actor.position = hpms.vec3_add(actor.position, hpms.vec3(x, y, z)) end, move_towards_direction = function(actor, ratio) local dir = hpms.get_direction(actor.rotation, hpms.vec3(0, 0, 1)) actor.position = hpms.vec3_add(actor.position, hpms.vec3(ratio * dir.x, 0, ratio * dir.z)) end, rotate = function(actor, rx, ry, rz) actor.rotation = hpms.quat_mul(actor.rotation, hpms.from_euler(hpms.to_radians(rx), hpms.to_radians(ry), hpms.to_radians(rz))) end }