diff --git a/MineStead_modpack/add_craft_recipes/README.md b/MineStead_modpack/add_craft_recipes/README.md new file mode 100644 index 0000000..7f25f09 --- /dev/null +++ b/MineStead_modpack/add_craft_recipes/README.md @@ -0,0 +1,7 @@ +# MineSTEAD craft recipes + +Adding missing craft recipes for items from these mods: + +* digilines +* digistuff +* nixie_tubes \ No newline at end of file diff --git a/MineStead_modpack/add_craft_recipes/craft/advtrains_luaautomation.lua b/MineStead_modpack/add_craft_recipes/craft/advtrains_luaautomation.lua new file mode 100644 index 0000000..b07403f --- /dev/null +++ b/MineStead_modpack/add_craft_recipes/craft/advtrains_luaautomation.lua @@ -0,0 +1,34 @@ +local plastic = "basic_materials:plastic_sheet" +local wire = "digilines:wire_std_00000000" + +local glass = "default:glass" + +minetest.register_craft({ + type="shapeless", + output = 'advtrains_luaautomation:dtrack_placer', + recipe = { + "advtrains:dtrack_placer", + "technic:control_logic_unit", + wire, + }, +}) + + +minetest.register_craft({ + output = 'advtrains_luaautomation:oppanel', + recipe = { + {plastic, plastic, plastic}, + {glass, "mesecons_luacontroller:luacontroller0000", glass}, + {wire, wire, wire}, + }, +}) + +minetest.register_craft({ + output = 'advtrains_luaautomation:pcnaming', + recipe = { + {"default:diamond"}, + {"screwdriver:screwdriver"}, + {"default:gold_ingot"}, + }, +}) + diff --git a/MineStead_modpack/digilines_craft/init.lua b/MineStead_modpack/add_craft_recipes/craft/digilines.lua similarity index 99% rename from MineStead_modpack/digilines_craft/init.lua rename to MineStead_modpack/add_craft_recipes/craft/digilines.lua index a450884..1074415 100644 --- a/MineStead_modpack/digilines_craft/init.lua +++ b/MineStead_modpack/add_craft_recipes/craft/digilines.lua @@ -17,4 +17,3 @@ minetest.register_craft({ "basic_materials:ic", wire } }) - diff --git a/MineStead_modpack/add_craft_recipes/craft/digistuff.lua b/MineStead_modpack/add_craft_recipes/craft/digistuff.lua new file mode 100644 index 0000000..7e6b7a3 --- /dev/null +++ b/MineStead_modpack/add_craft_recipes/craft/digistuff.lua @@ -0,0 +1,42 @@ +local wire = 'digilines:wire_std_00000000' + +if minetest.get_modpath("mesecons_noteblock") then + -- digistuff noteblock + minetest.register_craft({ + type = "shapeless", + output = "digistuff:noteblock", + recipe = { + "mesecons_noteblock:noteblock", wire + } + }) +end + +if minetest.get_modpath("homedecor_electronics") then + -- digistuff piezo + minetest.register_craft({ + type = "shapeless", + output = "digistuff:piezo", + recipe = { + "homedecor:speaker_driver", wire + } + }) +end + +if minetest.get_modpath("mesecons_mvps") then + -- digistuff piston + minetest.register_craft({ + type = "shapeless", + output = "digistuff:piston", + recipe = { + "mesecons_pistons:piston_normal_off", wire + } + }) +end + +minetest.register_craft({ + type = "shapeless", + output = "digistuff:wall_knob", + recipe = { + "digistuff:button", wire + } +}) diff --git a/MineStead_modpack/add_craft_recipes/craft/nixie_tubes.lua b/MineStead_modpack/add_craft_recipes/craft/nixie_tubes.lua new file mode 100644 index 0000000..6b85cde --- /dev/null +++ b/MineStead_modpack/add_craft_recipes/craft/nixie_tubes.lua @@ -0,0 +1,8 @@ +minetest.register_craft({ + output = "nixie_tubes:decatron_off 4", + recipe = { + { "", "default:glass", "" }, + { "default:glass", "default:mese_crystal_fragment", "default:glass" }, + { "default:glass", "default:mese_crystal_fragment", "default:glass" } + }, +}) diff --git a/MineStead_modpack/add_craft_recipes/depends.txt b/MineStead_modpack/add_craft_recipes/depends.txt new file mode 100644 index 0000000..20aff2f --- /dev/null +++ b/MineStead_modpack/add_craft_recipes/depends.txt @@ -0,0 +1,11 @@ +default +basic_materials? +digilines? +digistuff? +nixie_tubes? +mesecons_noteblock? +mesecons_mvps? +homedecor_electronics? +advtrains_luaautomation? + + diff --git a/MineStead_modpack/add_craft_recipes/init.lua b/MineStead_modpack/add_craft_recipes/init.lua new file mode 100644 index 0000000..175cfeb --- /dev/null +++ b/MineStead_modpack/add_craft_recipes/init.lua @@ -0,0 +1,18 @@ +-- MineSTEAD craft recipes +local MP = minetest.get_modpath("add_craft_recipes") + +if minetest.get_modpath("digilines") then + dofile(MP.."/craft/digilines.lua") +end + +if minetest.get_modpath("digistuff") then + dofile(MP.."/craft/digistuff.lua") +end + +if minetest.get_modpath("nixie_tubes") then + dofile(MP.."/craft/nixie_tubes.lua") +end + +if minetest.get_modpath("advtrains_luaautomation") then + dofile(MP.."/craft/advtrains_luaautomation.lua") +end \ No newline at end of file diff --git a/MineStead_modpack/add_craft_recipes/mod.conf b/MineStead_modpack/add_craft_recipes/mod.conf new file mode 100644 index 0000000..98fd8f8 --- /dev/null +++ b/MineStead_modpack/add_craft_recipes/mod.conf @@ -0,0 +1 @@ +name = add_craft_recipes diff --git a/advtrains_modpack/advtrains_luaautomation/README.txt b/advtrains_modpack/advtrains_luaautomation/README.txt new file mode 100644 index 0000000..20ef816 --- /dev/null +++ b/advtrains_modpack/advtrains_luaautomation/README.txt @@ -0,0 +1,246 @@ + +#### Advtrains - Lua Automation features + +This mod offers components that run LUA code and interface with each other through a global environment. It makes complex automated railway systems possible. + +### atlatc +The mod is sometimes abbreviated as 'atlatc'. This stands for AdvTrainsLuaATC. This short name has been chosen for user convenience, since the name of this mod ('advtrains_luaautomation') is very long. + +### Privilege +To perform any operations using this mod (except executing operation panels), players need the "atlatc" privilege. +This privilege should never be granted to anyone except trusted administrators. Even though the LUA environment is sandboxed, it is still possible to DoS the server by coding infinite loops or requesting expotentially growing interrupts. + +### Active and passive +Active components are these who have LUA code running in them. They are triggered on specific events. Passive components are dumb, they only have a state and can be set to another state, they can't perform actions themselves. + +### Environments + +Each active component is assigned to an environment. This is where all data are held. Components in different environments can't inferface with each other. +This system allows multiple independent automation systems to run simultaneously without polluting each other's environment. + +/env_create +Create environment with the given name. To be able to do anything, you first need to create an environment. Choose the name wisely, you can't change it afterwards. + +/env_setup +Invoke the form to edit the environment's initialization code. For more information, see the section on active components. You can also delete an environment from here. + +### Active components + +The code of every active component is run on specific events which are explained soon. When run, every variable written that is not local and is no function or userdata is saved over code re-runs and over server restarts. Additionally, the following global variables are defined: + +# event +The variable 'event' contains a table with information on the current event. How this table can look is explained below. + +# S +The variable 'S' contains a table which is shared between all components of the environment. Its contents are persistent over server restarts. May not contain functions, every other value is allowed. +Example: +Component 1: S.stuff="foo" +Component 2: print(S.stuff) +-> foo + +# F +The variable 'F' also contains a table which is shared between all components of the environment. Its contents are discarded on server shutdown or when the init code gets re-run. Every data type is allowed, even functions. +The purpose of this table is not to save data, but to provide static value and function definitions. The table should be populated by the init code. + +# Standard Lua functions +The following standard Lua libraries are available: +string, math, table, os +The following standard Lua functions are available: +assert, error, ipairs, pairs, next, select, tonumber, tostring, type, unpack + +Every attempt to overwrite any of the predefined values results in an error. + +# LuaAutomation-specific global functions + +POS(x,y,z) +Shorthand function to create a position vector {x=?, y=?, z=?} with less characters + +In the following functions, all parameters named 'pos' designate a position. You can use either: +- a default Minetest position vector (like {x=34, y=2, z=-18}) +- the POS(34,2,-18) shorthand +- A string, the passive component name. See 'passive component naming'. + +getstate(pos) +Get the state of the passive component at position 'pos'. See section on passive components for more info. +pos can be either a position vector (created by POS()) or a string, the name of this passive component. + +setstate(pos, newstate) +Set the state of the passive component at position 'pos'. + +is_passive(pos) +Checks whether there is a passive component at the position pos (and/or whether a passive component with this name exists) + +interrupt(time, message) +Cause LuaAutomation to trigger an 'int' event on this component after the given time in seconds with the specified 'message' field. 'message' can be of any Lua data type. +Not available in init code! + +interrupt_pos(pos, message) +Immediately trigger an 'ext_int' event on the active component at position pos. 'message' is like in interrupt(). +USE WITH CARE, or better don't use! Incorrect use can result in expotential growth of interrupts. + +digiline_send(channel, message) +Make this active component send a digiline message on the specified channel. +Not available in init code! + +-- The next 4 functions are available when advtrains_interlocking is enabled: -- + +can_set_route(pos, route_name) +Returns whether it is possible to set the route designated by route_name from the signal at pos. + +set_route(pos, route_name) +Requests the given route from the signal at pos. Has the same effect as clicking "Set Route" in the signalling dialog. + +cancel_route(pos) +Cancels the route that is set from the signal at pos. Has the same effect as clicking "Cancel Route" in the signalling dialog. + +get_aspect(pos) +Returns the signal aspect of the signal at pos. A signal aspect has the following format: +aspect = { + main = { -- the next track section in line. Shows blocked for shunt routes + free = , + speed = , + }, + shunt = { -- whether a "shunting allowed" aspect should be shown + free = , + } + dst = { -- the aspect of the next main signal on (at end of) route + free = , + speed = , + } + info = { + call_on = , -- Call-on route, expect train in track ahead + dead_end = , -- Route ends on a dead end (e.g. bumper) + } +} +As of August 2018, only the aspect.main.free field is ever used by the interlocking system. + +# Lines + +The advtrains_line_automation component adds a few contraptions that should make creating timeable systems easier. +Part of its functionality is also available in LuaATC: + +- rwt.* - all Railway Time functions are included as documented in https://advtrains.de/wiki/doku.php?id=dev:lines:rwt + +- schedule(rw_time, msg) +- schedule_in(rw_dtime, msg) +Schedules an event of type {type="schedule", schedule=true, msg=msg} at (resp. after) the specified railway time. +(which can be in any format). You can only schedule one event this way. (uses the new lines-internal scheduler) + +## Components and events + +The event table is a table of the following format: +{ + type = "", + = true, + ... additional content ... +} +You can check for the event type by either using +if event.type == "wanted" then ...do stuff... end +or +if event.wanted then ...do stuff... end +(if 'wanted' is the event type to check for) + +# Init code +The initialization code is not a component as such, but rather a part of the whole environment. It can (and should) be used to make definitions that other components can refer to. +Examples: +A function to define behavior for trains in subway stations: +function F.station() + if event.train then atc_send("B0WOL") end + if event.int and event.message="depart" then atc_send("OCD1SM") end +end + +The init code is run whenever the F table needs to be refilled with data. This is the case on server startup and whenever the init code is changed and you choose to run it. +Functions are run in the environment of the currently active node, regardless of where they were defined. So, the 'event' table always reflects the state of the calling node. + +The 'event' table of the init code is always {type="init", init=true}. + +# ATC rails +The Lua-controlled ATC rails are the only components that can actually interface with trains. The following event types are generated: + +{type="train", train=true, id=""} +This event is fired when a train enters the rail. The field 'id' is the unique train ID, which is 6-digit random numerical string. +If the world contains trains from an older advtrains version, this string may be longer and contain a dot (.) + +{type="int", int=true, msg=} +Fired when an interrupt set by the 'interrupt' function runs out. 'message' is the message passed to the interrupt function. +For backwards compatiblity reasons, is also contained in an event.message field. +{type="ext_int", ext_int=true, message=} +Fired when another node called 'interrupt_pos' on this position. 'message' is the message passed to the interrupt_pos function. + +{type="digiline", digiline=true, channel=, msg=} +Fired when the controller receives a digiline message. + +In addition to the default environment functions, the following functions are available: + +atc_send() + Sends the specified ATC command to the train and returns true. If there is no train, returns false and does nothing. +atc_reset() + Resets the train's current ATC command. If there is no train, returns false and does nothing. +atc_arrow + Boolean, true when the train is driving in the direction of the arrows of the ATC rail. Nil if there is no train. +atc_id + Train ID of the train currently passing the controller. Nil if there's no train. +atc_speed + Speed of the train, or nil if there is no train. +atc_set_text_outside(text) + Set text shown on the outside of the train. Pass nil to show no text. +atc_set_text_inside(text) + Set text shown to train passengers. Pass nil to show no text. +get_line() + Returns the "Line" property of the train (a string). + This can be used to distinguish between trains of different lines and route them appropriately. + The interlocking system also uses this property for Automatic Routesetting. +set_line(line) + Sets the "Line" property of the train (a string). + If the first digit of this string is a number (0-9), any subway wagons on the train will have this one displayed as line number + (where "0" is actually shown as Line 10 on the train) +get_rc() + Returns the "Routingcode" property of the train (a string). + The interlocking system uses this property for Automatic Routesetting. +set_rc(routingcode) + Sets the "Routingcode" property of the train (a string). + The interlocking system uses this property for Automatic Routesetting. +split_at_index(index, command) + Splits the train at the specified index, into a train with index-1 wagons and a second train starting with the index-th wagon. + command specifies an atc command to be sent to the second train after decoupling. + +# Operator panel +This simple node executes its actions when punched. It can be used to change a switch and update the corresponding signals or similar applications. + +The event fired is {type="punch", punch=true} by default. In case of an interrupt or a digiline message, the events are similar to the ones of the ATC rail. + +### Passive components + +All passive components can be interfaced with the setstate and getstate functions(see above). +Below, each apperance is mapped to the "state" of that node. + +## Signals +The light signals are interfaceable, the analog signals are not. +"green" - Signal shows green light +"red" - Signal shows red light + +## Switches +All default rail switches are interfaceable, independent of orientation. +"cr" - The switch is set in the direction that is not straight. +"st" - The switch is set in the direction that is straight. + +## Mesecon Switch +The Mesecon switch can be switched using LuaAutomation. Note that this is not possible on levers, only the full-node 'Switch' block. +"on" - the switch is switched on +"off" - the switch is switched off + +##Andrew's Cross +"on" - it blinks +"off" - it does not blink + +### Passive component naming +You can assign names to passive components using the Passive Component Naming tool. +Once you set a name for any component, you can reference it by that name in the getstate() and setstate() functions, like this: +(Imagine a signal that you have named "Stn_P1_out" at position (1,2,3) ) +setstate("Stn_P1_out", "green") instead of setstate(POS(1,2,3), "green") +This way, you don't need to memorize positions. + +PC-Naming can also be used to name interlocking signals for route setting via the set_route() functions. IMPORTANT: The "Signal Name" set in the +signalling formspec is completely independent and can NOT be used to look up the position, you need to explicitly use the PCNaming tool. + +--TODO: Ein paar mehr Codebeispiele wären schön, insbesondere mit os.date und so... diff --git a/advtrains_modpack/advtrains_luaautomation/active_common.lua b/advtrains_modpack/advtrains_luaautomation/active_common.lua new file mode 100644 index 0000000..8d0975f --- /dev/null +++ b/advtrains_modpack/advtrains_luaautomation/active_common.lua @@ -0,0 +1,163 @@ + + +local ac = {nodes={}} + +function ac.load(data) + if data then + ac.nodes=data.nodes + end +end +function ac.save() + return {nodes = ac.nodes} +end + +function ac.after_place_node(pos, player) + local meta=minetest.get_meta(pos) + meta:set_string("formspec", ac.getform(pos, meta)) + meta:set_string("infotext", "LuaAutomation component, unconfigured.") + local ph=minetest.pos_to_string(pos) + --just get first available key! + for en,_ in pairs(atlatc.envs) do + ac.nodes[ph]={env=en} + return + end +end +function ac.getform(pos, meta_p) + local meta = meta_p or minetest.get_meta(pos) + local envs_asvalues={} + + local ph=minetest.pos_to_string(pos) + local nodetbl = ac.nodes[ph] + local env, code, err = nil, "", "" + if nodetbl then + code=nodetbl.code or "" + err=nodetbl.err or "" + env=nodetbl.env or "" + end + local sel = 1 + for n,_ in pairs(atlatc.envs) do + envs_asvalues[#envs_asvalues+1]=n + if n==env then + sel=#envs_asvalues + end + end + local form = "size[10,10]dropdown[0,0;3;env;"..table.concat(envs_asvalues, ",")..";"..sel.."]" + .."button[4,0;2,1;save;Save]button[7,0;2,1;cle;Clear local env] textarea[0.2,1;10,10;code;Code;"..minetest.formspec_escape(code).."]" + .."label[0,9.8;"..err.."]" + return form +end + +function ac.after_dig_node(pos, node, player) + advtrains.invalidate_all_paths(pos) + advtrains.ndb.clear(pos) + local ph=minetest.pos_to_string(pos) + ac.nodes[ph]=nil +end + +function ac.on_receive_fields(pos, formname, fields, player) + if not minetest.check_player_privs(player:get_player_name(), {atlatc=true}) then + minetest.chat_send_player(player:get_player_name(), "Missing privilege: atlatc - Operation cancelled!") + return + end + + local meta=minetest.get_meta(pos) + local ph=minetest.pos_to_string(pos) + local nodetbl = ac.nodes[ph] or {} + --if fields.quit then return end + if fields.env then + nodetbl.env=fields.env + end + if fields.code then + nodetbl.code=fields.code + end + if fields.save then + nodetbl.err=nil + end + if fields.cle then + nodetbl.data={} + end + + ac.nodes[ph]=nodetbl + + meta:set_string("formspec", ac.getform(pos, meta)) + if nodetbl.env then + meta:set_string("infotext", "LuaAutomation component, assigned to environment '"..nodetbl.env.."'") + else + meta:set_string("infotext", "LuaAutomation component, invalid enviroment set!") + end +end + +function ac.run_in_env(pos, evtdata, customfct_p) + local ph=minetest.pos_to_string(pos) + local nodetbl = ac.nodes[ph] + if not nodetbl then + atwarn("LuaAutomation component at",ph,": Data not in memory! Please visit component and click 'Save'!") + return + end + + local meta + if minetest.get_node_or_nil(pos) then + meta=minetest.get_meta(pos) + end + + if not nodetbl.env or not atlatc.envs[nodetbl.env] then + atwarn("LuaAutomation component at",ph,": Not an existing environment: "..(nodetbl.env or "")) + return false + end + if not nodetbl.code or nodetbl.code=="" then + atwarn("LuaAutomation component at",ph,": No code to run! (insert -- to suppress warning)") + return false + end + + local customfct=customfct_p or {} + -- add interrupt function + customfct.interrupt=function(t, imesg) + assertt(t, "number") + assert(t >= 0) + atlatc.interrupt.add(t, pos, {type="int", int=true, message=imesg, msg=imesg}) --Compatiblity "message" field. + end + -- add digiline_send function, if digiline is loaded + if minetest.global_exists("digiline") then + customfct.digiline_send=function(channel, msg) + assertt(channel, "string") + digiline:receptor_send(pos, digiline.rules.default, channel, msg) + end + end + -- add lines scheduler if enabled + if advtrains.lines and advtrains.lines.sched then + customfct.schedule = function(rwtime, msg) + advtrains.lines.sched.enqueue(rwtime, "atlatc_env", {pos=pos, msg=msg}, advtrains.encode_pos(pos), 1) + end + customfct.schedule_in = function(rwtime, msg) + advtrains.lines.sched.enqueue_in(rwtime, "atlatc_env", {pos=pos, msg=msg}, advtrains.encode_pos(pos), 1) + end + end + + local datain=nodetbl.data or {} + local succ, dataout = atlatc.envs[nodetbl.env]:execute_code(datain, nodetbl.code, evtdata, customfct) + if succ then + atlatc.active.nodes[ph].data=atlatc.remove_invalid_data(dataout) + else + atlatc.active.nodes[ph].err=dataout + atwarn("LuaAutomation ATC interface rail at",ph,": LUA Error:",dataout) + if meta then + meta:set_string("infotext", "LuaAutomation ATC interface rail, ERROR:"..dataout) + end + end + if meta then + meta:set_string("formspec", ac.getform(pos, meta)) + end +end + +function ac.on_digiline_receive(pos, node, channel, msg) + atlatc.interrupt.add(0, pos, {type="digiline", digiline=true, channel = channel, msg = msg}) +end + +if advtrains.lines and advtrains.lines.sched then + advtrains.lines.sched.register_callback("atlatc_env", function(data) + -- This adds another interrupt to the atlatc queue... there might be a better way + atlatc.interrupt.add(0, data.pos, {type="schedule",schedule=true, msg=data.msg}) + end) +end + +atlatc.active=ac diff --git a/advtrains_modpack/advtrains_luaautomation/atc_rail.lua b/advtrains_modpack/advtrains_luaautomation/atc_rail.lua new file mode 100644 index 0000000..1d94a2b --- /dev/null +++ b/advtrains_modpack/advtrains_luaautomation/atc_rail.lua @@ -0,0 +1,165 @@ +-- atc_rail.lua +-- registers and handles the ATC rail. Active component. +-- This is the only component that can interface with trains, so train interface goes here too. + +--Using subtable +local r={} + +function r.fire_event(pos, evtdata) + + local ph=minetest.pos_to_string(pos) + local railtbl = atlatc.active.nodes[ph] + + if not railtbl then + atwarn("LuaAutomation ATC interface rail at",ph,": Data not in memory! Please visit position and click 'Save'!") + return + end + + + local arrowconn = railtbl.arrowconn + if not arrowconn then + atwarn("LuaAutomation ATC interface rail at",ph,": Incomplete Data! Please visit position and click 'Save'!") + return + end + + --prepare ingame API for ATC. Regenerate each time since pos needs to be known + --If no train, then return false. + local train_id=advtrains.get_train_at_pos(pos) + local train, atc_arrow, tvel + if train_id then train=advtrains.trains[train_id] end + if train then + if not train.path then + --we happened to get in between an invalidation step + --delay + atlatc.interrupt.add(0,pos,evtdata) + return + end + local index = advtrains.path_lookup(train, pos) + + local iconnid = 1 + if index then + iconnid = train.path_cn[index] + else + atwarn("ATC rail at", pos, ": Rail not on train's path! Can't determine arrow direction. Assuming +!") + end + atc_arrow = iconnid == 1 + + tvel=train.velocity + end + local customfct={ + atc_send = function(cmd) + if not train_id then return false end + assertt(cmd, "string") + advtrains.atc.train_set_command(train, cmd, atc_arrow) + return true + end, + split_at_index = function(index, cmd) + if not train_id then return false end + assertt(cmd, "string") + if type(index) ~= "number" then + return false + end + local new_id = advtrains.split_train_at_index(train, index) + if new_id then + minetest.after(1,advtrains.atc.train_set_command,advtrains.trains[new_id], cmd, atc_arrow) + return true + end + return false + end, + set_shunt = function() + -- enable shunting mode + if not train_id then return false end + train.is_shunt = true + end, + set_line = function(line) + if type(line)~="string" and type(line)~="number" then + return false + end + train.line = line .. "" + minetest.after(0, advtrains.invalidate_path, train_id) + return true + end, + get_line = function() + return train.line + end, + set_rc = function(rc) + if type(rc)~="string"then + return false + end + train.routingcode = rc + minetest.after(0, advtrains.invalidate_path, train_id) + return true + end, + get_rc = function() + return train.routingcode + end, + atc_reset = function(cmd) + if not train_id then return false end + assertt(cmd, "string") + advtrains.atc.train_reset_command(train) + return true + end, + atc_arrow = atc_arrow, + atc_id = train_id, + atc_speed = tvel, + atc_set_text_outside = function(text) + if not train_id then return false end + if text then assertt(text, "string") end + advtrains.trains[train_id].text_outside=text + return true + end, + atc_set_text_inside = function(text) + if not train_id then return false end + if text then assertt(text, "string") end + advtrains.trains[train_id].text_inside=text + return true + end, + } + + atlatc.active.run_in_env(pos, evtdata, customfct) + +end + +advtrains.register_tracks("default", { + nodename_prefix="advtrains_luaautomation:dtrack", + texture_prefix="advtrains_dtrack_atc", + models_prefix="advtrains_dtrack", + models_suffix=".b3d", + shared_texture="advtrains_dtrack_shared_atc.png", + description=atltrans("LuaAutomation ATC Rail"), + formats={}, + get_additional_definiton = function(def, preset, suffix, rotation) + return { + after_place_node = atlatc.active.after_place_node, + after_dig_node = atlatc.active.after_dig_node, + + on_receive_fields = function(pos, ...) + atlatc.active.on_receive_fields(pos, ...) + + --set arrowconn (for ATC) + local ph=minetest.pos_to_string(pos) + local _, conns=advtrains.get_rail_info_at(pos, advtrains.all_tracktypes) + atlatc.active.nodes[ph].arrowconn=conns[1].c + end, + + advtrains = { + on_train_enter = function(pos, train_id) + --do async. Event is fired in train steps + atlatc.interrupt.add(0, pos, {type="train", train=true, id=train_id}) + end, + }, + luaautomation = { + fire_event=r.fire_event + }, + digiline = { + receptor = {}, + effector = { + action = atlatc.active.on_digiline_receive + }, + }, + } + end, +}, advtrains.trackpresets.t_30deg_straightonly) + + +atlatc.rail = r diff --git a/advtrains_modpack/advtrains_luaautomation/chatcmds.lua b/advtrains_modpack/advtrains_luaautomation/chatcmds.lua new file mode 100644 index 0000000..2d0c69d --- /dev/null +++ b/advtrains_modpack/advtrains_luaautomation/chatcmds.lua @@ -0,0 +1,84 @@ +--chatcmds.lua +--Registers commands to modify the init and step code for LuaAutomation + +--position helper. +--punching a node will result in that position being saved and inserted into a text field on the top of init form. +local punchpos={} + +minetest.register_on_punchnode(function(pos, node, player, pointed_thing) + local pname=player:get_player_name() + punchpos[pname]=pos +end) + +local function get_init_form(env, pname) + local err = env.init_err or "" + local code = env.init_code or "" + local ppos=punchpos[pname] + local pp="" + if ppos then + pp="POS"..minetest.pos_to_string(ppos) + end + local form = "size[10,10]button[0,0;2,1;run;Run InitCode]button[2,0;2,1;cls;Clear S]" + .."button[4,0;2,1;save;Save] button[6,0;2,1;del;Delete Env.] field[8.1,0.5;2,1;punchpos;Last punched position;"..pp.."]" + .."textarea[0.2,1;10,10;code;Environment initialization code;"..minetest.formspec_escape(code).."]" + .."label[0,9.8;"..err.."]" + return form +end + +core.register_chatcommand("env_setup", { + params = "", + description = "Set up and modify AdvTrains LuaAutomation environment", + privs = {atlatc=true}, + func = function(name, param) + local env=atlatc.envs[param] + if not env then return false,"Invalid environment name!" end + minetest.show_formspec(name, "atlatc_envsetup_"..param, get_init_form(env, name)) + return true + end, +}) + +core.register_chatcommand("env_create", { + params = "", + description = "Create an AdvTrains LuaAutomation environment", + privs = {atlatc=true}, + func = function(name, param) + if not param or param=="" then return false, "Name required!" end + if atlatc.envs[param] then return false, "Environment already exists!" end + atlatc.envs[param] = atlatc.env_new(param) + return true, "Created environment '"..param.."'. Use '/env_setup "..param.."' to define global initialization code, or start building LuaATC components!" + end, +}) + + +minetest.register_on_player_receive_fields(function(player, formname, fields) + + local pname=player:get_player_name() + if not minetest.check_player_privs(pname, {atlatc=true}) then return end + + local envname=string.match(formname, "^atlatc_delconfirm_(.+)$") + if envname and fields.sure=="YES" then + atlatc.envs[envname]=nil + minetest.chat_send_player(pname, "Environment deleted!") + return + end + + envname=string.match(formname, "^atlatc_envsetup_(.+)$") + if not envname then return end + + local env=atlatc.envs[envname] + if not env then return end + + if fields.del then + minetest.show_formspec(pname, "atlatc_delconfirm_"..envname, "field[sure;"..minetest.formspec_escape("SURE TO DELETE ENVIRONMENT "..envname.."? Type YES (all uppercase) to continue or just quit form to cancel.")..";]") + return + end + + env.init_err=nil + if fields.code then + env.init_code=fields.code + end + if fields.run then + env:run_initcode() + minetest.show_formspec(pname, formname, get_init_form(env, pname)) + end +end) diff --git a/advtrains_modpack/advtrains_luaautomation/depends.txt b/advtrains_modpack/advtrains_luaautomation/depends.txt new file mode 100644 index 0000000..d5523e1 --- /dev/null +++ b/advtrains_modpack/advtrains_luaautomation/depends.txt @@ -0,0 +1,4 @@ +advtrains +advtrains_interlocking? +advtrains_line_automation? +mesecons_switch? \ No newline at end of file diff --git a/advtrains_modpack/advtrains_luaautomation/environment.lua b/advtrains_modpack/advtrains_luaautomation/environment.lua new file mode 100644 index 0000000..3e7787b --- /dev/null +++ b/advtrains_modpack/advtrains_luaautomation/environment.lua @@ -0,0 +1,362 @@ +------------- +-- lua sandboxed environment + +-- function to cross out functions and userdata. +-- modified from dump() +function atlatc.remove_invalid_data(o, nested) + if o==nil then return nil end + local valid_dt={["nil"]=true, boolean=true, number=true, string=true} + if type(o) ~= "table" then + --check valid data type + if not valid_dt[type(o)] then + return nil + end + return o + end + -- Contains table -> true/nil of currently nested tables + nested = nested or {} + if nested[o] then + return nil + end + nested[o] = true + for k, v in pairs(o) do + v = atlatc.remove_invalid_data(v, nested) + end + nested[o] = nil + return o +end + + +local env_proto={ + load = function(self, envname, data) + self.name=envname + self.sdata=data.sdata and atlatc.remove_invalid_data(data.sdata) or {} + self.fdata={} + self.init_code=data.init_code or "" + self.step_code=data.step_code or "" + end, + save = function(self) + -- throw any function values out of the sdata table + self.sdata = atlatc.remove_invalid_data(self.sdata) + return {sdata = self.sdata, init_code=self.init_code, step_code=self.step_code} + end, +} + +--Environment +--Code modified from mesecons_luacontroller (credit goes to Jeija and mesecons contributors) + +local safe_globals = { + "assert", "error", "ipairs", "next", "pairs", "select", + "tonumber", "tostring", "type", "unpack", "_VERSION" +} + +--print is actually minetest.chat_send_all() +--using advtrains.print_concat_table because it's cool +local function safe_print(t, ...) + local str=advtrains.print_concat_table({t, ...}) + minetest.log("action", "[atlatc] "..str) + minetest.chat_send_all(str) +end + +local function safe_date(f, t) + if not f then + -- fall back to old behavior + return(os.date("*t",os.time())) + else + --pass parameters + return os.date(f,t) + end +end + +-- string.rep(str, n) with a high value for n can be used to DoS +-- the server. Therefore, limit max. length of generated string. +local function safe_string_rep(str, n) + if #str * n > 2000 then + debug.sethook() -- Clear hook + error("string.rep: string length overflow", 2) + end + + return string.rep(str, n) +end + +-- string.find with a pattern can be used to DoS the server. +-- Therefore, limit string.find to patternless matching. +-- Note: Disabled security since there are enough security leaks and this would be unneccessary anyway to DoS the server +local function safe_string_find(...) + --if (select(4, ...)) ~= true then + -- debug.sethook() -- Clear hook + -- error("string.find: 'plain' (fourth parameter) must always be true for security reasons.") + --end + + return string.find(...) +end + +local mp=minetest.get_modpath("advtrains_luaautomation") + +local static_env = { + --core LUA functions + print = safe_print, + string = { + byte = string.byte, + char = string.char, + format = string.format, + len = string.len, + lower = string.lower, + upper = string.upper, + rep = safe_string_rep, + reverse = string.reverse, + sub = string.sub, + find = safe_string_find, + }, + math = { + abs = math.abs, + acos = math.acos, + asin = math.asin, + atan = math.atan, + atan2 = math.atan2, + ceil = math.ceil, + cos = math.cos, + cosh = math.cosh, + deg = math.deg, + exp = math.exp, + floor = math.floor, + fmod = math.fmod, + frexp = math.frexp, + huge = math.huge, + ldexp = math.ldexp, + log = math.log, + log10 = math.log10, + max = math.max, + min = math.min, + modf = math.modf, + pi = math.pi, + pow = math.pow, + rad = math.rad, + random = math.random, + sin = math.sin, + sinh = math.sinh, + sqrt = math.sqrt, + tan = math.tan, + tanh = math.tanh, + }, + table = { + concat = table.concat, + insert = table.insert, + maxn = table.maxn, + remove = table.remove, + sort = table.sort, + }, + os = { + clock = os.clock, + difftime = os.difftime, + time = os.time, + date = safe_date, + }, + POS = function(x,y,z) return {x=x, y=y, z=z} end, + getstate = advtrains.getstate, + setstate = advtrains.setstate, + is_passive = advtrains.is_passive, + --interrupts are handled per node, position unknown. (same goes for digilines) + --however external interrupts can be set here. + interrupt_pos = function(parpos, imesg) + local pos=atlatc.pcnaming.resolve_pos(parpos) + atlatc.interrupt.add(0, pos, {type="ext_int", ext_int=true, message=imesg}) + end, +} + +-- If interlocking is present, enable route setting functions +if advtrains.interlocking then + local function gen_checks(signal, route_name, noroutesearch) + assertt(route_name, "string") + local pos = atlatc.pcnaming.resolve_pos(signal) + local sigd = advtrains.interlocking.db.get_sigd_for_signal(pos) + if not sigd then + error("There's no signal at "..minetest.pos_to_string(pos)) + end + local tcbs = advtrains.interlocking.db.get_tcbs(sigd) + if not tcbs then + error("Inconsistent configuration, no tcbs for signal at "..minetest.pos_to_string(pos)) + end + + local routeid, route + if not noroutesearch then + for routeidt, routet in ipairs(tcbs.routes) do + if routet.name == route_name then + routeid = routeidt + route = routet + break + end + end + if not route then + error("No route called "..route_name.." at "..minetest.pos_to_string(pos)) + end + end + return pos, sigd, tcbs, routeid, route + end + + + static_env.can_set_route = function(signal, route_name) + local pos, sigd, tcbs, routeid, route = gen_checks(signal, route_name) + -- if route is already set on signal, return whether it's committed + if tcbs.routeset == routeid then + return tcbs.route_committed + end + -- actually try setting route (parameter 'true' designates try-run + local ok = advtrains.interlocking.route.set_route(sigd, route, true) + return ok + end + static_env.set_route = function(signal, route_name) + local pos, sigd, tcbs, routeid, route = gen_checks(signal, route_name) + return advtrains.interlocking.route.update_route(sigd, tcbs, routeid) + end + static_env.cancel_route = function(signal) + local pos, sigd, tcbs, routeid, route = gen_checks(signal, "", true) + return advtrains.interlocking.route.update_route(sigd, tcbs, nil, true) + end + static_env.get_aspect = function(signal) + local pos = atlatc.pcnaming.resolve_pos(signal) + return advtrains.interlocking.signal_get_aspect(pos) + end + static_env.set_aspect = function(signal, asp) + local pos = atlatc.pcnaming.resolve_pos(signal) + return advtrains.interlocking.signal_set_aspect(pos) + end +end + +-- Lines-specific: +if advtrains.lines then + local atlrwt = advtrains.lines.rwt + static_env.rwt = { + now = atlrwt.now, + new = atlrwt.new, + copy = atlrwt.copy, + to_table = atlrwt.to_table, + to_secs = atlrwt.to_secs, + to_string = atlrwt.to_string, + add = atlrwt.add, + diff = atlrwt.diff, + sub = atlrwt.sub, + adj_diff = atlrwt.adj_diff, + adjust_cycle = atlrwt.adjust_cycle, + adjust = atlrwt.adjust, + to_string = atlrwt.to_string, + get_time_until = atlrwt.get_time_until, + next_rpt = atlrwt.next_rpt, + last_rpt = atlrwt.last_rpt, + time_from_last_rpt = atlrwt.time_from_last_rpt, + time_to_next_rpt = atlrwt.time_to_next_rpt, + } +end + +for _, name in pairs(safe_globals) do + static_env[name] = _G[name] +end + + +--The environment all code calls get is a table that has set static_env as metatable. +--In general, every variable is local to a single code chunk, but kept persistent over code re-runs. Data is also saved, but functions and userdata and circular references are removed +--Init code and step code's environments are not saved +-- S - Table that can contain any save data global to the environment. Will be saved statically. Can't contain functions or userdata or circular references. +-- F - Table global to the environment, can contain volatile data that is deleted when server quits. +-- The init code should populate this table with functions and other definitions. + +local proxy_env={} +--proxy_env gets a new metatable in every run, but is the shared environment of all functions ever defined. + +-- returns: true, fenv if successful; nil, error if error +function env_proto:execute_code(localenv, code, evtdata, customfct) + local metatbl ={ + __index = function(t, i) + if i=="S" then + return self.sdata + elseif i=="F" then + return self.fdata + elseif i=="event" then + return evtdata + elseif customfct and customfct[i] then + return customfct[i] + elseif localenv and localenv[i] then + return localenv[i] + end + return static_env[i] + end, + __newindex = function(t, i, v) + if i=="S" or i=="F" or i=="event" or (customfct and customfct[i]) or static_env[i] then + debug.sethook() + error("Trying to overwrite environment contents") + end + localenv[i]=v + end, + } + setmetatable(proxy_env, metatbl) + local fun, err=loadstring(code) + if not fun then + return false, err + end + + setfenv(fun, proxy_env) + local succ, data = pcall(fun) + if succ then + data=localenv + end + return succ, data +end + +function env_proto:run_initcode() + if self.init_code and self.init_code~="" then + local old_fdata=self.fdata + self.fdata = {} + atprint("[atlatc]Running initialization code for environment '"..self.name.."'") + local succ, err = self:execute_code({}, self.init_code, {type="init", init=true}) + if not succ then + atwarn("[atlatc]Executing InitCode for '"..self.name.."' failed:"..err) + self.init_err=err + if old_fdata then + self.fdata=old_fdata + atwarn("[atlatc]The 'F' table has been restored to the previous state.") + end + end + end +end +function env_proto:run_stepcode() + if self.step_code and self.step_code~="" then + local succ, err = self:execute_code({}, self.step_code, nil, {}) + if not succ then + --TODO + end + end +end + +--- class interface + +function atlatc.env_new(name) + local newenv={ + name=name, + init_code="", + step_code="", + sdata={} + } + setmetatable(newenv, {__index=env_proto}) + return newenv +end +function atlatc.env_load(name, data) + local newenv={} + setmetatable(newenv, {__index=env_proto}) + newenv:load(name, data) + return newenv +end + +function atlatc.run_initcode() + for envname, env in pairs(atlatc.envs) do + env:run_initcode() + end +end +function atlatc.run_stepcode() + for envname, env in pairs(atlatc.envs) do + env:run_stepcode() + end +end + + + + diff --git a/advtrains_modpack/advtrains_luaautomation/init.lua b/advtrains_modpack/advtrains_luaautomation/init.lua new file mode 100644 index 0000000..0257aef --- /dev/null +++ b/advtrains_modpack/advtrains_luaautomation/init.lua @@ -0,0 +1,110 @@ +-- advtrains_luaautomation/init.lua +-- Lua automation features for advtrains +-- Uses global table 'atlatc' (AdvTrains_LuaATC) + +-- Boilerplate to support localized strings if intllib mod is installed. +if minetest.get_modpath("intllib") then + atltrans = intllib.Getter() +else + atltrans = function(s,a,...)a={a,...}return s:gsub("@(%d+)",function(n)return a[tonumber(n)]end)end +end + +--Privilege +--Only trusted players should be enabled to build stuff which can break the server. + +atlatc = { envs = {}} + +minetest.register_privilege("atlatc", { description = "Player can place and modify LUA ATC components. Grant with care! Allows to execute bad LUA code.", give_to_singleplayer = false, default= false }) + +--assertt helper. error if a variable is not of a type +function assertt(var, typ) + if type(var)~=typ then + error("Assertion failed, variable has to be of type "..typ) + end +end + +local mp=minetest.get_modpath("advtrains_luaautomation") +if not mp then + error("Mod name error: Mod folder is not named 'advtrains_luaautomation'!") +end +dofile(mp.."/environment.lua") +dofile(mp.."/interrupt.lua") +dofile(mp.."/active_common.lua") +dofile(mp.."/atc_rail.lua") +dofile(mp.."/operation_panel.lua") +dofile(mp.."/pcnaming.lua") +if mesecon then + dofile(mp.."/p_mesecon_iface.lua") +end +dofile(mp.."/chatcmds.lua") + + +local filename=minetest.get_worldpath().."/advtrains_luaautomation" + +function atlatc.load() + local file, err = io.open(filename, "r") + if not file then + minetest.log("error", " Failed to read advtrains_luaautomation save data from file "..filename..": "..(err or "Unknown Error")) + else + atprint("luaautomation reading file:",filename) + local tbl = minetest.deserialize(file:read("*a")) + if type(tbl) == "table" then + if tbl.version==1 then + for envname, data in pairs(tbl.envs) do + atlatc.envs[envname]=atlatc.env_load(envname, data) + end + atlatc.active.load(tbl.active) + atlatc.interrupt.load(tbl.interrupt) + atlatc.pcnaming.load(tbl.pcnaming) + end + else + minetest.log("error", " Failed to read advtrains_luaautomation save data from file "..filename..": Not a table!") + end + file:close() + end + -- run init code of all environments + atlatc.run_initcode() +end + + +atlatc.save = function() + --versions: + -- 1 - Initial save format. + + local envdata={} + for envname, env in pairs(atlatc.envs) do + envdata[envname]=env:save() + end + local save_tbl={ + version = 1, + envs=envdata, + active = atlatc.active.save(), + interrupt = atlatc.interrupt.save(), + pcnaming = atlatc.pcnaming.save(), + } + + local datastr = minetest.serialize(save_tbl) + if not datastr then + minetest.log("error", " Failed to save advtrains_luaautomation save data to file "..filename..": Can't serialize!") + return + end + local file, err = io.open(filename, "w") + if err then + minetest.log("error", " Failed to save advtrains_luaautomation save data to file "..filename..": "..(err or "Unknown Error")) + return + end + file:write(datastr) + file:close() +end + + +-- globalstep for step code +local timer, step_int=0, 2 + +function atlatc.mainloop_stepcode(dtime) + timer=timer+dtime + if timer>step_int then + timer=0 + atlatc.run_stepcode() + end +end diff --git a/advtrains_modpack/advtrains_luaautomation/interrupt.lua b/advtrains_modpack/advtrains_luaautomation/interrupt.lua new file mode 100644 index 0000000..718b8c7 --- /dev/null +++ b/advtrains_modpack/advtrains_luaautomation/interrupt.lua @@ -0,0 +1,46 @@ +-- interrupt.lua +-- implements interrupt queue + +--to be saved: pos and evtdata +local iq={} +local queue={} +local timer=0 +local run=false + +function iq.load(data) + local d=data or {} + queue = d.queue or {} + timer = d.timer or 0 +end +function iq.save() + return {queue = queue, timer=timer} +end + +function iq.add(t, pos, evtdata) + queue[#queue+1]={t=t+timer, p=pos, e=evtdata} + run=true +end + +function iq.mainloop(dtime) + timer=timer + math.min(dtime, 0.2) + for i=1,#queue do + local qe=queue[i] + if not qe then + table.remove(queue, i) + i=i-1 + elseif timer>qe.t then + local pos, evtdata=queue[i].p, queue[i].e + local node=advtrains.ndb.get_node(pos) + local ndef=minetest.registered_nodes[node.name] + if ndef and ndef.luaautomation and ndef.luaautomation.fire_event then + ndef.luaautomation.fire_event(pos, evtdata) + end + table.remove(queue, i) + i=i-1 + end + end +end + + + +atlatc.interrupt=iq diff --git a/advtrains_modpack/advtrains_luaautomation/operation_panel.lua b/advtrains_modpack/advtrains_luaautomation/operation_panel.lua new file mode 100644 index 0000000..d0dd567 --- /dev/null +++ b/advtrains_modpack/advtrains_luaautomation/operation_panel.lua @@ -0,0 +1,28 @@ + +local function on_punch(pos, player) + atlatc.interrupt.add(0, pos, {type="punch", punch=true}) +end + + +minetest.register_node("advtrains_luaautomation:oppanel", { + drawtype = "normal", + tiles={"atlatc_oppanel.png"}, + description = "LuaAutomation operation panel", + groups = { + cracky = 1, + save_in_nodedb=1, + }, + after_place_node = atlatc.active.after_place_node, + after_dig_node = atlatc.active.after_dig_node, + on_receive_fields = atlatc.active.on_receive_fields, + on_punch = on_punch, + luaautomation = { + fire_event=atlatc.active.run_in_env + }, + digiline = { + receptor = {}, + effector = { + action = atlatc.active.on_digiline_receive + }, + }, +}) diff --git a/advtrains_modpack/advtrains_luaautomation/p_display.lua b/advtrains_modpack/advtrains_luaautomation/p_display.lua new file mode 100644 index 0000000..e69de29 diff --git a/advtrains_modpack/advtrains_luaautomation/p_mesecon_iface.lua b/advtrains_modpack/advtrains_luaautomation/p_mesecon_iface.lua new file mode 100644 index 0000000..95e5d8a --- /dev/null +++ b/advtrains_modpack/advtrains_luaautomation/p_mesecon_iface.lua @@ -0,0 +1,53 @@ +-- p_mesecon_iface.lua +-- Mesecons interface by overriding the switch + +if not mesecon then return end + +minetest.override_item("mesecons_switch:mesecon_switch_off", { + groups = { + dig_immediate=2, + save_in_nodedb=1, + }, + on_rightclick = function (pos, node) + advtrains.ndb.swap_node(pos, {name="mesecons_switch:mesecon_switch_on", param2=node.param2}) + mesecon.receptor_on(pos) + minetest.sound_play("mesecons_switch", {pos=pos}) + end, + on_updated_from_nodedb = function(pos, node) + mesecon.receptor_off(pos) + end, + luaautomation = { + getstate = "off", + setstate = function(pos, node, newstate) + if newstate=="on" then + advtrains.ndb.swap_node(pos, {name="mesecons_switch:mesecon_switch_on", param2=node.param2}) + mesecon.receptor_on(pos) + end + end, + }, +}) + +minetest.override_item("mesecons_switch:mesecon_switch_on", { + groups = { + dig_immediate=2, + save_in_nodedb=1, + not_in_creative_inventory=1, + }, + on_rightclick = function (pos, node) + advtrains.ndb.swap_node(pos, {name="mesecons_switch:mesecon_switch_off", param2=node.param2}) + mesecon.receptor_off(pos) + minetest.sound_play("mesecons_switch", {pos=pos}) + end, + on_updated_from_nodedb = function(pos, node) + mesecon.receptor_on(pos) + end, + luaautomation = { + getstate = "on", + setstate = function(pos, node, newstate) + if newstate=="off" then + advtrains.ndb.swap_node(pos, {name="mesecons_switch:mesecon_switch_off", param2=node.param2}) + mesecon.receptor_off(pos) + end + end, + }, +}) diff --git a/advtrains_modpack/advtrains_luaautomation/passive_api.txt b/advtrains_modpack/advtrains_luaautomation/passive_api.txt new file mode 100644 index 0000000..9852e94 --- /dev/null +++ b/advtrains_modpack/advtrains_luaautomation/passive_api.txt @@ -0,0 +1,24 @@ +Lua Automation - Passive Component API + +Passive components are nodes that do not have code running in them. However, active components can query these and request actions from them. Examples: +Switches +Signals +Displays +Mesecon Transmitter +Those passive components can also be used inside interlocking systems. + +All passive components have a table called 'advtrains' in their node definition and have the group 'save_in_nodedb' set, so they work in unloaded chunks. +Example for a switch: +advtrains = { + getstate = function(pos, node) + return "st" + end, + -- OR + getstate = "st", + + setstate = function(pos, node, newstate) + if newstate=="cr" then + advtrains.ndb.swap_node(pos, ) + end + end +} \ No newline at end of file diff --git a/advtrains_modpack/advtrains_luaautomation/pcnaming.lua b/advtrains_modpack/advtrains_luaautomation/pcnaming.lua new file mode 100644 index 0000000..427585d --- /dev/null +++ b/advtrains_modpack/advtrains_luaautomation/pcnaming.lua @@ -0,0 +1,76 @@ +--pcnaming.lua +--a.k.a Passive component naming +--Allows to assign names to passive components, so they can be called like: +--setstate("iamasignal", "green") +atlatc.pcnaming={name_map={}} +function atlatc.pcnaming.load(stuff) + if type(stuff)=="table" then + atlatc.pcnaming.name_map=stuff + end +end +function atlatc.pcnaming.save() + return atlatc.pcnaming.name_map +end + +function atlatc.pcnaming.resolve_pos(pos, func_name) + if type(pos)=="string" then + local e = atlatc.pcnaming.name_map[pos] + if e then return e end + elseif type(pos)=="table" and pos.x and pos.y and pos.z then + return pos + end + error("Invalid position supplied to " .. (func_name or "???")..": " .. dump(pos)) +end + +minetest.register_craftitem("advtrains_luaautomation:pcnaming",{ + description = attrans("Passive Component Naming Tool\n\nRight-click to name a passive component."), + groups = {cracky=1}, -- key=name, value=rating; rating=1..3. + inventory_image = "atlatc_pcnaming.png", + wield_image = "atlatc_pcnaming.png", + stack_max = 1, + on_place = function(itemstack, placer, pointed_thing) + local pname = placer:get_player_name() + if not pname then + return + end + if not minetest.check_player_privs(pname, {atlatc=true}) then + minetest.chat_send_player(pname, "Missing privilege: atlatc") + return + end + if pointed_thing.type=="node" then + local pos=pointed_thing.under + if advtrains.is_protected(pos, pname) then + minetest.record_protection_violation(pos, pname) + return + end + local node = advtrains.ndb.get_node(pos) + if node.name and (minetest.get_item_group(node.name, "advtrains_signal")>0 or advtrains.is_passive(pos)) then + --look if this one already has a name + local pn="" + for name, npos in pairs(atlatc.pcnaming.name_map) do + if vector.equals(npos, pos) then + pn=name + end + end + minetest.show_formspec(pname, "atlatc_naming_"..minetest.pos_to_string(pos), "field[pn;Set name of component (empty to clear);"..pn.."]") + end + end + end, +}) +minetest.register_on_player_receive_fields(function(player, formname, fields) + local pts=string.match(formname, "^atlatc_naming_(.+)") + if pts then + local pos=minetest.string_to_pos(pts) + if fields.pn then + --first remove all occurences + for name, npos in pairs(atlatc.pcnaming.name_map) do + if vector.equals(npos, pos) then + atlatc.pcnaming.name_map[name]=nil + end + end + if fields.pn~="" then + atlatc.pcnaming.name_map[fields.pn]=pos + end + end + end +end) diff --git a/advtrains_modpack/advtrains_luaautomation/textures/atlatc_oppanel.png b/advtrains_modpack/advtrains_luaautomation/textures/atlatc_oppanel.png new file mode 100644 index 0000000..96eb30e Binary files /dev/null and b/advtrains_modpack/advtrains_luaautomation/textures/atlatc_oppanel.png differ diff --git a/advtrains_modpack/advtrains_luaautomation/textures/atlatc_pcnaming.png b/advtrains_modpack/advtrains_luaautomation/textures/atlatc_pcnaming.png new file mode 100644 index 0000000..3fccdfc Binary files /dev/null and b/advtrains_modpack/advtrains_luaautomation/textures/atlatc_pcnaming.png differ diff --git a/bees/depends.txt b/bees/depends.txt new file mode 100644 index 0000000..53a9e75 --- /dev/null +++ b/bees/depends.txt @@ -0,0 +1,3 @@ +default +intllib? +lucky_block? diff --git a/bees/description.txt b/bees/description.txt new file mode 100644 index 0000000..307d742 --- /dev/null +++ b/bees/description.txt @@ -0,0 +1 @@ +This mod adds bees and beehives into minetest diff --git a/bees/init.lua b/bees/init.lua new file mode 100644 index 0000000..b53278f --- /dev/null +++ b/bees/init.lua @@ -0,0 +1,1243 @@ +-- Mod: BEES +-- Author: Bas080 (Tweaked by TenPlus1) +-- License: MIT + + +-- Intllib support +local S +if minetest.global_exists("intllib") then + S = intllib.Getter() +else + S = function(s) return s end +end + + +-- FUNCTIONS + +local floor = math.floor +local random = math.random + +local hive_wild = function(pos, grafting) + + local spos = pos.x .. "," .. pos.y .. "," ..pos.z + local formspec = "size[8,9]" + .. "list[nodemeta:".. spos .. ";combs;1.5,3;5,1;]" + .. "list[current_player;main;0,5;8,4;]" + + if grafting then + formspec = formspec .."list[nodemeta:".. spos .. ";queen;3.5,1;1,1;]" + end + + return formspec +end + + +local hive_artificial = function(pos) + + local spos = pos.x..","..pos.y..","..pos.z + local formspec = "size[8,9]" + .. "list[nodemeta:"..spos..";queen;3.5,1;1,1;]" + .. "list[nodemeta:"..spos..";frames;0,3;8,1;]" + .. "list[current_player;main;0,5;8,4;]" + + return formspec +end + + +local polinate_flower = function(pos, flower) + + local spawn_pos = { + x = pos.x + random(-3, 3), + y = pos.y + random(-3, 3), + z = pos.z + random(-3, 3) + } + local floor_pos = {x = spawn_pos.x, y = spawn_pos.y - 1, z = spawn_pos.z} + local spawn = minetest.get_node(spawn_pos).name + local floor = minetest.get_node(floor_pos).name + + if floor == "group:soil" and spawn == "air" then + minetest.set_node(spawn_pos, {name = flower}) + end +end + + +-- NODES + +minetest.register_node("bees:extractor", { + description = S("Honey Extractor"), + tiles = { + "bees_extractor.png", "bees_extractor.png", "bees_extractor.png", + "bees_extractor.png", "bees_extractor.png", "bees_extractor_front.png" + }, + paramtype2 = "facedir", + groups = { + choppy = 2, oddly_breakable_by_hand = 2, tubedevice = 1, + tubedevice_receiver = 1 + }, + + on_construct = function(pos, node) + + local meta = minetest.get_meta(pos) + local inv = meta:get_inventory() + local pos = pos.x .. "," .. pos.y .. "," .. pos.z + + inv:set_size("frames_filled", 1) + inv:set_size("frames_emptied", 1) + inv:set_size("bottles_empty", 1) + inv:set_size("bottles_full", 1) + inv:set_size("wax", 1) + + meta:set_string("formspec", "size[8,9]" + --input + .. "list[nodemeta:"..pos..";frames_filled;2,1;1,1;]" + .. "list[nodemeta:"..pos..";bottles_empty;2,3;1,1;]" + --output + .. "list[nodemeta:"..pos..";frames_emptied;5,0.5;1,1;]" + .. "list[nodemeta:"..pos..";wax;5,2;1,1;]" + .. "list[nodemeta:"..pos..";bottles_full;5,3.5;1,1;]" + --player inventory + .. "list[current_player;main;0,5;8,4;]" + ) + end, + + on_timer = function(pos, node) + + local meta = minetest.get_meta(pos) + local inv = meta:get_inventory() + + if not inv:contains_item("frames_filled", "bees:frame_full") + or not inv:contains_item("bottles_empty", "vessels:glass_bottle") then + return + end + + if inv:room_for_item("frames_emptied", "bees:frame_empty") + and inv:room_for_item("wax", "bees:wax") + and inv:room_for_item("bottles_full", "bees:bottle_honey") then + + --add to output + inv:add_item("frames_emptied", "bees:frame_empty") + inv:add_item("wax", "bees:wax") + inv:add_item("bottles_full", "bees:bottle_honey") + + --remove from input + inv:remove_item("bottles_empty", "vessels:glass_bottle") + inv:remove_item("frames_filled", "bees:frame_full") + + local p = { + x = pos.x + random() - 0.5, + y = pos.y + random() - 0.5, + z = pos.z + random() - 0.5 + } + + --wax flying all over the place + minetest.add_particle({ + pos = {x = pos.x, y = pos.y, z = pos.z}, + vel = { + x = random(-1, 1), + y = random(4), + z = random(-1, 1) + }, + acc = {x = 0, y = -6, z = 0}, + expirationtime = 2, + size = random(1, 3), + collisiondetection = false, + texture = "bees_wax_particle.png", + }) + + local timer = minetest.get_node_timer(pos) + + timer:start(5) + else + local timer = minetest.get_node_timer(pos) + + timer:start(5) -- Try again in 5 seconds (was 1) + end + end, + + tube = { + insert_object = function(pos, node, stack, direction) + + local meta = minetest.get_meta(pos) + local inv = meta:get_inventory() + local timer = minetest.get_node_timer(pos) + + if stack:get_name() == "bees:frame_full" then + + if inv:is_empty("frames_filled") then + timer:start(5) + end + + return inv:add_item("frames_filled",stack) + + elseif stack:get_name() == "vessels:glass_bottle" then + + if inv:is_empty("bottles_empty") then + timer:start(5) + end + + return inv:add_item("bottles_empty",stack) + end + + return stack + end, + + can_insert = function(pos,node,stack,direction) + + local meta = minetest.get_meta(pos) + local inv = meta:get_inventory() + + if stack:get_name() == "bees:frame_full" then + + return inv:room_for_item("frames_filled",stack) + + elseif stack:get_name() == "vessels:glass_bottle" then + + return inv:room_for_item("bottles_empty",stack) + end + + return false + end, + + input_inventory = {"frames_emptied", "bottles_full", "wax"}, + + connect_sides = {left = 1, right = 1, back = 1, front = 1, bottom = 1, top = 1} + }, + + on_metadata_inventory_put = function(pos, listname, index, stack, player) + + local timer = minetest.get_node_timer(pos) + local meta = minetest.get_meta(pos) + local inv = meta:get_inventory() + + -- if inventory empty start timer for honey bottle, empty frame and wax + if inv:get_stack(listname, 1):get_count() == stack:get_count() then + timer:start(5) + end + end, + + allow_metadata_inventory_put = function(pos, listname, index, stack, player) + + if (listname == "bottles_empty" and stack:get_name() == "vessels:glass_bottle") + or (listname == "frames_filled" and stack:get_name() == "bees:frame_full") then + return stack:get_count() + else + return 0 + end + end, + + allow_metadata_inventory_move = function(pos, from_list, from_index, to_list, to_index, count, player) + return 0 + end, + + allow_metadata_inventory_take = function(pos, listname, index, stack, player) + + if player and minetest.is_protected(pos, player:get_player_name()) then + return 0 + end + + return stack:get_count() + end, +}) + + +minetest.register_node("bees:bees", { + description = S("Bees"), + drawtype = "plantlike", + paramtype = "light", + groups = {not_in_creative_inventory = 1}, + tiles = { + { + name = "bees_strip.png", + animation = { + type = "vertical_frames", aspect_w = 16, aspect_h = 16, length = 2.0 + } + } + }, + damage_per_second = 1, + walkable = false, + buildable_to = true, + selection_box = { + type = "fixed", + fixed = { + {-0.3, -0.4, -0.3, 0.3, 0.4, 0.3}, + } + }, + + on_punch = function(pos, node, puncher) + + puncher:set_hp(puncher:get_hp() - 2) + end, +}) + + +minetest.register_node("bees:hive_wild", { + description = S("Wild Bee Hive"), + tiles = { --Neuromancer"s base texture + "bees_hive_wild.png", "bees_hive_wild.png", "bees_hive_wild.png", + "bees_hive_wild.png", "bees_hive_wild_bottom.png" + }, + drawtype = "nodebox", + paramtype = "light", + paramtype2 = "wallmounted", + drop = { + max_items = 6, + items = { + { items = {"bees:honey_comb"}, rarity = 5} + } + }, + groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 3, attached_node = 1}, + node_box = { --VanessaE's wild hive nodebox contribution + type = "fixed", + fixed = { + {-0.250000,-0.500000,-0.250000,0.250000,0.375000,0.250000}, --NodeBox 2 + {-0.312500,-0.375000,-0.312500,0.312500,0.250000,0.312500}, --NodeBox 4 + {-0.375000,-0.250000,-0.375000,0.375000,0.125000,0.375000}, --NodeBox 5 + {-0.062500,-0.500000,-0.062500,0.062500,0.500000,0.062500}, --NodeBox 6 + } + }, + + on_timer = function(pos) + + local meta = minetest.get_meta(pos) + local inv = meta:get_inventory() + local timer = minetest.get_node_timer(pos) + local rad = 10 + local flowers = minetest.find_nodes_in_area( + {x = pos.x - rad, y = pos.y - rad, z = pos.z - rad}, + {x = pos.x + rad, y = pos.y + rad, z = pos.z + rad}, + "group:flower") + + -- Queen dies if no flowers nearby + if #flowers == 0 then + + inv:set_stack("queen", 1, "") + + meta:set_string("infotext", S("Colony died, not enough flowers in area!")) + + return + end + + -- Requires 2 or more flowers to make honey + if #flowers < 3 then return end + + local flower = flowers[random(#flowers)] + + polinate_flower(flower, minetest.get_node(flower).name) + + local stacks = inv:get_list("combs") + + for k, v in pairs(stacks) do + + if inv:get_stack("combs", k):is_empty() then + + inv:set_stack("combs", k, "bees:honey_comb") + + timer:start(1000 / #flowers) + + return + end + end + --what to do if all combs are filled + end, + + on_construct = function(pos) + + minetest.get_node(pos).param2 = 0 + + local meta = minetest.get_meta(pos) + local inv = meta:get_inventory() + local timer = minetest.get_node_timer(pos) + + meta:set_int("agressive", 1) + + timer:start(100 + random(100)) + + inv:set_size("queen", 1) + inv:set_size("combs", 5) + inv:set_stack("queen", 1, "bees:queen") + + for i = 1, random(3) do + inv:set_stack("combs", i, "bees:honey_comb") + end + end, + + on_punch = function(pos, node, puncher) + + local meta = minetest.get_meta(pos) + local inv = meta:get_inventory() + + if inv:contains_item("queen", "bees:queen") then + + puncher:set_hp(puncher:get_hp() - 4) + end + end, + + on_metadata_inventory_take = function(pos, listname, index, stack, taker) + + local meta = minetest.get_meta(pos) + local inv = meta:get_inventory() + local timer= minetest.get_node_timer(pos) + + if listname == "combs" and inv:contains_item("queen", "bees:queen") then + + timer:start(10) + + taker:set_hp(taker:get_hp() - 2) + end + end, + + on_metadata_inventory_put = function(pos, listname, index, stack, taker) + + local timer = minetest.get_node_timer(pos) + + if not timer:is_started() then + timer:start(10) + end + end, + + allow_metadata_inventory_put = function(pos, listname, index, stack, player) + + --restart the colony by adding a queen + if listname == "queen" and stack:get_name() == "bees:queen" then + return 1 + else + return 0 + end + end, + + on_rightclick = function(pos, node, clicker, itemstack, pointed_thing) + + minetest.show_formspec(clicker:get_player_name(), + "bees:hive_artificial", + hive_wild(pos, (itemstack:get_name() == "bees:grafting_tool")) + ) + + local meta = minetest.get_meta(pos) + local inv = meta:get_inventory() + + if meta:get_int("agressive") == 1 + and inv:contains_item("queen", "bees:queen") then + + clicker:set_hp(clicker:get_hp() - 4) + else + meta:set_int("agressive", 1) + end + end, + + can_dig = function(pos,player) + + local meta = minetest.get_meta(pos) + local inv = meta:get_inventory() + + if inv:is_empty("queen") and inv:is_empty("combs") then + return true + else + return false + end + end, + + after_dig_node = function(pos, oldnode, oldmetadata, user) + + local wielded + + if user:get_wielded_item() ~= nil then + wielded = user:get_wielded_item() + else + return + end + + if "bees:grafting_tool" == wielded:get_name() then + + local inv = user:get_inventory() + + if inv then + inv:add_item("main", ItemStack("bees:queen")) + end + end + end +}) + + +minetest.register_node("bees:hive_artificial", { + description = S("Artificial Bee Hive"), + tiles = { + "default_wood.png", "default_wood.png", "default_wood.png", + "default_wood.png", "default_wood.png", "bees_hive_artificial.png" + }, + drawtype = "nodebox", + paramtype = "light", + paramtype2 = "facedir", + groups = { + snappy = 1, choppy = 2, oddly_breakable_by_hand = 2, + flammable = 3, wood = 1 + }, + sounds = default.node_sound_wood_defaults(), + node_box = { + type = "fixed", + fixed = { + {-4/8, 2/8, -4/8, 4/8, 3/8, 4/8}, + {-3/8, -4/8, -2/8, 3/8, 2/8, 3/8}, + {-3/8, 0/8, -3/8, 3/8, 2/8, -2/8}, + {-3/8, -4/8, -3/8, 3/8, -1/8, -2/8}, + {-3/8, -1/8, -3/8, -1/8, 0/8, -2/8}, + {1/8, -1/8, -3/8, 3/8, 0/8, -2/8}, + } + }, + + on_construct = function(pos) + + local timer = minetest.get_node_timer(pos) + local meta = minetest.get_meta(pos) + local inv = meta:get_inventory() + + meta:set_int("agressive", 1) + + inv:set_size("queen", 1) + inv:set_size("frames", 8) + + meta:set_string("infotext", S("Requires Queen bee to function")) + end, + + on_rightclick = function(pos, node, clicker, itemstack) + + if minetest.is_protected(pos, clicker:get_player_name()) then + return + end + + minetest.show_formspec(clicker:get_player_name(), + "bees:hive_artificial", + hive_artificial(pos) + ) + + local meta = minetest.get_meta(pos) + local inv = meta:get_inventory() + + if meta:get_int("agressive") == 1 + and inv:contains_item("queen", "bees:queen") then + + clicker:set_hp(clicker:get_hp() - 4) + else + meta:set_int("agressive", 1) + end + end, + + on_timer = function(pos,elapsed) + + local meta = minetest.get_meta(pos) + local inv = meta:get_inventory() + local timer = minetest.get_node_timer(pos) + + if inv:contains_item("queen", "bees:queen") then + + if inv:contains_item("frames", "bees:frame_empty") then + + timer:start(30) + + local rad = 10 + local flowers = minetest.find_nodes_in_area( + {x = pos.x - rad, y = pos.y - rad, z = pos.z - rad}, + {x = pos.x + rad, y = pos.y + rad, z = pos.z + rad}, + "group:flower") + + local progress = meta:get_int("progress") + + progress = progress + #flowers + + meta:set_int("progress", progress) + + if progress > 1000 then + + local flower = flowers[random(#flowers)] + + polinate_flower(flower, minetest.get_node(flower).name) + + local stacks = inv:get_list("frames") + + for k, v in pairs(stacks) do + + if inv:get_stack("frames", k):get_name() == "bees:frame_empty" then + + meta:set_int("progress", 0) + + inv:set_stack("frames", k, "bees:frame_full") + + return + end + end + else + meta:set_string("infotext", S("progress:") + .. " " .. progress .. " + " .. #flowers .. " / 1000") + end + else + meta:set_string("infotext", S("Does not have empty frame(s)")) + + timer:stop() + end + end + end, + + on_metadata_inventory_take = function(pos, listname, index, stack, player) + + if listname == "queen" then + + local timer = minetest.get_node_timer(pos) + local meta = minetest.get_meta(pos) + + meta:set_string("infotext", S("Requires Queen bee to function")) + + timer:stop() + end + end, + + allow_metadata_inventory_move = function(pos, from_list, from_index, to_list, to_index, count, player) + + local inv = minetest.get_meta(pos):get_inventory() + + if from_list == to_list then + + if inv:get_stack(to_list, to_index):is_empty() then + return 1 + else + return 0 + end + else + return 0 + end + end, + + on_metadata_inventory_put = function(pos, listname, index, stack, player) + + local meta = minetest.get_meta(pos) + local inv = meta:get_inventory() + local timer = minetest.get_node_timer(pos) + + if listname == "queen" or listname == "frames" then + + meta:set_string("queen", stack:get_name()) + meta:set_string("infotext", S("Queen inserted, now for the empty frames")) + + if inv:contains_item("frames", "bees:frame_empty") then + + timer:start(30) + + meta:set_string("infotext", S("Bees are aclimating")) + end + end + end, + + allow_metadata_inventory_put = function(pos, listname, index, stack, player) + + if not minetest.get_meta(pos):get_inventory():get_stack(listname, index):is_empty() then return 0 end + + if listname == "queen" then + + if stack:get_name():match("bees:queen*") then + return 1 + end + + elseif listname == "frames" then + + if stack:get_name() == ("bees:frame_empty") then + return 1 + end + end + + return 0 + end, +}) + +-- ABMS + +minetest.register_abm({ + nodenames = {"bees:hive_artificial", "bees:hive_wild", "bees:hive_industrial"}, + interval = 10, + chance = 4, + + action = function(pos, node) + + -- Bee particle + minetest.add_particle({ + pos = {x = pos.x, y = pos.y, z = pos.z}, + vel = { + x = (random() - 0.5) * 5, + y = (random() - 0.5) * 5, + z = (random() - 0.5) * 5 + }, + acc = { + x = random() - 0.5, + y = random() - 0.5, + z = random() - 0.5 + }, + expirationtime = random(2.5), + size = random(3), + collisiondetection = true, + texture = "bees_particle_bee.png", + }) + + -- floating hive check and removal + if node.name == "bees:hive_wild" then + + local num = #minetest.find_nodes_in_area( + {x = pos.x - 1, y = pos.y - 1, z = pos.z - 1}, + {x = pos.x + 1, y = pos.y + 1, z = pos.z + 1}, + {"air"}) + + if num and num > 25 then + minetest.remove_node(pos) + end + end + end, +}) + + +-- spawn abm. This should be changed to a more realistic type of spawning +minetest.register_abm({ + nodenames = {"group:leaves"}, + neighbors = {"air"}, + interval = 800,--1600, + chance = 10,--20, + + action = function(pos, node) + + if floor(pos.x / 40) ~= pos.x / 40 + or floor(pos.z / 40) ~= pos.z / 40 + or floor(pos.y / 5) ~= pos.y / 5 then return end + + local p = {x = pos.x, y = pos.y - 1, z = pos.z} + local nod = minetest.get_node_or_nil(p) + local def = nod and minetest.registered_nodes[nod.name] + + if not def or def.walkable then return end + + if minetest.find_node_near(p, 5, "group:flora") then + minetest.add_node(p, {name = "bees:hive_wild"}) + end + end, +}) + + +-- spawning bees around bee hive +minetest.register_abm({ + nodenames = {"bees:hive_wild", "bees:hive_artificial", "bees:hive_industrial"}, + neighbors = {"group:flowers", "group:leaves"}, + interval = 30, + chance = 4, + + action = function(pos, node, _, _) + + local p = { + x = pos.x + random(-5, 5), + y = pos.y - random(0, 3), + z = pos.z + random(-5, 5) + } + + if minetest.get_node(p).name == "air" then + minetest.add_node(p, {name="bees:bees"}) + end + end, +}) + + +-- remove bees +minetest.register_abm({ + nodenames = {"bees:bees"}, + interval = 30, + chance = 5, + + action = function(pos, node, _, _) + minetest.remove_node(pos) + end, +}) + + +-- ITEMS + +minetest.register_craftitem("bees:frame_empty", { + description = S("Empty hive frame"), + inventory_image = "bees_frame_empty.png", + stack_max = 24, +}) + +minetest.register_craftitem("bees:frame_full", { + description = S("Filled hive frame"), + inventory_image = "bees_frame_full.png", + stack_max = 12, +}) + +minetest.register_craftitem("bees:bottle_honey", { + description = S("Honey bottle"), + inventory_image = "bees_bottle_honey.png", + stack_max = 12, + on_use = minetest.item_eat(3, "vessels:glass_bottle"), + groups = {vessel = 1}, +}) + +minetest.register_craftitem("bees:wax", { + description = S("Bees wax"), + inventory_image = "bees_wax.png", + stack_max = 48, +}) + +minetest.register_craftitem("bees:honey_comb", { + description = S("honey comb"), + inventory_image = "bees_comb.png", + on_use = minetest.item_eat(2), + stack_max = 8, +}) + +minetest.register_craftitem("bees:queen", { + description = S("Queen Bee"), + inventory_image = "bees_particle_bee.png", + stack_max = 1, +}) + + +-- CRAFTS + +minetest.register_craft({ + output = "bees:extractor", + recipe = { + {"", "default:steel_ingot", ""}, + {"default:steel_ingot", "default:stick", "default:steel_ingot"}, + {"default:mese_crystal", "default:steel_ingot", "default:mese_crystal"}, + } +}) + +minetest.register_craft({ + output = "bees:smoker", + recipe = { + {"default:steel_ingot", "wool:red", ""}, + {"", "default:torch", ""}, + {"", "default:steel_ingot",""}, + } +}) + +minetest.register_craft({ + output = "bees:hive_artificial", + recipe = { + {"group:wood", "group:wood", "group:wood"}, + {"group:wood", "default:stick", "group:wood"}, + {"group:wood", "default:stick", "group:wood"}, + } +}) + +minetest.register_craft({ + output = "bees:grafting_tool", + recipe = { + {"", "", "default:steel_ingot"}, + {"", "default:stick", ""}, + {"", "", ""}, + } +}) + +minetest.register_craft({ + output = "bees:frame_empty", + recipe = { + {"group:wood", "group:wood", "group:wood"}, + {"default:stick", "default:stick", "default:stick"}, + {"default:stick", "default:stick", "default:stick"}, + } +}) + +if minetest.get_modpath("bushes_classic") then + + minetest.register_craft({ + type = "cooking", + cooktime = 5, + recipe = "bees:bottle_honey", + output = "bushes:sugar", + }) +end + + +-- TOOLS + +minetest.register_tool("bees:smoker", { + description = S("smoker"), + inventory_image = "bees_smoker.png", + tool_capabilities = { + full_punch_interval = 3.0, + max_drop_level = 0, + damage_groups = {fleshy = 2}, + }, + + on_use = function(itemstack, user, pointed_thing) + + if pointed_thing.type ~= "node" then + return + end + + local pos = pointed_thing.under + + for i = 1, 6 do + + minetest.add_particle({ + pos = { + x = pos.x + random() - 0.5, + y = pos.y, + z = pos.z + random() - 0.5 + }, + vel = {x = 0, y = 0.5 + random(), z = 0}, + acc = {x = 0, y = 0, z = 0}, + expirationtime = 2 + random(2.5), + size = random(3), + collisiondetection = false, + texture = "bees_smoke_particle.png", + }) + end + + itemstack:add_wear(65535 / 200) + + local meta = minetest.get_meta(pos) + + meta:set_int("agressive", 0) + + return itemstack + end, +}) + +minetest.register_tool("bees:grafting_tool", { + description = S("Grafting tool"), + inventory_image = "bees_grafting_tool.png", + tool_capabilities = { + full_punch_interval = 3.0, + max_drop_level=0, + damage_groups = {fleshy = 2}, + }, +}) + + +-- COMPATIBILTY --remove after all has been updated + +-- ALIASES +minetest.register_alias("bees:honey_extractor", "bees:extractor") + +-- BACKWARDS COMPATIBILITY WITH OLDER VERSION +minetest.register_alias("bees:honey_bottle", "bees:bottle_honey") + +minetest.register_lbm({ + nodenames = {"bees:hive", "bees:hive_artificial_inhabited"}, + name = "bees:replace_old_hives", + label = "Replace old hives", + run_at_every_load = true, + + action = function(pos, node) + + if node.name == "bees:hive" then + + minetest.set_node(pos, {name = "bees:hive_wild"}) + + local meta = minetest.get_meta(pos) + local inv = meta:get_inventory() + + inv:set_stack("queen", 1, "bees:queen") + end + + if node.name == "bees:hive_artificial_inhabited" then + + minetest.set_node(pos, {name = "bees:hive_artificial"}) + + local meta = minetest.get_meta(pos) + local inv = meta:get_inventory() + + inv:set_stack("queen", 1, "bees:queen") + + local timer = minetest.get_node_timer(pos) + + timer:start(60) + end + end +}) + + +-- PIPEWORKS + +if minetest.get_modpath("pipeworks") then + + minetest.register_node("bees:hive_industrial", { + description = S("Industrial Bee Hive"), + tiles = {"bees_hive_industrial.png"}, + paramtype2 = "facedir", + groups = { + snappy = 1, choppy = 2, oddly_breakable_by_hand = 2, + tubedevice = 1, tubedevice_receiver = 1 + }, + sounds = default.node_sound_wood_defaults(), + + tube = { + insert_object = function(pos, node, stack, direction) + + local meta = minetest.get_meta(pos) + local inv = meta:get_inventory() + + if stack:get_name() ~= "bees:frame_empty" + or stack:get_count() > 1 then + return stack + end + + for i = 1, 8 do + + if inv:get_stack("frames", i):is_empty() then + + inv:set_stack("frames", i, stack) + + local timer = minetest.get_node_timer(pos) + + timer:start(30) + + meta:set_string("infotext", S("Bees are aclimating")) + + return ItemStack("") + end + end + + return stack + end, + + can_insert = function(pos,node,stack,direction) + + local meta = minetest.get_meta(pos) + local inv = meta:get_inventory() + + if stack:get_name() ~= "bees:frame_empty" + or stack:get_count() > 1 then + return false + end + + for i = 1, 8 do + + if inv:get_stack("frames", i):is_empty() then + return true + end + end + + return false + end, + + can_remove = function(pos,node,stack,direction) + + if stack:get_name() == "bees:frame_full" then + return 1 + else + return 0 + end + end, + + input_inventory = "frames", + + connect_sides = {left = 1, right = 1, back = 1, front = 1, bottom = 1, top = 1} + }, + + on_construct = function(pos) + + local timer = minetest.get_node_timer(pos) + local meta = minetest.get_meta(pos) + local inv = meta:get_inventory() + + meta:set_int("agressive", 1) + + inv:set_size("queen", 1) + inv:set_size("frames", 8) + + meta:set_string("infotext", S("Requires Queen bee to function")) + end, + + on_rightclick = function(pos, node, clicker, itemstack) + + if minetest.is_protected(pos, clicker:get_player_name()) then + return + end + + minetest.show_formspec(clicker:get_player_name(), + "bees:hive_artificial", + hive_artificial(pos) + ) + + local meta = minetest.get_meta(pos) + local inv = meta:get_inventory() + + if meta:get_int("agressive") == 1 + and inv:contains_item("queen", "bees:queen") then + + clicker:set_hp(clicker:get_hp() - 4) + else + meta:set_int("agressive", 1) + end + end, + + on_timer = function(pos,elapsed) + + local meta = minetest.get_meta(pos) + local inv = meta:get_inventory() + local timer = minetest.get_node_timer(pos) + + if inv:contains_item("queen", "bees:queen") then + + if inv:contains_item("frames", "bees:frame_empty") then + + timer:start(30) + + local rad = 10 + local minp = {x = pos.x - rad, y = pos.y - rad, z = pos.z - rad} + local maxp = {x = pos.x + rad, y = pos.y + rad, z = pos.z + rad} + local flowers = minetest.find_nodes_in_area(minp, maxp, "group:flower") + local progress = meta:get_int("progress") + + progress = progress + #flowers + + meta:set_int("progress", progress) + + if progress > 1000 then + + local flower = flowers[random(#flowers)] + + polinate_flower(flower, minetest.get_node(flower).name) + + local stacks = inv:get_list("frames") + + for k, v in pairs(stacks) do + + if inv:get_stack("frames", k):get_name() == "bees:frame_empty" then + + meta:set_int("progress", 0) + + inv:set_stack("frames", k, "bees:frame_full") + + return + end + end + else + meta:set_string("infotext", S("progress:") + .. " " .. progress .. " + " .. #flowers .. " / 1000") + end + else + meta:set_string("infotext", S("Does not have empty frame(s)")) + + timer:stop() + end + end + end, + + on_metadata_inventory_take = function(pos, listname, index, stack, player) + + if listname == "queen" then + + local timer = minetest.get_node_timer(pos) + local meta = minetest.get_meta(pos) + + meta:set_string("infotext", S("Requires Queen bee to function")) + + timer:stop() + end + end, + + allow_metadata_inventory_move = function(pos, from_list, from_index, to_list, to_index, count, player) + + local inv = minetest.get_meta(pos):get_inventory() + + if from_list == to_list then + + if inv:get_stack(to_list, to_index):is_empty() then + return 1 + else + return 0 + end + else + return 0 + end + end, + + on_metadata_inventory_put = function(pos, listname, index, stack, player) + + local meta = minetest.get_meta(pos) + local inv = meta:get_inventory() + local timer = minetest.get_node_timer(pos) + + if listname == "queen" or listname == "frames" then + + meta:set_string("queen", stack:get_name()) + meta:set_string("infotext", S("Queen inserted, now for the empty frames")) + + if inv:contains_item("frames", "bees:frame_empty") then + + timer:start(30) + + meta:set_string("infotext", S("Bees are aclimating")) + end + end + end, + + allow_metadata_inventory_put = function(pos, listname, index, stack, player) + + if not minetest.get_meta(pos):get_inventory():get_stack(listname, index):is_empty() then + return 0 + end + + if listname == "queen" then + + if stack:get_name():match("bees:queen*") then + return 1 + end + + elseif listname == "frames" then + + if stack:get_name() == ("bees:frame_empty") then + return 1 + end + end + + return 0 + end, + }) + + minetest.register_craft({ + output = "bees:hive_industrial", + recipe = { + {"default:steel_ingot","homedecor:plastic_sheeting","default:steel_ingot"}, + {"pipeworks:tube_1","bees:hive_artificial","pipeworks:tube_1"}, + {"default:steel_ingot","homedecor:plastic_sheeting","default:steel_ingot"}, + } + }) +end + + +-- LUCKY BLOCKS + +if minetest.get_modpath("lucky_block") then + + local add_bees = function(pos, player) + + local objs = minetest.get_objects_inside_radius(pos, 15) + local violet = minetest.get_color_escape_sequence("#ff00ff") + + minetest.chat_send_player(player:get_player_name(), + violet .. S("Bees! Bees for all!")) + + for n = 1, #objs do + + if objs[n]:is_player() then + + local player_pos = objs[n]:get_pos() + + player_pos.y = player_pos.y + 1 + + minetest.swap_node(player_pos, {name = "bees:bees"}) + end + end + end + + lucky_block:add_blocks({ + {"cus", add_bees}, + {"dro", {"bees:grafting_tool"}, 1}, + {"dro", {"bees:frame_empty"}, 2}, + {"dro", {"bees:queen"}, 1}, + {"nod", "bees:extractor"}, + {"dro", {"bees:frame_full"}, 2}, + {"dro", {"bees:bottle_honey"}, 3}, + {"dro", {"bees:smoker"}, 1}, + {"nod", "bees:hive_artificial"}, + }) +end + + +print(S("[MOD] Bees Loaded!")) diff --git a/bees/license.txt b/bees/license.txt new file mode 100644 index 0000000..ab1c816 --- /dev/null +++ b/bees/license.txt @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) 2018 TenPlus1 + +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. diff --git a/bees/locale/template.txt b/bees/locale/template.txt new file mode 100644 index 0000000..b9be40c --- /dev/null +++ b/bees/locale/template.txt @@ -0,0 +1,22 @@ +# Template + +Bees = +Honey Extractor = +Wild Bee Hive = +Artificial Bee Hive = +Industrial Bee Hive = +Colony died, not enough flowers in area! = +Requires Queen bee to function = +Progress = +Does not have empty frame(s) = +Queen inserted, now for empty frames = +Bees are aclimating = +Empty hive frame = +Filled hive frame = +Honey Bottle = +Bees wax = +Honey comb = +Queen Bee = +Smoker = +Grafting tool = +[MOD] Bees Loaded! = diff --git a/bees/mod.conf b/bees/mod.conf new file mode 100644 index 0000000..78b931f --- /dev/null +++ b/bees/mod.conf @@ -0,0 +1 @@ +name = bees diff --git a/bees/readme.txt b/bees/readme.txt new file mode 100644 index 0000000..5c2636f --- /dev/null +++ b/bees/readme.txt @@ -0,0 +1,104 @@ +BEES MOD V2.3 +------------- + +FEATURES +-------- + +2.3 +- protection check when opening artificial/industrial hives +- protection check when removing items from extractor +- Intllib support (template added) +- Wild hives are removed if found floating in mid air +- Change compatibility abm to lbm +- Change from WTFPL to MIT license +- Make wild hive abm less intensive (thanks VanessaE) +- Added 9x Lucky Blocks +- Smokers have 200 uses before breaking + +2.2.2 +- Pipeworks compatibility (Industrial beehive) + +2.2.1 +- removed steel dependency temporarily +- fixed the craft for the extractor (and added alias for) + +2.2 +- craft for extractor +- extractor texture update +- a craft for the smoker + +2.1 +- bees polinate flowers nearby, causing them to multiply +- add formspec to wild and artificial hive when using grafting tool +- smoke, flying wax and bee particles +- smokers to calm down the bees before opening the hive +- a centrifuge to extract the honey and from the filled frames +- grab eatable honeycomb from wild hives +- craft a grafting tool to extract queen bees from wild hives +- craft artificial hives and frames + +1.0 +- spawn wild bee hives on tree leaves +- use the queen bee to populate artificial hives +- plant flowers near hives to increase their productivity +- spawning bee colonies + +FUTURE +------ +- more realistic spawning of wild bee hives + +CONTRIBUTORS +------------ +- bas080 +- VanessaE (wild bee hive nodebox) +- Neuromancer (textures for wild bee hive and inspiration for other textures) +- Novatux (enabled pipeworks compatibility) +- TenPlus1 (tweaked and tidied code, protection check) + +FORUM +----- +https://forum.minetest.net/viewtopic.php?pid=102905 + +LICENSE +------- +- codes is WTFPL +- textures are CC BY-SA + +CRAFTS +------ + +Honey Extractor: S = steel ingot, T = stick, M = mese crystal + +_ S _ +S T S +M S M + +Empty Frame: W = wood, S = stick + +W W W +S S S +S S S + +Grafting Tool: S = steel ingot, T = stick + +_ S +T _ + +Artificial Beehive: W = wood, S = stick + +W W W +W S W +W S W + +Smoker: S = steel ingot, T = torch, R = red wool + +S R +_ T +_ S + +Industrial Beehive: S = steel ingot, P = plastic sheeting, H = artificial hive, + P = pipeworks tube + +S P S +T H T +S P S diff --git a/bees/screenshot.png b/bees/screenshot.png new file mode 100644 index 0000000..ba5c2c5 Binary files /dev/null and b/bees/screenshot.png differ diff --git a/bees/sounds/bees.1.ogg b/bees/sounds/bees.1.ogg new file mode 100644 index 0000000..62adbfe Binary files /dev/null and b/bees/sounds/bees.1.ogg differ diff --git a/bees/sounds/bees.2.ogg b/bees/sounds/bees.2.ogg new file mode 100644 index 0000000..4bab2a9 Binary files /dev/null and b/bees/sounds/bees.2.ogg differ diff --git a/bees/sounds/bees.3.ogg b/bees/sounds/bees.3.ogg new file mode 100644 index 0000000..f90d882 Binary files /dev/null and b/bees/sounds/bees.3.ogg differ diff --git a/bees/textures/bees_bottle_honey.png b/bees/textures/bees_bottle_honey.png new file mode 100644 index 0000000..d2690b4 Binary files /dev/null and b/bees/textures/bees_bottle_honey.png differ diff --git a/bees/textures/bees_comb.png b/bees/textures/bees_comb.png new file mode 100644 index 0000000..e11e5a6 Binary files /dev/null and b/bees/textures/bees_comb.png differ diff --git a/bees/textures/bees_extractor.png b/bees/textures/bees_extractor.png new file mode 100644 index 0000000..00551aa Binary files /dev/null and b/bees/textures/bees_extractor.png differ diff --git a/bees/textures/bees_extractor_front.png b/bees/textures/bees_extractor_front.png new file mode 100644 index 0000000..c2d2be9 Binary files /dev/null and b/bees/textures/bees_extractor_front.png differ diff --git a/bees/textures/bees_frame_empty.png b/bees/textures/bees_frame_empty.png new file mode 100644 index 0000000..3ac446a Binary files /dev/null and b/bees/textures/bees_frame_empty.png differ diff --git a/bees/textures/bees_frame_full.png b/bees/textures/bees_frame_full.png new file mode 100644 index 0000000..bb9fbe0 Binary files /dev/null and b/bees/textures/bees_frame_full.png differ diff --git a/bees/textures/bees_grafting_tool.png b/bees/textures/bees_grafting_tool.png new file mode 100644 index 0000000..c0da709 Binary files /dev/null and b/bees/textures/bees_grafting_tool.png differ diff --git a/bees/textures/bees_hive_artificial.png b/bees/textures/bees_hive_artificial.png new file mode 100644 index 0000000..782b7d8 Binary files /dev/null and b/bees/textures/bees_hive_artificial.png differ diff --git a/bees/textures/bees_hive_industrial.png b/bees/textures/bees_hive_industrial.png new file mode 100644 index 0000000..de82d09 Binary files /dev/null and b/bees/textures/bees_hive_industrial.png differ diff --git a/bees/textures/bees_hive_wild.png b/bees/textures/bees_hive_wild.png new file mode 100644 index 0000000..961a416 Binary files /dev/null and b/bees/textures/bees_hive_wild.png differ diff --git a/bees/textures/bees_hive_wild_bottom.png b/bees/textures/bees_hive_wild_bottom.png new file mode 100644 index 0000000..08efeaa Binary files /dev/null and b/bees/textures/bees_hive_wild_bottom.png differ diff --git a/bees/textures/bees_hive_wild_s.png b/bees/textures/bees_hive_wild_s.png new file mode 100644 index 0000000..cb062af Binary files /dev/null and b/bees/textures/bees_hive_wild_s.png differ diff --git a/bees/textures/bees_particle_bee.png b/bees/textures/bees_particle_bee.png new file mode 100644 index 0000000..f58c4dc Binary files /dev/null and b/bees/textures/bees_particle_bee.png differ diff --git a/bees/textures/bees_particle_bee_r.png b/bees/textures/bees_particle_bee_r.png new file mode 100644 index 0000000..42a36ff Binary files /dev/null and b/bees/textures/bees_particle_bee_r.png differ diff --git a/bees/textures/bees_smoke_particle.png b/bees/textures/bees_smoke_particle.png new file mode 100644 index 0000000..59e77a0 Binary files /dev/null and b/bees/textures/bees_smoke_particle.png differ diff --git a/bees/textures/bees_smoker.png b/bees/textures/bees_smoker.png new file mode 100644 index 0000000..b2886a3 Binary files /dev/null and b/bees/textures/bees_smoker.png differ diff --git a/bees/textures/bees_strip.png b/bees/textures/bees_strip.png new file mode 100644 index 0000000..1afe28e Binary files /dev/null and b/bees/textures/bees_strip.png differ diff --git a/bees/textures/bees_wax.png b/bees/textures/bees_wax.png new file mode 100644 index 0000000..4891e06 Binary files /dev/null and b/bees/textures/bees_wax.png differ diff --git a/bees/textures/bees_wax_particle.png b/bees/textures/bees_wax_particle.png new file mode 100644 index 0000000..974fb09 Binary files /dev/null and b/bees/textures/bees_wax_particle.png differ diff --git a/christmas_decor/LICENSE.txt b/christmas_decor/LICENSE.txt new file mode 100644 index 0000000..6f9a3e1 --- /dev/null +++ b/christmas_decor/LICENSE.txt @@ -0,0 +1,19 @@ +MIT Copyright 2017 GreenDimond + +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. diff --git a/christmas_decor/README.md b/christmas_decor/README.md new file mode 100644 index 0000000..3f6ca75 --- /dev/null +++ b/christmas_decor/README.md @@ -0,0 +1,135 @@ + ____ _ _ _ _ ____ + / ___| | | |_ __(_)___| |_ _ __ ___ __ _ ___ | _ \ ___ ___ ___ _ __ + | | | |_| | '__| / __| __| '_ ` _ \ / _` / __| | | | |/ _ \/ __/ _ \| '__| + | |___| _ | | | \__ \ |_| | | | | | (_| \__ \ | |_| | __/ (_| (_) | | + \____|_| |_|_| |_|___/\__|_| |_| |_|\__,_|___/ |____/ \___|\___\___/|_| ~By GreenDimond + +'Tis the season! +This mod adds some Christmas decorations :D + +Depends on 3d_armor, homedecor, farming_redo, stairs_redo, mobs_redo, mobs_animal, +dye, wool, bucket, vessels, xpanes, farming, and default. + +This mod contains the following: +* Stocking* +* Christmas Lights (and craftitems) + * White + * Multicolor + * Icicle (white) + * Bulb (multicolor) + * Pane version of above +* Garland +* Garland with lights +* Gingerbread Cookies (and craftitems) +* Plate of cookies (decorational) +* Glass of milk (decorational) +* Candycane (edible) +* Santa Claus mob (non-moving) +* Reindeer mob (non-moving, has animations) +* Santa hat (wearable) +* Candycane (placeable - noncraftable) +* Frosting nodes (noncraftable) +* Candycane nodes (noncraftable) +* Mistletoe + +*Stockings are pretty cool. They will automatically fill once Christmas arrives, +or at least that is the idea. Extensive testing has supposedly confirmed this, +but we'll see what happens :P The stocking by default is set to fill with +200 gold ingots, 20 candycanes, and a full set of mese tools. These can +be edited on lines 42-53 of stocking.lua. Each player is also only allowed +to place one stocking, and there is bunches of stuff in place to make sure +other players can't steal from stockings and can't dig other people's, etc... + +This is the part where I have to type out all the craft recipes. + +* Stocking: +(r = red wool, w = white wool) +``` ++-+-+-+ +|w|w| | ++-+-+-+ +|r|r| | ++-+-+-+ +|r|r|r| ++-+-+-+ +``` +(reverse works too) + +* Christmas lights: +Forget it, just look on these lines in the init.lua: +L 123-161 +L 290-324 + +* Garland: +(p = pine needles) +``` ++-+-+-+ +|p|p|p| ++-+-+-+ +``` +(combine with 3 white LED's to make garland with lights) + +* Ginger: +(p = plastic sheeting, b = brown dye, o = orange dye) +``` ++-+-+-+ +|p|o|p| ++-+-+-+ +|p|b|p| ++-+-+-+ +``` +(orange and brown dye can switch places) + +* Cookiecutter: +(s = steel ingot) +``` ++-+-+-+ +| |s| | ++-+-+-+ +|s|s|s| ++-+-+-+ +|s| |s| ++-+-+-+ +``` + +* Gingerbread dough: +Combine ginger, bucket of water, flour, and sugar. + +* Raw Gingerbread Man: +Combine cookiecutter and gingerbread dough. +Cook to obtain gingerbread man. +Combine gingerbread man with cutlery set to get a plate of cookies. + +* Glass of milk: +Combine bucket of milk and a drinking glass. + +* Candycane: +Combine candycane base with red and white dye. + +* Candycane base: +(s = sugar) +``` ++-+-+-+ +| |s| | ++-+-+-+ +|s| |s| ++-+-+-+ +|s| | | ++-+-+-+ +``` +(reverse works too) + +* Santa hat: +(w = white wool, r = red wool) +``` ++-+-+-+ +| |w| | ++-+-+-+ +| |r| | ++-+-+-+ +|r|r|r| ++-+-+-+ +``` + +* Mistletoe: +Combine 2 normal leaves and red dye. diff --git a/christmas_decor/depends.txt b/christmas_decor/depends.txt new file mode 100644 index 0000000..76ea31a --- /dev/null +++ b/christmas_decor/depends.txt @@ -0,0 +1,11 @@ +default +stairs +xpanes +3d_armor +mobs +wool +bucket +farming +basic_materials +vessels +mobs_animal diff --git a/christmas_decor/description.txt b/christmas_decor/description.txt new file mode 100644 index 0000000..811439a --- /dev/null +++ b/christmas_decor/description.txt @@ -0,0 +1 @@ +Adds Christmas-themed stuff :D diff --git a/christmas_decor/init.lua b/christmas_decor/init.lua new file mode 100644 index 0000000..8a6a53f --- /dev/null +++ b/christmas_decor/init.lua @@ -0,0 +1,542 @@ +local christmas_decor = {} + +-- Candycane Blocks +minetest.register_node("christmas_decor:candycane_block", { + description = "Candycane Block", + tiles = {"candycane_block.png", "candycane_block.png", "candycane_block.png", "candycane_block.png", "candycane_block.png^[transformFX", "candycane_block.png^[transformFX"}, + paramtype2 = "facedir", + groups = {snappy = 3}, + sounds = default.node_sound_stone_defaults(), +}) + +stairs.register_all("candycane", "christmas_decor:candycane_block", + {snappy = 3}, + {"candycane_block.png", "candycane_block.png", "candycane_block.png", "candycane_block.png", "candycane_block.png^[transformFX", "candycane_block.png^[transformFX"}, + "Candycane", +stairs.stone) + +minetest.register_node("christmas_decor:candycane", { + description = "Candycane (placeable)", + drawtype = "mesh", + mesh = "candycane.obj", + tiles = {"candycane.png"}, + inventory_image = "inv_candycane.png", + walkable = true, + selection_box = { + type = "fixed", + fixed = {-0.3, -0.5, -0.3, 0.3, 0.5, 0.3}, + }, + collision_box = { + type = "fixed", + fixed = {-0.3, -0.5, -0.3, 0.3, 0.5, 0.3}, + }, + paramtype = "light", + sunlight_propagates = true, + paramtype2 = "facedir", + groups = {snappy = 3}, + sounds = default.node_sound_stone_defaults(), +}) + +-- Frosting Blocks +minetest.register_node("christmas_decor:frosting_block", { + description = "Frosting Block", + tiles = {"frosting.png"}, + paramtype2 = "facedir", + groups = {snappy = 3}, + sounds = default.node_sound_leaves_defaults(), +}) + +stairs.register_all("frosting_block", "christmas_decor:frosting_block", + {snappy = 3}, + {"frosting.png"}, + "Frosting", +stairs.leaves) + +-- Garland +minetest.register_node("christmas_decor:garland", { + description = "Garland", + tiles = {"garland.png"}, + inventory_image = "garland.png", + wield_image = "garland.png", + sunlight_propagates = true, + walkable = false, + climbable = false, + is_ground_content = false, + selection_box = { + type = "wallmounted", + }, + legacy_wallmounted = true, + use_texture_alpha = true, + drawtype = "signlike", + paramtype = "light", + paramtype2 = "wallmounted", + groups = {snappy = 3}, + sounds = default.node_sound_leaves_defaults(), +}) + +minetest.register_node("christmas_decor:garland_lights", { + description = "Garland with Lights", + tiles = { + { + image = "garland_lights.png", + backface_culling = false, + animation = { + type = "vertical_frames", + aspect_w = 64, + aspect_h = 64, + length = 16 + }, + } + }, + inventory_image = "inv_garland_lights.png", + wield_image = "inv_garland_lights.png", + sunlight_propagates = true, + walkable = false, + climbable = false, + is_ground_content = false, + selection_box = { + type = "wallmounted", + }, + legacy_wallmounted = true, + use_texture_alpha = true, + drawtype = "signlike", + paramtype = "light", + light_source = 8, + paramtype2 = "wallmounted", + groups = {snappy = 3}, + sounds = default.node_sound_leaves_defaults(), +}) + +minetest.register_craft({ + output = "christmas_decor:garland 3", + recipe = { + {"default:pine_needles", "default:pine_needles", "default:pine_needles"}, + }, +}) + +minetest.register_craft({ + output = "christmas_decor:garland_lights", + type = "shapeless", + recipe = {"christmas_decor:garland", "christmas_decor:led_white", "christmas_decor:led_white", "christmas_decor:led_white"}, +}) + +-- Lights +minetest.register_craftitem("christmas_decor:led_rgb", { + description = "RGB Led Light", + inventory_image = "led_rgb.png", +}) + +minetest.register_craftitem("christmas_decor:led_white", { + description = "White Led Light", + inventory_image = "led_white.png", +}) + +minetest.register_craft({ + output = "christmas_decor:led_rgb", + type = "shapeless", + recipe = {"christmas_decor:led_white", "dye:green", "dye:blue", "dye:red"}, +}) + +minetest.register_craft({ + output = "christmas_decor:led_white 8", + recipe = { + {"default:glass"}, + {"homedecor:power_crystal"}, + {"homedecor:plastic_sheeting"}, + }, +}) + +minetest.register_craftitem("christmas_decor:wire", { + description = "Wire", + inventory_image = "wire.png", +}) + +minetest.register_craft({ + output = "christmas_decor:wire 16", + recipe = { + {"homedecor:plastic_sheeting", "homedecor:plastic_sheeting", "homedecor:plastic_sheeting"}, + {"homedecor:copper_strip", "homedecor:copper_strip", "homedecor:copper_strip"}, + {"homedecor:plastic_sheeting", "homedecor:plastic_sheeting", "homedecor:plastic_sheeting"}, + }, +}) + +local function register_lights(desc, nodename, aspect, length, def, craftitem, original_def) + minetest.register_node("christmas_decor:lights_"..nodename, { + description = desc.." Christmas Lights", + tiles = { + { + image = "lights_"..nodename..".png", + backface_culling = false, + animation = { + type = "vertical_frames", + aspect_w = aspect, + aspect_h = aspect, + length = length + }, + } + }, + inventory_image = "inv_lights_"..nodename..".png", + wield_image = "inv_lights_"..nodename..".png", + sunlight_propagates = true, + walkable = false, + climbable = false, + is_ground_content = false, + selection_box = { + type = "wallmounted", + }, + legacy_wallmounted = true, + use_texture_alpha = true, + drawtype = "signlike", + paramtype = "light", + light_source = 10, + paramtype2 = "wallmounted", + groups = {snappy = 3}, + sounds = default.node_sound_leaves_defaults(), + }) + + xpanes.register_pane("lights_"..nodename.."_pane", { + description = desc.." Christmas Lights (pane)", + textures = { + { + image = "lights_"..nodename..".png^[transformFX", + backface_culling = false, + animation = { + type = "vertical_frames", + aspect_w = aspect, + aspect_h = aspect, + length = length + }, + }, + { + image = "lights_"..nodename..".png^[transformFX", + backface_culling = false, + animation = { + type = "vertical_frames", + aspect_w = aspect, + aspect_h = aspect, + length = length + }, + }, "xpanes_space.png" + + }, + use_texture_alpha = true, + groups = {snappy = 3}, + sounds = default.node_sound_leaves_defaults(), + recipe = { + {"christmas_decor:lights_"..nodename, "christmas_decor:lights_"..nodename, "christmas_decor:lights_"..nodename}, + {"christmas_decor:lights_"..nodename, "christmas_decor:lights_"..nodename, "christmas_decor:lights_"..nodename} + } + }) + + local tileFX = { + name = "lights_"..nodename..".png^[transformFX", + backface_culling = false, + animation = { + type = "vertical_frames", + aspect_w = 16, + aspect_h = 16, + length = 3.3 + } + } + + local tile = { + name = "lights_"..nodename..".png", + backface_culling = false, + animation = { + type = "vertical_frames", + aspect_w = 16, + aspect_h = 16, + length = 3.3 + } + } + + for i = 1, 15 do + minetest.override_item("xpanes:lights_" .. nodename .. "_pane_" .. i, { + tiles = {"xpanes_space.png", "xpanes_space.png", tile, tile, tileFX, tile}, + sunlight_propagates = true, + walkable = false, + light_source = 10, + }) + end + + minetest.override_item("xpanes:lights_"..nodename.."_pane", { + tiles = {"xpanes_space.png", "xpanes_space.png", tile, tile, tileFX, tile}, + sunlight_propagates = true, + walkable = false, + light_source = 10, + }) + + minetest.override_item("xpanes:lights_"..nodename.."_pane_flat", { + tiles = {"xpanes_space.png", "xpanes_space.png", tile, tile, tileFX, tile}, + sunlight_propagates = true, + walkable = false, + light_source = 10, + }) + + minetest.register_craft({ + output = "xpanes:lights_" .. nodename .. "_pane_flat 6", + recipe = { + {"christmas_decor:lights_"..nodename, "christmas_decor:lights_"..nodename, "christmas_decor:lights_"..nodename}, + {"christmas_decor:lights_"..nodename, "christmas_decor:lights_"..nodename, "christmas_decor:lights_"..nodename} + } + }) +end + +register_lights("White", "white", 16, 6) +register_lights("White Icicle", "white_icicle", 16, 6) +register_lights("Multicolor", "multicolor", 16, 6) +register_lights("Multicolor Bulb", "multicolor_bulb", 8, 3) + +minetest.register_craft({ + output = "christmas_decor:lights_white 6", + recipe = { + {"christmas_decor:led_white", "christmas_decor:led_white", "christmas_decor:led_white"}, + {"christmas_decor:wire", "christmas_decor:wire", "christmas_decor:wire"}, + {"christmas_decor:led_white", "christmas_decor:led_white", "christmas_decor:led_white"}, + }, +}) + +minetest.register_craft({ + output = "christmas_decor:lights_white_icicle 6", + recipe = { + {"christmas_decor:wire", "christmas_decor:wire", "christmas_decor:wire"}, + {"christmas_decor:led_white", "christmas_decor:led_white", "christmas_decor:led_white"}, + {"christmas_decor:led_white", "christmas_decor:led_white", "christmas_decor:led_white"}, + }, +}) + +minetest.register_craft({ + output = "christmas_decor:lights_multicolor 6", + recipe = { + {"christmas_decor:led_rgb", "christmas_decor:led_rgb", "christmas_decor:led_rgb"}, + {"christmas_decor:wire", "christmas_decor:wire", "christmas_decor:wire"}, + {"christmas_decor:led_rgb", "christmas_decor:led_rgb", "christmas_decor:led_rgb"}, + }, +}) + +minetest.register_craft({ + output = "christmas_decor:lights_multicolor_bulb 6", + recipe = { + {"christmas_decor:led_rgb", "default:glass", "christmas_decor:led_rgb"}, + {"christmas_decor:wire", "christmas_decor:wire", "christmas_decor:wire"}, + {"christmas_decor:led_rgb", "default:glass", "christmas_decor:led_rgb"}, + }, +}) + +-- Stocking +dofile(minetest.get_modpath("christmas_decor").."/stocking.lua") + +-- Apparel +minetest.register_tool("christmas_decor:helmet_santa_hat", { + description = "Santa Hat", + inventory_image = "inv_helmet_santa_hat.png", + groups = { + armor_head = 0, + armor_heal = 0, + armor_use = 0, + }, + wear = 0, +}) + +minetest.register_craft({ + output = "christmas_decor:helmet_santa_hat", + recipe = { + {"", "wool:white", ""}, + {"", "wool:red", ""}, + {"wool:red", "wool:red", "wool:red"}, + }, +}) + +-- Eddibles +minetest.register_craftitem("christmas_decor:candycane_edible", { + description = "Candycane", + inventory_image = "candycane_eddible.png", + on_use = minetest.item_eat(4), +}) + +minetest.register_craftitem("christmas_decor:candycane_base", { + description = "Candycane Base", + inventory_image = "candycane_base.png", +}) + +minetest.register_craftitem("christmas_decor:gingerbread_man", { + description = "Gingerbread Man", + inventory_image = "gingerbread_man.png", + on_use = minetest.item_eat(6), +}) + +minetest.register_craftitem("christmas_decor:gingerbread_man_raw", { + description = "Gingerbread Man (raw)", + inventory_image = "gingerbread_man_raw.png", +}) + +minetest.register_craftitem("christmas_decor:gingerbread_dough", { + description = "Gingerbread Dough", + inventory_image = "gingerbread_dough.png", +}) + +minetest.register_craftitem("christmas_decor:ginger", { + description = "Ginger", + inventory_image = "ginger.png", +}) + +minetest.register_craftitem("christmas_decor:cookiecutter", { + description = "Cookiecutter", + inventory_image = "cookie_cutter.png", +}) + +minetest.register_node("christmas_decor:plate_with_cookies", { + description = "Plate of Cookies (decorative)", + tiles = {"plate_top.png"}, + inventory_image = "plate_top.png", + wield_imagte = "plate_top.png", + sunlight_propagates = true, + walkable = false, + climbable = false, + is_ground_content = false, + selection_box = { + type = "wallmounted", + }, + legacy_wallmounted = true, + use_texture_alpha = true, + drawtype = "signlike", + paramtype2 = "wallmounted", + groups = {snappy = 3}, + sounds = default.node_sound_glass_defaults(), +}) + +minetest.register_node("christmas_decor:milk_glass", { + description = "Glass of Milk (decorative)", + drawtype = "plantlike", + tiles = {"milk_glass.png"}, + inventory_image = "milk_glass_inv.png", + wield_image = "milk_glass.png", + paramtype = "light", + is_ground_content = false, + walkable = false, + selection_box = { + type = "fixed", + fixed = {-0.25, -0.5, -0.25, 0.25, 0.3, 0.25} + }, + groups = {vessel = 1, dig_immediate = 3, attached_node = 1}, + sounds = default.node_sound_glass_defaults(), +}) + +minetest.register_craft({ + output = "christmas_decor:plate_with_cookies", + type = "shapeless", + recipe = {"christmas_decor:gingerbread_man", "christmas_decor:gingerbread_man", "christmas_decor:gingerbread_man", "farming:cutting_board"}, +}) + +minetest.register_craft({ + output = "christmas_decor:milk_glass", + type = "shapeless", + recipe = {"vessels:drinking_glass", "mobs:bucket_milk"}, + replacements = {{"mobs:bucket_milk", "bucket:bucket_empty"}}, +}) + +minetest.register_craft({ + output = "christmas_decor:ginger", + recipe = { + {"homedecor:plastic_sheeting", "dye:orange", "homedecor:plastic_sheeting"}, + {"homedecor:plastic_sheeting", "dye:brown", "homedecor:plastic_sheeting"}, + }, +}) + +minetest.register_craft({ + output = "christmas_decor:ginger", + recipe = { + {"homedecor:plastic_sheeting", "dye:brown", "homedecor:plastic_sheeting"}, + {"homedecor:plastic_sheeting", "dye:orange", "homedecor:plastic_sheeting"}, + }, +}) + +minetest.register_craft({ + output = "christmas_decor:gingerbread_dough", + type = "shapeless", + recipe = {"christmas_decor:ginger", "farming:flour", "bucket:bucket_water", "farming:sugar"}, + replacements = {{"bucket:bucket_water", "bucket:bucket_empty"}}, +}) + +minetest.register_craft({ + output = "christmas_decor:cookiecutter 1", + recipe = { + {"", "default:steel_ingot", ""}, + {"default:steel_ingot", "default:steel_ingot", "default:steel_ingot"}, + {"default:steel_ingot", "", "default:steel_ingot"}, + }, +}) + +minetest.register_craft({ + output = "christmas_decor:gingerbread_man_raw 5", + type = "shapeless", + recipe = {"christmas_decor:cookiecutter", "christmas_decor:gingerbread_dough"}, + replacements = {{"christmas_decor:cookiecutter", "christmas_decor:cookiecutter"}}, +}) + +minetest.register_craft({ + type = "cooking", + output = "christmas_decor:gingerbread_man", + recipe = "christmas_decor:gingerbread_man_raw", + cooktime = 10, +}) + +minetest.register_craft({ + output = "christmas_decor:candycane_base 2", + recipe = { + {"", "farming:sugar", ""}, + {"farming:sugar", "", "farming:sugar"}, + {"", "", "farming:sugar"}, + }, +}) + +minetest.register_craft({ + output = "christmas_decor:candycane_base 2", + recipe = { + {"", "farming:sugar", ""}, + {"farming:sugar", "", "farming:sugar"}, + {"farming:sugar", "", ""}, + }, +}) + +minetest.register_craft({ + output = "christmas_decor:candycane_edible", + type = "shapeless", + recipe = {"christmas_decor:candycane_base", "dye:red", "dye:white"}, +}) + +minetest.register_craft({ + output = "christmas_decor:candycane_block", + recipe = { + { "christmas_decor:candycane_edible", "christmas_decor:candycane_edible", "christmas_decor:candycane_edible" }, + { "christmas_decor:candycane_edible", "christmas_decor:candycane_edible", "christmas_decor:candycane_edible" }, + { "christmas_decor:candycane_edible", "christmas_decor:candycane_edible", "christmas_decor:candycane_edible" }, + } +}) + + +minetest.register_craft({ + output = "christmas_decor:candycane_edible", + type = "shapeless", + recipe = {"christmas_decor:candycane_base", "dye:red", "dye:white"}, +}) + + +-- Mistletoe +minetest.register_node("christmas_decor:mistletoe", { + description = "Mistletoe", + tiles = {"mistletoe.png"}, + drawtype = "plantlike", + walkable = false, + sunlight_propagates = true, + paramtype = "light", + use_texture_alpha = true, + groups = {snappy = 3}, + sounds = default.node_sound_leaves_defaults(), +}) + +minetest.register_craft({ + output = "christmas_decor:mistletoe", + type = "shapeless", + recipe = {"default:leaves", "default:leaves", "dye:red"}, +}) diff --git a/christmas_decor/mod.conf b/christmas_decor/mod.conf new file mode 100644 index 0000000..c5659d5 --- /dev/null +++ b/christmas_decor/mod.conf @@ -0,0 +1 @@ +name = christmas_decor diff --git a/christmas_decor/models/candycane.obj b/christmas_decor/models/candycane.obj new file mode 100644 index 0000000..f1af314 --- /dev/null +++ b/christmas_decor/models/candycane.obj @@ -0,0 +1,262 @@ +# Blender v2.79 (sub 0) OBJ File: 'candycane.blend' +# www.blender.org +mtllib candycane.mtl +o Torus +v 0.250565 0.105750 0.000000 +v 0.225508 0.105750 0.045632 +v 0.175395 0.105750 0.045632 +v 0.150339 0.105750 0.000000 +v 0.175395 0.105750 -0.045632 +v 0.225508 0.105750 -0.045632 +v 0.250565 0.252294 0.000000 +v 0.225508 0.244153 0.045632 +v 0.175395 0.227870 0.045632 +v 0.150339 0.219729 0.000000 +v 0.175395 0.227870 -0.045632 +v 0.225508 0.244153 -0.045632 +v 0.154857 0.384024 0.000000 +v 0.139372 0.362710 0.045632 +v 0.108400 0.320081 0.045632 +v 0.092914 0.298767 0.000000 +v 0.108400 0.320081 -0.045632 +v 0.139372 0.362710 -0.045632 +v 0.000000 0.434340 0.000000 +v -0.000000 0.407994 0.045632 +v 0.000000 0.355302 0.045632 +v 0.000000 0.328957 0.000000 +v 0.000000 0.355302 -0.045632 +v 0.000000 0.407994 -0.045632 +v -0.154857 0.384024 -0.000000 +v -0.139372 0.362710 0.045632 +v -0.108400 0.320081 0.045632 +v -0.092914 0.298767 -0.000000 +v -0.108400 0.320081 -0.045632 +v -0.139372 0.362710 -0.045632 +v -0.250565 0.252294 -0.000000 +v -0.225508 0.244153 0.045632 +v -0.175395 0.227870 0.045632 +v -0.150339 0.219729 -0.000000 +v -0.175395 0.227870 -0.045632 +v -0.225508 0.244153 -0.045632 +v -0.250565 0.105750 -0.000000 +v -0.225508 0.105750 0.045632 +v -0.175395 0.105750 0.045632 +v -0.150339 0.105750 -0.000000 +v -0.175395 0.105750 -0.045632 +v -0.225508 0.105750 -0.045632 +v -0.250565 -0.499700 -0.000000 +v -0.225508 -0.499700 0.045632 +v -0.175395 -0.499700 0.045632 +v -0.150339 -0.499700 -0.000000 +v -0.175395 -0.499700 -0.045632 +v -0.225508 -0.499700 -0.045632 +v 0.200452 0.105750 0.000000 +v -0.200452 -0.499700 -0.000000 +vt 0.416667 1.416667 +vt 0.416667 1.041667 +vt 0.583333 1.041667 +vt 0.583333 1.416667 +vt 0.750000 1.041667 +vt 0.750000 1.416667 +vt 0.916667 1.041667 +vt 0.916667 1.416667 +vt -0.083333 1.416667 +vt -0.083333 1.041667 +vt 0.083333 1.041667 +vt 0.083333 1.416667 +vt 0.250000 1.041667 +vt 0.250000 1.416667 +vt 0.416667 0.666667 +vt 0.583333 0.666667 +vt 0.750000 0.666667 +vt 0.916667 0.666667 +vt -0.083333 0.666667 +vt 0.083333 0.666667 +vt 0.250000 0.666667 +vt 0.416667 0.291667 +vt 0.583333 0.291667 +vt 0.750000 0.291667 +vt 0.916667 0.291667 +vt -0.083333 0.291667 +vt 0.083333 0.291667 +vt 0.250000 0.291667 +vt 0.333333 1.333333 +vt 0.333333 0.958333 +vt 0.500000 0.958333 +vt 0.500000 1.333333 +vt 0.416667 0.458333 +vt 0.416667 0.041667 +vt 0.583333 0.041667 +vt 0.583333 0.458333 +vt 0.500000 0.541667 +vt 0.500000 0.125000 +vt 0.666667 0.125000 +vt 0.666667 0.541667 +vt 0.791667 0.416667 +vt 0.791667 0.000000 +vt 0.958333 0.000000 +vt 0.958333 0.416667 +vt 0.166667 1.208333 +vt 0.166667 0.791667 +vt 0.333333 0.791667 +vt 0.333333 1.208333 +vt 0.291667 1.250000 +vt 0.291667 0.833333 +vt 0.458333 0.833333 +vt 0.458333 1.250000 +vt 0.458333 0.500000 +vt 0.625000 0.500000 +vt 0.625000 0.833333 +vt 0.791667 0.500000 +vt 0.791667 0.833333 +vt 0.958333 0.500000 +vt 0.958333 0.833333 +vt -0.041667 0.833333 +vt -0.041667 0.500000 +vt 0.125000 0.500000 +vt 0.125000 0.833333 +vt 0.291667 0.500000 +vt 0.166667 0.958333 +vt 0.166667 0.625000 +vt 0.333333 0.625000 +vt 0.375000 0.583333 +vt 0.375000 0.208333 +vt 0.541667 0.208333 +vt 0.541667 0.583333 +vt 0.041667 1.083333 +vt 0.041667 0.708333 +vt 0.208333 0.708333 +vt 0.208333 1.083333 +vt 0.166667 1.125000 +vt 0.166667 0.750000 +vt 0.333333 0.750000 +vt 0.333333 1.125000 +vt -0.000000 0.458333 +vt -0.000000 0.083333 +vt 0.166667 0.083333 +vt 0.166667 0.458333 +vt 0.708333 0.916667 +vt 0.708333 0.541667 +vt 0.875000 0.541667 +vt 0.875000 0.916667 +vt 0.500000 0.291667 +vt 0.500000 -0.083333 +vt 0.666667 -0.083333 +vt 0.666667 0.291667 +vt 0.791667 1.291667 +vt 0.625000 1.291667 +vt 0.625000 -0.208333 +vt 0.791667 -0.208333 +vt 0.833333 1.083333 +vt 0.666667 1.083333 +vt 0.666667 -0.416667 +vt 0.833333 -0.416667 +vt 0.291667 1.291667 +vt 0.125000 1.291667 +vt 0.125000 -0.208333 +vt 0.291667 -0.208333 +vt 0.416667 1.333333 +vt 0.250000 1.333333 +vt 0.250000 -0.166667 +vt 0.416667 -0.166667 +vt 0.625000 1.625000 +vt 0.458333 1.625000 +vt 0.458333 0.125000 +vt 0.625000 0.125000 +vt 0.333333 1.083333 +vt 0.166667 1.083333 +vt 0.166667 -0.416667 +vt 0.333333 -0.416667 +vt 0.920544 0.538350 +vt 0.792915 0.617196 +vt 0.794883 0.467190 +vt 0.513294 0.488494 +vt 0.625091 0.516405 +vt 0.543776 0.604250 +vt 0.655573 0.632162 +vt 0.594609 0.400648 +vt 0.706405 0.428560 +vt 0.736887 0.544317 +vt 0.922512 0.388344 +vt 0.796851 0.317183 +vt 0.669222 0.396029 +vt 0.667254 0.546035 +vn 0.8766 0.0000 0.4813 +vn -0.0000 0.0000 1.0000 +vn -0.8766 0.0000 0.4813 +vn -0.8766 0.0000 -0.4813 +vn 0.0000 0.0000 -1.0000 +vn 0.8766 0.0000 -0.4813 +vn 0.7091 0.5152 0.4813 +vn -0.7091 -0.5152 0.4813 +vn -0.7091 -0.5152 -0.4813 +vn 0.7091 0.5152 -0.4813 +vn 0.2709 0.8336 0.4813 +vn -0.2709 -0.8336 0.4813 +vn -0.2709 -0.8336 -0.4813 +vn 0.2709 0.8336 -0.4813 +vn -0.2709 0.8336 0.4813 +vn 0.2709 -0.8336 0.4813 +vn 0.2709 -0.8336 -0.4813 +vn -0.2709 0.8336 -0.4813 +vn -0.7091 0.5152 0.4813 +vn 0.7091 -0.5152 0.4813 +vn 0.7091 -0.5152 -0.4813 +vn -0.7091 0.5152 -0.4813 +vn 0.0000 -1.0000 0.0000 +usemtl Material +s off +f 1/1/1 7/2/1 8/3/1 2/4/1 +f 2/4/2 8/3/2 9/5/2 3/6/2 +f 3/6/3 9/5/3 10/7/3 4/8/3 +f 4/9/4 10/10/4 11/11/4 5/12/4 +f 5/12/5 11/11/5 12/13/5 6/14/5 +f 6/14/6 12/13/6 7/2/6 1/1/6 +f 7/2/7 13/15/7 14/16/7 8/3/7 +f 8/3/2 14/16/2 15/17/2 9/5/2 +f 9/5/8 15/17/8 16/18/8 10/7/8 +f 10/10/9 16/19/9 17/20/9 11/11/9 +f 11/11/5 17/20/5 18/21/5 12/13/5 +f 12/13/10 18/21/10 13/15/10 7/2/10 +f 13/15/11 19/22/11 20/23/11 14/16/11 +f 14/16/2 20/23/2 21/24/2 15/17/2 +f 15/17/12 21/24/12 22/25/12 16/18/12 +f 16/19/13 22/26/13 23/27/13 17/20/13 +f 17/20/5 23/27/5 24/28/5 18/21/5 +f 18/21/14 24/28/14 19/22/14 13/15/14 +f 19/29/15 25/30/15 26/31/15 20/32/15 +f 20/33/2 26/34/2 27/35/2 21/36/2 +f 21/37/16 27/38/16 28/39/16 22/40/16 +f 22/41/17 28/42/17 29/43/17 23/44/17 +f 23/45/5 29/46/5 30/47/5 24/48/5 +f 24/49/18 30/50/18 25/51/18 19/52/18 +f 25/51/19 31/53/19 32/54/19 26/55/19 +f 26/55/2 32/54/2 33/56/2 27/57/2 +f 27/57/20 33/56/20 34/58/20 28/59/20 +f 28/60/21 34/61/21 35/62/21 29/63/21 +f 29/63/5 35/62/5 36/64/5 30/50/5 +f 30/65/22 36/66/22 31/67/22 25/30/22 +f 31/68/3 37/69/3 38/70/3 32/71/3 +f 32/72/2 38/73/2 39/74/2 33/75/2 +f 33/76/1 39/77/1 40/78/1 34/79/1 +f 34/80/6 40/81/6 41/82/6 35/83/6 +f 35/84/5 41/85/5 42/86/5 36/87/5 +f 36/88/4 42/89/4 37/90/4 31/91/4 +f 40/92/1 39/93/1 45/94/1 46/95/1 +f 39/96/2 38/97/2 44/98/2 45/99/2 +f 37/100/4 42/101/4 48/102/4 43/103/4 +f 38/104/3 37/105/3 43/106/3 44/107/3 +f 41/108/6 40/109/6 46/110/6 47/111/6 +f 42/112/5 41/113/5 47/114/5 48/115/5 +f 46/116/23 45/117/23 50/118/23 +f 1/119/23 49/120/23 6/121/23 +f 6/121/23 49/120/23 5/122/23 +f 49/120/23 2/123/23 3/124/23 +f 5/122/23 49/120/23 4/125/23 +f 49/120/23 1/119/23 2/123/23 +f 4/125/23 49/120/23 3/124/23 +f 47/126/23 50/118/23 48/127/23 +f 48/127/23 50/118/23 43/128/23 +f 50/118/23 45/117/23 44/129/23 +f 43/128/23 50/118/23 44/129/23 +f 50/118/23 47/126/23 46/116/23 diff --git a/christmas_decor/models/stocking.obj b/christmas_decor/models/stocking.obj new file mode 100644 index 0000000..5d03d37 --- /dev/null +++ b/christmas_decor/models/stocking.obj @@ -0,0 +1,181 @@ +# Blender v2.79 (sub 0) OBJ File: 'stocking.blend' +# www.blender.org +mtllib stocking.mtl +o Plane.001 +v 0.129377 0.450000 0.377819 +v 0.129377 0.250000 0.377819 +v -0.070623 0.450000 0.377819 +v -0.070623 0.250000 0.377819 +vt 0.666667 0.625000 +vt 0.666667 -0.000000 +vt 0.916667 -0.000000 +vt 0.916667 0.625000 +vn 0.0000 0.0000 -1.0000 +usemtl Material +s off +f 1/1/1 2/2/1 4/3/1 3/4/1 +o Plane +v 0.051900 0.510708 0.500000 +v 0.051900 0.310708 0.500000 +v 0.051900 0.510708 0.300000 +v 0.051900 0.310708 0.300000 +vt 0.812500 1.125000 +vt 0.812500 0.625000 +vt 0.979167 0.625000 +vt 0.979167 1.125000 +vn 1.0000 0.0000 0.0000 +usemtl Material +s off +f 5/5/2 6/6/2 8/7/2 7/8/2 +o Cube.001 +v 0.114759 -0.203590 0.462918 +v -0.114759 0.213580 0.462918 +v -0.058163 -0.248184 0.377819 +v -0.266335 0.130187 0.377819 +v 0.292921 -0.105569 0.377819 +v 0.063402 0.311601 0.377819 +v 0.114759 -0.203590 0.292720 +v -0.114759 0.213580 0.292720 +v -0.047172 0.090735 0.477512 +v -0.229301 -0.009469 0.377819 +v 0.161543 0.205565 0.377819 +v -0.047172 0.090735 0.278126 +v -0.089331 -0.315876 0.292720 +v 0.200788 -0.359955 0.462918 +v 0.318289 -0.276599 0.377819 +v 0.200788 -0.359955 0.292720 +v -0.089331 -0.315876 0.462918 +v -0.048571 -0.441585 0.462918 +v -0.048571 -0.441585 0.292720 +v -0.172480 -0.350102 0.377819 +v -0.128465 -0.468303 0.377819 +v 0.213693 -0.382983 0.377819 +v -0.045898 -0.479872 0.377819 +vt -0.000000 0.187500 +vt 0.145833 0.187500 +vt 0.145833 0.625000 +vt -0.000000 0.625000 +vt 0.145833 0.625000 +vt 0.145833 0.187500 +vt -0.000000 0.187500 +vt -0.000000 0.625000 +vt 0.208333 0.000000 +vt 0.333333 0.000000 +vt 0.333333 0.437500 +vt 0.208333 0.437500 +vt 0.333333 0.437500 +vt 0.333333 0.000000 +vt 0.208333 0.000000 +vt 0.208333 0.437500 +vt 0.333333 1.000000 +vt 0.333333 0.750000 +vt 0.062500 0.750000 +vt 0.062500 1.000000 +vt 0.666667 0.000000 +vt 0.333333 0.500000 +vt 0.666667 0.500000 +vt 0.666667 0.500000 +vt 0.333333 0.500000 +vt 0.333333 1.000000 +vt 0.666667 1.000000 +vt 0.666667 0.000000 +vt 0.333333 0.500000 +vt 0.666667 0.500000 +vt 0.666667 0.500000 +vt 0.333333 0.500000 +vt 0.333333 1.000000 +vt 0.666667 1.000000 +vt 0.291667 0.500000 +vt 0.145833 0.500000 +vt 0.145833 0.250000 +vt 0.291667 0.250000 +vt 0.145833 0.250000 +vt 0.291667 0.250000 +vt 0.291667 0.000000 +vt 0.145833 0.000000 +vt 0.333333 0.500000 +vt 0.333333 0.750000 +vt 0.062500 0.750000 +vt 0.062500 0.500000 +vt 0.333333 0.312500 +vt 0.229167 0.312500 +vt 0.229167 0.625000 +vt 0.333333 0.625000 +vt 0.125000 0.312500 +vt 0.229167 0.312500 +vt 0.229167 0.625000 +vt 0.125000 0.625000 +vt 0.145833 0.625000 +vt -0.000000 0.625000 +vt -0.000000 0.812500 +vt 0.145833 0.812500 +vt 0.145833 0.812500 +vt -0.000000 0.812500 +vt -0.000000 1.000000 +vt 0.145833 1.000000 +vt 0.020833 0.187500 +vt 0.145833 0.125000 +vt 0.145833 0.187500 +vt 0.062500 0.000000 +vt 0.062500 0.062500 +vt -0.000000 0.062500 +vt 0.125000 0.437500 +vt 0.062500 0.437500 +vt 0.062500 0.000000 +vt 0.125000 0.000000 +vt 0.020833 0.125000 +vt 0.020833 0.187500 +vt 0.145833 0.125000 +vt -0.000000 0.000000 +vt -0.000000 0.062500 +vt 0.062500 0.000000 +vt 0.062500 0.000000 +vt -0.000000 0.000000 +vt -0.000000 0.437500 +vt 0.062500 0.437500 +vn -0.3867 -0.2128 0.8973 +vn -0.3867 -0.2128 -0.8973 +vn 0.3382 0.1861 -0.9225 +vn 0.3382 0.1861 0.9225 +vn 0.0000 0.0000 1.0000 +vn -0.2906 -0.2690 0.9183 +vn 0.4290 0.1212 -0.8951 +vn -0.2906 -0.2690 -0.9183 +vn 0.4290 0.1212 0.8951 +vn -0.4254 -0.1448 -0.8933 +vn -0.4254 -0.1448 0.8933 +vn -0.0000 -0.0000 -1.0000 +vn -0.5080 0.7551 0.4146 +vn -0.5080 0.7551 -0.4146 +vn 0.6605 0.2296 0.7149 +vn 0.6605 0.2296 -0.7149 +vn -0.6834 0.6719 0.2855 +vn 0.1270 0.9061 -0.4037 +vn -0.3104 0.8849 0.3472 +vn -0.6834 0.6719 -0.2855 +vn 0.1270 0.9061 0.4037 +vn -0.3104 0.8849 -0.3472 +usemtl Material +s off +f 9/9/3 10/10/3 12/11/3 11/12/3 +f 11/13/4 12/14/4 16/15/4 15/16/4 +f 15/17/5 16/18/5 14/19/5 13/20/5 +f 13/21/6 14/22/6 10/23/6 9/24/6 +f 24/25/7 15/26/7 21/27/7 27/28/7 +f 14/29/8 16/18/8 20/30/8 19/31/8 +f 12/32/9 10/33/9 17/34/9 18/35/9 +f 10/36/10 14/22/10 19/37/10 17/38/10 +f 16/39/11 12/40/11 18/41/11 20/42/11 +f 9/43/12 13/44/12 23/45/12 22/46/12 +f 13/47/13 15/48/13 24/49/13 23/50/13 +f 9/51/14 22/52/14 26/53/14 25/54/14 +f 11/55/15 28/56/15 25/57/15 9/58/15 +f 11/59/16 15/60/16 21/61/16 28/62/16 +f 27/63/17 21/64/17 28/65/17 29/66/17 +f 26/67/18 29/68/18 28/69/18 25/70/18 +f 23/71/19 24/72/19 30/73/19 +f 26/74/20 31/75/20 29/76/20 +f 30/77/21 24/78/21 27/79/21 31/80/21 +f 30/81/22 22/82/22 23/83/22 +f 31/84/23 27/85/23 29/86/23 +f 31/87/24 26/88/24 22/89/24 30/90/24 diff --git a/christmas_decor/screenshot.png b/christmas_decor/screenshot.png new file mode 100644 index 0000000..8850abb Binary files /dev/null and b/christmas_decor/screenshot.png differ diff --git a/christmas_decor/stocking.lua b/christmas_decor/stocking.lua new file mode 100644 index 0000000..32fadc9 --- /dev/null +++ b/christmas_decor/stocking.lua @@ -0,0 +1,243 @@ +local stocking = {} +local stuffer = {} +stuffer.stuffers = {} + +function stuffer.register_stuff(name, count) + if count == nil then count = 1 end + local stuff = { + name = name, + count = count, + metadata = "", + } + table.insert(stuffer.stuffers, stuff) +end + +function stuffer.select_stuffers(count) + local p_stuffers = {} + for i=1,#stuffer.stuffers do + table.insert(p_stuffers, stuffer.stuffers[i]) + end + local itemstacks = {} + for i=1,#stuffer.stuffers do + itemstacks[i] = stuffer.stuff_to_itemstack(stuffer.stuffers[i]) + end + return itemstacks +end + +function stuffer.stuff_to_itemstack(stuff) + local itemstack = {} + itemstack.name = stuff.name + itemstack.count = stuffer.determine_count(stuff) + itemstack.metadata = stuff.metadata + + return ItemStack(itemstack) +end + +function stuffer.determine_count(stuff) + if(type(stuff.count)=="number") then + return stuff.count + end +end + +-- REGISTER STUFFERS BELOW HERE + +--stuffer.register_stuff("modname:nodename", amount) +stuffer.register_stuff("default:gold_ingot", 200) +stuffer.register_stuff("christmas_decor:candycane_edible", 20) +stuffer.register_stuff("default:pick_mese", 1) +stuffer.register_stuff("default:sword_mese", 1) +stuffer.register_stuff("default:axe_mese", 1) +stuffer.register_stuff("default:shovel_mese", 1) +stuffer.register_stuff("farming:hoe_mese", 1) + +-- REGISTER STUFFERS ABOVE HERE + +function stocking.get_stocking_formspec(pos) + local spos = pos.x .. "," .. pos.y .. "," ..pos.z + local formspec = + "size[9,9]".. + "background[-0.8,-0.4;10,10;stocking_bg.png]".. + "image_button_exit[7.75,1;1,1;exit_button.png;exit;]".. + "listcolors[#D4393C;#d45658]".. + "list[nodemeta:".. spos .. ";main;-0.2,2;8,2;]".. + "list[current_player;main;-0.2,5;8,4;]" .. + "listring[current_player;main]" + return formspec +end + +stocking.can_dig_function = function(pos, player) + local meta = minetest.get_meta(pos); + local name = player and player:get_player_name() + local owner = meta:get_string("owner") + local inv = meta:get_inventory() + return name == owner and inv:is_empty("main") +end + +local days_elapsed_in_year = function(year, month, day) + local days_elapsed_in_month = { 0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334} + local days_elapsed_in_leapyear_month = { 0, 31, 60, 91, 121, 152, 182, 213, 244, 274, 305, 335} + + local function is_leap_year(year) + return year % 4 == 0 and (year % 100 ~= 0 or year % 400 == 0) + end + + if is_leap_year(year) then + return (days_elapsed_in_leapyear_month[month] + (day - 1)) + else + return (days_elapsed_in_month[month] + (day - 1)) + end +end + +local date_in_seconds = function() + local year = tonumber(os.date("%Y")) + local month = tonumber(os.date("%m")) + local day = tonumber(os.date("%d")) + local second = tonumber(os.date("%S")) + local minute = tonumber(os.date("%M")) + local hour = tonumber(os.date("%H")) + return ((days_elapsed_in_year(year, month, day) * 86400) + (hour * 3600) + (minute * 60) + second) +end + +local christmas_date = 30931200 --Christmas date in seconds + +check_fillable = function(pos) + local year = tonumber(os.date("%Y")) + local meta = minetest.get_meta(pos) + if year == meta:get_int("fill_year") then + if date_in_seconds() > christmas_date then + return true + elseif date_in_seconds() <= christmas_date then + return false + end + elseif year > meta:get_int("fill_year") then + return true + end +end, + +minetest.register_node("christmas_decor:stocking", { + description = "Stocking", + drawtype = "mesh", + mesh = "stocking.obj", + tiles = {"velvet_fluff.png"}, + use_texture_alpha = true, + inventory_image = "inv_stocking.png", + wield_image = "inv_stocking.png", + walkable = false, + selection_box = { + type = "fixed", + fixed = {-0.4, -0.5, 0.5, 0.4, 0.5, 0.2}, + }, + collision_box = { + type = "fixed", + fixed = {-0.4, -0.5, 0.5, 0.4, 0.5, 0.2}, + }, + paramtype = "light", + sunlight_propagates = true, + paramtype2 = "facedir", + groups = {snappy = 3}, + sounds = default.node_sound_leaves_defaults(), + allow_metadata_inventory_put = function(pos, listname, index, stack, player) + if player then + minetest.chat_send_player(player:get_player_name(), "Wait until Christmas Eve for Santa to fill your stocking!") + return 0 + end + end, + on_place = function(itemstack, placer, pointed_thing) + if minetest.is_yes(placer:get_attribute("has_placed_stocking")) then + minetest.chat_send_player(placer:get_player_name(), "Santa won't fill more than one stocking!") + return itemstack + else + return minetest.item_place(itemstack, placer, pointed_thing) + end + end, + after_place_node = function(pos, placer, itemstack, pointed_thing) + local meta = minetest.get_meta(pos) + local owner = placer:get_player_name() + meta:set_string("owner", owner) + meta:set_string("infotext", owner.."'s Stocking") + local inv = meta:get_inventory() + inv:set_size("main", 8*2) + placer:set_attribute("has_placed_stocking", "true") + local year = tonumber(os.date("%Y")) + if date_in_seconds() >= christmas_date then + meta:set_int("fill_year", year + 1) + elseif date_in_seconds() < christmas_date then + meta:set_int("fill_year", year) + end + end, + on_rightclick = function(pos, node, clicker, itemstack) + local meta = minetest.get_meta(pos) + local inv = meta:get_inventory() + local player = clicker:get_player_name() + local stuffers = stuffer.select_stuffers() + local year = tonumber(os.date("%Y")) + local owner = meta:get_string("owner") + if owner == player then + if check_fillable(pos) == true or clicker:get_attribute("needs_fill") == "true" then + for i=1, #stuffers do + inv:set_stack("main", i, stuffers[i]) + end + if date_in_seconds() >= christmas_date then + meta:set_int("fill_year", year + 1) + elseif date_in_seconds() < christmas_date then + meta:set_int("fill_year", year) + end + clicker:set_attribute("needs_fill", "false") + end + if owner == player then + minetest.show_formspec( + clicker:get_player_name(), + "default:chest_locked", + stocking.get_stocking_formspec(pos)) + else + return itemstack + end + return itemstack + end + end, + can_dig = stocking.can_dig_function, + on_metadata_inventory_move = function(pos, from_list, from_index, + to_list, to_index, count, player) + minetest.log("action", player:get_player_name() .. + " moves stuff in stocking at " .. minetest.pos_to_string(pos)) + end, + on_metadata_inventory_put = function(pos, listname, index, stack, player) + minetest.log("action", player:get_player_name() .. + " moves stuff to stocking at " .. minetest.pos_to_string(pos)) + end, + on_metadata_inventory_take = function(pos, listname, index, stack, player) + minetest.log("action", player:get_player_name() .. + " takes stuff from stocking at " .. minetest.pos_to_string(pos)) + end, + on_dig = function(pos, node, digger) + local meta = minetest.get_meta(pos) + local inv = digger:get_inventory() + if stocking.can_dig_function(pos, digger) then + if minetest.is_yes(check_fillable(pos)) then + digger:set_attribute("needs_fill", "true") + end + digger:set_attribute("has_placed_stocking", "false") + minetest.remove_node(pos) + inv:add_item("main", "christmas_decor:stocking") + end + end +}) + +-- Crafts +minetest.register_craft({ + output = "christmas_decor:stocking", + recipe = { + {"", "wool:white", "wool:white"}, + {"", "wool:red", "wool:red"}, + {"wool:red", "wool:red", "wool:red"}, + } +}) + +minetest.register_craft({ + output = "christmas_decor:stocking", + recipe = { + {"wool:white", "wool:white", ""}, + {"wool:red", "wool:red", ""}, + {"wool:red", "wool:red", "wool:red"}, + } +}) diff --git a/christmas_decor/textures/candycane.png b/christmas_decor/textures/candycane.png new file mode 100644 index 0000000..f057fd3 Binary files /dev/null and b/christmas_decor/textures/candycane.png differ diff --git a/christmas_decor/textures/candycane_base.png b/christmas_decor/textures/candycane_base.png new file mode 100644 index 0000000..5dffdfc Binary files /dev/null and b/christmas_decor/textures/candycane_base.png differ diff --git a/christmas_decor/textures/candycane_block.png b/christmas_decor/textures/candycane_block.png new file mode 100644 index 0000000..61a6d99 Binary files /dev/null and b/christmas_decor/textures/candycane_block.png differ diff --git a/christmas_decor/textures/candycane_eddible.png b/christmas_decor/textures/candycane_eddible.png new file mode 100644 index 0000000..9f3ac01 Binary files /dev/null and b/christmas_decor/textures/candycane_eddible.png differ diff --git a/christmas_decor/textures/christmas_decor_helmet_santa_hat.png b/christmas_decor/textures/christmas_decor_helmet_santa_hat.png new file mode 100644 index 0000000..fe14100 Binary files /dev/null and b/christmas_decor/textures/christmas_decor_helmet_santa_hat.png differ diff --git a/christmas_decor/textures/christmas_decor_helmet_santa_hat_preview.png b/christmas_decor/textures/christmas_decor_helmet_santa_hat_preview.png new file mode 100644 index 0000000..9d4c490 Binary files /dev/null and b/christmas_decor/textures/christmas_decor_helmet_santa_hat_preview.png differ diff --git a/christmas_decor/textures/cookie_cutter.png b/christmas_decor/textures/cookie_cutter.png new file mode 100644 index 0000000..0001b7f Binary files /dev/null and b/christmas_decor/textures/cookie_cutter.png differ diff --git a/christmas_decor/textures/exit_button.png b/christmas_decor/textures/exit_button.png new file mode 100644 index 0000000..05ce2de Binary files /dev/null and b/christmas_decor/textures/exit_button.png differ diff --git a/christmas_decor/textures/frosting.png b/christmas_decor/textures/frosting.png new file mode 100644 index 0000000..a6e7ee3 Binary files /dev/null and b/christmas_decor/textures/frosting.png differ diff --git a/christmas_decor/textures/frosting_line.png b/christmas_decor/textures/frosting_line.png new file mode 100644 index 0000000..f6d072d Binary files /dev/null and b/christmas_decor/textures/frosting_line.png differ diff --git a/christmas_decor/textures/frosting_trim.png b/christmas_decor/textures/frosting_trim.png new file mode 100644 index 0000000..bf97444 Binary files /dev/null and b/christmas_decor/textures/frosting_trim.png differ diff --git a/christmas_decor/textures/garland.png b/christmas_decor/textures/garland.png new file mode 100644 index 0000000..20c2fff Binary files /dev/null and b/christmas_decor/textures/garland.png differ diff --git a/christmas_decor/textures/garland_lights.png b/christmas_decor/textures/garland_lights.png new file mode 100644 index 0000000..0891cdd Binary files /dev/null and b/christmas_decor/textures/garland_lights.png differ diff --git a/christmas_decor/textures/ginger.png b/christmas_decor/textures/ginger.png new file mode 100644 index 0000000..42edec8 Binary files /dev/null and b/christmas_decor/textures/ginger.png differ diff --git a/christmas_decor/textures/gingerbread_dough.png b/christmas_decor/textures/gingerbread_dough.png new file mode 100644 index 0000000..405c121 Binary files /dev/null and b/christmas_decor/textures/gingerbread_dough.png differ diff --git a/christmas_decor/textures/gingerbread_man.png b/christmas_decor/textures/gingerbread_man.png new file mode 100644 index 0000000..52ec529 Binary files /dev/null and b/christmas_decor/textures/gingerbread_man.png differ diff --git a/christmas_decor/textures/gingerbread_man_raw.png b/christmas_decor/textures/gingerbread_man_raw.png new file mode 100644 index 0000000..4d3ec7e Binary files /dev/null and b/christmas_decor/textures/gingerbread_man_raw.png differ diff --git a/christmas_decor/textures/inv_candycane.png b/christmas_decor/textures/inv_candycane.png new file mode 100644 index 0000000..28c40f0 Binary files /dev/null and b/christmas_decor/textures/inv_candycane.png differ diff --git a/christmas_decor/textures/inv_garland_lights.png b/christmas_decor/textures/inv_garland_lights.png new file mode 100644 index 0000000..904b9cf Binary files /dev/null and b/christmas_decor/textures/inv_garland_lights.png differ diff --git a/christmas_decor/textures/inv_helmet_santa_hat.png b/christmas_decor/textures/inv_helmet_santa_hat.png new file mode 100644 index 0000000..9fb3d28 Binary files /dev/null and b/christmas_decor/textures/inv_helmet_santa_hat.png differ diff --git a/christmas_decor/textures/inv_lights_multicolor.png b/christmas_decor/textures/inv_lights_multicolor.png new file mode 100644 index 0000000..71d24a2 Binary files /dev/null and b/christmas_decor/textures/inv_lights_multicolor.png differ diff --git a/christmas_decor/textures/inv_lights_multicolor_bulb.png b/christmas_decor/textures/inv_lights_multicolor_bulb.png new file mode 100644 index 0000000..6e58df3 Binary files /dev/null and b/christmas_decor/textures/inv_lights_multicolor_bulb.png differ diff --git a/christmas_decor/textures/inv_lights_white.png b/christmas_decor/textures/inv_lights_white.png new file mode 100644 index 0000000..2934d15 Binary files /dev/null and b/christmas_decor/textures/inv_lights_white.png differ diff --git a/christmas_decor/textures/inv_lights_white_icicle.png b/christmas_decor/textures/inv_lights_white_icicle.png new file mode 100644 index 0000000..fb7e291 Binary files /dev/null and b/christmas_decor/textures/inv_lights_white_icicle.png differ diff --git a/christmas_decor/textures/inv_stocking.png b/christmas_decor/textures/inv_stocking.png new file mode 100644 index 0000000..c8d2e2e Binary files /dev/null and b/christmas_decor/textures/inv_stocking.png differ diff --git a/christmas_decor/textures/led_rgb.png b/christmas_decor/textures/led_rgb.png new file mode 100644 index 0000000..6243f68 Binary files /dev/null and b/christmas_decor/textures/led_rgb.png differ diff --git a/christmas_decor/textures/led_white.png b/christmas_decor/textures/led_white.png new file mode 100644 index 0000000..b904aab Binary files /dev/null and b/christmas_decor/textures/led_white.png differ diff --git a/christmas_decor/textures/lights_multicolor.png b/christmas_decor/textures/lights_multicolor.png new file mode 100644 index 0000000..2dbc16d Binary files /dev/null and b/christmas_decor/textures/lights_multicolor.png differ diff --git a/christmas_decor/textures/lights_multicolor_bulb.png b/christmas_decor/textures/lights_multicolor_bulb.png new file mode 100644 index 0000000..a962438 Binary files /dev/null and b/christmas_decor/textures/lights_multicolor_bulb.png differ diff --git a/christmas_decor/textures/lights_white.png b/christmas_decor/textures/lights_white.png new file mode 100644 index 0000000..372792a Binary files /dev/null and b/christmas_decor/textures/lights_white.png differ diff --git a/christmas_decor/textures/lights_white_icicle.png b/christmas_decor/textures/lights_white_icicle.png new file mode 100644 index 0000000..e35be02 Binary files /dev/null and b/christmas_decor/textures/lights_white_icicle.png differ diff --git a/christmas_decor/textures/milk_glass.png b/christmas_decor/textures/milk_glass.png new file mode 100644 index 0000000..cf5d374 Binary files /dev/null and b/christmas_decor/textures/milk_glass.png differ diff --git a/christmas_decor/textures/milk_glass_inv.png b/christmas_decor/textures/milk_glass_inv.png new file mode 100644 index 0000000..72c2437 Binary files /dev/null and b/christmas_decor/textures/milk_glass_inv.png differ diff --git a/christmas_decor/textures/mistletoe.png b/christmas_decor/textures/mistletoe.png new file mode 100644 index 0000000..e494524 Binary files /dev/null and b/christmas_decor/textures/mistletoe.png differ diff --git a/christmas_decor/textures/plate_top.png b/christmas_decor/textures/plate_top.png new file mode 100644 index 0000000..42165ce Binary files /dev/null and b/christmas_decor/textures/plate_top.png differ diff --git a/christmas_decor/textures/reindeer.png b/christmas_decor/textures/reindeer.png new file mode 100644 index 0000000..3513fe7 Binary files /dev/null and b/christmas_decor/textures/reindeer.png differ diff --git a/christmas_decor/textures/santa.png b/christmas_decor/textures/santa.png new file mode 100644 index 0000000..b110790 Binary files /dev/null and b/christmas_decor/textures/santa.png differ diff --git a/christmas_decor/textures/stocking_bg.png b/christmas_decor/textures/stocking_bg.png new file mode 100644 index 0000000..cff825b Binary files /dev/null and b/christmas_decor/textures/stocking_bg.png differ diff --git a/christmas_decor/textures/velvet_fluff.png b/christmas_decor/textures/velvet_fluff.png new file mode 100644 index 0000000..adebd09 Binary files /dev/null and b/christmas_decor/textures/velvet_fluff.png differ diff --git a/christmas_decor/textures/wire.png b/christmas_decor/textures/wire.png new file mode 100644 index 0000000..c369709 Binary files /dev/null and b/christmas_decor/textures/wire.png differ diff --git a/digistuff/README b/digistuff/README new file mode 100644 index 0000000..824e50c --- /dev/null +++ b/digistuff/README @@ -0,0 +1,59 @@ +Digilines Stuff +=============== + + +License: +Code - LGPL v3 or later (contains some code from mesecons and digilines) +Textures WITHOUT "adwaita" in the file name - CC BY-SA 3.0 Generic (contains modified versions of textures from mesecons and digilines) +Textures WITH "adwaita" in the file name - These are icons by the GNOME Project, licensed under GNU LGPL v3 or CC BY-SA 3.0. + + +Depends: +Required: digilines (base only) and mesecons (base only) +Only needed for craft recipes: default, mesecons_luacontroller, basic_materials + + +How to use digilines buttons: +Connect to a digiline (or digimese), right-click, and set a channel and message. +When the button is pressed (right-click), it will send that message on that channel, over digilines. +Note that the settings cannot be changed after setting - you must dig and re-place the button to do so. + + +How to use digimese: +It conducts digilines signals (like digilines) in all directions (like mese). That's about it, really. + + +How to use vertical/insulated digilines: +These work exactly like the mesecons equivalents, that is: +Vertical digilines will automatically connect to other vertical digilines directly above or below them, and form "plates" on each end of the stack. Signals can only be conducted into or out of the stack at these "plates". +Insulated digilines conduct like regular digilines, but only into/out of the ends of the "wire". + + +How to use the digilines player detector: +Set a channel and radius (radius must be a number >0 and <10 - anything invalid will be ignored and "6" used instead). +Every second while a player is within the radius, a table listing the players in range will be sent via digilines on the chosen channel. + + +How to use the digilines control panel: +Once a channel is set, any messages sent on that channel will be shown on the "LCD". The buttons, when pressed, send the messages "up", "down", "left", "right", "back", and "enter" on the same channel. If the panel is placed in a protected area (all standard protection mods are supported), only the owner of the area (and players with the protection_bypass privilege) can set the channel. There is also a "lock" function in the bottom-right of the "LCD" area. Click the padlock icon to lock/unlock it. If locked, only the owner of the area is allowed to use the buttons. If unlocked, anyone can use the buttons, although channel setting and (for reasons that shuld be obvious) locking/unlocking is still limited to the area owner and players with protection_bypass. + + +How to use the NIC: +Send a digilines signal with the URL you want to download. The HTTPRequestResult table will be sent back on the same channel. + + +How to use the camera: +Set the channel, distance, and radius. The camera will search for a node "distance" meters away and up to 10m down. +Every second while a player is within "radius" meters of that point, a table listing the players in range will be sent via digilines on the chosen channel. + + +How to use the dimmable lights: +After setting the channel, send a number from 0 to 14 to set the light level. + + +How to use the timer: +Send a number representing a time in seconds, from 0.5 to 3600. When the time expires, the timer will send "done" back on the same channel. If the loop feature is enabled (use the commands "loop_on" and "loop_off" to set this) the timer will automatically be set for the same time again each time it expires. + +How to use the junction box: +These are just plain digilines conductors (like digimese) but can skip over one node to another junction box or certain other nodes. +As in, [digiline][junction box][dirt][junction box][digiline] will work to transmit signals "through" the dirt. diff --git a/digistuff/camera.lua b/digistuff/camera.lua new file mode 100644 index 0000000..3a2a129 --- /dev/null +++ b/digistuff/camera.lua @@ -0,0 +1,98 @@ +minetest.register_node("digistuff:camera", { + tiles = { + "digistuff_camera_top.png", + "digistuff_camera_bottom.png", + "digistuff_camera_right.png", + "digistuff_camera_left.png", + "digistuff_camera_back.png", + "digistuff_camera_front.png", + }, + digiline = + { + receptor = {} + }, + groups = {cracky=2}, + paramtype = "light", + paramtype2 = "facedir", + drawtype = "nodebox", + node_box = { + type = "fixed", + fixed = { + {-0.1,-0.5,-0.28,0.1,-0.3,0.3}, --Camera Body + {-0.045,-0.42,-0.34,0.045,-0.36,-0.28}, -- Lens + {-0.05,-0.9,-0.05,0.05,-0.5,0.05}, --Pole + } + }, + selection_box = { + type = "fixed", + fixed = { + {-0.1,-0.5,-0.34,0.1,-0.3,0.3}, --Camera Body + } + }, + description = "Digilines Camera", + on_construct = function(pos) + local meta = minetest.get_meta(pos) + meta:set_string("formspec","size[8,6;]field[1,1;6,2;channel;Channel;${channel}]field[1,2;6,2;radius;Radius (max 10);${radius}]field[1,3;6,2;distance;Distance (max 20);${distance}]button_exit[2.25,4;3,1;submit;Save]") + end, + on_receive_fields = function(pos, formname, fields, sender) + local name = sender:get_player_name() + if minetest.is_protected(pos,name) and not minetest.check_player_privs(name,{protection_bypass=true}) then + minetest.record_protection_violation(pos,name) + return + end + local meta = minetest.get_meta(pos) + if fields.channel then meta:set_string("channel",fields.channel) end + if fields.distance and tonumber(fields.distance) then meta:set_int("distance",math.max(math.min(20,fields.distance),0)) end + if fields.radius and tonumber(fields.radius) then meta:set_int("radius",math.max(math.min(10,fields.radius),1)) end + end, + sounds = default and default.node_sound_stone_defaults() +}) + +minetest.register_abm({ + nodenames = {"digistuff:camera"}, + interval = 1.0, + chance = 1, + action = function(pos,node) + local meta = minetest.get_meta(pos) + local channel = meta:get_string("channel") + local radius = meta:get_int("radius") + local distance = meta:get_int("distance") + local dir = vector.multiply(minetest.facedir_to_dir(node.param2),-1) + local spot = vector.add(pos,vector.multiply(dir,distance)) + local i = 0 + while i <= 10 and minetest.get_node(spot).name == "air" do + --Downward search for ground level + spot = vector.add(spot,vector.new(0,-1,0)) + i = i + 1 + end + if minetest.get_node(spot).name == "air" or minetest.get_node(spot).name == "ignore" then + --Ground not in range + return + end + + local found_any = false + local players_found = {} + local objs = minetest.get_objects_inside_radius(spot,radius) + if objs then + local _,obj + for _,obj in ipairs(objs) do + if obj:is_player() then + table.insert(players_found,obj:get_player_name()) + found_any = true + end + end + if found_any then + digiline:receptor_send({x=pos.x,y=pos.y-1,z=pos.z}, digiline.rules.default, channel, players_found) + end + end + end +}) + +minetest.register_craft({ + output = "digistuff:camera", + recipe = { + {"homedecor:plastic_sheeting","homedecor:plastic_sheeting","homedecor:plastic_sheeting"}, + {"default:glass","homedecor:ic","mesecons_luacontroller:luacontroller0000"}, + {"homedecor:plastic_sheeting","homedecor:plastic_sheeting","homedecor:plastic_sheeting"}, + } +}) diff --git a/digistuff/conductors.lua b/digistuff/conductors.lua new file mode 100644 index 0000000..d18b641 --- /dev/null +++ b/digistuff/conductors.lua @@ -0,0 +1,545 @@ +digistuff.remove_receiver = function(pos,node) + local dir = minetest.facedir_to_dir(node.param2) + local rpos = vector.add(pos,vector.multiply(dir,2)) + local rnode = minetest.get_node(rpos) + if rnode.name == "digistuff:receiver" then + rnode.name = "digilines:wire_std_00000000" + minetest.remove_node(rpos) + minetest.set_node(rpos,rnode) + digilines.update_autoconnect(rpos) + end +end + +digistuff.place_receiver = function(pos) + local node = minetest.get_node(pos) + local dir = minetest.facedir_to_dir(node.param2) + if dir.y == 0 then + local nodebehind = minetest.get_node(vector.add(pos,dir)) + if nodebehind.name == "digistuff:digimese" then return end + local rpos = vector.add(pos,vector.multiply(dir,2)) + local rnode = minetest.get_node(rpos) + if string.find(rnode.name,"^digilines:wire_std_") then + minetest.remove_node(rpos) + local newrnode = {pos = rpos,name = "digistuff:receiver",param2 = node.param2,} + minetest.set_node(rpos,newrnode) + digilines.update_autoconnect(rpos) + end + end +end + +local old_update_autoconnect = digilines.update_autoconnect + +digilines.update_autoconnect = function(pos,secondcall) + if not secondcall then + local node = minetest.get_node(pos) + if string.find(node.name,"^digilines:wire_std_") then + local checkdirs = { + {x = 1,y = 0,z = 0}, + {x = -1,y = 0,z = 0}, + {x = 0,y = 0,z = 1}, + {x = 0,y = 0,z = -1}, + } + local found = false + for _,i in ipairs(checkdirs) do + if not found then + local checkpos = vector.add(pos,vector.multiply(i,2)) + local group = minetest.get_item_group(minetest.get_node(checkpos).name,"digiline_receiver") + if group and group > 0 then + digistuff.place_receiver(checkpos) + if minetest.get_node(pos).name == "digistuff:receiver" then found = true end + end + end + end + end + end + old_update_autoconnect(pos,secondcall) +end + +minetest.register_node("digistuff:digimese", { + description = "Digimese", + tiles = {"digistuff_digimese.png"}, + paramtype = "light", + light_source = 3, + groups = {cracky = 3, level = 2}, + is_ground_content = false, + sounds = default and default.node_sound_stone_defaults(), + digiline = { wire = { rules = { + {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}}}} +}) + +minetest.register_node("digistuff:junctionbox", { + description = "Digilines Junction Box", + tiles = {"digistuff_junctionbox.png"}, + paramtype = "light", + paramtype2 = "facedir", + groups = {cracky = 3}, + is_ground_content = false, + paramtype = "light", + drawtype = "nodebox", + node_box = { + type = "fixed", + fixed = { + {-0.1,-0.15,0.35,0.1,0.15,0.5}, + } + }, + sounds = default and default.node_sound_stone_defaults(), + digiline = { + receptor = {}, + wire = { + rules = { + {x = 1,y = 0,z = 0}, + {x = -1,y = 0,z = 0}, + {x = 0,y = 0,z = 1}, + {x = 0,y = 0,z = -1}, + {x = 0,y = 1,z = 0}, + {x = 0,y = -1,z = 0}, + {x = 0,y = -2,z = 0}, + {x = 0,y = 2,z = 0}, + {x = -2,y = 0,z = 0}, + {x = 2,y = 0,z = 0}, + {x = 0,y = 0,z = -2}, + {x = 0,y = 0,z = 2}, + } + }, + }, +}) + +digistuff.receiver_get_rules = function(node) + local rules = { + {x = 0,y = 0,z = -2}, + {x = 0,y = 0,z = 1}, + } + return digistuff.rotate_rules(rules,minetest.facedir_to_dir(node.param2)) +end + +minetest.register_node("digistuff:receiver", { + description = "Digilines Receiver (you hacker you!)", + tiles = {"digistuff_digiline_full.png"}, + paramtype = "light", + groups = {dig_immediate = 3,not_in_creative_inventory = 1,}, + drop = "digilines:wire_std_00000000", + is_ground_content = false, + paramtype = "light", + paramtype2 = "facedir", + walkable = false, + drawtype = "nodebox", + node_box = { + type = "fixed", + fixed = { + {-0.05,-0.05,-1.49,0.05,0.05,-0.5}, + {-0.2,-0.2,-0.5,0.2,0.2,-0.4}, + {-0.0625,-0.5,-0.5,0.0625,-0.2,-0.4}, + {-0.0625,-0.5,-0.4,0.0625,-0.4375,0.5}, + }, + }, + selection_box = { + type = "fixed", + fixed = { + {-0.2,-0.5,-0.5,0.2,0.2,0.5}, + {-0.075,-0.075,-1.49,0.075,0.075,-0.5}, + }, + }, + digiline = { + receptor = {}, + wire = { + rules = digistuff.receiver_get_rules, + }, + }, +}) + +digistuff.vertical_autoconnect = function(pos) + local node = minetest.get_node(pos) + if minetest.get_item_group(node.name,"vertical_digiline") == 0 then return end + local uppos = vector.add(pos,vector.new(0,1,0)) + local dnpos = vector.add(pos,vector.new(0,-1,0)) + local upnode = minetest.get_node(uppos) + local dnnode = minetest.get_node(dnpos) + local shouldbe = "digistuff:vertical_bottom" + if minetest.get_item_group(dnnode.name,"vertical_digiline") > 0 then + if minetest.get_item_group(upnode.name,"vertical_digiline") > 0 then + shouldbe = "digistuff:vertical_middle" + else + shouldbe = "digistuff:vertical_top" + end + end + if shouldbe ~= node.name or upnode.name == "digistuff:vertical_bottom" or dnnode.name == "digistuff:vertical_top" then + node.name = shouldbe + minetest.set_node(pos,node) + digilines.update_autoconnect(pos) + digistuff.vertical_autoconnect(uppos) + digistuff.vertical_autoconnect(dnpos) + end +end + +digistuff.vertical_remove = function(pos) + local uppos = vector.add(pos,vector.new(0,1,0)) + local dnpos = vector.add(pos,vector.new(0,-1,0)) + digistuff.vertical_autoconnect(uppos) + digistuff.vertical_autoconnect(dnpos) +end + +minetest.register_node("digistuff:vertical_bottom", { + description = "Vertical Digiline", + tiles = {"digistuff_digiline_full.png"}, + paramtype = "light", + groups = {dig_immediate = 3,vertical_digiline = 1,}, + is_ground_content = false, + paramtype = "light", + drawtype = "nodebox", + node_box = { + type = "fixed", + fixed = { + {-0.5,-0.5,-0.5,0.5,-0.4375,0.5}, + {-0.05,-0.4375,-0.05,0.05,0.5,0.05}, + }, + }, + collision_box = { + type = "fixed", + fixed = { + {-0.5,-0.5,-0.5,0.5,-0.4375,0.5}, + }, + }, + after_place_node = digistuff.vertical_autoconnect, + after_destruct = digistuff.vertical_remove, + digiline = { + receptor = {}, + wire = { + rules = { + {x = 1,y = 0,z = 0}, + {x = -1,y = 0,z = 0}, + {x = 0,y = 0,z = 1}, + {x = 0,y = 0,z = -1}, + {x = 0,y = 1,z = 0}, + {x = 0,y = 2,z = 0}, + }, + }, + }, +}) + +minetest.register_node("digistuff:vertical_middle", { + description = "Vertical Digiline (middle - you hacker you!)", + tiles = {"digistuff_digiline_full.png"}, + paramtype = "light", + groups = {dig_immediate = 3,not_in_creative_inventory = 1,vertical_digiline = 1,}, + drop = "digistuff:vertical_bottom", + is_ground_content = false, + paramtype = "light", + walkable = false, + drawtype = "nodebox", + node_box = { + type = "fixed", + fixed = { + {-0.05,-0.5,-0.05,0.05,0.5,0.05}, + }, + }, + after_place_node = digistuff.vertical_autoconnect, + after_destruct = digistuff.vertical_remove, + digiline = { + receptor = {}, + wire = { + rules = { + {x = 0,y = 1,z = 0}, + {x = 0,y = -1,z = 0}, + }, + }, + }, +}) + +minetest.register_node("digistuff:vertical_top", { + description = "Vertical Digiline (top - you hacker you!)", + tiles = {"digistuff_digiline_full.png"}, + paramtype = "light", + groups = {dig_immediate = 3,not_in_creative_inventory = 1,vertical_digiline = 1,}, + drop = "digistuff:vertical_bottom", + is_ground_content = false, + paramtype = "light", + drawtype = "nodebox", + node_box = { + type = "fixed", + fixed = { + {-0.5,-0.5,-0.5,0.5,-0.4375,0.5}, + }, + }, + after_place_node = digistuff.vertical_autoconnect, + after_destruct = digistuff.vertical_remove, + digiline = { + receptor = {}, + wire = { + rules = { + {x = 1,y = 0,z = 0}, + {x = -1,y = 0,z = 0}, + {x = 0,y = 0,z = 1}, + {x = 0,y = 0,z = -1}, + {x = 0,y = -1,z = 0}, + }, + }, + }, +}) + +minetest.register_node("digistuff:insulated_straight", { + description = "Insulated Digiline (straight)", + tiles = { + "digistuff_insulated_full.png", + "digistuff_insulated_full.png", + "digistuff_insulated_edge.png", + "digistuff_insulated_edge.png", + "digistuff_insulated_full.png", + "digistuff_insulated_full.png", + }, + paramtype = "light", + paramtype2 = "facedir", + walkable = false, + on_rotate = minetest.get_modpath("screwdriver") and screwdriver.rotate_simple, + groups = {dig_immediate = 3,}, + is_ground_content = false, + paramtype = "light", + drawtype = "nodebox", + node_box = { + type = "fixed", + fixed = { + {-0.5,-0.5,-0.1,0.5,-0.4,0.1}, + }, + }, + selection_box = { + type = "fixed", + fixed = { + {-0.5,-0.5,-0.15,0.5,-0.35,0.15}, + }, + }, + after_place_node = digilines.update_autoconnect, + after_destruct = digilines.update_autoconnect, + digiline = { + receptor = {}, + wire = { + rules = function(node) + local rules = { + {x = 1,y = 0,z = 0}, + {x = -1,y = 0,z = 0}, + } + return digistuff.rotate_rules(rules,minetest.facedir_to_dir(node.param2)) + end, + }, + }, +}) + +minetest.register_node("digistuff:insulated_tjunction", { + description = "Insulated Digiline (T junction)", + tiles = { + "digistuff_insulated_full.png", + "digistuff_insulated_full.png", + "digistuff_insulated_edge.png", + "digistuff_insulated_edge.png", + "digistuff_insulated_full.png", + "digistuff_insulated_edge.png", + }, + paramtype = "light", + paramtype2 = "facedir", + walkable = false, + on_rotate = minetest.get_modpath("screwdriver") and screwdriver.rotate_simple, + groups = {dig_immediate = 3,}, + is_ground_content = false, + paramtype = "light", + drawtype = "nodebox", + node_box = { + type = "fixed", + fixed = { + {-0.5,-0.5,-0.1,0.5,-0.4,0.1}, + {-0.1,-0.5,-0.5,0.1,-0.4,-0.1}, + }, + }, + selection_box = { + type = "fixed", + fixed = { + {-0.5,-0.5,-0.5,0.5,-0.35,0.15}, + }, + }, + after_place_node = digilines.update_autoconnect, + after_destruct = digilines.update_autoconnect, + digiline = { + receptor = {}, + wire = { + rules = function(node) + local rules = { + {x = 1,y = 0,z = 0}, + {x = -1,y = 0,z = 0}, + {x = 0,y = 0,z = -1}, + } + return digistuff.rotate_rules(rules,minetest.facedir_to_dir(node.param2)) + end, + }, + }, +}) + +minetest.register_node("digistuff:insulated_corner", { + description = "Insulated Digiline (corner)", + tiles = { + "digistuff_insulated_full.png", + "digistuff_insulated_full.png", + "digistuff_insulated_full.png", + "digistuff_insulated_edge.png", + "digistuff_insulated_full.png", + "digistuff_insulated_edge.png", + }, + paramtype = "light", + paramtype2 = "facedir", + walkable = false, + on_rotate = minetest.get_modpath("screwdriver") and screwdriver.rotate_simple, + groups = {dig_immediate = 3,}, + is_ground_content = false, + paramtype = "light", + drawtype = "nodebox", + node_box = { + type = "fixed", + fixed = { + {-0.1,-0.5,-0.5,0.1,-0.4,0.1}, + {-0.5,-0.5,-0.1,0.1,-0.4,0.1}, + }, + }, + selection_box = { + type = "fixed", + fixed = { + {-0.5,-0.5,-0.5,0.15,-0.35,0.15}, + }, + }, + after_place_node = digilines.update_autoconnect, + after_destruct = digilines.update_autoconnect, + digiline = { + receptor = {}, + wire = { + rules = function(node) + local rules = { + {x = -1,y = 0,z = 0}, + {x = 0,y = 0,z = -1}, + } + return digistuff.rotate_rules(rules,minetest.facedir_to_dir(node.param2)) + end, + }, + }, +}) + +minetest.register_node("digistuff:insulated_fourway", { + description = "Insulated Digiline (four-way junction)", + tiles = { + "digistuff_insulated_full.png", + "digistuff_insulated_full.png", + "digistuff_insulated_edge.png", + "digistuff_insulated_edge.png", + "digistuff_insulated_edge.png", + "digistuff_insulated_edge.png", + }, + paramtype = "light", + walkable = false, + groups = {dig_immediate = 3,}, + is_ground_content = false, + paramtype = "light", + drawtype = "nodebox", + node_box = { + type = "fixed", + fixed = { + {-0.5,-0.5,-0.1,0.5,-0.4,0.1}, + {-0.1,-0.5,-0.5,0.1,-0.4,-0.1}, + {-0.1,-0.5,0.1,0.1,-0.4,0.5}, + }, + }, + selection_box = { + type = "fixed", + fixed = { + {-0.5,-0.5,-0.5,0.5,-0.35,0.5}, + }, + }, + after_place_node = digilines.update_autoconnect, + after_destruct = digilines.update_autoconnect, + digiline = { + receptor = {}, + wire = { + rules = { + {x = 1,y = 0,z = 0}, + {x = -1,y = 0,z = 0}, + {x = 0,y = 0,z = -1}, + {x = 0,y = 0,z = 1}, + }, + }, + }, +}) + +minetest.register_craft({ + output = "digistuff:digimese", + recipe = { + {"digilines:wire_std_00000000","digilines:wire_std_00000000","digilines:wire_std_00000000"}, + {"digilines:wire_std_00000000","default:mese","digilines:wire_std_00000000"}, + {"digilines:wire_std_00000000","digilines:wire_std_00000000","digilines:wire_std_00000000"} + } +}) + +minetest.register_craft({ + output = "digistuff:junctionbox", + recipe = { + {"homedecor:plastic_sheeting","digilines:wire_std_00000000","homedecor:plastic_sheeting",}, + {"digilines:wire_std_00000000","digilines:wire_std_00000000","digilines:wire_std_00000000",}, + {"homedecor:plastic_sheeting","digilines:wire_std_00000000","homedecor:plastic_sheeting",}, + } +}) + +if minetest.get_modpath("mesecons_materials") then + minetest.register_craft({ + output = "digistuff:insulated_straight 3", + recipe = { + {"mesecons_materials:fiber","mesecons_materials:fiber","mesecons_materials:fiber",}, + {"digilines:wire_std_00000000","digilines:wire_std_00000000","digilines:wire_std_00000000",}, + {"mesecons_materials:fiber","mesecons_materials:fiber","mesecons_materials:fiber",}, + } + }) +end + +minetest.register_craft({ + output = "digistuff:vertical_bottom 3", + recipe = { + {"digilines:wire_std_00000000",}, + {"digilines:wire_std_00000000",}, + {"digilines:wire_std_00000000",}, + } +}) + +minetest.register_craft({ + output = "digistuff:insulated_corner 3", + recipe = { + {"digistuff:insulated_straight","digistuff:insulated_straight",}, + {"","digistuff:insulated_straight",}, + } +}) + +minetest.register_craft({ + output = "digistuff:insulated_tjunction 4", + recipe = { + {"digistuff:insulated_straight","digistuff:insulated_straight","digistuff:insulated_straight",}, + {"","digistuff:insulated_straight","",}, + } +}) + +minetest.register_craft({ + output = "digistuff:insulated_fourway 5", + recipe = { + {"","digistuff:insulated_straight","",}, + {"digistuff:insulated_straight","digistuff:insulated_straight","digistuff:insulated_straight",}, + {"","digistuff:insulated_straight","",}, + } +}) + +for _,item in ipairs({"digistuff:insulated_corner","digistuff:insulated_tjunction","digistuff:insulated_fourway",}) do + minetest.register_craft({ + output = "digistuff:insulated_straight", + type = "shapeless", + recipe = {item}, + }) +end + +minetest.register_craft({ + output = "digilines:wire_std_00000000", + type = "shapeless", + recipe = {"digistuff:vertical_bottom"}, +}) diff --git a/digistuff/depends.txt b/digistuff/depends.txt new file mode 100644 index 0000000..a3bfdda --- /dev/null +++ b/digistuff/depends.txt @@ -0,0 +1,5 @@ +default? +digilines +mesecons? +mesecons_mvps? +screwdriver? diff --git a/digistuff/detector.lua b/digistuff/detector.lua new file mode 100644 index 0000000..f6542da --- /dev/null +++ b/digistuff/detector.lua @@ -0,0 +1,63 @@ +minetest.register_node("digistuff:detector", { + tiles = { + "digistuff_digidetector.png" + }, + digiline = + { + receptor = {} + }, + groups = {cracky=2}, + description = "Digilines Player Detector", + on_construct = function(pos) + local meta = minetest.get_meta(pos) + meta:set_string("formspec","size[8,4;]field[1,1;6,2;channel;Channel;${channel}]field[1,2;6,2;radius;Radius;${radius}]button_exit[2.25,3;3,1;submit;Save]") + end, + on_receive_fields = function(pos, formname, fields, sender) + local name = sender:get_player_name() + if minetest.is_protected(pos,name) and not minetest.check_player_privs(name,{protection_bypass=true}) then + minetest.record_protection_violation(pos,name) + return + end + local meta = minetest.get_meta(pos) + if fields.channel then meta:set_string("channel",fields.channel) end + if fields.msg then meta:set_string("msg",fields.msg) end + if fields.radius then meta:set_string("radius",fields.radius) end + end, + sounds = default and default.node_sound_stone_defaults() +}) + +minetest.register_abm({ + nodenames = {"digistuff:detector"}, + interval = 1.0, + chance = 1, + action = function(pos) + local meta = minetest.get_meta(pos) + local channel = meta:get_string("channel") + local radius = meta:get_string("radius") + local found_any = false + local players_found = {} + if not radius or not tonumber(radius) or tonumber(radius) < 1 or tonumber(radius) > 10 then radius = 6 end + local objs = minetest.get_objects_inside_radius(pos, radius) + if objs then + local _,obj + for _,obj in ipairs(objs) do + if obj:is_player() then + table.insert(players_found,obj:get_player_name()) + found_any = true + end + end + if found_any then + digiline:receptor_send(pos, digiline.rules.default, channel, players_found) + end + end + end +}) + +minetest.register_craft({ + output = "digistuff:detector", + recipe = { + {"mesecons_detector:object_detector_off"}, + {"mesecons_luacontroller:luacontroller0000"}, + {"digilines:wire_std_00000000"} + } +}) diff --git a/digistuff/init.lua b/digistuff/init.lua new file mode 100644 index 0000000..4f336b4 --- /dev/null +++ b/digistuff/init.lua @@ -0,0 +1,27 @@ +digistuff = {} + +local components = { + "internal", + "conductors", + "touchscreen", + "light", + "noteblock", + "camera", + "switches", + "panel", + "piezo", + "detector", + "piston", + "timer", +} +for _,name in ipairs(components) do + dofile(string.format("%s%s%s.lua",minetest.get_modpath(minetest.get_current_modname()),DIR_DELIM,name)) +end + +local http = minetest.request_http_api() +if not http then + minetest.log("error","digistuff is not allowed to use the HTTP API - digilines NIC will not be available!") + minetest.log("error","If this functionality is desired, please add digistuff to your secure.http_mods setting") +else + loadfile(string.format("%s%s%s.lua",minetest.get_modpath(minetest.get_current_modname()),DIR_DELIM,"nic"))(http) +end diff --git a/digistuff/internal.lua b/digistuff/internal.lua new file mode 100644 index 0000000..494a206 --- /dev/null +++ b/digistuff/internal.lua @@ -0,0 +1,44 @@ +digistuff.rotate_rules = function(rulesin,dir) + local rules = {} + for k,v in ipairs(rulesin) do rules[k] = v end + if dir.z > 0 then + return rules + elseif dir.z < 0 then + for _,i in ipairs(rules) do + i.x = -i.x + i.z = -i.z + end + return rules + elseif dir.x > 0 then + for _,i in ipairs(rules) do + local z = i.x + i.x = i.z + i.z = -z + end + return rules + elseif dir.x < 0 then + for _,i in ipairs(rules) do + local z = i.x + i.x = -i.z + i.z = z + end + return rules + elseif dir.y > 0 then + for _,i in ipairs(rules) do + local z = i.y + i.y = i.z + i.z = z + end + return rules + elseif dir.y < 0 then + for _,i in ipairs(rules) do + local z = i.y + i.y = -i.z + i.z = -z + end + return rules + else + minetest.log("warning",string.format("digistuff.rotate_rules() called with invalid direction %s,%s,%s",dir.x,dir.y,dir.z)) + return {} + end +end diff --git a/digistuff/light.lua b/digistuff/light.lua new file mode 100644 index 0000000..aeca08d --- /dev/null +++ b/digistuff/light.lua @@ -0,0 +1,71 @@ +for i=0,14,1 do + local mult = 255 - ((14-i)*12) + minetest.register_node("digistuff:light_"..i, { + drop = "digistuff:light_0", + description = "Digilines Dimmable Light"..(i > 0 and " (on state - you hacker you!)" or ""), + tiles = {"digistuff_light.png"}, + paramtype = "light", + paramtype2 = "facedir", + drawtype = "nodebox", + node_box = { + type = "fixed", + fixed = { + {-0.25,0.4,-0.25,0.25,0.5,0.25}, + } + }, + groups = i > 0 and {cracky = 1, not_in_creative_inventory = 1} or {cracky = 1}, + is_ground_content = false, + light_source = i, + color = {r = mult,g = mult,b = mult}, + sounds = default and default.node_sound_glass_defaults(), + on_construct = function(pos) + local meta = minetest.get_meta(pos) + meta:set_string("formspec","field[channel;Channel;${channel}") + end, + on_receive_fields = function(pos, formname, fields, sender) + local name = sender:get_player_name() + if minetest.is_protected(pos,name) and not minetest.check_player_privs(name,{protection_bypass=true}) then + minetest.record_protection_violation(pos,name) + return + end + local meta = minetest.get_meta(pos) + if fields.channel then meta:set_string("channel",fields.channel) end + end, + digiline = { + receptor = {}, + wire = { + rules = { + {x = 1,y = 0,z = 0}, + {x = -1,y = 0,z = 0}, + {x = 0,y = 0,z = 1}, + {x = 0,y = 0,z = -1}, + {x = 0,y = 1,z = 0}, + {x = 0,y = -1,z = 0}, + {x = 2,y = 0,z = 0}, + {x = -2,y = 0,z = 0}, + {x = 0,y = 0,z = 2}, + {x = 0,y = 0,z = -2}, + {x = 0,y = 2,z = 0}, + {x = 0,y = -2,z = 0}, + } + }, + effector = { + action = function(pos,node,channel,msg) + local meta = minetest.get_meta(pos) + if meta:get_string("channel") ~= channel then return end + local value = tonumber(msg) + if (not value) or value > 14 or value < 0 then return end + node.name = "digistuff:light_"..math.floor(value) + minetest.swap_node(pos,node) + end + }, + }, + }) +end + +minetest.register_craft({ + output = "digistuff:light_0", + recipe = { + {"digilines:wire_std_00000000","mesecons_lamp:lamp_off",}, + } +}) diff --git a/digistuff/models/digistuff_wall_knob.obj b/digistuff/models/digistuff_wall_knob.obj new file mode 100644 index 0000000..f43cfef --- /dev/null +++ b/digistuff/models/digistuff_wall_knob.obj @@ -0,0 +1,1043 @@ +# Blender v2.79 (sub 0) OBJ File: 'digilines knob.blend' +# www.blender.org +o Cube +v 0.375000 -0.375000 0.500000 +v 0.375000 0.375000 0.500000 +v -0.375000 -0.375000 0.500000 +v -0.375000 0.375000 0.500000 +v 0.312500 -0.312500 0.375000 +v 0.375000 -0.375000 0.437500 +v 0.312500 0.312500 0.375000 +v 0.375000 0.375000 0.437500 +v -0.312500 -0.312500 0.375000 +v -0.375000 -0.375000 0.437500 +v -0.312500 0.312500 0.375000 +v -0.375000 0.375000 0.437500 +v 0.000000 0.187500 0.375000 +v 0.036580 0.183897 0.312500 +v -0.018378 0.186597 0.375000 +v 0.054429 0.179426 0.312500 +v -0.036579 0.183897 0.375000 +v 0.071754 0.173227 0.312500 +v -0.054428 0.179426 0.375000 +v 0.088387 0.165360 0.312500 +v -0.071753 0.173227 0.375000 +v 0.104170 0.155900 0.312500 +v -0.088387 0.165360 0.375000 +v 0.118949 0.144939 0.312500 +v -0.104169 0.155901 0.375000 +v 0.132583 0.132582 0.312500 +v -0.118949 0.144939 0.375000 +v 0.144940 0.118948 0.312500 +v -0.132583 0.132583 0.375000 +v 0.155901 0.104169 0.312500 +v -0.144939 0.118949 0.375000 +v 0.165360 0.088387 0.312500 +v -0.155901 0.104169 0.375000 +v 0.173228 0.071753 0.312500 +v -0.165360 0.088387 0.375000 +v 0.179426 0.054428 0.312500 +v -0.173227 0.071753 0.375000 +v 0.183897 0.036579 0.312500 +v -0.179426 0.054428 0.375000 +v 0.186597 0.018378 0.312500 +v -0.183897 0.036579 0.375000 +v 0.187500 -0.000000 0.312500 +v -0.186597 0.018378 0.375000 +v 0.186597 -0.018378 0.312500 +v -0.187500 -0.000000 0.375000 +v 0.183897 -0.036579 0.312500 +v -0.186597 -0.018378 0.375000 +v 0.179426 -0.054428 0.312500 +v -0.183897 -0.036580 0.375000 +v 0.173227 -0.071753 0.312500 +v -0.179426 -0.054428 0.375000 +v 0.165360 -0.088387 0.312500 +v -0.173227 -0.071753 0.375000 +v 0.155901 -0.104169 0.312500 +v -0.165360 -0.088387 0.375000 +v 0.144940 -0.118949 0.312500 +v -0.155901 -0.104170 0.375000 +v 0.132583 -0.132582 0.312500 +v -0.144939 -0.118949 0.375000 +v 0.118949 -0.144939 0.312500 +v -0.132582 -0.132583 0.375000 +v 0.104170 -0.155900 0.312500 +v -0.118949 -0.144940 0.375000 +v 0.088387 -0.165360 0.312500 +v -0.104169 -0.155901 0.375000 +v 0.071753 -0.173227 0.312500 +v -0.088387 -0.165360 0.375000 +v 0.054429 -0.179426 0.312500 +v -0.071753 -0.173228 0.375000 +v 0.036580 -0.183897 0.312500 +v -0.054428 -0.179426 0.375000 +v 0.018378 -0.186597 0.312500 +v -0.036579 -0.183897 0.375000 +v 0.000000 -0.187500 0.312500 +v -0.018378 -0.186597 0.375000 +v -0.018378 -0.186597 0.312500 +v 0.000000 -0.187500 0.375000 +v -0.036579 -0.183897 0.312500 +v 0.018378 -0.186597 0.375000 +v -0.054428 -0.179426 0.312500 +v 0.036580 -0.183897 0.375000 +v -0.071753 -0.173228 0.312500 +v 0.054429 -0.179426 0.375000 +v -0.088387 -0.165360 0.312500 +v 0.071753 -0.173227 0.375000 +v -0.104169 -0.155901 0.312500 +v 0.088387 -0.165360 0.375000 +v -0.118949 -0.144940 0.312500 +v 0.104170 -0.155900 0.375000 +v -0.132582 -0.132583 0.312500 +v 0.118949 -0.144939 0.375000 +v -0.144939 -0.118949 0.312500 +v 0.132583 -0.132582 0.375000 +v -0.155901 -0.104170 0.312500 +v 0.144940 -0.118949 0.375000 +v -0.165360 -0.088387 0.312500 +v 0.155901 -0.104169 0.375000 +v -0.173227 -0.071753 0.312500 +v 0.165360 -0.088387 0.375000 +v -0.179426 -0.054428 0.312500 +v 0.173227 -0.071753 0.375000 +v -0.183897 -0.036580 0.312500 +v 0.179426 -0.054428 0.375000 +v -0.186597 -0.018378 0.312500 +v 0.183897 -0.036579 0.375000 +v -0.187500 -0.000000 0.312500 +v 0.186597 -0.018378 0.375000 +v -0.186597 0.018378 0.312500 +v 0.187500 -0.000000 0.375000 +v -0.183897 0.036579 0.312500 +v 0.186597 0.018378 0.375000 +v -0.179426 0.054428 0.312500 +v 0.183897 0.036579 0.375000 +v -0.173227 0.071753 0.312500 +v 0.179426 0.054428 0.375000 +v -0.165360 0.088387 0.312500 +v 0.173228 0.071753 0.375000 +v -0.155901 0.104169 0.312500 +v 0.165360 0.088387 0.375000 +v -0.144939 0.118949 0.312500 +v 0.155901 0.104169 0.375000 +v -0.132583 0.132583 0.312500 +v 0.144940 0.118948 0.375000 +v -0.118949 0.144939 0.312500 +v 0.132583 0.132582 0.375000 +v -0.104169 0.155901 0.312500 +v 0.118949 0.144939 0.375000 +v -0.088387 0.165360 0.312500 +v 0.104170 0.155900 0.375000 +v -0.071753 0.173227 0.312500 +v 0.088387 0.165360 0.375000 +v -0.054428 0.179426 0.312500 +v 0.071754 0.173227 0.375000 +v -0.036579 0.183897 0.312500 +v 0.054429 0.179426 0.375000 +v 0.018379 0.186597 0.312500 +v 0.036580 0.183897 0.375000 +v -0.018378 0.186597 0.312500 +v 0.018379 0.186597 0.375000 +v 0.000000 0.187500 0.312500 +v -0.000000 0.124925 0.187500 +v 0.000000 0.187500 0.250000 +v -0.012245 0.124323 0.187500 +v -0.018378 0.186597 0.250000 +v -0.024372 0.122524 0.187500 +v -0.036579 0.183897 0.250000 +v -0.036264 0.119545 0.187500 +v -0.054428 0.179426 0.250000 +v -0.047807 0.115415 0.187500 +v -0.071753 0.173227 0.250000 +v -0.058889 0.110174 0.187500 +v -0.088387 0.165360 0.250000 +v -0.069404 0.103871 0.187500 +v -0.104169 0.155901 0.250000 +v -0.079251 0.096568 0.187500 +v -0.118949 0.144939 0.250000 +v -0.088335 0.088335 0.187500 +v -0.132583 0.132583 0.250000 +v -0.096568 0.079251 0.187500 +v -0.144939 0.118949 0.250000 +v -0.103871 0.069405 0.187500 +v -0.155901 0.104169 0.250000 +v -0.110174 0.058889 0.187500 +v -0.165360 0.088387 0.250000 +v -0.115415 0.047807 0.187500 +v -0.173227 0.071753 0.250000 +v -0.119545 0.036264 0.187500 +v -0.179426 0.054428 0.250000 +v -0.122524 0.024372 0.187500 +v -0.183897 0.036579 0.250000 +v -0.124323 0.012245 0.187500 +v -0.186597 0.018378 0.250000 +v -0.124925 -0.000000 0.187500 +v -0.187500 -0.000000 0.250000 +v -0.124323 -0.012245 0.187500 +v -0.186597 -0.018378 0.250000 +v -0.122524 -0.024372 0.187500 +v -0.183897 -0.036580 0.250000 +v -0.119545 -0.036264 0.187500 +v -0.179426 -0.054428 0.250000 +v -0.115415 -0.047807 0.187500 +v -0.173227 -0.071753 0.250000 +v -0.110174 -0.058889 0.187500 +v -0.165360 -0.088387 0.250000 +v -0.103871 -0.069404 0.187500 +v -0.155901 -0.104170 0.250000 +v -0.096568 -0.079251 0.187500 +v -0.144939 -0.118949 0.250000 +v -0.088335 -0.088335 0.187500 +v -0.132582 -0.132583 0.250000 +v -0.079251 -0.096568 0.187500 +v -0.118949 -0.144940 0.250000 +v -0.069404 -0.103871 0.187500 +v -0.104169 -0.155901 0.250000 +v -0.058889 -0.110174 0.187500 +v -0.088387 -0.165360 0.250000 +v -0.047806 -0.115415 0.187500 +v -0.071753 -0.173227 0.250000 +v -0.036264 -0.119545 0.187500 +v -0.054428 -0.179426 0.250000 +v -0.024372 -0.122524 0.187500 +v -0.036579 -0.183897 0.250000 +v -0.012245 -0.124323 0.187500 +v -0.018378 -0.186597 0.250000 +v 0.000000 -0.124925 0.187500 +v 0.000000 -0.187500 0.250000 +v 0.012245 -0.124323 0.187500 +v 0.018378 -0.186597 0.250000 +v 0.024372 -0.122524 0.187500 +v 0.036580 -0.183897 0.250000 +v 0.036264 -0.119545 0.187500 +v 0.054429 -0.179426 0.250000 +v 0.047807 -0.115415 0.187500 +v 0.071753 -0.173227 0.250000 +v 0.058889 -0.110174 0.187500 +v 0.088387 -0.165360 0.250000 +v 0.069405 -0.103871 0.187500 +v 0.104170 -0.155900 0.250000 +v 0.079251 -0.096568 0.187500 +v 0.118949 -0.144939 0.250000 +v 0.088335 -0.088335 0.187500 +v 0.132583 -0.132582 0.250000 +v 0.096568 -0.079251 0.187500 +v 0.144940 -0.118949 0.250000 +v 0.103871 -0.069404 0.187500 +v 0.155901 -0.104169 0.250000 +v 0.110174 -0.058889 0.187500 +v 0.165360 -0.088387 0.250000 +v 0.115415 -0.047807 0.187500 +v 0.173227 -0.071753 0.250000 +v 0.119545 -0.036264 0.187500 +v 0.179426 -0.054428 0.250000 +v 0.122524 -0.024372 0.187500 +v 0.183897 -0.036579 0.250000 +v 0.124323 -0.012245 0.187500 +v 0.186597 -0.018378 0.250000 +v 0.124925 -0.000000 0.187500 +v 0.187500 -0.000000 0.250000 +v 0.124323 0.012245 0.187500 +v 0.186597 0.018378 0.250000 +v 0.122524 0.024371 0.187500 +v 0.183897 0.036579 0.250000 +v 0.119545 0.036264 0.187500 +v 0.179426 0.054428 0.250000 +v 0.115415 0.047806 0.187500 +v 0.173228 0.071753 0.250000 +v 0.110174 0.058889 0.187500 +v 0.165360 0.088387 0.250000 +v 0.103871 0.069404 0.187500 +v 0.155901 0.104169 0.250000 +v 0.096568 0.079251 0.187500 +v 0.144940 0.118948 0.250000 +v 0.088335 0.088335 0.187500 +v 0.132583 0.132582 0.250000 +v 0.079252 0.096568 0.187500 +v 0.118949 0.144939 0.250000 +v 0.069405 0.103871 0.187500 +v 0.104170 0.155900 0.250000 +v 0.058889 0.110174 0.187500 +v 0.088387 0.165360 0.250000 +v 0.047807 0.115415 0.187500 +v 0.071754 0.173227 0.250000 +v 0.036264 0.119545 0.187500 +v 0.054429 0.179426 0.250000 +v 0.024372 0.122524 0.187500 +v 0.036580 0.183897 0.250000 +v 0.012245 0.124323 0.187500 +v 0.018379 0.186597 0.250000 +vt 0.812500 0.812500 +vt 0.187500 0.812500 +vt 0.187500 0.187500 +vt 0.812500 0.187500 +vt 1.000000 0.000000 +vt 1.000000 0.062500 +vt 0.000000 0.062500 +vt 0.000000 0.000000 +vt 0.000000 0.000000 +vt 0.000000 0.062500 +vt 1.000000 0.062500 +vt 1.000000 0.000000 +vt 0.125000 0.875000 +vt 0.875000 0.875000 +vt 0.875000 0.125000 +vt 0.125000 0.125000 +vt 0.000000 0.000000 +vt 0.000000 0.062500 +vt 0.125000 0.875000 +vt 0.125000 0.125000 +vt 0.875000 0.875000 +vt 0.875000 0.125000 +vt 1.000000 0.000000 +vt 1.000000 0.062500 +vt 1.000000 0.000000 +vt 1.000000 0.062500 +vt 0.937500 0.062500 +vt 0.937500 0.000000 +vt 0.812500 0.000000 +vt 0.812500 0.062500 +vt 0.750000 0.062500 +vt 0.750000 0.000000 +vt 0.687500 0.062500 +vt 0.687500 0.000000 +vt 0.625000 0.062500 +vt 0.625000 0.000000 +vt 0.562500 0.062500 +vt 0.562500 0.000000 +vt 0.500000 0.062500 +vt 0.500000 0.000000 +vt 0.437500 0.062500 +vt 0.437500 0.000000 +vt 0.375000 0.062500 +vt 0.375000 0.000000 +vt 0.312500 0.062500 +vt 0.312500 0.000000 +vt 0.250000 0.062500 +vt 0.250000 0.000000 +vt 0.187500 0.062500 +vt 0.187500 0.000000 +vt 0.125000 0.062500 +vt 0.125000 0.000000 +vt 0.062500 0.062500 +vt 0.062500 0.000000 +vt 0.000000 0.062500 +vt 0.000000 0.000000 +vt 1.000000 0.000000 +vt 1.000000 0.062500 +vt 0.937500 0.062500 +vt 0.937500 0.000000 +vt 0.875000 0.062500 +vt 0.875000 0.000000 +vt 0.812500 0.062500 +vt 0.812500 0.000000 +vt 0.750000 0.062500 +vt 0.750000 0.000000 +vt 0.687500 0.062500 +vt 0.687500 0.000000 +vt 0.625000 0.062500 +vt 0.625000 0.000000 +vt 0.562500 0.062500 +vt 0.562500 0.000000 +vt 0.500000 0.062500 +vt 0.500000 0.000000 +vt 0.437500 0.062500 +vt 0.437500 0.000000 +vt 0.375000 0.062500 +vt 0.375000 0.000000 +vt 0.312500 0.062500 +vt 0.312500 0.000000 +vt 0.250000 0.062500 +vt 0.250000 0.000000 +vt 0.187500 0.062500 +vt 0.187500 0.000000 +vt 0.125000 0.062500 +vt 0.125000 0.000000 +vt 0.062500 0.062500 +vt 0.062500 0.000000 +vt 0.000000 0.062500 +vt 0.000000 0.000000 +vt 1.000000 0.000000 +vt 1.000000 0.062500 +vt 0.937500 0.062500 +vt 0.937500 0.000000 +vt 0.875000 0.062500 +vt 0.875000 0.000000 +vt 0.812500 0.062500 +vt 0.812500 0.000000 +vt 0.750000 0.062500 +vt 0.750000 0.000000 +vt 0.687500 0.062500 +vt 0.687500 0.000000 +vt 0.625000 0.062500 +vt 0.625000 0.000000 +vt 0.562500 0.062500 +vt 0.562500 0.000000 +vt 0.500000 0.062500 +vt 0.500000 0.000000 +vt 0.437500 0.062500 +vt 0.437500 0.000000 +vt 0.375000 0.062500 +vt 0.375000 0.000000 +vt 0.312500 0.062500 +vt 0.312500 0.000000 +vt 0.250000 0.062500 +vt 0.250000 0.000000 +vt 0.187500 0.062500 +vt 0.187500 0.000000 +vt 0.125000 0.062500 +vt 0.125000 0.000000 +vt 0.062500 0.062500 +vt 0.062500 0.000000 +vt 0.000000 0.062500 +vt 0.000000 0.000000 +vt 1.000000 0.000000 +vt 1.000000 0.062500 +vt 0.937500 0.062500 +vt 0.937500 0.000000 +vt 0.875000 0.062500 +vt 0.875000 0.000000 +vt 0.812500 0.062500 +vt 0.812500 0.000000 +vt 0.750000 0.062500 +vt 0.750000 0.000000 +vt 0.687500 0.062500 +vt 0.687500 0.000000 +vt 0.625000 0.062500 +vt 0.625000 0.000000 +vt 0.562500 0.062500 +vt 0.562500 0.000000 +vt 0.500000 0.062500 +vt 0.500000 0.000000 +vt 0.437500 0.062500 +vt 0.437500 0.000000 +vt 0.375000 0.062500 +vt 0.375000 0.000000 +vt 0.312500 0.062500 +vt 0.312500 0.000000 +vt 0.250000 0.062500 +vt 0.250000 0.000000 +vt 0.187500 0.062500 +vt 0.187500 0.000000 +vt 0.125000 0.062500 +vt 0.125000 0.000000 +vt 0.062500 0.062500 +vt 0.062500 0.000000 +vt -0.000000 0.062500 +vt -0.000000 0.000000 +vt 0.875000 0.062500 +vt 0.875000 0.000000 +vt 0.937500 0.125000 +vt 0.875000 0.125000 +vt 0.812500 0.125000 +vt 0.750000 0.125000 +vt 0.687500 0.125000 +vt 0.625000 0.125000 +vt 0.562500 0.125000 +vt 0.500000 0.125000 +vt 0.437500 0.125000 +vt 0.375000 0.125000 +vt 0.312500 0.125000 +vt 0.250000 0.125000 +vt 0.187500 0.125000 +vt 0.125000 0.125000 +vt 0.062500 0.125000 +vt 0.000000 0.125000 +vt 1.000000 0.125000 +vt 0.937500 0.125000 +vt 0.875000 0.125000 +vt 0.812500 0.125000 +vt 0.750000 0.125000 +vt 0.687500 0.125000 +vt 0.625000 0.125000 +vt 0.562500 0.125000 +vt 0.500000 0.125000 +vt 0.437500 0.125000 +vt 0.375000 0.125000 +vt 0.312500 0.125000 +vt 0.250000 0.125000 +vt 0.187500 0.125000 +vt 0.125000 0.125000 +vt 0.062500 0.125000 +vt 0.000000 0.125000 +vt 1.000000 0.125000 +vt 0.937500 0.125000 +vt 0.875000 0.125000 +vt 0.812500 0.125000 +vt 0.750000 0.125000 +vt 0.687500 0.125000 +vt 0.625000 0.125000 +vt 0.562500 0.125000 +vt 0.500000 0.125000 +vt 0.437500 0.125000 +vt 0.375000 0.125000 +vt 0.312500 0.125000 +vt 0.250000 0.125000 +vt 0.187500 0.125000 +vt 0.125000 0.125000 +vt 0.062500 0.125000 +vt 0.000000 0.125000 +vt 1.000000 0.125000 +vt 0.937500 0.125000 +vt 0.875000 0.125000 +vt 0.812500 0.125000 +vt 0.750000 0.125000 +vt 0.687500 0.125000 +vt 0.625000 0.125000 +vt 0.562500 0.125000 +vt 0.500000 0.125000 +vt 0.437500 0.125000 +vt 0.375000 0.125000 +vt 0.312500 0.125000 +vt 0.250000 0.125000 +vt 0.187500 0.125000 +vt 0.125000 0.125000 +vt 0.062500 0.125000 +vt -0.000000 0.125000 +vt 1.000000 0.125000 +vt 0.512252 0.624398 +vt 0.500000 0.625000 +vt 0.487747 0.624398 +vt 0.475613 0.622598 +vt 0.463714 0.619617 +vt 0.452164 0.615485 +vt 0.441075 0.610240 +vt 0.430553 0.603933 +vt 0.420700 0.596626 +vt 0.411611 0.588388 +vt 0.403373 0.579299 +vt 0.396066 0.569446 +vt 0.389760 0.558924 +vt 0.384515 0.547835 +vt 0.380382 0.536285 +vt 0.377402 0.524386 +vt 0.375602 0.512252 +vt 0.375000 0.500000 +vt 0.375602 0.487748 +vt 0.377402 0.475614 +vt 0.380382 0.463714 +vt 0.384515 0.452164 +vt 0.389760 0.441075 +vt 0.396066 0.430554 +vt 0.403374 0.420701 +vt 0.411611 0.411612 +vt 0.420701 0.403374 +vt 0.430553 0.396066 +vt 0.441075 0.389760 +vt 0.452164 0.384515 +vt 0.463714 0.380382 +vt 0.475613 0.377402 +vt 0.487748 0.375602 +vt 0.500000 0.375000 +vt 0.512252 0.375602 +vt 0.524386 0.377402 +vt 0.536285 0.380382 +vt 0.547835 0.384515 +vt 0.558924 0.389760 +vt 0.569446 0.396066 +vt 0.579299 0.403374 +vt 0.588388 0.411611 +vt 0.596626 0.420701 +vt 0.603934 0.430554 +vt 0.610240 0.441075 +vt 0.615485 0.452164 +vt 0.619617 0.463714 +vt 0.622598 0.475614 +vt 0.624398 0.487747 +vt 0.625000 0.500000 +vt 0.624398 0.512252 +vt 0.622598 0.524386 +vt 0.619617 0.536285 +vt 0.615485 0.547835 +vt 0.610240 0.558924 +vt 0.603934 0.569446 +vt 0.596626 0.579299 +vt 0.588388 0.588388 +vt 0.579299 0.596626 +vt 0.569446 0.603933 +vt 0.558925 0.610240 +vt 0.547835 0.615485 +vt 0.536286 0.619617 +vt 0.524386 0.622598 +vt 0.875000 0.000000 +vt 0.875000 0.062500 +vt 0.812500 0.062500 +vt 0.812500 0.000000 +vt 0.937500 0.000000 +vt 0.937500 0.062500 +vt 0.062500 0.000000 +vt 0.062500 0.062500 +vt 0.000000 0.062500 +vt 0.000000 0.000000 +vt 0.125000 0.000000 +vt 0.125000 0.062500 +vt 0.187500 0.000000 +vt 0.187500 0.062500 +vt 0.250000 0.000000 +vt 0.250000 0.062500 +vt 0.312500 0.000000 +vt 0.312500 0.062500 +vt 0.375000 0.000000 +vt 0.375000 0.062500 +vt 0.437500 0.000000 +vt 0.437500 0.062500 +vt 0.500000 0.000000 +vt 0.500000 0.062500 +vt 0.562500 0.000000 +vt 0.562500 0.062500 +vt 0.625000 0.000000 +vt 0.625000 0.062500 +vt 0.687500 0.000000 +vt 0.687500 0.062500 +vt 0.750000 0.000000 +vt 0.750000 0.062500 +vt 0.812500 0.000000 +vt 0.812500 0.062500 +vt 0.875000 0.000000 +vt 0.875000 0.062500 +vt 0.937500 0.000000 +vt 0.937500 0.062500 +vt 1.000000 0.000000 +vt 1.000000 0.062500 +vt 0.062500 0.000000 +vt 0.062500 0.062500 +vt 0.000000 0.062500 +vt 0.000000 0.000000 +vt 0.125000 0.000000 +vt 0.125000 0.062500 +vt 0.187500 0.000000 +vt 0.187500 0.062500 +vt 0.250000 0.000000 +vt 0.250000 0.062500 +vt 0.312500 0.000000 +vt 0.312500 0.062500 +vt 0.375000 0.000000 +vt 0.375000 0.062500 +vt 0.437500 0.000000 +vt 0.437500 0.062500 +vt 0.500000 0.000000 +vt 0.500000 0.062500 +vt 0.562500 0.000000 +vt 0.562500 0.062500 +vt 0.625000 0.000000 +vt 0.625000 0.062500 +vt 0.687500 0.000000 +vt 0.687500 0.062500 +vt 0.750000 0.000000 +vt 0.750000 0.062500 +vt 0.812500 0.000000 +vt 0.812500 0.062500 +vt 0.875000 0.000000 +vt 0.875000 0.062500 +vt 0.937500 0.000000 +vt 0.937500 0.062500 +vt 1.000000 0.000000 +vt 1.000000 0.062500 +vt 0.062500 0.000000 +vt 0.062500 0.062500 +vt 0.000000 0.062500 +vt 0.000000 0.000000 +vt 0.125000 0.000000 +vt 0.125000 0.062500 +vt 0.187500 0.000000 +vt 0.187500 0.062500 +vt 0.250000 0.000000 +vt 0.250000 0.062500 +vt 0.312500 0.000000 +vt 0.312500 0.062500 +vt 0.375000 0.000000 +vt 0.375000 0.062500 +vt 0.437500 0.000000 +vt 0.437500 0.062500 +vt 0.500000 0.000000 +vt 0.500000 0.062500 +vt 0.562500 0.000000 +vt 0.562500 0.062500 +vt 0.625000 0.000000 +vt 0.625000 0.062500 +vt 0.687500 0.000000 +vt 0.687500 0.062500 +vt 0.750000 0.000000 +vt 0.750000 0.062500 +vt 0.812500 0.000000 +vt 0.812500 0.062500 +vt 0.875000 0.000000 +vt 0.875000 0.062500 +vt 0.937500 0.000000 +vt 0.937500 0.062500 +vt 1.000000 0.000000 +vt 1.000000 0.062500 +vt 0.062500 0.000000 +vt 0.062500 0.062500 +vt 0.000000 0.062500 +vt 0.000000 0.000000 +vt 0.125000 0.000000 +vt 0.125000 0.062500 +vt 0.187500 0.000000 +vt 0.187500 0.062500 +vt 0.250000 0.000000 +vt 0.250000 0.062500 +vt 0.312500 0.000000 +vt 0.312500 0.062500 +vt 0.375000 0.000000 +vt 0.375000 0.062500 +vt 0.437500 0.000000 +vt 0.437500 0.062500 +vt 0.500000 0.000000 +vt 0.500000 0.062500 +vt 0.562500 0.000000 +vt 0.562500 0.062500 +vt 0.625000 0.000000 +vt 0.625000 0.062500 +vt 0.687500 0.000000 +vt 0.687500 0.062500 +vt 0.750000 0.000000 +vt 0.750000 0.062500 +vt 1.000000 0.000000 +vt 1.000000 0.062500 +vn 0.0000 0.0000 -1.0000 +vn -1.0000 0.0000 0.0000 +vn 1.0000 0.0000 0.0000 +vn 0.0000 -0.0000 1.0000 +vn 0.0000 1.0000 0.0000 +vn 0.7071 0.0000 -0.7071 +vn 0.0000 0.7071 -0.7071 +vn -0.7071 0.0000 -0.7071 +vn 0.0000 -0.7071 -0.7071 +vn 0.0000 -1.0000 0.0000 +vn 0.0491 0.9988 0.0000 +vn -0.2430 0.9700 0.0000 +vn -0.3369 0.9415 0.0000 +vn -0.4276 0.9040 0.0000 +vn -0.5141 0.8577 0.0000 +vn -0.5957 0.8032 0.0000 +vn -0.6716 0.7410 0.0000 +vn -0.7410 0.6716 0.0000 +vn -0.8032 0.5957 0.0000 +vn -0.8577 0.5141 0.0000 +vn -0.9040 0.4276 0.0000 +vn -0.9415 0.3369 0.0000 +vn -0.9700 0.2430 0.0000 +vn -0.9892 0.1467 0.0000 +vn -0.9988 0.0491 0.0000 +vn -0.9988 -0.0491 -0.0000 +vn -0.9892 -0.1467 -0.0000 +vn -0.9700 -0.2430 -0.0000 +vn -0.9415 -0.3369 0.0000 +vn -0.9040 -0.4276 0.0000 +vn -0.8577 -0.5141 0.0000 +vn -0.8032 -0.5957 0.0000 +vn -0.7410 -0.6716 -0.0000 +vn -0.6716 -0.7410 -0.0000 +vn -0.5957 -0.8032 0.0000 +vn -0.5141 -0.8577 -0.0000 +vn -0.4276 -0.9040 0.0000 +vn -0.3369 -0.9415 -0.0000 +vn -0.2430 -0.9700 -0.0000 +vn -0.1467 -0.9892 -0.0000 +vn -0.0491 -0.9988 -0.0000 +vn 0.0491 -0.9988 -0.0000 +vn 0.1467 -0.9892 -0.0000 +vn 0.2430 -0.9700 0.0000 +vn 0.3369 -0.9415 -0.0000 +vn 0.4276 -0.9040 -0.0000 +vn 0.5141 -0.8577 -0.0000 +vn 0.5957 -0.8032 -0.0000 +vn 0.6716 -0.7410 -0.0000 +vn 0.7410 -0.6716 -0.0000 +vn 0.8032 -0.5957 0.0000 +vn 0.8577 -0.5141 0.0000 +vn 0.9040 -0.4276 0.0000 +vn 0.9415 -0.3369 -0.0000 +vn 0.9700 -0.2430 -0.0000 +vn 0.9892 -0.1467 -0.0000 +vn 0.9988 -0.0491 -0.0000 +vn 0.9988 0.0491 0.0000 +vn 0.9892 0.1467 0.0000 +vn 0.9700 0.2430 0.0000 +vn 0.9415 0.3369 0.0000 +vn 0.9040 0.4276 0.0000 +vn 0.8577 0.5141 0.0000 +vn 0.8032 0.5957 0.0000 +vn 0.7410 0.6716 0.0000 +vn 0.6716 0.7409 0.0000 +vn 0.5957 0.8032 0.0000 +vn 0.5141 0.8577 0.0000 +vn 0.4276 0.9040 0.0000 +vn 0.3369 0.9415 0.0000 +vn 0.2430 0.9700 0.0000 +vn 0.1467 0.9892 0.0000 +vn -0.0491 0.9988 0.0000 +vn -0.1467 0.9892 0.0000 +vn -0.0347 0.7063 -0.7071 +vn -0.1038 0.6995 -0.7071 +vn -0.1718 0.6859 -0.7071 +vn -0.2382 0.6658 -0.7071 +vn -0.3023 0.6392 -0.7071 +vn -0.3635 0.6065 -0.7071 +vn -0.4212 0.5680 -0.7071 +vn -0.4749 0.5239 -0.7071 +vn -0.5239 0.4749 -0.7071 +vn -0.5680 0.4212 -0.7071 +vn -0.6065 0.3635 -0.7071 +vn -0.6392 0.3023 -0.7071 +vn -0.6658 0.2382 -0.7071 +vn -0.6859 0.1718 -0.7071 +vn -0.6995 0.1038 -0.7071 +vn -0.7063 0.0347 -0.7071 +vn -0.7063 -0.0347 -0.7071 +vn -0.6995 -0.1038 -0.7071 +vn -0.6859 -0.1718 -0.7071 +vn -0.6658 -0.2382 -0.7071 +vn -0.6392 -0.3023 -0.7071 +vn -0.6065 -0.3635 -0.7071 +vn -0.5680 -0.4212 -0.7071 +vn -0.5239 -0.4749 -0.7071 +vn -0.4749 -0.5239 -0.7071 +vn -0.4212 -0.5680 -0.7071 +vn -0.3635 -0.6065 -0.7071 +vn -0.3023 -0.6392 -0.7071 +vn -0.2382 -0.6658 -0.7071 +vn -0.1718 -0.6859 -0.7071 +vn -0.1038 -0.6995 -0.7071 +vn -0.0347 -0.7063 -0.7071 +vn 0.0347 -0.7063 -0.7071 +vn 0.1038 -0.6995 -0.7071 +vn 0.1718 -0.6859 -0.7071 +vn 0.2382 -0.6658 -0.7071 +vn 0.3023 -0.6392 -0.7071 +vn 0.3635 -0.6065 -0.7071 +vn 0.4212 -0.5680 -0.7071 +vn 0.4749 -0.5239 -0.7071 +vn 0.5239 -0.4749 -0.7071 +vn 0.5680 -0.4212 -0.7071 +vn 0.6065 -0.3635 -0.7071 +vn 0.6392 -0.3023 -0.7071 +vn 0.6658 -0.2382 -0.7071 +vn 0.6859 -0.1718 -0.7071 +vn 0.6995 -0.1038 -0.7071 +vn 0.7063 -0.0347 -0.7071 +vn 0.7063 0.0347 -0.7071 +vn 0.6995 0.1038 -0.7071 +vn 0.6859 0.1718 -0.7071 +vn 0.6658 0.2382 -0.7071 +vn 0.6392 0.3023 -0.7071 +vn 0.6065 0.3635 -0.7071 +vn 0.5680 0.4212 -0.7071 +vn 0.5239 0.4749 -0.7071 +vn 0.4749 0.5239 -0.7071 +vn 0.4212 0.5680 -0.7071 +vn 0.3635 0.6065 -0.7071 +vn 0.3023 0.6392 -0.7071 +vn 0.2382 0.6658 -0.7071 +vn 0.1718 0.6859 -0.7071 +vn 0.1038 0.6995 -0.7071 +vn 0.0347 0.7063 -0.7071 +g Cube_Cube_allsides +s off +f 11/1/1 7/2/1 5/3/1 9/4/1 +f 4/5/2 12/6/2 10/7/2 3/8/2 +f 1/9/3 6/10/3 8/11/3 2/12/3 +f 2/13/4 4/14/4 3/15/4 1/16/4 +f 2/17/5 8/18/5 12/6/5 4/5/5 +f 5/3/6 7/2/6 8/19/6 6/20/6 +f 7/2/7 11/1/7 12/21/7 8/19/7 +f 11/1/8 9/4/8 10/22/8 12/21/8 +f 9/4/9 5/3/9 6/20/9 10/22/9 +f 3/23/10 10/24/10 6/10/10 1/9/10 +f 136/25/11 268/26/11 142/27/11 140/28/11 +f 134/29/12 146/30/12 148/31/12 132/32/12 +f 132/32/13 148/31/13 150/33/13 130/34/13 +f 130/34/14 150/33/14 152/35/14 128/36/14 +f 128/36/15 152/35/15 154/37/15 126/38/15 +f 126/38/16 154/37/16 156/39/16 124/40/16 +f 124/40/17 156/39/17 158/41/17 122/42/17 +f 122/42/18 158/41/18 160/43/18 120/44/18 +f 120/44/19 160/43/19 162/45/19 118/46/19 +f 118/46/20 162/45/20 164/47/20 116/48/20 +f 116/48/21 164/47/21 166/49/21 114/50/21 +f 114/50/22 166/49/22 168/51/22 112/52/22 +f 112/52/23 168/51/23 170/53/23 110/54/23 +f 110/54/24 170/53/24 172/55/24 108/56/24 +f 108/57/25 172/58/25 174/59/25 106/60/25 +f 106/60/26 174/59/26 176/61/26 104/62/26 +f 104/62/27 176/61/27 178/63/27 102/64/27 +f 102/64/28 178/63/28 180/65/28 100/66/28 +f 100/66/29 180/65/29 182/67/29 98/68/29 +f 98/68/30 182/67/30 184/69/30 96/70/30 +f 96/70/31 184/69/31 186/71/31 94/72/31 +f 94/72/32 186/71/32 188/73/32 92/74/32 +f 92/74/33 188/73/33 190/75/33 90/76/33 +f 90/76/34 190/75/34 192/77/34 88/78/34 +f 88/78/35 192/77/35 194/79/35 86/80/35 +f 86/80/36 194/79/36 196/81/36 84/82/36 +f 84/82/37 196/81/37 198/83/37 82/84/37 +f 82/84/38 198/83/38 200/85/38 80/86/38 +f 80/86/39 200/85/39 202/87/39 78/88/39 +f 78/88/40 202/87/40 204/89/40 76/90/40 +f 76/91/41 204/92/41 206/93/41 74/94/41 +f 74/94/42 206/93/42 208/95/42 72/96/42 +f 72/96/43 208/95/43 210/97/43 70/98/43 +f 70/98/44 210/97/44 212/99/44 68/100/44 +f 68/100/45 212/99/45 214/101/45 66/102/45 +f 66/102/46 214/101/46 216/103/46 64/104/46 +f 64/104/47 216/103/47 218/105/47 62/106/47 +f 62/106/48 218/105/48 220/107/48 60/108/48 +f 60/108/49 220/107/49 222/109/49 58/110/49 +f 58/110/50 222/109/50 224/111/50 56/112/50 +f 56/112/51 224/111/51 226/113/51 54/114/51 +f 54/114/52 226/113/52 228/115/52 52/116/52 +f 52/116/53 228/115/53 230/117/53 50/118/53 +f 50/118/54 230/117/54 232/119/54 48/120/54 +f 48/120/55 232/119/55 234/121/55 46/122/55 +f 46/122/56 234/121/56 236/123/56 44/124/56 +f 44/125/57 236/126/57 238/127/57 42/128/57 +f 42/128/58 238/127/58 240/129/58 40/130/58 +f 40/130/59 240/129/59 242/131/59 38/132/59 +f 38/132/60 242/131/60 244/133/60 36/134/60 +f 36/134/61 244/133/61 246/135/61 34/136/61 +f 34/136/62 246/135/62 248/137/62 32/138/62 +f 32/138/63 248/137/63 250/139/63 30/140/63 +f 30/140/64 250/139/64 252/141/64 28/142/64 +f 28/142/65 252/141/65 254/143/65 26/144/65 +f 26/144/66 254/143/66 256/145/66 24/146/66 +f 24/146/67 256/145/67 258/147/67 22/148/67 +f 22/148/68 258/147/68 260/149/68 20/150/68 +f 20/150/69 260/149/69 262/151/69 18/152/69 +f 18/152/70 262/151/70 264/153/70 16/154/70 +f 16/154/71 264/153/71 266/155/71 14/156/71 +f 14/156/72 266/155/72 268/157/72 136/158/72 +f 140/28/73 142/27/73 144/159/73 138/160/73 +f 138/160/74 144/159/74 146/30/74 134/29/74 +f 144/159/75 142/27/75 141/161/75 143/162/75 +f 146/30/76 144/159/76 143/162/76 145/163/76 +f 148/31/77 146/30/77 145/163/77 147/164/77 +f 150/33/78 148/31/78 147/164/78 149/165/78 +f 152/35/79 150/33/79 149/165/79 151/166/79 +f 154/37/80 152/35/80 151/166/80 153/167/80 +f 156/39/81 154/37/81 153/167/81 155/168/81 +f 158/41/82 156/39/82 155/168/82 157/169/82 +f 160/43/83 158/41/83 157/169/83 159/170/83 +f 162/45/84 160/43/84 159/170/84 161/171/84 +f 164/47/85 162/45/85 161/171/85 163/172/85 +f 166/49/86 164/47/86 163/172/86 165/173/86 +f 168/51/87 166/49/87 165/173/87 167/174/87 +f 170/53/88 168/51/88 167/174/88 169/175/88 +f 172/55/89 170/53/89 169/175/89 171/176/89 +f 174/59/90 172/58/90 171/177/90 173/178/90 +f 176/61/91 174/59/91 173/178/91 175/179/91 +f 178/63/92 176/61/92 175/179/92 177/180/92 +f 180/65/93 178/63/93 177/180/93 179/181/93 +f 182/67/94 180/65/94 179/181/94 181/182/94 +f 184/69/95 182/67/95 181/182/95 183/183/95 +f 186/71/96 184/69/96 183/183/96 185/184/96 +f 188/73/97 186/71/97 185/184/97 187/185/97 +f 190/75/98 188/73/98 187/185/98 189/186/98 +f 192/77/99 190/75/99 189/186/99 191/187/99 +f 194/79/100 192/77/100 191/187/100 193/188/100 +f 196/81/101 194/79/101 193/188/101 195/189/101 +f 198/83/102 196/81/102 195/189/102 197/190/102 +f 200/85/103 198/83/103 197/190/103 199/191/103 +f 202/87/104 200/85/104 199/191/104 201/192/104 +f 204/89/105 202/87/105 201/192/105 203/193/105 +f 206/93/106 204/92/106 203/194/106 205/195/106 +f 208/95/107 206/93/107 205/195/107 207/196/107 +f 210/97/108 208/95/108 207/196/108 209/197/108 +f 212/99/109 210/97/109 209/197/109 211/198/109 +f 214/101/110 212/99/110 211/198/110 213/199/110 +f 216/103/111 214/101/111 213/199/111 215/200/111 +f 218/105/112 216/103/112 215/200/112 217/201/112 +f 220/107/113 218/105/113 217/201/113 219/202/113 +f 222/109/114 220/107/114 219/202/114 221/203/114 +f 224/111/115 222/109/115 221/203/115 223/204/115 +f 226/113/116 224/111/116 223/204/116 225/205/116 +f 228/115/117 226/113/117 225/205/117 227/206/117 +f 230/117/118 228/115/118 227/206/118 229/207/118 +f 232/119/119 230/117/119 229/207/119 231/208/119 +f 234/121/120 232/119/120 231/208/120 233/209/120 +f 236/123/121 234/121/121 233/209/121 235/210/121 +f 238/127/122 236/126/122 235/211/122 237/212/122 +f 240/129/123 238/127/123 237/212/123 239/213/123 +f 242/131/124 240/129/124 239/213/124 241/214/124 +f 244/133/125 242/131/125 241/214/125 243/215/125 +f 246/135/126 244/133/126 243/215/126 245/216/126 +f 248/137/127 246/135/127 245/216/127 247/217/127 +f 250/139/128 248/137/128 247/217/128 249/218/128 +f 252/141/129 250/139/129 249/218/129 251/219/129 +f 254/143/130 252/141/130 251/219/130 253/220/130 +f 256/145/131 254/143/131 253/220/131 255/221/131 +f 258/147/132 256/145/132 255/221/132 257/222/132 +f 260/149/133 258/147/133 257/222/133 259/223/133 +f 262/151/134 260/149/134 259/223/134 261/224/134 +f 264/153/135 262/151/135 261/224/135 263/225/135 +f 266/155/136 264/153/136 263/225/136 265/226/136 +f 268/157/137 266/155/137 265/226/137 267/227/137 +f 142/27/138 268/26/138 267/228/138 141/161/138 +f 143/229/1 141/230/1 267/231/1 265/232/1 263/233/1 261/234/1 259/235/1 257/236/1 255/237/1 253/238/1 251/239/1 249/240/1 247/241/1 245/242/1 243/243/1 241/244/1 239/245/1 237/246/1 235/247/1 233/248/1 231/249/1 229/250/1 227/251/1 225/252/1 223/253/1 221/254/1 219/255/1 217/256/1 215/257/1 213/258/1 211/259/1 209/260/1 207/261/1 205/262/1 203/263/1 201/264/1 199/265/1 197/266/1 195/267/1 193/268/1 191/269/1 189/270/1 187/271/1 185/272/1 183/273/1 181/274/1 179/275/1 177/276/1 175/277/1 173/278/1 171/279/1 169/280/1 167/281/1 165/282/1 163/283/1 161/284/1 159/285/1 157/286/1 155/287/1 153/288/1 151/289/1 149/290/1 147/291/1 145/292/1 +g Cube_Cube_knob +f 15/293/74 138/294/74 134/295/74 17/296/74 +f 13/297/73 140/298/73 138/294/73 15/293/73 +f 137/299/72 14/300/72 136/301/72 139/302/72 +f 135/303/71 16/304/71 14/300/71 137/299/71 +f 133/305/70 18/306/70 16/304/70 135/303/70 +f 131/307/69 20/308/69 18/306/69 133/305/69 +f 129/309/68 22/310/68 20/308/68 131/307/68 +f 127/311/67 24/312/67 22/310/67 129/309/67 +f 125/313/66 26/314/66 24/312/66 127/311/66 +f 123/315/65 28/316/65 26/314/65 125/313/65 +f 121/317/64 30/318/64 28/316/64 123/315/64 +f 119/319/63 32/320/63 30/318/63 121/317/63 +f 117/321/62 34/322/62 32/320/62 119/319/62 +f 115/323/61 36/324/61 34/322/61 117/321/61 +f 113/325/60 38/326/60 36/324/60 115/323/60 +f 111/327/59 40/328/59 38/326/59 113/325/59 +f 109/329/58 42/330/58 40/328/58 111/327/58 +f 107/331/57 44/332/57 42/330/57 109/329/57 +f 105/333/56 46/334/56 44/335/56 107/336/56 +f 103/337/55 48/338/55 46/334/55 105/333/55 +f 101/339/54 50/340/54 48/338/54 103/337/54 +f 99/341/53 52/342/53 50/340/53 101/339/53 +f 97/343/52 54/344/52 52/342/52 99/341/52 +f 95/345/51 56/346/51 54/344/51 97/343/51 +f 93/347/50 58/348/50 56/346/50 95/345/50 +f 91/349/49 60/350/49 58/348/49 93/347/49 +f 89/351/48 62/352/48 60/350/48 91/349/48 +f 87/353/47 64/354/47 62/352/47 89/351/47 +f 85/355/46 66/356/46 64/354/46 87/353/46 +f 83/357/45 68/358/45 66/356/45 85/355/45 +f 81/359/44 70/360/44 68/358/44 83/357/44 +f 79/361/43 72/362/43 70/360/43 81/359/43 +f 77/363/42 74/364/42 72/362/42 79/361/42 +f 75/365/41 76/366/41 74/364/41 77/363/41 +f 73/367/40 78/368/40 76/369/40 75/370/40 +f 71/371/39 80/372/39 78/368/39 73/367/39 +f 69/373/38 82/374/38 80/372/38 71/371/38 +f 67/375/37 84/376/37 82/374/37 69/373/37 +f 65/377/36 86/378/36 84/376/36 67/375/36 +f 63/379/35 88/380/35 86/378/35 65/377/35 +f 61/381/34 90/382/34 88/380/34 63/379/34 +f 59/383/33 92/384/33 90/382/33 61/381/33 +f 57/385/32 94/386/32 92/384/32 59/383/32 +f 55/387/31 96/388/31 94/386/31 57/385/31 +f 53/389/30 98/390/30 96/388/30 55/387/30 +f 51/391/29 100/392/29 98/390/29 53/389/29 +f 49/393/28 102/394/28 100/392/28 51/391/28 +f 47/395/27 104/396/27 102/394/27 49/393/27 +f 45/397/26 106/398/26 104/396/26 47/395/26 +f 43/399/25 108/400/25 106/398/25 45/397/25 +f 41/401/24 110/402/24 108/403/24 43/404/24 +f 39/405/23 112/406/23 110/402/23 41/401/23 +f 37/407/22 114/408/22 112/406/22 39/405/22 +f 35/409/21 116/410/21 114/408/21 37/407/21 +f 33/411/20 118/412/20 116/410/20 35/409/20 +f 31/413/19 120/414/19 118/412/19 33/411/19 +f 29/415/18 122/416/18 120/414/18 31/413/18 +f 27/417/17 124/418/17 122/416/17 29/415/17 +f 25/419/16 126/420/16 124/418/16 27/417/16 +f 23/421/15 128/422/15 126/420/15 25/419/15 +f 21/423/14 130/424/14 128/422/14 23/421/14 +f 19/425/13 132/426/13 130/424/13 21/423/13 +f 17/296/12 134/295/12 132/426/12 19/425/12 +f 139/427/11 136/428/11 140/298/11 13/297/11 diff --git a/digistuff/nbsounds.lua b/digistuff/nbsounds.lua new file mode 100644 index 0000000..33952bf --- /dev/null +++ b/digistuff/nbsounds.lua @@ -0,0 +1,166 @@ +local valid_sounds = { + csharp = "mesecons_noteblock_csharp", + d = "mesecons_noteblock_d", + dsharp = "mesecons_noteblock_dsharp", + e = "mesecons_noteblock_e", + f = "mesecons_noteblock_f", + fsharp = "mesecons_noteblock_fsharp", + g = "mesecons_noteblock_g", + gsharp = "mesecons_noteblock_gsharp", + a = "mesecons_noteblock_a", + asharp = "mesecons_noteblock_asharp", + b = "mesecons_noteblock_b", + c = "mesecons_noteblock_c", + csharp2 = "mesecons_noteblock_csharp2", + d2 = "mesecons_noteblock_d2", + dsharp2 = "mesecons_noteblock_dsharp2", + e2 = "mesecons_noteblock_e2", + f2 = "mesecons_noteblock_f2", + fsharp2 = "mesecons_noteblock_fsharp2", + g2 = "mesecons_noteblock_g2", + gsharp2 = "mesecons_noteblock_gsharp2", + a2 = "mesecons_noteblock_a2", + asharp2 = "mesecons_noteblock_asharp2", + b2 = "mesecons_noteblock_b2", + c2 = "mesecons_noteblock_c2", + hihat = "mesecons_noteblock_hihat", + kick = "mesecons_noteblock_kick", + snare = "mesecons_noteblock_snare", + crash = "mesecons_noteblock_crash", + litecrash = "mesecons_noteblock_litecrash", + fire = "fire_large", + explosion = "tnt_explode", + digistuff_piezo_short = "digistuff_piezo_short_single", + digistuff_piezo_long = "digistuff_piezo_long_single" +} + +local mod_sounds = { + pbj_pup = { + pbj_pup_barks = "pbj_pup_barks", + pbj_pup_howl = "pbj_pup_howl" + }, + anvil = { + anvil_clang = "anvil_clang" + }, + bees = { + bees = "bees" + }, + bobblocks = { + bobblocks_glass_block = "bobblocks_glassblock", + bobblocks_health = "bobblocks_health", + bobblocks_trap = "bobblocks_trap_fall", + bobblocks_trap_large = "bobblocks_trap_fall_major" + }, + fake_fire = { + fake_fire_extinguish = "fire_extinguish" + }, + homedecor = { + homedecor_book_close = "homedecor_book_close", + homedecor_doorbell = "homedecor_doorbell", + homedecor_door_close = "homedecor_door_close", + homedecor_door_open = "homedecor_door_open", + homedecor_faucet = "homedecor_faucet", + homedecor_gate = "homedecor_gate_open_close", + homedecor_shower = "homedecor_shower", + homedecor_telephone = "homedecor_telephone_ringing", + homedecor_toilet = "homedecor_toilet_flush", + homedecor_trash = "homedecor_trash_all", + homedecor_insert_coin = "insert_coin", + homedecor_toaster = "toaster" + }, + infrastructure = { + infrastructure_emergency_phone = "infrastructure_emergency_phone" + }, + item_tweaks = { + item_drop = "item_drop", + item_pickup = "item_drop_pickup" + }, + mesecons_button = { + mesecons_button_push = "mesecons_button_push", + mesecons_button_pop = "mesecons_button_pop", + }, + mesecons_pistons = { + mesecons_piston_extend = "piston_extend", + mesecons_piston_retract = "piston_retract" + }, + mesecons_walllever = { + mesecons_lever = "mesecons_lever" + }, + technic = { + technic_chainsaw = "chainsaw", + technic_mining_drill = "mining_drill", + technic_laser_mk1 = "technic_laser_mk1", + technic_laser_mk2 = "technic_laser_mk2", + technic_laser_mk3 = "technic_laser_mk3", + technic_prospector_hit = "technic_prospector_hit", + technic_prospector_miss = "technic_prospector_miss" + }, + teleport_request = { + teleport_request_accept = "whoosh" + }, + unified_inventory = { + unified_inventory_day = "birds", + unified_inventory_click = "click", + unified_inventory_sethome = "dingdong", + unified_inventory_refill = "electricity", + unified_inventory_night = "owl", + unified_inventory_turn_page_1 = "paperflip1", + unified_inventory_turn_page_2 = "paperflip2", + unified_inventory_home = "teleport", + unified_inventory_trash = "trash", + unified_inventory_clear = "trash_all" + }, + carts = { + carts_cart_moving = "carts_cart_moving" + }, + default = { + default_break_glass = "default_break_glass", + default_chest_close = "default_chest_close", + default_chest_open = "default_chest_open", + default_cool_lava = "default_cool_lava", + default_dig_choppy = "default_dig_choppy", + default_dig_cracky = "default_dig_cracky", + default_dig_crumbly = "default_dig_crumbly", + default_dig_dig_immediate = "default_dig_dig_immediate", + default_dig_metal = "default_dig_metal", + default_dig_oddly_breakable_by_hand = "default_dig_oddly_breakable_by_hand", + default_dig_snappy = "default_dig_snappy", + default_dirt_footstep = "default_dirt_footstep", + default_dug_metal = "default_dug_metal", + default_dug_node = "default_dug_node", + default_glass_footstep = "default_glass_footstep", + default_grass_footstep = "default_grass_footstep", + default_gravel_footstep = "default_gravel_footstep", + default_hard_footstep = "default_hard_footstep", + default_item_smoke = "default_item_smoke", + default_metal_footstep = "default_metal_footstep", + default_place_node = "default_place_node", + default_place_node_hard = "default_place_node_hard", + default_place_node_metal = "default_place_node_metal", + default_sand_footstep = "default_sand_footstep", + default_snow_footstep = "default_snow_footstep", + default_tool_breaks = "default_tool_breaks", + default_water_footstep = "default_water_footstep", + default_wood_footstep = "default_wood_footstep" + }, + doors = { + doors_door_open = "doors_door_open", + doors_door_close = "doors_door_close", + doors_gate_open = "doors_fencegate_open", + doors_gate_close = "doors_fencegate_close", + doors_glass_door_open = "doors_glass_door_open", + doors_glass_door_close = "doors_glass_door_close", + doors_steel_door_open = "doors_steel_door_open", + doors_steel_door_close = "doors_steel_door_close", + } +} + +for mod,sounds in pairs(mod_sounds) do + if minetest.get_modpath(mod) then + for name,file in pairs(sounds) do + valid_sounds[name] = file + end + end +end + +return valid_sounds diff --git a/digistuff/nic.lua b/digistuff/nic.lua new file mode 100644 index 0000000..50bf105 --- /dev/null +++ b/digistuff/nic.lua @@ -0,0 +1,70 @@ +local http = ... +minetest.register_node("digistuff:nic", { + description = "Digilines NIC", + groups = {cracky=3}, + on_construct = function(pos) + local meta = minetest.get_meta(pos) + meta:set_string("formspec","field[channel;Channel;${channel}") + end, + tiles = { + "digistuff_nic_top.png", + "jeija_microcontroller_bottom.png", + "jeija_microcontroller_sides.png", + "jeija_microcontroller_sides.png", + "jeija_microcontroller_sides.png", + "jeija_microcontroller_sides.png" + }, + inventory_image = "digistuff_nic_top.png", + drawtype = "nodebox", + selection_box = { + --From luacontroller + type = "fixed", + fixed = { -8/16, -8/16, -8/16, 8/16, -5/16, 8/16 }, + }, + node_box = { + --From Luacontroller + type = "fixed", + fixed = { + {-8/16, -8/16, -8/16, 8/16, -7/16, 8/16}, -- Bottom slab + {-5/16, -7/16, -5/16, 5/16, -6/16, 5/16}, -- Circuit board + {-3/16, -6/16, -3/16, 3/16, -5/16, 3/16}, -- IC + } + }, + paramtype = "light", + sunlight_propagates = true, + on_receive_fields = function(pos, formname, fields, sender) + local name = sender:get_player_name() + if minetest.is_protected(pos,name) and not minetest.check_player_privs(name,{protection_bypass=true}) then + minetest.record_protection_violation(pos,name) + return + end + local meta = minetest.get_meta(pos) + if fields.channel then meta:set_string("channel",fields.channel) end + end, + digiline = + { + receptor = {}, + effector = { + action = function(pos,node,channel,msg) + local meta = minetest.get_meta(pos) + if meta:get_string("channel") ~= channel then return end + if type(msg) ~= "string" then return end + http.fetch({ + url = msg, + timeout = 5, + user_agent = "Minetest Digilines Modem", + }, + function(res) + digiline:receptor_send(pos, digiline.rules.default, channel, res) + end) + end + }, + }, +}) +minetest.register_craft({ + output = "digistuff:nic", + recipe = { + {"","","mesecons:wire_00000000_off"}, + {"digilines:wire_std_00000000","mesecons_luacontroller:luacontroller0000","mesecons:wire_00000000_off"} + } +}) diff --git a/digistuff/noteblock.lua b/digistuff/noteblock.lua new file mode 100644 index 0000000..f2e9c89 --- /dev/null +++ b/digistuff/noteblock.lua @@ -0,0 +1,64 @@ +if not minetest.get_modpath("mesecons_noteblock") then + minetest.log("error","mesecons_noteblock is not installed - digilines noteblock will not be available!") + return +end + +local validnbsounds = dofile(minetest.get_modpath(minetest.get_current_modname())..DIR_DELIM.."nbsounds.lua") +minetest.register_node("digistuff:noteblock", { + description = "Digilines Noteblock", + groups = {cracky=3}, + on_construct = function(pos) + local meta = minetest.get_meta(pos) + meta:set_string("formspec","field[channel;Channel;${channel}") + end, + on_destruct = function(pos) + local pos_hash = minetest.hash_node_position(pos) + if digistuff.sounds_playing[pos_hash] then + minetest.sound_stop(digistuff.sounds_playing[pos_hash]) + digistuff.sounds_playing[pos_hash] = nil + end + end, + tiles = { + "mesecons_noteblock.png" + }, + on_receive_fields = function(pos, formname, fields, sender) + local name = sender:get_player_name() + if minetest.is_protected(pos,name) and not minetest.check_player_privs(name,{protection_bypass=true}) then + minetest.record_protection_violation(pos,name) + return + end + local meta = minetest.get_meta(pos) + if fields.channel then meta:set_string("channel",fields.channel) end + end, + digiline = + { + receptor = {}, + effector = { + action = function(pos,node,channel,msg) + local meta = minetest.get_meta(pos) + local setchan = meta:get_string("channel") + if channel ~= setchan then return end + if msg == "get_sounds" then + local soundnames = {} + for i in pairs(validnbsounds) do + table.insert(soundnames,i) + end + digiline:receptor_send(pos, digiline.rules.default, channel, soundnames) + return + end + if type(msg) == "string" then + local sound = validnbsounds[msg] + if sound then minetest.sound_play(sound,{pos=pos}) end + elseif type(msg) == "table" then + if type(msg.sound) ~= "string" then return end + local sound = validnbsounds[msg.sound] + local volume = 1 + if type(msg.volume) == "number" then + volume = math.max(0,math.min(1,msg.volume)) + end + if sound then minetest.sound_play({name=sound,gain=volume},{pos=pos}) end + end + end + }, + }, +}) diff --git a/digistuff/panel.lua b/digistuff/panel.lua new file mode 100644 index 0000000..d543af1 --- /dev/null +++ b/digistuff/panel.lua @@ -0,0 +1,151 @@ +digistuff.update_panel_formspec = function (pos,dispstr) + local meta = minetest.get_meta(pos) + local locked = meta:get_int("locked") == 1 + local fs = "size[10,8]".. + "background[0,0;0,0;digistuff_panel_bg.png;true]".. + "label[0,0;%s]".. + (locked and "image_button[9,3;1,1;digistuff_panel_locked.png;unlock;]" or "image_button[9,3;1,1;digistuff_panel_unlocked.png;lock;]").. + "image_button[2,4.5;1,1;digistuff_adwaita_go-up.png;up;]".. + "image_button[1,5;1,1;digistuff_adwaita_go-previous.png;left;]".. + "image_button[3,5;1,1;digistuff_adwaita_go-next.png;right;]".. + "image_button[2,5.5;1,1;digistuff_adwaita_go-down.png;down;]".. + "image_button[1,6.5;1,1;digistuff_adwaita_edit-undo.png;back;]".. + "image_button[3,6.5;1,1;digistuff_adwaita_emblem-default.png;enter;]".. + "field[6,5.75;2,1;channel;Channel;${channel}]".. + "button[8,5.5;1,1;savechan;Set]" + fs = fs:format(minetest.formspec_escape(dispstr)):gsub("|","\n") + meta:set_string("formspec",fs) + meta:set_string("text",dispstr) +end + +digistuff.panel_on_digiline_receive = function (pos, node, channel, msg) + local meta = minetest.get_meta(pos) + local setchan = meta:get_string("channel") + if channel ~= setchan then return end + if type(msg) ~= "string" then return end + digistuff.update_panel_formspec(pos,msg) +end + +digistuff.panel_on_receive_fields = function(pos, formname, fields, sender) + local meta = minetest.get_meta(pos) + local setchan = meta:get_string("channel") + local playername = sender:get_player_name() + local locked = meta:get_int("locked") == 1 + local can_bypass = minetest.check_player_privs(playername,{protection_bypass=true}) + local is_protected = minetest.is_protected(pos,playername) + if fields.savechan then + if can_bypass or not is_protected then + meta:set_string("channel",fields.channel) + local helpmsg = "Channel has been set. Waiting for data..." + digistuff.update_panel_formspec(pos,helpmsg) + else + minetest.record_protection_violation(pos,playername) + minetest.chat_send_player(playername,"You are not authorized to change the channel of this panel.") + end + elseif fields.up then + if can_bypass or not is_protected or not locked then + digiline:receptor_send(pos, digiline.rules.default, setchan, "up") + else + minetest.record_protection_violation(pos,playername) + minetest.chat_send_player(playername,"You are not authorized to use this panel.") + end + elseif fields.down then + if can_bypass or not is_protected or not locked then + digiline:receptor_send(pos, digiline.rules.default, setchan, "down") + else + minetest.record_protection_violation(pos,playername) + minetest.chat_send_player(playername,"You are not authorized to use this panel.") + end + elseif fields.left then + if can_bypass or not is_protected or not locked then + digiline:receptor_send(pos, digiline.rules.default, setchan, "left") + else + minetest.record_protection_violation(pos,playername) + minetest.chat_send_player(playername,"You are not authorized to use this panel.") + end + elseif fields.right then + if can_bypass or not is_protected or not locked then + digiline:receptor_send(pos, digiline.rules.default, setchan, "right") + else + minetest.record_protection_violation(pos,playername) + minetest.chat_send_player(playername,"You are not authorized to use this panel.") + end + elseif fields.back then + if can_bypass or not is_protected or not locked then + digiline:receptor_send(pos, digiline.rules.default, setchan, "back") + else + minetest.record_protection_violation(pos,playername) + minetest.chat_send_player(playername,"You are not authorized to use this panel.") + end + elseif fields.enter then + if can_bypass or not is_protected or not locked then + digiline:receptor_send(pos, digiline.rules.default, setchan, "enter") + else + minetest.record_protection_violation(pos,playername) + minetest.chat_send_player(playername,"You are not authorized to use this panel.") + end + elseif fields.lock then + if can_bypass or not is_protected then + meta:set_int("locked",1) + minetest.chat_send_player(playername,"This panel has been locked. Access will now be controlled according to area protection.") + digistuff.update_panel_formspec(pos,meta:get_string("text")) + else + minetest.record_protection_violation(pos,playername) + minetest.chat_send_player(playername,"You are not authorized to lock this panel.") + end + elseif fields.unlock then + if can_bypass or not is_protected then + meta:set_int("locked",0) + minetest.chat_send_player(playername,"This panel has been unlocked. It can now be used (but not locked or have the channel changed) by anyone.") + digistuff.update_panel_formspec(pos,meta:get_string("text")) + else + minetest.record_protection_violation(pos,playername) + minetest.chat_send_player(playername,"You are not authorized to unlock this panel.") + end + end +end + + +minetest.register_node("digistuff:panel", { + description = "Digilines Control Panel", + groups = {cracky=3}, + on_construct = function(pos) + local helpmsg = "Please set a channel." + digistuff.update_panel_formspec(pos,helpmsg) + minetest.get_meta(pos):set_int("locked",0) + end, + drawtype = "nodebox", + tiles = { + "digistuff_panel_back.png", + "digistuff_panel_back.png", + "digistuff_panel_back.png", + "digistuff_panel_back.png", + "digistuff_panel_back.png", + "digistuff_panel_front.png" + }, + paramtype = "light", + paramtype2 = "facedir", + node_box = { + type = "fixed", + fixed = { + { -0.5, -0.5, 0.4, 0.5, 0.5, 0.5 } + } + }, + on_receive_fields = digistuff.panel_on_receive_fields, + digiline = + { + receptor = {}, + effector = { + action = digistuff.panel_on_digiline_receive + }, + }, +}) + +minetest.register_craft({ + output = "digistuff:panel", + recipe = { + {"","digistuff:button",""}, + {"digistuff:button","digilines:lcd","digistuff:button"}, + {"","digistuff:button",""} + } +}) diff --git a/digistuff/piezo.lua b/digistuff/piezo.lua new file mode 100644 index 0000000..f96e4a1 --- /dev/null +++ b/digistuff/piezo.lua @@ -0,0 +1,80 @@ +digistuff.sounds_playing = {} + +minetest.register_node("digistuff:piezo", { + description = "Digilines Piezoelectric Beeper", + groups = {cracky=3}, + on_construct = function(pos) + local meta = minetest.get_meta(pos) + meta:set_string("formspec","field[channel;Channel;${channel}") + end, + on_destruct = function(pos) + local pos_hash = minetest.hash_node_position(pos) + if digistuff.sounds_playing[pos_hash] then + minetest.sound_stop(digistuff.sounds_playing[pos_hash]) + digistuff.sounds_playing[pos_hash] = nil + end + end, + tiles = { + "digistuff_piezo_top.png", + "digistuff_piezo_sides.png", + "digistuff_piezo_sides.png", + "digistuff_piezo_sides.png", + "digistuff_piezo_sides.png", + "digistuff_piezo_sides.png" + }, + on_receive_fields = function(pos, formname, fields, sender) + local name = sender:get_player_name() + if minetest.is_protected(pos,name) and not minetest.check_player_privs(name,{protection_bypass=true}) then + minetest.record_protection_violation(pos,name) + return + end + local meta = minetest.get_meta(pos) + if fields.channel then meta:set_string("channel",fields.channel) end + end, + digiline = + { + receptor = {}, + effector = { + action = function(pos,node,channel,msg) + local meta = minetest.get_meta(pos) + local setchan = meta:get_string("channel") + if channel ~= setchan then return end + if msg == "shortbeep" then + local pos_hash = minetest.hash_node_position(pos) + if digistuff.sounds_playing[pos_hash] then + minetest.sound_stop(digistuff.sounds_playing[pos_hash]) + digistuff.sounds_playing[pos_hash] = nil + end + minetest.sound_play({name = "digistuff_piezo_short_single",gain = 0.2},{pos = pos,max_hear_distance = 16}) + elseif msg == "longbeep" then + local pos_hash = minetest.hash_node_position(pos) + if digistuff.sounds_playing[pos_hash] then + minetest.sound_stop(digistuff.sounds_playing[pos_hash]) + digistuff.sounds_playing[pos_hash] = nil + end + minetest.sound_play({name = "digistuff_piezo_long_single",gain = 0.2},{pos = pos,max_hear_distance = 16}) + elseif msg == "fastrepeat" then + local pos_hash = minetest.hash_node_position(pos) + if digistuff.sounds_playing[pos_hash] then + minetest.sound_stop(digistuff.sounds_playing[pos_hash]) + digistuff.sounds_playing[pos_hash] = nil + end + digistuff.sounds_playing[pos_hash] = minetest.sound_play({name = "digistuff_piezo_fast_repeat",gain = 0.2},{pos = pos,max_hear_distance = 16,loop = true}) + elseif msg == "slowrepeat" then + local pos_hash = minetest.hash_node_position(pos) + if digistuff.sounds_playing[pos_hash] then + minetest.sound_stop(digistuff.sounds_playing[pos_hash]) + digistuff.sounds_playing[pos_hash] = nil + end + digistuff.sounds_playing[pos_hash] = minetest.sound_play({name = "digistuff_piezo_slow_repeat",gain = 0.2},{pos = pos,max_hear_distance = 16,loop = true}) + elseif msg == "stop" then + local pos_hash = minetest.hash_node_position(pos) + if digistuff.sounds_playing[pos_hash] then + minetest.sound_stop(digistuff.sounds_playing[pos_hash]) + digistuff.sounds_playing[pos_hash] = nil + end + end + end + }, + }, +}) diff --git a/digistuff/piston.lua b/digistuff/piston.lua new file mode 100644 index 0000000..b4ed655 --- /dev/null +++ b/digistuff/piston.lua @@ -0,0 +1,222 @@ +if not minetest.get_modpath("mesecons_mvps") then + minetest.log("error","mesecons_mvps is not installed - digilines piston will not be available!") + return +end + +local function extend(pos,node,max) + local meta = minetest.get_meta(pos):to_table() + local facedir = minetest.facedir_to_dir(node.param2) + local actiondir = vector.multiply(facedir,-1) + local ppos = vector.add(pos,actiondir) + local success,stack,oldstack = mesecon.mvps_push(ppos,actiondir,max) + if not success then return end + minetest.sound_play("digistuff_piston_extend",{pos = pos,max_hear_distance = 20,gain = 0.6}) + minetest.swap_node(pos,{name = "digistuff:piston_ext",param2 = node.param2}) + minetest.swap_node(ppos,{name = "digistuff:piston_pusher",param2 = node.param2}) + mesecon.mvps_process_stack(stack) + mesecon.mvps_move_objects(ppos,actiondir,oldstack) + minetest.get_meta(pos):from_table(meta) +end + +local function retract(pos,node,max,allsticky) + local facedir = minetest.facedir_to_dir(node.param2) + local actiondir = vector.multiply(facedir,-1) + local ppos = vector.add(pos,actiondir) + minetest.swap_node(pos,{name = "digistuff:piston",param2 = node.param2}) + if minetest.get_node(ppos).name == "digistuff:piston_pusher" then + minetest.remove_node(ppos) + end + minetest.sound_play("digistuff_piston_retract",{pos = pos,max_hear_distance = 20,gain = 0.6}) + minetest.check_for_falling(ppos) + if type(max) ~= "number" or max <= 0 then return end + local pullpos = vector.add(pos,vector.multiply(actiondir,2)) + local success,stack,oldstack + if allsticky then + success,stack,oldstack = mesecon.mvps_pull_all(pullpos,facedir,max) + else + success,stack,oldstack = mesecon.mvps_pull_single(pullpos,facedir,max) + end + if success then + mesecon.mvps_move_objects(pullpos,actiondir,oldstack,-1) + end +end + +minetest.register_node("digistuff:piston", { + description = "Digilines Piston", + groups = {cracky=3}, + paramtype2 = "facedir", + on_construct = function(pos) + local meta = minetest.get_meta(pos) + meta:set_string("formspec","field[channel;Channel;${channel}") + end, + tiles = { + "digistuff_piston_sides.png^[transformR180", + "digistuff_piston_sides.png", + "digistuff_piston_sides.png^[transformR90", + "digistuff_piston_sides.png^[transformR270", + "digistuff_camera_pole.png", + "digistuff_camera_pole.png", + }, + on_receive_fields = function(pos, formname, fields, sender) + local name = sender:get_player_name() + if minetest.is_protected(pos,name) and not minetest.check_player_privs(name,{protection_bypass=true}) then + minetest.record_protection_violation(pos,name) + return + end + local meta = minetest.get_meta(pos) + if fields.channel then meta:set_string("channel",fields.channel) end + end, + digiline = { + wire = { + rules = { + {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}, + }, + }, + receptor = {}, + effector = { + action = function(pos,node,channel,msg) + local meta = minetest.get_meta(pos) + local setchan = meta:get_string("channel") + if channel ~= setchan then return end + if msg == "extend" then + extend(pos,node,16) + elseif type(msg) == "table" and msg.action == "extend" then + local max = 16 + if type(msg.max) == "number" then + max = math.max(0,math.min(16,math.floor(msg.max))) + end + extend(pos,node,max) + end + end + }, + }, +}) + +minetest.register_node("digistuff:piston_ext", { + description = "Digilines Piston (extended state - you hacker you!)", + groups = {cracky = 3,not_in_creative_inventory = 1}, + paramtype2 = "facedir", + tiles = { + "digistuff_piston_sides.png^[transformR180", + "digistuff_piston_sides.png", + "digistuff_piston_sides.png^[transformR90", + "digistuff_piston_sides.png^[transformR270", + "digistuff_camera_pole.png", + "digistuff_camera_pole.png", + }, + drop = "digistuff:piston", + drawtype = "nodebox", + node_box = { + type = "fixed", + fixed = { + {-0.5,-0.5,-0.3,0.5,0.5,0.5}, + {-0.2,-0.2,-0.5,0.2,0.2,-0.3}, + } + }, + selection_box = { + type = "fixed", + fixed = { + {-0.5,-0.5,-1.5,0.5,0.5,0.5}, + } + }, + on_rotate = function() return false end, + on_receive_fields = function(pos, formname, fields, sender) + local name = sender:get_player_name() + if minetest.is_protected(pos,name) and not minetest.check_player_privs(name,{protection_bypass=true}) then + minetest.record_protection_violation(pos,name) + return + end + local meta = minetest.get_meta(pos) + if fields.channel then meta:set_string("channel",fields.channel) end + end, + after_dig_node = function(pos,node) + local pdir = vector.multiply(minetest.facedir_to_dir(node.param2),-1) + local ppos = vector.add(pos,pdir) + if minetest.get_node(ppos).name == "digistuff:piston_pusher" then + minetest.remove_node(ppos) + end + end, + digiline = { + wire = { + rules = { + {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}, + }, + }, + receptor = {}, + effector = { + action = function(pos,node,channel,msg) + local meta = minetest.get_meta(pos) + local setchan = meta:get_string("channel") + if channel ~= setchan then return end + if msg == "retract" then + retract(pos,node) + elseif msg == "retract_sticky" then + retract(pos,node,16) + elseif type(msg) == "table" and msg.action == "retract" then + local max = 16 + if type(msg.max) == "number" then + max = math.max(0,math.min(16,math.floor(msg.max))) + elseif msg.max == nil then + max = 0 + end + retract(pos,node,max,msg.allsticky) + end + end + }, + }, +}) + +minetest.register_node("digistuff:piston_pusher", { + description = "Digilines Piston Pusher (you hacker you!)", + groups = {not_in_creative_inventory=1}, + paramtype = "light", + sunlight_propagates = true, + paramtype2 = "facedir", + tiles = { + "digistuff_piston_sides.png^[transformR180", + "digistuff_piston_sides.png", + "digistuff_piston_sides.png^[transformR90", + "digistuff_piston_sides.png^[transformR270", + "digistuff_camera_pole.png", + "digistuff_camera_pole.png", + }, + drawtype = "nodebox", + node_box = { + type = "fixed", + fixed = { + {-0.5,-0.5,-0.5,0.5,0.5,-0.3}, + {-0.2,-0.2,-0.3,0.2,0.2,0.5}, + } + }, + selection_box = { + type = "fixed", + fixed = { + {0,0,0,0,0,0}, + } + }, + digiline = { + wire = { + rules = { + {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}, + }, + }, + }, +}) + +mesecon.register_mvps_stopper("digistuff:piston_ext") +mesecon.register_mvps_stopper("digistuff:piston_pusher") diff --git a/digistuff/sounds/digistuff_piezo_fast_repeat.ogg b/digistuff/sounds/digistuff_piezo_fast_repeat.ogg new file mode 100644 index 0000000..be035da Binary files /dev/null and b/digistuff/sounds/digistuff_piezo_fast_repeat.ogg differ diff --git a/digistuff/sounds/digistuff_piezo_long_single.ogg b/digistuff/sounds/digistuff_piezo_long_single.ogg new file mode 100644 index 0000000..435ac61 Binary files /dev/null and b/digistuff/sounds/digistuff_piezo_long_single.ogg differ diff --git a/digistuff/sounds/digistuff_piezo_short_single.ogg b/digistuff/sounds/digistuff_piezo_short_single.ogg new file mode 100644 index 0000000..0178f15 Binary files /dev/null and b/digistuff/sounds/digistuff_piezo_short_single.ogg differ diff --git a/digistuff/sounds/digistuff_piezo_slow_repeat.ogg b/digistuff/sounds/digistuff_piezo_slow_repeat.ogg new file mode 100644 index 0000000..1b35343 Binary files /dev/null and b/digistuff/sounds/digistuff_piezo_slow_repeat.ogg differ diff --git a/digistuff/sounds/digistuff_piston_extend.ogg b/digistuff/sounds/digistuff_piston_extend.ogg new file mode 100644 index 0000000..2a855df Binary files /dev/null and b/digistuff/sounds/digistuff_piston_extend.ogg differ diff --git a/digistuff/sounds/digistuff_piston_retract.ogg b/digistuff/sounds/digistuff_piston_retract.ogg new file mode 100644 index 0000000..57f9342 Binary files /dev/null and b/digistuff/sounds/digistuff_piston_retract.ogg differ diff --git a/digistuff/switches.lua b/digistuff/switches.lua new file mode 100644 index 0000000..e313781 --- /dev/null +++ b/digistuff/switches.lua @@ -0,0 +1,288 @@ +digistuff.button_turnoff = function (pos) + local node = minetest.get_node(pos) + minetest.swap_node(pos, {name = "digistuff:button_off", param2=node.param2}) + if minetest.get_modpath("mesecons") then minetest.sound_play("mesecons_button_pop", {pos=pos}) end +end + +digistuff.button_get_rules = function(node) + local rules = { + {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}, + {x = 0,y = 0,z = 2}, + {x = 0,y = 1,z = 1}, + {x = 0,y = -1,z = 1}, + } + local dir = minetest.facedir_to_dir(node.param2) + rules = digistuff.rotate_rules(rules,dir) + return rules +end + +minetest.register_node("digistuff:button", { + drawtype = "nodebox", + tiles = { + "digistuff_digibutton_sides.png", + "digistuff_digibutton_sides.png", + "digistuff_digibutton_sides.png", + "digistuff_digibutton_sides.png", + "digistuff_digibutton_sides.png", + "digistuff_digibutton_off.png" + }, + paramtype = "light", + paramtype2 = "facedir", + legacy_wallmounted = true, + walkable = false, + sunlight_propagates = true, + selection_box = { + type = "fixed", + fixed = { -6/16, -6/16, 5/16, 6/16, 6/16, 8/16 } + }, + node_box = { + type = "fixed", + fixed = { + { -6/16, -6/16, 6/16, 6/16, 6/16, 8/16 }, -- the thin plate behind the button + { -4/16, -2/16, 4/16, 4/16, 2/16, 6/16 } -- the button itself + } + }, + digiline = + { + receptor = {}, + wire = { + rules = digistuff.button_get_rules, + }, + }, + groups = {dig_immediate = 2,digiline_receiver = 1,}, + description = "Digilines Button", + on_construct = function(pos) + local meta = minetest.get_meta(pos) + meta:set_string("formspec","size[8,4;]field[1,1;6,2;channel;Channel;${channel}]field[1,2;6,2;msg;Message;${msg}]button_exit[2.25,3;3,1;submit;Save]") + end, + after_place_node = digistuff.place_receiver, + after_destruct = digistuff.remove_receiver, + on_receive_fields = function(pos, formname, fields, sender) + local meta = minetest.get_meta(pos) + if fields.channel and fields.channel ~= "" then + meta:set_string("channel",fields.channel) + meta:set_string("msg",fields.msg) + meta:set_string("formspec","") + minetest.swap_node(pos, {name = "digistuff:button_off", param2=minetest.get_node(pos).param2}) + else + minetest.chat_send_player(sender:get_player_name(),"Please set a channel!") + end + end, + sounds = default and default.node_sound_stone_defaults(), +}) + +minetest.register_node("digistuff:button_off", { + drawtype = "nodebox", + tiles = { + "digistuff_digibutton_sides.png", + "digistuff_digibutton_sides.png", + "digistuff_digibutton_sides.png", + "digistuff_digibutton_sides.png", + "digistuff_digibutton_sides.png", + "digistuff_digibutton_off.png" + }, + paramtype = "light", + paramtype2 = "facedir", + legacy_wallmounted = true, + walkable = false, + sunlight_propagates = true, + selection_box = { + type = "fixed", + fixed = { -6/16, -6/16, 5/16, 6/16, 6/16, 8/16 } + }, + node_box = { + type = "fixed", + fixed = { + { -6/16, -6/16, 6/16, 6/16, 6/16, 8/16 }, -- the thin plate behind the button + { -4/16, -2/16, 4/16, 4/16, 2/16, 6/16 } -- the button itself + } + }, + digiline = + { + receptor = {}, + wire = { + rules = digistuff.button_get_rules, + }, + }, + groups = {dig_immediate = 2,not_in_creative_inventory = 1,digiline_receiver = 1,}, + drop = "digistuff:button", + after_destruct = digistuff.remove_receiver, + description = "Digilines Button (off state - you hacker you!)", + on_rightclick = function (pos, node, clicker) + local meta = minetest.get_meta(pos) + digiline:receptor_send(pos, digistuff.button_get_rules(node), meta:get_string("channel"), meta:get_string("msg")) + minetest.swap_node(pos, {name = "digistuff:button_on", param2=node.param2}) + if minetest.get_modpath("mesecons") then minetest.sound_play("mesecons_button_push", {pos=pos}) end + minetest.get_node_timer(pos):start(0.25) + end, + sounds = default and default.node_sound_stone_defaults(), +}) + +minetest.register_node("digistuff:button_on", { + drawtype = "nodebox", + tiles = { + "digistuff_digibutton_sides.png", + "digistuff_digibutton_sides.png", + "digistuff_digibutton_sides.png", + "digistuff_digibutton_sides.png", + "digistuff_digibutton_sides.png", + "digistuff_digibutton_on.png" + }, + paramtype = "light", + paramtype2 = "facedir", + legacy_wallmounted = true, + walkable = false, + light_source = 7, + sunlight_propagates = true, + selection_box = { + type = "fixed", + fixed = { -6/16, -6/16, 5/16, 6/16, 6/16, 8/16 } + }, + node_box = { + type = "fixed", + fixed = { + { -6/16, -6/16, 6/16, 6/16, 6/16, 8/16 }, + { -4/16, -2/16, 11/32, 4/16, 2/16, 6/16 } + } + }, + digiline = + { + receptor = {}, + wire = { + rules = digistuff.button_get_rules, + }, + }, + on_timer = digistuff.button_turnoff, + groups = {dig_immediate = 2,not_in_creative_inventory = 1,digiline_receiver = 1,}, + drop = 'digistuff:button', + after_destruct = digistuff.remove_receiver, + on_rightclick = function (pos, node, clicker) + local meta = minetest.get_meta(pos) + digiline:receptor_send(pos, digistuff.button_get_rules(node), meta:get_string("channel"), meta:get_string("msg")) + if minetest.get_modpath("mesecons") then minetest.sound_play("mesecons_button_push", {pos=pos}) end + minetest.get_node_timer(pos):start(0.25) + end, + description = "Digilines Button (on state - you hacker you!)", + sounds = default and default.node_sound_stone_defaults(), +}) + +minetest.register_craft({ + output = "digistuff:button", + recipe = { + {"mesecons_button:button_off"}, + {"mesecons_luacontroller:luacontroller0000"}, + {"digilines:wire_std_00000000"} + } +}) + +minetest.register_node("digistuff:wall_knob", { + paramtype = "light", + paramtype2 = "facedir", + walkable = false, + sunlight_propagates = true, + digiline = + { + receptor = {}, + wire = { + rules = digistuff.button_get_rules, + }, + }, + drawtype = "mesh", + mesh = "digistuff_wall_knob.obj", + tiles = { + "digistuff_digibutton_sides.png", + "digistuff_digiline_full.png", + }, + selection_box = { + type = "fixed", + fixed = { + {-0.4,-0.4,0,0.4,0.4,0.5}, + }, + }, + groups = {dig_immediate = 2,digiline_receiver = 1,}, + description = "Digilines Wall Knob", + on_construct = function(pos) + local meta = minetest.get_meta(pos) + meta:set_int("min",0) + meta:set_int("max",14) + meta:set_string("formspec","size[8,4;]field[1,1;6,2;channel;Channel;${channel}]field[1,2;3,2;min;Minimum;${min}]field[4,2;3,2;max;Maximum;${max}]button_exit[2.25,3;3,1;submit;Save]") + end, + after_place_node = digistuff.place_receiver, + after_destruct = digistuff.remove_receiver, + on_receive_fields = function(pos, formname, fields, sender) + local meta = minetest.get_meta(pos) + if fields.channel and fields.channel ~= "" then + if tonumber(fields.min) and tonumber(fields.max) and math.floor(fields.min) < math.floor(fields.max) then + meta:set_string("channel",fields.channel) + meta:set_int("min",math.floor(tonumber(fields.min))) + meta:set_int("max",math.floor(tonumber(fields.max))) + meta:set_int("value",math.floor(tonumber(fields.min))) + meta:set_string("infotext",string.format("Current setting: %d\nLeft-click to turn down or right-click to turn up",math.floor(tonumber(fields.min)))) + meta:set_string("formspec","") + minetest.swap_node(pos, {name = "digistuff:wall_knob_configured", param2=minetest.get_node(pos).param2}) + else + minetest.chat_send_player(sender:get_player_name(),"Minimum and maximum must both be numbers, and maximum must be greater than minimum") + end + else + minetest.chat_send_player(sender:get_player_name(),"Please set a channel!") + end + end, + sounds = default and default.node_sound_stone_defaults(), +}) + +minetest.register_node("digistuff:wall_knob_configured", { + paramtype = "light", + paramtype2 = "facedir", + walkable = false, + sunlight_propagates = true, + digiline = + { + receptor = {}, + wire = { + rules = digistuff.button_get_rules, + }, + }, + drawtype = "mesh", + mesh = "digistuff_wall_knob.obj", + tiles = { + "digistuff_digibutton_sides.png", + "digistuff_digiline_full.png", + }, + selection_box = { + type = "fixed", + fixed = { + {-0.4,-0.4,0,0.4,0.4,0.5}, + }, + }, + groups = {dig_immediate = 2,digiline_receiver = 1,not_in_creative_inventory = 1,}, + description = "Digilines Wall Knob (configured state - you hacker you!)", + drop = "digistuff:wall_knob", + after_place_node = digistuff.place_receiver, + after_destruct = digistuff.remove_receiver, + on_rightclick = function(pos,node,player) + local meta = minetest.get_meta(pos) + local max = meta:get_int("max") + local value = meta:get_int("value") + local full = player:get_player_control().aux1 + value = full and max or math.min(max,value+1) + meta:set_int("value",value) + meta:set_string("infotext",string.format("Current setting: %d\nLeft-click to turn down or right-click to turn up",math.floor(tonumber(value)))) + digiline:receptor_send(pos,digistuff.button_get_rules(node),meta:get_string("channel"),value) + end, + on_punch = function(pos,node,player) + local meta = minetest.get_meta(pos) + local min = meta:get_int("min") + local value = meta:get_int("value") + local full = player:get_player_control().aux1 + value = full and min or math.max(min,value-1) + meta:set_int("value",value) + meta:set_string("infotext",string.format("Current setting: %d\nLeft-click to turn down or right-click to turn up",math.floor(tonumber(value)))) + digiline:receptor_send(pos,digistuff.button_get_rules(node),meta:get_string("channel"),value) + end, + sounds = default and default.node_sound_stone_defaults(), +}) diff --git a/digistuff/textures/digistuff_adwaita_edit-undo.png b/digistuff/textures/digistuff_adwaita_edit-undo.png new file mode 100644 index 0000000..ab01729 Binary files /dev/null and b/digistuff/textures/digistuff_adwaita_edit-undo.png differ diff --git a/digistuff/textures/digistuff_adwaita_emblem-default.png b/digistuff/textures/digistuff_adwaita_emblem-default.png new file mode 100644 index 0000000..4caba38 Binary files /dev/null and b/digistuff/textures/digistuff_adwaita_emblem-default.png differ diff --git a/digistuff/textures/digistuff_adwaita_go-down.png b/digistuff/textures/digistuff_adwaita_go-down.png new file mode 100644 index 0000000..53cedf0 Binary files /dev/null and b/digistuff/textures/digistuff_adwaita_go-down.png differ diff --git a/digistuff/textures/digistuff_adwaita_go-next.png b/digistuff/textures/digistuff_adwaita_go-next.png new file mode 100644 index 0000000..3b7d049 Binary files /dev/null and b/digistuff/textures/digistuff_adwaita_go-next.png differ diff --git a/digistuff/textures/digistuff_adwaita_go-previous.png b/digistuff/textures/digistuff_adwaita_go-previous.png new file mode 100644 index 0000000..0df44ef Binary files /dev/null and b/digistuff/textures/digistuff_adwaita_go-previous.png differ diff --git a/digistuff/textures/digistuff_adwaita_go-up.png b/digistuff/textures/digistuff_adwaita_go-up.png new file mode 100644 index 0000000..e13742a Binary files /dev/null and b/digistuff/textures/digistuff_adwaita_go-up.png differ diff --git a/digistuff/textures/digistuff_camera_back.png b/digistuff/textures/digistuff_camera_back.png new file mode 100644 index 0000000..61653a7 Binary files /dev/null and b/digistuff/textures/digistuff_camera_back.png differ diff --git a/digistuff/textures/digistuff_camera_bottom.png b/digistuff/textures/digistuff_camera_bottom.png new file mode 100644 index 0000000..72bce61 Binary files /dev/null and b/digistuff/textures/digistuff_camera_bottom.png differ diff --git a/digistuff/textures/digistuff_camera_front.png b/digistuff/textures/digistuff_camera_front.png new file mode 100644 index 0000000..4981c98 Binary files /dev/null and b/digistuff/textures/digistuff_camera_front.png differ diff --git a/digistuff/textures/digistuff_camera_left.png b/digistuff/textures/digistuff_camera_left.png new file mode 100644 index 0000000..0243ad1 Binary files /dev/null and b/digistuff/textures/digistuff_camera_left.png differ diff --git a/digistuff/textures/digistuff_camera_pole.png b/digistuff/textures/digistuff_camera_pole.png new file mode 100644 index 0000000..49a5ef8 Binary files /dev/null and b/digistuff/textures/digistuff_camera_pole.png differ diff --git a/digistuff/textures/digistuff_camera_right.png b/digistuff/textures/digistuff_camera_right.png new file mode 100644 index 0000000..5dca35f Binary files /dev/null and b/digistuff/textures/digistuff_camera_right.png differ diff --git a/digistuff/textures/digistuff_camera_top.png b/digistuff/textures/digistuff_camera_top.png new file mode 100644 index 0000000..fca75f8 Binary files /dev/null and b/digistuff/textures/digistuff_camera_top.png differ diff --git a/digistuff/textures/digistuff_digibutton_off.png b/digistuff/textures/digistuff_digibutton_off.png new file mode 100644 index 0000000..9e4506b Binary files /dev/null and b/digistuff/textures/digistuff_digibutton_off.png differ diff --git a/digistuff/textures/digistuff_digibutton_on.png b/digistuff/textures/digistuff_digibutton_on.png new file mode 100644 index 0000000..1466179 Binary files /dev/null and b/digistuff/textures/digistuff_digibutton_on.png differ diff --git a/digistuff/textures/digistuff_digibutton_sides.png b/digistuff/textures/digistuff_digibutton_sides.png new file mode 100644 index 0000000..9b79b57 Binary files /dev/null and b/digistuff/textures/digistuff_digibutton_sides.png differ diff --git a/digistuff/textures/digistuff_digidetector.png b/digistuff/textures/digistuff_digidetector.png new file mode 100644 index 0000000..42902f3 Binary files /dev/null and b/digistuff/textures/digistuff_digidetector.png differ diff --git a/digistuff/textures/digistuff_digiline_full.png b/digistuff/textures/digistuff_digiline_full.png new file mode 100644 index 0000000..cf5ce21 Binary files /dev/null and b/digistuff/textures/digistuff_digiline_full.png differ diff --git a/digistuff/textures/digistuff_digimese.png b/digistuff/textures/digistuff_digimese.png new file mode 100644 index 0000000..aa6b97b Binary files /dev/null and b/digistuff/textures/digistuff_digimese.png differ diff --git a/digistuff/textures/digistuff_insulated_edge.png b/digistuff/textures/digistuff_insulated_edge.png new file mode 100644 index 0000000..e1d77a6 Binary files /dev/null and b/digistuff/textures/digistuff_insulated_edge.png differ diff --git a/digistuff/textures/digistuff_insulated_full.png b/digistuff/textures/digistuff_insulated_full.png new file mode 100644 index 0000000..69cef5f Binary files /dev/null and b/digistuff/textures/digistuff_insulated_full.png differ diff --git a/digistuff/textures/digistuff_junctionbox.png b/digistuff/textures/digistuff_junctionbox.png new file mode 100644 index 0000000..b878bc7 Binary files /dev/null and b/digistuff/textures/digistuff_junctionbox.png differ diff --git a/digistuff/textures/digistuff_light.png b/digistuff/textures/digistuff_light.png new file mode 100644 index 0000000..d51e29b Binary files /dev/null and b/digistuff/textures/digistuff_light.png differ diff --git a/digistuff/textures/digistuff_nic_top.png b/digistuff/textures/digistuff_nic_top.png new file mode 100644 index 0000000..da49613 Binary files /dev/null and b/digistuff/textures/digistuff_nic_top.png differ diff --git a/digistuff/textures/digistuff_panel_back.png b/digistuff/textures/digistuff_panel_back.png new file mode 100644 index 0000000..b1a5344 Binary files /dev/null and b/digistuff/textures/digistuff_panel_back.png differ diff --git a/digistuff/textures/digistuff_panel_bg.png b/digistuff/textures/digistuff_panel_bg.png new file mode 100644 index 0000000..d357b1b Binary files /dev/null and b/digistuff/textures/digistuff_panel_bg.png differ diff --git a/digistuff/textures/digistuff_panel_front.png b/digistuff/textures/digistuff_panel_front.png new file mode 100644 index 0000000..d3083fa Binary files /dev/null and b/digistuff/textures/digistuff_panel_front.png differ diff --git a/digistuff/textures/digistuff_panel_locked.png b/digistuff/textures/digistuff_panel_locked.png new file mode 100644 index 0000000..5e523a6 Binary files /dev/null and b/digistuff/textures/digistuff_panel_locked.png differ diff --git a/digistuff/textures/digistuff_panel_unlocked.png b/digistuff/textures/digistuff_panel_unlocked.png new file mode 100644 index 0000000..c94f26c Binary files /dev/null and b/digistuff/textures/digistuff_panel_unlocked.png differ diff --git a/digistuff/textures/digistuff_piezo_sides.png b/digistuff/textures/digistuff_piezo_sides.png new file mode 100644 index 0000000..7d66228 Binary files /dev/null and b/digistuff/textures/digistuff_piezo_sides.png differ diff --git a/digistuff/textures/digistuff_piezo_top.png b/digistuff/textures/digistuff_piezo_top.png new file mode 100644 index 0000000..44f8e07 Binary files /dev/null and b/digistuff/textures/digistuff_piezo_top.png differ diff --git a/digistuff/textures/digistuff_piston_sides.png b/digistuff/textures/digistuff_piston_sides.png new file mode 100644 index 0000000..5475f50 Binary files /dev/null and b/digistuff/textures/digistuff_piston_sides.png differ diff --git a/digistuff/textures/digistuff_timer_top.png b/digistuff/textures/digistuff_timer_top.png new file mode 100644 index 0000000..63bf5c0 Binary files /dev/null and b/digistuff/textures/digistuff_timer_top.png differ diff --git a/digistuff/textures/digistuff_ts_bg.png b/digistuff/textures/digistuff_ts_bg.png new file mode 100644 index 0000000..87c54f2 Binary files /dev/null and b/digistuff/textures/digistuff_ts_bg.png differ diff --git a/digistuff/textures/digistuff_ts_front.png b/digistuff/textures/digistuff_ts_front.png new file mode 100644 index 0000000..bd4c326 Binary files /dev/null and b/digistuff/textures/digistuff_ts_front.png differ diff --git a/digistuff/timer.lua b/digistuff/timer.lua new file mode 100644 index 0000000..4755564 --- /dev/null +++ b/digistuff/timer.lua @@ -0,0 +1,80 @@ +minetest.register_node("digistuff:timer", { + description = "Digilines Timer", + groups = {cracky=3}, + on_construct = function(pos) + local meta = minetest.get_meta(pos) + meta:set_string("formspec","field[channel;Channel;${channel}") + end, + tiles = { + "digistuff_timer_top.png", + "jeija_microcontroller_bottom.png", + "jeija_microcontroller_sides.png", + "jeija_microcontroller_sides.png", + "jeija_microcontroller_sides.png", + "jeija_microcontroller_sides.png" + }, + inventory_image = "digistuff_timer_top.png", + drawtype = "nodebox", + selection_box = { + --From luacontroller + type = "fixed", + fixed = { -8/16, -8/16, -8/16, 8/16, -5/16, 8/16 }, + }, + node_box = { + --From Luacontroller + type = "fixed", + fixed = { + {-8/16, -8/16, -8/16, 8/16, -7/16, 8/16}, -- Bottom slab + {-5/16, -7/16, -5/16, 5/16, -6/16, 5/16}, -- Circuit board + {-3/16, -6/16, -3/16, 3/16, -5/16, 3/16}, -- IC + } + }, + paramtype = "light", + sunlight_propagates = true, + on_receive_fields = function(pos, formname, fields, sender) + local name = sender:get_player_name() + if minetest.is_protected(pos,name) and not minetest.check_player_privs(name,{protection_bypass=true}) then + minetest.record_protection_violation(pos,name) + return + end + local meta = minetest.get_meta(pos) + if fields.channel then meta:set_string("channel",fields.channel) end + end, + on_timer = function(pos) + local meta = minetest.get_meta(pos) + local channel = meta:get_string("channel") + digiline:receptor_send(pos,digiline.rules.default,channel,"done") + local loop = meta:get_int("loop") > 0 + return loop + end, + digiline = + { + receptor = {}, + effector = { + action = function(pos,node,channel,msg) + local meta = minetest.get_meta(pos) + if meta:get_string("channel") ~= channel then return end + if msg == "loop_on" then + meta:set_int("loop",1) + elseif msg == "loop_off" then + meta:set_int("loop",0) + else + local time = tonumber(msg) + if time and time >= 0.5 and time <= 3600 then + local timer = minetest.get_node_timer(pos) + timer:start(time) + end + end + end + }, + }, + +}) +minetest.register_craft({ + output = "digistuff:timer 2", + recipe = { + {"","mesecons:wire_00000000_off","default:coal_lump"}, + {"digilines:wire_std_00000000","basic_materials:ic","mesecons:wire_00000000_off"}, + {"","mesecons:wire_00000000_off","default:paper"}, + } +}) diff --git a/digistuff/touchscreen.lua b/digistuff/touchscreen.lua new file mode 100644 index 0000000..285590b --- /dev/null +++ b/digistuff/touchscreen.lua @@ -0,0 +1,305 @@ +digistuff.update_ts_formspec = function (pos) + local meta = minetest.get_meta(pos) + local fs = "size[10,8]".. + "background[0,0;0,0;digistuff_ts_bg.png;true]" + if meta:get_int("init") == 0 then + fs = fs.."field[3.75,3;3,1;channel;Channel;]".. + "button_exit[4,3.75;2,1;save;Save]" + else + local data = minetest.deserialize(meta:get_string("data")) or {} + for _,field in pairs(data) do + if field.type == "image" then + fs = fs..string.format("image[%s,%s;%s,%s;%s]",field.X,field.Y,field.W,field.H,field.texture_name) + elseif field.type == "field" then + fs = fs..string.format("field[%s,%s;%s,%s;%s;%s;%s]",field.X,field.Y,field.W,field.H,field.name,field.label,field.default) + elseif field.type == "pwdfield" then + fs = fs..string.format("pwdfield[%s,%s;%s,%s;%s;%s]",field.X,field.Y,field.W,field.H,field.name,field.label) + elseif field.type == "textarea" then + fs = fs..string.format("textarea[%s,%s;%s,%s;%s;%s;%s]",field.X,field.Y,field.W,field.H,field.name,field.label,field.default) + elseif field.type == "label" then + fs = fs..string.format("label[%s,%s;%s]",field.X,field.Y,field.label) + elseif field.type == "vertlabel" then + fs = fs..string.format("vertlabel[%s,%s;%s]",field.X,field.Y,field.label) + elseif field.type == "button" then + fs = fs..string.format("button[%s,%s;%s,%s;%s;%s]",field.X,field.Y,field.W,field.H,field.name,field.label) + elseif field.type == "button_exit" then + fs = fs..string.format("button_exit[%s,%s;%s,%s;%s;%s]",field.X,field.Y,field.W,field.H,field.name,field.label) + elseif field.type == "image_button" then + fs = fs..string.format("image_button[%s,%s;%s,%s;%s;%s;%s]",field.X,field.Y,field.W,field.H,field.image,field.name,field.label) + elseif field.type == "image_button_exit" then + fs = fs..string.format("image_button_exit[%s,%s;%s,%s;%s;%s;%s]",field.X,field.Y,field.W,field.H,field.image,field.name,field.label) + elseif field.type == "dropdown" then + local choices = "" + for _,i in ipairs(field.choices) do + if type(i) == "string" then + choices = choices..minetest.formspec_escape(i).."," + end + end + choices = string.sub(choices,1,-2) + fs = fs..string.format("dropdown[%s,%s;%s,%s;%s;%s;%s]",field.X,field.Y,field.W,field.H,field.name,choices,field.selected_id) + elseif field.type == "textlist" then + local listelements = "" + for _,i in ipairs(field.listelements) do + if type(i) == "string" then + listelements = listelements..minetest.formspec_escape(i).."," + end + end + listelements = string.sub(listelements,1,-2) + fs = fs..string.format("textlist[%s,%s;%s,%s;%s;%s;%s;%s]",field.X,field.Y,field.W,field.H,field.name,listelements,field.selected_id,field.transparent) + end + end + end + meta:set_string("formspec",fs) +end + +digistuff.ts_on_receive_fields = function (pos, formname, fields, sender) + local meta = minetest.get_meta(pos) + local setchan = meta:get_string("channel") + local playername = sender:get_player_name() + local locked = meta:get_int("locked") == 1 + local can_bypass = minetest.check_player_privs(playername,{protection_bypass=true}) + local is_protected = minetest.is_protected(pos,playername) + if (locked and is_protected) and not can_bypass then + minetest.record_protection_violation(pos,playername) + minetest.chat_send_player(playername,"You are not authorized to use this screen.") + return + end + local init = meta:get_int("init") == 1 + if not init then + if fields.save then + meta:set_string("channel",fields.channel) + meta:set_int("init",1) + digistuff.update_ts_formspec(pos) + end + else + fields.clicker = sender:get_player_name() + digiline:receptor_send(pos, digiline.rules.default, setchan, fields) + end +end + +digistuff.process_command = function (meta, data, msg) + if msg.command == "clear" then + data = {} + elseif msg.command == "addimage" then + for _,i in pairs({"X","Y","W","H"}) do + if not msg[i] or type(msg[i]) ~= "number" then + return + end + end + if not msg.texture_name or type(msg.texture_name) ~= "string" then + return + end + local field = {type="image",X=msg.X,Y=msg.Y,W=msg.W,H=msg.H,texture_name=minetest.formspec_escape(msg.texture_name)} + table.insert(data,field) + elseif msg.command == "addfield" then + for _,i in pairs({"X","Y","W","H"}) do + if not msg[i] or type(msg[i]) ~= "number" then + return + end + end + for _,i in pairs({"name","label","default"}) do + if not msg[i] or type(msg[i]) ~= "string" then + return + end + end + local field = {type="field",X=msg.X,Y=msg.Y,W=msg.W,H=msg.H,name=minetest.formspec_escape(msg.name),label=minetest.formspec_escape(msg.label),default=minetest.formspec_escape(msg.default)} + table.insert(data,field) + elseif msg.command == "addpwdfield" then + for _,i in pairs({"X","Y","W","H"}) do + if not msg[i] or type(msg[i]) ~= "number" then + return + end + end + for _,i in pairs({"name","label"}) do + if not msg[i] or type(msg[i]) ~= "string" then + return + end + end + local field = {type="pwdfield",X=msg.X,Y=msg.Y,W=msg.W,H=msg.H,name=minetest.formspec_escape(msg.name),label=minetest.formspec_escape(msg.label)} + table.insert(data,field) + elseif msg.command == "addtextarea" then + for _,i in pairs({"X","Y","W","H"}) do + if not msg[i] or type(msg[i]) ~= "number" then + return + end + end + for _,i in pairs({"name","label","default"}) do + if not msg[i] or type(msg[i]) ~= "string" then + return + end + end + local field = {type="textarea",X=msg.X,Y=msg.Y,W=msg.W,H=msg.H,name=minetest.formspec_escape(msg.name),label=minetest.formspec_escape(msg.label),default=minetest.formspec_escape(msg.default)} + table.insert(data,field) + elseif msg.command == "addlabel" then + for _,i in pairs({"X","Y"}) do + if not msg[i] or type(msg[i]) ~= "number" then + return + end + end + if not msg.label or type(msg.label) ~= "string" then + return + end + local field = {type="label",X=msg.X,Y=msg.Y,label=minetest.formspec_escape(msg.label)} + table.insert(data,field) + elseif msg.command == "addvertlabel" then + for _,i in pairs({"X","Y"}) do + if not msg[i] or type(msg[i]) ~= "number" then + return + end + end + if not msg.label or type(msg.label) ~= "string" then + return + end + local field = {type="vertlabel",X=msg.X,Y=msg.Y,label=minetest.formspec_escape(msg.label)} + table.insert(data,field) + elseif msg.command == "addbutton" then + for _,i in pairs({"X","Y","W","H"}) do + if not msg[i] or type(msg[i]) ~= "number" then + return + end + end + for _,i in pairs({"name","label"}) do + if not msg[i] or type(msg[i]) ~= "string" then + return + end + end + local field = {type="button",X=msg.X,Y=msg.Y,W=msg.W,H=msg.H,name=minetest.formspec_escape(msg.name),label=minetest.formspec_escape(msg.label)} + table.insert(data,field) + elseif msg.command == "addbutton_exit" then + for _,i in pairs({"X","Y","W","H"}) do + if not msg[i] or type(msg[i]) ~= "number" then + return + end + end + for _,i in pairs({"name","label"}) do + if not msg[i] or type(msg[i]) ~= "string" then + return + end + end + local field = {type="button_exit",X=msg.X,Y=msg.Y,W=msg.W,H=msg.H,name=minetest.formspec_escape(msg.name),label=minetest.formspec_escape(msg.label)} + table.insert(data,field) + elseif msg.command == "addimage_button" then + for _,i in pairs({"X","Y","W","H"}) do + if not msg[i] or type(msg[i]) ~= "number" then + return + end + end + for _,i in pairs({"image","name","label"}) do + if not msg[i] or type(msg[i]) ~= "string" then + return + end + end + local field = {type="image_button",X=msg.X,Y=msg.Y,W=msg.W,H=msg.H,image=minetest.formspec_escape(msg.image),name=minetest.formspec_escape(msg.name),label=minetest.formspec_escape(msg.label)} + table.insert(data,field) + elseif msg.command == "addimage_button_exit" then + for _,i in pairs({"X","Y","W","H"}) do + if not msg[i] or type(msg[i]) ~= "number" then + return + end + end + for _,i in pairs({"image","name","label"}) do + if not msg[i] or type(msg[i]) ~= "string" then + return + end + end + local field = {type="image_button_exit",X=msg.X,Y=msg.Y,W=msg.W,H=msg.H,image=minetest.formspec_escape(msg.image),name=minetest.formspec_escape(msg.name),label=minetest.formspec_escape(msg.label)} + table.insert(data,field) + elseif msg.command == "adddropdown" then + for _,i in pairs({"X","Y","W","H","selected_id"}) do + if not msg[i] or type(msg[i]) ~= "number" then + return + end + end + if not msg.name or type(msg.name) ~= "string" then + return + end + if not msg.choices or type(msg.choices) ~= "table" or #msg.choices < 1 then + return + end + local field = {type="dropdown",X=msg.X,Y=msg.Y,W=msg.W,H=msg.H,name=msg.name,selected_id=msg.selected_id,choices=msg.choices} + table.insert(data,field) + elseif msg.command == "addtextlist" then + for _,i in pairs({"X","Y","W","H","selected_id"}) do + if not msg[i] or type(msg[i]) ~= "number" then + return + end + end + if not msg.name or type(msg.name) ~= "string" then + return + end + if not msg.listelements or type(msg.listelements) ~= "table" or #msg.listelements < 1 then + return + end + if not msg.transparent or type(msg.transparent) ~= "boolean" then + msg.transparent = false + end + local field = {type="textlist",X=msg.X,Y=msg.Y,W=msg.W,H=msg.H,name=msg.name,selected_id=msg.selected_id,listelements=msg.listelements,transparent=msg.transparent} + table.insert(data,field) + elseif msg.command == "lock" then + meta:set_int("locked",1) + elseif msg.command == "unlock" then + meta:set_int("locked",0) + end + return data +end + +digistuff.ts_on_digiline_receive = function (pos, node, channel, msg) + local meta = minetest.get_meta(pos) + local setchan = meta:get_string("channel") + if channel ~= setchan then return end + if type(msg) ~= "table" then return end + local data = minetest.deserialize(meta:get_string("data")) or {} + if msg.command then + data = digistuff.process_command(meta,data,msg) + else + for _,i in ipairs(msg) do + if i.command then + data = digistuff.process_command(meta,data,i) or data + end + end + end + meta:set_string("data",minetest.serialize(data)) + digistuff.update_ts_formspec(pos) +end + +minetest.register_node("digistuff:touchscreen", { + description = "Digilines Touchscreen", + groups = {cracky=3}, + on_construct = function(pos) + digistuff.update_ts_formspec(pos,true) + end, + drawtype = "nodebox", + tiles = { + "digistuff_panel_back.png", + "digistuff_panel_back.png", + "digistuff_panel_back.png", + "digistuff_panel_back.png", + "digistuff_panel_back.png", + "digistuff_ts_front.png" + }, + paramtype = "light", + paramtype2 = "facedir", + node_box = { + type = "fixed", + fixed = { + { -0.5, -0.5, 0.4, 0.5, 0.5, 0.5 } + } + }, + on_receive_fields = digistuff.ts_on_receive_fields, + digiline = + { + receptor = {}, + effector = { + action = digistuff.ts_on_digiline_receive + }, + }, +}) + +minetest.register_craft({ + output = "digistuff:touchscreen", + recipe = { + {"mesecons_luacontroller:luacontroller0000","default:glass","default:glass"}, + {"default:glass","digilines:lcd","default:glass"}, + {"default:glass","default:glass","default:glass"} + } +}) diff --git a/digiterms/CC-BY-SA.txt b/digiterms/CC-BY-SA.txt new file mode 100644 index 0000000..a2bbf13 --- /dev/null +++ b/digiterms/CC-BY-SA.txt @@ -0,0 +1,3 @@ +This work is licensed under the Creative Commons Attribution-ShareAlike 3.0 Unported License. To view a copy of this license, visit http://creativecommons.org/licenses/by-sa/3.0/ or send a letter to Creative Commons, PO Box 1866, Mountain View, CA 94042, USA. + + diff --git a/digiterms/LICENSE.txt b/digiterms/LICENSE.txt new file mode 100644 index 0000000..341c30b --- /dev/null +++ b/digiterms/LICENSE.txt @@ -0,0 +1,166 @@ + GNU LESSER GENERAL PUBLIC LICENSE + Version 3, 29 June 2007 + + Copyright (C) 2007 Free Software Foundation, Inc. + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + + This version of the GNU Lesser General Public License incorporates +the terms and conditions of version 3 of the GNU General Public +License, supplemented by the additional permissions listed below. + + 0. Additional Definitions. + + As used herein, "this License" refers to version 3 of the GNU Lesser +General Public License, and the "GNU GPL" refers to version 3 of the GNU +General Public License. + + "The Library" refers to a covered work governed by this License, +other than an Application or a Combined Work as defined below. + + An "Application" is any work that makes use of an interface provided +by the Library, but which is not otherwise based on the Library. +Defining a subclass of a class defined by the Library is deemed a mode +of using an interface provided by the Library. + + A "Combined Work" is a work produced by combining or linking an +Application with the Library. The particular version of the Library +with which the Combined Work was made is also called the "Linked +Version". + + The "Minimal Corresponding Source" for a Combined Work means the +Corresponding Source for the Combined Work, excluding any source code +for portions of the Combined Work that, considered in isolation, are +based on the Application, and not on the Linked Version. + + The "Corresponding Application Code" for a Combined Work means the +object code and/or source code for the Application, including any data +and utility programs needed for reproducing the Combined Work from the +Application, but excluding the System Libraries of the Combined Work. + + 1. Exception to Section 3 of the GNU GPL. + + You may convey a covered work under sections 3 and 4 of this License +without being bound by section 3 of the GNU GPL. + + 2. Conveying Modified Versions. + + If you modify a copy of the Library, and, in your modifications, a +facility refers to a function or data to be supplied by an Application +that uses the facility (other than as an argument passed when the +facility is invoked), then you may convey a copy of the modified +version: + + a) under this License, provided that you make a good faith effort to + ensure that, in the event an Application does not supply the + function or data, the facility still operates, and performs + whatever part of its purpose remains meaningful, or + + b) under the GNU GPL, with none of the additional permissions of + this License applicable to that copy. + + 3. Object Code Incorporating Material from Library Header Files. + + The object code form of an Application may incorporate material from +a header file that is part of the Library. You may convey such object +code under terms of your choice, provided that, if the incorporated +material is not limited to numerical parameters, data structure +layouts and accessors, or small macros, inline functions and templates +(ten or fewer lines in length), you do both of the following: + + a) Give prominent notice with each copy of the object code that the + Library is used in it and that the Library and its use are + covered by this License. + + b) Accompany the object code with a copy of the GNU GPL and this license + document. + + 4. Combined Works. + + You may convey a Combined Work under terms of your choice that, +taken together, effectively do not restrict modification of the +portions of the Library contained in the Combined Work and reverse +engineering for debugging such modifications, if you also do each of +the following: + + a) Give prominent notice with each copy of the Combined Work that + the Library is used in it and that the Library and its use are + covered by this License. + + b) Accompany the Combined Work with a copy of the GNU GPL and this license + document. + + c) For a Combined Work that displays copyright notices during + execution, include the copyright notice for the Library among + these notices, as well as a reference directing the user to the + copies of the GNU GPL and this license document. + + d) Do one of the following: + + 0) Convey the Minimal Corresponding Source under the terms of this + License, and the Corresponding Application Code in a form + suitable for, and under terms that permit, the user to + recombine or relink the Application with a modified version of + the Linked Version to produce a modified Combined Work, in the + manner specified by section 6 of the GNU GPL for conveying + Corresponding Source. + + 1) Use a suitable shared library mechanism for linking with the + Library. A suitable mechanism is one that (a) uses at run time + a copy of the Library already present on the user's computer + system, and (b) will operate properly with a modified version + of the Library that is interface-compatible with the Linked + Version. + + e) Provide Installation Information, but only if you would otherwise + be required to provide such information under section 6 of the + GNU GPL, and only to the extent that such information is + necessary to install and execute a modified version of the + Combined Work produced by recombining or relinking the + Application with a modified version of the Linked Version. (If + you use option 4d0, the Installation Information must accompany + the Minimal Corresponding Source and Corresponding Application + Code. If you use option 4d1, you must provide the Installation + Information in the manner specified by section 6 of the GNU GPL + for conveying Corresponding Source.) + + 5. Combined Libraries. + + You may place library facilities that are a work based on the +Library side by side in a single library together with other library +facilities that are not Applications and are not covered by this +License, and convey such a combined library under terms of your +choice, if you do both of the following: + + a) Accompany the combined library with a copy of the same work based + on the Library, uncombined with any other library facilities, + conveyed under the terms of this License. + + b) Give prominent notice with the combined library that part of it + is a work based on the Library, and explaining where to find the + accompanying uncombined form of the same work. + + 6. Revised Versions of the GNU Lesser General Public License. + + The Free Software Foundation may publish revised and/or new versions +of the GNU Lesser General Public License from time to time. Such new +versions will be similar in spirit to the present version, but may +differ in detail to address new problems or concerns. + + Each version is given a distinguishing version number. If the +Library as you received it specifies that a certain numbered version +of the GNU Lesser General Public License "or any later version" +applies to it, you have the option of following the terms and +conditions either of that published version or of any later version +published by the Free Software Foundation. If the Library as you +received it does not specify a version number of the GNU Lesser +General Public License, you may choose any version of the GNU Lesser +General Public License ever published by the Free Software Foundation. + + If the Library as you received it specifies that a proxy can decide +whether future versions of the GNU Lesser General Public License shall +apply, that proxy's public statement of acceptance of any version is +permanent authorization for you to choose that version for the +Library. + diff --git a/digiterms/README.md b/digiterms/README.md new file mode 100644 index 0000000..59cee68 --- /dev/null +++ b/digiterms/README.md @@ -0,0 +1,31 @@ +# Digiterms - Digilines Terminals +Version 0.2 + +Digilines monitors and keyboards mod for Minetest using Display API / Font API. + +![Presentation image of Digiterms](screenshot.png) + +Monitors display text received on their digiline channel and works like digilines lcd monitor. + +Keyboards send text ofer their digiline channel. In protected areas, keyboard can be set to "Public" to be usable by anybody. Else, only players granted rights on the area can use the keyboard. + +Craft recipes depend on installed mods, please refer to craft guide in game. + +If `scifi_nodes` mod is enabled, scifi monitors can be turned into digiterms by crafting scifi monitor with a digiline (some texture are derivated from D00Med mod). + +**Version**: 0.1 + +**License**: LGPL v3 for the code, CC-BY-SA for the textures. + +**Dependancies**: display_api, font_api, digilines, dye, default + +**Optional dependancies**:xpane, scifi_nodes, basic_materials, homedecor, mesecons_microcontroller, mesecons_luacontroller, mesecons_materials + +## Changelog + +### 2018-12-13 (Version 0.2) +- Keyboards (Beige, white and black). +- Third cathodic monitor, the black one. +### 2018-12-09 (Version 0.1) +- Cathodic (2) and LCD monitors and corresponding craft recipes. +- Scifi nodes monitors : tallscreen, widescreen, glassscreen and keysmonitor diff --git a/digiterms/copyright.txt b/digiterms/copyright.txt new file mode 100644 index 0000000..fe4c728 --- /dev/null +++ b/digiterms/copyright.txt @@ -0,0 +1,3 @@ +Font by Nate Halley (Nate547 (total FontGeek)) +Textures named digiterms_scifi_*.png are derivated from D00Med work +Other textures and code by Pierre-Yves Rollo (pyrollo) diff --git a/digiterms/crafts.lua b/digiterms/crafts.lua new file mode 100644 index 0000000..7a058f3 --- /dev/null +++ b/digiterms/crafts.lua @@ -0,0 +1,145 @@ +--[[ + digiterms mod for Minetest - Digilines monitors using Display API / Font API + (c) Pierre-Yves Rollo + + This file is part of digiterms. + + signs is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + signs 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 General Public License for more details. + + You should have received a copy of the GNU General Public License + along with signs. If not, see . +--]] + +local function material_fallback(list) + for _, material in ipairs(list) do + if minetest.registered_items[material] then + return material + end + end +end + +local body = material_fallback({ + 'homedecor:plastic_sheeting', + 'default:steel_ingot', +}) + +local glass = material_fallback({ + 'xpanes:pane_flat', + 'default:glass', +}) + +local electronic = material_fallback({ + 'mesecons_microcontroller:microcontroller0000', + 'mesecons_luacontroller:luacontroller0000', + 'default:copper_ingot', +}) + +local button = material_fallback({ + 'mesecons_button:button_off', + 'default:stone', +}) + +local wire = 'digilines:wire_std_00000000' + +minetest.register_craft({ + output = "digiterms:lcd_monitor 1", + recipe = { + {body, electronic, ''}, + {glass, material_fallback({'mesecons_materials:silicon', 'dye:black'}), ''}, + {body, wire, ''} + } +}) + +minetest.register_craft({ + output = "digiterms:cathodic_beige_monitor", + recipe = { + {body, body, 'dye:yellow'}, + {glass, 'dye:orange', electronic}, + {body, body, wire} + } +}) + +minetest.register_craft({ + output = "digiterms:cathodic_white_monitor", + recipe = { + {body, body, 'dye:white'}, + {glass, 'dye:green', electronic}, + {body, body, wire} + } +}) + +minetest.register_craft({ + output = "digiterms:cathodic_black_monitor", + recipe = { + {body, body, 'dye:black'}, + {glass, 'dye:white', electronic}, + {body, body, wire} + } +}) + + +minetest.register_craft({ + output = "digiterms:beige_keyboard", + recipe = { + {button, button, 'dye:yellow'}, + {body, body, wire} + } +}) + +minetest.register_craft({ + output = "digiterms:white_keyboard", + recipe = { + {button, button, 'dye:white'}, + {body, body, wire} + } +}) + +minetest.register_craft({ + output = "digiterms:black_keyboard", + recipe = { + {button, button, 'dye:black'}, + {body, body, wire} + } +}) + + +-- scifi monitors + +minetest.register_craft({ + output = "digiterms:scifi_glassscreen", + recipe = { + {glass, glass, glass}, + {glass, "digiterms:lcd_monitor", glass}, + } +}) + +minetest.register_craft({ + output = "digiterms:scifi_widescreen", + recipe = { + {glass, glass, glass}, + {body, "digiterms:lcd_monitor", body}, + } +}) + +minetest.register_craft({ + output = "digiterms:scifi_tallscreen", + recipe = { + {body, glass, ''}, + {"digiterms:lcd_monitor", glass, ''}, + {body, glass, ''}, + } +}) + +minetest.register_craft({ + output = "digiterms:scifi_keysmonitor", + type = "shapeless", + recipe = { "digiterms:lcd_monitor", "digiterms:black_keyboard" } +}) diff --git a/digiterms/depends.txt b/digiterms/depends.txt new file mode 100644 index 0000000..82b86ca --- /dev/null +++ b/digiterms/depends.txt @@ -0,0 +1,12 @@ +display_api +font_api +digilines +dye +default +xpane? +basic_materials? +homedecor? +mesecons_microcontroller? +mesecons_luacontroller? +mesecons_button? +mesecons_materials? diff --git a/digiterms/font_mozart.lua b/digiterms/font_mozart.lua new file mode 100644 index 0000000..5e31dd4 --- /dev/null +++ b/digiterms/font_mozart.lua @@ -0,0 +1,16 @@ +--[[ + + generated by make_font_lua.sh Wed Dec 4 10:45:54 EET 2019 + +--]] + +font_api.register_font( + 'mozart', + { + height = 14, + widths = { + [0]=7, [32]=7, [33]=7, [34]=7, [35]=7, [36]=7, [37]=7, [38]=7, [39]=7, [40]=7, [41]=7, [42]=7, [43]=7, [44]=7, [45]=7, [46]=7, [47]=7, [48]=7, [49]=7, [50]=7, [51]=7, [52]=7, [53]=7, [54]=7, [55]=7, [56]=7, [57]=7, [58]=7, [59]=7, [60]=7, [61]=7, [62]=7, [63]=7, [64]=7, [65]=7, [66]=7, [67]=7, [68]=7, [69]=7, [70]=7, [71]=7, [72]=7, [73]=7, [74]=7, [75]=7, [76]=7, [77]=7, [78]=7, [79]=7, [80]=7, [81]=7, [82]=7, [83]=7, [84]=7, [85]=7, [86]=7, [87]=7, [88]=7, [89]=7, [90]=7, [91]=7, [92]=7, [93]=7, [94]=7, [95]=7, [96]=7, [97]=7, [98]=7, [99]=7, [100]=7, [101]=7, [102]=7, [103]=7, [104]=7, [105]=7, [106]=7, [107]=7, [108]=7, [109]=7, [110]=7, [111]=7, [112]=7, [113]=7, [114]=7, [115]=7, [116]=7, [117]=7, [118]=7, [119]=7, [120]=7, [121]=7, [122]=7, [123]=7, [124]=7, [125]=7, [126]=7, [160]=7, [161]=7, [162]=7, [163]=7, [164]=7, [165]=7, [166]=7, [167]=7, [168]=7, [169]=7, [170]=7, [171]=7, [172]=7, [174]=7, [175]=7, [176]=7, [177]=7, [178]=7, [179]=7, [180]=7, [181]=7, [182]=7, [183]=7, [184]=7, [185]=7, [186]=7, [187]=7, [188]=7, [189]=7, [190]=7, [191]=7, [192]=7, [193]=7, [194]=7, [195]=7, [196]=7, [197]=7, [198]=7, [199]=7, [200]=7, [201]=7, [202]=7, [203]=7, [204]=7, [205]=7, [206]=7, [207]=7, [208]=7, [209]=7, [210]=7, [211]=7, [212]=7, [213]=7, [214]=7, [215]=7, [216]=7, [217]=7, [218]=7, [219]=7, [220]=7, [221]=7, [222]=7, [223]=7, [224]=7, [225]=7, [226]=7, [227]=7, [228]=7, [229]=7, [230]=7, [231]=7, [232]=7, [233]=7, [234]=7, [235]=7, [236]=7, [237]=7, [238]=7, [239]=7, [240]=7, [241]=7, [242]=7, [243]=7, [244]=7, [245]=7, [246]=7, [247]=7, [248]=7, [249]=7, [250]=7, [251]=7, [252]=7, [253]=7, [254]=7, [255]=7, [366]=7, [367]=7, [376]=7, [884]=7, [885]=7, [890]=7, [894]=7, [913]=7, [914]=7, [915]=7, [916]=7, [917]=7, [918]=7, [919]=7, [920]=7, [921]=7, [922]=7, [923]=7, [924]=7, [925]=7, [926]=7, [927]=7, [928]=7, [929]=7, [931]=7, [932]=7, [933]=7, [934]=7, [935]=7, [936]=7, [937]=7, [945]=7, [946]=7, [947]=7, [948]=7, [949]=7, [950]=7, [951]=7, [952]=7, [953]=7, [954]=7, [955]=7, [956]=7, [957]=7, [958]=7, [959]=7, [960]=7, [961]=7, [962]=7, [963]=7, [964]=7, [965]=7, [966]=7, [967]=7, [968]=7, [969]=7, [1040]=7, [1041]=7, [1042]=7, [1043]=7, [1044]=7, [1045]=7, [1046]=7, [1047]=7, [1048]=7, [1049]=7, [1050]=7, [1051]=7, [1052]=7, [1053]=7, [1054]=7, [1055]=7, [1056]=7, [1057]=7, [1058]=7, [1059]=7, [1060]=7, [1061]=7, [1062]=7, [1063]=7, [1064]=7, [1065]=7, [1066]=7, [1067]=7, [1068]=7, [1069]=7, [1070]=7, [1071]=7, [1072]=7, [1073]=7, [1074]=7, [1075]=7, [1076]=7, [1077]=7, [1078]=7, [1079]=7, [1080]=7, [1081]=7, [1082]=7, [1083]=7, [1084]=7, [1085]=7, [1086]=7, [1087]=7, [1088]=7, [1089]=7, [1090]=7, [1091]=7, [1092]=7, [1093]=7, [1094]=7, [1095]=7, [1096]=7, [1097]=7, [1098]=7, [1099]=7, [1100]=7, [1101]=7, [1102]=7, [1103]=7, [8212]=7, [8216]=7, [8217]=7, [8218]=7, [8219]=7, [8220]=7, [8221]=7, [8222]=7, [8364]=7 + }, + } +); + diff --git a/digiterms/functions.lua b/digiterms/functions.lua new file mode 100644 index 0000000..1446486 --- /dev/null +++ b/digiterms/functions.lua @@ -0,0 +1,183 @@ +--[[ + digiterms mod for Minetest - Digiline monitors using Display API / Font API + (c) Pierre-Yves Rollo + + This file is part of digiterms. + + signs is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + signs 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 General Public License for more details. + + You should have received a copy of the GNU General Public License + along with signs. If not, see . +--]] + +local player_contexts = {} + +minetest.register_on_leaveplayer(function(player) + player_contexts[player:get_player_name()] = nil +end) + +function digiterms.get_player_context(name) + player_contexts[name] = player_contexts[name] or {} + return player_contexts[name] +end + +local function get_lines(pos) + local lines = {} + local meta = minetest.get_meta(pos) + local text = meta:get_string("display_text") + local pos = 1 + repeat + local found = text:find("\n", pos) or #text + 1 + lines[#lines+1] = text:sub(pos, found - 1) + pos = found + 1 + until (pos > (#text + 1)) + return lines +end + +local function set_lines(pos, lines) + local meta = minetest.get_meta(pos) + meta:set_string("display_text", table.concat(lines, "\n")) +end + +local function push_line(lines, line, maxlines) + for index = 1, (maxlines - 1) do + lines[index] = lines[index + 1] or "" + end + lines[maxlines] = line +end + +local function push_text(lines, text, maxlines, maxcolumns) + local pos = 1 + local column = 0 + local start = 1 + while pos <= #text do + local b = text:byte(pos) + column = column + 1 + if b == 0x0A then + push_line(lines, text:sub(start, pos - 1), maxlines) + start = pos + 1 + column = 0 + end + if column > maxcolumns then + push_line(lines, text:sub(start, pos - 1), maxlines) + start = pos + column = 1 + end + if b < 0x80 then pos = pos + 1 + elseif b >= 0xF0 then pos = pos + 4 + elseif b >= 0xE0 then pos = pos + 3 + elseif b >= 0xC2 then pos = pos + 2 + else pos = pos + 1 end-- Invalid char + end + if pos - 1 >= start then + push_line(lines, text:sub(start, pos - 1), maxlines) + end +end + +function digiterms.push_text_on_screen(pos, text) + local def = minetest.registered_nodes[minetest.get_node(pos).name] + if def.display_entities and def.display_entities["digiterms:screen"] then + def = def.display_entities["digiterms:screen"] + if def.lines and def.columns then + local lines = get_lines(pos) + push_text(lines, text, def.lines, def.columns) + set_lines(pos, lines) + display_api.update_entities(pos) + else + minetest.log("warning", "[digiterms] At "..minetest.pos_to_string(pos) + ..", digiterms:screen entity should have 'lines' and 'columns' attribures.") + end + end +end + +local node_def_defaults = { + groups = { display_api = 1}, + on_place = display_api.on_place, + on_destruct = display_api.on_destruct, + on_rotate = display_api.on_rotate, + on_punch = display_api.update_entities, + on_construct = function(pos) + minetest.get_meta(pos):set_string("formspec", + "field[channel;Channel;${channel}]") + display_api.on_construct(pos) + end, + on_receive_fields = function(pos, formname, fields, player) + local name = player:get_player_name() + if minetest.is_protected(pos, name) then + minetest.record_protection_violation(pos, name) + return + end + + if (fields.channel) then + minetest.get_meta(pos):set_string("channel", fields.channel) + end + end, + digiline = { + wire = { use_autoconnect = false }, + receptor = {}, + effector = { + action = function(pos, _, channel, msg) + if channel ~= minetest.get_meta(pos):get_string("channel") then + return + end + + if type(msg) ~= "string" then + return + end + + digiterms.push_text_on_screen(pos, msg) + end, + }, + }, +} + +function superpose_table(base, exceptions) + local result = table.copy(base) + for key, value in pairs(exceptions) do + if type(value) == 'table' then + result[key] = superpose_table(result[key] or {}, value) + else + result[key] = value + end + end + return result +end + +function digiterms.register_monitor( + nodename, nodedef, nodedefon, nodedefoff) + local ndef = superpose_table(node_def_defaults, nodedef) + if nodedefon and nodedefoff then + ndef.on_punch = function(pos, node) + display_api.on_destruct(pos) + local meta = minetest.get_meta(pos) + meta:set_string("display_text", nil) + minetest.swap_node(pos, {name = nodename..'_off', + param = node.param, param2 = node.param2 }) + end + minetest.register_node(nodename, superpose_table(ndef, nodedefon)) + + -- Register the corresponding Off node + if ndef.display_entities then + ndef.display_entities["digiterms:screen"] = nil + end + ndef.drop = nodename + ndef.groups.not_in_creative_inventory = 1 + ndef.on_destruct = nil + ndef.on_punch = function(pos, node) + minetest.swap_node(pos, {name = nodename, -- Stange but it works + param = node.param, param2 = node.param2 }) + display_api.update_entities(pos) + end + minetest.register_node(nodename..'_off', superpose_table(ndef, nodedefoff)) + else + minetest.register_node(nodename, ndef) + end +end diff --git a/digiterms/init.lua b/digiterms/init.lua new file mode 100644 index 0000000..671ebcd --- /dev/null +++ b/digiterms/init.lua @@ -0,0 +1,33 @@ +--[[ + digiterms mod for Minetest - Digiline monitors using Display API / Font API + (c) Pierre-Yves Rollo + + This file is part of digiterms. + + signs is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + signs 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 General Public License for more details. + + You should have received a copy of the GNU General Public License + along with signs. If not, see . +--]] + +digiterms = {} +digiterms.name = minetest.get_current_modname() +digiterms.path = minetest.get_modpath(digiterms.name) +digiterms.font = "mozart" + +display_api.register_display_entity("digiterms:screen") + +dofile(digiterms.path.."/font_mozart.lua") +dofile(digiterms.path.."/functions.lua") +dofile(digiterms.path.."/nodes.lua") +dofile(digiterms.path.."/scifi_nodes.lua") +dofile(digiterms.path.."/crafts.lua") + diff --git a/digiterms/nodes.lua b/digiterms/nodes.lua new file mode 100644 index 0000000..599ccb2 --- /dev/null +++ b/digiterms/nodes.lua @@ -0,0 +1,320 @@ +--[[ + digiterms mod for Minetest - Digilines monitors using Display API / Font API + (c) Pierre-Yves Rollo + + This file is part of digiterms. + + signs is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + signs 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 General Public License for more details. + + You should have received a copy of the GNU General Public License + along with signs. If not, see . +--]] + +local cathodic_node_box = { + type = "fixed", + fixed = { + {-8/16, 8/16, -8/16, 8/16, 7/16, -7/16}, + {-8/16, -8/16, -8/16, 8/16, -5/16, -7/16}, + {-8/16, 7/16, -8/16, -7/16, -5/16, -7/16}, + {7/16, 7/16, -8/16, 8/16, -5/16, -7/16}, + {-8/16, -8/16, -7/16, 8/16, 8/16, 1/16}, + {-6/16, 5/16, 1/16, 6/16, -8/16, 8/16} + } +} +local cathodic_collision_box = { + type = "fixed", + fixed = { + {-8/16, -8/16, -8/16, 8/16, 8/16, 1/16}, + {-6/16, 5/16, 1/16, 6/16, -8/16, 8/16} + } +} + +local lcd_node_box = { + type = "fixed", + fixed = { + {-7/16, 8/16, 13/32, 7/16, 7/16, 7/16}, + {-7/16, -13/32, 13/32, 7/16, -8/16, 7/16}, + {-8/16, 8/16, 13/32, -7/16, -8/16, 7/16}, + {7/16, 8/16, 13/32, 8/16, -8/16, 7/16}, + {-8/16, -8/16, 7/16, 8/16, 8/16, 8/16}, + } +} + +local lcd_collision_box = { + type = "fixed", + fixed = { + {-8/16, -8/16, 13/32, 8/16, 8/16, 8/16}, + } +} + +digiterms.register_monitor('digiterms:lcd_monitor', { + description = "LCD monitor", + paramtype = "light", + paramtype2 = "facedir", + sunlight_propagates = false, + drawtype = "nodebox", + groups = {oddly_breakable_by_hand = 3}, + node_box = lcd_node_box, + collision_box = lcd_collision_box, + selection_box = lcd_collision_box, + display_entities = { + ["digiterms:screen"] = { + on_display_update = font_api.on_display_update, + depth = 7/16 - display_api.entity_spacing, + top = -1/128, right = 1/128, + size = { x = 12/16, y = 12/16 }, + columns = 12, lines = 6, + color = "#203020", font_name = digiterms.font, halign="left", valing="top", + }, + }, +}, { + tiles = { "digiterms_lcd_sides.png", "digiterms_lcd_sides.png", + "digiterms_lcd_sides.png", "digiterms_lcd_sides.png", + "digiterms_lcd_back.png", "digiterms_lcd_front.png" }, +}, { + tiles = { "digiterms_lcd_sides.png", "digiterms_lcd_sides.png", + "digiterms_lcd_sides.png", "digiterms_lcd_sides.png", + "digiterms_lcd_back.png", "digiterms_lcd_front_off.png" }, +}) +digiterms.register_monitor('digiterms:cathodic_beige_monitor', { + description = "Beige cathodic monitor with amber screen", + paramtype = "light", + paramtype2 = "facedir", + sunlight_propagates = false, + drawtype = "nodebox", + groups = {oddly_breakable_by_hand = 3}, + node_box = cathodic_node_box, + collision_box = cathodic_collision_box, + selection_box = cathodic_collision_box, + display_entities = { + ["digiterms:screen"] = { + on_display_update = font_api.on_display_update, + depth = -7/16 - display_api.entity_spacing, + top = -1/16, + size = { x = 23/32, y = 10/16 }, + columns = 20, lines = 6, + color = "#FFA000", font_name = digiterms.font, halign="left", valing="top", + }, + }, +}, { + tiles = { "digiterms_beige_top.png", "digiterms_beige_bottom.png", + "digiterms_beige_sides.png", "digiterms_beige_sides.png^[transformFX]", + "digiterms_beige_back.png", "digiterms_beige_front.png",}, +}, { + tiles = { "digiterms_beige_top.png", "digiterms_beige_bottom.png", + "digiterms_beige_sides.png", "digiterms_beige_sides.png^[transformFX]", + "digiterms_beige_back.png", "digiterms_beige_front_off.png",}, +}) +minetest.register_alias('digiterms:cathodic_amber_monitor', 'digiterms:cathodic_beige_monitor') +minetest.register_alias('digiterms:cathodic_amber_monitor_off', 'digiterms:cathodic_beige_monitor_off') + +digiterms.register_monitor('digiterms:cathodic_white_monitor', { + description = "White cathodic monitor with green screen", + paramtype = "light", + paramtype2 = "facedir", + sunlight_propagates = false, + drawtype = "nodebox", + groups = {oddly_breakable_by_hand = 3}, + node_box = cathodic_node_box, + collision_box = cathodic_collision_box, + selection_box = cathodic_collision_box, + display_entities = { + ["digiterms:screen"] = { + on_display_update = font_api.on_display_update, + depth = -7/16 - display_api.entity_spacing, + top = -1/16, + size = { x = 23/32, y = 10/16 }, + columns = 20, lines = 6, + color = "#00FF00", font_name = digiterms.font, halign="left", valing="top", + }, + }, +}, { + tiles = { "digiterms_white_top.png", "digiterms_white_bottom.png", + "digiterms_white_sides.png", "digiterms_white_sides.png^[transformFX]", + "digiterms_white_back.png", "digiterms_white_front.png",}, +}, { + tiles = { "digiterms_white_top.png", "digiterms_white_bottom.png", + "digiterms_white_sides.png", "digiterms_white_sides.png^[transformFX]", + "digiterms_white_back.png", "digiterms_white_front_off.png",}, +}) +minetest.register_alias('digiterms:cathodic_green_monitor', 'digiterms:cathodic_white_monitor') +minetest.register_alias('digiterms:cathodic_green_monitor_off', 'digiterms:cathodic_white_monitor_off') + +digiterms.register_monitor('digiterms:cathodic_black_monitor', { + description = "Black cathodic monitor with white screen", + paramtype = "light", + paramtype2 = "facedir", + sunlight_propagates = false, + drawtype = "nodebox", + groups = {oddly_breakable_by_hand = 3}, + node_box = cathodic_node_box, + collision_box = cathodic_collision_box, + selection_box = cathodic_collision_box, + display_entities = { + ["digiterms:screen"] = { + on_display_update = font_api.on_display_update, + depth = -7/16 - display_api.entity_spacing, + top = -1/16, + size = { x = 23/32, y = 10/16 }, + columns = 20, lines = 6, + color = "#D0D0D0", font_name = digiterms.font, halign="left", valing="top", + }, + }, +}, { + tiles = { "digiterms_black_top.png", "digiterms_black_bottom.png", + "digiterms_black_sides.png", "digiterms_black_sides.png^[transformFX]", + "digiterms_black_back.png", "digiterms_black_front.png",}, +}, { + tiles = { "digiterms_black_top.png", "digiterms_black_bottom.png", + "digiterms_black_sides.png", "digiterms_black_sides.png^[transformFX]", + "digiterms_black_back.png", "digiterms_black_front_off.png",}, +}) + +-- KEYBOARDS + +local keyboard_on_rightclick = function(pos, node, player, itemstack, pointed_thing) + if not minetest.is_player(player) then + return + end + local name = player:get_player_name() + local context = digiterms.get_player_context(name) + context.formname = 'digiterms:keyboard' + context.pos = pos + + local owned = not minetest.is_protected(context.pos, name) + local protected = minetest.is_protected(context.pos, '') + local meta = minetest.get_meta(pos) + local channel = meta:get_string('channel') + local public = meta:get_string('public') + + if owned then + local fs = "size[8,5]".. + default.gui_bg..default.gui_bg_img..default.gui_slots.. + "field[1,1;3,1;channel;Channel;"..channel.."]".. + "field[1,3;6.5,1;text;Type text:;]".. + "field_close_on_enter[text;true]button_exit[2.5,4;3,1;send;Send]" + if protected then + fs = fs.."checkbox[4,0.6;public;Public keyboard;"..public.."]" + end + minetest.show_formspec(name, context.formname, fs) + else + if public == 'true' and channel ~= '' then + minetest.show_formspec(name, context.formname, "size[8,3]".. + default.gui_bg..default.gui_bg_img..default.gui_slots.. + "field[1,1;6.5,1;text;Type text:;]".. + "field_close_on_enter[text;true]button_exit[2.5,2;3,1;send;Send]") + end + end +end + +minetest.register_on_player_receive_fields(function(player, formname, fields) + if formname ~= 'digiterms:keyboard' or not minetest.is_player(player) then + return + end + local name = player:get_player_name() + local context = digiterms.get_player_context(name) + if context.formname ~= formname then + return + end + + local owned = not minetest.is_protected(context.pos, name) + local protected = minetest.is_protected(context.pos, '') + local meta = minetest.get_meta(context.pos) + if owned then + if fields.channel ~= nil and fields.channel ~= '' then + meta:set_string("channel", fields.channel) + end + if fields.public ~= nil and protected then + meta:set_string("public", fields.public) + end + end + + local channel = meta:get_string("channel") + + if fields.text and channel ~= '' and + (owned or meta:get_string("public") == 'true') then + digiline:receptor_send(context.pos, digiline.rules.default, channel, fields.text) + end + return true + end) + + +minetest.register_node('digiterms:beige_keyboard', { + description = "Beige keyboard", + paramtype = "light", + paramtype2 = "facedir", + sunlight_propagates = false, + tiles = { "digiterms_beige_keyboard_top.png", "digiterms_beige_keyboard_bottom.png", + "digiterms_beige_keyboard_sides.png", "digiterms_beige_keyboard_sides.png", + "digiterms_beige_keyboard_sides.png", "digiterms_beige_keyboard_sides.png",}, + drawtype = "nodebox", + groups = {oddly_breakable_by_hand = 3}, + node_box = { + type = "fixed", + fixed = { + {-8/16, -8/16, -1/16, 8/16, -6/16, 7/16}, + {-7/16, -12/32, 0, 7/16, -11/32, 6/16}, + } + }, + on_rightclick = keyboard_on_rightclick, + digiline = + { + receptor = {} + }, +}) + +minetest.register_node('digiterms:white_keyboard', { + description = "White keyboard", + paramtype = "light", + paramtype2 = "facedir", + sunlight_propagates = false, + tiles = { "digiterms_white_keyboard_top.png", "digiterms_white_keyboard_bottom.png", + "digiterms_white_keyboard_sides.png", "digiterms_white_keyboard_sides.png", + "digiterms_white_keyboard_sides.png", "digiterms_white_keyboard_sides.png",}, + drawtype = "nodebox", + groups = {oddly_breakable_by_hand = 3}, + node_box = { + type = "fixed", + fixed = { + {-8/16, -8/16, -1/16, 8/16, -6/16, 7/16}, + {-7/16, -12/32, 0, 7/16, -11/32, 6/16}, + } + }, + on_rightclick = keyboard_on_rightclick, + digiline = + { + receptor = {} + }, +}) + +minetest.register_node('digiterms:black_keyboard', { + description = "Black keyboard", + paramtype = "light", + paramtype2 = "facedir", + sunlight_propagates = false, + tiles = { "digiterms_black_keyboard_top.png", "digiterms_black_keyboard_bottom.png", + "digiterms_black_keyboard_sides.png", "digiterms_black_keyboard_sides.png", + "digiterms_black_keyboard_sides.png", "digiterms_black_keyboard_sides.png",}, + drawtype = "nodebox", + groups = {oddly_breakable_by_hand = 3}, + node_box = { + type = "fixed", + fixed = { + {-8/16, -8/16, -1/16, 8/16, -6/16, 7/16}, + {-7/16, -12/32, 0, 7/16, -11/32, 6/16}, + } + }, + on_rightclick = keyboard_on_rightclick, + digiline = + { + receptor = {} + }, +}) diff --git a/digiterms/scifi_nodes.lua b/digiterms/scifi_nodes.lua new file mode 100644 index 0000000..dff15a8 --- /dev/null +++ b/digiterms/scifi_nodes.lua @@ -0,0 +1,169 @@ +--[[ + font_api mod for Minetest - Library to add font display capability + to display_api mod. + (c) Pierre-Yves Rollo + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 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 General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . +--]] + +digiterms.register_monitor("digiterms:scifi_glassscreen", { + description = "Digiline glassscreen", + paramtype = "light", + paramtype2 = "facedir", + use_texture_alpha = true, + sunlight_propagates = true, + light_source = 15, + tiles = { + "digiterms_scifi_glscrn.png", + "digiterms_scifi_glscrn.png", + "digiterms_scifi_glscrn.png", + "digiterms_scifi_glscrn.png", + "digiterms_scifi_glscrn.png", + "digiterms_scifi_glscrn.png", + }, + drawtype = "nodebox", + node_box = { + type = "fixed", + fixed = { + {-0.4375, -0.5, -0.125, 0.4375, -0.1875, 0.0625}, -- NodeBox1 + {-0.375, -0.5, -0.0625, 0.375, 0.5, 0}, -- NodeBox10 + } + }, + sounds = default.node_sound_glass_defaults(), + groups = {choppy = 1, oddly_breakable_by_hand = 1}, + display_entities = { + ["digiterms:screen"] = { + on_display_update = font_api.on_display_update, + depth = -1/32, + top = -5/32, + size = { x = 23/32, y = 10/16 }, + columns = 20, lines = 4, + color = "#76EDCD", font_name = digiterms.font, halign="left", valing="top", + }, + }, +}) + +digiterms.register_monitor("digiterms:scifi_widescreen", { + description = "Digiline widescreen", + tiles = { + "scifi_nodes_black.png", + "scifi_nodes_black.png", + "scifi_nodes_black.png", + "scifi_nodes_black.png", + "scifi_nodes_black.png", + "digiterms_scifi_widescreen.png" + }, + drawtype = "nodebox", + paramtype = "light", + light_source = 5, + paramtype2 = "facedir", + sunlight_propagates = true, + node_box = { + type = "fixed", + fixed = { + {-0.375, -0.3125, 0.4375, 0.375, 0.3125, 0.5}, -- NodeBox1 + {-0.5, -0.375, 0.375, -0.375, 0.375, 0.5}, -- NodeBox2 + {0.375, -0.375, 0.375, 0.5, 0.375, 0.5}, -- NodeBox3 + {-0.3125, 0.25, 0.375, 0.3125, 0.375, 0.5}, -- NodeBox4 + {-0.3125, -0.375, 0.375, 0.25, -0.25, 0.5}, -- NodeBox5 + {-0.5, -0.3125, 0.375, 0.5, -0.25, 0.5}, -- NodeBox6 + {-0.5, 0.25, 0.375, 0.5, 0.3125, 0.5}, -- NodeBox7 + } + }, + groups = {cracky=1, oddly_breakable_by_hand=1}, + display_entities = { + ["digiterms:screen"] = { + on_display_update = font_api.on_display_update, + depth = 7/16 - display_api.entity_spacing, + size = { x = 11/16, y = 8/16 }, + columns = 12, lines = 2, + color = "#72ba9a", font_name = digiterms.font, halign="left", valing="top", + }, + }, +}) + +digiterms.register_monitor("digiterms:scifi_tallscreen", { + description = "Digiline tallscreen", + tiles = { + "scifi_nodes_black.png", + "scifi_nodes_black.png", + "scifi_nodes_black.png", + "scifi_nodes_black.png", + "scifi_nodes_black.png", + "digiterms_scifi_tallscreen.png" + }, + drawtype = "nodebox", + light_source = 5, + paramtype = "light", + paramtype2 = "facedir", + sunlight_propagates = true, + node_box = { + type = "fixed", + fixed = { + {-0.3125, -0.375, 0.4375, 0.3125, 0.375, 0.5}, -- NodeBox1 + {-0.375, 0.375, 0.375, 0.375, 0.5, 0.5}, -- NodeBox2 + {-0.375, -0.5, 0.375, 0.375, -0.375, 0.5}, -- NodeBox3 + {0.25, -0.3125, 0.375, 0.375, 0.3125, 0.5}, -- NodeBox4 + {-0.375, -0.25, 0.375, -0.25, 0.3125, 0.5}, -- NodeBox5 + {-0.3125, -0.5, 0.375, -0.25, 0.5, 0.5}, -- NodeBox6 + {0.25, -0.5, 0.375, 0.3125, 0.5, 0.5}, -- NodeBox7 + } + }, + groups = {cracky=1, oddly_breakable_by_hand=1}, + display_entities = { + ["digiterms:screen"] = { + on_display_update = font_api.on_display_update, + depth = 7/16 - display_api.entity_spacing, + size = { x = 7/16, y = 12/16 }, + columns = 8, lines = 3, + color = "#72ba9a", font_name = digiterms.font, halign="left", valing="top", + }, + }, +}) + +digiterms.register_monitor("digiterms:scifi_keysmonitor", { + description = "Digiline keyboard and monitor", + tiles = { + "scifi_nodes_keyboard.png", + "scifi_nodes_black.png", + "scifi_nodes_black.png", + "scifi_nodes_black.png", + "scifi_nodes_black.png", + "digiterms_scifi_monitor.png" + }, + drawtype = "nodebox", + paramtype = "light", + sunlight_propagates = true, + paramtype2 = "facedir", + node_box = { + type = "fixed", + fixed = { + {-0.5, -0.5, -0.4375, 0.5, -0.4375, -0.0625}, -- NodeBox1 + {-0.125, -0.5, 0.375, 0.125, 0.0625, 0.4375}, -- NodeBox2 + {-0.25, -0.5, 0.125, 0.25, -0.4375, 0.5}, -- NodeBox3 + {-0.5, -0.3125, 0.25, 0.5, 0.5, 0.375}, -- NodeBox4 + } + }, + groups = {cracky=1, oddly_breakable_by_hand=1}, + display_entities = { + ["digiterms:screen"] = { + on_display_update = font_api.on_display_update, + depth = 4/16 - display_api.entity_spacing, + top = -5/32, + size = { x = 10/16, y = 7/16 }, + columns = 16, lines = 3, + color = "#B4F1EC", font_name = digiterms.font, halign="left", valing="top", + }, + }, +}) diff --git a/digiterms/screenshot.png b/digiterms/screenshot.png new file mode 100644 index 0000000..f81c4ab Binary files /dev/null and b/digiterms/screenshot.png differ diff --git a/digiterms/textures/digiterms_beige_back.png b/digiterms/textures/digiterms_beige_back.png new file mode 100644 index 0000000..07fb8b6 Binary files /dev/null and b/digiterms/textures/digiterms_beige_back.png differ diff --git a/digiterms/textures/digiterms_beige_bottom.png b/digiterms/textures/digiterms_beige_bottom.png new file mode 100644 index 0000000..91ab899 Binary files /dev/null and b/digiterms/textures/digiterms_beige_bottom.png differ diff --git a/digiterms/textures/digiterms_beige_front.png b/digiterms/textures/digiterms_beige_front.png new file mode 100644 index 0000000..ad523c5 Binary files /dev/null and b/digiterms/textures/digiterms_beige_front.png differ diff --git a/digiterms/textures/digiterms_beige_front_off.png b/digiterms/textures/digiterms_beige_front_off.png new file mode 100644 index 0000000..bbc3771 Binary files /dev/null and b/digiterms/textures/digiterms_beige_front_off.png differ diff --git a/digiterms/textures/digiterms_beige_keyboard_bottom.png b/digiterms/textures/digiterms_beige_keyboard_bottom.png new file mode 100644 index 0000000..a78c3e0 Binary files /dev/null and b/digiterms/textures/digiterms_beige_keyboard_bottom.png differ diff --git a/digiterms/textures/digiterms_beige_keyboard_sides.png b/digiterms/textures/digiterms_beige_keyboard_sides.png new file mode 100644 index 0000000..36e507e Binary files /dev/null and b/digiterms/textures/digiterms_beige_keyboard_sides.png differ diff --git a/digiterms/textures/digiterms_beige_keyboard_top.png b/digiterms/textures/digiterms_beige_keyboard_top.png new file mode 100644 index 0000000..c95f9ff Binary files /dev/null and b/digiterms/textures/digiterms_beige_keyboard_top.png differ diff --git a/digiterms/textures/digiterms_beige_sides.png b/digiterms/textures/digiterms_beige_sides.png new file mode 100644 index 0000000..ec70f6c Binary files /dev/null and b/digiterms/textures/digiterms_beige_sides.png differ diff --git a/digiterms/textures/digiterms_beige_top.png b/digiterms/textures/digiterms_beige_top.png new file mode 100644 index 0000000..79b3f29 Binary files /dev/null and b/digiterms/textures/digiterms_beige_top.png differ diff --git a/digiterms/textures/digiterms_black_back.png b/digiterms/textures/digiterms_black_back.png new file mode 100644 index 0000000..56922f3 Binary files /dev/null and b/digiterms/textures/digiterms_black_back.png differ diff --git a/digiterms/textures/digiterms_black_bottom.png b/digiterms/textures/digiterms_black_bottom.png new file mode 100644 index 0000000..5e31c7b Binary files /dev/null and b/digiterms/textures/digiterms_black_bottom.png differ diff --git a/digiterms/textures/digiterms_black_front.png b/digiterms/textures/digiterms_black_front.png new file mode 100644 index 0000000..472c8b5 Binary files /dev/null and b/digiterms/textures/digiterms_black_front.png differ diff --git a/digiterms/textures/digiterms_black_front_off.png b/digiterms/textures/digiterms_black_front_off.png new file mode 100644 index 0000000..0681779 Binary files /dev/null and b/digiterms/textures/digiterms_black_front_off.png differ diff --git a/digiterms/textures/digiterms_black_keyboard_bottom.png b/digiterms/textures/digiterms_black_keyboard_bottom.png new file mode 100644 index 0000000..150c51f Binary files /dev/null and b/digiterms/textures/digiterms_black_keyboard_bottom.png differ diff --git a/digiterms/textures/digiterms_black_keyboard_sides.png b/digiterms/textures/digiterms_black_keyboard_sides.png new file mode 100644 index 0000000..2170fd5 Binary files /dev/null and b/digiterms/textures/digiterms_black_keyboard_sides.png differ diff --git a/digiterms/textures/digiterms_black_keyboard_top.png b/digiterms/textures/digiterms_black_keyboard_top.png new file mode 100644 index 0000000..5bf8c9e Binary files /dev/null and b/digiterms/textures/digiterms_black_keyboard_top.png differ diff --git a/digiterms/textures/digiterms_black_sides.png b/digiterms/textures/digiterms_black_sides.png new file mode 100644 index 0000000..993ec58 Binary files /dev/null and b/digiterms/textures/digiterms_black_sides.png differ diff --git a/digiterms/textures/digiterms_black_top.png b/digiterms/textures/digiterms_black_top.png new file mode 100644 index 0000000..b7e7c1b Binary files /dev/null and b/digiterms/textures/digiterms_black_top.png differ diff --git a/digiterms/textures/digiterms_lcd_back.png b/digiterms/textures/digiterms_lcd_back.png new file mode 100644 index 0000000..743c537 Binary files /dev/null and b/digiterms/textures/digiterms_lcd_back.png differ diff --git a/digiterms/textures/digiterms_lcd_front.png b/digiterms/textures/digiterms_lcd_front.png new file mode 100644 index 0000000..dd0d85c Binary files /dev/null and b/digiterms/textures/digiterms_lcd_front.png differ diff --git a/digiterms/textures/digiterms_lcd_front_off.png b/digiterms/textures/digiterms_lcd_front_off.png new file mode 100644 index 0000000..4dd3070 Binary files /dev/null and b/digiterms/textures/digiterms_lcd_front_off.png differ diff --git a/digiterms/textures/digiterms_lcd_sides.png b/digiterms/textures/digiterms_lcd_sides.png new file mode 100644 index 0000000..19cf971 Binary files /dev/null and b/digiterms/textures/digiterms_lcd_sides.png differ diff --git a/digiterms/textures/digiterms_scifi_glscrn.png b/digiterms/textures/digiterms_scifi_glscrn.png new file mode 100644 index 0000000..c1bcded Binary files /dev/null and b/digiterms/textures/digiterms_scifi_glscrn.png differ diff --git a/digiterms/textures/digiterms_scifi_monitor.png b/digiterms/textures/digiterms_scifi_monitor.png new file mode 100644 index 0000000..2801567 Binary files /dev/null and b/digiterms/textures/digiterms_scifi_monitor.png differ diff --git a/digiterms/textures/digiterms_scifi_tallscreen.png b/digiterms/textures/digiterms_scifi_tallscreen.png new file mode 100644 index 0000000..08935ea Binary files /dev/null and b/digiterms/textures/digiterms_scifi_tallscreen.png differ diff --git a/digiterms/textures/digiterms_scifi_widescreen.png b/digiterms/textures/digiterms_scifi_widescreen.png new file mode 100644 index 0000000..7ac56e6 Binary files /dev/null and b/digiterms/textures/digiterms_scifi_widescreen.png differ diff --git a/digiterms/textures/digiterms_white_back.png b/digiterms/textures/digiterms_white_back.png new file mode 100644 index 0000000..974f9a2 Binary files /dev/null and b/digiterms/textures/digiterms_white_back.png differ diff --git a/digiterms/textures/digiterms_white_bottom.png b/digiterms/textures/digiterms_white_bottom.png new file mode 100644 index 0000000..924250f Binary files /dev/null and b/digiterms/textures/digiterms_white_bottom.png differ diff --git a/digiterms/textures/digiterms_white_front.png b/digiterms/textures/digiterms_white_front.png new file mode 100644 index 0000000..e9429d5 Binary files /dev/null and b/digiterms/textures/digiterms_white_front.png differ diff --git a/digiterms/textures/digiterms_white_front_off.png b/digiterms/textures/digiterms_white_front_off.png new file mode 100644 index 0000000..063aa4b Binary files /dev/null and b/digiterms/textures/digiterms_white_front_off.png differ diff --git a/digiterms/textures/digiterms_white_keyboard_bottom.png b/digiterms/textures/digiterms_white_keyboard_bottom.png new file mode 100644 index 0000000..6e25e61 Binary files /dev/null and b/digiterms/textures/digiterms_white_keyboard_bottom.png differ diff --git a/digiterms/textures/digiterms_white_keyboard_sides.png b/digiterms/textures/digiterms_white_keyboard_sides.png new file mode 100644 index 0000000..a378b08 Binary files /dev/null and b/digiterms/textures/digiterms_white_keyboard_sides.png differ diff --git a/digiterms/textures/digiterms_white_keyboard_top.png b/digiterms/textures/digiterms_white_keyboard_top.png new file mode 100644 index 0000000..5a0f7db Binary files /dev/null and b/digiterms/textures/digiterms_white_keyboard_top.png differ diff --git a/digiterms/textures/digiterms_white_sides.png b/digiterms/textures/digiterms_white_sides.png new file mode 100644 index 0000000..04632ff Binary files /dev/null and b/digiterms/textures/digiterms_white_sides.png differ diff --git a/digiterms/textures/digiterms_white_top.png b/digiterms/textures/digiterms_white_top.png new file mode 100644 index 0000000..59777e8 Binary files /dev/null and b/digiterms/textures/digiterms_white_top.png differ diff --git a/digiterms/textures/font_mozart_0000.png b/digiterms/textures/font_mozart_0000.png new file mode 100644 index 0000000..3c120d5 Binary files /dev/null and b/digiterms/textures/font_mozart_0000.png differ diff --git a/digiterms/textures/font_mozart_0020.png b/digiterms/textures/font_mozart_0020.png new file mode 100644 index 0000000..dd8be63 Binary files /dev/null and b/digiterms/textures/font_mozart_0020.png differ diff --git a/digiterms/textures/font_mozart_0021.png b/digiterms/textures/font_mozart_0021.png new file mode 100644 index 0000000..d6035e7 Binary files /dev/null and b/digiterms/textures/font_mozart_0021.png differ diff --git a/digiterms/textures/font_mozart_0022.png b/digiterms/textures/font_mozart_0022.png new file mode 100644 index 0000000..c42896b Binary files /dev/null and b/digiterms/textures/font_mozart_0022.png differ diff --git a/digiterms/textures/font_mozart_0023.png b/digiterms/textures/font_mozart_0023.png new file mode 100644 index 0000000..2f8464c Binary files /dev/null and b/digiterms/textures/font_mozart_0023.png differ diff --git a/digiterms/textures/font_mozart_0024.png b/digiterms/textures/font_mozart_0024.png new file mode 100644 index 0000000..bf7cec4 Binary files /dev/null and b/digiterms/textures/font_mozart_0024.png differ diff --git a/digiterms/textures/font_mozart_0025.png b/digiterms/textures/font_mozart_0025.png new file mode 100644 index 0000000..d359315 Binary files /dev/null and b/digiterms/textures/font_mozart_0025.png differ diff --git a/digiterms/textures/font_mozart_0026.png b/digiterms/textures/font_mozart_0026.png new file mode 100644 index 0000000..32d1768 Binary files /dev/null and b/digiterms/textures/font_mozart_0026.png differ diff --git a/digiterms/textures/font_mozart_0027.png b/digiterms/textures/font_mozart_0027.png new file mode 100644 index 0000000..4b1b02d Binary files /dev/null and b/digiterms/textures/font_mozart_0027.png differ diff --git a/digiterms/textures/font_mozart_0028.png b/digiterms/textures/font_mozart_0028.png new file mode 100644 index 0000000..c25e952 Binary files /dev/null and b/digiterms/textures/font_mozart_0028.png differ diff --git a/digiterms/textures/font_mozart_0029.png b/digiterms/textures/font_mozart_0029.png new file mode 100644 index 0000000..0853d66 Binary files /dev/null and b/digiterms/textures/font_mozart_0029.png differ diff --git a/digiterms/textures/font_mozart_002a.png b/digiterms/textures/font_mozart_002a.png new file mode 100644 index 0000000..cce91cc Binary files /dev/null and b/digiterms/textures/font_mozart_002a.png differ diff --git a/digiterms/textures/font_mozart_002b.png b/digiterms/textures/font_mozart_002b.png new file mode 100644 index 0000000..f4b7ec1 Binary files /dev/null and b/digiterms/textures/font_mozart_002b.png differ diff --git a/digiterms/textures/font_mozart_002c.png b/digiterms/textures/font_mozart_002c.png new file mode 100644 index 0000000..0e6f728 Binary files /dev/null and b/digiterms/textures/font_mozart_002c.png differ diff --git a/digiterms/textures/font_mozart_002d.png b/digiterms/textures/font_mozart_002d.png new file mode 100644 index 0000000..9719e88 Binary files /dev/null and b/digiterms/textures/font_mozart_002d.png differ diff --git a/digiterms/textures/font_mozart_002e.png b/digiterms/textures/font_mozart_002e.png new file mode 100644 index 0000000..99ca0cd Binary files /dev/null and b/digiterms/textures/font_mozart_002e.png differ diff --git a/digiterms/textures/font_mozart_002f.png b/digiterms/textures/font_mozart_002f.png new file mode 100644 index 0000000..84e3c53 Binary files /dev/null and b/digiterms/textures/font_mozart_002f.png differ diff --git a/digiterms/textures/font_mozart_0030.png b/digiterms/textures/font_mozart_0030.png new file mode 100644 index 0000000..00983d3 Binary files /dev/null and b/digiterms/textures/font_mozart_0030.png differ diff --git a/digiterms/textures/font_mozart_0031.png b/digiterms/textures/font_mozart_0031.png new file mode 100644 index 0000000..0a3474c Binary files /dev/null and b/digiterms/textures/font_mozart_0031.png differ diff --git a/digiterms/textures/font_mozart_0032.png b/digiterms/textures/font_mozart_0032.png new file mode 100644 index 0000000..a89fdbe Binary files /dev/null and b/digiterms/textures/font_mozart_0032.png differ diff --git a/digiterms/textures/font_mozart_0033.png b/digiterms/textures/font_mozart_0033.png new file mode 100644 index 0000000..387872b Binary files /dev/null and b/digiterms/textures/font_mozart_0033.png differ diff --git a/digiterms/textures/font_mozart_0034.png b/digiterms/textures/font_mozart_0034.png new file mode 100644 index 0000000..6e359ba Binary files /dev/null and b/digiterms/textures/font_mozart_0034.png differ diff --git a/digiterms/textures/font_mozart_0035.png b/digiterms/textures/font_mozart_0035.png new file mode 100644 index 0000000..25c1f63 Binary files /dev/null and b/digiterms/textures/font_mozart_0035.png differ diff --git a/digiterms/textures/font_mozart_0036.png b/digiterms/textures/font_mozart_0036.png new file mode 100644 index 0000000..7c18608 Binary files /dev/null and b/digiterms/textures/font_mozart_0036.png differ diff --git a/digiterms/textures/font_mozart_0037.png b/digiterms/textures/font_mozart_0037.png new file mode 100644 index 0000000..90111bf Binary files /dev/null and b/digiterms/textures/font_mozart_0037.png differ diff --git a/digiterms/textures/font_mozart_0038.png b/digiterms/textures/font_mozart_0038.png new file mode 100644 index 0000000..a19fb62 Binary files /dev/null and b/digiterms/textures/font_mozart_0038.png differ diff --git a/digiterms/textures/font_mozart_0039.png b/digiterms/textures/font_mozart_0039.png new file mode 100644 index 0000000..ecfca33 Binary files /dev/null and b/digiterms/textures/font_mozart_0039.png differ diff --git a/digiterms/textures/font_mozart_003a.png b/digiterms/textures/font_mozart_003a.png new file mode 100644 index 0000000..dccfbda Binary files /dev/null and b/digiterms/textures/font_mozart_003a.png differ diff --git a/digiterms/textures/font_mozart_003b.png b/digiterms/textures/font_mozart_003b.png new file mode 100644 index 0000000..d9ad0c3 Binary files /dev/null and b/digiterms/textures/font_mozart_003b.png differ diff --git a/digiterms/textures/font_mozart_003c.png b/digiterms/textures/font_mozart_003c.png new file mode 100644 index 0000000..a5972b9 Binary files /dev/null and b/digiterms/textures/font_mozart_003c.png differ diff --git a/digiterms/textures/font_mozart_003d.png b/digiterms/textures/font_mozart_003d.png new file mode 100644 index 0000000..a90934b Binary files /dev/null and b/digiterms/textures/font_mozart_003d.png differ diff --git a/digiterms/textures/font_mozart_003e.png b/digiterms/textures/font_mozart_003e.png new file mode 100644 index 0000000..b9552f8 Binary files /dev/null and b/digiterms/textures/font_mozart_003e.png differ diff --git a/digiterms/textures/font_mozart_003f.png b/digiterms/textures/font_mozart_003f.png new file mode 100644 index 0000000..f589714 Binary files /dev/null and b/digiterms/textures/font_mozart_003f.png differ diff --git a/digiterms/textures/font_mozart_0040.png b/digiterms/textures/font_mozart_0040.png new file mode 100644 index 0000000..254acad Binary files /dev/null and b/digiterms/textures/font_mozart_0040.png differ diff --git a/digiterms/textures/font_mozart_0041.png b/digiterms/textures/font_mozart_0041.png new file mode 100644 index 0000000..3c57104 Binary files /dev/null and b/digiterms/textures/font_mozart_0041.png differ diff --git a/digiterms/textures/font_mozart_0042.png b/digiterms/textures/font_mozart_0042.png new file mode 100644 index 0000000..bb1e332 Binary files /dev/null and b/digiterms/textures/font_mozart_0042.png differ diff --git a/digiterms/textures/font_mozart_0043.png b/digiterms/textures/font_mozart_0043.png new file mode 100644 index 0000000..42da2d5 Binary files /dev/null and b/digiterms/textures/font_mozart_0043.png differ diff --git a/digiterms/textures/font_mozart_0044.png b/digiterms/textures/font_mozart_0044.png new file mode 100644 index 0000000..1eb05a6 Binary files /dev/null and b/digiterms/textures/font_mozart_0044.png differ diff --git a/digiterms/textures/font_mozart_0045.png b/digiterms/textures/font_mozart_0045.png new file mode 100644 index 0000000..96c7cdc Binary files /dev/null and b/digiterms/textures/font_mozart_0045.png differ diff --git a/digiterms/textures/font_mozart_0046.png b/digiterms/textures/font_mozart_0046.png new file mode 100644 index 0000000..2a744d6 Binary files /dev/null and b/digiterms/textures/font_mozart_0046.png differ diff --git a/digiterms/textures/font_mozart_0047.png b/digiterms/textures/font_mozart_0047.png new file mode 100644 index 0000000..6eb9057 Binary files /dev/null and b/digiterms/textures/font_mozart_0047.png differ diff --git a/digiterms/textures/font_mozart_0048.png b/digiterms/textures/font_mozart_0048.png new file mode 100644 index 0000000..0114587 Binary files /dev/null and b/digiterms/textures/font_mozart_0048.png differ diff --git a/digiterms/textures/font_mozart_0049.png b/digiterms/textures/font_mozart_0049.png new file mode 100644 index 0000000..2c207ff Binary files /dev/null and b/digiterms/textures/font_mozart_0049.png differ diff --git a/digiterms/textures/font_mozart_004a.png b/digiterms/textures/font_mozart_004a.png new file mode 100644 index 0000000..d729a8b Binary files /dev/null and b/digiterms/textures/font_mozart_004a.png differ diff --git a/digiterms/textures/font_mozart_004b.png b/digiterms/textures/font_mozart_004b.png new file mode 100644 index 0000000..10116e1 Binary files /dev/null and b/digiterms/textures/font_mozart_004b.png differ diff --git a/digiterms/textures/font_mozart_004c.png b/digiterms/textures/font_mozart_004c.png new file mode 100644 index 0000000..e27f3e1 Binary files /dev/null and b/digiterms/textures/font_mozart_004c.png differ diff --git a/digiterms/textures/font_mozart_004d.png b/digiterms/textures/font_mozart_004d.png new file mode 100644 index 0000000..b572275 Binary files /dev/null and b/digiterms/textures/font_mozart_004d.png differ diff --git a/digiterms/textures/font_mozart_004e.png b/digiterms/textures/font_mozart_004e.png new file mode 100644 index 0000000..aa0918f Binary files /dev/null and b/digiterms/textures/font_mozart_004e.png differ diff --git a/digiterms/textures/font_mozart_004f.png b/digiterms/textures/font_mozart_004f.png new file mode 100644 index 0000000..a7d872c Binary files /dev/null and b/digiterms/textures/font_mozart_004f.png differ diff --git a/digiterms/textures/font_mozart_0050.png b/digiterms/textures/font_mozart_0050.png new file mode 100644 index 0000000..9c3fb04 Binary files /dev/null and b/digiterms/textures/font_mozart_0050.png differ diff --git a/digiterms/textures/font_mozart_0051.png b/digiterms/textures/font_mozart_0051.png new file mode 100644 index 0000000..c94fc73 Binary files /dev/null and b/digiterms/textures/font_mozart_0051.png differ diff --git a/digiterms/textures/font_mozart_0052.png b/digiterms/textures/font_mozart_0052.png new file mode 100644 index 0000000..2b9886d Binary files /dev/null and b/digiterms/textures/font_mozart_0052.png differ diff --git a/digiterms/textures/font_mozart_0053.png b/digiterms/textures/font_mozart_0053.png new file mode 100644 index 0000000..5901cfd Binary files /dev/null and b/digiterms/textures/font_mozart_0053.png differ diff --git a/digiterms/textures/font_mozart_0054.png b/digiterms/textures/font_mozart_0054.png new file mode 100644 index 0000000..3217853 Binary files /dev/null and b/digiterms/textures/font_mozart_0054.png differ diff --git a/digiterms/textures/font_mozart_0055.png b/digiterms/textures/font_mozart_0055.png new file mode 100644 index 0000000..dbb86f3 Binary files /dev/null and b/digiterms/textures/font_mozart_0055.png differ diff --git a/digiterms/textures/font_mozart_0056.png b/digiterms/textures/font_mozart_0056.png new file mode 100644 index 0000000..0749001 Binary files /dev/null and b/digiterms/textures/font_mozart_0056.png differ diff --git a/digiterms/textures/font_mozart_0057.png b/digiterms/textures/font_mozart_0057.png new file mode 100644 index 0000000..25c90a1 Binary files /dev/null and b/digiterms/textures/font_mozart_0057.png differ diff --git a/digiterms/textures/font_mozart_0058.png b/digiterms/textures/font_mozart_0058.png new file mode 100644 index 0000000..4f1a74d Binary files /dev/null and b/digiterms/textures/font_mozart_0058.png differ diff --git a/digiterms/textures/font_mozart_0059.png b/digiterms/textures/font_mozart_0059.png new file mode 100644 index 0000000..5ec2797 Binary files /dev/null and b/digiterms/textures/font_mozart_0059.png differ diff --git a/digiterms/textures/font_mozart_005a.png b/digiterms/textures/font_mozart_005a.png new file mode 100644 index 0000000..fee5fab Binary files /dev/null and b/digiterms/textures/font_mozart_005a.png differ diff --git a/digiterms/textures/font_mozart_005b.png b/digiterms/textures/font_mozart_005b.png new file mode 100644 index 0000000..51ed6f6 Binary files /dev/null and b/digiterms/textures/font_mozart_005b.png differ diff --git a/digiterms/textures/font_mozart_005c.png b/digiterms/textures/font_mozart_005c.png new file mode 100644 index 0000000..236f679 Binary files /dev/null and b/digiterms/textures/font_mozart_005c.png differ diff --git a/digiterms/textures/font_mozart_005d.png b/digiterms/textures/font_mozart_005d.png new file mode 100644 index 0000000..a98e950 Binary files /dev/null and b/digiterms/textures/font_mozart_005d.png differ diff --git a/digiterms/textures/font_mozart_005e.png b/digiterms/textures/font_mozart_005e.png new file mode 100644 index 0000000..0515357 Binary files /dev/null and b/digiterms/textures/font_mozart_005e.png differ diff --git a/digiterms/textures/font_mozart_005f.png b/digiterms/textures/font_mozart_005f.png new file mode 100644 index 0000000..cbedc5b Binary files /dev/null and b/digiterms/textures/font_mozart_005f.png differ diff --git a/digiterms/textures/font_mozart_0060.png b/digiterms/textures/font_mozart_0060.png new file mode 100644 index 0000000..18340ad Binary files /dev/null and b/digiterms/textures/font_mozart_0060.png differ diff --git a/digiterms/textures/font_mozart_0061.png b/digiterms/textures/font_mozart_0061.png new file mode 100644 index 0000000..735391f Binary files /dev/null and b/digiterms/textures/font_mozart_0061.png differ diff --git a/digiterms/textures/font_mozart_0062.png b/digiterms/textures/font_mozart_0062.png new file mode 100644 index 0000000..19c377f Binary files /dev/null and b/digiterms/textures/font_mozart_0062.png differ diff --git a/digiterms/textures/font_mozart_0063.png b/digiterms/textures/font_mozart_0063.png new file mode 100644 index 0000000..29f9385 Binary files /dev/null and b/digiterms/textures/font_mozart_0063.png differ diff --git a/digiterms/textures/font_mozart_0064.png b/digiterms/textures/font_mozart_0064.png new file mode 100644 index 0000000..02ffbf5 Binary files /dev/null and b/digiterms/textures/font_mozart_0064.png differ diff --git a/digiterms/textures/font_mozart_0065.png b/digiterms/textures/font_mozart_0065.png new file mode 100644 index 0000000..80c2ff6 Binary files /dev/null and b/digiterms/textures/font_mozart_0065.png differ diff --git a/digiterms/textures/font_mozart_0066.png b/digiterms/textures/font_mozart_0066.png new file mode 100644 index 0000000..037a6ed Binary files /dev/null and b/digiterms/textures/font_mozart_0066.png differ diff --git a/digiterms/textures/font_mozart_0067.png b/digiterms/textures/font_mozart_0067.png new file mode 100644 index 0000000..58bd6d8 Binary files /dev/null and b/digiterms/textures/font_mozart_0067.png differ diff --git a/digiterms/textures/font_mozart_0068.png b/digiterms/textures/font_mozart_0068.png new file mode 100644 index 0000000..72870cd Binary files /dev/null and b/digiterms/textures/font_mozart_0068.png differ diff --git a/digiterms/textures/font_mozart_0069.png b/digiterms/textures/font_mozart_0069.png new file mode 100644 index 0000000..b25de4d Binary files /dev/null and b/digiterms/textures/font_mozart_0069.png differ diff --git a/digiterms/textures/font_mozart_006a.png b/digiterms/textures/font_mozart_006a.png new file mode 100644 index 0000000..8849f6c Binary files /dev/null and b/digiterms/textures/font_mozart_006a.png differ diff --git a/digiterms/textures/font_mozart_006b.png b/digiterms/textures/font_mozart_006b.png new file mode 100644 index 0000000..ecfb6b5 Binary files /dev/null and b/digiterms/textures/font_mozart_006b.png differ diff --git a/digiterms/textures/font_mozart_006c.png b/digiterms/textures/font_mozart_006c.png new file mode 100644 index 0000000..68411c5 Binary files /dev/null and b/digiterms/textures/font_mozart_006c.png differ diff --git a/digiterms/textures/font_mozart_006d.png b/digiterms/textures/font_mozart_006d.png new file mode 100644 index 0000000..9df7997 Binary files /dev/null and b/digiterms/textures/font_mozart_006d.png differ diff --git a/digiterms/textures/font_mozart_006e.png b/digiterms/textures/font_mozart_006e.png new file mode 100644 index 0000000..e581ae5 Binary files /dev/null and b/digiterms/textures/font_mozart_006e.png differ diff --git a/digiterms/textures/font_mozart_006f.png b/digiterms/textures/font_mozart_006f.png new file mode 100644 index 0000000..3e8e04c Binary files /dev/null and b/digiterms/textures/font_mozart_006f.png differ diff --git a/digiterms/textures/font_mozart_0070.png b/digiterms/textures/font_mozart_0070.png new file mode 100644 index 0000000..75e4bfc Binary files /dev/null and b/digiterms/textures/font_mozart_0070.png differ diff --git a/digiterms/textures/font_mozart_0071.png b/digiterms/textures/font_mozart_0071.png new file mode 100644 index 0000000..3743b0d Binary files /dev/null and b/digiterms/textures/font_mozart_0071.png differ diff --git a/digiterms/textures/font_mozart_0072.png b/digiterms/textures/font_mozart_0072.png new file mode 100644 index 0000000..09d340c Binary files /dev/null and b/digiterms/textures/font_mozart_0072.png differ diff --git a/digiterms/textures/font_mozart_0073.png b/digiterms/textures/font_mozart_0073.png new file mode 100644 index 0000000..0aa7b4b Binary files /dev/null and b/digiterms/textures/font_mozart_0073.png differ diff --git a/digiterms/textures/font_mozart_0074.png b/digiterms/textures/font_mozart_0074.png new file mode 100644 index 0000000..d82df71 Binary files /dev/null and b/digiterms/textures/font_mozart_0074.png differ diff --git a/digiterms/textures/font_mozart_0075.png b/digiterms/textures/font_mozart_0075.png new file mode 100644 index 0000000..29e94a2 Binary files /dev/null and b/digiterms/textures/font_mozart_0075.png differ diff --git a/digiterms/textures/font_mozart_0076.png b/digiterms/textures/font_mozart_0076.png new file mode 100644 index 0000000..29a6720 Binary files /dev/null and b/digiterms/textures/font_mozart_0076.png differ diff --git a/digiterms/textures/font_mozart_0077.png b/digiterms/textures/font_mozart_0077.png new file mode 100644 index 0000000..ec27d1d Binary files /dev/null and b/digiterms/textures/font_mozart_0077.png differ diff --git a/digiterms/textures/font_mozart_0078.png b/digiterms/textures/font_mozart_0078.png new file mode 100644 index 0000000..fc114f2 Binary files /dev/null and b/digiterms/textures/font_mozart_0078.png differ diff --git a/digiterms/textures/font_mozart_0079.png b/digiterms/textures/font_mozart_0079.png new file mode 100644 index 0000000..e05a08d Binary files /dev/null and b/digiterms/textures/font_mozart_0079.png differ diff --git a/digiterms/textures/font_mozart_007a.png b/digiterms/textures/font_mozart_007a.png new file mode 100644 index 0000000..fa206c8 Binary files /dev/null and b/digiterms/textures/font_mozart_007a.png differ diff --git a/digiterms/textures/font_mozart_007b.png b/digiterms/textures/font_mozart_007b.png new file mode 100644 index 0000000..8d08d6e Binary files /dev/null and b/digiterms/textures/font_mozart_007b.png differ diff --git a/digiterms/textures/font_mozart_007c.png b/digiterms/textures/font_mozart_007c.png new file mode 100644 index 0000000..f971e07 Binary files /dev/null and b/digiterms/textures/font_mozart_007c.png differ diff --git a/digiterms/textures/font_mozart_007d.png b/digiterms/textures/font_mozart_007d.png new file mode 100644 index 0000000..08785d8 Binary files /dev/null and b/digiterms/textures/font_mozart_007d.png differ diff --git a/digiterms/textures/font_mozart_007e.png b/digiterms/textures/font_mozart_007e.png new file mode 100644 index 0000000..dec892c Binary files /dev/null and b/digiterms/textures/font_mozart_007e.png differ diff --git a/digiterms/textures/font_mozart_00a0.png b/digiterms/textures/font_mozart_00a0.png new file mode 100644 index 0000000..fce0051 Binary files /dev/null and b/digiterms/textures/font_mozart_00a0.png differ diff --git a/digiterms/textures/font_mozart_00a1.png b/digiterms/textures/font_mozart_00a1.png new file mode 100644 index 0000000..ac5d0d0 Binary files /dev/null and b/digiterms/textures/font_mozart_00a1.png differ diff --git a/digiterms/textures/font_mozart_00a2.png b/digiterms/textures/font_mozart_00a2.png new file mode 100644 index 0000000..9963532 Binary files /dev/null and b/digiterms/textures/font_mozart_00a2.png differ diff --git a/digiterms/textures/font_mozart_00a3.png b/digiterms/textures/font_mozart_00a3.png new file mode 100644 index 0000000..4ec2cf8 Binary files /dev/null and b/digiterms/textures/font_mozart_00a3.png differ diff --git a/digiterms/textures/font_mozart_00a4.png b/digiterms/textures/font_mozart_00a4.png new file mode 100644 index 0000000..b36962f Binary files /dev/null and b/digiterms/textures/font_mozart_00a4.png differ diff --git a/digiterms/textures/font_mozart_00a5.png b/digiterms/textures/font_mozart_00a5.png new file mode 100644 index 0000000..d5d80ff Binary files /dev/null and b/digiterms/textures/font_mozart_00a5.png differ diff --git a/digiterms/textures/font_mozart_00a6.png b/digiterms/textures/font_mozart_00a6.png new file mode 100644 index 0000000..346fd5f Binary files /dev/null and b/digiterms/textures/font_mozart_00a6.png differ diff --git a/digiterms/textures/font_mozart_00a7.png b/digiterms/textures/font_mozart_00a7.png new file mode 100644 index 0000000..1e7a38d Binary files /dev/null and b/digiterms/textures/font_mozart_00a7.png differ diff --git a/digiterms/textures/font_mozart_00a8.png b/digiterms/textures/font_mozart_00a8.png new file mode 100644 index 0000000..05d9cbd Binary files /dev/null and b/digiterms/textures/font_mozart_00a8.png differ diff --git a/digiterms/textures/font_mozart_00a9.png b/digiterms/textures/font_mozart_00a9.png new file mode 100644 index 0000000..e311c81 Binary files /dev/null and b/digiterms/textures/font_mozart_00a9.png differ diff --git a/digiterms/textures/font_mozart_00aa.png b/digiterms/textures/font_mozart_00aa.png new file mode 100644 index 0000000..4d5ad8f Binary files /dev/null and b/digiterms/textures/font_mozart_00aa.png differ diff --git a/digiterms/textures/font_mozart_00ab.png b/digiterms/textures/font_mozart_00ab.png new file mode 100644 index 0000000..c0eeabb Binary files /dev/null and b/digiterms/textures/font_mozart_00ab.png differ diff --git a/digiterms/textures/font_mozart_00ac.png b/digiterms/textures/font_mozart_00ac.png new file mode 100644 index 0000000..e6ab651 Binary files /dev/null and b/digiterms/textures/font_mozart_00ac.png differ diff --git a/digiterms/textures/font_mozart_00ae.png b/digiterms/textures/font_mozart_00ae.png new file mode 100644 index 0000000..4fc70ca Binary files /dev/null and b/digiterms/textures/font_mozart_00ae.png differ diff --git a/digiterms/textures/font_mozart_00af.png b/digiterms/textures/font_mozart_00af.png new file mode 100644 index 0000000..da93006 Binary files /dev/null and b/digiterms/textures/font_mozart_00af.png differ diff --git a/digiterms/textures/font_mozart_00b0.png b/digiterms/textures/font_mozart_00b0.png new file mode 100644 index 0000000..dfcc9a8 Binary files /dev/null and b/digiterms/textures/font_mozart_00b0.png differ diff --git a/digiterms/textures/font_mozart_00b1.png b/digiterms/textures/font_mozart_00b1.png new file mode 100644 index 0000000..cc9f2fe Binary files /dev/null and b/digiterms/textures/font_mozart_00b1.png differ diff --git a/digiterms/textures/font_mozart_00b2.png b/digiterms/textures/font_mozart_00b2.png new file mode 100644 index 0000000..ff94157 Binary files /dev/null and b/digiterms/textures/font_mozart_00b2.png differ diff --git a/digiterms/textures/font_mozart_00b3.png b/digiterms/textures/font_mozart_00b3.png new file mode 100644 index 0000000..c84f35b Binary files /dev/null and b/digiterms/textures/font_mozart_00b3.png differ diff --git a/digiterms/textures/font_mozart_00b4.png b/digiterms/textures/font_mozart_00b4.png new file mode 100644 index 0000000..883f7ab Binary files /dev/null and b/digiterms/textures/font_mozart_00b4.png differ diff --git a/digiterms/textures/font_mozart_00b5.png b/digiterms/textures/font_mozart_00b5.png new file mode 100644 index 0000000..47cf838 Binary files /dev/null and b/digiterms/textures/font_mozart_00b5.png differ diff --git a/digiterms/textures/font_mozart_00b6.png b/digiterms/textures/font_mozart_00b6.png new file mode 100644 index 0000000..a85f8df Binary files /dev/null and b/digiterms/textures/font_mozart_00b6.png differ diff --git a/digiterms/textures/font_mozart_00b7.png b/digiterms/textures/font_mozart_00b7.png new file mode 100644 index 0000000..5f03623 Binary files /dev/null and b/digiterms/textures/font_mozart_00b7.png differ diff --git a/digiterms/textures/font_mozart_00b8.png b/digiterms/textures/font_mozart_00b8.png new file mode 100644 index 0000000..45b830c Binary files /dev/null and b/digiterms/textures/font_mozart_00b8.png differ diff --git a/digiterms/textures/font_mozart_00b9.png b/digiterms/textures/font_mozart_00b9.png new file mode 100644 index 0000000..8b89320 Binary files /dev/null and b/digiterms/textures/font_mozart_00b9.png differ diff --git a/digiterms/textures/font_mozart_00ba.png b/digiterms/textures/font_mozart_00ba.png new file mode 100644 index 0000000..7dec23f Binary files /dev/null and b/digiterms/textures/font_mozart_00ba.png differ diff --git a/digiterms/textures/font_mozart_00bb.png b/digiterms/textures/font_mozart_00bb.png new file mode 100644 index 0000000..d0deb33 Binary files /dev/null and b/digiterms/textures/font_mozart_00bb.png differ diff --git a/digiterms/textures/font_mozart_00bc.png b/digiterms/textures/font_mozart_00bc.png new file mode 100644 index 0000000..8f5019a Binary files /dev/null and b/digiterms/textures/font_mozart_00bc.png differ diff --git a/digiterms/textures/font_mozart_00bd.png b/digiterms/textures/font_mozart_00bd.png new file mode 100644 index 0000000..bf27cc4 Binary files /dev/null and b/digiterms/textures/font_mozart_00bd.png differ diff --git a/digiterms/textures/font_mozart_00be.png b/digiterms/textures/font_mozart_00be.png new file mode 100644 index 0000000..8544759 Binary files /dev/null and b/digiterms/textures/font_mozart_00be.png differ diff --git a/digiterms/textures/font_mozart_00bf.png b/digiterms/textures/font_mozart_00bf.png new file mode 100644 index 0000000..3392245 Binary files /dev/null and b/digiterms/textures/font_mozart_00bf.png differ diff --git a/digiterms/textures/font_mozart_00c0.png b/digiterms/textures/font_mozart_00c0.png new file mode 100644 index 0000000..b88d7c3 Binary files /dev/null and b/digiterms/textures/font_mozart_00c0.png differ diff --git a/digiterms/textures/font_mozart_00c1.png b/digiterms/textures/font_mozart_00c1.png new file mode 100644 index 0000000..ba9ab28 Binary files /dev/null and b/digiterms/textures/font_mozart_00c1.png differ diff --git a/digiterms/textures/font_mozart_00c2.png b/digiterms/textures/font_mozart_00c2.png new file mode 100644 index 0000000..ac1b85e Binary files /dev/null and b/digiterms/textures/font_mozart_00c2.png differ diff --git a/digiterms/textures/font_mozart_00c3.png b/digiterms/textures/font_mozart_00c3.png new file mode 100644 index 0000000..83ff880 Binary files /dev/null and b/digiterms/textures/font_mozart_00c3.png differ diff --git a/digiterms/textures/font_mozart_00c4.png b/digiterms/textures/font_mozart_00c4.png new file mode 100644 index 0000000..9e6f0a0 Binary files /dev/null and b/digiterms/textures/font_mozart_00c4.png differ diff --git a/digiterms/textures/font_mozart_00c5.png b/digiterms/textures/font_mozart_00c5.png new file mode 100644 index 0000000..d465981 Binary files /dev/null and b/digiterms/textures/font_mozart_00c5.png differ diff --git a/digiterms/textures/font_mozart_00c6.png b/digiterms/textures/font_mozart_00c6.png new file mode 100644 index 0000000..32ca207 Binary files /dev/null and b/digiterms/textures/font_mozart_00c6.png differ diff --git a/digiterms/textures/font_mozart_00c7.png b/digiterms/textures/font_mozart_00c7.png new file mode 100644 index 0000000..429bd71 Binary files /dev/null and b/digiterms/textures/font_mozart_00c7.png differ diff --git a/digiterms/textures/font_mozart_00c8.png b/digiterms/textures/font_mozart_00c8.png new file mode 100644 index 0000000..ee7a67d Binary files /dev/null and b/digiterms/textures/font_mozart_00c8.png differ diff --git a/digiterms/textures/font_mozart_00c9.png b/digiterms/textures/font_mozart_00c9.png new file mode 100644 index 0000000..aab4243 Binary files /dev/null and b/digiterms/textures/font_mozart_00c9.png differ diff --git a/digiterms/textures/font_mozart_00ca.png b/digiterms/textures/font_mozart_00ca.png new file mode 100644 index 0000000..d896768 Binary files /dev/null and b/digiterms/textures/font_mozart_00ca.png differ diff --git a/digiterms/textures/font_mozart_00cb.png b/digiterms/textures/font_mozart_00cb.png new file mode 100644 index 0000000..cbead58 Binary files /dev/null and b/digiterms/textures/font_mozart_00cb.png differ diff --git a/digiterms/textures/font_mozart_00cc.png b/digiterms/textures/font_mozart_00cc.png new file mode 100644 index 0000000..1a994d4 Binary files /dev/null and b/digiterms/textures/font_mozart_00cc.png differ diff --git a/digiterms/textures/font_mozart_00cd.png b/digiterms/textures/font_mozart_00cd.png new file mode 100644 index 0000000..76e2216 Binary files /dev/null and b/digiterms/textures/font_mozart_00cd.png differ diff --git a/digiterms/textures/font_mozart_00ce.png b/digiterms/textures/font_mozart_00ce.png new file mode 100644 index 0000000..2b9ddc3 Binary files /dev/null and b/digiterms/textures/font_mozart_00ce.png differ diff --git a/digiterms/textures/font_mozart_00cf.png b/digiterms/textures/font_mozart_00cf.png new file mode 100644 index 0000000..dc7cb71 Binary files /dev/null and b/digiterms/textures/font_mozart_00cf.png differ diff --git a/digiterms/textures/font_mozart_00d0.png b/digiterms/textures/font_mozart_00d0.png new file mode 100644 index 0000000..913e7e9 Binary files /dev/null and b/digiterms/textures/font_mozart_00d0.png differ diff --git a/digiterms/textures/font_mozart_00d1.png b/digiterms/textures/font_mozart_00d1.png new file mode 100644 index 0000000..ed96058 Binary files /dev/null and b/digiterms/textures/font_mozart_00d1.png differ diff --git a/digiterms/textures/font_mozart_00d2.png b/digiterms/textures/font_mozart_00d2.png new file mode 100644 index 0000000..d3c1c8f Binary files /dev/null and b/digiterms/textures/font_mozart_00d2.png differ diff --git a/digiterms/textures/font_mozart_00d3.png b/digiterms/textures/font_mozart_00d3.png new file mode 100644 index 0000000..780ffb2 Binary files /dev/null and b/digiterms/textures/font_mozart_00d3.png differ diff --git a/digiterms/textures/font_mozart_00d4.png b/digiterms/textures/font_mozart_00d4.png new file mode 100644 index 0000000..f00c005 Binary files /dev/null and b/digiterms/textures/font_mozart_00d4.png differ diff --git a/digiterms/textures/font_mozart_00d5.png b/digiterms/textures/font_mozart_00d5.png new file mode 100644 index 0000000..ef6fc2b Binary files /dev/null and b/digiterms/textures/font_mozart_00d5.png differ diff --git a/digiterms/textures/font_mozart_00d6.png b/digiterms/textures/font_mozart_00d6.png new file mode 100644 index 0000000..1be518d Binary files /dev/null and b/digiterms/textures/font_mozart_00d6.png differ diff --git a/digiterms/textures/font_mozart_00d7.png b/digiterms/textures/font_mozart_00d7.png new file mode 100644 index 0000000..11a471c Binary files /dev/null and b/digiterms/textures/font_mozart_00d7.png differ diff --git a/digiterms/textures/font_mozart_00d8.png b/digiterms/textures/font_mozart_00d8.png new file mode 100644 index 0000000..9a1dac7 Binary files /dev/null and b/digiterms/textures/font_mozart_00d8.png differ diff --git a/digiterms/textures/font_mozart_00d9.png b/digiterms/textures/font_mozart_00d9.png new file mode 100644 index 0000000..50bfce7 Binary files /dev/null and b/digiterms/textures/font_mozart_00d9.png differ diff --git a/digiterms/textures/font_mozart_00da.png b/digiterms/textures/font_mozart_00da.png new file mode 100644 index 0000000..176c93d Binary files /dev/null and b/digiterms/textures/font_mozart_00da.png differ diff --git a/digiterms/textures/font_mozart_00db.png b/digiterms/textures/font_mozart_00db.png new file mode 100644 index 0000000..493821d Binary files /dev/null and b/digiterms/textures/font_mozart_00db.png differ diff --git a/digiterms/textures/font_mozart_00dc.png b/digiterms/textures/font_mozart_00dc.png new file mode 100644 index 0000000..8c800bd Binary files /dev/null and b/digiterms/textures/font_mozart_00dc.png differ diff --git a/digiterms/textures/font_mozart_00dd.png b/digiterms/textures/font_mozart_00dd.png new file mode 100644 index 0000000..efaafc4 Binary files /dev/null and b/digiterms/textures/font_mozart_00dd.png differ diff --git a/digiterms/textures/font_mozart_00de.png b/digiterms/textures/font_mozart_00de.png new file mode 100644 index 0000000..d81f0e4 Binary files /dev/null and b/digiterms/textures/font_mozart_00de.png differ diff --git a/digiterms/textures/font_mozart_00df.png b/digiterms/textures/font_mozart_00df.png new file mode 100644 index 0000000..d6a96d1 Binary files /dev/null and b/digiterms/textures/font_mozart_00df.png differ diff --git a/digiterms/textures/font_mozart_00e0.png b/digiterms/textures/font_mozart_00e0.png new file mode 100644 index 0000000..fba0483 Binary files /dev/null and b/digiterms/textures/font_mozart_00e0.png differ diff --git a/digiterms/textures/font_mozart_00e1.png b/digiterms/textures/font_mozart_00e1.png new file mode 100644 index 0000000..3095233 Binary files /dev/null and b/digiterms/textures/font_mozart_00e1.png differ diff --git a/digiterms/textures/font_mozart_00e2.png b/digiterms/textures/font_mozart_00e2.png new file mode 100644 index 0000000..d683e93 Binary files /dev/null and b/digiterms/textures/font_mozart_00e2.png differ diff --git a/digiterms/textures/font_mozart_00e3.png b/digiterms/textures/font_mozart_00e3.png new file mode 100644 index 0000000..ed68f66 Binary files /dev/null and b/digiterms/textures/font_mozart_00e3.png differ diff --git a/digiterms/textures/font_mozart_00e4.png b/digiterms/textures/font_mozart_00e4.png new file mode 100644 index 0000000..3d3012d Binary files /dev/null and b/digiterms/textures/font_mozart_00e4.png differ diff --git a/digiterms/textures/font_mozart_00e5.png b/digiterms/textures/font_mozart_00e5.png new file mode 100644 index 0000000..d9f068e Binary files /dev/null and b/digiterms/textures/font_mozart_00e5.png differ diff --git a/digiterms/textures/font_mozart_00e6.png b/digiterms/textures/font_mozart_00e6.png new file mode 100644 index 0000000..df71040 Binary files /dev/null and b/digiterms/textures/font_mozart_00e6.png differ diff --git a/digiterms/textures/font_mozart_00e7.png b/digiterms/textures/font_mozart_00e7.png new file mode 100644 index 0000000..7403ce4 Binary files /dev/null and b/digiterms/textures/font_mozart_00e7.png differ diff --git a/digiterms/textures/font_mozart_00e8.png b/digiterms/textures/font_mozart_00e8.png new file mode 100644 index 0000000..2a9cfc3 Binary files /dev/null and b/digiterms/textures/font_mozart_00e8.png differ diff --git a/digiterms/textures/font_mozart_00e9.png b/digiterms/textures/font_mozart_00e9.png new file mode 100644 index 0000000..b37b128 Binary files /dev/null and b/digiterms/textures/font_mozart_00e9.png differ diff --git a/digiterms/textures/font_mozart_00ea.png b/digiterms/textures/font_mozart_00ea.png new file mode 100644 index 0000000..92014e0 Binary files /dev/null and b/digiterms/textures/font_mozart_00ea.png differ diff --git a/digiterms/textures/font_mozart_00eb.png b/digiterms/textures/font_mozart_00eb.png new file mode 100644 index 0000000..1ac70ea Binary files /dev/null and b/digiterms/textures/font_mozart_00eb.png differ diff --git a/digiterms/textures/font_mozart_00ec.png b/digiterms/textures/font_mozart_00ec.png new file mode 100644 index 0000000..e755d23 Binary files /dev/null and b/digiterms/textures/font_mozart_00ec.png differ diff --git a/digiterms/textures/font_mozart_00ed.png b/digiterms/textures/font_mozart_00ed.png new file mode 100644 index 0000000..a129ead Binary files /dev/null and b/digiterms/textures/font_mozart_00ed.png differ diff --git a/digiterms/textures/font_mozart_00ee.png b/digiterms/textures/font_mozart_00ee.png new file mode 100644 index 0000000..255b1ac Binary files /dev/null and b/digiterms/textures/font_mozart_00ee.png differ diff --git a/digiterms/textures/font_mozart_00ef.png b/digiterms/textures/font_mozart_00ef.png new file mode 100644 index 0000000..4fe4b37 Binary files /dev/null and b/digiterms/textures/font_mozart_00ef.png differ diff --git a/digiterms/textures/font_mozart_00f0.png b/digiterms/textures/font_mozart_00f0.png new file mode 100644 index 0000000..260300f Binary files /dev/null and b/digiterms/textures/font_mozart_00f0.png differ diff --git a/digiterms/textures/font_mozart_00f1.png b/digiterms/textures/font_mozart_00f1.png new file mode 100644 index 0000000..16a3c6e Binary files /dev/null and b/digiterms/textures/font_mozart_00f1.png differ diff --git a/digiterms/textures/font_mozart_00f2.png b/digiterms/textures/font_mozart_00f2.png new file mode 100644 index 0000000..07fb9ed Binary files /dev/null and b/digiterms/textures/font_mozart_00f2.png differ diff --git a/digiterms/textures/font_mozart_00f3.png b/digiterms/textures/font_mozart_00f3.png new file mode 100644 index 0000000..484bbcb Binary files /dev/null and b/digiterms/textures/font_mozart_00f3.png differ diff --git a/digiterms/textures/font_mozart_00f4.png b/digiterms/textures/font_mozart_00f4.png new file mode 100644 index 0000000..bc686c2 Binary files /dev/null and b/digiterms/textures/font_mozart_00f4.png differ diff --git a/digiterms/textures/font_mozart_00f5.png b/digiterms/textures/font_mozart_00f5.png new file mode 100644 index 0000000..6b62320 Binary files /dev/null and b/digiterms/textures/font_mozart_00f5.png differ diff --git a/digiterms/textures/font_mozart_00f6.png b/digiterms/textures/font_mozart_00f6.png new file mode 100644 index 0000000..d9a879a Binary files /dev/null and b/digiterms/textures/font_mozart_00f6.png differ diff --git a/digiterms/textures/font_mozart_00f7.png b/digiterms/textures/font_mozart_00f7.png new file mode 100644 index 0000000..fd5afda Binary files /dev/null and b/digiterms/textures/font_mozart_00f7.png differ diff --git a/digiterms/textures/font_mozart_00f8.png b/digiterms/textures/font_mozart_00f8.png new file mode 100644 index 0000000..d8c6af0 Binary files /dev/null and b/digiterms/textures/font_mozart_00f8.png differ diff --git a/digiterms/textures/font_mozart_00f9.png b/digiterms/textures/font_mozart_00f9.png new file mode 100644 index 0000000..4743bba Binary files /dev/null and b/digiterms/textures/font_mozart_00f9.png differ diff --git a/digiterms/textures/font_mozart_00fa.png b/digiterms/textures/font_mozart_00fa.png new file mode 100644 index 0000000..c32baac Binary files /dev/null and b/digiterms/textures/font_mozart_00fa.png differ diff --git a/digiterms/textures/font_mozart_00fb.png b/digiterms/textures/font_mozart_00fb.png new file mode 100644 index 0000000..0323545 Binary files /dev/null and b/digiterms/textures/font_mozart_00fb.png differ diff --git a/digiterms/textures/font_mozart_00fc.png b/digiterms/textures/font_mozart_00fc.png new file mode 100644 index 0000000..ab5f392 Binary files /dev/null and b/digiterms/textures/font_mozart_00fc.png differ diff --git a/digiterms/textures/font_mozart_00fd.png b/digiterms/textures/font_mozart_00fd.png new file mode 100644 index 0000000..8b4ed9a Binary files /dev/null and b/digiterms/textures/font_mozart_00fd.png differ diff --git a/digiterms/textures/font_mozart_00fe.png b/digiterms/textures/font_mozart_00fe.png new file mode 100644 index 0000000..4c402c1 Binary files /dev/null and b/digiterms/textures/font_mozart_00fe.png differ diff --git a/digiterms/textures/font_mozart_00ff.png b/digiterms/textures/font_mozart_00ff.png new file mode 100644 index 0000000..be2074e Binary files /dev/null and b/digiterms/textures/font_mozart_00ff.png differ diff --git a/digiterms/textures/font_mozart_016e.png b/digiterms/textures/font_mozart_016e.png new file mode 100644 index 0000000..4c93d0d Binary files /dev/null and b/digiterms/textures/font_mozart_016e.png differ diff --git a/digiterms/textures/font_mozart_016f.png b/digiterms/textures/font_mozart_016f.png new file mode 100644 index 0000000..adeb1b2 Binary files /dev/null and b/digiterms/textures/font_mozart_016f.png differ diff --git a/digiterms/textures/font_mozart_0178.png b/digiterms/textures/font_mozart_0178.png new file mode 100644 index 0000000..bb1715c Binary files /dev/null and b/digiterms/textures/font_mozart_0178.png differ diff --git a/digiterms/textures/font_mozart_0374.png b/digiterms/textures/font_mozart_0374.png new file mode 100644 index 0000000..8251c82 Binary files /dev/null and b/digiterms/textures/font_mozart_0374.png differ diff --git a/digiterms/textures/font_mozart_0375.png b/digiterms/textures/font_mozart_0375.png new file mode 100644 index 0000000..62542cf Binary files /dev/null and b/digiterms/textures/font_mozart_0375.png differ diff --git a/digiterms/textures/font_mozart_037a.png b/digiterms/textures/font_mozart_037a.png new file mode 100644 index 0000000..b9b2396 Binary files /dev/null and b/digiterms/textures/font_mozart_037a.png differ diff --git a/digiterms/textures/font_mozart_037e.png b/digiterms/textures/font_mozart_037e.png new file mode 100644 index 0000000..48841ef Binary files /dev/null and b/digiterms/textures/font_mozart_037e.png differ diff --git a/digiterms/textures/font_mozart_0391.png b/digiterms/textures/font_mozart_0391.png new file mode 100644 index 0000000..79dec87 Binary files /dev/null and b/digiterms/textures/font_mozart_0391.png differ diff --git a/digiterms/textures/font_mozart_0392.png b/digiterms/textures/font_mozart_0392.png new file mode 100644 index 0000000..f2d7b48 Binary files /dev/null and b/digiterms/textures/font_mozart_0392.png differ diff --git a/digiterms/textures/font_mozart_0393.png b/digiterms/textures/font_mozart_0393.png new file mode 100644 index 0000000..37c9119 Binary files /dev/null and b/digiterms/textures/font_mozart_0393.png differ diff --git a/digiterms/textures/font_mozart_0394.png b/digiterms/textures/font_mozart_0394.png new file mode 100644 index 0000000..90d1f9f Binary files /dev/null and b/digiterms/textures/font_mozart_0394.png differ diff --git a/digiterms/textures/font_mozart_0395.png b/digiterms/textures/font_mozart_0395.png new file mode 100644 index 0000000..78164f3 Binary files /dev/null and b/digiterms/textures/font_mozart_0395.png differ diff --git a/digiterms/textures/font_mozart_0396.png b/digiterms/textures/font_mozart_0396.png new file mode 100644 index 0000000..7b602e0 Binary files /dev/null and b/digiterms/textures/font_mozart_0396.png differ diff --git a/digiterms/textures/font_mozart_0397.png b/digiterms/textures/font_mozart_0397.png new file mode 100644 index 0000000..9a9e639 Binary files /dev/null and b/digiterms/textures/font_mozart_0397.png differ diff --git a/digiterms/textures/font_mozart_0398.png b/digiterms/textures/font_mozart_0398.png new file mode 100644 index 0000000..75638ae Binary files /dev/null and b/digiterms/textures/font_mozart_0398.png differ diff --git a/digiterms/textures/font_mozart_0399.png b/digiterms/textures/font_mozart_0399.png new file mode 100644 index 0000000..f33d8a1 Binary files /dev/null and b/digiterms/textures/font_mozart_0399.png differ diff --git a/digiterms/textures/font_mozart_039a.png b/digiterms/textures/font_mozart_039a.png new file mode 100644 index 0000000..d674b2b Binary files /dev/null and b/digiterms/textures/font_mozart_039a.png differ diff --git a/digiterms/textures/font_mozart_039b.png b/digiterms/textures/font_mozart_039b.png new file mode 100644 index 0000000..b6c3268 Binary files /dev/null and b/digiterms/textures/font_mozart_039b.png differ diff --git a/digiterms/textures/font_mozart_039c.png b/digiterms/textures/font_mozart_039c.png new file mode 100644 index 0000000..6c4b8cd Binary files /dev/null and b/digiterms/textures/font_mozart_039c.png differ diff --git a/digiterms/textures/font_mozart_039d.png b/digiterms/textures/font_mozart_039d.png new file mode 100644 index 0000000..2a32177 Binary files /dev/null and b/digiterms/textures/font_mozart_039d.png differ diff --git a/digiterms/textures/font_mozart_039e.png b/digiterms/textures/font_mozart_039e.png new file mode 100644 index 0000000..fb151dd Binary files /dev/null and b/digiterms/textures/font_mozart_039e.png differ diff --git a/digiterms/textures/font_mozart_039f.png b/digiterms/textures/font_mozart_039f.png new file mode 100644 index 0000000..4e12a02 Binary files /dev/null and b/digiterms/textures/font_mozart_039f.png differ diff --git a/digiterms/textures/font_mozart_03a0.png b/digiterms/textures/font_mozart_03a0.png new file mode 100644 index 0000000..cd3a021 Binary files /dev/null and b/digiterms/textures/font_mozart_03a0.png differ diff --git a/digiterms/textures/font_mozart_03a1.png b/digiterms/textures/font_mozart_03a1.png new file mode 100644 index 0000000..998899f Binary files /dev/null and b/digiterms/textures/font_mozart_03a1.png differ diff --git a/digiterms/textures/font_mozart_03a3.png b/digiterms/textures/font_mozart_03a3.png new file mode 100644 index 0000000..96d854a Binary files /dev/null and b/digiterms/textures/font_mozart_03a3.png differ diff --git a/digiterms/textures/font_mozart_03a4.png b/digiterms/textures/font_mozart_03a4.png new file mode 100644 index 0000000..621061c Binary files /dev/null and b/digiterms/textures/font_mozart_03a4.png differ diff --git a/digiterms/textures/font_mozart_03a5.png b/digiterms/textures/font_mozart_03a5.png new file mode 100644 index 0000000..532f74b Binary files /dev/null and b/digiterms/textures/font_mozart_03a5.png differ diff --git a/digiterms/textures/font_mozart_03a6.png b/digiterms/textures/font_mozart_03a6.png new file mode 100644 index 0000000..4dac2ad Binary files /dev/null and b/digiterms/textures/font_mozart_03a6.png differ diff --git a/digiterms/textures/font_mozart_03a7.png b/digiterms/textures/font_mozart_03a7.png new file mode 100644 index 0000000..acd1b28 Binary files /dev/null and b/digiterms/textures/font_mozart_03a7.png differ diff --git a/digiterms/textures/font_mozart_03a8.png b/digiterms/textures/font_mozart_03a8.png new file mode 100644 index 0000000..9c06bb9 Binary files /dev/null and b/digiterms/textures/font_mozart_03a8.png differ diff --git a/digiterms/textures/font_mozart_03a9.png b/digiterms/textures/font_mozart_03a9.png new file mode 100644 index 0000000..b59dc9b Binary files /dev/null and b/digiterms/textures/font_mozart_03a9.png differ diff --git a/digiterms/textures/font_mozart_03b1.png b/digiterms/textures/font_mozart_03b1.png new file mode 100644 index 0000000..945dd0e Binary files /dev/null and b/digiterms/textures/font_mozart_03b1.png differ diff --git a/digiterms/textures/font_mozart_03b2.png b/digiterms/textures/font_mozart_03b2.png new file mode 100644 index 0000000..a748b34 Binary files /dev/null and b/digiterms/textures/font_mozart_03b2.png differ diff --git a/digiterms/textures/font_mozart_03b3.png b/digiterms/textures/font_mozart_03b3.png new file mode 100644 index 0000000..9781348 Binary files /dev/null and b/digiterms/textures/font_mozart_03b3.png differ diff --git a/digiterms/textures/font_mozart_03b4.png b/digiterms/textures/font_mozart_03b4.png new file mode 100644 index 0000000..c508a86 Binary files /dev/null and b/digiterms/textures/font_mozart_03b4.png differ diff --git a/digiterms/textures/font_mozart_03b5.png b/digiterms/textures/font_mozart_03b5.png new file mode 100644 index 0000000..9e24501 Binary files /dev/null and b/digiterms/textures/font_mozart_03b5.png differ diff --git a/digiterms/textures/font_mozart_03b6.png b/digiterms/textures/font_mozart_03b6.png new file mode 100644 index 0000000..c251b2e Binary files /dev/null and b/digiterms/textures/font_mozart_03b6.png differ diff --git a/digiterms/textures/font_mozart_03b7.png b/digiterms/textures/font_mozart_03b7.png new file mode 100644 index 0000000..f62c9bd Binary files /dev/null and b/digiterms/textures/font_mozart_03b7.png differ diff --git a/digiterms/textures/font_mozart_03b8.png b/digiterms/textures/font_mozart_03b8.png new file mode 100644 index 0000000..de99aae Binary files /dev/null and b/digiterms/textures/font_mozart_03b8.png differ diff --git a/digiterms/textures/font_mozart_03b9.png b/digiterms/textures/font_mozart_03b9.png new file mode 100644 index 0000000..c3e739b Binary files /dev/null and b/digiterms/textures/font_mozart_03b9.png differ diff --git a/digiterms/textures/font_mozart_03ba.png b/digiterms/textures/font_mozart_03ba.png new file mode 100644 index 0000000..47b4adf Binary files /dev/null and b/digiterms/textures/font_mozart_03ba.png differ diff --git a/digiterms/textures/font_mozart_03bb.png b/digiterms/textures/font_mozart_03bb.png new file mode 100644 index 0000000..19a9474 Binary files /dev/null and b/digiterms/textures/font_mozart_03bb.png differ diff --git a/digiterms/textures/font_mozart_03bc.png b/digiterms/textures/font_mozart_03bc.png new file mode 100644 index 0000000..e757dd4 Binary files /dev/null and b/digiterms/textures/font_mozart_03bc.png differ diff --git a/digiterms/textures/font_mozart_03bd.png b/digiterms/textures/font_mozart_03bd.png new file mode 100644 index 0000000..421095b Binary files /dev/null and b/digiterms/textures/font_mozart_03bd.png differ diff --git a/digiterms/textures/font_mozart_03be.png b/digiterms/textures/font_mozart_03be.png new file mode 100644 index 0000000..91d65fb Binary files /dev/null and b/digiterms/textures/font_mozart_03be.png differ diff --git a/digiterms/textures/font_mozart_03bf.png b/digiterms/textures/font_mozart_03bf.png new file mode 100644 index 0000000..bd20877 Binary files /dev/null and b/digiterms/textures/font_mozart_03bf.png differ diff --git a/digiterms/textures/font_mozart_03c0.png b/digiterms/textures/font_mozart_03c0.png new file mode 100644 index 0000000..f71b7aa Binary files /dev/null and b/digiterms/textures/font_mozart_03c0.png differ diff --git a/digiterms/textures/font_mozart_03c1.png b/digiterms/textures/font_mozart_03c1.png new file mode 100644 index 0000000..842570c Binary files /dev/null and b/digiterms/textures/font_mozart_03c1.png differ diff --git a/digiterms/textures/font_mozart_03c2.png b/digiterms/textures/font_mozart_03c2.png new file mode 100644 index 0000000..0a3c7c6 Binary files /dev/null and b/digiterms/textures/font_mozart_03c2.png differ diff --git a/digiterms/textures/font_mozart_03c3.png b/digiterms/textures/font_mozart_03c3.png new file mode 100644 index 0000000..1a8f017 Binary files /dev/null and b/digiterms/textures/font_mozart_03c3.png differ diff --git a/digiterms/textures/font_mozart_03c4.png b/digiterms/textures/font_mozart_03c4.png new file mode 100644 index 0000000..102e3fb Binary files /dev/null and b/digiterms/textures/font_mozart_03c4.png differ diff --git a/digiterms/textures/font_mozart_03c5.png b/digiterms/textures/font_mozart_03c5.png new file mode 100644 index 0000000..1ec2e22 Binary files /dev/null and b/digiterms/textures/font_mozart_03c5.png differ diff --git a/digiterms/textures/font_mozart_03c6.png b/digiterms/textures/font_mozart_03c6.png new file mode 100644 index 0000000..432fe03 Binary files /dev/null and b/digiterms/textures/font_mozart_03c6.png differ diff --git a/digiterms/textures/font_mozart_03c7.png b/digiterms/textures/font_mozart_03c7.png new file mode 100644 index 0000000..6c778a4 Binary files /dev/null and b/digiterms/textures/font_mozart_03c7.png differ diff --git a/digiterms/textures/font_mozart_03c8.png b/digiterms/textures/font_mozart_03c8.png new file mode 100644 index 0000000..13701e4 Binary files /dev/null and b/digiterms/textures/font_mozart_03c8.png differ diff --git a/digiterms/textures/font_mozart_03c9.png b/digiterms/textures/font_mozart_03c9.png new file mode 100644 index 0000000..fe96484 Binary files /dev/null and b/digiterms/textures/font_mozart_03c9.png differ diff --git a/digiterms/textures/font_mozart_0410.png b/digiterms/textures/font_mozart_0410.png new file mode 100644 index 0000000..3c57104 Binary files /dev/null and b/digiterms/textures/font_mozart_0410.png differ diff --git a/digiterms/textures/font_mozart_0411.png b/digiterms/textures/font_mozart_0411.png new file mode 100644 index 0000000..faac56a Binary files /dev/null and b/digiterms/textures/font_mozart_0411.png differ diff --git a/digiterms/textures/font_mozart_0412.png b/digiterms/textures/font_mozart_0412.png new file mode 100644 index 0000000..bb1e332 Binary files /dev/null and b/digiterms/textures/font_mozart_0412.png differ diff --git a/digiterms/textures/font_mozart_0413.png b/digiterms/textures/font_mozart_0413.png new file mode 100644 index 0000000..2eba2bc Binary files /dev/null and b/digiterms/textures/font_mozart_0413.png differ diff --git a/digiterms/textures/font_mozart_0414.png b/digiterms/textures/font_mozart_0414.png new file mode 100644 index 0000000..09d340c Binary files /dev/null and b/digiterms/textures/font_mozart_0414.png differ diff --git a/digiterms/textures/font_mozart_0415.png b/digiterms/textures/font_mozart_0415.png new file mode 100644 index 0000000..96c7cdc Binary files /dev/null and b/digiterms/textures/font_mozart_0415.png differ diff --git a/digiterms/textures/font_mozart_0416.png b/digiterms/textures/font_mozart_0416.png new file mode 100644 index 0000000..b5f0801 Binary files /dev/null and b/digiterms/textures/font_mozart_0416.png differ diff --git a/digiterms/textures/font_mozart_0417.png b/digiterms/textures/font_mozart_0417.png new file mode 100644 index 0000000..57a7852 Binary files /dev/null and b/digiterms/textures/font_mozart_0417.png differ diff --git a/digiterms/textures/font_mozart_0418.png b/digiterms/textures/font_mozart_0418.png new file mode 100644 index 0000000..65b2f0e Binary files /dev/null and b/digiterms/textures/font_mozart_0418.png differ diff --git a/digiterms/textures/font_mozart_0419.png b/digiterms/textures/font_mozart_0419.png new file mode 100644 index 0000000..a5fee86 Binary files /dev/null and b/digiterms/textures/font_mozart_0419.png differ diff --git a/digiterms/textures/font_mozart_041a.png b/digiterms/textures/font_mozart_041a.png new file mode 100644 index 0000000..10116e1 Binary files /dev/null and b/digiterms/textures/font_mozart_041a.png differ diff --git a/digiterms/textures/font_mozart_041b.png b/digiterms/textures/font_mozart_041b.png new file mode 100644 index 0000000..f902cc1 Binary files /dev/null and b/digiterms/textures/font_mozart_041b.png differ diff --git a/digiterms/textures/font_mozart_041c.png b/digiterms/textures/font_mozart_041c.png new file mode 100644 index 0000000..b572275 Binary files /dev/null and b/digiterms/textures/font_mozart_041c.png differ diff --git a/digiterms/textures/font_mozart_041d.png b/digiterms/textures/font_mozart_041d.png new file mode 100644 index 0000000..0114587 Binary files /dev/null and b/digiterms/textures/font_mozart_041d.png differ diff --git a/digiterms/textures/font_mozart_041e.png b/digiterms/textures/font_mozart_041e.png new file mode 100644 index 0000000..a7d872c Binary files /dev/null and b/digiterms/textures/font_mozart_041e.png differ diff --git a/digiterms/textures/font_mozart_041f.png b/digiterms/textures/font_mozart_041f.png new file mode 100644 index 0000000..ebf9e0f Binary files /dev/null and b/digiterms/textures/font_mozart_041f.png differ diff --git a/digiterms/textures/font_mozart_0420.png b/digiterms/textures/font_mozart_0420.png new file mode 100644 index 0000000..9c3fb04 Binary files /dev/null and b/digiterms/textures/font_mozart_0420.png differ diff --git a/digiterms/textures/font_mozart_0421.png b/digiterms/textures/font_mozart_0421.png new file mode 100644 index 0000000..42da2d5 Binary files /dev/null and b/digiterms/textures/font_mozart_0421.png differ diff --git a/digiterms/textures/font_mozart_0422.png b/digiterms/textures/font_mozart_0422.png new file mode 100644 index 0000000..3217853 Binary files /dev/null and b/digiterms/textures/font_mozart_0422.png differ diff --git a/digiterms/textures/font_mozart_0423.png b/digiterms/textures/font_mozart_0423.png new file mode 100644 index 0000000..ef1df0a Binary files /dev/null and b/digiterms/textures/font_mozart_0423.png differ diff --git a/digiterms/textures/font_mozart_0424.png b/digiterms/textures/font_mozart_0424.png new file mode 100644 index 0000000..eabb64e Binary files /dev/null and b/digiterms/textures/font_mozart_0424.png differ diff --git a/digiterms/textures/font_mozart_0425.png b/digiterms/textures/font_mozart_0425.png new file mode 100644 index 0000000..4f1a74d Binary files /dev/null and b/digiterms/textures/font_mozart_0425.png differ diff --git a/digiterms/textures/font_mozart_0426.png b/digiterms/textures/font_mozart_0426.png new file mode 100644 index 0000000..be70faa Binary files /dev/null and b/digiterms/textures/font_mozart_0426.png differ diff --git a/digiterms/textures/font_mozart_0427.png b/digiterms/textures/font_mozart_0427.png new file mode 100644 index 0000000..19cba5a Binary files /dev/null and b/digiterms/textures/font_mozart_0427.png differ diff --git a/digiterms/textures/font_mozart_0428.png b/digiterms/textures/font_mozart_0428.png new file mode 100644 index 0000000..4754180 Binary files /dev/null and b/digiterms/textures/font_mozart_0428.png differ diff --git a/digiterms/textures/font_mozart_0429.png b/digiterms/textures/font_mozart_0429.png new file mode 100644 index 0000000..b488e4c Binary files /dev/null and b/digiterms/textures/font_mozart_0429.png differ diff --git a/digiterms/textures/font_mozart_042a.png b/digiterms/textures/font_mozart_042a.png new file mode 100644 index 0000000..7f55ac8 Binary files /dev/null and b/digiterms/textures/font_mozart_042a.png differ diff --git a/digiterms/textures/font_mozart_042b.png b/digiterms/textures/font_mozart_042b.png new file mode 100644 index 0000000..bf304dc Binary files /dev/null and b/digiterms/textures/font_mozart_042b.png differ diff --git a/digiterms/textures/font_mozart_042c.png b/digiterms/textures/font_mozart_042c.png new file mode 100644 index 0000000..55549cc Binary files /dev/null and b/digiterms/textures/font_mozart_042c.png differ diff --git a/digiterms/textures/font_mozart_042d.png b/digiterms/textures/font_mozart_042d.png new file mode 100644 index 0000000..6c2b558 Binary files /dev/null and b/digiterms/textures/font_mozart_042d.png differ diff --git a/digiterms/textures/font_mozart_042e.png b/digiterms/textures/font_mozart_042e.png new file mode 100644 index 0000000..da59c1e Binary files /dev/null and b/digiterms/textures/font_mozart_042e.png differ diff --git a/digiterms/textures/font_mozart_042f.png b/digiterms/textures/font_mozart_042f.png new file mode 100644 index 0000000..5378fbf Binary files /dev/null and b/digiterms/textures/font_mozart_042f.png differ diff --git a/digiterms/textures/font_mozart_0430.png b/digiterms/textures/font_mozart_0430.png new file mode 100644 index 0000000..735391f Binary files /dev/null and b/digiterms/textures/font_mozart_0430.png differ diff --git a/digiterms/textures/font_mozart_0431.png b/digiterms/textures/font_mozart_0431.png new file mode 100644 index 0000000..0fe335b Binary files /dev/null and b/digiterms/textures/font_mozart_0431.png differ diff --git a/digiterms/textures/font_mozart_0432.png b/digiterms/textures/font_mozart_0432.png new file mode 100644 index 0000000..1de1e75 Binary files /dev/null and b/digiterms/textures/font_mozart_0432.png differ diff --git a/digiterms/textures/font_mozart_0433.png b/digiterms/textures/font_mozart_0433.png new file mode 100644 index 0000000..dc69a05 Binary files /dev/null and b/digiterms/textures/font_mozart_0433.png differ diff --git a/digiterms/textures/font_mozart_0434.png b/digiterms/textures/font_mozart_0434.png new file mode 100644 index 0000000..43f4662 Binary files /dev/null and b/digiterms/textures/font_mozart_0434.png differ diff --git a/digiterms/textures/font_mozart_0435.png b/digiterms/textures/font_mozart_0435.png new file mode 100644 index 0000000..80c2ff6 Binary files /dev/null and b/digiterms/textures/font_mozart_0435.png differ diff --git a/digiterms/textures/font_mozart_0436.png b/digiterms/textures/font_mozart_0436.png new file mode 100644 index 0000000..3009902 Binary files /dev/null and b/digiterms/textures/font_mozart_0436.png differ diff --git a/digiterms/textures/font_mozart_0437.png b/digiterms/textures/font_mozart_0437.png new file mode 100644 index 0000000..4f8ac70 Binary files /dev/null and b/digiterms/textures/font_mozart_0437.png differ diff --git a/digiterms/textures/font_mozart_0438.png b/digiterms/textures/font_mozart_0438.png new file mode 100644 index 0000000..1da453c Binary files /dev/null and b/digiterms/textures/font_mozart_0438.png differ diff --git a/digiterms/textures/font_mozart_0439.png b/digiterms/textures/font_mozart_0439.png new file mode 100644 index 0000000..6639477 Binary files /dev/null and b/digiterms/textures/font_mozart_0439.png differ diff --git a/digiterms/textures/font_mozart_043a.png b/digiterms/textures/font_mozart_043a.png new file mode 100644 index 0000000..a6d87d1 Binary files /dev/null and b/digiterms/textures/font_mozart_043a.png differ diff --git a/digiterms/textures/font_mozart_043b.png b/digiterms/textures/font_mozart_043b.png new file mode 100644 index 0000000..77b3da7 Binary files /dev/null and b/digiterms/textures/font_mozart_043b.png differ diff --git a/digiterms/textures/font_mozart_043c.png b/digiterms/textures/font_mozart_043c.png new file mode 100644 index 0000000..582b98a Binary files /dev/null and b/digiterms/textures/font_mozart_043c.png differ diff --git a/digiterms/textures/font_mozart_043d.png b/digiterms/textures/font_mozart_043d.png new file mode 100644 index 0000000..17cf3c5 Binary files /dev/null and b/digiterms/textures/font_mozart_043d.png differ diff --git a/digiterms/textures/font_mozart_043e.png b/digiterms/textures/font_mozart_043e.png new file mode 100644 index 0000000..3e8e04c Binary files /dev/null and b/digiterms/textures/font_mozart_043e.png differ diff --git a/digiterms/textures/font_mozart_043f.png b/digiterms/textures/font_mozart_043f.png new file mode 100644 index 0000000..75e6d63 Binary files /dev/null and b/digiterms/textures/font_mozart_043f.png differ diff --git a/digiterms/textures/font_mozart_0440.png b/digiterms/textures/font_mozart_0440.png new file mode 100644 index 0000000..75e4bfc Binary files /dev/null and b/digiterms/textures/font_mozart_0440.png differ diff --git a/digiterms/textures/font_mozart_0441.png b/digiterms/textures/font_mozart_0441.png new file mode 100644 index 0000000..29f9385 Binary files /dev/null and b/digiterms/textures/font_mozart_0441.png differ diff --git a/digiterms/textures/font_mozart_0442.png b/digiterms/textures/font_mozart_0442.png new file mode 100644 index 0000000..ae2258d Binary files /dev/null and b/digiterms/textures/font_mozart_0442.png differ diff --git a/digiterms/textures/font_mozart_0443.png b/digiterms/textures/font_mozart_0443.png new file mode 100644 index 0000000..e05a08d Binary files /dev/null and b/digiterms/textures/font_mozart_0443.png differ diff --git a/digiterms/textures/font_mozart_0444.png b/digiterms/textures/font_mozart_0444.png new file mode 100644 index 0000000..e1e9af3 Binary files /dev/null and b/digiterms/textures/font_mozart_0444.png differ diff --git a/digiterms/textures/font_mozart_0445.png b/digiterms/textures/font_mozart_0445.png new file mode 100644 index 0000000..fc114f2 Binary files /dev/null and b/digiterms/textures/font_mozart_0445.png differ diff --git a/digiterms/textures/font_mozart_0446.png b/digiterms/textures/font_mozart_0446.png new file mode 100644 index 0000000..a31fb57 Binary files /dev/null and b/digiterms/textures/font_mozart_0446.png differ diff --git a/digiterms/textures/font_mozart_0447.png b/digiterms/textures/font_mozart_0447.png new file mode 100644 index 0000000..940883a Binary files /dev/null and b/digiterms/textures/font_mozart_0447.png differ diff --git a/digiterms/textures/font_mozart_0448.png b/digiterms/textures/font_mozart_0448.png new file mode 100644 index 0000000..32ea219 Binary files /dev/null and b/digiterms/textures/font_mozart_0448.png differ diff --git a/digiterms/textures/font_mozart_0449.png b/digiterms/textures/font_mozart_0449.png new file mode 100644 index 0000000..ab0d701 Binary files /dev/null and b/digiterms/textures/font_mozart_0449.png differ diff --git a/digiterms/textures/font_mozart_044a.png b/digiterms/textures/font_mozart_044a.png new file mode 100644 index 0000000..d141e33 Binary files /dev/null and b/digiterms/textures/font_mozart_044a.png differ diff --git a/digiterms/textures/font_mozart_044b.png b/digiterms/textures/font_mozart_044b.png new file mode 100644 index 0000000..ee80302 Binary files /dev/null and b/digiterms/textures/font_mozart_044b.png differ diff --git a/digiterms/textures/font_mozart_044c.png b/digiterms/textures/font_mozart_044c.png new file mode 100644 index 0000000..6c4a749 Binary files /dev/null and b/digiterms/textures/font_mozart_044c.png differ diff --git a/digiterms/textures/font_mozart_044d.png b/digiterms/textures/font_mozart_044d.png new file mode 100644 index 0000000..b53f61b Binary files /dev/null and b/digiterms/textures/font_mozart_044d.png differ diff --git a/digiterms/textures/font_mozart_044e.png b/digiterms/textures/font_mozart_044e.png new file mode 100644 index 0000000..bcb0bcb Binary files /dev/null and b/digiterms/textures/font_mozart_044e.png differ diff --git a/digiterms/textures/font_mozart_044f.png b/digiterms/textures/font_mozart_044f.png new file mode 100644 index 0000000..f21e424 Binary files /dev/null and b/digiterms/textures/font_mozart_044f.png differ diff --git a/digiterms/textures/font_mozart_2014.png b/digiterms/textures/font_mozart_2014.png new file mode 100644 index 0000000..0529e2e Binary files /dev/null and b/digiterms/textures/font_mozart_2014.png differ diff --git a/digiterms/textures/font_mozart_2018.png b/digiterms/textures/font_mozart_2018.png new file mode 100644 index 0000000..7df3a47 Binary files /dev/null and b/digiterms/textures/font_mozart_2018.png differ diff --git a/digiterms/textures/font_mozart_2019.png b/digiterms/textures/font_mozart_2019.png new file mode 100644 index 0000000..5cecb72 Binary files /dev/null and b/digiterms/textures/font_mozart_2019.png differ diff --git a/digiterms/textures/font_mozart_201a.png b/digiterms/textures/font_mozart_201a.png new file mode 100644 index 0000000..dd5005b Binary files /dev/null and b/digiterms/textures/font_mozart_201a.png differ diff --git a/digiterms/textures/font_mozart_201b.png b/digiterms/textures/font_mozart_201b.png new file mode 100644 index 0000000..3181b81 Binary files /dev/null and b/digiterms/textures/font_mozart_201b.png differ diff --git a/digiterms/textures/font_mozart_201c.png b/digiterms/textures/font_mozart_201c.png new file mode 100644 index 0000000..b5ec3da Binary files /dev/null and b/digiterms/textures/font_mozart_201c.png differ diff --git a/digiterms/textures/font_mozart_201d.png b/digiterms/textures/font_mozart_201d.png new file mode 100644 index 0000000..d24f39d Binary files /dev/null and b/digiterms/textures/font_mozart_201d.png differ diff --git a/digiterms/textures/font_mozart_201e.png b/digiterms/textures/font_mozart_201e.png new file mode 100644 index 0000000..f7baf98 Binary files /dev/null and b/digiterms/textures/font_mozart_201e.png differ diff --git a/digiterms/textures/font_mozart_20ac.png b/digiterms/textures/font_mozart_20ac.png new file mode 100644 index 0000000..e38e7df Binary files /dev/null and b/digiterms/textures/font_mozart_20ac.png differ diff --git a/digiterms/textures/scifi_nodes_black.png b/digiterms/textures/scifi_nodes_black.png new file mode 100644 index 0000000..7684b81 Binary files /dev/null and b/digiterms/textures/scifi_nodes_black.png differ diff --git a/digiterms/textures/scifi_nodes_keyboard.png b/digiterms/textures/scifi_nodes_keyboard.png new file mode 100644 index 0000000..f9d9b45 Binary files /dev/null and b/digiterms/textures/scifi_nodes_keyboard.png differ diff --git a/ham_radio/LICENSE.txt b/ham_radio/LICENSE.txt new file mode 100644 index 0000000..1a12df6 --- /dev/null +++ b/ham_radio/LICENSE.txt @@ -0,0 +1,7 @@ +Copyright 2019 Serhii "techniX" Mozhaiskyi + +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. \ No newline at end of file diff --git a/ham_radio/README.md b/ham_radio/README.md new file mode 100644 index 0000000..f3ca1c3 --- /dev/null +++ b/ham_radio/README.md @@ -0,0 +1,57 @@ +# Ham Radio + +![Ham Radio screenshot](screenshot.png?raw=true) + +This mod brings radio transmitters and receivers to the Minetest world. + +Dependencies: +``` +default +basic_materials? +technic? +digilines? +``` +Craft recipes depend of the mods installed. + +## Transmitter + +Craft a transmitter and place it in the world. Right click on transmitter to open configuration dialog, then set frequency and RDS message. +- Empty frequency turns transmitter off. +- Transmitter information is displayed as info text when player points at it. +- RDS message and frequency can be set via digiline. Also, you can read transmitter configuration via digiline too. + +## Beacon + +Beacon is a simplified transmitter. After placement it automatically tunes on a random unoccupied frequency from predefined range. Beacon frequency range is determined by `beacon_frequency` setting. +- Beacon frequency is displayed as info text when player points at it. + +## Receiver + +Handheld receiver is a wielded tool. + +- Left click opens configuration dialog to set frequency. Empty string turns receiver off. +- Right click toggles reception of RDS messages. + +When receiver is tuned to a frequency where at least one transmitter is present, HUD signal meter bar shows signal power. The signal power depends on distance and direction to the transmitter. + +If RDS reception is toggled on, the RDS messages from all transmitters on this frequency are enqueued and will be send one by one as a chat messages to the player with 10 seconds interval. When RDS message queue becomes empty, it refills and starts over again. + +## What's next? + +- Place beacons or transmitters anywhere in the world, give frequency to other players and let them search for them +- Pick a frequency which all players can use for their announcements to organize radio bulletin board +- Operate your transmitters with digiline to receive notification on radio +- ??? +- PROFIT + +## Author and license + +(c) techniX 2019 + +Source code: MIT + +Textures: CC BY-SA 3.0 + +Sounds: cut from "G32-20-Tuning Radio" by craigsmith, CC 0 + + diff --git a/ham_radio/beacon.lua b/ham_radio/beacon.lua new file mode 100644 index 0000000..623cfe0 --- /dev/null +++ b/ham_radio/beacon.lua @@ -0,0 +1,41 @@ +minetest.register_node("ham_radio:beacon", { + description = "Radio Beacon", + tiles = { + "ham_radio_transmitter_top.png", + "ham_radio_transmitter_top.png", + "ham_radio_transmitter_side.png", + "ham_radio_transmitter_side.png", + "ham_radio_transmitter_side.png", + "ham_radio_beacon_front.png" + }, + groups = {cracky=2,oddly_breakable_by_hand=2}, + sounds = default.node_sound_metal_defaults(), + paramtype2 = "facedir", + drawtype = "nodebox", + paramtype = "light", + node_box = { + type = "fixed", + fixed = {-0.5, -0.5, -0.5, 0.5, 0, 0.5}, + }, + light_source = 3, + after_place_node = function(pos, placer) + local meta = minetest.get_meta(pos); + if minetest.is_player(placer) then + local name = placer:get_player_name() + meta:set_string('operated_by', name) + ham_radio.play_tuning_sound(placer) + end + meta:set_string("frequency", ham_radio.find_free_frequency(ham_radio.settings.beacon_frequency)) + ham_radio.transmitter_update_infotext(meta) + ham_radio.save_transmitter(pos, meta) + end, + can_dig = function(pos,player) + local meta = minetest.get_meta(pos); + local inv = meta:get_inventory() + local name = player:get_player_name() + return inv:is_empty("main") and not minetest.is_protected(pos, name) + end, + after_dig_node = function(pos, oldnode, oldmetadata, player) + ham_radio.delete_transmitter(pos) + end, +}); diff --git a/ham_radio/config.lua b/ham_radio/config.lua new file mode 100644 index 0000000..85a639b --- /dev/null +++ b/ham_radio/config.lua @@ -0,0 +1,31 @@ +ham_radio.settings = { + -- color of RDS messages + rds_color = '#4863A0', + -- interval between RDS messages (seconds) + rds_interval = 10, + -- receiver hud position + hud_pos = { x = 0.5, y = 0.8 }, + -- hud message color + hud_color = { + active = "0xFCAD00", + inactive = "0x999999" + }, + -- radio frequency range + frequency = { + min = 0, + max = 9999999 + }, + -- range where only one transmitter is permitted + locked_frequency = { + min = 100000, + max = 9999999 + }, + -- sub-range of locked frequency range + beacon_frequency = { + min = 1000000, + max = 9999999 + }, + -- digiline config + digiline_channel = "ham_radio", + digiline_rds_channel = "ham_radio_rds", +} diff --git a/ham_radio/craft.lua b/ham_radio/craft.lua new file mode 100644 index 0000000..f261a6a --- /dev/null +++ b/ham_radio/craft.lua @@ -0,0 +1,58 @@ +local circuit = 'default:mese_crystal' +local body = 'default:steel_ingot' +local wires = 'default:copper_ingot' +local glass = 'default:glass' +local antenna = wires +local battery = 'default:mese_crystal' + +if minetest.get_modpath("basic_materials") then + circuit = 'basic_materials:ic' + body = 'basic_materials:plastic_sheet' + wires = 'basic_materials:copper_wire' + antenna = wires + battery = 'basic_materials:simple_energy_crystal' +end + +if minetest.get_modpath("technic") then + antenna = 'technic:copper_coil' + battery = 'technic:battery' +end + +minetest.register_craftitem("ham_radio:circuit", { + description = "Radio Circuit", + inventory_image = "ham_radio_circuit.png", +}) + +minetest.register_craft({ + output = "ham_radio:circuit", + recipe = { + {circuit, wires, circuit}, + {body, battery, body}, + } +}) + +minetest.register_craft({ + output = "ham_radio:handheld_receiver", + recipe = { + {'', antenna, ''}, + {'','ham_radio:circuit', ''}, + {body, body, body} + } +}) + +minetest.register_craft({ + output = "ham_radio:transmitter", + recipe = { + {wires, antenna, wires}, + {glass, 'ham_radio:circuit', glass}, + {body, body, body} + } +}) + +minetest.register_craft({ + output = "ham_radio:beacon", + recipe = { + {antenna, body}, + {wires, 'ham_radio:circuit'}, + } +}) diff --git a/ham_radio/depends.txt b/ham_radio/depends.txt new file mode 100644 index 0000000..06ffbfd --- /dev/null +++ b/ham_radio/depends.txt @@ -0,0 +1,4 @@ +default +basic_materials? +technic? +digilines? \ No newline at end of file diff --git a/ham_radio/digiline.lua b/ham_radio/digiline.lua new file mode 100644 index 0000000..b8ec8c5 --- /dev/null +++ b/ham_radio/digiline.lua @@ -0,0 +1,47 @@ +ham_radio.digiline_effector = function(pos, _, channel, msg) + local command_channel = ham_radio.settings.digiline_channel -- static channel + local rds_channel = ham_radio.settings.digiline_rds_channel + + if channel ~= command_channel and channel ~= rds_channel then + return + end + + local meta = minetest.get_meta(pos) + + -- RDS channel - text message + if channel == rds_channel then + if type(msg) == "string" then + meta:set_string("rds_message", msg) + ham_radio.transmitter_update_infotext(meta) + ham_radio.save_transmitter(pos, meta) + end + return + end + + -- command channel + + if type(msg) ~= "table" then + return + end + + if msg.command == "get" then + digilines.receptor_send(pos, digilines.rules.default, digiline_channel, { + frequency = meta:get_string("frequency"), + rds_message = meta:get_string("rds_message"), + }) + + elseif msg.command == "frequency" then + local new_frequency = msg.value + if ham_radio.validate_frequency(new_frequency).result then + meta:set_string("frequency", new_frequency) + ham_radio.transmitter_update_infotext(meta) + ham_radio.save_transmitter(pos, meta) + end + + elseif msg.command == "rds" or msg.command == "message" or msg.command == "rds_message" then + meta:set_string("rds_message", msg.value) + ham_radio.transmitter_update_infotext(meta) + ham_radio.save_transmitter(pos, meta) + + end +end \ No newline at end of file diff --git a/ham_radio/helpers.lua b/ham_radio/helpers.lua new file mode 100644 index 0000000..6e732ad --- /dev/null +++ b/ham_radio/helpers.lua @@ -0,0 +1,53 @@ +function ham_radio.validate_frequency(frequency, is_receiver) + if frequency == "" then + return { result = true, message = '' } -- empty frequency is allowed to disable transmitter/receiver + end + local transmission_is_allowed = true + local num_freq = tonumber(frequency) + local freq = tostring(num_freq) + if is_receiver == nil and next(ham_radio.find_transmitters(frequency)) then + if num_freq >= ham_radio.settings.locked_frequency.min + and num_freq <= ham_radio.settings.locked_frequency.max then + -- transmitter is in locked frequency range + transmission_is_allowed = false + end + end + local result = true + local message = '' + if freq ~= frequency or num_freq ~= math.floor(num_freq) then + result = false + message = 'Error: invalid frequency value.' + elseif num_freq == nil then + result = false + message = 'Error: frequency should be numeric.' + elseif num_freq < ham_radio.settings.frequency.min or num_freq > ham_radio.settings.frequency.max then + result = false + message = 'Error: frequency is out of range.' + elseif transmission_is_allowed == false then + result = false + message = 'Error: frequency is occupied by other transmitter.' + end + return { result = result, message = message } +end + +function ham_radio.find_transmitters(frequency) + local transmitter_list = {} + for key, transmitter in pairs(ham_radio.transmitters) do + if transmitter.frequency == frequency then + transmitter_list[key] = transmitter + end + end + return transmitter_list +end + +function ham_radio.find_free_frequency(range) + local frequency = -1 + while frequency == -1 do + frequency = tostring(math.floor(math.random(range.min, range.max))); + local are_there_transmitters = ham_radio.find_transmitters(frequency) + if next(are_there_transmitters) then + frequency = -1 + end + end + return frequency +end diff --git a/ham_radio/hud.lua b/ham_radio/hud.lua new file mode 100644 index 0000000..d1e8aac --- /dev/null +++ b/ham_radio/hud.lua @@ -0,0 +1,128 @@ + +function ham_radio.toggle_hud(player) + local name = player:get_player_name() + local item = player:get_wielded_item() + + -- remove hud and RDS if user does not wield a receiver + if item:get_name() ~= "ham_radio:handheld_receiver" then + if ham_radio.is_receiver_wielded[name] then + for hud_id, hud_handler in pairs(ham_radio.playerhuds[name]) do + player:hud_remove(hud_handler) + end + ham_radio.playerhuds[name] = nil + ham_radio.is_receiver_wielded[name] = false + ham_radio.player_rds[name] = nil + end + return false + end + + -- if hud is already enabled, pass + if ham_radio.is_receiver_wielded[name] then + return true + end + + -- create hud + ham_radio.is_receiver_wielded[name] = true + + local hud_pos = ham_radio.settings.hud_pos + local hud_color = ham_radio.settings.hud_color + + ham_radio.playerhuds[name] = { + background = player:hud_add({ + hud_elem_type = "image", + position = hud_pos, + offset = { x = -250, y = 20 }, + text = "ham_radio_hud_bg.png", + scale = { x = 2, y = 2 }, + alignment = { x = 1, y = 0 }, + }), + frequency = player:hud_add({ + hud_elem_type = "text", + text = "", + position = hud_pos, + offset = { x = -220, y = 5 }, + alignment = { x = 1, y = 0}, + number = hud_color.inactive, + scale= { x = 100, y = 20 }, + }), + rds = player:hud_add({ + hud_elem_type = "text", + text = "", + position = hud_pos, + offset = { x = 220, y = 5 }, + alignment = { x = -1, y = 0}, + number = hud_color.inactive, + scale= { x = 100, y = 20 }, + }), + signal_meter = player:hud_add({ + hud_elem_type = "image", + position = hud_pos, + offset = { x = -220, y = 35 }, + text = "ham_radio_hud_indicator_empty.png", + scale = { x = 2, y = 1 }, + alignment = { x = 1, y = 0 }, + }), + signal_level = player:hud_add({ + hud_elem_type = "image", + position = hud_pos, + offset = { x = -220, y = 35 }, + text = "ham_radio_hud_indicator_full.png", + scale = { x = 0, y = 1 }, + alignment = { x = 1, y = 0 }, + }) + } + return true +end + + +function ham_radio:update_hud_display(player) + + if not ham_radio.toggle_hud(player) then + return + end + + local signal_power = 0 + local name = player:get_player_name() + local meta = player:get_wielded_item():get_meta() + local frequency = meta:get_string("frequency") + + if frequency ~= nil and frequency ~= "" then + local transmitters = self.find_transmitters(frequency) + for position, transmitter in pairs(transmitters) do + local transmitter_signal = self:locate_transmitter(player, minetest.string_to_pos(position)) + if transmitter_signal > signal_power then + -- use max power from transmitters nearby + signal_power = transmitter_signal + end + end + end + + local hud_color = ham_radio.settings.hud_color + + -- update frequency hud + local frequency_text = "FQ ---" + local frequency_color = hud_color.inactive + if frequency ~= "" then + frequency_text = "FQ "..frequency + frequency_color = hud_color.active + end + player:hud_change(self.playerhuds[name].frequency, "text", frequency_text) + player:hud_change(self.playerhuds[name].frequency, "number", frequency_color) + + -- update RDS hud + local rds_text = "RDS off" + local rds_color = hud_color.inactive + if meta:get_string("rds_disabled") == "" then + rds_text = "RDS ON" + rds_color = hud_color.active + end + player:hud_change(self.playerhuds[name].rds, "text", rds_text) + player:hud_change(self.playerhuds[name].rds, "number", rds_color) + + -- update signal level hud + player:hud_change( + self.playerhuds[name].signal_level, + "scale", + { x = signal_power/50 or 0.1, y = 1 } -- x scale should be 0-2 + ) +end diff --git a/ham_radio/init.lua b/ham_radio/init.lua new file mode 100644 index 0000000..1254b9c --- /dev/null +++ b/ham_radio/init.lua @@ -0,0 +1,88 @@ +local modpath = minetest.get_modpath("ham_radio") +local mod_storage = minetest.get_mod_storage() + +ham_radio = rawget(_G, "ham_radio") or {} + +ham_radio = { + playerhuds = {}, + player_rds = {}, + is_receiver_wielded = {}, + transmitters = {}, +} + +-- preload transmitter data +local all_transmitters = mod_storage:to_table().fields +for key, transmitter_data in pairs(all_transmitters) do + ham_radio.transmitters[key] = minetest.parse_json(transmitter_data) +end + +function ham_radio.save_transmitter(pos, meta) + local transmitter_properties = { + frequency = meta:get_string("frequency"), + rds_message = meta:get_string("rds_message"), + operated_by = meta:get_string("operated_by") + } + local key = minetest.pos_to_string(pos, 0) + ham_radio.transmitters[key] = transmitter_properties -- cache + mod_storage:set_string(key, minetest.write_json(transmitter_properties)) -- storage +end + +function ham_radio.delete_transmitter(pos) + local key = minetest.pos_to_string(pos, 0) + ham_radio.transmitters[key] = nil -- cache + mod_storage:set_string(key, '') -- storage +end + +function ham_radio.play_tuning_sound(player) + minetest.sound_play( + {name = "ham_radio_tuning"..math.random(1,5)}, + {to_player = player:get_player_name()} + ) +end + +function ham_radio.errormsg(player, message) + minetest.chat_send_player(player:get_player_name(), minetest.colorize("#FCAD00", message)) +end + +dofile(modpath.."/config.lua") + +dofile(modpath.."/helpers.lua") +dofile(modpath.."/craft.lua") +dofile(modpath.."/digiline.lua") +dofile(modpath.."/transmitter.lua") +dofile(modpath.."/receiver.lua") +dofile(modpath.."/beacon.lua") +dofile(modpath.."/rds.lua") +dofile(modpath.."/hud.lua") + +-- globals + +minetest.register_on_newplayer(ham_radio.toggle_hud) +minetest.register_on_joinplayer(ham_radio.toggle_hud) + +minetest.register_on_leaveplayer(function(player) + local name = player:get_player_name() + ham_radio.is_receiver_wielded[name] = false + ham_radio.playerhuds[name] = nil +end) + +local updatetimer = 0 +local rds_timer = 0 +minetest.register_globalstep(function(dtime) + updatetimer = updatetimer + dtime + rds_timer = rds_timer + dtime + if updatetimer > 0.1 then + local players = minetest.get_connected_players() + for i=1, #players do + ham_radio:update_hud_display(players[i]) + end + updatetimer = 0 + -- rds update timer + if rds_timer > ham_radio.settings.rds_interval then + for i=1, #players do + ham_radio:update_rds(players[i]) + end + rds_timer = 0 + end + end +end) diff --git a/ham_radio/rds.lua b/ham_radio/rds.lua new file mode 100644 index 0000000..d38e9ec --- /dev/null +++ b/ham_radio/rds.lua @@ -0,0 +1,55 @@ +function ham_radio.get_rds_messages(frequency) + local transmitters = ham_radio.find_transmitters(frequency) + local rds_messages = {} + for position, transmitter in pairs(transmitters) do + if transmitter.rds_message ~= "" and transmitter.rds_message ~= nil then + -- construct message + local message = table.concat({ + '[ Radio | ', + transmitter.operated_by, + ' ] ', + transmitter.rds_message, + }, "") + table.insert(rds_messages, message) + end + end + return rds_messages +end + + +function ham_radio:update_rds(player) + local name = player:get_player_name() + local item = player:get_wielded_item() + + if item:get_name() ~= "ham_radio:handheld_receiver" then + return + end + + local meta = item:get_meta() + local frequency = meta:get_string("frequency") + local rds_disabled = meta:get_string("rds_disabled") + + if frequency == "" then + return + end + + if rds_disabled == "true" then + -- disabled receiving RDS messages + ham_radio.player_rds[name] = nil + return + end + + if ham_radio.player_rds[name] == nil then + ham_radio.player_rds[name] = ham_radio.get_rds_messages(frequency) + end + + local message = table.remove(ham_radio.player_rds[name]) + if message ~= nil then + minetest.chat_send_player(player:get_player_name(), minetest.colorize(ham_radio.settings.rds_color, message)) + + -- when all RDS messages are shown, reload them again + if not next(ham_radio.player_rds[name]) then + ham_radio.player_rds[name] = ham_radio.get_rds_messages(frequency) + end + end +end diff --git a/ham_radio/receiver.lua b/ham_radio/receiver.lua new file mode 100644 index 0000000..dbbb10e --- /dev/null +++ b/ham_radio/receiver.lua @@ -0,0 +1,86 @@ +minetest.register_tool("ham_radio:handheld_receiver", { + description = "Handheld Radio Receiver", + wield_image = "ham_radio_receiver_handheld.png", + inventory_image = "ham_radio_receiver_handheld.png", + groups = { disable_repair = 1 }, + -- left click - change frequency + on_use = function(itemstack, user, pointed_thing) + local meta = itemstack:get_meta() + local frequency = meta:get_string("frequency") + minetest.show_formspec(user:get_player_name(), "ham_radio:configure_handheld_receiver", + table.concat({ + "size[3,4]", + "image[1,0;1,1;ham_radio_receiver_handheld.png]", + "field[0.25,2;3,1;frequency;Frequency;",tostring(frequency),"]", + "tooltip[frequency;Integer number ", + ham_radio.settings.frequency.min,"-", + ham_radio.settings.frequency.max, "]", + "button_exit[0,3.5;3,1;;Done]" + },'') + ) + return itemstack + end, + -- right click - RDS on/off + on_secondary_use = function(itemstack, user, pointed_thing) + local meta = itemstack:get_meta() + local is_rds_disabled = meta:get_string("rds_disabled") + if is_rds_disabled == "" then + meta:set_string("rds_disabled", "true") + else + meta:set_string("rds_disabled", "") + end + return itemstack + end +}) + +minetest.register_on_player_receive_fields(function(player, formname, fields) + if formname ~= "ham_radio:configure_handheld_receiver" or not minetest.is_player(player) then + return false + end + if fields.frequency == nil then + -- form is not sent + return + end + local is_frequency_valid = ham_radio.validate_frequency(fields.frequency, true) + if is_frequency_valid.result == false then + ham_radio.errormsg(player, is_frequency_valid.message) + return false + end + local item = player:get_wielded_item() + local meta = item:get_meta() + meta:set_string("frequency", fields.frequency) + -- play radio sound + ham_radio.play_tuning_sound(player) + -- replace wielded item with new metadata + player:set_wielded_item(item) + -- reset rds messages + ham_radio.player_rds[player:get_player_name()] = nil + return true +end) + + +function ham_radio:locate_transmitter(player, transmitter_pos) + local player_pos = player:get_pos() + local player_look_vector = player:get_look_dir() + local player_direction = vector.add(player_pos, player_look_vector) + + local coeff = 0.9 + local distance_to_target = 0 + + local distance = vector.distance(player_pos, transmitter_pos) + if distance < 3 then + distance_to_target = 100 + coeff = 0.99 + else + distance_to_target = -0.0000000001*math.pow(distance,3)+0.00000145*math.pow(distance,2)-0.03*distance+100 + if distance_to_target < 3 then + distance_to_target = 3 + end + end + + local distance2 = vector.distance(player_direction, transmitter_pos) + local signal_power = distance - distance2; + + -- 0-100 + return distance_to_target * coeff + distance_to_target * (1 - coeff) * signal_power; +end diff --git a/ham_radio/screenshot.png b/ham_radio/screenshot.png new file mode 100644 index 0000000..da2fc67 Binary files /dev/null and b/ham_radio/screenshot.png differ diff --git a/ham_radio/textures/ham_radio_beacon_front.png b/ham_radio/textures/ham_radio_beacon_front.png new file mode 100644 index 0000000..8b40ddd Binary files /dev/null and b/ham_radio/textures/ham_radio_beacon_front.png differ diff --git a/ham_radio/textures/ham_radio_circuit.png b/ham_radio/textures/ham_radio_circuit.png new file mode 100644 index 0000000..541eced Binary files /dev/null and b/ham_radio/textures/ham_radio_circuit.png differ diff --git a/ham_radio/textures/ham_radio_hud_bg.png b/ham_radio/textures/ham_radio_hud_bg.png new file mode 100644 index 0000000..9ed15cc Binary files /dev/null and b/ham_radio/textures/ham_radio_hud_bg.png differ diff --git a/ham_radio/textures/ham_radio_hud_indicator_empty.png b/ham_radio/textures/ham_radio_hud_indicator_empty.png new file mode 100644 index 0000000..22cddb7 Binary files /dev/null and b/ham_radio/textures/ham_radio_hud_indicator_empty.png differ diff --git a/ham_radio/textures/ham_radio_hud_indicator_full.png b/ham_radio/textures/ham_radio_hud_indicator_full.png new file mode 100644 index 0000000..8a05e88 Binary files /dev/null and b/ham_radio/textures/ham_radio_hud_indicator_full.png differ diff --git a/ham_radio/textures/ham_radio_receiver_handheld.png b/ham_radio/textures/ham_radio_receiver_handheld.png new file mode 100644 index 0000000..46d107c Binary files /dev/null and b/ham_radio/textures/ham_radio_receiver_handheld.png differ diff --git a/ham_radio/textures/ham_radio_transmitter_front.png b/ham_radio/textures/ham_radio_transmitter_front.png new file mode 100644 index 0000000..b0ab976 Binary files /dev/null and b/ham_radio/textures/ham_radio_transmitter_front.png differ diff --git a/ham_radio/textures/ham_radio_transmitter_side.png b/ham_radio/textures/ham_radio_transmitter_side.png new file mode 100644 index 0000000..dc9b7ea Binary files /dev/null and b/ham_radio/textures/ham_radio_transmitter_side.png differ diff --git a/ham_radio/textures/ham_radio_transmitter_top.png b/ham_radio/textures/ham_radio_transmitter_top.png new file mode 100644 index 0000000..ab475c3 Binary files /dev/null and b/ham_radio/textures/ham_radio_transmitter_top.png differ diff --git a/ham_radio/textures/ham_radio_tuning1.ogg b/ham_radio/textures/ham_radio_tuning1.ogg new file mode 100644 index 0000000..7bddeb6 Binary files /dev/null and b/ham_radio/textures/ham_radio_tuning1.ogg differ diff --git a/ham_radio/textures/ham_radio_tuning2.ogg b/ham_radio/textures/ham_radio_tuning2.ogg new file mode 100644 index 0000000..c12e1f9 Binary files /dev/null and b/ham_radio/textures/ham_radio_tuning2.ogg differ diff --git a/ham_radio/textures/ham_radio_tuning3.ogg b/ham_radio/textures/ham_radio_tuning3.ogg new file mode 100644 index 0000000..888f1bf Binary files /dev/null and b/ham_radio/textures/ham_radio_tuning3.ogg differ diff --git a/ham_radio/textures/ham_radio_tuning4.ogg b/ham_radio/textures/ham_radio_tuning4.ogg new file mode 100644 index 0000000..521cd5d Binary files /dev/null and b/ham_radio/textures/ham_radio_tuning4.ogg differ diff --git a/ham_radio/textures/ham_radio_tuning5.ogg b/ham_radio/textures/ham_radio_tuning5.ogg new file mode 100644 index 0000000..e0ef0d3 Binary files /dev/null and b/ham_radio/textures/ham_radio_tuning5.ogg differ diff --git a/ham_radio/transmitter.lua b/ham_radio/transmitter.lua new file mode 100644 index 0000000..9f3ce77 --- /dev/null +++ b/ham_radio/transmitter.lua @@ -0,0 +1,109 @@ + +ham_radio.transmitter_update_infotext = function(meta) + local operated_by = meta:get_string("operated_by") + local frequency = meta:get_string("frequency") + local rds_message = meta:get_string("rds_message") + if frequency == "" then + frequency = "--" + rds_message = "" + end + local infotext = { + 'Radio Transmitter\n', + 'Operated by: ', operated_by, '\n', + 'Frequency: ', frequency + } + if rds_message ~= "" then + table.insert(infotext, '\nRDS message: "') + table.insert(infotext, rds_message) + table.insert(infotext, '"') + end + meta:set_string("infotext", table.concat(infotext, '')) +end + +minetest.register_node("ham_radio:transmitter", { + description = "Radio Transmitter", + tiles = { + "ham_radio_transmitter_top.png", + "ham_radio_transmitter_top.png", + "ham_radio_transmitter_side.png", + "ham_radio_transmitter_side.png", + "ham_radio_transmitter_side.png", + "ham_radio_transmitter_front.png" + }, + groups = {cracky=2,oddly_breakable_by_hand=2}, + sounds = default.node_sound_metal_defaults(), + paramtype2 = "facedir", + light_source = 3, + after_place_node = function(pos, placer) + local meta = minetest.get_meta(pos); + local name = placer:get_player_name() + meta:set_string('operated_by', name) + meta:set_string('rds_message', "") + meta:set_string("formspec", + table.concat({ + "size[7,5]", + "image[0,0;1,1;ham_radio_transmitter_front.png]", + "label[1,0;Transmitter operated by: ",minetest.formspec_escape(name),"]", + "field[0.25,2;7,1;frequency;Frequency;${frequency}]", + "tooltip[frequency;Integer number ", + ham_radio.settings.frequency.min,"-", + ham_radio.settings.frequency.max, "]", + "field[0.25,3.5;7,1;rds_message;RDS message;${rds_message}]", + "button_exit[2,4.5;3,1;;Done]" + },'') + ) + ham_radio.transmitter_update_infotext(meta) + end, + on_receive_fields = function(pos, formname, fields, sender) + if not minetest.is_player(sender) then + return + end + + if ( + fields.quit ~= "true" + or minetest.is_protected(pos, sender:get_player_name()) + ) then + return + end + + local meta = minetest.get_meta(pos) + local transmitter_is_updated = false + + if fields.frequency ~= nil then + local is_frequency_valid = ham_radio.validate_frequency(fields.frequency) + if is_frequency_valid.result == false then + ham_radio.errormsg(sender, is_frequency_valid.message) + else + meta:set_string("frequency", fields.frequency) + transmitter_is_updated = true + end + end + + if fields.rds_message ~= nil then + meta:set_string("rds_message", fields.rds_message) + transmitter_is_updated = true + end + + if transmitter_is_updated then + ham_radio.transmitter_update_infotext(meta) + ham_radio.save_transmitter(pos, meta) + ham_radio.play_tuning_sound(sender) + end + end, + can_dig = function(pos,player) + local meta = minetest.get_meta(pos); + local inv = meta:get_inventory() + local name = player:get_player_name() + return inv:is_empty("main") and not minetest.is_protected(pos, name) + end, + after_dig_node = function(pos, oldnode, oldmetadata, player) + ham_radio.delete_transmitter(pos) + end, + -- digiline + digiline = { + receptor = {action = function() end}, + effector = { + action = ham_radio.digiline_effector + }, + }, +}); diff --git a/jumpdrive/compat/compat.lua b/jumpdrive/compat/compat.lua index 44301a9..8f5c6c8 100644 --- a/jumpdrive/compat/compat.lua +++ b/jumpdrive/compat/compat.lua @@ -9,6 +9,7 @@ local has_pipeworks_mod = minetest.get_modpath("pipeworks") local has_beds_mod = minetest.get_modpath("beds") local has_ropes_mod = minetest.get_modpath("ropes") local has_tubelib_mod = minetest.get_modpath("tubelib") +local has_ham_radio_mod = minetest.get_modpath("ham_radio") dofile(MP.."/compat/travelnet.lua") dofile(MP.."/compat/locator.lua") @@ -21,6 +22,8 @@ dofile(MP.."/compat/beds.lua") dofile(MP.."/compat/ropes.lua") dofile(MP.."/compat/switching_station.lua") dofile(MP.."/compat/tubelib.lua") +dofile(MP.."/compat/ham_radio.lua") + if has_pipeworks_mod then dofile(MP.."/compat/teleporttube.lua") @@ -43,6 +46,9 @@ jumpdrive.node_compat = function(name, source_pos, target_pos) elseif has_tubelib_mod and string.find(name, "^tubelib") then jumpdrive.tubelib_compat(source_pos, target_pos) + elseif (name == "ham_radio:transmitter" or name == "ham_radio:beacon") and has_ham_radio_mod then + jumpdrive.ham_radio_compat(source_pos, target_pos) + elseif has_technic_mod and name == "technic:switching_station" then jumpdrive.switching_station_compat(source_pos, target_pos) diff --git a/jumpdrive/compat/ham_radio.lua b/jumpdrive/compat/ham_radio.lua new file mode 100644 index 0000000..dc8897f --- /dev/null +++ b/jumpdrive/compat/ham_radio.lua @@ -0,0 +1,7 @@ + +jumpdrive.ham_radio_compat = function(from, to) + local meta = minetest.get_meta(to) + ham_radio.delete_transmitter(from) + ham_radio.save_transmitter(to, meta) +end + diff --git a/missions/.luacheckrc b/missions/.luacheckrc new file mode 100644 index 0000000..53d01d2 --- /dev/null +++ b/missions/.luacheckrc @@ -0,0 +1,22 @@ +unused_args = false +allow_defined_top = true + +globals = { + "missions", + "minetest" +} + +read_globals = { + -- Stdlib + string = {fields = {"split"}}, + table = {fields = {"copy", "getn"}}, + "call", + + -- Minetest + "vector", "ItemStack", + "dump", "VoxelArea", + + -- Deps + "unified_inventory", "default", "xp_redo", + "mesecon" +} diff --git a/missions/LICENSE.txt b/missions/LICENSE.txt new file mode 100644 index 0000000..4362b49 --- /dev/null +++ b/missions/LICENSE.txt @@ -0,0 +1,502 @@ + GNU LESSER GENERAL PUBLIC LICENSE + Version 2.1, February 1999 + + Copyright (C) 1991, 1999 Free Software Foundation, Inc. + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + +[This is the first released version of the Lesser GPL. It also counts + as the successor of the GNU Library Public License, version 2, hence + the version number 2.1.] + + Preamble + + The licenses for most software are designed to take away your +freedom to share and change it. By contrast, the GNU General Public +Licenses are intended to guarantee your freedom to share and change +free software--to make sure the software is free for all its users. + + This license, the Lesser General Public License, applies to some +specially designated software packages--typically libraries--of the +Free Software Foundation and other authors who decide to use it. You +can use it too, but we suggest you first think carefully about whether +this license or the ordinary General Public License is the better +strategy to use in any particular case, based on the explanations below. + + When we speak of free software, we are referring to freedom of use, +not price. Our General Public Licenses are designed to make sure that +you have the freedom to distribute copies of free software (and charge +for this service if you wish); that you receive source code or can get +it if you want it; that you can change the software and use pieces of +it in new free programs; and that you are informed that you can do +these things. + + To protect your rights, we need to make restrictions that forbid +distributors to deny you these rights or to ask you to surrender these +rights. These restrictions translate to certain responsibilities for +you if you distribute copies of the library or if you modify it. + + For example, if you distribute copies of the library, whether gratis +or for a fee, you must give the recipients all the rights that we gave +you. You must make sure that they, too, receive or can get the source +code. If you link other code with the library, you must provide +complete object files to the recipients, so that they can relink them +with the library after making changes to the library and recompiling +it. And you must show them these terms so they know their rights. + + We protect your rights with a two-step method: (1) we copyright the +library, and (2) we offer you this license, which gives you legal +permission to copy, distribute and/or modify the library. + + To protect each distributor, we want to make it very clear that +there is no warranty for the free library. Also, if the library is +modified by someone else and passed on, the recipients should know +that what they have is not the original version, so that the original +author's reputation will not be affected by problems that might be +introduced by others. + + Finally, software patents pose a constant threat to the existence of +any free program. We wish to make sure that a company cannot +effectively restrict the users of a free program by obtaining a +restrictive license from a patent holder. Therefore, we insist that +any patent license obtained for a version of the library must be +consistent with the full freedom of use specified in this license. + + Most GNU software, including some libraries, is covered by the +ordinary GNU General Public License. This license, the GNU Lesser +General Public License, applies to certain designated libraries, and +is quite different from the ordinary General Public License. We use +this license for certain libraries in order to permit linking those +libraries into non-free programs. + + When a program is linked with a library, whether statically or using +a shared library, the combination of the two is legally speaking a +combined work, a derivative of the original library. The ordinary +General Public License therefore permits such linking only if the +entire combination fits its criteria of freedom. The Lesser General +Public License permits more lax criteria for linking other code with +the library. + + We call this license the "Lesser" General Public License because it +does Less to protect the user's freedom than the ordinary General +Public License. It also provides other free software developers Less +of an advantage over competing non-free programs. These disadvantages +are the reason we use the ordinary General Public License for many +libraries. However, the Lesser license provides advantages in certain +special circumstances. + + For example, on rare occasions, there may be a special need to +encourage the widest possible use of a certain library, so that it becomes +a de-facto standard. To achieve this, non-free programs must be +allowed to use the library. A more frequent case is that a free +library does the same job as widely used non-free libraries. In this +case, there is little to gain by limiting the free library to free +software only, so we use the Lesser General Public License. + + In other cases, permission to use a particular library in non-free +programs enables a greater number of people to use a large body of +free software. For example, permission to use the GNU C Library in +non-free programs enables many more people to use the whole GNU +operating system, as well as its variant, the GNU/Linux operating +system. + + Although the Lesser General Public License is Less protective of the +users' freedom, it does ensure that the user of a program that is +linked with the Library has the freedom and the wherewithal to run +that program using a modified version of the Library. + + The precise terms and conditions for copying, distribution and +modification follow. Pay close attention to the difference between a +"work based on the library" and a "work that uses the library". The +former contains code derived from the library, whereas the latter must +be combined with the library in order to run. + + GNU LESSER GENERAL PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. This License Agreement applies to any software library or other +program which contains a notice placed by the copyright holder or +other authorized party saying it may be distributed under the terms of +this Lesser General Public License (also called "this License"). +Each licensee is addressed as "you". + + A "library" means a collection of software functions and/or data +prepared so as to be conveniently linked with application programs +(which use some of those functions and data) to form executables. + + The "Library", below, refers to any such software library or work +which has been distributed under these terms. A "work based on the +Library" means either the Library or any derivative work under +copyright law: that is to say, a work containing the Library or a +portion of it, either verbatim or with modifications and/or translated +straightforwardly into another language. (Hereinafter, translation is +included without limitation in the term "modification".) + + "Source code" for a work means the preferred form of the work for +making modifications to it. For a library, complete source code means +all the source code for all modules it contains, plus any associated +interface definition files, plus the scripts used to control compilation +and installation of the library. + + Activities other than copying, distribution and modification are not +covered by this License; they are outside its scope. The act of +running a program using the Library is not restricted, and output from +such a program is covered only if its contents constitute a work based +on the Library (independent of the use of the Library in a tool for +writing it). Whether that is true depends on what the Library does +and what the program that uses the Library does. + + 1. You may copy and distribute verbatim copies of the Library's +complete source code as you receive it, in any medium, provided that +you conspicuously and appropriately publish on each copy an +appropriate copyright notice and disclaimer of warranty; keep intact +all the notices that refer to this License and to the absence of any +warranty; and distribute a copy of this License along with the +Library. + + You may charge a fee for the physical act of transferring a copy, +and you may at your option offer warranty protection in exchange for a +fee. + + 2. You may modify your copy or copies of the Library or any portion +of it, thus forming a work based on the Library, and copy and +distribute such modifications or work under the terms of Section 1 +above, provided that you also meet all of these conditions: + + a) The modified work must itself be a software library. + + b) You must cause the files modified to carry prominent notices + stating that you changed the files and the date of any change. + + c) You must cause the whole of the work to be licensed at no + charge to all third parties under the terms of this License. + + d) If a facility in the modified Library refers to a function or a + table of data to be supplied by an application program that uses + the facility, other than as an argument passed when the facility + is invoked, then you must make a good faith effort to ensure that, + in the event an application does not supply such function or + table, the facility still operates, and performs whatever part of + its purpose remains meaningful. + + (For example, a function in a library to compute square roots has + a purpose that is entirely well-defined independent of the + application. Therefore, Subsection 2d requires that any + application-supplied function or table used by this function must + be optional: if the application does not supply it, the square + root function must still compute square roots.) + +These requirements apply to the modified work as a whole. If +identifiable sections of that work are not derived from the Library, +and can be reasonably considered independent and separate works in +themselves, then this License, and its terms, do not apply to those +sections when you distribute them as separate works. But when you +distribute the same sections as part of a whole which is a work based +on the Library, the distribution of the whole must be on the terms of +this License, whose permissions for other licensees extend to the +entire whole, and thus to each and every part regardless of who wrote +it. + +Thus, it is not the intent of this section to claim rights or contest +your rights to work written entirely by you; rather, the intent is to +exercise the right to control the distribution of derivative or +collective works based on the Library. + +In addition, mere aggregation of another work not based on the Library +with the Library (or with a work based on the Library) on a volume of +a storage or distribution medium does not bring the other work under +the scope of this License. + + 3. You may opt to apply the terms of the ordinary GNU General Public +License instead of this License to a given copy of the Library. To do +this, you must alter all the notices that refer to this License, so +that they refer to the ordinary GNU General Public License, version 2, +instead of to this License. (If a newer version than version 2 of the +ordinary GNU General Public License has appeared, then you can specify +that version instead if you wish.) Do not make any other change in +these notices. + + Once this change is made in a given copy, it is irreversible for +that copy, so the ordinary GNU General Public License applies to all +subsequent copies and derivative works made from that copy. + + This option is useful when you wish to copy part of the code of +the Library into a program that is not a library. + + 4. You may copy and distribute the Library (or a portion or +derivative of it, under Section 2) in object code or executable form +under the terms of Sections 1 and 2 above provided that you accompany +it with the complete corresponding machine-readable source code, which +must be distributed under the terms of Sections 1 and 2 above on a +medium customarily used for software interchange. + + If distribution of object code is made by offering access to copy +from a designated place, then offering equivalent access to copy the +source code from the same place satisfies the requirement to +distribute the source code, even though third parties are not +compelled to copy the source along with the object code. + + 5. A program that contains no derivative of any portion of the +Library, but is designed to work with the Library by being compiled or +linked with it, is called a "work that uses the Library". Such a +work, in isolation, is not a derivative work of the Library, and +therefore falls outside the scope of this License. + + However, linking a "work that uses the Library" with the Library +creates an executable that is a derivative of the Library (because it +contains portions of the Library), rather than a "work that uses the +library". The executable is therefore covered by this License. +Section 6 states terms for distribution of such executables. + + When a "work that uses the Library" uses material from a header file +that is part of the Library, the object code for the work may be a +derivative work of the Library even though the source code is not. +Whether this is true is especially significant if the work can be +linked without the Library, or if the work is itself a library. The +threshold for this to be true is not precisely defined by law. + + If such an object file uses only numerical parameters, data +structure layouts and accessors, and small macros and small inline +functions (ten lines or less in length), then the use of the object +file is unrestricted, regardless of whether it is legally a derivative +work. (Executables containing this object code plus portions of the +Library will still fall under Section 6.) + + Otherwise, if the work is a derivative of the Library, you may +distribute the object code for the work under the terms of Section 6. +Any executables containing that work also fall under Section 6, +whether or not they are linked directly with the Library itself. + + 6. As an exception to the Sections above, you may also combine or +link a "work that uses the Library" with the Library to produce a +work containing portions of the Library, and distribute that work +under terms of your choice, provided that the terms permit +modification of the work for the customer's own use and reverse +engineering for debugging such modifications. + + You must give prominent notice with each copy of the work that the +Library is used in it and that the Library and its use are covered by +this License. You must supply a copy of this License. If the work +during execution displays copyright notices, you must include the +copyright notice for the Library among them, as well as a reference +directing the user to the copy of this License. Also, you must do one +of these things: + + a) Accompany the work with the complete corresponding + machine-readable source code for the Library including whatever + changes were used in the work (which must be distributed under + Sections 1 and 2 above); and, if the work is an executable linked + with the Library, with the complete machine-readable "work that + uses the Library", as object code and/or source code, so that the + user can modify the Library and then relink to produce a modified + executable containing the modified Library. (It is understood + that the user who changes the contents of definitions files in the + Library will not necessarily be able to recompile the application + to use the modified definitions.) + + b) Use a suitable shared library mechanism for linking with the + Library. A suitable mechanism is one that (1) uses at run time a + copy of the library already present on the user's computer system, + rather than copying library functions into the executable, and (2) + will operate properly with a modified version of the library, if + the user installs one, as long as the modified version is + interface-compatible with the version that the work was made with. + + c) Accompany the work with a written offer, valid for at + least three years, to give the same user the materials + specified in Subsection 6a, above, for a charge no more + than the cost of performing this distribution. + + d) If distribution of the work is made by offering access to copy + from a designated place, offer equivalent access to copy the above + specified materials from the same place. + + e) Verify that the user has already received a copy of these + materials or that you have already sent this user a copy. + + For an executable, the required form of the "work that uses the +Library" must include any data and utility programs needed for +reproducing the executable from it. However, as a special exception, +the materials to be distributed need not include anything that is +normally distributed (in either source or binary form) with the major +components (compiler, kernel, and so on) of the operating system on +which the executable runs, unless that component itself accompanies +the executable. + + It may happen that this requirement contradicts the license +restrictions of other proprietary libraries that do not normally +accompany the operating system. Such a contradiction means you cannot +use both them and the Library together in an executable that you +distribute. + + 7. You may place library facilities that are a work based on the +Library side-by-side in a single library together with other library +facilities not covered by this License, and distribute such a combined +library, provided that the separate distribution of the work based on +the Library and of the other library facilities is otherwise +permitted, and provided that you do these two things: + + a) Accompany the combined library with a copy of the same work + based on the Library, uncombined with any other library + facilities. This must be distributed under the terms of the + Sections above. + + b) Give prominent notice with the combined library of the fact + that part of it is a work based on the Library, and explaining + where to find the accompanying uncombined form of the same work. + + 8. You may not copy, modify, sublicense, link with, or distribute +the Library except as expressly provided under this License. Any +attempt otherwise to copy, modify, sublicense, link with, or +distribute the Library is void, and will automatically terminate your +rights under this License. However, parties who have received copies, +or rights, from you under this License will not have their licenses +terminated so long as such parties remain in full compliance. + + 9. You are not required to accept this License, since you have not +signed it. However, nothing else grants you permission to modify or +distribute the Library or its derivative works. These actions are +prohibited by law if you do not accept this License. Therefore, by +modifying or distributing the Library (or any work based on the +Library), you indicate your acceptance of this License to do so, and +all its terms and conditions for copying, distributing or modifying +the Library or works based on it. + + 10. Each time you redistribute the Library (or any work based on the +Library), the recipient automatically receives a license from the +original licensor to copy, distribute, link with or modify the Library +subject to these terms and conditions. You may not impose any further +restrictions on the recipients' exercise of the rights granted herein. +You are not responsible for enforcing compliance by third parties with +this License. + + 11. If, as a consequence of a court judgment or allegation of patent +infringement or for any other reason (not limited to patent issues), +conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot +distribute so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you +may not distribute the Library at all. For example, if a patent +license would not permit royalty-free redistribution of the Library by +all those who receive copies directly or indirectly through you, then +the only way you could satisfy both it and this License would be to +refrain entirely from distribution of the Library. + +If any portion of this section is held invalid or unenforceable under any +particular circumstance, the balance of the section is intended to apply, +and the section as a whole is intended to apply in other circumstances. + +It is not the purpose of this section to induce you to infringe any +patents or other property right claims or to contest validity of any +such claims; this section has the sole purpose of protecting the +integrity of the free software distribution system which is +implemented by public license practices. Many people have made +generous contributions to the wide range of software distributed +through that system in reliance on consistent application of that +system; it is up to the author/donor to decide if he or she is willing +to distribute software through any other system and a licensee cannot +impose that choice. + +This section is intended to make thoroughly clear what is believed to +be a consequence of the rest of this License. + + 12. If the distribution and/or use of the Library is restricted in +certain countries either by patents or by copyrighted interfaces, the +original copyright holder who places the Library under this License may add +an explicit geographical distribution limitation excluding those countries, +so that distribution is permitted only in or among countries not thus +excluded. In such case, this License incorporates the limitation as if +written in the body of this License. + + 13. The Free Software Foundation may publish revised and/or new +versions of the Lesser General Public License from time to time. +Such new versions will be similar in spirit to the present version, +but may differ in detail to address new problems or concerns. + +Each version is given a distinguishing version number. If the Library +specifies a version number of this License which applies to it and +"any later version", you have the option of following the terms and +conditions either of that version or of any later version published by +the Free Software Foundation. If the Library does not specify a +license version number, you may choose any version ever published by +the Free Software Foundation. + + 14. If you wish to incorporate parts of the Library into other free +programs whose distribution conditions are incompatible with these, +write to the author to ask for permission. For software which is +copyrighted by the Free Software Foundation, write to the Free +Software Foundation; we sometimes make exceptions for this. Our +decision will be guided by the two goals of preserving the free status +of all derivatives of our free software and of promoting the sharing +and reuse of software generally. + + NO WARRANTY + + 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO +WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW. +EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR +OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY +KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE +LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME +THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + + 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN +WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY +AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU +FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR +CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE +LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING +RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A +FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF +SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH +DAMAGES. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Libraries + + If you develop a new library, and you want it to be of the greatest +possible use to the public, we recommend making it free software that +everyone can redistribute and change. You can do so by permitting +redistribution under these terms (or, alternatively, under the terms of the +ordinary General Public License). + + To apply these terms, attach the following notices to the library. It is +safest to attach them to the start of each source file to most effectively +convey the exclusion of warranty; and each file should have at least the +"copyright" line and a pointer to where the full notice is found. + + + Copyright (C) + + This library 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.1 of the License, or (at your option) any later version. + + This library 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 library; if not, write to the Free Software + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + +Also add information on how to contact you by electronic and paper mail. + +You should also get your employer (if you work as a programmer) or your +school, if any, to sign a "copyright disclaimer" for the library, if +necessary. Here is a sample; alter the names: + + Yoyodyne, Inc., hereby disclaims all copyright interest in the + library `Frob' (a library for tweaking knobs) written by James Random Hacker. + + , 1 April 1990 + Ty Coon, President of Vice + +That's all there is to it! diff --git a/missions/block.lua b/missions/block.lua new file mode 100644 index 0000000..c98c3c9 --- /dev/null +++ b/missions/block.lua @@ -0,0 +1,106 @@ + +minetest.register_node("missions:mission", { + description = "Mission block", + tiles = { + "default_gold_block.png", + "default_gold_block.png", + "default_gold_block.png^default_paper.png^missions_m_overlay.png", + "default_gold_block.png^default_paper.png^missions_m_overlay.png", + "default_gold_block.png^default_paper.png^missions_m_overlay.png", + "default_gold_block.png^default_paper.png^missions_m_overlay.png" + }, + groups = { + cracky = 3, + oddly_breakable_by_hand = 3, + mesecon_needs_receiver = 1 + }, + sounds = default.node_sound_glass_defaults(), + + after_place_node = function(pos, placer) + local meta = minetest.get_meta(pos) + local playername = placer:get_player_name() or "" + meta:set_string("owner", playername) + meta:set_int("time", 300) + meta:set_int("hidden", 0) + meta:set_int("valid", 1) + meta:set_string("validationresult", "") + meta:set_string("name", "") + meta:set_string("description", "") + + local inv = meta:get_inventory() + inv:set_size("main", 8) + end, + + allow_metadata_inventory_put = function(pos, listname, index, stack, player) + local meta = minetest.get_meta(pos) + local inv = meta:get_inventory() + if inv:get_stack(listname, index):get_count() == 0 then + -- target inv empty + + local steps = missions.get_steps(pos) + local selected_step = missions.get_selected_list_item(player) + + local step = steps[selected_step] + if step == nil then + -- no such step, get the first one + missions.set_selected_list_item(player, 1) + step = steps[1] + + if step == nil then + -- something is wrong: inv put without a step... + return 0 + end + end + + local spec = missions.get_step_spec_by_type(step.type) + + if spec.allow_inv_stack_put then + -- delegate to spec check + if spec.allow_inv_stack_put(listname, index, stack) then + return stack:get_count() + else + return 0 + end + end + + return stack:get_count() + else + -- target inv not empty, disallow swapping + return 0 + end + end, + + on_metadata_inventory_put = function(pos, listname, index, stack, player) + --copy items from player to local inv + local inv = player:get_inventory() + inv:add_item("main", stack) + end, + + allow_metadata_inventory_take = function(pos, listname, index, stack, player) + --remove items if taken from inv + local meta = minetest.get_meta(pos) + local inv = meta:get_inventory() + inv:set_stack(listname, index, ItemStack("")) + return 0 + end, + + can_dig = missions.only_owner_can_dig, + + on_construct = function(pos) + missions.set_steps(pos, {}) + end, + + on_rightclick = missions.form.missionblock_main +}) + + + + +minetest.register_craft({ + output = "missions:mission", + recipe = { + {"missions:wand", "", "missions:wand"}, + {"", "default:goldblock", ""}, + {"", "default:paper", ""} + } +}) diff --git a/missions/chat.lua b/missions/chat.lua new file mode 100644 index 0000000..2ce56eb --- /dev/null +++ b/missions/chat.lua @@ -0,0 +1,8 @@ + + +minetest.register_chatcommand("mission_abort", { + description = "Aborts the current mission", + func = function(name) + missions.abort(name) + end +}) \ No newline at end of file diff --git a/missions/cooldown.lua b/missions/cooldown.lua new file mode 100644 index 0000000..caf5548 --- /dev/null +++ b/missions/cooldown.lua @@ -0,0 +1,35 @@ + + +local cooldown_timers = {} -- playername -> mission-name -> number(finish time) + +-- resets the cooldown timer +missions.cooldown_reset = function(mission_name, playername) + local now = os.time(os.date("!*t")) + local mission_data = cooldown_timers[playername] + if not mission_data then + mission_data = {} + cooldown_timers[playername] = mission_data + end + + mission_data[mission_name] = now +end + +-- returns the seconds since the mission was finished or zero if never finished +missions.cooldown_get = function(mission_name, playername) + local now = os.time(os.date("!*t")) + + local mission_data = cooldown_timers[playername] + if not mission_data then + return 0 + end + + local last_time = mission_data[mission_name] + + if not last_time then + return 0 + end + + local diff = now - last_time + + return diff +end diff --git a/missions/depends.txt b/missions/depends.txt new file mode 100644 index 0000000..21279fc --- /dev/null +++ b/missions/depends.txt @@ -0,0 +1,15 @@ +default +xp_redo? +more_chests? +mobs_redo? +mobs_animal? +mobs_monster? +mobs_horse? +mobs_xenomorph? +mobs_fish? +mobs_crocs? +mobs_jellyfish? +mobs_sharks? +mobs_turtles? +mesecons? + diff --git a/missions/executor.hud.lua b/missions/executor.hud.lua new file mode 100644 index 0000000..5d71671 --- /dev/null +++ b/missions/executor.hud.lua @@ -0,0 +1,104 @@ + +local HUD_POSITION = {x = missions.hud.posx, y = missions.hud.posy} +local HUD_ALIGNMENT = {x = 1, y = 0} + +local hud = {} -- playerName -> {} + +minetest.register_on_joinplayer(function(player) + local playername = player:get_player_name() + + local data = {} + + data.title = player:hud_add({ + hud_elem_type = "text", + position = HUD_POSITION, + offset = {x = 0, y = 0}, + text = "", + alignment = HUD_ALIGNMENT, + scale = {x = 100, y = 100}, + number = 0xFFFFFF + }) + + data.mission = player:hud_add({ + hud_elem_type = "text", + position = HUD_POSITION, + offset = {x = 0, y = 30}, + text = "", + alignment = HUD_ALIGNMENT, + scale = {x = 100, y = 100}, + number = 0x00FF00 + }) + + data.time = player:hud_add({ + hud_elem_type = "text", + position = HUD_POSITION, + offset = {x = 0, y = 60}, + text = "", + alignment = HUD_ALIGNMENT, + scale = {x = 100, y = 100}, + number = 0x00FF00 + }) + + data.status = player:hud_add({ + hud_elem_type = "text", + position = HUD_POSITION, + offset = {x = 0, y = 90}, + text = "", + alignment = HUD_ALIGNMENT, + scale = {x = 100, y = 100}, + number = 0x00FF00 + }) + + + hud[playername] = data +end) + +missions.hud_update_status = function(player, status) + local playername = player:get_player_name() + local data = hud[playername] + + if not data then + return + end + + player:hud_change(data.status, "text", status) +end + +missions.hud_update = function(player, mission) + + local playername = player:get_player_name() + local data = hud[playername] + + if not data then + return + end + + if mission then + local now = os.time(os.date("!*t")) + local remainingTime = mission.time - (now - mission.start) + + local percent = math.floor((mission.currentstep-1) / #mission.steps * 100) + + player:hud_change(data.title, "text", "Mission: " .. mission.name) + player:hud_change(data.mission, "text", "Completed: " .. percent .. "%") + player:hud_change(data.time, "text", "Time: " .. missions.format_time(remainingTime)) + + if remainingTime > 60 then + player:hud_change(data.time, "number", 0x00FF00) + player:hud_change(data.mission, "number", 0x00FF00) + else + player:hud_change(data.time, "number", 0xFF0000) + player:hud_change(data.mission, "number", 0xFF0000) + end + else + player:hud_change(data.title, "text", "") + player:hud_change(data.mission, "text", "") + player:hud_change(data.time, "text", "") + player:hud_change(data.status, "text", "") + end +end + +minetest.register_on_leaveplayer(function(player) + local playername = player:get_player_name() + hud[playername] = nil +end) diff --git a/missions/executor.lua b/missions/executor.lua new file mode 100644 index 0000000..11ff12e --- /dev/null +++ b/missions/executor.lua @@ -0,0 +1,200 @@ + + + +-- start a mission +missions.start = function(pos, player) + local mission = missions.get_current_mission(player) + local playername = player:get_player_name() + + if mission then + minetest.chat_send_player(playername, "A Mission is already running: '" .. mission.name .. "'") + return + end + + local steps = missions.get_steps(pos) + if #steps == 0 then + minetest.chat_send_player(playername, "Mission has no steps!") + return + end + + local meta = minetest.get_meta(pos) + local pos_str = minetest.pos_to_string(pos) + + mission = { + version = missions.CURRENT_MISSION_SPEC_VERSION, + pos = pos_str, + steps = steps, + currentstep = 1, + start = os.time(os.date("!*t")), + time = meta:get_int("time") or 300, + name = meta:get_string("name") or "", + description = meta:get_string("description") or "" + } + + missions.set_current_mission(player, mission) +end + +local after_mission_hook = function(player) + -- restore interact, no matter what + local playername = player:get_player_name() + local privs = minetest.get_player_privs(playername) + privs.interact = true + minetest.set_player_privs(playername, privs) +end + +-- update the mission +-- called with below globalstep, usually ever 0.5 seconds +local update_mission = function(mission, player) + + local now = os.time(os.date("!*t")) + local remainingTime = mission.time - (now - mission.start) + local playername = player:get_player_name() + local step = mission.steps[mission.currentstep] + local abort = missions.has_aborted(playername) + local block_pos = minetest.string_to_pos(mission.pos) + local block_meta = minetest.get_meta(block_pos) + + if not step then + -- no more steps + minetest.chat_send_player(playername, "Mission completed: '" .. mission.name .. "'") + missions.set_current_mission(player, nil) + missions.show_banner(player, "Mission completed", mission.name) + + -- increment counter + block_meta:set_int("successcount", block_meta:get_int("successcount") + 1) + + after_mission_hook(player) + return + end + + local spec = missions.get_step_spec_by_type(step.type) + + missions.hud_update(player, mission) + + local success = false + local failed = false + + local on_success = function() + success = true + end + + local on_failed = function(msg) + failed = true + minetest.chat_send_player(playername, "Mission failed: " .. msg) + missions.set_current_mission(player, nil) + missions.hud_update_status(player, "") + if spec.on_step_exit then + spec.on_step_exit({ + step=step, + player=player + }) + end + + -- increment counter + block_meta:set_int("failcount", block_meta:get_int("failcount") + 1) + after_mission_hook(player) + end + + if abort then + -- invoke failed + on_failed("aborted") + return + end + + if remainingTime <= 0 then + on_failed("timed out") + return + end + + + if not step.initialized then + if spec.on_step_enter then + spec.on_step_enter({ + player = player, + step = step, + on_success = on_success, + on_failed = on_failed, + block_meta = block_meta, + block_pos = block_pos + }) + end + step.initialized = true + end + + if failed then + return + end + + if not success then + if spec.on_step_interval then + spec.on_step_interval({ + player=player, + step=step, + on_success=on_success, + on_failed=on_failed + }) + end + end + + if failed then + return + end + + + if spec.get_status then + local status = spec.get_status({ + player=player, + step=step + }) + missions.hud_update_status(player, status) + else + missions.hud_update_status(player, "") + end + + + if success then + mission.currentstep = mission.currentstep + 1 + if spec.on_step_exit then + spec.on_step_exit({ + step=step, + player=player + }) + end + return + end +end + +-- mission persist job +local persistTimer = 0 +minetest.register_globalstep(function(dtime) + persistTimer = persistTimer + dtime; + if persistTimer >= 5 then + local players = minetest.get_connected_players() + for i,player in ipairs(players) do + local mission = missions.get_current_mission(player) + missions.persist_mission(player, mission) + end + + persistTimer = 0 + end +end) + +-- mission update step +local timer = 0 +minetest.register_globalstep(function(dtime) + timer = timer + dtime; + if timer >= 0.5 then + local players = minetest.get_connected_players() + for i,player in ipairs(players) do + local mission = missions.get_current_mission(player) + + if mission then + update_mission(mission, player) + else + missions.hud_update(player, nil) + end + end + + timer = 0 + end +end) diff --git a/missions/form.missionblock_config.lua b/missions/form.missionblock_config.lua new file mode 100644 index 0000000..7cd7af8 --- /dev/null +++ b/missions/form.missionblock_config.lua @@ -0,0 +1,91 @@ + +local FORMNAME = "mission_block_config" + +missions.form.missionblock_config = function(pos, node, player) + + local meta = minetest.get_meta(pos) + + local name = meta:get_string("name") + local time = meta:get_string("time") + local description = meta:get_string("description") + local hidden = meta:get_int("hidden") + + local hidden_str = "Hidden " + if hidden == 0 then + hidden_str = hidden_str .. "" + else + hidden_str = hidden_str .. "" + end + + + local formspec = "size[8,8;]" .. + --left + "label[0,0;Mission editor]" .. + + "field[0,1;8,1;name;Name;" .. name .. "]" .. + "field[0,2;8,1;time;Time (seconds);" .. time .. "]" .. + "textarea[0,3;8,4;description;Description;" .. description .. "]" .. + + "button_exit[4,7;4,1;save;Save]" .. + "button[0,7;4,1;togglehidden;" .. hidden_str .. "]" .. + missions.FORMBG + + minetest.show_formspec(player:get_player_name(), + FORMNAME .. ";" .. minetest.pos_to_string(pos), + formspec + ) + +end + + + +minetest.register_on_player_receive_fields(function(player, formname, fields) + local parts = formname:split(";") + local name = parts[1] + if name ~= FORMNAME then + return + end + + local pos = minetest.string_to_pos(parts[2]) + local meta = minetest.get_meta(pos) + local node = minetest.get_node(pos) + + if not missions.check_owner(pos, player) then + return + end + + if fields.name then + meta:set_string("name", fields.name) + end + + if fields.time then + meta:set_string("time", fields.time) + end + + if fields.togglehidden then + local hidden = meta:get_int("hidden") + if hidden == 0 then + meta:set_int("hidden", 1) + else + meta:set_int("hidden", 0) + end + missions.form.missionblock_config(pos, node, player) + end + + if fields.description then + meta:set_string("description", fields.description) + end + + if fields.save then + local result = missions.validate_mission(pos, player) + if result.success then + meta:set_string("infotext", "Mission: " .. meta:get_string("name")) + minetest.chat_send_player(player:get_player_name(), "Mission valid") + else + meta:set_string("infotext", "Mission: (invalid: " .. result.msg .. ")") + minetest.chat_send_player(player:get_player_name(), "Mission invalid: " .. result.msg) + end + end + +end) + diff --git a/missions/form.missionblock_help.lua b/missions/form.missionblock_help.lua new file mode 100644 index 0000000..d9f187f --- /dev/null +++ b/missions/form.missionblock_help.lua @@ -0,0 +1,25 @@ + +local FORMNAME = "mission_block_help" + +missions.form.missionblock_help = function(pos, node, player) + + local formspec = "size[8,8;]" .. + --left + "label[0,0;Mission block]" .. + "label[0,2;1. Craft some mission-wands]" .. + "label[0,3;2. Use mission-wands on locations or chests]" .. + "label[0,4;3. Craft and place a mission-block]" .. + "label[0,5;4. Add steps with the step-editor and use the]" .. + "label[0,6; configured position- or chest-wands]" .. + "button_exit[0,7;8,1;exit;Exit]" .. + missions.FORMBG + + minetest.show_formspec(player:get_player_name(), + FORMNAME .. ";" .. minetest.pos_to_string(pos), + formspec + ) + +end + + + diff --git a/missions/form.missionblock_main.lua b/missions/form.missionblock_main.lua new file mode 100644 index 0000000..b9b4940 --- /dev/null +++ b/missions/form.missionblock_main.lua @@ -0,0 +1,83 @@ + +local FORMNAME = "mission_block_main" + +missions.form.missionblock_main = function(pos, node, player) + + local meta = minetest.get_meta(pos) + local owner = meta:get_string("owner") + + -- check for migration + missions.migrate_mission_block(pos, meta) + + local has_override = minetest.check_player_privs(player, "protection_bypass") + + -- check if plain user rightclicks + if player:get_player_name() ~= owner and not has_override then + missions.form.missionblock_user(pos, node, player) + return + end + + local formspec = "size[8,8;]" .. + --left + "label[0,0;Mission block]" .. + + "button[0,1;8,1;configure;Configure]" .. + "button[0,2;8,1;stepeditor;Step editor]" .. + "button[0,3;8,1;user;User view]" .. + "button[0,4;8,1;stats;Statistics]" .. + "button[0,5;8,1;help;Help]" .. + + "button_exit[0,7;8,1;exit;Exit]" .. + missions.FORMBG + + minetest.show_formspec(player:get_player_name(), + FORMNAME .. ";" .. minetest.pos_to_string(pos), + formspec + ) + +end + + + +minetest.register_on_player_receive_fields(function(player, formname, fields) + local parts = formname:split(";") + local name = parts[1] + if name ~= FORMNAME then + return + end + + local pos = minetest.string_to_pos(parts[2]) + local node = minetest.get_node(pos) + + if not missions.check_owner(pos, player) then + return + end + + if fields.stepeditor then + missions.form.missionblock_stepeditor(pos, node, player) + return true + end + + if fields.user then + missions.form.missionblock_user(pos, node, player) + return true + end + + if fields.stats then + missions.form.missionblock_stats(pos, node, player) + return true + end + + if fields.configure then + missions.form.missionblock_config(pos, node, player) + return true + end + + if fields.help then + missions.form.missionblock_help(pos, node, player) + return true + end + + +end) + diff --git a/missions/form.missionblock_stats.lua b/missions/form.missionblock_stats.lua new file mode 100644 index 0000000..2771071 --- /dev/null +++ b/missions/form.missionblock_stats.lua @@ -0,0 +1,26 @@ + +local FORMNAME = "mission_block_stats" + +missions.form.missionblock_stats = function(pos, node, player) + + local meta = minetest.get_meta(pos) + local successcount = meta:get_int("successcount") + local failcount = meta:get_int("failcount") + + local formspec = "size[8,8;]" .. + --left + "label[0,0;Mission block]" .. + "label[0,2;Success-count: " .. successcount .. "]" .. + "label[0,3;Fail-count: " .. failcount .. "]" .. + "button_exit[0,7;8,1;exit;Exit]" .. + missions.FORMBG + + minetest.show_formspec(player:get_player_name(), + FORMNAME .. ";" .. minetest.pos_to_string(pos), + formspec + ) + +end + + + diff --git a/missions/form.missionblock_stepeditor.lua b/missions/form.missionblock_stepeditor.lua new file mode 100644 index 0000000..cc69ad4 --- /dev/null +++ b/missions/form.missionblock_stepeditor.lua @@ -0,0 +1,135 @@ + +local FORMNAME = "mission_block_stepeditor" + +missions.form.missionblock_stepeditor = function(pos, node, player) + + local selected_step = missions.get_selected_list_item(player) + local steps = missions.get_steps(pos) + + -- steps list + local steps_list = "textlist[0,1;5,6;steps;" + for i,step in ipairs(steps) do + steps_list = steps_list .. i .. ": " .. minetest.formspec_escape(step.name) + if i < #steps then + steps_list = steps_list .. "," + end + end + steps_list = steps_list .. ";" .. selected_step .. "]"; + + + local formspec = "size[8,8;]" .. + --left + "label[0,0;Mission editor]" .. + "button[5.5,1;2,1;add;Add]" .. + "button[5.5,2;2,1;edit;Edit]" .. + "button[5.5,3;2,1;up;Up]" .. + "button[5.5,4;2,1;down;Down]" .. + "button[5.5,5;2,1;remove;Remove]" .. + steps_list .. + "button_exit[0,7;8,1;save;Save and validate]" .. + missions.FORMBG + + minetest.show_formspec(player:get_player_name(), + FORMNAME .. ";" .. minetest.pos_to_string(pos), + formspec + ) + +end + + + +minetest.register_on_player_receive_fields(function(player, formname, fields) + local parts = formname:split(";") + local name = parts[1] + if name ~= FORMNAME then + return + end + + local pos = minetest.string_to_pos(parts[2]) + local meta = minetest.get_meta(pos) + local node = minetest.get_node(pos) + + if not missions.check_owner(pos, player) then + return + end + + if fields.add then + missions.form.newstep(pos, node, player) + return true + end + + if fields.remove then + local steps = missions.get_steps(pos) + local selected_step = missions.get_selected_list_item(player) + local last_step = selected_step == #steps + table.remove(steps, selected_step) + missions.set_steps(pos, steps) + + missions.form.missionblock_stepeditor(pos, node, player) + if last_step then + missions.set_selected_list_item(player, math.max(selected_step - 1, 1)) + end + return true + end + + if fields.edit then + local stepnumber = missions.get_selected_list_item(player) + local steps = missions.get_steps(pos) + + local step = steps[stepnumber] + + if step then + local stepdata = step.data + missions.show_step_editor(pos, node, player, stepnumber, step, stepdata) + end + end + + if fields.up then + local steps = missions.get_steps(pos) + local selected_step = missions.get_selected_list_item(player) + if selected_step > 1 then + local tmp = steps[selected_step-1] + steps[selected_step-1] = steps[selected_step] + steps[selected_step] = tmp + missions.set_steps(pos, steps) + missions.set_selected_list_item(player, selected_step - 1) + end + + missions.form.missionblock_stepeditor(pos, node, player) + end + + if fields.down then + local steps = missions.get_steps(pos) + local selected_step = missions.get_selected_list_item(player) + if selected_step < #steps then + local tmp = steps[selected_step+1] + steps[selected_step+1] = steps[selected_step] + steps[selected_step] = tmp + missions.set_steps(pos, steps) + missions.set_selected_list_item(player, selected_step + 1) + end + + missions.form.missionblock_stepeditor(pos, node, player) + end + + if fields.steps then + parts = fields.steps:split(":") + if parts[1] == "CHG" then + local selected_step = tonumber(parts[2]) + missions.set_selected_list_item(player, selected_step) + end + end + + if fields.save then + local result = missions.validate_mission(pos, player) + if result.success then + meta:set_string("infotext", "Mission: " .. meta:get_string("name")) + minetest.chat_send_player(player:get_player_name(), "Mission valid") + else + meta:set_string("infotext", "Mission: (invalid: " .. result.msg .. ")") + minetest.chat_send_player(player:get_player_name(), "Mission invalid: " .. result.msg) + end + end + +end) + diff --git a/missions/form.missionblock_user.lua b/missions/form.missionblock_user.lua new file mode 100644 index 0000000..624028d --- /dev/null +++ b/missions/form.missionblock_user.lua @@ -0,0 +1,47 @@ + +local FORMNAME = "mission_block_user" + +missions.form.missionblock_user = function(pos, node, player) + + local meta = minetest.get_meta(pos) + local name = meta:get_string("name") + local time = meta:get_int("time") + local owner = meta:get_string("owner") + local description = meta:get_string("description") + + local formspec = "size[8,8;]" .. + "label[0,0;Mission by " .. owner .. "]" .. + "label[4,0;Time: " .. missions.format_time(time) .. "]" .. + "label[0,1;" .. name .. "]" .. + "label[0,2;" .. description .. "]" .. + "button_exit[5.5,1;2,1;start;Start]" .. + missions.FORMBG + + minetest.show_formspec(player:get_player_name(), + FORMNAME .. ";" .. minetest.pos_to_string(pos), + formspec + ) +end + + +minetest.register_on_player_receive_fields(function(player, formname, fields) + local parts = formname:split(";") + local name = parts[1] + if name ~= FORMNAME then + return + end + + local pos = minetest.string_to_pos(parts[2]) + + if fields.start then + local result = missions.validate_mission(pos, player) + + if not result.success then + minetest.chat_send_player(player:get_player_name(), "Mission invalid: " .. result.msg) + else + missions.start(pos, player) + end + end + + +end) diff --git a/missions/form.newstep.lua b/missions/form.newstep.lua new file mode 100644 index 0000000..fb7b662 --- /dev/null +++ b/missions/form.newstep.lua @@ -0,0 +1,111 @@ + +local FORMNAME = "mission_block_newstep" + +local function get_mission_steps_for_player(player) + local list = {} + for i,spec in ipairs(missions.steps) do + + local allowed = true + + -- check privs + if spec.privs and not minetest.check_player_privs(player:get_player_name(), spec.privs) then + allowed = false + end + + if allowed then + table.insert(list, spec) + end + end + + return list +end + +missions.form.newstep = function(pos, node, player) + + local steps = get_mission_steps_for_player(player) + local list = "" + for i,spec in ipairs(steps) do + list = list .. minetest.formspec_escape(spec.name) + if i < #steps then + -- not end of list + list = list .. "," + end + end + + local formspec = "size[8,10;]" .. + "label[0,0;New step]" .. + "textlist[0,1;8,7;steptype;" .. list .. "]" .. + "button[0,9;8,1;add;Add]" .. + missions.FORMBG + + minetest.show_formspec(player:get_player_name(), + FORMNAME .. ";" .. minetest.pos_to_string(pos), + formspec + ) + +end + +local selected_newstep_index = {} -- playername -> index + + +minetest.register_on_player_receive_fields(function(player, formname, fields) + local parts = formname:split(";") + local name = parts[1] + if name ~= FORMNAME then + return + end + + local pos = minetest.string_to_pos(parts[2]) + local node = minetest.get_node(pos) + + if not missions.check_owner(pos, player) then + return + end + + if fields.steptype then + parts = fields.steptype:split(":") + if parts[1] == "CHG" then + local selected_step = tonumber(parts[2]) + selected_newstep_index[player:get_player_name()] = selected_step + end + end + + if fields.add then + local steps = get_mission_steps_for_player(player) + local index = selected_newstep_index[player:get_player_name()] + local spec = steps[index] + + if not spec then + return + end + + -- check privs + if spec.privs and not minetest.check_player_privs(player:get_player_name(), spec.privs) then + minetest.chat_send_player(player:get_player_name(), "Missing privs: " .. dump(spec.privs)) + return + end + + + local stepdata = nil + if spec.create then + stepdata = spec.create() + end + + local step = { + type = spec.type, + name = spec.name, + data = stepdata + } + + steps = missions.get_steps(pos) + table.insert(steps, step) + + missions.set_steps(pos, steps) + local stepnumber = #steps + + missions.show_step_editor(pos, node, player, stepnumber, step, stepdata) + end + +end) + + diff --git a/missions/form.wand.lua b/missions/form.wand.lua new file mode 100644 index 0000000..d95b192 --- /dev/null +++ b/missions/form.wand.lua @@ -0,0 +1,67 @@ + +local FORMNAME = "mission_wand_name" + +missions.can_create_wand = function(player, pos) + return true +end + +minetest.register_on_player_receive_fields(function(player, formname, fields) + local parts = formname:split(";") + local name = parts[1] + if name ~= FORMNAME then + return + end + + local pos = minetest.string_to_pos(parts[2]) + local posStr = minetest.pos_to_string(pos) + local node = minetest.get_node(pos) + + if not fields.name then + return + end + + if not missions.can_create_wand(player, pos) then + return + end + + local inv = player:get_inventory() + local type = "Position" + local stack = ItemStack("missions:wand_position") + + if node.name == "default:chest" or node.name == "default:chest_locked" or node.name == "more_chests:dropbox" then + stack = ItemStack("missions:wand_chest") + type = "Chest" + end + + if node.name == "missions:mission" then + stack = ItemStack("missions:wand_mission") + type = "Mission" + end + + local meta = stack:get_meta() + meta:set_string("pos", posStr) + meta:set_string("name", fields.name) + meta:set_string("description", "Mission wand (" .. type .. "): " .. posStr .. + " with name: '" .. fields.name .. + "' and node '" .. node.name .. "'") + + if inv:contains_item("main", "missions:wand") and inv:room_for_item("main", stack) then + inv:remove_item("main", "missions:wand") + inv:add_item("main", stack) + end + +end) + + +missions.form.wand = function(pos, player) + local formspec = "size[8,1;]" .. + "field[0,0.5;6,1;name;Name;]" .. + "button_exit[6,0.1;2,1;save;Save]" .. + missions.SMALLFORMBG + + minetest.show_formspec(player:get_player_name(), + FORMNAME .. ";" .. minetest.pos_to_string(pos), + formspec + ) +end + diff --git a/missions/functions.lua b/missions/functions.lua new file mode 100644 index 0000000..4b9b643 --- /dev/null +++ b/missions/functions.lua @@ -0,0 +1,248 @@ + +missions.check_owner = function(pos, player) + -- check override priv + local has_override = minetest.check_player_privs(player, "protection_bypass") + if has_override then + return true + end + + -- check owner + local meta = minetest.get_meta(pos) + return player and player:is_player() and player:get_player_name() == meta:get_string("owner") +end + +local SECONDS_IN_DAY = 3600*24 +local SECONDS_IN_HOUR = 3600 +local SECONDS_IN_MINUTE = 60 + + + +missions.get_owner_from_pos = function(pos) + local meta = minetest.get_meta(pos) + return meta:get_string("owner") +end + + +local playermissions = {} +local playerabort = {} + +--persistence stuff + +minetest.register_on_joinplayer(function(player) + local missionStr = player:get_attribute(missions.MISSION_ATTRIBUTE_NAME) + + local mission = nil + if missionStr then + mission = minetest.deserialize(missionStr) + end + + if mission and mission.version == missions.CURRENT_MISSION_SPEC_VERSION then + -- only load if compatible with current spec + local step = mission.steps[mission.currentstep] + if step == nil then + return + end + + -- reset init flag + step.initialized = false + + -- store in variable + playermissions[player:get_player_name()] = mission + end +end) + +minetest.register_on_leaveplayer(function(player) + playermissions[player:get_player_name()] = nil +end) + +missions.persist_mission = function(player, mission) + player:set_attribute(missions.MISSION_ATTRIBUTE_NAME, minetest.serialize(mission)) +end + +minetest.register_on_respawnplayer(function(player) + missions.abort(player:get_player_name()) +end) + + +missions.set_current_mission = function(player, mission) + playerabort[player:get_player_name()] = false + playermissions[player:get_player_name()] = mission +end + + + +missions.get_current_mission = function(player) + return playermissions[player:get_player_name()] +end + +missions.abort = function(playername) + playerabort[playername] = true +end + +missions.has_aborted = function(playername) + return playerabort[playername] +end + + +missions.format_time = function(seconds) + local str = "" + + + if seconds >= SECONDS_IN_DAY then + local days = math.floor(seconds / SECONDS_IN_DAY) + str = str .. days .. " d " + seconds = seconds - (days * SECONDS_IN_DAY) + end + + if seconds >= SECONDS_IN_HOUR then + local hours = math.floor(seconds / SECONDS_IN_HOUR) + str = str .. hours .. " h " + seconds = seconds - (hours * SECONDS_IN_HOUR) + end + + if seconds >= SECONDS_IN_MINUTE then + local minutes = math.floor(seconds / SECONDS_IN_MINUTE) + str = str .. minutes .. " min " + seconds = seconds - (minutes * SECONDS_IN_MINUTE) + end + + str = str .. seconds .. " s" + + return str +end + +-- mission steps setter/getter +missions.get_steps = function(pos) + local meta = minetest.get_meta(pos) + local steps = minetest.deserialize(meta:get_string("steps")) + + return steps +end + +missions.set_steps = function(pos, steps) + local meta = minetest.get_meta(pos) + meta:set_string("steps", minetest.serialize(steps)) +end + +-- user selected step + +local SELECTED_LIST_ITEM_ATTR_NAME = "missions_selected_list_item" + +missions.get_selected_list_item = function(player) + return tonumber( player:get_attribute(SELECTED_LIST_ITEM_ATTR_NAME) or "1" ) +end + +missions.set_selected_list_item = function(player, num) + player:set_attribute(SELECTED_LIST_ITEM_ATTR_NAME, num) +end + + + +-- node register helper +missions.only_owner_can_dig = function(pos, player) + if not player then + return false + end + + local has_override = minetest.check_player_privs(player, "protection_bypass") + + local meta = minetest.get_meta(pos) + local playername = player:get_player_name() or "" + return meta:get_string("owner") == playername or has_override +end + + +-- returns the image (item, node, tool) or "" +missions.get_image = function(name) + -- stolen from drawers code + local texture = "blank.png" + local def = minetest.registered_items[name] + if not def then + return texture + end + + if def.inventory_image and #def.inventory_image > 0 then + texture = def.inventory_image + else + if not def.tiles then return texture end + local tiles = table.copy(def.tiles) + + for k,v in pairs(tiles) do + if type(v) == "table" then + tiles[k] = v.name + end + end + + -- tiles: up, down, right, left, back, front + -- inventorycube: up, front, right + if #tiles <= 2 then + texture = minetest.inventorycube(tiles[1], tiles[1], tiles[1]) + elseif #tiles <= 5 then + texture = minetest.inventorycube(tiles[1], tiles[3], tiles[3]) + else -- full tileset + texture = minetest.inventorycube(tiles[1], tiles[6], tiles[3]) + end + end + + return texture + +end + + + +missions.show_banner = function(player, title, msg) + minetest.sound_play({name="missions_generic", gain=0.25}, {to_player=player:get_player_name()}) + + + local one = player:hud_add({ + hud_elem_type = "image", + name = "award_bg", + scale = {x = 2, y = 1}, + text = "missions_bg_default.png", + position = {x = 0.5, y = 0}, + offset = {x = 0, y = 138}, + alignment = {x = 0, y = -1} + }) + + local two = player:hud_add({ + hud_elem_type = "text", + name = "award_au", + number = 0xFFFFFF, + scale = {x = 100, y = 20}, + text = title, + position = {x = 0.5, y = 0}, + offset = {x = 0, y = 40}, + alignment = {x = 0, y = -1} + }) + + local three = player:hud_add({ + hud_elem_type = "text", + name = "rank_title", + number = 0xFFFFFF, + scale = {x = 100, y = 20}, + text = msg, + position = {x = 0.5, y = 0}, + offset = {x = 30, y = 100}, + alignment = {x = 0, y = -1} + }) + + local rank_offset = {x = -1.5, y = 126} + + local four = player:hud_add({ + hud_elem_type = "image", + name = "award_icon", + scale = {x = 2, y = 2}, + text = "missions_block_preview.png", + position = {x = 0.4, y = 0}, + offset = rank_offset, + alignment = {x = 0, y = -1} + }) + + minetest.after(4, function() + player:hud_remove(one) + player:hud_remove(two) + player:hud_remove(three) + player:hud_remove(four) + end) +end + diff --git a/missions/hud.lua b/missions/hud.lua new file mode 100644 index 0000000..21ceb0a --- /dev/null +++ b/missions/hud.lua @@ -0,0 +1,140 @@ + +local HUD_POSITION = {x = 0.5, y = 0.2} +local HUD_ALIGNMENT = {x = 1, y = 0} + +local hud = {} -- playerName -> {} + + +minetest.register_on_joinplayer(function(player) + local playername = player:get_player_name() + + local data = {} + + data.title = player:hud_add({ + hud_elem_type = "text", + position = HUD_POSITION, + offset = {x = 0, y = 0}, + text = "", + alignment = HUD_ALIGNMENT, + scale = {x = 100, y = 100}, + number = 0xFFFFFF + }) + + data.mission = player:hud_add({ + hud_elem_type = "text", + position = HUD_POSITION, + offset = {x = 0, y = 35}, + text = "", + alignment = HUD_ALIGNMENT, + scale = {x = 100, y = 100}, + number = 0x00FF00 + }) + + data.time = player:hud_add({ + hud_elem_type = "text", + position = HUD_POSITION, + offset = {x = 0, y = 70}, + text = "", + alignment = HUD_ALIGNMENT, + scale = {x = 100, y = 100}, + number = 0x00FF00 + }) + + hud[playername] = data +end) + +minetest.register_on_leaveplayer(function(player) + local playername = player:get_player_name() + hud[playername] = nil +end) + +local format_time = function(seconds) + local minutes = math.floor(seconds / 60) + local secs = seconds - (minutes * 60) + if secs < 10 then + return minutes .. ":0" .. secs + else + return minutes .. ":" ..secs + end +end + +missions.hud_remove_mission = function(player, mission) + -- remove waypoints from elapsed mission + if mission.hud ~= nil and mission.hud.source ~= nil then + player:hud_remove(mission.hud.source) + end + + if mission.hud ~= nil and mission.hud.target ~= nil then + player:hud_remove(mission.hud.target) + end +end + +-- called by executor.lua or by executor.hud.lua +missions.hud_update = function(player, playermissions) + local playername = player:get_player_name() + + local now = os.time(os.date("!*t")) + local data = hud[playername] + local topMission = nil + + if data ~= nil and playermissions ~= nil then + for i,mission in pairs(playermissions) do + + if mission.hud == nil then + + + if mission.type == "transport" then + -- add waypoint markers if new mission + mission.hud = {} + mission.hud.target = player:hud_add({ + hud_elem_type = "waypoint", + name = mission.target.title .. "(Destination)", + text = "m", + number = 0x0000FF, + world_pos = {x=mission.target.x, y=mission.target.y, z=mission.target.z} + }) + + end + end + + + -- top mission check + if topMission == nil then + topMission = mission + else + local remainingTime = mission.time - (now - mission.start) + local topRemainingTime = topMission.time - (now - topMission.start) + + if remainingTime < topRemainingTime then + topMission = mission + end + end + + end + end + + if topMission ~= nil then + -- show the first mission to time out + local remainingTime = topMission.time - (now - topMission.start) + player:hud_change(data.title, "text", "Missions: (1/" .. table.getn(playermissions) .. ")") + player:hud_change(data.mission, "text", topMission.name .. " (" .. topMission.type .. ")") + player:hud_change(data.time, "text", "" .. format_time(remainingTime)) + + if remainingTime > 60 then + player:hud_change(data.time, "number", 0x00FF00) + player:hud_change(data.mission, "number", 0x00FF00) + else + player:hud_change(data.time, "number", 0xFF0000) + player:hud_change(data.mission, "number", 0xFF0000) + end + else + -- no missions running + player:hud_change(data.title, "text", "") + player:hud_change(data.mission, "text", "") + player:hud_change(data.time, "text", "") + end +end + + + + diff --git a/missions/init.lua b/missions/init.lua new file mode 100644 index 0000000..f7d27ed --- /dev/null +++ b/missions/init.lua @@ -0,0 +1,86 @@ +local has_xp_redo_mod = minetest.get_modpath("xp_redo") +local has_mobs_mod = minetest.get_modpath("mobs") +local has_unified_inv = minetest.get_modpath("unified_inventory") +local has_mesecons = minetest.get_modpath("mesecons") + +local MP = minetest.get_modpath("missions") + +missions = { + form = {}, + hud = { + posx = tonumber(minetest.settings:get("missions.hud.offsetx") or 0.7), + posy = tonumber(minetest.settings:get("missions.hud.offsety") or 0.2) + }, + MISSION_ATTRIBUTE_NAME = "currentmission", + CURRENT_MISSION_SPEC_VERSION = 2, -- see executor.lua:missions.start() + + SMALLFORMBG = "bgcolor[#f4d142BB]" .. + "listcolors[#00000069;#5A5A5A;#141318;#30434C;#FFF]", + + FORMBG = "bgcolor[#f4d142BB]" .. + "image[7,0;missions_block_preview.png]" .. + "listcolors[#00000069;#5A5A5A;#141318;#30434C;#FFF]" +} + +-- forms +dofile(MP.."/form.missionblock_main.lua") +dofile(MP.."/form.missionblock_stepeditor.lua") +dofile(MP.."/form.missionblock_config.lua") +dofile(MP.."/form.missionblock_user.lua") +dofile(MP.."/form.missionblock_stats.lua") +dofile(MP.."/form.missionblock_help.lua") +dofile(MP.."/form.newstep.lua") +dofile(MP.."/form.wand.lua") + +dofile(MP.."/migrate.lua") +dofile(MP.."/privs.lua") +dofile(MP.."/chat.lua") +dofile(MP.."/functions.lua") +dofile(MP.."/validate.lua") +dofile(MP.."/hud.lua") +dofile(MP.."/block.lua") +dofile(MP.."/wand.lua") + +if has_unified_inv then + dofile(MP.."/ui.lua") +end + +-- executor +dofile(MP.."/executor.lua") +dofile(MP.."/executor.hud.lua") + +-- step register +dofile(MP.."/register_step.lua") + +-- step specs +dofile(MP.."/steps/waypoint.lua") +dofile(MP.."/steps/dig.lua") +dofile(MP.."/steps/digspecific.lua") +dofile(MP.."/steps/build.lua") +dofile(MP.."/steps/buildspecific.lua") +dofile(MP.."/steps/chestput.lua") +dofile(MP.."/steps/chestreward.lua") +dofile(MP.."/steps/givereward.lua") +dofile(MP.."/steps/message.lua") +dofile(MP.."/steps/teleport.lua") +dofile(MP.."/steps/grant.lua") +dofile(MP.."/steps/revokeinteract.lua") +dofile(MP.."/steps/givebook.lua") +dofile(MP.."/steps/checkpriv.lua") +dofile(MP.."/steps/limitedtries.lua") +-- dofile(MP.."/steps/followup.lua") + +if has_mesecons then + dofile(MP.."/steps/mesecons_receptor_on.lua") +end + +if has_xp_redo_mod then + dofile(MP.."/steps/checkxp.lua") + dofile(MP.."/steps/givexp.lua") +end + +if has_mobs_mod then + dofile(MP.."/steps/spawnmob.lua") +end + +print("[OK] Missions") diff --git a/missions/migrate.lua b/missions/migrate.lua new file mode 100644 index 0000000..25e686d --- /dev/null +++ b/missions/migrate.lua @@ -0,0 +1,32 @@ + +-- migration call for reverse compatibility +-- called on every missionblock rightclick +missions.migrate_mission_block = function(pos, meta) + local inv = meta:get_inventory() + + if inv:get_size("main") ~= 8 then + minetest.log("info", "[missions] Migrated mission-block inventory (v1) at pos: " .. minetest.pos_to_string(pos)) + inv:set_size("main", 8) + end + + if meta:get_int("hidden") == nil then + meta:set_int("hidden", 0) + end + + if meta:get_int("valid") == nil then + meta:set_int("valid", 1) + end + + if meta:get_string("validationresult") == nil then + meta:set_string("validationresult", "") + end + + if meta:get_int("successcount") == nil then + meta:set_int("successcount", 0) + end + + if meta:get_int("failcount") == nil then + meta:set_int("failcount", 0) + end + +end diff --git a/missions/privs.lua b/missions/privs.lua new file mode 100644 index 0000000..48df381 --- /dev/null +++ b/missions/privs.lua @@ -0,0 +1,15 @@ +local has_mobs_mod = minetest.get_modpath("mobs") + +if has_mobs_mod then + minetest.register_privilege("missions_mobs", { + description = "Allows the creation of mission steps with mobs" + }); +end + +minetest.register_privilege("missions_teleport", { + description = "Allows the creation of mission steps with teleportation" +}); + +minetest.register_privilege("missions_book", { + description = "Allows the creation of mission steps with book-giving" +}); diff --git a/missions/readme.md b/missions/readme.md new file mode 100644 index 0000000..2f71013 --- /dev/null +++ b/missions/readme.md @@ -0,0 +1,162 @@ +Minetest mission mod (missions) +====== + +Minetest mod for in-game mission creation (for players and admins) +Adds a mission block to create missions and a mission-wand to mark positions and chests + +* Github: [https://github.com/thomasrudin-mt/missions](https://github.com/thomasrudin-mt/missions) +* Forum Topic: [https://forum.minetest.net/viewtopic.php?f=9&t=20125](https://forum.minetest.net/viewtopic.php?f=9&t=20125) + +Obligatory screenshot +![](screenshots/intro.png?raw=true) + +Features: +* In-game mission builder +* Craftable mission-block and wand +* Create epic quests or mazes +* Missions can span multiple days, even weeks +* Running missions persist across login/logout and server-restart + +Supported mission-steps: +* Build (place any nodes) +* Build specific nodes (e.g: Stone) +* Dig nodes (any) +* Dig specific nodes (e.g: Meseblock) +* Put items in Chest at position (e.g: 99xStone) +* Waypoint (hidden and visible in hud) +* Teleport player to position (requires the **missions_teleport** priv) +* Reward player with items from a chest +* Reward player with items (mission-build must have the **give** priv) +* Message (show a message with a title) +* Grant priviliege (requires the **priv** privilege) + +Extended mission-steps (dependent on other mods): +* Spawn a mob at position (requires the **missions_mobs** priv) +* Check xp (if xp mod enabled) +* Give xp (if xp mod enabled and privs available) + +# Install + +* Unzip/Clone it to your worldmods folder + +# Crafting + +Mission-Block: +![](screenshots/craft_mission.png?raw=true) + +Mission wand: +![](screenshots/craft_wand1.png?raw=true) + +**Note:** Used (position and chest) wands can be mixed back to a plain wand again + +# Manual + +## Create missions (in-game) + +Craft yourself a mission wand (missions:wand) and mark your waypoints and chests with it: +![](screenshots/screenshot_20180724_205841.png?raw=true) + +Give them a name so you find them later in the inventory. +The wand converts either to a position wand or a chest wand, depending on what you are pointing it to. +* **Position wand**: Marks waypoints for a mission +* **Chest wand**: Marks chests for taking or putting inventory (default and morechests supported for now) + +Properly named chest-wand: +![](screenshots/screenshot_20180724_205926.png?raw=true) + + +When you are finished marking the places and chests you want in your mission +you can craft a mission-block (missions:mission) and place it where you want the mission to start. +The Mission block can only be dug from the owner or an admin with protector_bypass privilege. + +Rightclick on the mission to open the editor dialog: +![](screenshots/screenshot_20180724_205947.png?raw=true) + +On the left you can add and order the mission steps. +On the right you can edit its name, description and the time allowed to finish it. + +Now click on **add** to create your first mission step: +![](screenshots/screenshot_20180724_205958.png?raw=true) + +Choose your first step in the mission: +* Could be a waypoint to which the player has to go +* Or a chest which has to be filled with a given amount and type of item +* Or a simple welcome message to brief the player + +Example of a step in which the player has to place 99 stones in the chest +![](screenshots/screenshot_20180724_210022.png?raw=true) + +This is just an example, the player could take out the items as soon as the step or the mission is finished. +In reality you would use a dropbox from the morechests mod or inject the items into some tubes with mesecons and pipeworks. + +Example of a waypoint step: +![](screenshots/screenshot_20180724_210049.png?raw=true) + +The visibility of the waypoint can be toggled if you want the player to search for it (after you gave him some hints of course) + + +Example of a Message step: +![](screenshots/screenshot_20180724_210108.png?raw=true) + +The player has to click the message away in order to execute the next step + +An example of a finished mission with waypoints and messages: +![](screenshots/screenshot_20180724_210112.png?raw=true) + +now you can click on **Save and Validate** to check if the mission is valid: +* Enough items to give the player as reward +* Enough room in chests for the player to put in + +An example of an invalid mission: +![](screenshots/screenshot_20180724_210145.png?raw=true) + +The mission will be validated every time a player wants to start it. + +Of course a reward upon finishing the mission would always be a good idea... +For this, create a **Reward from Chest** step and place the marked wand to the chest in the **target** field. +The chest has to contain the items in order to start the mission. + +## Play missions + +To play a mission do a rightclick on a mission-block or as the owner of it click on **User** in the edit dialog: +![](screenshots/screenshot_20180724_210206.png?raw=true) + +After carefully reading the text (or not at all) you can click **Start** to accept the mission. +Only one mission can be active at the same time. + +After the start the configured wapyoints will guide you through the mission (or not if so configured) +![](screenshots/screenshot_20180724_210221.png?raw=true) + +For item collection a status-text on the upper right will tell you how much you have to collect: +![](screenshots/screenshot_20180724_210232.png?raw=true) + + +An example message from the mission-creator to the player: +![](screenshots/screenshot_20180724_210243.png?raw=true) + +## Create more mission-steps (specs) + +See the existing steps in the **steps** folder for some guidelines. + +# Depends + +* default +* [xp_redo](https://github.com/thomasrudin-mt/xp_redo)? +* [more_chests](https://github.com/minetest-mods/more_chests)? +* [mobs_redo](https://notabug.org/TenPlus1/mobs_redo)? +* [mobs_monster](https://notabug.org/TenPlus1/mobs_monster)? +* [mobs_horse](https://notabug.org/TenPlus1/mob_horse)? +* [mobs_animal](https://notabug.org/TenPlus1/mobs_animal)? +* [mobs_npc](https://notabug.org/TenPlus1/mobs_npc)? +* mobs_xenomorph? +* mobs_fish? +* mobs_crocs? +* mobs_jellyfish? +* mobs_sharks? +* mobs_turtles? +* mesecon? + +# Pull requests / bugs + +I'm happy for any bug reports or pull requests (code and textures) + diff --git a/missions/register_step.lua b/missions/register_step.lua new file mode 100644 index 0000000..7d757ee --- /dev/null +++ b/missions/register_step.lua @@ -0,0 +1,103 @@ + +missions.steps = {} + +missions.register_step = function(spec) + table.insert(missions.steps, spec) +end + +missions.get_step_spec_by_type = function(type) + for i,spec in ipairs(missions.steps) do + if type == spec.type then + -- step spec found + return spec + end + end +end + +local FORMNAME = "mission_block_editstep" + +missions.show_step_editor = function(pos, node, player, stepnumber, step, stepdata) + + -- clear inv before showing step editor + local meta = minetest.get_meta(pos) + local inv = meta:get_inventory() + for i=1,inv:get_size("main") do + inv:set_stack("main", i, ItemStack("")) + end + + for i,spec in ipairs(missions.steps) do + if spec.type == step.type then + if not spec.edit_formspec then + missions.form.missionblock_stepeditor(pos, node, player) + return + end + + local formspec = spec.edit_formspec({ + pos=pos, + node=node, + player=player, + stepnumber=stepnumber, + step=step, + stepdata=stepdata, + inv=inv + }) + + minetest.show_formspec(player:get_player_name(), + FORMNAME .. ";" .. minetest.pos_to_string(pos) .. ";" .. stepnumber .. ";" .. spec.type, + formspec .. missions.FORMBG + ) + end + end +end + +minetest.register_on_player_receive_fields(function(player, formname, fields) + local parts = formname:split(";") + local name = parts[1] + if name ~= FORMNAME then + return + end + + local pos = minetest.string_to_pos(parts[2]) + local meta = minetest.get_meta(pos) + local inv = meta:get_inventory() + local node = minetest.get_node(pos) + local stepnumber = tonumber(parts[3]) + local spectype = parts[4] + + if not missions.check_owner(pos, player) then + return + end + + local steps = missions.get_steps(pos) + + local step = steps[stepnumber] + local stepdata = step.data + + for i,spec in ipairs(missions.steps) do + if spec.type == spectype then + local show_editor = function() + missions.show_step_editor(pos, node, player, stepnumber, step, stepdata) + end + + local show_mission = function() + missions.form.missionblock_stepeditor(pos, node, player) + end + + spec.update({ + fields=fields, + player=player, + step=step, + show_editor=show_editor, + show_mission=show_mission, + inv=inv + }) + + -- write back data + missions.set_steps(pos, steps) + end + end + +end) + + + diff --git a/missions/sounds/missions_generic.ogg b/missions/sounds/missions_generic.ogg new file mode 100644 index 0000000..3ae982b Binary files /dev/null and b/missions/sounds/missions_generic.ogg differ diff --git a/missions/steps/build.lua b/missions/steps/build.lua new file mode 100644 index 0000000..7731bda --- /dev/null +++ b/missions/steps/build.lua @@ -0,0 +1,96 @@ + +local counter = {} -- playername -> count + +missions.register_step({ + + type = "simplebuild", + name = "Place nodes", + + create = function() + return {count=99} + end, + + + get_status = function(ctx) + local player = ctx.player + local stepdata = ctx.step.data + + local name = player:get_player_name() + local current_count = counter[name] or 0 + local rest = stepdata.count - (current_count - stepdata.start) + return "Place " .. rest .. " nodes" + end, + + edit_formspec = function(ctx) + local stepdata = ctx.step.data + + local formspec = "size[8,8;]" .. + "label[0,0;Place any nodes]" .. + "field[0,2;8,1;count;Count;" .. stepdata.count .. "]" .. + "button[0,7;8,1;save;Save]" + + return formspec; + end, + + update = function(ctx) + local fields = ctx.fields + local stepdata = ctx.step.data + + if fields.count then + local count = tonumber(fields.count) + if count and count > 0 then + stepdata.count = count + end + end + + if fields.save then + ctx.show_mission() + end + end, + + on_step_enter = function(ctx) + local player = ctx.player + local stepdata = ctx.step.data + + local name = player:get_player_name() + stepdata.start = counter[name] or 0 + end, + + on_step_interval = function(ctx) + local player = ctx.player + local stepdata = ctx.step.data + + local name = player:get_player_name() + local current_count = counter[name] or 0 + if current_count - stepdata.start >= stepdata.count then + ctx.on_success() + end + end, + + on_step_exit = function(ctx) + end + + +}) + +minetest.register_on_placenode(function(pos, newnode, player, oldnode, itemstack) + if player ~= nil and player:is_player() then + local name = player:get_player_name() + local count = counter[name] or 0 + + count = count + 1 + counter[name] = count + end +end) + +minetest.register_on_dignode(function(pos, oldnode, digger) + if digger ~= nil and digger:is_player() then + local name = digger:get_player_name() + local count = counter[name] or 0 + + count = count - 1 + counter[name] = math.max(count, 0) + end +end) + + diff --git a/missions/steps/buildspecific.lua b/missions/steps/buildspecific.lua new file mode 100644 index 0000000..e74f58f --- /dev/null +++ b/missions/steps/buildspecific.lua @@ -0,0 +1,167 @@ + +local HUD_POSITION = {x = missions.hud.posx, y = missions.hud.posy } +local HUD_ALIGNMENT = {x = 1, y = 0} + +local stacks = {} -- playername -> stack_str +local hud = {} -- playername -> {} + +missions.register_step({ + + type = "buildspecific", + name = "Place specific nodes", + + create = function() + return {stack="default:stone 99"} + end, + + allow_inv_stack_put = function(listname, index, stack) + -- allow position wand on pos 1 of main inv + if listname == "main" and index == 1 and minetest.registered_nodes[stack:get_name()] then + -- stack is a node + return true + end + + return false + end, + + get_status = function(ctx) + local player = ctx.player + local name = player:get_player_name() + + local stack = ItemStack(stacks[name] or "") + + local hud_data = hud[name]; + player:hud_change(hud_data.counter, "text", stack:get_count() .. "x") + + return "Place " .. stack:get_count() .. " " .. stack:get_name() + end, + + edit_formspec = function(ctx) + local stepdata = ctx.step.data + local pos = ctx.pos + local stack = ItemStack(stepdata.stack) + + ctx.inv:set_stack("main", 1, stack) + + local formspec = "size[8,8;]" .. + "label[0,0;Place specific nodes]" .. + + "label[0,1;Node:]" .. + "list[nodemeta:" .. pos.x .. "," .. pos.y .. "," .. pos.z .. ";main;3,1;1,1;0]" .. + + "list[current_player;main;0,2;8,4;]" .. + + "button[0,7;8,1;save;Save]" + + return formspec; + end, + + update = function(ctx) + local fields = ctx.fields + local inv = ctx.inv + local stepdata = ctx.step.data + + if fields.save then + local stack = inv:get_stack("main", 1) + + if not stack:is_empty() then + stepdata.stack = stack:to_string() + end + + ctx.show_mission() + end + end, + + on_step_enter = function(ctx) + local player = ctx.player + local stepdata = ctx.step.data + local stack = ItemStack(stepdata.stack) + local name = player:get_player_name() + + stacks[name] = stack:to_string() + + local hud_data = {} + hud[player:get_player_name()] = hud_data; + + hud_data.counter = player:hud_add({ + hud_elem_type = "text", + position = HUD_POSITION, + offset = {x = 0, y = 140}, + text = "", + alignment = HUD_ALIGNMENT, + scale = {x = 100, y = 100}, + number = 0x00FF00 + }) + + hud_data.image = player:hud_add({ + hud_elem_type = "image", + position = HUD_POSITION, + offset = {x = 32, y = 140}, + text = missions.get_image(stack:get_name()), + alignment = HUD_ALIGNMENT, + scale = {x = 1, y = 1}, + }) + end, + + on_step_interval = function(ctx) + local player = ctx.player + local name = player:get_player_name() + + local stack = ItemStack(stacks[name] or "") + + if stack:get_count() == 0 then + ctx.on_success() + end + end, + + on_step_exit = function(ctx) + local player = ctx.player + local name = player:get_player_name() + local hud_data = hud[name] + + if hud_data and hud_data.image then + player:hud_remove(hud_data.image) + end + + if hud_data and hud_data.counter then + player:hud_remove(hud_data.counter) + end + + hud[name] = nil + stacks[name] = nil + end + + +}) + +minetest.register_on_placenode(function(pos, newnode, player, oldnode, itemstack) + if player ~= nil and player:is_player() then + local name = player:get_player_name() + local stack = ItemStack(stacks[name] or "") + + if newnode.name == stack:get_name() then + -- node name matches + stack:take_item(1) + end + + stacks[name] = stack:to_string() + end +end) + +minetest.register_on_dignode(function(pos, oldnode, digger) + if digger ~= nil and digger:is_player() then + local name = digger:get_player_name() + if not stacks[name] then return end + + local stack = ItemStack(stacks[name]) + + if oldnode.name == stack:get_name() then + -- node name matches + stack:set_count(stack:get_count() + 1) + end + + stacks[name] = stack:to_string() + end +end) + + diff --git a/missions/steps/checkpriv.lua b/missions/steps/checkpriv.lua new file mode 100644 index 0000000..7af967a --- /dev/null +++ b/missions/steps/checkpriv.lua @@ -0,0 +1,51 @@ + +missions.register_step({ + + type = "checkpriv", + name = "Check Privilege", + + create = function() + return {priv="interact"} + end, + + edit_formspec = function(ctx) + local stepdata = ctx.step.data + local stepnumber = ctx.stepnumber + + local formspec = "size[8,8;]" .. + "label[0,0;Priv check (Step #" .. stepnumber .. ")]" .. + + "field[0,2;8,1;priv;Privilege;" .. stepdata.priv .. "]" .. + "button[0,7;8,1;save;Save]" + + return formspec; + end, + + update = function(ctx) + local fields = ctx.fields + local stepdata = ctx.step.data + + if fields.priv then + stepdata.priv = fields.priv + end + + if fields.save then + ctx.show_mission() + end + end, + + on_step_enter = function(ctx) + local player = ctx.player + local stepdata = ctx.step.data + + local p_obj = {} + p_obj[stepdata.priv] = true + + if minetest.check_player_privs(player:get_player_name(), p_obj) then + ctx.on_success() + else + ctx.on_failed("Privilege '" .. stepdata.priv .. "' needed!") + end + end + +}) diff --git a/missions/steps/checkxp.lua b/missions/steps/checkxp.lua new file mode 100644 index 0000000..011d860 --- /dev/null +++ b/missions/steps/checkxp.lua @@ -0,0 +1,52 @@ + +missions.register_step({ + + type = "checkxp", + name = "Check XP", + + create = function() + return {xp=100} + end, + + edit_formspec = function(ctx) + local stepdata = ctx.step.data + local stepnumber = ctx.stepnumber + + local formspec = "size[8,8;]" .. + "label[0,0;XP Check (Step #" .. stepnumber .. ")]" .. + "field[0,2;8,1;xp;XP Threshold;" .. stepdata.xp .. "]" .. + "button[0,7;8,1;save;Save]" + + return formspec; + end, + + update = function(ctx) + local fields = ctx.fields + local stepdata = ctx.step.data + + if fields.xp then + local xp = tonumber(fields.xp) + if xp and xp > 0 then + stepdata.xp = xp + end + end + + if fields.save then + ctx.show_mission() + end + end, + + on_step_enter = function(ctx) + local player = ctx.player + local stepdata = ctx.step.data + + if xp_redo.get_xp(player:get_player_name()) > stepdata.xp then + ctx.on_success() + else + ctx.on_failed("Not enough xp, " .. stepdata.xp .. " needed!") + end + end + +}) + + diff --git a/missions/steps/chestput.lua b/missions/steps/chestput.lua new file mode 100644 index 0000000..e9aa913 --- /dev/null +++ b/missions/steps/chestput.lua @@ -0,0 +1,302 @@ + +local HUD_POSITION = {x = missions.hud.posx, y = missions.hud.posy } +local HUD_ALIGNMENT = {x = 1, y = 0} + + +local hud = {} -- playerName -> {} +local remainingItems = {} -- playerName -> ItemStack + + +missions.register_step({ + + type = "chestput", + name = "Put in chest", + + create = function() + return {stack="", pos=nil, name="", visible=1} + end, + + get_status = function(ctx) + local player = ctx.player + + local str = remainingItems[player:get_player_name()] + if str then + local stack = ItemStack(str) + return "Put " .. stack:get_count() .. " x " .. stack:get_name() .. " into the chest" + else + return "" + end + end, + + validate = function(ctx) + local meta = minetest.get_meta(ctx.pos) + local stepdata = ctx.step.data + + local inv = meta:get_inventory() + + local removeStack = ItemStack(stepdata.stack) + + if stepdata.pos == nil then + return { + success=false, + failed=true, + msg="No position defined" + } + end + + if inv:room_for_item("main", removeStack) then + return {success=true} + else + return { + success=false, + failed=true, + msg="Chest has no space for items: " .. stepdata.stack .. + " chest-location: " .. stepdata.pos.x .. "/" .. stepdata.pos.y .. "/" .. stepdata.pos.z + } + end + + end, + + allow_inv_stack_put = function(listname, index, stack) + -- allow position wand on pos 1 of main inv + if listname == "main" then + if index == 2 and stack:get_name() == "missions:wand_chest" then + return true + end + + if index == 1 then + return true + end + end + + return false + end, + + edit_formspec = function(ctx) + local stepdata = ctx.step.data + local pos = ctx.pos + + ctx.inv:set_stack("main", 1, ItemStack(stepdata.stack)) + + local name = "" + + if stepdata.pos then + local distance = vector.distance(ctx.pos, stepdata.pos) + name = name .. "Position(" .. stepdata.pos.x .. "/" .. + stepdata.pos.y .. "/" .. stepdata.pos.z ..") " .. + "Distance: " .. math.floor(distance) .. " m" + end + + if stepdata.name then + name = name .. " with name '" .. stepdata.name .. "'" + end + + local visibleText + + if stepdata.visible == 1 then + visibleText = "Waypoint: Visible" + else + visibleText = "Waypoint: Hidden" + end + + local formspec = "size[8,8;]" .. + "label[0,0;Put items in chest]" .. + + "label[0,1;Items]" .. + "list[nodemeta:" .. pos.x .. "," .. pos.y .. "," .. pos.z .. ";main;2,1;1,1;0]" .. + + "label[3,1;Target]" .. + "list[nodemeta:" .. pos.x .. "," .. pos.y .. "," .. pos.z .. ";main;4,1;1,1;1]" .. + + "label[0,2;" .. name .. "]" .. + + "button_exit[0,5;8,1;togglevisible;" .. visibleText .. "]" .. + + "list[current_player;main;0,6;8,1;]" .. + "button[0,7;8,1;save;Save]" + + return formspec; + end, + + update = function(ctx) + + local fields = ctx.fields + local inv = ctx.inv + local stepdata = ctx.step.data + + if fields.togglevisible then + if stepdata.visible == 1 then + stepdata.visible = 0 + else + stepdata.visible = 1 + end + + ctx.show_editor() + end + + if fields.save then + local stack = inv:get_stack("main", 1) + + if not stack:is_empty() then + stepdata.stack = stack:to_string() + end + + stack = inv:get_stack("main", 2) + + if not stack:is_empty() then + local meta = stack:get_meta() + local pos = minetest.string_to_pos(meta:get_string("pos")) + local name = meta:get_string("name") + + stepdata.pos = pos + stepdata.name = name + end + + ctx.show_mission() + end + end, + + on_step_enter = function(ctx) + + local stepdata = ctx.step.data + local player = ctx.player + + -- set stack + remainingItems[player:get_player_name()] = stepdata.stack + local stack =ItemStack(stepdata.stack) + + local hud_data = {} + hud[player:get_player_name()] = hud_data; + + hud_data.counter = player:hud_add({ + hud_elem_type = "text", + position = HUD_POSITION, + offset = {x = 0, y = 140}, + text = "", + alignment = HUD_ALIGNMENT, + scale = {x = 100, y = 100}, + number = 0x00FF00 + }) + + hud_data.image = player:hud_add({ + hud_elem_type = "image", + position = HUD_POSITION, + offset = {x = 32, y = 140}, + text = missions.get_image(stack:get_name()), + alignment = HUD_ALIGNMENT, + scale = {x = 1, y = 1}, + }) + + -- set waypoint, if enabled + if stepdata.visible == 1 then + hud_data.target = player:hud_add({ + hud_elem_type = "waypoint", + name = "Chest: " .. stepdata.name, + text = "m", + number = 0xFF0000, + world_pos = stepdata.pos + }) + end + end, + + on_step_interval = function(ctx) + local player = ctx.player + + local str = remainingItems[player:get_player_name()] + if str then + local stack = ItemStack(str) + + if stack:get_count() == 0 then + ctx.on_success() + end + + local hud_data = hud[player:get_player_name()] + player:hud_change(hud_data.counter, "text", stack:get_count() .. "x") + else + ctx.on_success() + end + end, + + on_step_exit = function(ctx) + local player = ctx.player + + remainingItems[player:get_player_name()] = "" + local hud_data = hud[player:get_player_name()] + + if hud_data and hud_data.image then + player:hud_remove(hud_data.image) + end + + if hud_data and hud_data.counter then + player:hud_remove(hud_data.counter) + end + + if hud_data and hud_data.target then + player:hud_remove(hud_data.target) + end + + hud[player:get_player_name()] = nil + end + + +}) + +local intercept_chest = function(name) + local def = minetest.registered_nodes[name] + + if def ~= nil then + local delegate_put = def.on_metadata_inventory_put + local delegate_take = def.on_metadata_inventory_take + + def.on_metadata_inventory_put = function(pos, listname, index, stack, player) + if player and player:is_player() then + local remStack = ItemStack(remainingItems[player:get_player_name()]) + + if remStack:get_name() == stack:get_name() then + local count = remStack:get_count() - stack:get_count() + if count < 0 then count = 0 end + + remStack:set_count(count) + remainingItems[player:get_player_name()] = remStack:to_string() + end + + --print("Put Stack: " .. stack:get_name()) + end + + --delegate + delegate_put(pos, listname, index, stack, player) + end + + def.on_metadata_inventory_take = function(pos, listname, index, stack, player) + if player and player:is_player() then + local remStack = ItemStack(remainingItems[player:get_player_name()]) + + if remStack:get_name() == stack:get_name() then + local count = remStack:get_count() + stack:get_count() + if count > remStack: get_stack_max() then count = remStack:get_stack_max() end + + remStack:set_count(count) + remainingItems[player:get_player_name()] = remStack:to_string() + end + --print("Take Stack: " .. stack:get_name()) + end + + --delegate + delegate_take(pos, listname, index, stack, player) + end + else + print("Definition not found: " .. name) + end +end + +local has_more_chests_mod = minetest.get_modpath("more_chests") + +intercept_chest("default:chest") +intercept_chest("default:chest_open") + +if has_more_chests_mod then + intercept_chest("more_chests:dropbox") +end +-- TODO: technic-chests + + diff --git a/missions/steps/chestreward.lua b/missions/steps/chestreward.lua new file mode 100644 index 0000000..a792492 --- /dev/null +++ b/missions/steps/chestreward.lua @@ -0,0 +1,153 @@ + + +missions.register_step({ + + type = "chestreward", + name = "Reward from chest", + + create = function() + return {stack="", pos=nil} + end, + + validate = function(ctx) + local pos = ctx.pos + local stepdata = ctx.step.data + + if stepdata.pos == nil then + return { + success=false, + failed=true, + msg="No position defined" + } + end + + + local meta = minetest.get_meta(stepdata.pos) + local inv = meta:get_inventory() + + local removeStack = ItemStack(stepdata.stack) + + local chest_owner = missions.get_owner_from_pos(stepdata.pos) + + if chest_owner and chest_owner ~= "" then + -- check if the chest is owned by the same player as the mission + local mission_owner = missions.get_owner_from_pos(pos) + + if mission_owner ~= chest_owner then + return { + success=false, + failed=true, + msg="Chest does not belong to the owner of the mission: " .. chest_owner .. + " chest-location: " .. stepdata.pos.x .. "/" .. stepdata.pos.y .. "/" .. stepdata.pos.z + } + end + end + + if inv:contains_item("main", removeStack) then + return {success=true} + else + return { + success=false, + failed=true, + msg="Chest does not contain the items: " .. stepdata.stack .. + " chest-location: " .. stepdata.pos.x .. "/" .. stepdata.pos.y .. "/" .. stepdata.pos.z + } + end + end, + + allow_inv_stack_put = function(listname, index, stack) + -- allow position wand on pos 1 of main inv + if listname == "main" then + if index == 2 and stack:get_name() == "missions:wand_chest" then + return true + end + + if index == 1 then + return true + end + end + + return false + end, + + edit_formspec = function(ctx) + local pos = ctx.pos + local inv = ctx.inv + local stepdata = ctx.step.data + + inv:set_stack("main", 1, ItemStack(stepdata.stack)) + + local name = "" + + if stepdata.pos then + local distance = vector.distance(pos, stepdata.pos) + name = name .. "Position(" .. stepdata.pos.x .. "/" .. + stepdata.pos.y .. "/" .. stepdata.pos.z ..") " .. + "Distance: " .. math.floor(distance) .. " m" + end + + local formspec = "size[8,8;]" .. + "label[0,0;Give items from chest]" .. + + "label[0,1;Items]" .. + "list[nodemeta:" .. pos.x .. "," .. pos.y .. "," .. pos.z .. ";main;2,1;1,1;0]" .. + + "label[3,1;Target]" .. + "list[nodemeta:" .. pos.x .. "," .. pos.y .. "," .. pos.z .. ";main;4,1;1,1;1]" .. + + "label[0,2;" .. name .. "]" .. + + "list[current_player;main;0,6;8,1;]" .. + "button[0,7;8,1;save;Save]" + + return formspec; + end, + + update = function(ctx) + local fields = ctx.fields + local inv = ctx.inv + local stepdata = ctx.step.data + + if fields.save then + local stack = inv:get_stack("main", 1) + + if not stack:is_empty() then + stepdata.stack = stack:to_string() + end + + stack = inv:get_stack("main", 2) + + if not stack:is_empty() then + local meta = stack:get_meta() + local pos = minetest.string_to_pos(meta:get_string("pos")) + + stepdata.pos = pos + end + + ctx.show_mission() + end + end, + + on_step_enter = function(ctx) + local stepdata = ctx.step.data + local player = ctx.player + + local meta = minetest.get_meta(stepdata.pos) + local inv = meta:get_inventory() + + local removeStack = ItemStack(stepdata.stack) + + if inv:contains_item("main", removeStack) then + removeStack = inv:remove_item("main", removeStack) + local player_inv = player:get_inventory() + player_inv:add_item("main", removeStack) + ctx.on_success() + else + ctx.on_failed("Items not available in chest: " .. stepdata.stack) + end + + end + +}) + + diff --git a/missions/steps/dig.lua b/missions/steps/dig.lua new file mode 100644 index 0000000..ea7ef74 --- /dev/null +++ b/missions/steps/dig.lua @@ -0,0 +1,85 @@ + +local counter = {} -- playername -> count + +missions.register_step({ + + type = "simpledig", + name = "Dig any nodes", + + create = function() + return {count=100} + end, + + get_status = function(ctx) + local player = ctx.player + local stepdata = ctx.step.data + + local name = player:get_player_name() + local current_count = counter[name] or 0 + local rest = stepdata.count - (current_count - stepdata.start) + return "Dig " .. rest .. " nodes" + end, + + edit_formspec = function(ctx) + local stepdata = ctx.step.data + + local formspec = "size[8,8;]" .. + "label[0,0;Dig any nodes]" .. + "field[0,2;8,1;count;Count;" .. stepdata.count .. "]" .. + "button[0,7;8,1;save;Save]" + + return formspec; + end, + + update = function(ctx) + local fields = ctx.fields + local stepdata = ctx.step.data + + if fields.count then + local count = tonumber(fields.count) + if count and count > 0 then + stepdata.count = count + end + end + + if fields.save then + ctx.show_mission() + end + end, + + on_step_enter = function(ctx) + local player = ctx.player + local stepdata = ctx.step.data + + local name = player:get_player_name() + stepdata.start = counter[name] or 0 + end, + + on_step_interval = function(ctx) + local player = ctx.player + local stepdata = ctx.step.data + + local name = player:get_player_name() + local current_count = counter[name] or 0 + if current_count - stepdata.start >= stepdata.count then + ctx.on_success() + end + end, + + on_step_exit = function(ctx) + end + + +}) + +minetest.register_on_dignode(function(pos, oldnode, digger) + if digger ~= nil and digger:is_player() then + local name = digger:get_player_name() + local count = counter[name] or 0 + + count = count + 1 + counter[name] = count + end +end) + + diff --git a/missions/steps/digspecific.lua b/missions/steps/digspecific.lua new file mode 100644 index 0000000..a56a9c2 --- /dev/null +++ b/missions/steps/digspecific.lua @@ -0,0 +1,170 @@ + +local HUD_POSITION = {x = missions.hud.posx, y = missions.hud.posy } +local HUD_ALIGNMENT = {x = 1, y = 0} + +local stacks = {} -- playername -> stack_str +local hud = {} -- playername -> {} + +missions.register_step({ + + type = "digspecific", + name = "Dig specific nodes", + + create = function() + return {stack="default:stone 99"} + end, + + allow_inv_stack_put = function(listname, index, stack) + -- allow position wand on pos 1 of main inv + if listname == "main" and index == 1 and minetest.registered_nodes[stack:get_name()] then + -- stack is a node + return true + end + + return false + end, + + + get_status = function(ctx) + local player = ctx.player + local name = player:get_player_name() + + local stack = ItemStack(stacks[name] or "") + + return "Dig " .. stack:get_count() .. " " .. stack:get_name() + end, + + edit_formspec = function(ctx) + local stepdata = ctx.step.data + local pos = ctx.pos + local stack = ItemStack(stepdata.stack) + + ctx.inv:set_stack("main", 1, stack) + + local formspec = "size[8,8;]" .. + "label[0,0;Dig specific nodes]" .. + + "label[0,1;Node:]" .. + "list[nodemeta:" .. pos.x .. "," .. pos.y .. "," .. pos.z .. ";main;3,1;1,1;0]" .. + + "list[current_player;main;0,2;8,4;]" .. + + "button[0,7;8,1;save;Save]" + + return formspec; + end, + + update = function(ctx) + local fields = ctx.fields + local inv = ctx.inv + local stepdata = ctx.step.data + + if fields.save then + local stack = inv:get_stack("main", 1) + + if not stack:is_empty() then + stepdata.stack = stack:to_string() + end + + ctx.show_mission() + end + end, + + on_step_enter = function(ctx) + local player = ctx.player + local stepdata = ctx.step.data + local stack = ItemStack(stepdata.stack) + local name = player:get_player_name() + + stacks[name] = stack:to_string() + + local hud_data = {} + hud[player:get_player_name()] = hud_data; + + hud_data.counter = player:hud_add({ + hud_elem_type = "text", + position = HUD_POSITION, + offset = {x = 0, y = 140}, + text = "", + alignment = HUD_ALIGNMENT, + scale = {x = 100, y = 100}, + number = 0x00FF00 + }) + + hud_data.image = player:hud_add({ + hud_elem_type = "image", + position = HUD_POSITION, + offset = {x = 32, y = 140}, + text = missions.get_image(stack:get_name()), + alignment = HUD_ALIGNMENT, + scale = {x = 1, y = 1}, + }) + end, + + on_step_interval = function(ctx) + local player = ctx.player + local name = player:get_player_name() + + local stack = ItemStack(stacks[name] or "") + + local hud_data = hud[name]; + player:hud_change(hud_data.counter, "text", stack:get_count() .. "x") + + if stack:get_count() == 0 then + ctx.on_success() + end + end, + + on_step_exit = function(ctx) + local player = ctx.player + local name = player:get_player_name() + local hud_data = hud[name] + + if hud_data and hud_data.image then + player:hud_remove(hud_data.image) + end + + if hud_data and hud_data.counter then + player:hud_remove(hud_data.counter) + end + + hud[name] = nil + stacks[name] = nil + end + + +}) + +minetest.register_on_placenode(function(pos, newnode, player, oldnode, itemstack) + if player ~= nil and player:is_player() then + local name = player:get_player_name() + local stack = ItemStack(stacks[name] or "") + + if newnode.name == stack:get_name() then + -- node name matches + stack:set_count(stack:get_count() + 1) + end + + stacks[name] = stack:to_string() + end +end) + +minetest.register_on_dignode(function(pos, oldnode, digger) + if digger ~= nil and digger:is_player() then + local name = digger:get_player_name() + if not stacks[name] then return end + + local stack = ItemStack(stacks[name]) + + if oldnode.name == stack:get_name() then + -- node name matches + stack:take_item(1) + end + + stacks[name] = stack:to_string() + end +end) + + + + diff --git a/missions/steps/followup.lua b/missions/steps/followup.lua new file mode 100644 index 0000000..a8eecfd --- /dev/null +++ b/missions/steps/followup.lua @@ -0,0 +1,102 @@ + +missions.register_step({ + + type = "followup", + name = "Next mission", + + create = function() + return {pos=nil} + end, + + validate = function(ctx) + local pos = ctx.pos + local stepdata = ctx.step.data + + if stepdata.pos == nil then + return { + success=false, + failed=true, + msg="No position defined" + } + end + + local node = minetest.get_node(pos) + if node and node.name == "missions:mission" then + --TODO: recursive validation + --TODO: prevent inifinite loop + return {success=true} + end + + return { + success=false, + failed=true, + msg="No follow-up mission found on " .. + " location: " .. stepdata.pos.x .. "/" .. stepdata.pos.y .. "/" .. stepdata.pos.z + } + end, + + allow_inv_stack_put = function(listname, index, stack) + -- allow position wand on pos 1 of main inv + if listname == "main" then + if index == 1 and stack:get_name() == "missions:wand_mission" then + return true + end + end + + return false + end, + + edit_formspec = function(ctx) + local pos = ctx.pos + local stepdata = ctx.step.data + + local name = "" + + if stepdata.pos then + local distance = vector.distance(pos, stepdata.pos) + name = name .. "Position(" .. stepdata.pos.x .. "/" .. + stepdata.pos.y .. "/" .. stepdata.pos.z ..") " .. + "Distance: " .. math.floor(distance) .. " m" + end + + local formspec = "size[8,8;]" .. + "label[0,0;Follow-up mission]" .. + "label[3,1;Target]" .. + "list[nodemeta:" .. pos.x .. "," .. pos.y .. "," .. pos.z .. ";main;4,1;1,1;0]" .. + "label[0,2;" .. name .. "]" .. + "list[current_player;main;0,6;8,1;]" .. + "button[0,7;8,1;save;Save]" + + return formspec; + end, + + update = function(ctx) + local fields = ctx.fields + local inv = ctx.inv + local stepdata = ctx.step.data + + if fields.save then + local stack = inv:get_stack("main", 1) + + if not stack:is_empty() then + local meta = stack:get_meta() + local pos = minetest.string_to_pos(meta:get_string("pos")) + + stepdata.pos = pos + end + + ctx.show_mission() + end + end, + + on_step_enter = function(ctx) + --local stepdata = ctx.step.data + --local player = ctx.player + + --TODO + ctx.on_success() + end + +}) + + diff --git a/missions/steps/givebook.lua b/missions/steps/givebook.lua new file mode 100644 index 0000000..befebec --- /dev/null +++ b/missions/steps/givebook.lua @@ -0,0 +1,66 @@ + + + +missions.register_step({ + + type = "givebook", + name = "Give a book", + + privs = {missions_book=true}, + + create = function() + return {title="", message=""} + end, + + edit_formspec = function(ctx) + local stepdata = ctx.step.data + + local formspec = "size[8,8;]" .. + "label[0,0;Give a book]" .. + "field[0,1;8,1;title;Title;" .. stepdata.title .. "]" .. + "textarea[0,2;8,4;message;Message;" .. stepdata.message .. "]" .. + "button[0,7;8,1;save;Save]" + + return formspec; + end, + + update = function(ctx) + local fields = ctx.fields + local stepdata = ctx.step.data + + if fields.title then + stepdata.title = fields.title + end + + if fields.message then + stepdata.message = fields.message + end + + ctx.show_mission() + end, + + on_step_enter = function(ctx) + local player = ctx.player + local stepdata = ctx.step.data + + local new_stack = ItemStack("default:book_written") + + local data = {} + + data.owner = "Mission" + data.title = stepdata.title + data.description = stepdata.title + data.text = stepdata.message + data.page = 1 + data.page_max = 1 + + new_stack:get_meta():from_table({ fields = data }) + + local player_inv = player:get_inventory() + player_inv:add_item("main", new_stack) + + ctx.on_success() + end + +}) + diff --git a/missions/steps/givereward.lua b/missions/steps/givereward.lua new file mode 100644 index 0000000..e3c664e --- /dev/null +++ b/missions/steps/givereward.lua @@ -0,0 +1,60 @@ + + +missions.register_step({ + + type = "givereward", + name = "Reward (give)", + + privs = { give=true }, + + create = function() + return {stack=""} + end, + + edit_formspec = function(ctx) + local inv = ctx.inv + local pos = ctx.pos + local stepdata = ctx.step.data + + inv:set_stack("main", 1, ItemStack(stepdata.stack)) + + local formspec = "size[8,8;]" .. + "label[0,0;Reward items (give)]" .. + + "label[0,1;Items]" .. + "list[nodemeta:" .. pos.x .. "," .. pos.y .. "," .. pos.z .. ";main;2,1;1,1;0]" .. + + "list[current_player;main;0,6;8,1;]" .. + "button[0,7;8,1;save;Save]" + + return formspec; + end, + + update = function(ctx) + local fields = ctx.fields + local inv = ctx.inv + local stepdata = ctx.step.data + + if fields.save then + local stack = inv:get_stack("main", 1) + + if not stack:is_empty() then + stepdata.stack = stack:to_string() + end + + ctx.show_mission() + end + end, + + on_step_enter = function(ctx) + local player = ctx.player + local stepdata = ctx.step.data + + local player_inv = player:get_inventory() + player_inv:add_item("main", ItemStack(stepdata.stack)) + ctx.on_success() + end + +}) + + diff --git a/missions/steps/givexp.lua b/missions/steps/givexp.lua new file mode 100644 index 0000000..de66bdf --- /dev/null +++ b/missions/steps/givexp.lua @@ -0,0 +1,51 @@ + +missions.register_step({ + + type = "givexp", + name = "Give XP", + + privs = {givexp=true}, + + create = function() + return {xp=100} + end, + + edit_formspec = function(ctx) + local stepnumber = ctx.stepnumber + local stepdata = ctx.step.data + + local formspec = "size[8,8;]" .. + "label[0,0;Give XP (Step #" .. stepnumber .. ")]" .. + "field[0,2;8,1;xp;XP;" .. stepdata.xp .. "]" .. + "button[0,7;8,1;save;Save]" + + return formspec; + end, + + update = function(ctx) + local fields = ctx.fields + local stepdata = ctx.step.data + + if fields.xp then + local xp = tonumber(fields.xp) + if xp and xp > 0 then + stepdata.xp = xp + end + end + + if fields.save then + ctx.show_mission() + end + end, + + on_step_enter = function(ctx) + local player = ctx.player + local stepdata = ctx.step.data + + xp_redo.add_xp(player:get_player_name(), stepdata.xp) + ctx.on_success() + end + +}) + + diff --git a/missions/steps/grant.lua b/missions/steps/grant.lua new file mode 100644 index 0000000..79450c4 --- /dev/null +++ b/missions/steps/grant.lua @@ -0,0 +1,54 @@ + +missions.register_step({ + + type = "grant", + name = "Grant privilege", + + privs = {privs=true}, + + create = function() + return {priv=""} + end, + + edit_formspec = function(ctx) + local stepdata = ctx.step.data + + local formspec = "size[8,8;]" .. + "label[0,0;Grant privilege]" .. + "field[0,2;8,1;priv;Privilege;" .. stepdata.priv .. "]" .. + "button[0,7;8,1;save;Save]" + + return formspec; + end, + + update = function(ctx) + local fields = ctx.fields + local stepdata = ctx.step.data + + if fields.priv then + stepdata.priv = fields.priv + end + + if fields.save then + ctx.show_mission() + end + end, + + on_step_enter = function(ctx) + local player = ctx.player + local name = player:get_player_name() + local stepdata = ctx.step.data + local priv = stepdata.priv + + if priv then + local privs = minetest.get_player_privs(name) + privs[priv] = true + minetest.set_player_privs(name, privs) + end + + ctx.on_success() + end + +}) + + diff --git a/missions/steps/limitedtries.lua b/missions/steps/limitedtries.lua new file mode 100644 index 0000000..c295842 --- /dev/null +++ b/missions/steps/limitedtries.lua @@ -0,0 +1,64 @@ + +missions.register_step({ + + type = "limitedtries", + name = "Limited tries", + + create = function() + return {maxcount=1, counts={}} -- "xy"=1 + end, + + edit_formspec = function(ctx) + local stepdata = ctx.step.data + local stepnumber = ctx.stepnumber + + local formspec = "size[8,8;]" .. + "label[0,0;Limited tries (Step #" .. stepnumber .. ")]" .. + + "field[0,2;8,1;maxcount;Count;" .. stepdata.maxcount .. "]" .. + "button[0,7;8,1;save;Save]" + + return formspec; + end, + + update = function(ctx) + local fields = ctx.fields + local stepdata = ctx.step.data + + if fields.maxcount then + local maxcount = tonumber(fields.maxcount) + if maxcount and maxcount > 0 then + stepdata.maxcount = maxcount + end + end + + if fields.save then + ctx.show_mission() + end + end, + + on_step_enter = function(ctx) + local player = ctx.player + local playername = player:get_player_name() + local stepdata = ctx.step.data + + local count_map_str = ctx.block_meta:get_string("limitedtries") + local count_map = {} + + if count_map_str ~= nil and count_map_str ~= "" then + count_map = minetest.deserialize(count_map_str) + end + + local tries = count_map[playername] or 0 + + count_map[playername] = tries + 1 + ctx.block_meta:set_string("limitedtries", minetest.serialize(count_map)) + + if tries < stepdata.maxcount then + ctx.on_success() + else + ctx.on_failed("Number of tries exceeded!") + end + end + +}) diff --git a/missions/steps/mesecons_receptor_on.lua b/missions/steps/mesecons_receptor_on.lua new file mode 100644 index 0000000..cfba976 --- /dev/null +++ b/missions/steps/mesecons_receptor_on.lua @@ -0,0 +1,19 @@ + +missions.register_step({ + + type = "mesecons_receptor_on", + name = "Emit mesecons signal", + + on_step_enter = function(ctx) + mesecon.receptor_on(ctx.block_pos) + + minetest.after(1, function() + mesecon.receptor_off(ctx.block_pos) + end) + + ctx.on_success() + end + +}) + + diff --git a/missions/steps/message.lua b/missions/steps/message.lua new file mode 100644 index 0000000..03ab9ea --- /dev/null +++ b/missions/steps/message.lua @@ -0,0 +1,84 @@ + +local markers = {} -- playername -> boolean + +local FORMNAME = "mission_block_step_message" + +missions.register_step({ + + type = "message", + name = "Show message", + + create = function() + return {title="", message=""} + end, + + edit_formspec = function(ctx) + local stepdata = ctx.step.data + + local formspec = "size[8,8;]" .. + "label[0,0;Show a message]" .. + "field[0,1;8,1;title;Title;" .. stepdata.title .. "]" .. + "textarea[0,2;8,4;message;Message;" .. stepdata.message .. "]" .. + "button[0,7;8,1;save;Save]" + + return formspec; + end, + + update = function(ctx) + local fields = ctx.fields + local stepdata = ctx.step.data + + if fields.title then + stepdata.title = fields.title + end + + if fields.message then + stepdata.message = fields.message + end + + ctx.show_mission() + end, + + on_step_enter = function(ctx) + local player = ctx.player + local stepdata = ctx.step.data + + markers[player:get_player_name()] = false + + local formspec = "size[8,8;]" .. + "label[0,0;" .. stepdata.title .. "]" .. + "label[0,2;" .. stepdata.message .. "]" .. + "button_exit[5.5,1;2,1;ok;OK]" .. + missions.FORMBG + + minetest.show_formspec(player:get_player_name(), FORMNAME, formspec) + end, + + on_step_interval = function(ctx) + local player = ctx.player + + if markers[player:get_player_name()] then + ctx.on_success() + end + end, + + on_step_exit = function(ctx) + local player = ctx.player + markers[player:get_player_name()] = false + end + + +}) + +minetest.register_on_player_receive_fields(function(player, formname, fields) + if formname ~= FORMNAME then + return + end + + markers[player:get_player_name()] = true +end) + + + + + diff --git a/missions/steps/revokeinteract.lua b/missions/steps/revokeinteract.lua new file mode 100644 index 0000000..26553ea --- /dev/null +++ b/missions/steps/revokeinteract.lua @@ -0,0 +1,20 @@ + +missions.register_step({ + + type = "revokeinteract", + name = "Temporary revoke interact", + + on_step_enter = function(ctx) + local player = ctx.player + local name = player:get_player_name() + + local privs = minetest.get_player_privs(name) + privs.interact = nil + minetest.set_player_privs(name, privs) + + ctx.on_success() + end + +}) + + diff --git a/missions/steps/spawnmob.lua b/missions/steps/spawnmob.lua new file mode 100644 index 0000000..1d72fa0 --- /dev/null +++ b/missions/steps/spawnmob.lua @@ -0,0 +1,139 @@ + +local mob_names = {} -- list + +for i,item in pairs(minetest.registered_items) do + if item.groups.spawn_egg == 1 then + -- TODO: is this even reliable: item-name == mob-name? + table.insert(mob_names, item.name) + end +end + +missions.register_step({ + + type = "spawnmob", + name = "Spawn mob", + + privs = {missions_mobs=true}, + + create = function() + return {mobname="", pos=nil} + end, + + validate = function(ctx) + local stepdata = ctx.step.data + + if stepdata.pos == nil then + return { + success=false, + failed=true, + msg="No position defined" + } + end + if stepdata.mobname == "" then + return { + success=false, + failed=true, + msg="No mobname defined" + } + end + if not minetest.registered_items[stepdata.mobname] then + return { + success=false, + failed=true, + msg="No such mob: '" .. stepdata.mobname .. "'" + } + end + return {success=true} + end, + + allow_inv_stack_put = function(listname, index, stack) + -- allow position wand on pos 1 of main inv + if listname == "main" and index == 1 and stack:get_name() == "missions:wand_position" then + return true + end + + return false + end, + + edit_formspec = function(ctx) + local stepdata = ctx.step.data + local pos = ctx.pos + local name = "" + + if stepdata.pos then + local distance = vector.distance(pos, stepdata.pos) + name = name .. "Position(" .. stepdata.pos.x .. "/" .. + stepdata.pos.y .. "/" .. stepdata.pos.z ..") " .. + "Distance: " .. math.floor(distance) .. " m" + end + + + local selected = 1 + local list = "" + for i,mname in ipairs(mob_names) do + if mname == stepdata.mobname then + selected = i + end + + list = list .. minetest.formspec_escape(mname) + if i < #mob_names then + -- not end of list + list = list .. "," + end + end + + local formspec = "size[8,9;]" .. + "label[0,0;Spawn mob]" .. + "textlist[0,1;8,5;mobname;" .. list .. ";" .. selected .. "]" .. + + "list[nodemeta:" .. pos.x .. "," .. pos.y .. "," .. pos.z .. ";main;0,6;1,1;0]" .. + "label[2,6;" .. name .. "]" .. + + "list[current_player;main;0,7;8,1;]" .. + + "button[0,8;8,1;save;Save]" + + return formspec; + end, + + update = function(ctx) + local fields = ctx.fields + local stepdata = ctx.step.data + local inv = ctx.inv + + if fields.mobname then + local parts = fields.mobname:split(":") + if parts[1] == "CHG" then + local selected_mob = tonumber(parts[2]) + stepdata.mobname = mob_names[selected_mob] + end + end + + if fields.save then + local stack = inv:get_stack("main", 1) + + if not stack:is_empty() then + local meta = stack:get_meta() + local pos = minetest.string_to_pos(meta:get_string("pos")) + + stepdata.pos = pos + end + + ctx.show_mission() + end + + + end, + + on_step_enter = function(ctx) + local stepdata = ctx.step.data + local pos = stepdata.pos + pos.y = pos.y + 1 + + minetest.add_entity(pos, stepdata.mobname) + ctx.on_success() + end + +}) + + diff --git a/missions/steps/teleport.lua b/missions/steps/teleport.lua new file mode 100644 index 0000000..cd66b73 --- /dev/null +++ b/missions/steps/teleport.lua @@ -0,0 +1,96 @@ + +missions.register_step({ + + type = "teleport", + name = "Teleport", + + create = function() + return {pos=nil} + end, + + privs = {missions_teleport=true}, + + validate = function(ctx) + local stepdata = ctx.step.data + + if stepdata.pos == nil then + return { + success=false, + failed=true, + msg="No position defined" + } + else + return {success=true} + end + end, + + allow_inv_stack_put = function(listname, index, stack) + -- allow position wand on pos 1 of main inv + if listname == "main" and index == 1 and stack:get_name() == "missions:wand_position" then + return true + end + + return false + end, + + edit_formspec = function(ctx) + local stepdata = ctx.step.data + local pos = ctx.pos + + local name = "" + + if stepdata.pos then + local distance = vector.distance(pos, stepdata.pos) + name = name .. "Position(" .. stepdata.pos.x .. "/" .. + stepdata.pos.y .. "/" .. stepdata.pos.z ..") " .. + "Distance: " .. math.floor(distance) .. " m" + end + + local formspec = "size[8,8;]" .. + "label[0,0;Teleport (Step #" .. ctx.stepnumber .. ")]" .. + + "list[nodemeta:" .. pos.x .. "," .. pos.y .. "," .. pos.z .. ";main;0,1;1,1;0]" .. + "label[0,2;" .. name .. "]" .. + + "list[current_player;main;0,3;8,4;]" .. + + "button[0,7;8,1;save;Save]" + + return formspec; + end, + + update = function(ctx) + local fields = ctx.fields + local inv = ctx.inv + local stepdata = ctx.step.data + + if fields.save then + local stack = inv:get_stack("main", 1) + + if not stack:is_empty() then + local meta = stack:get_meta() + local pos = minetest.string_to_pos(meta:get_string("pos")) + local name = meta:get_string("name") + + stepdata.pos = pos + stepdata.name = name + end + + ctx.show_mission() + end + end, + + on_step_enter = function(ctx) + local player = ctx.player + local stepdata = ctx.step.data + + local pos = stepdata.pos + pos.y = pos.y + 1 + + player:move_to(pos) + ctx.on_success() + end + +}) + + diff --git a/missions/steps/waypoint.lua b/missions/steps/waypoint.lua new file mode 100644 index 0000000..7c3566d --- /dev/null +++ b/missions/steps/waypoint.lua @@ -0,0 +1,165 @@ + +local hud = {} -- playername -> id + +missions.register_step({ + + type = "waypoint", + name = "Waypoint", + + create = function() + return {pos=nil, name="", radius=3, visible=1, description=""} + end, + + get_status = function(ctx) + return ctx.step.data.description + end, + + validate = function(ctx) + local stepdata = ctx.step.data + + if stepdata.pos == nil then + return { + success=false, + failed=true, + msg="No position defined" + } + else + return {success=true} + end + end, + + allow_inv_stack_put = function(listname, index, stack) + -- allow position wand on pos 1 of main inv + if listname == "main" and index == 1 and stack:get_name() == "missions:wand_position" then + return true + end + + return false + end, + + edit_formspec = function(ctx) + local stepdata = ctx.step.data + local pos = ctx.pos + + local name = "" + + if stepdata.pos then + local distance = vector.distance(pos, stepdata.pos) + name = name .. "Position(" .. stepdata.pos.x .. "/" .. + stepdata.pos.y .. "/" .. stepdata.pos.z ..") " .. + "Distance: " .. math.floor(distance) .. " m" + end + + if stepdata.name then + name = name .. " with name '" .. stepdata.name .. "'" + end + + local visibleText + + if stepdata.visible == 1 then + visibleText = "Waypoint: Visible" + else + visibleText = "Waypoint: Hidden" + end + + local formspec = "size[8,10;]" .. + "label[0,0;Walk to (Step #" .. ctx.stepnumber .. ")]" .. + + "list[nodemeta:" .. pos.x .. "," .. pos.y .. "," .. pos.z .. ";main;0,1;1,1;0]" .. + + "label[0,2;" .. name .. "]" .. + + "field[0.2,3;8,1;description;Description;" .. stepdata.description .. "]" .. + "field[0.2,4;4,1;radius;Radius;" .. stepdata.radius .. "]" .. + + "button[4,5;4,1;togglevisible;" .. visibleText .. "]" .. + + "list[current_player;main;0,6;8,4;]" .. + + "button[0,5;4,1;save;Save]" + + return formspec; + end, + + update = function(ctx) + local fields = ctx.fields + local inv = ctx.inv + local stepdata = ctx.step.data + + if fields.radius then + local radius = tonumber(fields.radius) + if radius and radius > 0 then + stepdata.radius = radius + end + end + + if fields.togglevisible then + if stepdata.visible == 1 then + stepdata.visible = 0 + else + stepdata.visible = 1 + end + + ctx.show_editor() + end + + if fields.description then + stepdata.description = fields.description + end + + if fields.save then + local stack = inv:get_stack("main", 1) + + if not stack:is_empty() then + local meta = stack:get_meta() + local pos = minetest.string_to_pos(meta:get_string("pos")) + local name = meta:get_string("name") + + stepdata.pos = pos + stepdata.name = name + end + + ctx.show_mission() + end + end, + + on_step_enter = function(ctx) + local player = ctx.player + local stepdata = ctx.step.data + + if stepdata.visible == 1 then + hud[player:get_player_name()] = player:hud_add({ + hud_elem_type = "waypoint", + name = "Mission-waypoint: " .. stepdata.name, + text = "m", + number = 0xFF0000, + world_pos = stepdata.pos + }) + end + end, + + on_step_interval = function(ctx) + local player = ctx.player + local stepdata = ctx.step.data + local pos = player:get_pos() + + local distance = vector.distance(pos, stepdata.pos) + if distance < stepdata.radius then + ctx.on_success() + end + end, + + on_step_exit = function(ctx) + local player = ctx.player + + local idx = hud[player:get_player_name()] + if idx then + player:hud_remove(idx) + hud[player:get_player_name()] = nil + end + end + + +}) + + diff --git a/missions/textures/missions_bg_default.png b/missions/textures/missions_bg_default.png new file mode 100644 index 0000000..a6f57d3 Binary files /dev/null and b/missions/textures/missions_bg_default.png differ diff --git a/missions/textures/missions_block_preview.png b/missions/textures/missions_block_preview.png new file mode 100644 index 0000000..975fa7c Binary files /dev/null and b/missions/textures/missions_block_preview.png differ diff --git a/missions/textures/missions_m_overlay.png b/missions/textures/missions_m_overlay.png new file mode 100644 index 0000000..d7a786b Binary files /dev/null and b/missions/textures/missions_m_overlay.png differ diff --git a/missions/textures/missions_wand.png b/missions/textures/missions_wand.png new file mode 100644 index 0000000..1f46434 Binary files /dev/null and b/missions/textures/missions_wand.png differ diff --git a/missions/textures/missions_wand_chest.png b/missions/textures/missions_wand_chest.png new file mode 100644 index 0000000..21b3f27 Binary files /dev/null and b/missions/textures/missions_wand_chest.png differ diff --git a/missions/textures/missions_wand_mission.png b/missions/textures/missions_wand_mission.png new file mode 100644 index 0000000..c7e73d2 Binary files /dev/null and b/missions/textures/missions_wand_mission.png differ diff --git a/missions/textures/missions_wand_position.png b/missions/textures/missions_wand_position.png new file mode 100644 index 0000000..fd0d461 Binary files /dev/null and b/missions/textures/missions_wand_position.png differ diff --git a/missions/ui.lua b/missions/ui.lua new file mode 100644 index 0000000..084ed08 --- /dev/null +++ b/missions/ui.lua @@ -0,0 +1,39 @@ + + + +unified_inventory.register_page("missions", { + get_formspec = function(player) + local mission = missions.get_current_mission(player) + + local formspec = "background[0,4.5;8,4;ui_main_inventory.png]" .. + "label[1,0;Missions]"; + + if mission then + formspec = formspec .. + "label[1,1;" .. mission.name .. "]" .. + "button[1,2;4,1;abort_mission;Abort mission]"; + else + formspec = formspec .. "label[1,2;No running mission]"; + end + + return {formspec=formspec} + end +}) + + + +unified_inventory.register_button("missions", { + type = "image", + image = "missions_block_preview.png", + tooltip = "Missions" +}) + +minetest.register_on_player_receive_fields(function(player, formname, fields) + if formname ~= "" then return end + if not player then return end + + if fields.abort_mission then + local player_name = player:get_player_name() + missions.abort(player_name) + end +end) diff --git a/missions/validate.lua b/missions/validate.lua new file mode 100644 index 0000000..05dc7c1 --- /dev/null +++ b/missions/validate.lua @@ -0,0 +1,63 @@ + +local function assign_validation_result(meta, result) + meta:set_int("valid", 0) + meta:set_string("validationresult", result.msg) +end + +local function clear_validation_result(meta) + meta:set_int("valid", 1) + meta:set_string("validationresult", "") +end + +missions.validate_mission = function(pos, player) + local steps = missions.get_steps(pos) + local meta = minetest.get_meta(pos) + + if not steps then + return { success=false, failed=true, msg="No steps" } + end + + for i,step in ipairs(steps) do + + local spec = missions.get_step_spec_by_type(step.type) + + if not spec then + local result = { + msg="Validation failed in step " .. i .. + " on mission: " .. pos.x .. "/" .. pos.y .. "/" .. pos.z .. + " the step has no spec (specification): " .. step.type, + success=false, + failed=true + } + + assign_validation_result(meta, result) + return result + + end + + if spec.validate then + local result = spec.validate({ + pos=pos, + step=step + }) + + if result and result.failed then + local validation_result = { + msg="Validation failed in step " .. i .. + " on mission: " .. pos.x .. "/" .. pos.y .. "/" .. pos.z .. + " with message: " .. result.msg, + success=false, + failed=true + } + + assign_validation_result(meta, validation_result) + + return validation_result + end + end + end + + clear_validation_result(meta) + + return { success=true } +end diff --git a/missions/wand.lua b/missions/wand.lua new file mode 100644 index 0000000..19eed12 --- /dev/null +++ b/missions/wand.lua @@ -0,0 +1,47 @@ +-- base wand +-- register item +minetest.register_craftitem("missions:wand", { + description = "Mission wand", + inventory_image = "missions_wand.png", + on_use = function(itemstack, player, pointed_thing) + if pointed_thing and pointed_thing.type == "node" and pointed_thing.under then + missions.form.wand(pointed_thing.under, player) + end + + return itemstack + end +}) + +--register craft +minetest.register_craft({ + output = "missions:wand 3", + recipe = { + {"default:stick", "", "default:obsidian_shard"}, + {"", "default:stick", ""}, + {"default:mese_crystal_fragment", "", "default:stick"} + } +}) + +-- converted wands +-- helper table to track which wands are being added +wands = { + ["position"] = "position", + ["chest"] = "chest-reference", + ["mission"] = "mission-reference" +} + +for key, value in pairs(wands) do + -- register item + minetest.register_craftitem("missions:wand_" .. key, { + description = "Mission wand with " .. value, + inventory_image = "missions_wand_" .. key .. ".png", + stack_max = 1 + }) + + -- register deconversion + minetest.register_craft({ + type = "shapeless", + output = "missions:wand", + recipe = {"missions:wand_" .. key} + }) +end diff --git a/mob_horse/depends.txt b/mob_horse/depends.txt new file mode 100644 index 0000000..5ccba0d --- /dev/null +++ b/mob_horse/depends.txt @@ -0,0 +1,3 @@ +mobs +lucky_block? +intllib? diff --git a/mob_horse/init.lua b/mob_horse/init.lua new file mode 100644 index 0000000..711e40b --- /dev/null +++ b/mob_horse/init.lua @@ -0,0 +1,286 @@ + +-- intllib +local MP = minetest.get_modpath(minetest.get_current_modname()) +local S, NS = dofile(MP .. "/intllib.lua") + + +-- 0.4.17 or 5.0 check +local y_off = 20 +if minetest.registered_nodes["default:permafrost"] then + y_off = 10 +end + + +-- rideable horse + +mobs:register_mob("mob_horse:horse", { + type = "animal", + visual = "mesh", + visual_size = {x = 1.20, y = 1.20}, + mesh = "mobs_horse.x", + collisionbox = {-0.4, -0.01, -0.4, 0.4, 1.25, 0.4}, + animation = { + speed_normal = 15, + speed_run = 30, + stand_start = 25, + stand_end = 75, + walk_start = 75, + walk_end = 100, + run_start = 75, + run_end = 100, + }, + textures = { + {"mobs_horse.png"}, -- textures by Mjollna + {"mobs_horsepeg.png"}, + {"mobs_horseara.png"} + }, + fear_height = 3, + runaway = true, + fly = false, + walk_chance = 60, + view_range = 5, + follow = {"farming:wheat", "default:apple"}, + passive = true, + hp_min = 12, + hp_max = 16, + armor = 200, + lava_damage = 5, + fall_damage = 5, + water_damage = 1, + makes_footstep_sound = true, + drops = { + {name = "mobs:leather", chance = 1, min = 0, max = 2} + }, + + do_custom = function(self, dtime) + + -- set needed values if not already present + if not self.v2 then + self.v2 = 0 + self.max_speed_forward = 6 + self.max_speed_reverse = 2 + self.accel = 6 + self.terrain_type = 3 + self.driver_attach_at = {x = 0, y = y_off, z = -2} + self.driver_eye_offset = {x = 0, y = 3, z = 0} + end + + -- if driver present allow control of horse + if self.driver then + + mobs.drive(self, "walk", "stand", false, dtime) + + return false -- skip rest of mob functions + end + + return true + end, + + on_die = function(self, pos) + + -- drop saddle when horse is killed while riding + -- also detach from horse properly + if self.driver then + minetest.add_item(pos, "mobs:saddle") + mobs.detach(self.driver, {x = 1, y = 0, z = 1}) +self.saddle = nil + end + + -- drop any horseshoes added + if self.shoed then + minetest.add_item(pos, self.shoed) + end + + end, + + on_rightclick = function(self, clicker) + + -- make sure player is clicking + if not clicker or not clicker:is_player() then + return + end + + -- feed, tame or heal horse + if mobs:feed_tame(self, clicker, 10, true, true) then + return + end + + -- applying protection rune + if mobs:protect(self, clicker) then + return + end + + -- make sure tamed horse is being clicked by owner only + if self.tamed and self.owner == clicker:get_player_name() then + + local inv = clicker:get_inventory() + + -- detatch player already riding horse + if self.driver and clicker == self.driver then + + mobs.detach(clicker, {x = 1, y = 0, z = 1}) + + -- add saddle back to inventory + if inv:room_for_item("main", "mobs:saddle") then + inv:add_item("main", "mobs:saddle") + else + minetest.add_item(clicker:get_pos(), "mobs:saddle") + end + +self.saddle = nil + + -- attach player to horse + elseif (not self.driver and not self.child + and clicker:get_wielded_item():get_name() == "mobs:saddle") + or self.saddle then + + self.object:set_properties({stepheight = 1.1}) + mobs.attach(self, clicker) + + -- take saddle from inventory + if not self.saddle then + inv:remove_item("main", "mobs:saddle") + end + +self.saddle = true + end + end + + -- used to capture horse with magic lasso + mobs:capture_mob(self, clicker, 0, 0, 80, false, nil) + end +}) + +mobs:spawn({ + name = "mob_horse:horse", + nodes = {"default:dirt_with_grass", "ethereal:dry_dirt"}, + min_light = 14, + interval = 60, + chance = 16000, + min_height = 10, + max_height = 31000, + day_toggle = true, +}) + +mobs:register_egg("mob_horse:horse", S("Horse"), "wool_brown.png", 1) + + +-- horseshoe helper function +local apply_shoes = function(name, itemstack, obj, shoes, speed, jump, reverse) + + if obj.type ~= "object" then return end + + local mob = obj.ref + local ent = mob:get_luaentity() + + if ent and ent.name and ent.name == "mob_horse:horse" then + + if ent.shoed then + minetest.add_item(mob:get_pos(), ent.shoed) + end + + ent.max_speed_forward = speed + ent.jump_height = jump + ent.max_speed_reverse = reverse + ent.accel = speed + ent.shoed = shoes + + minetest.chat_send_player(name, S("Horse shoes fitted -") + .. S(" speed: ") .. speed + .. S(" , jump height: ") .. jump + .. S(" , stop speed: ") .. reverse) + + itemstack:take_item() ; return itemstack + else + minetest.chat_send_player(name, S("Horse shoes only work on horses!")) + end +end + + +-- steel horseshoes +minetest.register_craftitem(":mobs:horseshoe_steel", { + description = S("Steel HorseShoes (use on horse to apply)"), + inventory_image = "mobs_horseshoe_steel.png", + on_use = function(itemstack, user, pointed_thing) + return apply_shoes(user:get_player_name(), itemstack, pointed_thing, + "mobs:horseshoe_steel", 7, 4, 2) + end, +}) + +minetest.register_craft({ + output = "mobs:horseshoe_steel", + recipe = { + {"", "default:steelblock", ""}, + {"default:steel_ingot", "", "default:steel_ingot"}, + {"default:steel_ingot", "", "default:steel_ingot"}, + } +}) + +-- bronze horseshoes +minetest.register_craftitem(":mobs:horseshoe_bronze", { + description = S("Bronze HorseShoes (use on horse to apply)"), + inventory_image = "mobs_horseshoe_bronze.png", + on_use = function(itemstack, user, pointed_thing) + return apply_shoes(user:get_player_name(), itemstack, pointed_thing, + "mobs:horseshoe_bronze", 7, 4, 4) + end, +}) + +minetest.register_craft({ + output = "mobs:horseshoe_bronze", + recipe = { + {"", "default:bronzeblock", ""}, + {"default:bronze_ingot", "", "default:bronze_ingot"}, + {"default:bronze_ingot", "", "default:bronze_ingot"}, + } +}) + +-- mese horseshoes +minetest.register_craftitem(":mobs:horseshoe_mese", { + description = S("Mese HorseShoes (use on horse to apply)"), + inventory_image = "mobs_horseshoe_mese.png", + on_use = function(itemstack, user, pointed_thing) + return apply_shoes(user:get_player_name(), itemstack, pointed_thing, + "mobs:horseshoe_mese", 9, 5, 8) + end, +}) + +minetest.register_craft({ + output = "mobs:horseshoe_mese", + recipe = { + {"", "default:mese", ""}, + {"default:mese_crystal_fragment", "", "default:mese_crystal_fragment"}, + {"default:mese_crystal_fragment", "", "default:mese_crystal_fragment"}, + } +}) + +-- diamond horseshoes +minetest.register_craftitem(":mobs:horseshoe_diamond", { + description = S("Diamond HorseShoes (use on horse to apply)"), + inventory_image = "mobs_horseshoe_diamond.png", + on_use = function(itemstack, user, pointed_thing) + return apply_shoes(user:get_player_name(), itemstack, pointed_thing, + "mobs:horseshoe_diamond", 10, 6, 6) + end, +}) + +minetest.register_craft({ + output = "mobs:horseshoe_diamond", + recipe = { + {"", "default:diamondblock", ""}, + {"default:diamond", "", "default:diamond"}, + {"default:diamond", "", "default:diamond"}, + } +}) + +-- lucky blocks +if minetest.get_modpath("lucky_block") then + +lucky_block:add_blocks({ + {"dro", {"mobs:horseshoe_steel"}}, + {"dro", {"mobs:horseshoe_bronze"}}, + {"dro", {"mobs:horseshoe_mese"}}, + {"dro", {"mobs:horseshoe_diamond"}}, +}) + +end diff --git a/mob_horse/intllib.lua b/mob_horse/intllib.lua new file mode 100644 index 0000000..6669d72 --- /dev/null +++ b/mob_horse/intllib.lua @@ -0,0 +1,45 @@ + +-- Fallback functions for when `intllib` is not installed. +-- Code released under Unlicense . + +-- Get the latest version of this file at: +-- https://raw.githubusercontent.com/minetest-mods/intllib/master/lib/intllib.lua + +local function format(str, ...) + local args = { ... } + local function repl(escape, open, num, close) + if escape == "" then + local replacement = tostring(args[tonumber(num)]) + if open == "" then + replacement = replacement..close + end + return replacement + else + return "@"..open..num..close + end + end + return (str:gsub("(@?)@(%(?)(%d+)(%)?)", repl)) +end + +local gettext, ngettext +if minetest.get_modpath("intllib") then + if intllib.make_gettext_pair then + -- New method using gettext. + gettext, ngettext = intllib.make_gettext_pair() + else + -- Old method using text files. + gettext = intllib.Getter() + end +end + +-- Fill in missing functions. + +gettext = gettext or function(msgid, ...) + return format(msgid, ...) +end + +ngettext = ngettext or function(msgid, msgid_plural, n, ...) + return format(n==1 and msgid or msgid_plural, ...) +end + +return gettext, ngettext diff --git a/mob_horse/locale/ms.po b/mob_horse/locale/ms.po new file mode 100644 index 0000000..fa76d1a --- /dev/null +++ b/mob_horse/locale/ms.po @@ -0,0 +1,59 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR , YEAR. +# +msgid "" +msgstr "" +"Project-Id-Version: \n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-02-06 00:07+0800\n" +"PO-Revision-Date: 2018-02-06 00:14+0800\n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: Poedit 2.0.6\n" +"Last-Translator: MuhdNurHidayat (MNH48) \n" +"Plural-Forms: nplurals=1; plural=0;\n" +"Language: ms\n" + +#: init.lua +msgid "Horse" +msgstr "Kuda" + +#: init.lua +msgid "Horse shoes fitted -" +msgstr "Ladam telah dipasang pada kuda -" + +#: init.lua +msgid " speed: " +msgstr " kelajuan: " + +#: init.lua +msgid " , jump height: " +msgstr " , ketinggian lompat: " + +#: init.lua +msgid " , stop speed: " +msgstr " , kelajuan berhenti: " + +#: init.lua +msgid "Horse shoes only work on horses!" +msgstr "Ladam hanya boleh dipakaikan pada kuda!" + +#: init.lua +msgid "Steel HorseShoes (use on horse to apply)" +msgstr "Ladam Kuda Keluli (guna pada kuda untuk pakaikan ia)" + +#: init.lua +msgid "Bronze HorseShoes (use on horse to apply)" +msgstr "Ladam Kuda Gangsa (guna pada kuda untuk pakaikan ia)" + +#: init.lua +msgid "Mese HorseShoes (use on horse to apply)" +msgstr "Ladam Kuda Mese (guna pada kuda untuk pakaikan ia)" + +#: init.lua +msgid "Diamond HorseShoes (use on horse to apply)" +msgstr "Ladam Kuda Intan (guna pada kuda untuk pakaikan ia)" diff --git a/mob_horse/locale/template.pot b/mob_horse/locale/template.pot new file mode 100644 index 0000000..7811c0e --- /dev/null +++ b/mob_horse/locale/template.pot @@ -0,0 +1,58 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR , YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-02-06 00:07+0800\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=CHARSET\n" +"Content-Transfer-Encoding: 8bit\n" + +#: init.lua +msgid "Horse" +msgstr "" + +#: init.lua +msgid "Horse shoes fitted -" +msgstr "" + +#: init.lua +msgid " speed: " +msgstr "" + +#: init.lua +msgid " , jump height: " +msgstr "" + +#: init.lua +msgid " , stop speed: " +msgstr "" + +#: init.lua +msgid "Horse shoes only work on horses!" +msgstr "" + +#: init.lua +msgid "Steel HorseShoes (use on horse to apply)" +msgstr "" + +#: init.lua +msgid "Bronze HorseShoes (use on horse to apply)" +msgstr "" + +#: init.lua +msgid "Mese HorseShoes (use on horse to apply)" +msgstr "" + +#: init.lua +msgid "Diamond HorseShoes (use on horse to apply)" +msgstr "" diff --git a/mob_horse/models/mobs_horse.x b/mob_horse/models/mobs_horse.x new file mode 100644 index 0000000..c0bb590 --- /dev/null +++ b/mob_horse/models/mobs_horse.x @@ -0,0 +1,5739 @@ +xof 0303txt 0032 + +template XSkinMeshHeader { + <3cf169ce-ff7c-44ab-93c0-f78f62d172e2> + WORD nMaxSkinWeightsPerVertex; + WORD nMaxSkinWeightsPerFace; + WORD nBones; +} + +template SkinWeights { + <6f0d123b-bad2-4167-a0d0-80224f25fabb> + STRING transformNodeName; + DWORD nWeights; + array DWORD vertexIndices[nWeights]; + array float weights[nWeights]; + Matrix4x4 matrixOffset; +} + +Frame Root { + FrameTransformMatrix { + 1.000000, 0.000000, 0.000000, 0.000000, + 0.000000, 0.000000, 1.000000, 0.000000, + 0.000000, 1.000000,-0.000000, 0.000000, + 0.000000, 0.000000, 0.000000, 1.000000;; + } + Frame Armature { + FrameTransformMatrix { + 2.736834, 0.000000, 0.000000, 0.000000, + 0.000000, 2.736834, 0.000000, 0.000000, + 0.000000, 0.000000, 2.736834, 0.000000, + -14.781387, 0.005959, 0.326405, 1.000000;; + } + Frame Armature_Body { + FrameTransformMatrix { + 1.000000, 0.000000, 0.000000, 0.000000, + 0.000000, 1.000000, 0.000000, 0.000000, + 0.000000, 0.000000, 1.000000, 0.000000, + 5.378092,-1.647068, 3.136816, 1.000000;; + } + Frame Armature_Bone_001 { + FrameTransformMatrix { + 0.000000,-1.000000, 0.000000, 0.000000, + 0.000000, 0.000000,-1.000000, 0.000000, + 1.000000, 0.000000, 0.000000, 0.000000, + 0.618225, 0.089278,-0.876976, 1.000000;; + } + } //End of Armature_Bone_001 + Frame Armature_Bone_002 { + FrameTransformMatrix { + 0.000000,-1.000000, 0.000000, 0.000000, + 0.000000, 0.000000,-1.000000, 0.000000, + 1.000000, 0.000000, 0.000000, 0.000000, + 0.618225, 3.135167,-1.284375, 1.000000;; + } + } //End of Armature_Bone_002 + Frame Armature_Bone_003 { + FrameTransformMatrix { + 0.000000,-1.000000, 0.000000, 0.000000, + 0.000000, 0.000000,-1.000000, 0.000000, + 1.000000, 0.000000, 0.000000, 0.000000, + -0.648382, 0.089278,-0.876976, 1.000000;; + } + } //End of Armature_Bone_003 + Frame Armature_Bone_004 { + FrameTransformMatrix { + 0.000000,-1.000000, 0.000000, 0.000000, + 0.000000, 0.000000,-1.000000, 0.000000, + 1.000000, 0.000000, 0.000000, 0.000000, + -0.648382, 3.135167,-1.230253, 1.000000;; + } + } //End of Armature_Bone_004 + Frame Armature_Bone_005 { + FrameTransformMatrix { + 1.000000, 0.000000,-0.000000, 0.000000, + 0.000000,-0.303766,-0.952747, 0.000000, + -0.000000, 0.952747,-0.303766, 0.000000, + 0.000000,-0.293364, 0.572615, 1.000000;; + } + } //End of Armature_Bone_005 + Frame Armature_Bone_006 { + FrameTransformMatrix { + 1.000000, 0.000000,-0.000000, 0.000000, + 0.000000, 0.681913, 0.731433, 0.000000, + 0.000000,-0.731433, 0.681913, 0.000000, + 0.000000, 3.228616, 0.252948, 1.000000;; + } + Frame Armature_Bone_007 { + FrameTransformMatrix { + 1.000000,-0.000000,-0.000000, 0.000000, + 0.000000, 0.700370,-0.713780, 0.000000, + 0.000000, 0.713780, 0.700370, 0.000000, + -0.000000, 1.500366, 0.161866, 1.000000;; + } + } //End of Armature_Bone_007 + } //End of Armature_Bone_006 + } //End of Armature_Body + Frame Cube_005 { + FrameTransformMatrix { + 1.000000, 0.000000, 0.000000, 0.000000, + 0.000000, 1.000000, 0.000000, 0.000000, + 0.000000, 0.000000, 1.000000, 0.000000, + -0.018561,-0.012256,-0.107993, 1.000000;; + } + Mesh { //Mesh Mesh + 328; + 5.711963; 1.214301; 0.014691;, + 5.711963; 1.757811; 0.014691;, + 5.711963; 1.757811; 2.011055;, + 5.711963; 1.214301; 2.011055;, + 5.711963; 1.757811; 0.014691;, + 6.255472; 1.757811; 0.014691;, + 6.255472; 1.757811; 2.011055;, + 5.711963; 1.757811; 2.011055;, + 6.255472; 1.757811; 0.014691;, + 6.255472; 1.214301; 0.014691;, + 6.255472; 1.214301; 2.011055;, + 6.255472; 1.757811; 2.011055;, + 6.255472; 1.214301; 0.014691;, + 5.711963; 1.214301; 0.014691;, + 5.711963; 1.214301; 2.011055;, + 6.255472; 1.214301; 2.011055;, + 6.255472; 1.214301; 0.014691;, + 6.255472; 1.757811; 0.014691;, + 5.711963; 1.757811; 0.014691;, + 5.711963; 1.214301; 0.014691;, + 5.711963; 1.214301; 2.011055;, + 5.711963; 1.757811; 2.011055;, + 6.255472; 1.757811; 2.011055;, + 6.255472; 1.214301; 2.011055;, + 4.461220; 1.214301; 0.014691;, + 4.461220; 1.757811; 0.014691;, + 4.461220; 1.757811; 2.011055;, + 4.461220; 1.214301; 2.011055;, + 4.461220; 1.757811; 0.014691;, + 5.004729; 1.757811; 0.014691;, + 5.004729; 1.757811; 2.011055;, + 4.461220; 1.757811; 2.011055;, + 5.004729; 1.757811; 0.014691;, + 5.004729; 1.214301; 0.014691;, + 5.004729; 1.214301; 2.011055;, + 5.004729; 1.757811; 2.011055;, + 5.004729; 1.214301; 0.014691;, + 4.461220; 1.214301; 0.014691;, + 4.461220; 1.214301; 2.011055;, + 5.004729; 1.214301; 2.011055;, + 5.004729; 1.214301; 0.014691;, + 5.004729; 1.757811; 0.014691;, + 4.461220; 1.757811; 0.014691;, + 4.461220; 1.214301; 0.014691;, + 4.461220; 1.214301; 2.011055;, + 4.461220; 1.757811; 2.011055;, + 5.004729; 1.757811; 2.011055;, + 5.004729; 1.214301; 2.011055;, + 4.461220;-1.811143; 0.014691;, + 4.461220;-1.267634; 0.014691;, + 4.461220;-1.267634; 2.273839;, + 4.461220;-1.811143; 2.273839;, + 4.461220;-1.267634; 0.014691;, + 5.004729;-1.267634; 0.014691;, + 5.004729;-1.267634; 2.273839;, + 4.461220;-1.267634; 2.273839;, + 5.004729;-1.267634; 0.014691;, + 5.004729;-1.811143; 0.014691;, + 5.004729;-1.811143; 2.273839;, + 5.004729;-1.267634; 2.273839;, + 5.004729;-1.811143; 0.014691;, + 4.461220;-1.811143; 0.014691;, + 4.461220;-1.811143; 2.273839;, + 5.004729;-1.811143; 2.273839;, + 5.004729;-1.811143; 0.014691;, + 5.004729;-1.267634; 0.014691;, + 4.461220;-1.267634; 0.014691;, + 4.461220;-1.811143; 0.014691;, + 4.461220;-1.811143; 2.273839;, + 4.461220;-1.267634; 2.273839;, + 5.004729;-1.267634; 2.273839;, + 5.004729;-1.811143; 2.273839;, + 5.711963;-1.811143; 0.014691;, + 5.711963;-1.267634; 0.014691;, + 5.711963;-1.267634; 2.273839;, + 5.711963;-1.811143; 2.273839;, + 5.711963;-1.267634; 0.014691;, + 6.255472;-1.267634; 0.014691;, + 6.255472;-1.267634; 2.273839;, + 5.711963;-1.267634; 2.273839;, + 6.255472;-1.267634; 0.014691;, + 6.255472;-1.811143; 0.014691;, + 6.255472;-1.811143; 2.273839;, + 6.255472;-1.267634; 2.273839;, + 6.255472;-1.811143; 0.014691;, + 5.711963;-1.811143; 0.014691;, + 5.711963;-1.811143; 2.273839;, + 6.255472;-1.811143; 2.273839;, + 6.255472;-1.811143; 0.014691;, + 6.255472;-1.267634; 0.014691;, + 5.711963;-1.267634; 0.014691;, + 5.711963;-1.811143; 0.014691;, + 5.711963;-1.811143; 2.273839;, + 5.711963;-1.267634; 2.273839;, + 6.255472;-1.267634; 2.273839;, + 6.255472;-1.811143; 2.273839;, + 5.126820;-2.416029; 2.539834;, + 5.126820;-2.272505; 2.415637;, + 5.126820;-1.768297; 3.669943;, + 5.126820;-2.041777; 3.794139;, + 5.126820;-2.272505; 2.415637;, + 5.623676;-2.272505; 2.415637;, + 5.623676;-1.768297; 3.669943;, + 5.126820;-1.768297; 3.669943;, + 5.623676;-2.272505; 2.415637;, + 5.623676;-2.416029; 2.539834;, + 5.623676;-2.046629; 3.794139;, + 5.623676;-1.768297; 3.669943;, + 5.623676;-2.416029; 2.539834;, + 5.126820;-2.416029; 2.539834;, + 5.126820;-2.041777; 3.794139;, + 5.623676;-2.046629; 3.794139;, + 5.623676;-2.416029; 2.539834;, + 5.623676;-2.272505; 2.415637;, + 5.126820;-2.272505; 2.415637;, + 5.126820;-2.416029; 2.539834;, + 5.126820;-2.041777; 3.794139;, + 5.126820;-1.768297; 3.669943;, + 5.623676;-1.768297; 3.669943;, + 5.623676;-2.046629; 3.794139;, + 4.485567;-0.007471; 1.982810;, + 4.485567; 1.788138; 1.982810;, + 4.485567; 1.788138; 3.877114;, + 4.485567;-0.007471; 3.877114;, + 4.485567; 1.788138; 1.982810;, + 6.264929; 1.788138; 1.982810;, + 6.264929; 1.788138; 3.877114;, + 4.485567; 1.788138; 3.877114;, + 6.264929;-0.007471; 1.982810;, + 6.264929;-1.824568; 2.265056;, + 6.264929;-1.824568; 3.877114;, + 6.264929;-0.007471; 3.877114;, + 6.264929;-1.824568; 2.265056;, + 4.485567;-1.824568; 2.265056;, + 4.485567;-1.824568; 3.877114;, + 6.264929;-1.824568; 3.877114;, + 6.264929;-0.007471; 1.982810;, + 6.264929; 1.788138; 1.982810;, + 4.485567; 1.788138; 1.982810;, + 4.485567;-0.007471; 1.982810;, + 4.485567;-0.007471; 3.877114;, + 4.485567; 1.788138; 3.877114;, + 6.264929; 1.788138; 3.877114;, + 6.264929;-0.007471; 3.877114;, + 4.924141; 1.861983; 2.879276;, + 4.924141; 3.050116; 4.163679;, + 4.924141; 2.256643; 4.897679;, + 4.924141; 1.068510; 3.613276;, + 4.924141; 3.050116; 4.163679;, + 5.826355; 3.050116; 4.163679;, + 5.826355; 2.256643; 4.897679;, + 4.924141; 2.256643; 4.897679;, + 5.826355; 3.050116; 4.163679;, + 5.826355; 1.861983; 2.879276;, + 5.826355; 1.068510; 3.613276;, + 5.826355; 2.256643; 4.897679;, + 5.826355; 1.861983; 2.879276;, + 4.924141; 1.861983; 2.879276;, + 4.924141; 1.068510; 3.613276;, + 5.826355; 1.068510; 3.613276;, + 5.826355; 1.861983; 2.879276;, + 5.826355; 3.050116; 4.163679;, + 4.924141; 3.050116; 4.163679;, + 4.924141; 1.861983; 2.879276;, + 4.924141; 1.068510; 3.613276;, + 4.924141; 2.256643; 4.897679;, + 5.826355; 2.256643; 4.897679;, + 5.826355; 1.068510; 3.613276;, + 4.485567;-1.824568; 3.877114;, + 4.485567;-0.007471; 3.877114;, + 6.264929;-0.007471; 3.877114;, + 6.264929;-1.824568; 3.877114;, + 6.264929;-1.824568; 2.265056;, + 6.264929;-0.007471; 1.982810;, + 4.485567;-0.007471; 1.982810;, + 4.485567;-1.824568; 2.265056;, + 6.264929; 1.788138; 1.982810;, + 6.264929;-0.007471; 1.982810;, + 6.264929;-0.007471; 3.877114;, + 6.264929; 1.788138; 3.877114;, + 4.485567;-1.824568; 2.265056;, + 4.485567;-0.007471; 1.982810;, + 4.485567;-0.007471; 3.877114;, + 4.485567;-1.824568; 3.877114;, + 4.960369; 2.198520; 4.144218;, + 4.960369; 3.947400; 4.144217;, + 4.960369; 3.947400; 4.961417;, + 4.960369; 2.198520; 4.961417;, + 4.960369; 3.947400; 4.144217;, + 5.790127; 3.947400; 4.144217;, + 5.790127; 3.947400; 4.961417;, + 4.960369; 3.947400; 4.961417;, + 5.790127; 3.947400; 4.144217;, + 5.790127; 2.198520; 4.144218;, + 5.790127; 2.198520; 4.961417;, + 5.790127; 3.947400; 4.961417;, + 5.790127; 2.198520; 4.144218;, + 4.960369; 2.198520; 4.144218;, + 4.960369; 2.198520; 4.961417;, + 5.790127; 2.198520; 4.961417;, + 5.790127; 2.198520; 4.144218;, + 5.790127; 3.947400; 4.144217;, + 4.960369; 3.947400; 4.144217;, + 4.960369; 2.198520; 4.144218;, + 4.960369; 2.198520; 4.961417;, + 4.960369; 3.947400; 4.961417;, + 5.790127; 3.947400; 4.961417;, + 5.790127; 2.198520; 4.961417;, + 5.832705; 2.367353; 4.901549;, + 5.832705; 2.235041; 4.901549;, + 5.813271; 2.235041; 5.427129;, + 5.813271; 2.367353; 5.427129;, + 5.832705; 2.235041; 4.901549;, + 5.516937; 2.235041; 4.889873;, + 5.497502; 2.235041; 5.415453;, + 5.813271; 2.235041; 5.427129;, + 5.516937; 2.235041; 4.889873;, + 5.516937; 2.367352; 4.889873;, + 5.497502; 2.367353; 5.415453;, + 5.497502; 2.235041; 5.415453;, + 5.516937; 2.367352; 4.889873;, + 5.832705; 2.367353; 4.901549;, + 5.813271; 2.367353; 5.427129;, + 5.497502; 2.367353; 5.415453;, + 5.516937; 2.367352; 4.889873;, + 5.516937; 2.235041; 4.889873;, + 5.832705; 2.235041; 4.901549;, + 5.832705; 2.367353; 4.901549;, + 5.813271; 2.367353; 5.427129;, + 5.813271; 2.235041; 5.427129;, + 5.497502; 2.235041; 5.415453;, + 5.497502; 2.367353; 5.415453;, + 5.220055; 2.367353; 4.896557;, + 5.220055; 2.235041; 4.896557;, + 5.226921; 2.235041; 5.422451;, + 5.226921; 2.367353; 5.422451;, + 5.220055; 2.235041; 4.896557;, + 4.904097; 2.235041; 4.900682;, + 4.910963; 2.235041; 5.426576;, + 5.226921; 2.235041; 5.422451;, + 4.904097; 2.235041; 4.900682;, + 4.904097; 2.367353; 4.900682;, + 4.910964; 2.367353; 5.426576;, + 4.910963; 2.235041; 5.426576;, + 4.904097; 2.367353; 4.900682;, + 5.220055; 2.367353; 4.896557;, + 5.226921; 2.367353; 5.422451;, + 4.910964; 2.367353; 5.426576;, + 4.904097; 2.367353; 4.900682;, + 4.904097; 2.235041; 4.900682;, + 5.220055; 2.235041; 4.896557;, + 5.220055; 2.367353; 4.896557;, + 5.226921; 2.367353; 5.422451;, + 5.226921; 2.235041; 5.422451;, + 4.910963; 2.235041; 5.426576;, + 4.910964; 2.367353; 5.426576;, + 5.338617; 1.345061; 3.910203;, + 5.338617; 1.868306; 4.420342;, + 5.338617; 1.633551; 4.661128;, + 5.338617; 1.110306; 4.150990;, + 5.475039; 2.103096; 4.649252;, + 5.338617; 2.103096; 4.649252;, + 5.338617; 1.868306; 4.420342;, + 5.475039; 1.868306; 4.420342;, + 5.475039; 1.868306; 4.420342;, + 5.475039; 1.345061; 3.910203;, + 5.475039; 1.110306; 4.150990;, + 5.475039; 1.633551; 4.661128;, + 5.475039; 1.345061; 3.910203;, + 5.338617; 1.345061; 3.910203;, + 5.338617; 1.110306; 4.150990;, + 5.475039; 1.110306; 4.150990;, + 5.475039; 1.345061; 3.910203;, + 5.475039; 1.868306; 4.420342;, + 5.338617; 1.868306; 4.420342;, + 5.338617; 1.345061; 3.910203;, + 5.338617; 1.110306; 4.150990;, + 5.338617; 1.633551; 4.661128;, + 5.475039; 1.633551; 4.661128;, + 5.475039; 1.110306; 4.150990;, + 5.430524; 2.314306; 4.819111;, + 5.294102; 2.314306; 4.819111;, + 5.338617; 2.103096; 4.649252;, + 5.475039; 2.103096; 4.649252;, + 5.338617; 1.868341; 4.890038;, + 5.475039; 1.868341; 4.890038;, + 5.475039; 1.633551; 4.661128;, + 5.338617; 1.633551; 4.661128;, + 5.475039; 1.868341; 4.890038;, + 5.475039; 2.103096; 4.649252;, + 5.475039; 1.868306; 4.420342;, + 5.475039; 1.633551; 4.661128;, + 5.338617; 1.633551; 4.661128;, + 5.338617; 1.868306; 4.420342;, + 5.338617; 2.103096; 4.649252;, + 5.338617; 1.868341; 4.890038;, + 5.430524; 2.565614; 4.868924;, + 5.294102; 2.565614; 4.868924;, + 5.294102; 2.314306; 4.819111;, + 5.430524; 2.314306; 4.819111;, + 5.338617; 1.868341; 4.890038;, + 5.338617; 2.103096; 4.649252;, + 5.294102; 2.314306; 4.819111;, + 5.294102; 2.277202; 5.153343;, + 5.294102; 2.277202; 5.153343;, + 5.430524; 2.277202; 5.153343;, + 5.475039; 1.868341; 4.890038;, + 5.338617; 1.868341; 4.890038;, + 5.430524; 2.277202; 5.153343;, + 5.430524; 2.314306; 4.819111;, + 5.475039; 2.103096; 4.649252;, + 5.475039; 1.868341; 4.890038;, + 5.294102; 2.565614; 4.868924;, + 5.430524; 2.565614; 4.868924;, + 5.430524; 2.697835; 5.178125;, + 5.294102; 2.697835; 5.178125;, + 5.430524; 2.697835; 5.178125;, + 5.430524; 2.565614; 4.868924;, + 5.430524; 2.314306; 4.819111;, + 5.430524; 2.277202; 5.153343;, + 5.294102; 2.277202; 5.153343;, + 5.294102; 2.314306; 4.819111;, + 5.294102; 2.565614; 4.868924;, + 5.294102; 2.697835; 5.178125;, + 5.294102; 2.697835; 5.178125;, + 5.430524; 2.697835; 5.178125;, + 5.430524; 2.277202; 5.153343;, + 5.294102; 2.277202; 5.153343;; + 82; + 4;0;1;2;3;, + 4;4;5;6;7;, + 4;8;9;10;11;, + 4;12;13;14;15;, + 4;16;17;18;19;, + 4;20;21;22;23;, + 4;24;25;26;27;, + 4;28;29;30;31;, + 4;32;33;34;35;, + 4;36;37;38;39;, + 4;40;41;42;43;, + 4;44;45;46;47;, + 4;48;49;50;51;, + 4;52;53;54;55;, + 4;56;57;58;59;, + 4;60;61;62;63;, + 4;64;65;66;67;, + 4;68;69;70;71;, + 4;72;73;74;75;, + 4;76;77;78;79;, + 4;80;81;82;83;, + 4;84;85;86;87;, + 4;88;89;90;91;, + 4;92;93;94;95;, + 4;96;97;98;99;, + 4;100;101;102;103;, + 4;104;105;106;107;, + 4;108;109;110;111;, + 4;112;113;114;115;, + 4;116;117;118;119;, + 4;120;121;122;123;, + 4;124;125;126;127;, + 4;128;129;130;131;, + 4;132;133;134;135;, + 4;136;137;138;139;, + 4;140;141;142;143;, + 4;144;145;146;147;, + 4;148;149;150;151;, + 4;152;153;154;155;, + 4;156;157;158;159;, + 4;160;161;162;163;, + 4;164;165;166;167;, + 4;168;169;170;171;, + 4;172;173;174;175;, + 4;176;177;178;179;, + 4;180;181;182;183;, + 4;184;185;186;187;, + 4;188;189;190;191;, + 4;192;193;194;195;, + 4;196;197;198;199;, + 4;200;201;202;203;, + 4;204;205;206;207;, + 4;208;209;210;211;, + 4;212;213;214;215;, + 4;216;217;218;219;, + 4;220;221;222;223;, + 4;224;225;226;227;, + 4;228;229;230;231;, + 4;232;233;234;235;, + 4;236;237;238;239;, + 4;240;241;242;243;, + 4;244;245;246;247;, + 4;248;249;250;251;, + 4;252;253;254;255;, + 4;256;257;258;259;, + 4;260;261;262;263;, + 4;264;265;266;267;, + 4;268;269;270;271;, + 4;272;273;274;275;, + 4;276;277;278;279;, + 4;280;281;282;283;, + 4;284;285;286;287;, + 4;288;289;290;291;, + 4;292;293;294;295;, + 4;296;297;298;299;, + 4;300;301;302;303;, + 4;304;305;306;307;, + 4;308;309;310;311;, + 4;312;313;314;315;, + 4;316;317;318;319;, + 4;320;321;322;323;, + 4;324;325;326;327;; + MeshNormals { //Mesh Normals + 328; + -1.000000; 0.000000; 0.000000;, + -1.000000; 0.000000; 0.000000;, + -1.000000; 0.000000; 0.000000;, + -1.000000; 0.000000; 0.000000;, + 0.000000; 1.000000;-0.000000;, + 0.000000; 1.000000;-0.000000;, + 0.000000; 1.000000;-0.000000;, + 0.000000; 1.000000;-0.000000;, + 1.000000; 0.000000;-0.000000;, + 1.000000; 0.000000;-0.000000;, + 1.000000; 0.000000;-0.000000;, + 1.000000; 0.000000;-0.000000;, + 0.000000;-1.000000; 0.000000;, + 0.000000;-1.000000; 0.000000;, + 0.000000;-1.000000; 0.000000;, + 0.000000;-1.000000; 0.000000;, + -0.000000; 0.000000;-1.000000;, + -0.000000; 0.000000;-1.000000;, + -0.000000; 0.000000;-1.000000;, + -0.000000; 0.000000;-1.000000;, + -0.000000; 0.000000; 1.000000;, + -0.000000; 0.000000; 1.000000;, + -0.000000; 0.000000; 1.000000;, + -0.000000; 0.000000; 1.000000;, + -1.000000; 0.000000; 0.000000;, + -1.000000; 0.000000; 0.000000;, + -1.000000; 0.000000; 0.000000;, + -1.000000; 0.000000; 0.000000;, + 0.000000; 1.000000;-0.000000;, + 0.000000; 1.000000;-0.000000;, + 0.000000; 1.000000;-0.000000;, + 0.000000; 1.000000;-0.000000;, + 1.000000; 0.000000;-0.000000;, + 1.000000; 0.000000;-0.000000;, + 1.000000; 0.000000;-0.000000;, + 1.000000; 0.000000;-0.000000;, + 0.000000;-1.000000; 0.000000;, + 0.000000;-1.000000; 0.000000;, + 0.000000;-1.000000; 0.000000;, + 0.000000;-1.000000; 0.000000;, + -0.000000; 0.000000;-1.000000;, + -0.000000; 0.000000;-1.000000;, + -0.000000; 0.000000;-1.000000;, + -0.000000; 0.000000;-1.000000;, + -0.000000; 0.000000; 1.000000;, + -0.000000; 0.000000; 1.000000;, + -0.000000; 0.000000; 1.000000;, + -0.000000; 0.000000; 1.000000;, + -1.000000; 0.000000; 0.000000;, + -1.000000; 0.000000; 0.000000;, + -1.000000; 0.000000; 0.000000;, + -1.000000; 0.000000; 0.000000;, + 0.000000; 1.000000;-0.000000;, + 0.000000; 1.000000;-0.000000;, + 0.000000; 1.000000;-0.000000;, + 0.000000; 1.000000;-0.000000;, + 1.000000; 0.000000;-0.000000;, + 1.000000; 0.000000;-0.000000;, + 1.000000; 0.000000;-0.000000;, + 1.000000; 0.000000;-0.000000;, + 0.000000;-1.000000; 0.000000;, + 0.000000;-1.000000; 0.000000;, + 0.000000;-1.000000; 0.000000;, + 0.000000;-1.000000; 0.000000;, + -0.000000; 0.000000;-1.000000;, + -0.000000; 0.000000;-1.000000;, + -0.000000; 0.000000;-1.000000;, + -0.000000; 0.000000;-1.000000;, + -0.000000; 0.000000; 1.000000;, + -0.000000; 0.000000; 1.000000;, + -0.000000; 0.000000; 1.000000;, + -0.000000; 0.000000; 1.000000;, + -1.000000; 0.000000; 0.000000;, + -1.000000; 0.000000; 0.000000;, + -1.000000; 0.000000; 0.000000;, + -1.000000; 0.000000; 0.000000;, + 0.000000; 1.000000;-0.000000;, + 0.000000; 1.000000;-0.000000;, + 0.000000; 1.000000;-0.000000;, + 0.000000; 1.000000;-0.000000;, + 1.000000; 0.000000;-0.000000;, + 1.000000; 0.000000;-0.000000;, + 1.000000; 0.000000;-0.000000;, + 1.000000; 0.000000;-0.000000;, + 0.000000;-1.000000; 0.000000;, + 0.000000;-1.000000; 0.000000;, + 0.000000;-1.000000; 0.000000;, + 0.000000;-1.000000; 0.000000;, + -0.000000; 0.000000;-1.000000;, + -0.000000; 0.000000;-1.000000;, + -0.000000; 0.000000;-1.000000;, + -0.000000; 0.000000;-1.000000;, + -0.000000; 0.000000; 1.000000;, + -0.000000; 0.000000; 1.000000;, + -0.000000; 0.000000; 1.000000;, + -0.000000; 0.000000; 1.000000;, + -1.000000; 0.000000; 0.000000;, + -1.000000; 0.000000; 0.000000;, + -1.000000; 0.000000; 0.000000;, + -1.000000; 0.000000; 0.000000;, + 0.000000; 0.927841;-0.372975;, + 0.000000; 0.927841;-0.372975;, + 0.000000; 0.927841;-0.372975;, + 0.000000; 0.927841;-0.372975;, + 1.000000; 0.000000; 0.000000;, + 1.000000; 0.000000; 0.000000;, + 1.000000; 0.000000; 0.000000;, + 1.000000; 0.000000; 0.000000;, + -0.004682;-0.958750; 0.284212;, + -0.004682;-0.958750; 0.284212;, + -0.004682;-0.958750; 0.284212;, + -0.004682;-0.958750; 0.284212;, + 0.000000;-0.654356;-0.756187;, + 0.000000;-0.654356;-0.756187;, + 0.000000;-0.654356;-0.756187;, + 0.000000;-0.654356;-0.756187;, + 0.002005; 0.410470; 0.911872;, + 0.002005; 0.410470; 0.911872;, + 0.002005; 0.410470; 0.911872;, + 0.002005; 0.410470; 0.911872;, + -1.000000; 0.000000; 0.000000;, + -1.000000; 0.000000; 0.000000;, + -1.000000; 0.000000; 0.000000;, + -1.000000; 0.000000; 0.000000;, + 0.000000; 1.000000;-0.000000;, + 0.000000; 1.000000;-0.000000;, + 0.000000; 1.000000;-0.000000;, + 0.000000; 1.000000;-0.000000;, + 1.000000; 0.000000;-0.000000;, + 1.000000; 0.000000;-0.000000;, + 1.000000; 0.000000;-0.000000;, + 1.000000; 0.000000;-0.000000;, + 0.000000;-1.000000; 0.000000;, + 0.000000;-1.000000; 0.000000;, + 0.000000;-1.000000; 0.000000;, + 0.000000;-1.000000; 0.000000;, + -0.000000; 0.000000;-1.000000;, + -0.000000; 0.000000;-1.000000;, + -0.000000; 0.000000;-1.000000;, + -0.000000; 0.000000;-1.000000;, + -0.000000; 0.000000; 1.000000;, + -0.000000; 0.000000; 1.000000;, + -0.000000; 0.000000; 1.000000;, + -0.000000; 0.000000; 1.000000;, + -1.000000;-0.000000; 0.000000;, + -1.000000;-0.000000; 0.000000;, + -1.000000;-0.000000; 0.000000;, + -1.000000;-0.000000; 0.000000;, + 0.000000; 0.679060; 0.734082;, + 0.000000; 0.679060; 0.734082;, + 0.000000; 0.679060; 0.734082;, + 0.000000; 0.679060; 0.734082;, + 1.000000; 0.000000;-0.000000;, + 1.000000; 0.000000;-0.000000;, + 1.000000; 0.000000;-0.000000;, + 1.000000; 0.000000;-0.000000;, + 0.000000;-0.679060;-0.734082;, + 0.000000;-0.679060;-0.734082;, + 0.000000;-0.679060;-0.734082;, + 0.000000;-0.679060;-0.734082;, + 0.000000; 0.734082;-0.679061;, + 0.000000; 0.734082;-0.679061;, + 0.000000; 0.734082;-0.679061;, + 0.000000; 0.734082;-0.679061;, + 0.000000;-0.734082; 0.679061;, + 0.000000;-0.734082; 0.679061;, + 0.000000;-0.734082; 0.679061;, + 0.000000;-0.734082; 0.679061;, + -0.000000; 0.000000; 1.000000;, + -0.000000; 0.000000; 1.000000;, + -0.000000; 0.000000; 1.000000;, + -0.000000; 0.000000; 1.000000;, + 0.000000;-0.153487;-0.988151;, + 0.000000;-0.153487;-0.988151;, + 0.000000;-0.153487;-0.988151;, + 0.000000;-0.153487;-0.988151;, + 1.000000; 0.000000;-0.000000;, + 1.000000; 0.000000;-0.000000;, + 1.000000; 0.000000;-0.000000;, + 1.000000; 0.000000;-0.000000;, + -1.000000; 0.000000; 0.000000;, + -1.000000; 0.000000; 0.000000;, + -1.000000; 0.000000; 0.000000;, + -1.000000; 0.000000; 0.000000;, + -1.000000; 0.000000; 0.000000;, + -1.000000; 0.000000; 0.000000;, + -1.000000; 0.000000; 0.000000;, + -1.000000; 0.000000; 0.000000;, + 0.000000; 1.000000;-0.000000;, + 0.000000; 1.000000;-0.000000;, + 0.000000; 1.000000;-0.000000;, + 0.000000; 1.000000;-0.000000;, + 1.000000; 0.000000;-0.000000;, + 1.000000; 0.000000;-0.000000;, + 1.000000; 0.000000;-0.000000;, + 1.000000; 0.000000;-0.000000;, + 0.000000;-1.000000; 0.000000;, + 0.000000;-1.000000; 0.000000;, + 0.000000;-1.000000; 0.000000;, + 0.000000;-1.000000; 0.000000;, + 0.000000;-0.000000;-1.000000;, + 0.000000;-0.000000;-1.000000;, + 0.000000;-0.000000;-1.000000;, + 0.000000;-0.000000;-1.000000;, + -0.000000; 0.000000; 1.000000;, + -0.000000; 0.000000; 1.000000;, + -0.000000; 0.000000; 1.000000;, + -0.000000; 0.000000; 1.000000;, + 0.999317; 0.000000; 0.036952;, + 0.999317; 0.000000; 0.036952;, + 0.999317; 0.000000; 0.036952;, + 0.999317; 0.000000; 0.036952;, + 0.000000;-1.000000; 0.000000;, + 0.000000;-1.000000; 0.000000;, + 0.000000;-1.000000; 0.000000;, + 0.000000;-1.000000; 0.000000;, + -0.999317; 0.000000;-0.036952;, + -0.999317; 0.000000;-0.036952;, + -0.999317; 0.000000;-0.036952;, + -0.999317; 0.000000;-0.036952;, + -0.000000; 1.000000;-0.000000;, + -0.000000; 1.000000;-0.000000;, + -0.000000; 1.000000;-0.000000;, + -0.000000; 1.000000;-0.000000;, + 0.036952; 0.000000;-0.999317;, + 0.036952; 0.000000;-0.999317;, + 0.036952; 0.000000;-0.999317;, + 0.036952; 0.000000;-0.999317;, + -0.036951; 0.000000; 0.999317;, + -0.036951; 0.000000; 0.999317;, + -0.036951; 0.000000; 0.999317;, + -0.036951; 0.000000; 0.999317;, + 0.999915; 0.000000;-0.013055;, + 0.999915; 0.000000;-0.013055;, + 0.999915; 0.000000;-0.013055;, + 0.999915; 0.000000;-0.013055;, + 0.000000;-1.000000; 0.000000;, + 0.000000;-1.000000; 0.000000;, + 0.000000;-1.000000; 0.000000;, + 0.000000;-1.000000; 0.000000;, + -0.999915; 0.000002; 0.013055;, + -0.999915; 0.000002; 0.013055;, + -0.999915; 0.000002; 0.013055;, + -0.999915; 0.000002; 0.013055;, + 0.000000; 1.000000;-0.000000;, + 0.000000; 1.000000;-0.000000;, + 0.000000; 1.000000;-0.000000;, + 0.000000; 1.000000;-0.000000;, + -0.013055; 0.000000;-0.999915;, + -0.013055; 0.000000;-0.999915;, + -0.013055; 0.000000;-0.999915;, + -0.013055; 0.000000;-0.999915;, + 0.013054;-0.000002; 0.999915;, + 0.013054;-0.000002; 0.999915;, + 0.013054;-0.000002; 0.999915;, + 0.013054;-0.000002; 0.999915;, + -1.000000;-0.000000; 0.000000;, + -1.000000;-0.000000; 0.000000;, + -1.000000;-0.000000; 0.000000;, + -1.000000;-0.000000; 0.000000;, + 0.000000; 0.698083;-0.716016;, + 0.000000; 0.698083;-0.716016;, + 0.000000; 0.698083;-0.716016;, + 0.000000; 0.698083;-0.716016;, + 1.000000; 0.000000;-0.000000;, + 1.000000; 0.000000;-0.000000;, + 1.000000; 0.000000;-0.000000;, + 1.000000; 0.000000;-0.000000;, + 0.000000;-0.716017;-0.698083;, + 0.000000;-0.716017;-0.698083;, + 0.000000;-0.716017;-0.698083;, + 0.000000;-0.716017;-0.698083;, + 0.000000; 0.698083;-0.716017;, + 0.000000; 0.698083;-0.716017;, + 0.000000; 0.698083;-0.716017;, + 0.000000; 0.698083;-0.716017;, + 0.000000;-0.698082; 0.716018;, + 0.000000;-0.698082; 0.716018;, + 0.000000;-0.698082; 0.716018;, + 0.000000;-0.698082; 0.716018;, + 0.000000; 0.626696;-0.779264;, + 0.000000; 0.626696;-0.779264;, + 0.000000; 0.626696;-0.779264;, + 0.000000; 0.626696;-0.779264;, + 0.000000;-0.698083; 0.716016;, + 0.000000;-0.698083; 0.716016;, + 0.000000;-0.698083; 0.716016;, + 0.000000;-0.698083; 0.716016;, + 1.000000; 0.000000; 0.000000;, + 1.000000; 0.000000; 0.000000;, + 1.000000; 0.000000; 0.000000;, + 1.000000; 0.000000; 0.000000;, + -1.000000; 0.000000; 0.000000;, + -1.000000; 0.000000; 0.000000;, + -1.000000; 0.000000; 0.000000;, + -1.000000; 0.000000; 0.000000;, + 0.000000; 0.194434;-0.980916;, + 0.000000; 0.194434;-0.980916;, + 0.000000; 0.194434;-0.980916;, + 0.000000; 0.194434;-0.980916;, + -0.992949;-0.107171;-0.050669;, + -0.992949;-0.107171;-0.050669;, + -0.992949;-0.107171;-0.050669;, + -0.992949;-0.107171;-0.050669;, + 0.000000;-0.541436; 0.840742;, + 0.000000;-0.541436; 0.840742;, + 0.000000;-0.541436; 0.840742;, + 0.000000;-0.541436; 0.840742;, + 0.992949; 0.107171; 0.050669;, + 0.992949; 0.107171; 0.050669;, + 0.992949; 0.107171; 0.050669;, + 0.992949; 0.107171; 0.050669;, + 0.000000; 0.919461;-0.393182;, + 0.000000; 0.919461;-0.393182;, + 0.000000; 0.919461;-0.393182;, + 0.000000; 0.919461;-0.393182;, + 1.000000; 0.000000; 0.000000;, + 1.000000; 0.000000; 0.000000;, + 1.000000; 0.000000; 0.000000;, + 1.000000; 0.000000; 0.000000;, + -1.000000; 0.000000; 0.000000;, + -1.000000; 0.000000; 0.000000;, + -1.000000; 0.000000; 0.000000;, + -1.000000; 0.000000; 0.000000;, + 0.000000;-0.058814; 0.998269;, + 0.000000;-0.058814; 0.998269;, + 0.000000;-0.058814; 0.998269;, + 0.000000;-0.058814; 0.998269;; + 82; + 4;0;1;2;3;, + 4;4;5;6;7;, + 4;8;9;10;11;, + 4;12;13;14;15;, + 4;16;17;18;19;, + 4;20;21;22;23;, + 4;24;25;26;27;, + 4;28;29;30;31;, + 4;32;33;34;35;, + 4;36;37;38;39;, + 4;40;41;42;43;, + 4;44;45;46;47;, + 4;48;49;50;51;, + 4;52;53;54;55;, + 4;56;57;58;59;, + 4;60;61;62;63;, + 4;64;65;66;67;, + 4;68;69;70;71;, + 4;72;73;74;75;, + 4;76;77;78;79;, + 4;80;81;82;83;, + 4;84;85;86;87;, + 4;88;89;90;91;, + 4;92;93;94;95;, + 4;96;97;98;99;, + 4;100;101;102;103;, + 4;104;105;106;107;, + 4;108;109;110;111;, + 4;112;113;114;115;, + 4;116;117;118;119;, + 4;120;121;122;123;, + 4;124;125;126;127;, + 4;128;129;130;131;, + 4;132;133;134;135;, + 4;136;137;138;139;, + 4;140;141;142;143;, + 4;144;145;146;147;, + 4;148;149;150;151;, + 4;152;153;154;155;, + 4;156;157;158;159;, + 4;160;161;162;163;, + 4;164;165;166;167;, + 4;168;169;170;171;, + 4;172;173;174;175;, + 4;176;177;178;179;, + 4;180;181;182;183;, + 4;184;185;186;187;, + 4;188;189;190;191;, + 4;192;193;194;195;, + 4;196;197;198;199;, + 4;200;201;202;203;, + 4;204;205;206;207;, + 4;208;209;210;211;, + 4;212;213;214;215;, + 4;216;217;218;219;, + 4;220;221;222;223;, + 4;224;225;226;227;, + 4;228;229;230;231;, + 4;232;233;234;235;, + 4;236;237;238;239;, + 4;240;241;242;243;, + 4;244;245;246;247;, + 4;248;249;250;251;, + 4;252;253;254;255;, + 4;256;257;258;259;, + 4;260;261;262;263;, + 4;264;265;266;267;, + 4;268;269;270;271;, + 4;272;273;274;275;, + 4;276;277;278;279;, + 4;280;281;282;283;, + 4;284;285;286;287;, + 4;288;289;290;291;, + 4;292;293;294;295;, + 4;296;297;298;299;, + 4;300;301;302;303;, + 4;304;305;306;307;, + 4;308;309;310;311;, + 4;312;313;314;315;, + 4;316;317;318;319;, + 4;320;321;322;323;, + 4;324;325;326;327;; + } //End of Mesh Normals + MeshMaterialList { //Mesh Material List + 1; + 1; + 0;; + Material Default_Material { + 0.800000; 0.800000; 0.800000; 0.800000;; + 96.078431; + 0.500000; 0.500000; 0.500000;; + 0.000000; 0.000000; 0.000000;; + } + } //End of Mesh Material List + MeshTextureCoords { //Mesh UV Coordinates + 328; + 0.649057; 0.260377;, + 0.592453; 0.260377;, + 0.592453; 0.007547;, + 0.649057; 0.007547;, + 0.479245; 0.260377;, + 0.426415; 0.260377;, + 0.426415; 0.007547;, + 0.479245; 0.007547;, + 0.592453; 0.260377;, + 0.535849; 0.260377;, + 0.535849; 0.007547;, + 0.592453; 0.007547;, + 0.535849; 0.260377;, + 0.479245; 0.260377;, + 0.479245; 0.007547;, + 0.535849; 0.007547;, + 0.532075; 0.264151;, + 0.532075; 0.316981;, + 0.479245; 0.316981;, + 0.479245; 0.264151;, + 0.422642; 0.316981;, + 0.422642; 0.264151;, + 0.475472; 0.264151;, + 0.475472; 0.316981;, + 0.649057; 0.260377;, + 0.592453; 0.260377;, + 0.592453; 0.007547;, + 0.649057; 0.007547;, + 0.479245; 0.260377;, + 0.426415; 0.260377;, + 0.426415; 0.007547;, + 0.479245; 0.007547;, + 0.592453; 0.260377;, + 0.535849; 0.260377;, + 0.535849; 0.007547;, + 0.592453; 0.007547;, + 0.535849; 0.260377;, + 0.479245; 0.260377;, + 0.479245; 0.007547;, + 0.535849; 0.007547;, + 0.532075; 0.264151;, + 0.532075; 0.316981;, + 0.479245; 0.316981;, + 0.479245; 0.264151;, + 0.422642; 0.316981;, + 0.422642; 0.264151;, + 0.475472; 0.264151;, + 0.475472; 0.316981;, + 0.649057; 0.260377;, + 0.592453; 0.260377;, + 0.592453; 0.007547;, + 0.649057; 0.007547;, + 0.479245; 0.260377;, + 0.426415; 0.260377;, + 0.426415; 0.007547;, + 0.479245; 0.007547;, + 0.592453; 0.260377;, + 0.535849; 0.260377;, + 0.535849; 0.007547;, + 0.592453; 0.007547;, + 0.535849; 0.260377;, + 0.479245; 0.260377;, + 0.479245; 0.007547;, + 0.535849; 0.007547;, + 0.532075; 0.264151;, + 0.532075; 0.316981;, + 0.479245; 0.316981;, + 0.479245; 0.264151;, + 0.422642; 0.316981;, + 0.422642; 0.264151;, + 0.475472; 0.264151;, + 0.475472; 0.316981;, + 0.649057; 0.260377;, + 0.592453; 0.260377;, + 0.592453; 0.007547;, + 0.649057; 0.007547;, + 0.479245; 0.260377;, + 0.426415; 0.260377;, + 0.426415; 0.007547;, + 0.479245; 0.007547;, + 0.592453; 0.260377;, + 0.535849; 0.260377;, + 0.535849; 0.007547;, + 0.592453; 0.007547;, + 0.535849; 0.260377;, + 0.479245; 0.260377;, + 0.479245; 0.007547;, + 0.535849; 0.007547;, + 0.532075; 0.264151;, + 0.532075; 0.316981;, + 0.479245; 0.316981;, + 0.479245; 0.264151;, + 0.422642; 0.316981;, + 0.422642; 0.264151;, + 0.475472; 0.264151;, + 0.475472; 0.316981;, + 0.294340; 0.094340;, + 0.267925; 0.094340;, + 0.267925; 0.037736;, + 0.294340; 0.037736;, + 0.264151; 0.090566;, + 0.237736; 0.090566;, + 0.237736; 0.037736;, + 0.264151; 0.037736;, + 0.294340; 0.090566;, + 0.267925; 0.090566;, + 0.267925; 0.037736;, + 0.294340; 0.037736;, + 0.264151; 0.090566;, + 0.237736; 0.090566;, + 0.237736; 0.037736;, + 0.264151; 0.037736;, + 0.294340; 0.007547;, + 0.294340; 0.033962;, + 0.267925; 0.033962;, + 0.267925; 0.007547;, + 0.237736; 0.033962;, + 0.237736; 0.011321;, + 0.264151; 0.011321;, + 0.264151; 0.033962;, + 0.320755; 0.220755;, + 0.320755; 0.324528;, + 0.226415; 0.316981;, + 0.226415; 0.213208;, + 0.109434; 0.007547;, + 0.218868; 0.007547;, + 0.218868; 0.101887;, + 0.109434; 0.101887;, + 0.320755; 0.213208;, + 0.320755; 0.316981;, + 0.222642; 0.316981;, + 0.222642; 0.213208;, + 0.422642; 0.101887;, + 0.313208; 0.101887;, + 0.313208; 0.007547;, + 0.422642; 0.007547;, + 0.430189; 0.213208;, + 0.430189; 0.320755;, + 0.320755; 0.324528;, + 0.320755; 0.220755;, + 0.109434; 0.213208;, + 0.109434; 0.101887;, + 0.218868; 0.101887;, + 0.218868; 0.213208;, + 0.309434; 0.335849;, + 0.309434; 0.460377;, + 0.237736; 0.460377;, + 0.237736; 0.335849;, + 0.305660; 0.464151;, + 0.305660; 0.532075;, + 0.226415; 0.532075;, + 0.226415; 0.464151;, + 0.305660; 0.532075;, + 0.305660; 0.660377;, + 0.241509; 0.660377;, + 0.241509; 0.532075;, + 0.011321; 0.532075;, + 0.011321; 0.464151;, + 0.094340; 0.464151;, + 0.094340; 0.532075;, + 0.452830; 0.532075;, + 0.328302; 0.532075;, + 0.328302; 0.464151;, + 0.452830; 0.464151;, + 0.090566; 0.464151;, + 0.222642; 0.464151;, + 0.222642; 0.532075;, + 0.094340; 0.532075;, + 0.109434; 0.324528;, + 0.109434; 0.213208;, + 0.218868; 0.213208;, + 0.218868; 0.324528;, + 0.430189; 0.105660;, + 0.430189; 0.213208;, + 0.320755; 0.220755;, + 0.320755; 0.116981;, + 0.320755; 0.109434;, + 0.320755; 0.213208;, + 0.222642; 0.213208;, + 0.222642; 0.109434;, + 0.320755; 0.116981;, + 0.320755; 0.220755;, + 0.226415; 0.213208;, + 0.226415; 0.109434;, + 0.544681; 0.870305;, + 0.544681; 0.437432;, + 0.686609; 0.437432;, + 0.686609; 0.870305;, + 0.686609; 0.295504;, + 0.847048; 0.295504;, + 0.847048; 0.437432;, + 0.686609; 0.437432;, + 0.982805; 0.437432;, + 0.982805; 0.870305;, + 0.847048; 0.870305;, + 0.847048; 0.437432;, + 0.847048; 0.981379;, + 0.686609; 0.981379;, + 0.686609; 0.870305;, + 0.847048; 0.870305;, + 0.847048; 0.011650;, + 0.847048; 0.295504;, + 0.686609; 0.295504;, + 0.686609; 0.011650;, + 0.686609; 0.870305;, + 0.686609; 0.437432;, + 0.847048; 0.437432;, + 0.847048; 0.870305;, + 0.011321; 0.362264;, + 0.011321; 0.350943;, + 0.094340; 0.350943;, + 0.094340; 0.362264;, + 0.011321; 0.449057;, + 0.011321; 0.407547;, + 0.094340; 0.407547;, + 0.094340; 0.449057;, + 0.120755; 0.449057;, + 0.094340; 0.449057;, + 0.094340; 0.381132;, + 0.120755; 0.381132;, + 0.011321; 0.407547;, + 0.011321; 0.362264;, + 0.094340; 0.362264;, + 0.094340; 0.407547;, + 0.124528; 0.407547;, + 0.135849; 0.407547;, + 0.135849; 0.449057;, + 0.124528; 0.449057;, + 0.135849; 0.350943;, + 0.135849; 0.362264;, + 0.094340; 0.362264;, + 0.094340; 0.350943;, + 0.094340; 0.350943;, + 0.094340; 0.362264;, + 0.011321; 0.362264;, + 0.011321; 0.350943;, + 0.094340; 0.407547;, + 0.094340; 0.449057;, + 0.011321; 0.449057;, + 0.011321; 0.407547;, + 0.120755; 0.449057;, + 0.094340; 0.449057;, + 0.094340; 0.381132;, + 0.120755; 0.381132;, + 0.094340; 0.362264;, + 0.094340; 0.407547;, + 0.011321; 0.407547;, + 0.011321; 0.362264;, + 0.135849; 0.350943;, + 0.135849; 0.362264;, + 0.094340; 0.362264;, + 0.094340; 0.350943;, + 0.135849; 0.449057;, + 0.124528; 0.449057;, + 0.124528; 0.407547;, + 0.135849; 0.407547;, + 0.353869; 0.965635;, + 0.363032; 0.880275;, + 0.402328; 0.884482;, + 0.393165; 0.969843;, + 0.459044; 0.845672;, + 0.475068; 0.845131;, + 0.476366; 0.883591;, + 0.460342; 0.884132;, + 0.449847; 0.880275;, + 0.459010; 0.965635;, + 0.419714; 0.969843;, + 0.410551; 0.884482;, + 0.499060; 0.930272;, + 0.515093; 0.930321;, + 0.514972; 0.969843;, + 0.498939; 0.969794;, + 0.463236; 0.969843;, + 0.460342; 0.884132;, + 0.476366; 0.883591;, + 0.479260; 0.969302;, + 0.498635; 0.747638;, + 0.496324; 0.831331;, + 0.480297; 0.830888;, + 0.482608; 0.747195;, + 0.463198; 0.813687;, + 0.479222; 0.813146;, + 0.475068; 0.845131;, + 0.459044; 0.845672;, + 0.495287; 0.868885;, + 0.479260; 0.868443;, + 0.480297; 0.830888;, + 0.496324; 0.831331;, + 0.406439; 0.846179;, + 0.445735; 0.841972;, + 0.449847; 0.880275;, + 0.410551; 0.884482;, + 0.402328; 0.884482;, + 0.363032; 0.880275;, + 0.367143; 0.841972;, + 0.406439; 0.846179;, + 0.462318; 0.787618;, + 0.478342; 0.787077;, + 0.479222; 0.813146;, + 0.463198; 0.813687;, + 0.406439; 0.846179;, + 0.367143; 0.841972;, + 0.367475; 0.809982;, + 0.401058; 0.789149;, + 0.498939; 0.926145;, + 0.482912; 0.925703;, + 0.479260; 0.868443;, + 0.495287; 0.868885;, + 0.411820; 0.789149;, + 0.445404; 0.809982;, + 0.445735; 0.841972;, + 0.406439; 0.846179;, + 0.478342; 0.787077;, + 0.462318; 0.787618;, + 0.461116; 0.752015;, + 0.477140; 0.751474;, + 0.440065; 0.748496;, + 0.459044; 0.783153;, + 0.445404; 0.809982;, + 0.411820; 0.789149;, + 0.401058; 0.789149;, + 0.367475; 0.809982;, + 0.353835; 0.783153;, + 0.372813; 0.748496;, + 0.497732; 0.969843;, + 0.481705; 0.969400;, + 0.482912; 0.925703;, + 0.498939; 0.926145;; + } //End of Mesh UV Coordinates + XSkinMeshHeader { + 7; + 21; + 8; + } + SkinWeights { + "Armature_Bone_004"; + 61; + 24, + 25, + 26, + 27, + 28, + 29, + 30, + 31, + 32, + 33, + 34, + 35, + 36, + 37, + 38, + 39, + 40, + 41, + 42, + 43, + 44, + 45, + 46, + 47, + 120, + 121, + 122, + 123, + 124, + 125, + 126, + 127, + 128, + 129, + 130, + 131, + 132, + 134, + 135, + 136, + 137, + 138, + 139, + 140, + 141, + 142, + 143, + 168, + 169, + 170, + 171, + 172, + 173, + 174, + 176, + 177, + 178, + 179, + 181, + 182, + 183; + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 0.000000, + 0.000000, + 0.000000, + 0.000000, + 0.000000, + 0.002447, + 0.000000, + 0.000000, + 0.001221, + 0.000000, + 0.000000, + 0.000000, + 0.000000, + 0.000000, + 0.000000, + 0.001221, + 0.002447, + 0.000000, + 0.000000, + 0.000000, + 0.000000, + 0.000000, + 0.000000, + 0.000000, + 0.000000, + 0.000000, + 0.000000, + 0.000000, + 0.001221, + 0.000000, + 0.002447, + 0.001221, + 0.000000, + 0.000000, + 0.000000, + 0.000000, + 0.000000; + 0.000000, 0.000000, 1.000000, 0.000000, + -1.000000, 0.000000, 0.000000, 0.000000, + -0.000000,-1.000000, 0.000000, 0.000000, + 1.500354, 2.014556,-4.748270, 1.000000;; + } //End of Armature_Bone_004 Skin Weights + SkinWeights { + "Armature_Bone_005"; + 64; + 96, + 97, + 98, + 99, + 100, + 101, + 102, + 103, + 104, + 105, + 106, + 107, + 108, + 109, + 110, + 111, + 112, + 113, + 114, + 115, + 116, + 117, + 118, + 119, + 120, + 121, + 122, + 123, + 124, + 125, + 126, + 127, + 128, + 129, + 130, + 131, + 132, + 133, + 134, + 135, + 136, + 137, + 138, + 139, + 140, + 141, + 142, + 143, + 168, + 169, + 170, + 171, + 172, + 173, + 174, + 175, + 176, + 177, + 178, + 179, + 180, + 181, + 182, + 183; + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 0.000199, + 0.000000, + 0.010375, + 0.005223, + 0.000000, + 0.000000, + 0.000000, + 0.010375, + 0.000000, + 0.000000, + 0.000000, + 0.000000, + 0.000000, + 0.000399, + 0.000016, + 0.000000, + 0.000000, + 0.000000, + 0.000000, + 0.000199, + 0.005223, + 0.010375, + 0.000000, + 0.000000, + 0.000016, + 0.005223, + 0.000000, + 0.000000, + 0.000000, + 0.000000, + 0.000199, + 0.000399, + 0.000000, + 0.000000, + 0.000000, + 0.000000, + 0.000399, + 0.000199, + 0.005223, + 0.000016; + 1.000000, 0.000000,-0.000000, 0.000000, + 0.000000,-0.303766, 0.952747, 0.000000, + -0.000000,-0.952747,-0.303766, 0.000000, + -5.396651, 3.051325, 2.996668, 1.000000;; + } //End of Armature_Bone_005 Skin Weights + SkinWeights { + "Armature_Body"; + 52; + 120, + 121, + 122, + 123, + 124, + 125, + 126, + 127, + 128, + 129, + 130, + 131, + 132, + 133, + 134, + 135, + 136, + 137, + 138, + 139, + 140, + 141, + 142, + 143, + 144, + 149, + 152, + 153, + 154, + 156, + 157, + 159, + 160, + 161, + 163, + 167, + 168, + 169, + 170, + 171, + 172, + 173, + 174, + 175, + 176, + 177, + 178, + 179, + 180, + 181, + 182, + 183; + 0.999800, + 0.999998, + 0.989625, + 0.994777, + 0.999998, + 0.997553, + 0.990579, + 0.989625, + 0.995233, + 0.992923, + 0.996743, + 0.993652, + 0.992923, + 0.999601, + 0.999984, + 0.996743, + 0.995233, + 0.997553, + 0.999998, + 0.999800, + 0.994777, + 0.989625, + 0.990579, + 0.993652, + 0.054215, + 0.017137, + 0.017137, + 0.270764, + 0.041779, + 0.270764, + 0.054215, + 0.041779, + 0.270764, + 0.017137, + 0.054215, + 0.041779, + 0.999984, + 0.994777, + 0.993652, + 0.996743, + 0.992923, + 0.995233, + 0.999800, + 0.999601, + 0.997553, + 0.995233, + 0.993652, + 0.990579, + 0.999601, + 0.999800, + 0.994777, + 0.999984; + 1.000000, 0.000000, 0.000000, 0.000000, + 0.000000, 1.000000, 0.000000, 0.000000, + 0.000000, 0.000000, 1.000000, 0.000000, + -5.396652, 1.634812,-3.244809, 1.000000;; + } //End of Armature_Body Skin Weights + SkinWeights { + "Armature_Bone_007"; + 168; + 144, + 145, + 146, + 147, + 148, + 149, + 150, + 151, + 152, + 153, + 154, + 155, + 156, + 157, + 158, + 159, + 160, + 161, + 162, + 163, + 164, + 165, + 166, + 167, + 184, + 185, + 186, + 187, + 188, + 189, + 190, + 191, + 192, + 193, + 194, + 195, + 196, + 197, + 198, + 199, + 200, + 201, + 202, + 203, + 204, + 205, + 206, + 207, + 208, + 209, + 210, + 211, + 212, + 213, + 214, + 215, + 216, + 217, + 218, + 219, + 220, + 221, + 222, + 223, + 224, + 225, + 226, + 227, + 228, + 229, + 230, + 231, + 232, + 233, + 234, + 235, + 236, + 237, + 238, + 239, + 240, + 241, + 242, + 243, + 244, + 245, + 246, + 247, + 248, + 249, + 250, + 251, + 252, + 253, + 254, + 255, + 256, + 257, + 258, + 259, + 260, + 261, + 262, + 263, + 264, + 265, + 266, + 267, + 268, + 269, + 270, + 271, + 272, + 273, + 274, + 275, + 276, + 277, + 278, + 279, + 280, + 281, + 282, + 283, + 284, + 285, + 286, + 287, + 288, + 289, + 290, + 291, + 292, + 293, + 294, + 295, + 296, + 297, + 298, + 299, + 300, + 301, + 302, + 303, + 304, + 305, + 306, + 307, + 308, + 309, + 310, + 311, + 312, + 313, + 314, + 315, + 316, + 317, + 318, + 319, + 320, + 321, + 322, + 323, + 324, + 325, + 326, + 327; + 0.473249, + 0.500000, + 0.500000, + 0.500000, + 0.500000, + 0.491432, + 0.500000, + 0.500000, + 0.491432, + 0.364634, + 0.479111, + 0.500000, + 0.364634, + 0.473249, + 0.500000, + 0.479111, + 0.364634, + 0.491432, + 0.500000, + 0.473249, + 0.500000, + 0.500000, + 0.500000, + 0.479111, + 1.000000, + 1.000000, + 1.000000, + 0.999999, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 0.999999, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 0.999999, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000; + 1.000000,-0.000000, 0.000000, 0.000000, + 0.000000, 0.999674,-0.025538, 0.000000, + -0.000000, 0.025538, 0.999674, 0.000000, + -5.396651,-2.617884,-4.640213, 1.000000;; + } //End of Armature_Bone_007 Skin Weights + SkinWeights { + "Armature_Bone_006"; + 75; + 122, + 123, + 125, + 126, + 127, + 128, + 130, + 131, + 134, + 135, + 136, + 137, + 140, + 141, + 142, + 143, + 144, + 145, + 146, + 147, + 148, + 149, + 150, + 151, + 152, + 153, + 154, + 155, + 156, + 157, + 158, + 159, + 160, + 161, + 162, + 163, + 164, + 165, + 166, + 167, + 168, + 169, + 170, + 171, + 173, + 176, + 177, + 178, + 179, + 182, + 183, + 184, + 185, + 186, + 187, + 188, + 189, + 190, + 191, + 192, + 193, + 194, + 195, + 196, + 197, + 198, + 199, + 200, + 201, + 202, + 203, + 204, + 205, + 206, + 207; + 0.000000, + 0.000000, + 0.000000, + 0.000000, + 0.000000, + 0.000000, + 0.000000, + 0.000000, + 0.000000, + 0.000000, + 0.000000, + 0.000000, + 0.000000, + 0.000000, + 0.000000, + 0.000000, + 0.472536, + 0.500000, + 0.500000, + 0.500000, + 0.500000, + 0.491432, + 0.500000, + 0.500000, + 0.491432, + 0.364602, + 0.479110, + 0.500000, + 0.364602, + 0.472536, + 0.500000, + 0.479110, + 0.364602, + 0.491432, + 0.500000, + 0.472536, + 0.500000, + 0.500000, + 0.500000, + 0.479110, + 0.000000, + 0.000000, + 0.000000, + 0.000000, + 0.000000, + 0.000000, + 0.000000, + 0.000000, + 0.000000, + 0.000000, + 0.000000, + 0.000000, + 0.000000, + 0.000000, + 0.000001, + 0.000000, + 0.000000, + 0.000000, + 0.000000, + 0.000000, + 0.000000, + 0.000000, + 0.000000, + 0.000000, + 0.000000, + 0.000001, + 0.000000, + 0.000000, + 0.000000, + 0.000000, + 0.000000, + 0.000001, + 0.000000, + 0.000000, + 0.000000; + 1.000000, 0.000000, 0.000000, 0.000000, + 0.000000, 0.681913,-0.731433, 0.000000, + -0.000000, 0.731433, 0.681913, 0.000000, + -5.396652,-3.645211,-1.219408, 1.000000;; + } //End of Armature_Bone_006 Skin Weights + SkinWeights { + "Armature_Bone_002"; + 58; + 0, + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 120, + 121, + 122, + 123, + 124, + 125, + 126, + 127, + 128, + 129, + 130, + 131, + 132, + 135, + 136, + 137, + 138, + 139, + 140, + 141, + 142, + 143, + 169, + 170, + 171, + 172, + 173, + 174, + 176, + 177, + 178, + 179, + 181, + 182; + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 0.000001, + 0.000002, + 0.000000, + 0.000000, + 0.000002, + 0.000000, + 0.009421, + 0.000000, + 0.000000, + 0.000000, + 0.000000, + 0.004725, + 0.000000, + 0.000000, + 0.000000, + 0.000000, + 0.000002, + 0.000001, + 0.000000, + 0.000000, + 0.009421, + 0.004725, + 0.000000, + 0.004725, + 0.000000, + 0.000000, + 0.000000, + 0.000001, + 0.000000, + 0.000000, + 0.004725, + 0.009421, + 0.000001, + 0.000000; + 0.000000, 0.000000, 1.000000, 0.000000, + -1.000000, 0.000000, 0.000000, 0.000000, + -0.000000,-1.000000, 0.000000, 0.000000, + 1.500354, 1.960434,-6.014877, 1.000000;; + } //End of Armature_Bone_002 Skin Weights + SkinWeights { + "Armature_Bone_003"; + 61; + 48, + 49, + 50, + 51, + 52, + 53, + 54, + 55, + 56, + 57, + 58, + 59, + 60, + 61, + 62, + 63, + 64, + 65, + 66, + 67, + 68, + 69, + 70, + 71, + 120, + 121, + 123, + 124, + 125, + 126, + 128, + 129, + 130, + 131, + 132, + 133, + 134, + 135, + 136, + 137, + 138, + 139, + 140, + 142, + 143, + 168, + 169, + 170, + 171, + 172, + 173, + 174, + 175, + 176, + 177, + 178, + 179, + 180, + 181, + 182, + 183; + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 0.000000, + 0.000000, + 0.000000, + 0.000000, + 0.000000, + 0.000000, + 0.003547, + 0.007077, + 0.000000, + 0.000000, + 0.007077, + 0.000000, + 0.000000, + 0.000000, + 0.003547, + 0.000000, + 0.000000, + 0.000000, + 0.000000, + 0.000000, + 0.000000, + 0.000000, + 0.000000, + 0.000000, + 0.000000, + 0.007077, + 0.003547, + 0.000000, + 0.000000, + 0.000000, + 0.003547, + 0.000000, + 0.000000, + 0.000000, + 0.000000, + 0.000000, + 0.000000; + 0.000000, 0.000000, 1.000000, 0.000000, + -1.000000, 0.000000, 0.000000, 0.000000, + -0.000000,-1.000000, 0.000000, 0.000000, + -1.545534, 2.367833,-4.748270, 1.000000;; + } //End of Armature_Bone_003 Skin Weights + SkinWeights { + "Armature_Bone_001"; + 52; + 72, + 73, + 74, + 75, + 76, + 77, + 78, + 79, + 80, + 81, + 82, + 83, + 84, + 85, + 86, + 87, + 88, + 89, + 90, + 91, + 92, + 93, + 94, + 95, + 120, + 123, + 128, + 129, + 130, + 131, + 132, + 133, + 134, + 135, + 136, + 139, + 140, + 143, + 168, + 169, + 170, + 171, + 172, + 173, + 174, + 175, + 177, + 178, + 180, + 181, + 182, + 183; + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 1.000000, + 0.000000, + 0.000000, + 0.000000, + 0.000000, + 0.003256, + 0.001623, + 0.000000, + 0.000000, + 0.000000, + 0.003256, + 0.000000, + 0.000000, + 0.000000, + 0.001623, + 0.000000, + 0.000000, + 0.001623, + 0.003256, + 0.000000, + 0.000000, + 0.000000, + 0.000000, + 0.000000, + 0.001623, + 0.000000, + 0.000000, + 0.000000, + 0.000000; + 0.000000, 0.000000, 1.000000, 0.000000, + -1.000000, 0.000000, 0.000000, 0.000000, + -0.000000,-1.000000, 0.000000, 0.000000, + -1.545534, 2.367833,-6.014877, 1.000000;; + } //End of Armature_Bone_001 Skin Weights + } //End of Mesh Mesh + } //End of Cube_005 + } //End of Armature +} //End of Root Frame +AnimationSet { + Animation { + {Armature} + AnimationKey { //Position + 2; + 102; + 0;3; -14.781387, 0.005959, 0.326405;;, + 1;3; -14.781387, 0.005959, 0.326405;;, + 2;3; -14.781387, 0.005959, 0.326405;;, + 3;3; -14.781387, 0.005959, 0.326405;;, + 4;3; -14.781387, 0.005959, 0.326405;;, + 5;3; -14.781387, 0.005959, 0.326405;;, + 6;3; -14.781387, 0.005959, 0.326405;;, + 7;3; -14.781387, 0.005959, 0.326405;;, + 8;3; -14.781387, 0.005959, 0.326405;;, + 9;3; -14.781387, 0.005959, 0.326405;;, + 10;3; -14.781387, 0.005959, 0.326405;;, + 11;3; -14.781387, 0.005959, 0.326405;;, + 12;3; -14.781387, 0.005959, 0.326405;;, + 13;3; -14.781387, 0.005959, 0.326405;;, + 14;3; -14.781387, 0.005959, 0.326405;;, + 15;3; -14.781387, 0.005959, 0.326405;;, + 16;3; -14.781387, 0.005959, 0.326405;;, + 17;3; -14.781387, 0.005959, 0.326405;;, + 18;3; -14.781387, 0.005959, 0.326405;;, + 19;3; -14.781387, 0.005959, 0.326405;;, + 20;3; -14.781387, 0.005959, 0.326405;;, + 21;3; -14.781387, 0.005959, 0.326405;;, + 22;3; -14.781387, 0.005959, 0.326405;;, + 23;3; -14.781387, 0.005959, 0.326405;;, + 24;3; -14.781387, 0.005959, 0.326405;;, + 25;3; -14.781387, 0.005959, 0.326405;;, + 26;3; -14.781387, 0.005959, 0.326405;;, + 27;3; -14.781387, 0.005959, 0.326405;;, + 28;3; -14.781387, 0.005959, 0.326405;;, + 29;3; -14.781387, 0.005959, 0.326405;;, + 30;3; -14.781387, 0.005959, 0.326405;;, + 31;3; -14.781387, 0.005959, 0.326405;;, + 32;3; -14.781387, 0.005959, 0.326405;;, + 33;3; -14.781387, 0.005959, 0.326405;;, + 34;3; -14.781387, 0.005959, 0.326405;;, + 35;3; -14.781387, 0.005959, 0.326405;;, + 36;3; -14.781387, 0.005959, 0.326405;;, + 37;3; -14.781387, 0.005959, 0.326405;;, + 38;3; -14.781387, 0.005959, 0.326405;;, + 39;3; -14.781387, 0.005959, 0.326405;;, + 40;3; -14.781387, 0.005959, 0.326405;;, + 41;3; -14.781387, 0.005959, 0.326405;;, + 42;3; -14.781387, 0.005959, 0.326405;;, + 43;3; -14.781387, 0.005959, 0.326405;;, + 44;3; -14.781387, 0.005959, 0.326405;;, + 45;3; -14.781387, 0.005959, 0.326405;;, + 46;3; -14.781387, 0.005959, 0.326405;;, + 47;3; -14.781387, 0.005959, 0.326405;;, + 48;3; -14.781387, 0.005959, 0.326405;;, + 49;3; -14.781387, 0.005959, 0.326405;;, + 50;3; -14.781387, 0.005959, 0.326405;;, + 51;3; -14.781387, 0.005959, 0.326405;;, + 52;3; -14.781387, 0.005959, 0.326405;;, + 53;3; -14.781387, 0.005959, 0.326405;;, + 54;3; -14.781387, 0.005959, 0.326405;;, + 55;3; -14.781387, 0.005959, 0.326405;;, + 56;3; -14.781387, 0.005959, 0.326405;;, + 57;3; -14.781387, 0.005959, 0.326405;;, + 58;3; -14.781387, 0.005959, 0.326405;;, + 59;3; -14.781387, 0.005959, 0.326405;;, + 60;3; -14.781387, 0.005959, 0.326405;;, + 61;3; -14.781387, 0.005959, 0.326405;;, + 62;3; -14.781387, 0.005959, 0.326405;;, + 63;3; -14.781387, 0.005959, 0.326405;;, + 64;3; -14.781387, 0.005959, 0.326405;;, + 65;3; -14.781387, 0.005959, 0.326405;;, + 66;3; -14.781387, 0.005959, 0.326405;;, + 67;3; -14.781387, 0.005959, 0.326405;;, + 68;3; -14.781387, 0.005959, 0.326405;;, + 69;3; -14.781387, 0.005959, 0.326405;;, + 70;3; -14.781387, 0.005959, 0.326405;;, + 71;3; -14.781387, 0.005959, 0.326405;;, + 72;3; -14.781387, 0.005959, 0.326405;;, + 73;3; -14.781387, 0.005959, 0.326405;;, + 74;3; -14.781387, 0.005959, 0.326405;;, + 75;3; -14.781387, 0.005959, 0.326405;;, + 76;3; -14.781387, 0.005959, 0.326405;;, + 77;3; -14.781387, 0.005959, 0.326405;;, + 78;3; -14.781387, 0.005959, 0.326405;;, + 79;3; -14.781387, 0.005959, 0.326405;;, + 80;3; -14.781387, 0.005959, 0.326405;;, + 81;3; -14.781387, 0.005959, 0.326405;;, + 82;3; -14.781387, 0.005959, 0.326405;;, + 83;3; -14.781387, 0.005959, 0.326405;;, + 84;3; -14.781387, 0.005959, 0.326405;;, + 85;3; -14.781387, 0.005959, 0.326405;;, + 86;3; -14.781387, 0.005959, 0.326405;;, + 87;3; -14.781387, 0.005959, 0.326405;;, + 88;3; -14.781387, 0.005959, 0.326405;;, + 89;3; -14.781387, 0.005959, 0.326405;;, + 90;3; -14.781387, 0.005959, 0.326405;;, + 91;3; -14.781387, 0.005959, 0.326405;;, + 92;3; -14.781387, 0.005959, 0.326405;;, + 93;3; -14.781387, 0.005959, 0.326405;;, + 94;3; -14.781387, 0.005959, 0.326405;;, + 95;3; -14.781387, 0.005959, 0.326405;;, + 96;3; -14.781387, 0.005959, 0.326405;;, + 97;3; -14.781387, 0.005959, 0.326405;;, + 98;3; -14.781387, 0.005959, 0.326405;;, + 99;3; -14.781387, 0.005959, 0.326405;;, + 100;3; -14.781387, 0.005959, 0.326405;;, + 101;3; -14.781387, 0.005959, 0.326405;;; + } + AnimationKey { //Rotation + 0; + 102; + 0;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 1;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 2;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 3;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 4;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 5;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 6;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 7;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 8;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 9;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 10;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 11;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 12;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 13;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 14;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 15;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 16;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 17;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 18;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 19;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 20;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 21;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 22;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 23;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 24;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 25;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 26;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 27;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 28;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 29;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 30;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 31;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 32;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 33;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 34;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 35;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 36;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 37;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 38;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 39;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 40;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 41;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 42;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 43;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 44;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 45;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 46;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 47;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 48;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 49;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 50;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 51;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 52;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 53;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 54;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 55;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 56;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 57;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 58;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 59;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 60;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 61;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 62;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 63;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 64;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 65;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 66;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 67;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 68;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 69;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 70;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 71;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 72;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 73;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 74;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 75;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 76;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 77;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 78;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 79;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 80;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 81;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 82;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 83;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 84;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 85;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 86;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 87;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 88;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 89;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 90;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 91;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 92;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 93;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 94;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 95;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 96;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 97;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 98;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 99;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 100;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 101;4; -1.000000, 0.000000, 0.000000, 0.000000;;; + } + AnimationKey { //Scale + 1; + 102; + 0;3; 2.736834, 2.736834, 2.736834;;, + 1;3; 2.736834, 2.736834, 2.736834;;, + 2;3; 2.736834, 2.736834, 2.736834;;, + 3;3; 2.736834, 2.736834, 2.736834;;, + 4;3; 2.736834, 2.736834, 2.736834;;, + 5;3; 2.736834, 2.736834, 2.736834;;, + 6;3; 2.736834, 2.736834, 2.736834;;, + 7;3; 2.736834, 2.736834, 2.736834;;, + 8;3; 2.736834, 2.736834, 2.736834;;, + 9;3; 2.736834, 2.736834, 2.736834;;, + 10;3; 2.736834, 2.736834, 2.736834;;, + 11;3; 2.736834, 2.736834, 2.736834;;, + 12;3; 2.736834, 2.736834, 2.736834;;, + 13;3; 2.736834, 2.736834, 2.736834;;, + 14;3; 2.736834, 2.736834, 2.736834;;, + 15;3; 2.736834, 2.736834, 2.736834;;, + 16;3; 2.736834, 2.736834, 2.736834;;, + 17;3; 2.736834, 2.736834, 2.736834;;, + 18;3; 2.736834, 2.736834, 2.736834;;, + 19;3; 2.736834, 2.736834, 2.736834;;, + 20;3; 2.736834, 2.736834, 2.736834;;, + 21;3; 2.736834, 2.736834, 2.736834;;, + 22;3; 2.736834, 2.736834, 2.736834;;, + 23;3; 2.736834, 2.736834, 2.736834;;, + 24;3; 2.736834, 2.736834, 2.736834;;, + 25;3; 2.736834, 2.736834, 2.736834;;, + 26;3; 2.736834, 2.736834, 2.736834;;, + 27;3; 2.736834, 2.736834, 2.736834;;, + 28;3; 2.736834, 2.736834, 2.736834;;, + 29;3; 2.736834, 2.736834, 2.736834;;, + 30;3; 2.736834, 2.736834, 2.736834;;, + 31;3; 2.736834, 2.736834, 2.736834;;, + 32;3; 2.736834, 2.736834, 2.736834;;, + 33;3; 2.736834, 2.736834, 2.736834;;, + 34;3; 2.736834, 2.736834, 2.736834;;, + 35;3; 2.736834, 2.736834, 2.736834;;, + 36;3; 2.736834, 2.736834, 2.736834;;, + 37;3; 2.736834, 2.736834, 2.736834;;, + 38;3; 2.736834, 2.736834, 2.736834;;, + 39;3; 2.736834, 2.736834, 2.736834;;, + 40;3; 2.736834, 2.736834, 2.736834;;, + 41;3; 2.736834, 2.736834, 2.736834;;, + 42;3; 2.736834, 2.736834, 2.736834;;, + 43;3; 2.736834, 2.736834, 2.736834;;, + 44;3; 2.736834, 2.736834, 2.736834;;, + 45;3; 2.736834, 2.736834, 2.736834;;, + 46;3; 2.736834, 2.736834, 2.736834;;, + 47;3; 2.736834, 2.736834, 2.736834;;, + 48;3; 2.736834, 2.736834, 2.736834;;, + 49;3; 2.736834, 2.736834, 2.736834;;, + 50;3; 2.736834, 2.736834, 2.736834;;, + 51;3; 2.736834, 2.736834, 2.736834;;, + 52;3; 2.736834, 2.736834, 2.736834;;, + 53;3; 2.736834, 2.736834, 2.736834;;, + 54;3; 2.736834, 2.736834, 2.736834;;, + 55;3; 2.736834, 2.736834, 2.736834;;, + 56;3; 2.736834, 2.736834, 2.736834;;, + 57;3; 2.736834, 2.736834, 2.736834;;, + 58;3; 2.736834, 2.736834, 2.736834;;, + 59;3; 2.736834, 2.736834, 2.736834;;, + 60;3; 2.736834, 2.736834, 2.736834;;, + 61;3; 2.736834, 2.736834, 2.736834;;, + 62;3; 2.736834, 2.736834, 2.736834;;, + 63;3; 2.736834, 2.736834, 2.736834;;, + 64;3; 2.736834, 2.736834, 2.736834;;, + 65;3; 2.736834, 2.736834, 2.736834;;, + 66;3; 2.736834, 2.736834, 2.736834;;, + 67;3; 2.736834, 2.736834, 2.736834;;, + 68;3; 2.736834, 2.736834, 2.736834;;, + 69;3; 2.736834, 2.736834, 2.736834;;, + 70;3; 2.736834, 2.736834, 2.736834;;, + 71;3; 2.736834, 2.736834, 2.736834;;, + 72;3; 2.736834, 2.736834, 2.736834;;, + 73;3; 2.736834, 2.736834, 2.736834;;, + 74;3; 2.736834, 2.736834, 2.736834;;, + 75;3; 2.736834, 2.736834, 2.736834;;, + 76;3; 2.736834, 2.736834, 2.736834;;, + 77;3; 2.736834, 2.736834, 2.736834;;, + 78;3; 2.736834, 2.736834, 2.736834;;, + 79;3; 2.736834, 2.736834, 2.736834;;, + 80;3; 2.736834, 2.736834, 2.736834;;, + 81;3; 2.736834, 2.736834, 2.736834;;, + 82;3; 2.736834, 2.736834, 2.736834;;, + 83;3; 2.736834, 2.736834, 2.736834;;, + 84;3; 2.736834, 2.736834, 2.736834;;, + 85;3; 2.736834, 2.736834, 2.736834;;, + 86;3; 2.736834, 2.736834, 2.736834;;, + 87;3; 2.736834, 2.736834, 2.736834;;, + 88;3; 2.736834, 2.736834, 2.736834;;, + 89;3; 2.736834, 2.736834, 2.736834;;, + 90;3; 2.736834, 2.736834, 2.736834;;, + 91;3; 2.736834, 2.736834, 2.736834;;, + 92;3; 2.736834, 2.736834, 2.736834;;, + 93;3; 2.736834, 2.736834, 2.736834;;, + 94;3; 2.736834, 2.736834, 2.736834;;, + 95;3; 2.736834, 2.736834, 2.736834;;, + 96;3; 2.736834, 2.736834, 2.736834;;, + 97;3; 2.736834, 2.736834, 2.736834;;, + 98;3; 2.736834, 2.736834, 2.736834;;, + 99;3; 2.736834, 2.736834, 2.736834;;, + 100;3; 2.736834, 2.736834, 2.736834;;, + 101;3; 2.736834, 2.736834, 2.736834;;; + } + } + Animation { + {Armature_Body} + AnimationKey { //Position + 2; + 102; + 0;3; 5.378092,-1.647068, 3.136816;;, + 1;3; 5.378092,-1.647068, 3.136816;;, + 2;3; 5.378092,-1.647068, 3.136816;;, + 3;3; 5.378092,-1.647068, 3.136816;;, + 4;3; 5.378092,-1.647068, 3.136816;;, + 5;3; 5.378092,-1.647068, 3.136816;;, + 6;3; 5.378092,-1.647068, 3.136816;;, + 7;3; 5.378092,-1.647068, 3.136816;;, + 8;3; 5.378092,-1.647068, 3.136816;;, + 9;3; 5.378092,-1.647068, 3.136816;;, + 10;3; 5.378092,-1.647068, 3.136816;;, + 11;3; 5.378092,-1.647068, 3.136816;;, + 12;3; 5.378092,-1.647068, 3.136816;;, + 13;3; 5.378092,-1.647068, 3.136816;;, + 14;3; 5.378092,-1.647068, 3.136816;;, + 15;3; 5.378092,-1.647068, 3.136816;;, + 16;3; 5.378092,-1.647068, 3.136816;;, + 17;3; 5.378092,-1.647068, 3.136816;;, + 18;3; 5.378092,-1.647068, 3.136816;;, + 19;3; 5.378092,-1.647068, 3.136816;;, + 20;3; 5.378092,-1.647068, 3.136816;;, + 21;3; 5.378092,-1.647068, 3.136816;;, + 22;3; 5.378092,-1.647068, 3.136816;;, + 23;3; 5.378092,-1.647068, 3.136816;;, + 24;3; 5.378092,-1.647068, 3.136816;;, + 25;3; 5.378092,-1.647068, 3.136816;;, + 26;3; 5.378092,-1.647068, 3.136816;;, + 27;3; 5.378092,-1.647068, 3.136816;;, + 28;3; 5.378092,-1.647068, 3.136816;;, + 29;3; 5.378092,-1.647068, 3.136816;;, + 30;3; 5.378092,-1.647068, 3.136816;;, + 31;3; 5.378092,-1.647068, 3.136816;;, + 32;3; 5.378092,-1.647068, 3.136816;;, + 33;3; 5.378092,-1.647068, 3.136816;;, + 34;3; 5.378092,-1.647068, 3.136816;;, + 35;3; 5.378092,-1.647068, 3.136816;;, + 36;3; 5.378092,-1.647068, 3.136816;;, + 37;3; 5.378092,-1.647068, 3.136816;;, + 38;3; 5.378092,-1.647068, 3.136816;;, + 39;3; 5.378092,-1.647068, 3.136816;;, + 40;3; 5.378092,-1.647068, 3.136816;;, + 41;3; 5.378092,-1.647068, 3.136816;;, + 42;3; 5.378092,-1.647068, 3.136816;;, + 43;3; 5.378092,-1.647068, 3.136816;;, + 44;3; 5.378092,-1.647068, 3.136816;;, + 45;3; 5.378092,-1.647068, 3.136816;;, + 46;3; 5.378092,-1.647068, 3.136816;;, + 47;3; 5.378092,-1.647068, 3.136816;;, + 48;3; 5.378092,-1.647068, 3.136816;;, + 49;3; 5.378092,-1.647068, 3.136816;;, + 50;3; 5.378092,-1.647068, 3.136816;;, + 51;3; 5.378092,-1.647068, 3.136816;;, + 52;3; 5.378092,-1.647068, 3.136816;;, + 53;3; 5.378092,-1.647068, 3.136816;;, + 54;3; 5.378092,-1.647068, 3.136816;;, + 55;3; 5.378092,-1.647068, 3.136816;;, + 56;3; 5.378092,-1.647068, 3.136816;;, + 57;3; 5.378092,-1.647068, 3.136816;;, + 58;3; 5.378092,-1.647068, 3.136816;;, + 59;3; 5.378092,-1.647068, 3.136816;;, + 60;3; 5.378092,-1.647068, 3.136816;;, + 61;3; 5.378092,-1.647068, 3.136816;;, + 62;3; 5.378092,-1.647068, 3.136816;;, + 63;3; 5.378092,-1.647068, 3.136816;;, + 64;3; 5.378092,-1.647068, 3.136816;;, + 65;3; 5.378092,-1.647068, 3.136816;;, + 66;3; 5.378092,-1.647068, 3.136816;;, + 67;3; 5.378092,-1.647068, 3.136816;;, + 68;3; 5.378092,-1.647068, 3.136816;;, + 69;3; 5.378092,-1.647068, 3.136816;;, + 70;3; 5.378092,-1.647068, 3.136816;;, + 71;3; 5.378092,-1.647068, 3.136816;;, + 72;3; 5.378092,-1.647068, 3.136816;;, + 73;3; 5.378092,-1.647068, 3.136816;;, + 74;3; 5.378092,-1.647068, 3.136816;;, + 75;3; 5.378092,-1.647068, 3.136816;;, + 76;3; 5.378092,-1.647068, 3.136816;;, + 77;3; 5.378092,-1.647068, 3.136816;;, + 78;3; 5.378092,-1.647068, 3.136816;;, + 79;3; 5.378092,-1.647068, 3.136816;;, + 80;3; 5.378092,-1.647068, 3.136816;;, + 81;3; 5.378092,-1.647068, 3.136816;;, + 82;3; 5.378092,-1.647068, 3.136816;;, + 83;3; 5.378092,-1.647068, 3.136816;;, + 84;3; 5.378092,-1.647068, 3.136816;;, + 85;3; 5.378092,-1.647068, 3.136816;;, + 86;3; 5.378092,-1.647068, 3.136816;;, + 87;3; 5.378092,-1.647068, 3.136816;;, + 88;3; 5.378092,-1.647068, 3.136816;;, + 89;3; 5.378092,-1.647068, 3.136816;;, + 90;3; 5.378092,-1.647068, 3.136816;;, + 91;3; 5.378092,-1.647068, 3.136816;;, + 92;3; 5.378092,-1.647068, 3.136816;;, + 93;3; 5.378092,-1.647068, 3.136816;;, + 94;3; 5.378092,-1.647068, 3.136816;;, + 95;3; 5.378092,-1.647068, 3.136816;;, + 96;3; 5.378092,-1.647068, 3.136816;;, + 97;3; 5.378092,-1.647068, 3.136816;;, + 98;3; 5.378092,-1.647068, 3.136816;;, + 99;3; 5.378092,-1.647068, 3.136816;;, + 100;3; 5.378092,-1.647068, 3.136816;;, + 101;3; 5.378092,-1.647068, 3.136816;;; + } + AnimationKey { //Rotation + 0; + 102; + 0;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 1;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 2;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 3;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 4;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 5;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 6;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 7;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 8;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 9;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 10;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 11;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 12;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 13;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 14;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 15;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 16;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 17;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 18;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 19;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 20;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 21;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 22;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 23;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 24;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 25;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 26;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 27;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 28;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 29;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 30;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 31;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 32;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 33;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 34;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 35;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 36;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 37;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 38;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 39;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 40;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 41;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 42;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 43;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 44;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 45;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 46;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 47;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 48;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 49;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 50;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 51;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 52;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 53;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 54;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 55;4; -0.989440, 0.034590, 0.000000, 0.000000;;, + 56;4; -0.958708, 0.135162, 0.000000, 0.000000;;, + 57;4; -0.914532, 0.279621, 0.000000, 0.000000;;, + 58;4; -0.870356, 0.424055, 0.000000, 0.000000;;, + 59;4; -0.839626, 0.524582, 0.000000, 0.000000;;, + 60;4; -0.829066, 0.559151, 0.000000, 0.000000;;, + 61;4; -0.829257, 0.558385, 0.000000, 0.000000;;, + 62;4; -0.830161, 0.555010, 0.000000, 0.000000;;, + 63;4; -0.832398, 0.547059, 0.000000, 0.000000;;, + 64;4; -0.836584, 0.532654, 0.000000, 0.000000;;, + 65;4; -0.843026, 0.510954, 0.000000, 0.000000;;, + 66;4; -0.851591, 0.482521, 0.000000, 0.000000;;, + 67;4; -0.861866, 0.448750, 0.000000, 0.000000;;, + 68;4; -0.875730, 0.403482, 0.000000, 0.000000;;, + 69;4; -0.895080, 0.340508, 0.000000, 0.000000;;, + 70;4; -0.918633, 0.264010, 0.000000, 0.000000;;, + 71;4; -0.943785, 0.182404, 0.000000, 0.000000;;, + 72;4; -0.967043, 0.106967, 0.000000, 0.000000;;, + 73;4; -0.985199, 0.048062, 0.000000, 0.000000;;, + 74;4; -0.996347, 0.011867, 0.000000, 0.000000;;, + 75;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 76;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 77;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 78;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 79;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 80;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 81;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 82;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 83;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 84;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 85;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 86;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 87;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 88;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 89;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 90;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 91;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 92;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 93;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 94;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 95;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 96;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 97;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 98;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 99;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 100;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 101;4; -1.000000, 0.000000, 0.000000, 0.000000;;; + } + AnimationKey { //Scale + 1; + 102; + 0;3; 1.000000, 1.000000, 1.000000;;, + 1;3; 1.000000, 1.000000, 1.000000;;, + 2;3; 1.000000, 1.000000, 1.000000;;, + 3;3; 1.000000, 1.000000, 1.000000;;, + 4;3; 1.000000, 1.000000, 1.000000;;, + 5;3; 1.000000, 1.000000, 1.000000;;, + 6;3; 1.000000, 1.000000, 1.000000;;, + 7;3; 1.000000, 1.000000, 1.000000;;, + 8;3; 1.000000, 1.000000, 1.000000;;, + 9;3; 1.000000, 1.000000, 1.000000;;, + 10;3; 1.000000, 1.000000, 1.000000;;, + 11;3; 1.000000, 1.000000, 1.000000;;, + 12;3; 1.000000, 1.000000, 1.000000;;, + 13;3; 1.000000, 1.000000, 1.000000;;, + 14;3; 1.000000, 1.000000, 1.000000;;, + 15;3; 1.000000, 1.000000, 1.000000;;, + 16;3; 1.000000, 1.000000, 1.000000;;, + 17;3; 1.000000, 1.000000, 1.000000;;, + 18;3; 1.000000, 1.000000, 1.000000;;, + 19;3; 1.000000, 1.000000, 1.000000;;, + 20;3; 1.000000, 1.000000, 1.000000;;, + 21;3; 1.000000, 1.000000, 1.000000;;, + 22;3; 1.000000, 1.000000, 1.000000;;, + 23;3; 1.000000, 1.000000, 1.000000;;, + 24;3; 1.000000, 1.000000, 1.000000;;, + 25;3; 1.000000, 1.000000, 1.000000;;, + 26;3; 1.000000, 1.000000, 1.000000;;, + 27;3; 1.000000, 1.000000, 1.000000;;, + 28;3; 1.000000, 1.000000, 1.000000;;, + 29;3; 1.000000, 1.000000, 1.000000;;, + 30;3; 1.000000, 1.000000, 1.000000;;, + 31;3; 1.000000, 1.000000, 1.000000;;, + 32;3; 1.000000, 1.000000, 1.000000;;, + 33;3; 1.000000, 1.000000, 1.000000;;, + 34;3; 1.000000, 1.000000, 1.000000;;, + 35;3; 1.000000, 1.000000, 1.000000;;, + 36;3; 1.000000, 1.000000, 1.000000;;, + 37;3; 1.000000, 1.000000, 1.000000;;, + 38;3; 1.000000, 1.000000, 1.000000;;, + 39;3; 1.000000, 1.000000, 1.000000;;, + 40;3; 1.000000, 1.000000, 1.000000;;, + 41;3; 1.000000, 1.000000, 1.000000;;, + 42;3; 1.000000, 1.000000, 1.000000;;, + 43;3; 1.000000, 1.000000, 1.000000;;, + 44;3; 1.000000, 1.000000, 1.000000;;, + 45;3; 1.000000, 1.000000, 1.000000;;, + 46;3; 1.000000, 1.000000, 1.000000;;, + 47;3; 1.000000, 1.000000, 1.000000;;, + 48;3; 1.000000, 1.000000, 1.000000;;, + 49;3; 1.000000, 1.000000, 1.000000;;, + 50;3; 1.000000, 1.000000, 1.000000;;, + 51;3; 1.000000, 1.000000, 1.000000;;, + 52;3; 1.000000, 1.000000, 1.000000;;, + 53;3; 1.000000, 1.000000, 1.000000;;, + 54;3; 1.000000, 1.000000, 1.000000;;, + 55;3; 1.000000, 1.000000, 1.000000;;, + 56;3; 1.000000, 1.000000, 1.000000;;, + 57;3; 1.000000, 1.000000, 1.000000;;, + 58;3; 1.000000, 1.000000, 1.000000;;, + 59;3; 1.000000, 1.000000, 1.000000;;, + 60;3; 1.000000, 1.000000, 1.000000;;, + 61;3; 1.000000, 1.000000, 1.000000;;, + 62;3; 1.000000, 1.000000, 1.000000;;, + 63;3; 1.000000, 1.000000, 1.000000;;, + 64;3; 1.000000, 1.000000, 1.000000;;, + 65;3; 1.000000, 1.000000, 1.000000;;, + 66;3; 1.000000, 1.000000, 1.000000;;, + 67;3; 1.000000, 1.000000, 1.000000;;, + 68;3; 1.000000, 1.000000, 1.000000;;, + 69;3; 1.000000, 1.000000, 1.000000;;, + 70;3; 1.000000, 1.000000, 1.000000;;, + 71;3; 1.000000, 1.000000, 1.000000;;, + 72;3; 1.000000, 1.000000, 1.000000;;, + 73;3; 1.000000, 1.000000, 1.000000;;, + 74;3; 1.000000, 1.000000, 1.000000;;, + 75;3; 1.000000, 1.000000, 1.000000;;, + 76;3; 1.000000, 1.000000, 1.000000;;, + 77;3; 1.000000, 1.000000, 1.000000;;, + 78;3; 1.000000, 1.000000, 1.000000;;, + 79;3; 1.000000, 1.000000, 1.000000;;, + 80;3; 1.000000, 1.000000, 1.000000;;, + 81;3; 1.000000, 1.000000, 1.000000;;, + 82;3; 1.000000, 1.000000, 1.000000;;, + 83;3; 1.000000, 1.000000, 1.000000;;, + 84;3; 1.000000, 1.000000, 1.000000;;, + 85;3; 1.000000, 1.000000, 1.000000;;, + 86;3; 1.000000, 1.000000, 1.000000;;, + 87;3; 1.000000, 1.000000, 1.000000;;, + 88;3; 1.000000, 1.000000, 1.000000;;, + 89;3; 1.000000, 1.000000, 1.000000;;, + 90;3; 1.000000, 1.000000, 1.000000;;, + 91;3; 1.000000, 1.000000, 1.000000;;, + 92;3; 1.000000, 1.000000, 1.000000;;, + 93;3; 1.000000, 1.000000, 1.000000;;, + 94;3; 1.000000, 1.000000, 1.000000;;, + 95;3; 1.000000, 1.000000, 1.000000;;, + 96;3; 1.000000, 1.000000, 1.000000;;, + 97;3; 1.000000, 1.000000, 1.000000;;, + 98;3; 1.000000, 1.000000, 1.000000;;, + 99;3; 1.000000, 1.000000, 1.000000;;, + 100;3; 1.000000, 1.000000, 1.000000;;, + 101;3; 1.000000, 1.000000, 1.000000;;; + } + } + Animation { + {Armature_Bone_001} + AnimationKey { //Position + 2; + 102; + 0;3; 0.618225, 0.089278,-0.876976;;, + 1;3; 0.618225, 0.089278,-0.876976;;, + 2;3; 0.618225, 0.089278,-0.876976;;, + 3;3; 0.618225, 0.089278,-0.876976;;, + 4;3; 0.618225, 0.089278,-0.876976;;, + 5;3; 0.618225, 0.089278,-0.876976;;, + 6;3; 0.618225, 0.089278,-0.876976;;, + 7;3; 0.618225, 0.089278,-0.876976;;, + 8;3; 0.618225, 0.089278,-0.876976;;, + 9;3; 0.618225, 0.089278,-0.876976;;, + 10;3; 0.618225, 0.089278,-0.876976;;, + 11;3; 0.618225, 0.089278,-0.876976;;, + 12;3; 0.618225, 0.089278,-0.876976;;, + 13;3; 0.618225, 0.089278,-0.876976;;, + 14;3; 0.618225, 0.089278,-0.876976;;, + 15;3; 0.618225, 0.089278,-0.876976;;, + 16;3; 0.618225, 0.089278,-0.876976;;, + 17;3; 0.618225, 0.089278,-0.876976;;, + 18;3; 0.618225, 0.089278,-0.876976;;, + 19;3; 0.618225, 0.089278,-0.876976;;, + 20;3; 0.618225, 0.089278,-0.876976;;, + 21;3; 0.618225, 0.089278,-0.876976;;, + 22;3; 0.618225, 0.089278,-0.876976;;, + 23;3; 0.618225, 0.089278,-0.876976;;, + 24;3; 0.618225, 0.089278,-0.876976;;, + 25;3; 0.618225, 0.089278,-0.876976;;, + 26;3; 0.618225, 0.089278,-0.876976;;, + 27;3; 0.618225, 0.089278,-0.876976;;, + 28;3; 0.618225, 0.089278,-0.876976;;, + 29;3; 0.618225, 0.089278,-0.876976;;, + 30;3; 0.618225, 0.089278,-0.876976;;, + 31;3; 0.618225, 0.089278,-0.876976;;, + 32;3; 0.618225, 0.089278,-0.876976;;, + 33;3; 0.618225, 0.089278,-0.876976;;, + 34;3; 0.618225, 0.089278,-0.876976;;, + 35;3; 0.618225, 0.089278,-0.876976;;, + 36;3; 0.618225, 0.089278,-0.876976;;, + 37;3; 0.618225, 0.089278,-0.876976;;, + 38;3; 0.618225, 0.089278,-0.876976;;, + 39;3; 0.618225, 0.089278,-0.876976;;, + 40;3; 0.618225, 0.089278,-0.876976;;, + 41;3; 0.618225, 0.089278,-0.876976;;, + 42;3; 0.618225, 0.089278,-0.876976;;, + 43;3; 0.618225, 0.089278,-0.876976;;, + 44;3; 0.618225, 0.089278,-0.876976;;, + 45;3; 0.618225, 0.089278,-0.876976;;, + 46;3; 0.618225, 0.089278,-0.876976;;, + 47;3; 0.618225, 0.089278,-0.876976;;, + 48;3; 0.618225, 0.089278,-0.876976;;, + 49;3; 0.618225, 0.089278,-0.876976;;, + 50;3; 0.618225, 0.089278,-0.876976;;, + 51;3; 0.618225, 0.089278,-0.876976;;, + 52;3; 0.618225, 0.089278,-0.876976;;, + 53;3; 0.618225, 0.089278,-0.876976;;, + 54;3; 0.618225, 0.089278,-0.876976;;, + 55;3; 0.618225, 0.089278,-0.876976;;, + 56;3; 0.618225, 0.089278,-0.876976;;, + 57;3; 0.618225, 0.089278,-0.876976;;, + 58;3; 0.618225, 0.089278,-0.876976;;, + 59;3; 0.618225, 0.089278,-0.876976;;, + 60;3; 0.618225, 0.089278,-0.876976;;, + 61;3; 0.618225, 0.089278,-0.876976;;, + 62;3; 0.618226, 0.089278,-0.876976;;, + 63;3; 0.618225, 0.089278,-0.876976;;, + 64;3; 0.618225, 0.089278,-0.876976;;, + 65;3; 0.618225, 0.089278,-0.876976;;, + 66;3; 0.618225, 0.089278,-0.876976;;, + 67;3; 0.618225, 0.089278,-0.876976;;, + 68;3; 0.618225, 0.089278,-0.876976;;, + 69;3; 0.618225, 0.089278,-0.876976;;, + 70;3; 0.618225, 0.089278,-0.876976;;, + 71;3; 0.618225, 0.089278,-0.876976;;, + 72;3; 0.618225, 0.089278,-0.876976;;, + 73;3; 0.618226, 0.089278,-0.876976;;, + 74;3; 0.618225, 0.089278,-0.876976;;, + 75;3; 0.618225, 0.089278,-0.876976;;, + 76;3; 0.618225, 0.089278,-0.876976;;, + 77;3; 0.618225, 0.089278,-0.876976;;, + 78;3; 0.618225, 0.089278,-0.876976;;, + 79;3; 0.618225, 0.089278,-0.876976;;, + 80;3; 0.618225, 0.089278,-0.876976;;, + 81;3; 0.618225, 0.089278,-0.876976;;, + 82;3; 0.618225, 0.089278,-0.876976;;, + 83;3; 0.618225, 0.089278,-0.876976;;, + 84;3; 0.618225, 0.089278,-0.876976;;, + 85;3; 0.618225, 0.089278,-0.876976;;, + 86;3; 0.618225, 0.089278,-0.876976;;, + 87;3; 0.618225, 0.089278,-0.876976;;, + 88;3; 0.618225, 0.089278,-0.876976;;, + 89;3; 0.618225, 0.089278,-0.876976;;, + 90;3; 0.618225, 0.089278,-0.876976;;, + 91;3; 0.618225, 0.089278,-0.876976;;, + 92;3; 0.618225, 0.089278,-0.876976;;, + 93;3; 0.618225, 0.089278,-0.876976;;, + 94;3; 0.618225, 0.089278,-0.876976;;, + 95;3; 0.618225, 0.089278,-0.876976;;, + 96;3; 0.618225, 0.089278,-0.876976;;, + 97;3; 0.618225, 0.089278,-0.876976;;, + 98;3; 0.618225, 0.089278,-0.876976;;, + 99;3; 0.618225, 0.089278,-0.876976;;, + 100;3; 0.618225, 0.089278,-0.876976;;, + 101;3; 0.618225, 0.089278,-0.876976;;; + } + AnimationKey { //Rotation + 0; + 102; + 0;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 1;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 2;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 3;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 4;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 5;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 6;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 7;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 8;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 9;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 10;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 11;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 12;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 13;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 14;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 15;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 16;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 17;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 18;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 19;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 20;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 21;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 22;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 23;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 24;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 25;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 26;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 27;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 28;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 29;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 30;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 31;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 32;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 33;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 34;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 35;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 36;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 37;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 38;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 39;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 40;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 41;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 42;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 43;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 44;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 45;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 46;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 47;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 48;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 49;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 50;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 51;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 52;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 53;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 54;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 55;4; -0.478256,-0.511844, 0.478256,-0.511844;;, + 56;4; -0.415019,-0.546269, 0.415019,-0.546269;;, + 57;4; -0.324169,-0.595704, 0.324169,-0.595704;;, + 58;4; -0.233331,-0.645127, 0.233331,-0.645127;;, + 59;4; -0.170118,-0.679530, 0.170118,-0.679529;;, + 60;4; -0.148386,-0.691362, 0.148385,-0.691362;;, + 61;4; -0.149170,-0.690628, 0.149170,-0.690628;;, + 62;4; -0.152167,-0.688052, 0.152167,-0.688052;;, + 63;4; -0.158443,-0.683100, 0.158443,-0.683100;;, + 64;4; -0.168844,-0.675511, 0.168844,-0.675511;;, + 65;4; -0.183500,-0.665525, 0.183500,-0.665525;;, + 66;4; -0.201765,-0.653774, 0.201765,-0.653774;;, + 67;4; -0.222659,-0.640955, 0.222659,-0.640955;;, + 68;4; -0.250378,-0.625186, 0.250378,-0.625186;;, + 69;4; -0.289169,-0.604535, 0.289169,-0.604535;;, + 70;4; -0.336449,-0.580314, 0.336449,-0.580314;;, + 71;4; -0.386978,-0.555058, 0.386978,-0.555058;;, + 72;4; -0.433724,-0.532077, 0.433724,-0.532077;;, + 73;4; -0.470228,-0.514335, 0.470228,-0.514335;;, + 74;4; -0.492651,-0.503524, 0.492651,-0.503524;;, + 75;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 76;4; -0.495704,-0.503768, 0.495704,-0.503768;;, + 77;4; -0.483200,-0.514733, 0.483200,-0.514733;;, + 78;4; -0.465228,-0.530495, 0.465228,-0.530495;;, + 79;4; -0.447256,-0.546255, 0.447256,-0.546255;;, + 80;4; -0.434755,-0.557218, 0.434755,-0.557218;;, + 81;4; -0.430459,-0.560986, 0.430459,-0.560986;;, + 82;4; -0.432466,-0.558979, 0.432466,-0.558979;;, + 83;4; -0.438522,-0.552923, 0.438522,-0.552923;;, + 84;4; -0.448509,-0.542936, 0.448509,-0.542936;;, + 85;4; -0.461988,-0.529456, 0.461988,-0.529456;;, + 86;4; -0.478130,-0.513315, 0.478130,-0.513315;;, + 87;4; -0.495723,-0.495722, 0.495722,-0.495722;;, + 88;4; -0.513315,-0.478130, 0.513315,-0.478130;;, + 89;4; -0.529457,-0.461988, 0.529457,-0.461988;;, + 90;4; -0.542936,-0.448509, 0.542936,-0.448509;;, + 91;4; -0.552923,-0.438522, 0.552923,-0.438522;;, + 92;4; -0.558979,-0.432466, 0.558979,-0.432466;;, + 93;4; -0.560986,-0.430459, 0.560986,-0.430459;;, + 94;4; -0.557219,-0.434755, 0.557219,-0.434755;;, + 95;4; -0.546256,-0.447255, 0.546256,-0.447255;;, + 96;4; -0.530497,-0.465226, 0.530496,-0.465226;;, + 97;4; -0.514735,-0.483199, 0.514735,-0.483199;;, + 98;4; -0.503769,-0.495703, 0.503769,-0.495703;;, + 99;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 100;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 101;4; -0.500000,-0.500000, 0.500000,-0.500000;;; + } + AnimationKey { //Scale + 1; + 102; + 0;3; 1.000000, 1.000000, 1.000000;;, + 1;3; 1.000000, 1.000000, 1.000000;;, + 2;3; 1.000000, 1.000000, 1.000000;;, + 3;3; 1.000000, 1.000000, 1.000000;;, + 4;3; 1.000000, 1.000000, 1.000000;;, + 5;3; 1.000000, 1.000000, 1.000000;;, + 6;3; 1.000000, 1.000000, 1.000000;;, + 7;3; 1.000000, 1.000000, 1.000000;;, + 8;3; 1.000000, 1.000000, 1.000000;;, + 9;3; 1.000000, 1.000000, 1.000000;;, + 10;3; 1.000000, 1.000000, 1.000000;;, + 11;3; 1.000000, 1.000000, 1.000000;;, + 12;3; 1.000000, 1.000000, 1.000000;;, + 13;3; 1.000000, 1.000000, 1.000000;;, + 14;3; 1.000000, 1.000000, 1.000000;;, + 15;3; 1.000000, 1.000000, 1.000000;;, + 16;3; 1.000000, 1.000000, 1.000000;;, + 17;3; 1.000000, 1.000000, 1.000000;;, + 18;3; 1.000000, 1.000000, 1.000000;;, + 19;3; 1.000000, 1.000000, 1.000000;;, + 20;3; 1.000000, 1.000000, 1.000000;;, + 21;3; 1.000000, 1.000000, 1.000000;;, + 22;3; 1.000000, 1.000000, 1.000000;;, + 23;3; 1.000000, 1.000000, 1.000000;;, + 24;3; 1.000000, 1.000000, 1.000000;;, + 25;3; 1.000000, 1.000000, 1.000000;;, + 26;3; 1.000000, 1.000000, 1.000000;;, + 27;3; 1.000000, 1.000000, 1.000000;;, + 28;3; 1.000000, 1.000000, 1.000000;;, + 29;3; 1.000000, 1.000000, 1.000000;;, + 30;3; 1.000000, 1.000000, 1.000000;;, + 31;3; 1.000000, 1.000000, 1.000000;;, + 32;3; 1.000000, 1.000000, 1.000000;;, + 33;3; 1.000000, 1.000000, 1.000000;;, + 34;3; 1.000000, 1.000000, 1.000000;;, + 35;3; 1.000000, 1.000000, 1.000000;;, + 36;3; 1.000000, 1.000000, 1.000000;;, + 37;3; 1.000000, 1.000000, 1.000000;;, + 38;3; 1.000000, 1.000000, 1.000000;;, + 39;3; 1.000000, 1.000000, 1.000000;;, + 40;3; 1.000000, 1.000000, 1.000000;;, + 41;3; 1.000000, 1.000000, 1.000000;;, + 42;3; 1.000000, 1.000000, 1.000000;;, + 43;3; 1.000000, 1.000000, 1.000000;;, + 44;3; 1.000000, 1.000000, 1.000000;;, + 45;3; 1.000000, 1.000000, 1.000000;;, + 46;3; 1.000000, 1.000000, 1.000000;;, + 47;3; 1.000000, 1.000000, 1.000000;;, + 48;3; 1.000000, 1.000000, 1.000000;;, + 49;3; 1.000000, 1.000000, 1.000000;;, + 50;3; 1.000000, 1.000000, 1.000000;;, + 51;3; 1.000000, 1.000000, 1.000000;;, + 52;3; 1.000000, 1.000000, 1.000000;;, + 53;3; 1.000000, 1.000000, 1.000000;;, + 54;3; 1.000000, 1.000000, 1.000000;;, + 55;3; 1.000000, 1.000000, 1.000000;;, + 56;3; 1.000000, 1.000000, 1.000000;;, + 57;3; 1.000000, 1.000000, 1.000000;;, + 58;3; 1.000000, 1.000000, 1.000000;;, + 59;3; 1.000000, 1.000000, 1.000000;;, + 60;3; 1.000000, 1.000000, 1.000000;;, + 61;3; 1.000000, 1.000000, 1.000000;;, + 62;3; 1.000000, 1.000000, 1.000000;;, + 63;3; 1.000000, 1.000000, 1.000000;;, + 64;3; 1.000000, 1.000000, 1.000000;;, + 65;3; 1.000000, 1.000000, 1.000000;;, + 66;3; 1.000000, 1.000000, 1.000000;;, + 67;3; 1.000000, 1.000000, 1.000000;;, + 68;3; 1.000000, 1.000000, 1.000000;;, + 69;3; 1.000000, 1.000000, 1.000000;;, + 70;3; 1.000000, 1.000000, 1.000000;;, + 71;3; 1.000000, 1.000000, 1.000000;;, + 72;3; 1.000000, 1.000000, 1.000000;;, + 73;3; 1.000000, 1.000000, 1.000000;;, + 74;3; 1.000000, 1.000000, 1.000000;;, + 75;3; 1.000000, 1.000000, 1.000000;;, + 76;3; 1.000000, 1.000000, 1.000000;;, + 77;3; 1.000000, 1.000000, 1.000000;;, + 78;3; 1.000000, 1.000000, 1.000000;;, + 79;3; 1.000000, 1.000000, 1.000000;;, + 80;3; 1.000000, 1.000000, 1.000000;;, + 81;3; 1.000000, 1.000000, 1.000000;;, + 82;3; 1.000000, 1.000000, 1.000000;;, + 83;3; 1.000000, 1.000000, 1.000000;;, + 84;3; 1.000000, 1.000000, 1.000000;;, + 85;3; 1.000000, 1.000000, 1.000000;;, + 86;3; 1.000000, 1.000000, 1.000000;;, + 87;3; 1.000000, 1.000000, 1.000000;;, + 88;3; 1.000000, 1.000000, 1.000000;;, + 89;3; 1.000000, 1.000000, 1.000000;;, + 90;3; 1.000000, 1.000000, 1.000000;;, + 91;3; 1.000000, 1.000000, 1.000000;;, + 92;3; 1.000000, 1.000000, 1.000000;;, + 93;3; 1.000000, 1.000000, 1.000000;;, + 94;3; 1.000000, 1.000000, 1.000000;;, + 95;3; 1.000000, 1.000000, 1.000000;;, + 96;3; 1.000000, 1.000000, 1.000000;;, + 97;3; 1.000000, 1.000000, 1.000000;;, + 98;3; 1.000000, 1.000000, 1.000000;;, + 99;3; 1.000000, 1.000000, 1.000000;;, + 100;3; 1.000000, 1.000000, 1.000000;;, + 101;3; 1.000000, 1.000000, 1.000000;;; + } + } + Animation { + {Armature_Bone_002} + AnimationKey { //Position + 2; + 102; + 0;3; 0.618225, 3.135167,-1.284375;;, + 1;3; 0.618225, 3.135167,-1.284375;;, + 2;3; 0.618225, 3.135167,-1.284375;;, + 3;3; 0.618225, 3.135167,-1.284375;;, + 4;3; 0.618225, 3.135167,-1.284375;;, + 5;3; 0.618225, 3.135167,-1.284375;;, + 6;3; 0.618225, 3.135167,-1.284375;;, + 7;3; 0.618225, 3.135167,-1.284375;;, + 8;3; 0.618225, 3.135167,-1.284375;;, + 9;3; 0.618225, 3.135167,-1.284375;;, + 10;3; 0.618225, 3.135167,-1.284375;;, + 11;3; 0.618225, 3.135167,-1.284375;;, + 12;3; 0.618225, 3.135167,-1.284375;;, + 13;3; 0.618225, 3.135167,-1.284375;;, + 14;3; 0.618225, 3.135167,-1.284375;;, + 15;3; 0.618225, 3.135167,-1.284375;;, + 16;3; 0.618225, 3.135167,-1.284375;;, + 17;3; 0.618225, 3.135167,-1.284375;;, + 18;3; 0.618225, 3.135167,-1.284375;;, + 19;3; 0.618225, 3.135167,-1.284375;;, + 20;3; 0.618225, 3.135167,-1.284375;;, + 21;3; 0.618225, 3.135167,-1.284375;;, + 22;3; 0.618225, 3.135167,-1.284375;;, + 23;3; 0.618225, 3.135167,-1.284375;;, + 24;3; 0.618225, 3.135167,-1.284375;;, + 25;3; 0.618225, 3.135167,-1.284375;;, + 26;3; 0.618225, 3.135167,-1.284375;;, + 27;3; 0.618225, 3.135167,-1.284375;;, + 28;3; 0.618225, 3.135167,-1.284375;;, + 29;3; 0.618225, 3.135167,-1.284375;;, + 30;3; 0.618225, 3.135167,-1.284375;;, + 31;3; 0.618225, 3.135167,-1.284375;;, + 32;3; 0.618225, 3.135167,-1.284375;;, + 33;3; 0.618225, 3.135167,-1.284375;;, + 34;3; 0.618225, 3.135167,-1.284375;;, + 35;3; 0.618225, 3.135167,-1.284375;;, + 36;3; 0.618225, 3.135167,-1.284375;;, + 37;3; 0.618225, 3.135167,-1.284375;;, + 38;3; 0.618225, 3.135167,-1.284375;;, + 39;3; 0.618225, 3.135167,-1.284375;;, + 40;3; 0.618225, 3.135167,-1.284375;;, + 41;3; 0.618225, 3.135167,-1.284375;;, + 42;3; 0.618225, 3.135167,-1.284375;;, + 43;3; 0.618225, 3.135167,-1.284375;;, + 44;3; 0.618225, 3.135167,-1.284375;;, + 45;3; 0.618225, 3.135167,-1.284375;;, + 46;3; 0.618225, 3.135167,-1.284375;;, + 47;3; 0.618225, 3.135167,-1.284375;;, + 48;3; 0.618225, 3.135167,-1.284375;;, + 49;3; 0.618225, 3.135167,-1.284375;;, + 50;3; 0.618225, 3.135167,-1.284375;;, + 51;3; 0.618225, 3.135167,-1.284375;;, + 52;3; 0.618225, 3.135167,-1.284375;;, + 53;3; 0.618225, 3.135167,-1.284375;;, + 54;3; 0.618225, 3.135167,-1.284375;;, + 55;3; 0.618225, 3.135167,-1.284375;;, + 56;3; 0.618225, 3.135167,-1.284375;;, + 57;3; 0.618225, 3.135167,-1.284375;;, + 58;3; 0.618225, 3.135167,-1.284375;;, + 59;3; 0.618225, 3.135167,-1.284375;;, + 60;3; 0.618225, 3.135167,-1.284375;;, + 61;3; 0.618225, 3.135167,-1.284375;;, + 62;3; 0.618226, 3.135167,-1.284375;;, + 63;3; 0.618225, 3.135167,-1.284375;;, + 64;3; 0.618225, 3.135166,-1.284375;;, + 65;3; 0.618225, 3.135167,-1.284375;;, + 66;3; 0.618225, 3.135167,-1.284375;;, + 67;3; 0.618225, 3.135167,-1.284375;;, + 68;3; 0.618225, 3.135167,-1.284375;;, + 69;3; 0.618225, 3.135167,-1.284375;;, + 70;3; 0.618225, 3.135167,-1.284375;;, + 71;3; 0.618225, 3.135167,-1.284375;;, + 72;3; 0.618225, 3.135167,-1.284375;;, + 73;3; 0.618226, 3.135167,-1.284375;;, + 74;3; 0.618225, 3.135167,-1.284375;;, + 75;3; 0.618225, 3.135167,-1.284375;;, + 76;3; 0.618225, 3.135167,-1.284375;;, + 77;3; 0.618225, 3.135167,-1.284375;;, + 78;3; 0.618225, 3.135167,-1.284375;;, + 79;3; 0.618225, 3.135167,-1.284375;;, + 80;3; 0.618225, 3.135167,-1.284375;;, + 81;3; 0.618225, 3.135167,-1.284375;;, + 82;3; 0.618225, 3.135167,-1.284375;;, + 83;3; 0.618225, 3.135167,-1.284375;;, + 84;3; 0.618225, 3.135167,-1.284375;;, + 85;3; 0.618225, 3.135167,-1.284375;;, + 86;3; 0.618225, 3.135167,-1.284375;;, + 87;3; 0.618225, 3.135167,-1.284375;;, + 88;3; 0.618225, 3.135167,-1.284375;;, + 89;3; 0.618225, 3.135167,-1.284375;;, + 90;3; 0.618225, 3.135167,-1.284375;;, + 91;3; 0.618225, 3.135167,-1.284375;;, + 92;3; 0.618225, 3.135167,-1.284375;;, + 93;3; 0.618225, 3.135167,-1.284375;;, + 94;3; 0.618225, 3.135167,-1.284375;;, + 95;3; 0.618225, 3.135167,-1.284375;;, + 96;3; 0.618225, 3.135167,-1.284375;;, + 97;3; 0.618225, 3.135167,-1.284375;;, + 98;3; 0.618225, 3.135167,-1.284375;;, + 99;3; 0.618225, 3.135167,-1.284375;;, + 100;3; 0.618225, 3.135167,-1.284375;;, + 101;3; 0.618225, 3.135167,-1.284375;;; + } + AnimationKey { //Rotation + 0; + 102; + 0;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 1;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 2;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 3;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 4;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 5;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 6;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 7;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 8;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 9;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 10;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 11;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 12;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 13;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 14;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 15;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 16;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 17;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 18;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 19;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 20;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 21;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 22;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 23;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 24;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 25;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 26;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 27;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 28;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 29;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 30;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 31;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 32;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 33;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 34;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 35;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 36;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 37;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 38;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 39;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 40;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 41;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 42;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 43;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 44;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 45;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 46;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 47;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 48;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 49;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 50;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 51;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 52;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 53;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 54;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 55;4; -0.501697,-0.498267, 0.501696,-0.498267;;, + 56;4; -0.507434,-0.492223, 0.507434,-0.492223;;, + 57;4; -0.517777,-0.480915, 0.517777,-0.480915;;, + 58;4; -0.532186,-0.464522, 0.532186,-0.464522;;, + 59;4; -0.549104,-0.444500, 0.549104,-0.444500;;, + 60;4; -0.566914,-0.422621, 0.566914,-0.422621;;, + 61;4; -0.591676,-0.385693, 0.591676,-0.385693;;, + 62;4; -0.619875,-0.337660, 0.619875,-0.337660;;, + 63;4; -0.631009,-0.317774, 0.631009,-0.317774;;, + 64;4; -0.569991,-0.416549, 0.569991,-0.416549;;, + 65;4; -0.544001,-0.447528, 0.544001,-0.447528;;, + 66;4; -0.528725,-0.465743, 0.528725,-0.465743;;, + 67;4; -0.518688,-0.477713, 0.518688,-0.477713;;, + 68;4; -0.511850,-0.485867, 0.511850,-0.485867;;, + 69;4; -0.507176,-0.491442, 0.507176,-0.491442;;, + 70;4; -0.504043,-0.495178, 0.504043,-0.495178;;, + 71;4; -0.502037,-0.497571, 0.502037,-0.497571;;, + 72;4; -0.500854,-0.498982, 0.500854,-0.498982;;, + 73;4; -0.500254,-0.499698, 0.500254,-0.499698;;, + 74;4; -0.500032,-0.499962, 0.500032,-0.499962;;, + 75;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 76;4; -0.503767,-0.495704, 0.503767,-0.495704;;, + 77;4; -0.514731,-0.483202, 0.514731,-0.483202;;, + 78;4; -0.530493,-0.465230, 0.530493,-0.465230;;, + 79;4; -0.546254,-0.447257, 0.546254,-0.447257;;, + 80;4; -0.557218,-0.434755, 0.557218,-0.434755;;, + 81;4; -0.560986,-0.430459, 0.560986,-0.430459;;, + 82;4; -0.558979,-0.432466, 0.558979,-0.432466;;, + 83;4; -0.552923,-0.438522, 0.552923,-0.438522;;, + 84;4; -0.542936,-0.448509, 0.542936,-0.448509;;, + 85;4; -0.529457,-0.461988, 0.529456,-0.461988;;, + 86;4; -0.513315,-0.478130, 0.513315,-0.478130;;, + 87;4; -0.495722,-0.495722, 0.495722,-0.495722;;, + 88;4; -0.478130,-0.513315, 0.478130,-0.513315;;, + 89;4; -0.461988,-0.529457, 0.461988,-0.529457;;, + 90;4; -0.448509,-0.542936, 0.448509,-0.542936;;, + 91;4; -0.438522,-0.552923, 0.438522,-0.552923;;, + 92;4; -0.432466,-0.558979, 0.432466,-0.558979;;, + 93;4; -0.430459,-0.560986, 0.430459,-0.560986;;, + 94;4; -0.434755,-0.557219, 0.434755,-0.557219;;, + 95;4; -0.447255,-0.546256, 0.447255,-0.546256;;, + 96;4; -0.465226,-0.530496, 0.465226,-0.530496;;, + 97;4; -0.483199,-0.514735, 0.483198,-0.514735;;, + 98;4; -0.495703,-0.503769, 0.495703,-0.503769;;, + 99;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 100;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 101;4; -0.500000,-0.500000, 0.500000,-0.500000;;; + } + AnimationKey { //Scale + 1; + 102; + 0;3; 1.000000, 1.000000, 1.000000;;, + 1;3; 1.000000, 1.000000, 1.000000;;, + 2;3; 1.000000, 1.000000, 1.000000;;, + 3;3; 1.000000, 1.000000, 1.000000;;, + 4;3; 1.000000, 1.000000, 1.000000;;, + 5;3; 1.000000, 1.000000, 1.000000;;, + 6;3; 1.000000, 1.000000, 1.000000;;, + 7;3; 1.000000, 1.000000, 1.000000;;, + 8;3; 1.000000, 1.000000, 1.000000;;, + 9;3; 1.000000, 1.000000, 1.000000;;, + 10;3; 1.000000, 1.000000, 1.000000;;, + 11;3; 1.000000, 1.000000, 1.000000;;, + 12;3; 1.000000, 1.000000, 1.000000;;, + 13;3; 1.000000, 1.000000, 1.000000;;, + 14;3; 1.000000, 1.000000, 1.000000;;, + 15;3; 1.000000, 1.000000, 1.000000;;, + 16;3; 1.000000, 1.000000, 1.000000;;, + 17;3; 1.000000, 1.000000, 1.000000;;, + 18;3; 1.000000, 1.000000, 1.000000;;, + 19;3; 1.000000, 1.000000, 1.000000;;, + 20;3; 1.000000, 1.000000, 1.000000;;, + 21;3; 1.000000, 1.000000, 1.000000;;, + 22;3; 1.000000, 1.000000, 1.000000;;, + 23;3; 1.000000, 1.000000, 1.000000;;, + 24;3; 1.000000, 1.000000, 1.000000;;, + 25;3; 1.000000, 1.000000, 1.000000;;, + 26;3; 1.000000, 1.000000, 1.000000;;, + 27;3; 1.000000, 1.000000, 1.000000;;, + 28;3; 1.000000, 1.000000, 1.000000;;, + 29;3; 1.000000, 1.000000, 1.000000;;, + 30;3; 1.000000, 1.000000, 1.000000;;, + 31;3; 1.000000, 1.000000, 1.000000;;, + 32;3; 1.000000, 1.000000, 1.000000;;, + 33;3; 1.000000, 1.000000, 1.000000;;, + 34;3; 1.000000, 1.000000, 1.000000;;, + 35;3; 1.000000, 1.000000, 1.000000;;, + 36;3; 1.000000, 1.000000, 1.000000;;, + 37;3; 1.000000, 1.000000, 1.000000;;, + 38;3; 1.000000, 1.000000, 1.000000;;, + 39;3; 1.000000, 1.000000, 1.000000;;, + 40;3; 1.000000, 1.000000, 1.000000;;, + 41;3; 1.000000, 1.000000, 1.000000;;, + 42;3; 1.000000, 1.000000, 1.000000;;, + 43;3; 1.000000, 1.000000, 1.000000;;, + 44;3; 1.000000, 1.000000, 1.000000;;, + 45;3; 1.000000, 1.000000, 1.000000;;, + 46;3; 1.000000, 1.000000, 1.000000;;, + 47;3; 1.000000, 1.000000, 1.000000;;, + 48;3; 1.000000, 1.000000, 1.000000;;, + 49;3; 1.000000, 1.000000, 1.000000;;, + 50;3; 1.000000, 1.000000, 1.000000;;, + 51;3; 1.000000, 1.000000, 1.000000;;, + 52;3; 1.000000, 1.000000, 1.000000;;, + 53;3; 1.000000, 1.000000, 1.000000;;, + 54;3; 1.000000, 1.000000, 1.000000;;, + 55;3; 1.000000, 1.000000, 1.000000;;, + 56;3; 1.000000, 1.000000, 1.000000;;, + 57;3; 1.000000, 1.000000, 1.000000;;, + 58;3; 1.000000, 1.000000, 1.000000;;, + 59;3; 1.000000, 1.000000, 1.000000;;, + 60;3; 1.000000, 1.000000, 1.000000;;, + 61;3; 1.000000, 1.000000, 1.000000;;, + 62;3; 1.000000, 1.000000, 1.000000;;, + 63;3; 1.000000, 1.000000, 1.000000;;, + 64;3; 1.000000, 1.000000, 1.000000;;, + 65;3; 1.000000, 1.000000, 1.000000;;, + 66;3; 1.000000, 1.000000, 1.000000;;, + 67;3; 1.000000, 1.000000, 1.000000;;, + 68;3; 1.000000, 1.000000, 1.000000;;, + 69;3; 1.000000, 1.000000, 1.000000;;, + 70;3; 1.000000, 1.000000, 1.000000;;, + 71;3; 1.000000, 1.000000, 1.000000;;, + 72;3; 1.000000, 1.000000, 1.000000;;, + 73;3; 1.000000, 1.000000, 1.000000;;, + 74;3; 1.000000, 1.000000, 1.000000;;, + 75;3; 1.000000, 1.000000, 1.000000;;, + 76;3; 1.000000, 1.000000, 1.000000;;, + 77;3; 1.000000, 1.000000, 1.000000;;, + 78;3; 1.000000, 1.000000, 1.000000;;, + 79;3; 1.000000, 1.000000, 1.000000;;, + 80;3; 1.000000, 1.000000, 1.000000;;, + 81;3; 1.000000, 1.000000, 1.000000;;, + 82;3; 1.000000, 1.000000, 1.000000;;, + 83;3; 1.000000, 1.000000, 1.000000;;, + 84;3; 1.000000, 1.000000, 1.000000;;, + 85;3; 1.000000, 1.000000, 1.000000;;, + 86;3; 1.000000, 1.000000, 1.000000;;, + 87;3; 1.000000, 1.000000, 1.000000;;, + 88;3; 1.000000, 1.000000, 1.000000;;, + 89;3; 1.000000, 1.000000, 1.000000;;, + 90;3; 1.000000, 1.000000, 1.000000;;, + 91;3; 1.000000, 1.000000, 1.000000;;, + 92;3; 1.000000, 1.000000, 1.000000;;, + 93;3; 1.000000, 1.000000, 1.000000;;, + 94;3; 1.000000, 1.000000, 1.000000;;, + 95;3; 1.000000, 1.000000, 1.000000;;, + 96;3; 1.000000, 1.000000, 1.000000;;, + 97;3; 1.000000, 1.000000, 1.000000;;, + 98;3; 1.000000, 1.000000, 1.000000;;, + 99;3; 1.000000, 1.000000, 1.000000;;, + 100;3; 1.000000, 1.000000, 1.000000;;, + 101;3; 1.000000, 1.000000, 1.000000;;; + } + } + Animation { + {Armature_Bone_003} + AnimationKey { //Position + 2; + 102; + 0;3; -0.648382, 0.089278,-0.876976;;, + 1;3; -0.648382, 0.089278,-0.876976;;, + 2;3; -0.648382, 0.089278,-0.876976;;, + 3;3; -0.648382, 0.089278,-0.876976;;, + 4;3; -0.648382, 0.089278,-0.876976;;, + 5;3; -0.648382, 0.089278,-0.876976;;, + 6;3; -0.648382, 0.089278,-0.876976;;, + 7;3; -0.648382, 0.089278,-0.876976;;, + 8;3; -0.648382, 0.089278,-0.876976;;, + 9;3; -0.648382, 0.089278,-0.876976;;, + 10;3; -0.648382, 0.089278,-0.876976;;, + 11;3; -0.648382, 0.089278,-0.876976;;, + 12;3; -0.648382, 0.089278,-0.876976;;, + 13;3; -0.648382, 0.089278,-0.876976;;, + 14;3; -0.648382, 0.089278,-0.876976;;, + 15;3; -0.648382, 0.089278,-0.876976;;, + 16;3; -0.648382, 0.089278,-0.876976;;, + 17;3; -0.648382, 0.089278,-0.876976;;, + 18;3; -0.648382, 0.089278,-0.876976;;, + 19;3; -0.648382, 0.089278,-0.876976;;, + 20;3; -0.648382, 0.089278,-0.876976;;, + 21;3; -0.648382, 0.089278,-0.876976;;, + 22;3; -0.648382, 0.089278,-0.876976;;, + 23;3; -0.648382, 0.089278,-0.876976;;, + 24;3; -0.648382, 0.089278,-0.876976;;, + 25;3; -0.648382, 0.089278,-0.876976;;, + 26;3; -0.648382, 0.089278,-0.876976;;, + 27;3; -0.648382, 0.089278,-0.876976;;, + 28;3; -0.648382, 0.089278,-0.876976;;, + 29;3; -0.648382, 0.089278,-0.876976;;, + 30;3; -0.648382, 0.089278,-0.876976;;, + 31;3; -0.648382, 0.089278,-0.876976;;, + 32;3; -0.648382, 0.089278,-0.876976;;, + 33;3; -0.648382, 0.089278,-0.876976;;, + 34;3; -0.648382, 0.089278,-0.876976;;, + 35;3; -0.648382, 0.089278,-0.876976;;, + 36;3; -0.648382, 0.089278,-0.876976;;, + 37;3; -0.648382, 0.089278,-0.876976;;, + 38;3; -0.648382, 0.089278,-0.876976;;, + 39;3; -0.648382, 0.089278,-0.876976;;, + 40;3; -0.648382, 0.089278,-0.876976;;, + 41;3; -0.648382, 0.089278,-0.876976;;, + 42;3; -0.648382, 0.089278,-0.876976;;, + 43;3; -0.648382, 0.089278,-0.876976;;, + 44;3; -0.648382, 0.089278,-0.876976;;, + 45;3; -0.648382, 0.089278,-0.876976;;, + 46;3; -0.648382, 0.089278,-0.876976;;, + 47;3; -0.648382, 0.089278,-0.876976;;, + 48;3; -0.648382, 0.089278,-0.876976;;, + 49;3; -0.648382, 0.089278,-0.876976;;, + 50;3; -0.648382, 0.089278,-0.876976;;, + 51;3; -0.648382, 0.089278,-0.876976;;, + 52;3; -0.648382, 0.089278,-0.876976;;, + 53;3; -0.648382, 0.089278,-0.876976;;, + 54;3; -0.648382, 0.089278,-0.876976;;, + 55;3; -0.648382, 0.089278,-0.876976;;, + 56;3; -0.648382, 0.089278,-0.876976;;, + 57;3; -0.648382, 0.089278,-0.876976;;, + 58;3; -0.648382, 0.089278,-0.876976;;, + 59;3; -0.648382, 0.089278,-0.876976;;, + 60;3; -0.648383, 0.089278,-0.876976;;, + 61;3; -0.648382, 0.089278,-0.876976;;, + 62;3; -0.648382, 0.089278,-0.876976;;, + 63;3; -0.648383, 0.089278,-0.876976;;, + 64;3; -0.648382, 0.089278,-0.876976;;, + 65;3; -0.648383, 0.089278,-0.876976;;, + 66;3; -0.648382, 0.089278,-0.876976;;, + 67;3; -0.648382, 0.089278,-0.876976;;, + 68;3; -0.648382, 0.089278,-0.876976;;, + 69;3; -0.648382, 0.089278,-0.876976;;, + 70;3; -0.648382, 0.089278,-0.876976;;, + 71;3; -0.648382, 0.089278,-0.876976;;, + 72;3; -0.648382, 0.089278,-0.876976;;, + 73;3; -0.648382, 0.089278,-0.876976;;, + 74;3; -0.648382, 0.089278,-0.876976;;, + 75;3; -0.648382, 0.089278,-0.876976;;, + 76;3; -0.648382, 0.089278,-0.876976;;, + 77;3; -0.648382, 0.089278,-0.876976;;, + 78;3; -0.648382, 0.089278,-0.876976;;, + 79;3; -0.648382, 0.089278,-0.876976;;, + 80;3; -0.648382, 0.089278,-0.876976;;, + 81;3; -0.648382, 0.089278,-0.876976;;, + 82;3; -0.648382, 0.089278,-0.876976;;, + 83;3; -0.648382, 0.089278,-0.876976;;, + 84;3; -0.648382, 0.089278,-0.876976;;, + 85;3; -0.648382, 0.089278,-0.876976;;, + 86;3; -0.648382, 0.089278,-0.876976;;, + 87;3; -0.648382, 0.089278,-0.876976;;, + 88;3; -0.648382, 0.089278,-0.876976;;, + 89;3; -0.648382, 0.089278,-0.876976;;, + 90;3; -0.648382, 0.089278,-0.876976;;, + 91;3; -0.648382, 0.089278,-0.876976;;, + 92;3; -0.648382, 0.089278,-0.876976;;, + 93;3; -0.648382, 0.089278,-0.876976;;, + 94;3; -0.648382, 0.089278,-0.876976;;, + 95;3; -0.648382, 0.089278,-0.876976;;, + 96;3; -0.648382, 0.089278,-0.876976;;, + 97;3; -0.648382, 0.089278,-0.876976;;, + 98;3; -0.648382, 0.089278,-0.876976;;, + 99;3; -0.648382, 0.089278,-0.876976;;, + 100;3; -0.648382, 0.089278,-0.876976;;, + 101;3; -0.648382, 0.089278,-0.876976;;; + } + AnimationKey { //Rotation + 0; + 102; + 0;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 1;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 2;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 3;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 4;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 5;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 6;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 7;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 8;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 9;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 10;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 11;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 12;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 13;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 14;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 15;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 16;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 17;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 18;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 19;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 20;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 21;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 22;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 23;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 24;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 25;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 26;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 27;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 28;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 29;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 30;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 31;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 32;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 33;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 34;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 35;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 36;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 37;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 38;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 39;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 40;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 41;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 42;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 43;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 44;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 45;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 46;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 47;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 48;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 49;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 50;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 51;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 52;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 53;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 54;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 55;4; -0.477401,-0.512019, 0.477401,-0.512019;;, + 56;4; -0.411680,-0.546952, 0.411680,-0.546952;;, + 57;4; -0.317264,-0.597112, 0.317264,-0.597112;;, + 58;4; -0.222860,-0.647261, 0.222860,-0.647261;;, + 59;4; -0.157160,-0.682173, 0.157160,-0.682173;;, + 60;4; -0.134571,-0.694183, 0.134571,-0.694183;;, + 61;4; -0.134909,-0.694142, 0.134908,-0.694142;;, + 62;4; -0.136630,-0.693635, 0.136630,-0.693635;;, + 63;4; -0.141087,-0.691891, 0.141087,-0.691891;;, + 64;4; -0.149660,-0.688050, 0.149660,-0.688050;;, + 65;4; -0.163093,-0.681551, 0.163093,-0.681550;;, + 66;4; -0.181171,-0.672376, 0.181170,-0.672376;;, + 67;4; -0.203049,-0.660915, 0.203049,-0.660915;;, + 68;4; -0.230682,-0.647108, 0.230682,-0.647108;;, + 69;4; -0.266530,-0.630412, 0.266530,-0.630412;;, + 70;4; -0.309286,-0.610872, 0.309285,-0.610872;;, + 71;4; -0.355862,-0.589024, 0.355861,-0.589024;;, + 72;4; -0.401798,-0.565913, 0.401798,-0.565913;;, + 73;4; -0.442733,-0.542775, 0.442733,-0.542775;;, + 74;4; -0.475813,-0.520613, 0.475813,-0.520613;;, + 75;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 76;4; -0.518892,-0.480580, 0.518891,-0.480580;;, + 77;4; -0.535261,-0.462672, 0.535261,-0.462672;;, + 78;4; -0.547833,-0.447889, 0.547833,-0.447889;;, + 79;4; -0.555908,-0.437603, 0.555908,-0.437603;;, + 80;4; -0.559914,-0.432060, 0.559914,-0.432060;;, + 81;4; -0.560986,-0.430459, 0.560986,-0.430459;;, + 82;4; -0.558979,-0.432466, 0.558979,-0.432466;;, + 83;4; -0.552923,-0.438522, 0.552923,-0.438522;;, + 84;4; -0.542936,-0.448509, 0.542936,-0.448509;;, + 85;4; -0.529457,-0.461988, 0.529456,-0.461988;;, + 86;4; -0.513315,-0.478130, 0.513315,-0.478130;;, + 87;4; -0.495722,-0.495722, 0.495722,-0.495722;;, + 88;4; -0.478130,-0.513315, 0.478130,-0.513315;;, + 89;4; -0.461988,-0.529457, 0.461988,-0.529457;;, + 90;4; -0.448509,-0.542936, 0.448509,-0.542936;;, + 91;4; -0.438522,-0.552923, 0.438522,-0.552923;;, + 92;4; -0.432466,-0.558979, 0.432466,-0.558979;;, + 93;4; -0.430459,-0.560986, 0.430459,-0.560986;;, + 94;4; -0.434755,-0.557219, 0.434755,-0.557219;;, + 95;4; -0.447255,-0.546256, 0.447255,-0.546256;;, + 96;4; -0.465226,-0.530496, 0.465226,-0.530496;;, + 97;4; -0.483199,-0.514735, 0.483198,-0.514735;;, + 98;4; -0.495703,-0.503769, 0.495703,-0.503769;;, + 99;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 100;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 101;4; -0.500000,-0.500000, 0.500000,-0.500000;;; + } + AnimationKey { //Scale + 1; + 102; + 0;3; 1.000000, 1.000000, 1.000000;;, + 1;3; 1.000000, 1.000000, 1.000000;;, + 2;3; 1.000000, 1.000000, 1.000000;;, + 3;3; 1.000000, 1.000000, 1.000000;;, + 4;3; 1.000000, 1.000000, 1.000000;;, + 5;3; 1.000000, 1.000000, 1.000000;;, + 6;3; 1.000000, 1.000000, 1.000000;;, + 7;3; 1.000000, 1.000000, 1.000000;;, + 8;3; 1.000000, 1.000000, 1.000000;;, + 9;3; 1.000000, 1.000000, 1.000000;;, + 10;3; 1.000000, 1.000000, 1.000000;;, + 11;3; 1.000000, 1.000000, 1.000000;;, + 12;3; 1.000000, 1.000000, 1.000000;;, + 13;3; 1.000000, 1.000000, 1.000000;;, + 14;3; 1.000000, 1.000000, 1.000000;;, + 15;3; 1.000000, 1.000000, 1.000000;;, + 16;3; 1.000000, 1.000000, 1.000000;;, + 17;3; 1.000000, 1.000000, 1.000000;;, + 18;3; 1.000000, 1.000000, 1.000000;;, + 19;3; 1.000000, 1.000000, 1.000000;;, + 20;3; 1.000000, 1.000000, 1.000000;;, + 21;3; 1.000000, 1.000000, 1.000000;;, + 22;3; 1.000000, 1.000000, 1.000000;;, + 23;3; 1.000000, 1.000000, 1.000000;;, + 24;3; 1.000000, 1.000000, 1.000000;;, + 25;3; 1.000000, 1.000000, 1.000000;;, + 26;3; 1.000000, 1.000000, 1.000000;;, + 27;3; 1.000000, 1.000000, 1.000000;;, + 28;3; 1.000000, 1.000000, 1.000000;;, + 29;3; 1.000000, 1.000000, 1.000000;;, + 30;3; 1.000000, 1.000000, 1.000000;;, + 31;3; 1.000000, 1.000000, 1.000000;;, + 32;3; 1.000000, 1.000000, 1.000000;;, + 33;3; 1.000000, 1.000000, 1.000000;;, + 34;3; 1.000000, 1.000000, 1.000000;;, + 35;3; 1.000000, 1.000000, 1.000000;;, + 36;3; 1.000000, 1.000000, 1.000000;;, + 37;3; 1.000000, 1.000000, 1.000000;;, + 38;3; 1.000000, 1.000000, 1.000000;;, + 39;3; 1.000000, 1.000000, 1.000000;;, + 40;3; 1.000000, 1.000000, 1.000000;;, + 41;3; 1.000000, 1.000000, 1.000000;;, + 42;3; 1.000000, 1.000000, 1.000000;;, + 43;3; 1.000000, 1.000000, 1.000000;;, + 44;3; 1.000000, 1.000000, 1.000000;;, + 45;3; 1.000000, 1.000000, 1.000000;;, + 46;3; 1.000000, 1.000000, 1.000000;;, + 47;3; 1.000000, 1.000000, 1.000000;;, + 48;3; 1.000000, 1.000000, 1.000000;;, + 49;3; 1.000000, 1.000000, 1.000000;;, + 50;3; 1.000000, 1.000000, 1.000000;;, + 51;3; 1.000000, 1.000000, 1.000000;;, + 52;3; 1.000000, 1.000000, 1.000000;;, + 53;3; 1.000000, 1.000000, 1.000000;;, + 54;3; 1.000000, 1.000000, 1.000000;;, + 55;3; 1.000000, 1.000000, 1.000000;;, + 56;3; 1.000000, 1.000000, 1.000000;;, + 57;3; 1.000000, 1.000000, 1.000000;;, + 58;3; 1.000000, 1.000000, 1.000000;;, + 59;3; 1.000000, 1.000000, 1.000000;;, + 60;3; 1.000000, 1.000000, 1.000000;;, + 61;3; 1.000000, 1.000000, 1.000000;;, + 62;3; 1.000000, 1.000000, 1.000000;;, + 63;3; 1.000000, 1.000000, 1.000000;;, + 64;3; 1.000000, 1.000000, 1.000000;;, + 65;3; 1.000000, 1.000000, 1.000000;;, + 66;3; 1.000000, 1.000000, 1.000000;;, + 67;3; 1.000000, 1.000000, 1.000000;;, + 68;3; 1.000000, 1.000000, 1.000000;;, + 69;3; 1.000000, 1.000000, 1.000000;;, + 70;3; 1.000000, 1.000000, 1.000000;;, + 71;3; 1.000000, 1.000000, 1.000000;;, + 72;3; 1.000000, 1.000000, 1.000000;;, + 73;3; 1.000000, 1.000000, 1.000000;;, + 74;3; 1.000000, 1.000000, 1.000000;;, + 75;3; 1.000000, 1.000000, 1.000000;;, + 76;3; 1.000000, 1.000000, 1.000000;;, + 77;3; 1.000000, 1.000000, 1.000000;;, + 78;3; 1.000000, 1.000000, 1.000000;;, + 79;3; 1.000000, 1.000000, 1.000000;;, + 80;3; 1.000000, 1.000000, 1.000000;;, + 81;3; 1.000000, 1.000000, 1.000000;;, + 82;3; 1.000000, 1.000000, 1.000000;;, + 83;3; 1.000000, 1.000000, 1.000000;;, + 84;3; 1.000000, 1.000000, 1.000000;;, + 85;3; 1.000000, 1.000000, 1.000000;;, + 86;3; 1.000000, 1.000000, 1.000000;;, + 87;3; 1.000000, 1.000000, 1.000000;;, + 88;3; 1.000000, 1.000000, 1.000000;;, + 89;3; 1.000000, 1.000000, 1.000000;;, + 90;3; 1.000000, 1.000000, 1.000000;;, + 91;3; 1.000000, 1.000000, 1.000000;;, + 92;3; 1.000000, 1.000000, 1.000000;;, + 93;3; 1.000000, 1.000000, 1.000000;;, + 94;3; 1.000000, 1.000000, 1.000000;;, + 95;3; 1.000000, 1.000000, 1.000000;;, + 96;3; 1.000000, 1.000000, 1.000000;;, + 97;3; 1.000000, 1.000000, 1.000000;;, + 98;3; 1.000000, 1.000000, 1.000000;;, + 99;3; 1.000000, 1.000000, 1.000000;;, + 100;3; 1.000000, 1.000000, 1.000000;;, + 101;3; 1.000000, 1.000000, 1.000000;;; + } + } + Animation { + {Armature_Bone_004} + AnimationKey { //Position + 2; + 102; + 0;3; -0.648382, 3.135167,-1.230253;;, + 1;3; -0.648382, 3.135167,-1.230253;;, + 2;3; -0.648382, 3.135167,-1.230253;;, + 3;3; -0.648382, 3.135167,-1.230253;;, + 4;3; -0.648382, 3.135167,-1.230253;;, + 5;3; -0.648382, 3.135167,-1.230253;;, + 6;3; -0.648382, 3.135167,-1.230253;;, + 7;3; -0.648382, 3.135167,-1.230253;;, + 8;3; -0.648382, 3.135167,-1.230253;;, + 9;3; -0.648382, 3.135167,-1.230253;;, + 10;3; -0.648382, 3.135167,-1.230253;;, + 11;3; -0.648382, 3.135167,-1.230253;;, + 12;3; -0.648382, 3.135167,-1.230253;;, + 13;3; -0.648382, 3.135167,-1.230253;;, + 14;3; -0.648382, 3.135167,-1.230253;;, + 15;3; -0.648382, 3.135167,-1.230253;;, + 16;3; -0.648382, 3.135167,-1.230253;;, + 17;3; -0.648382, 3.135167,-1.230253;;, + 18;3; -0.648382, 3.135167,-1.230253;;, + 19;3; -0.648382, 3.135167,-1.230253;;, + 20;3; -0.648382, 3.135167,-1.230253;;, + 21;3; -0.648382, 3.135167,-1.230253;;, + 22;3; -0.648382, 3.135167,-1.230253;;, + 23;3; -0.648382, 3.135167,-1.230253;;, + 24;3; -0.648382, 3.135167,-1.230253;;, + 25;3; -0.648382, 3.135167,-1.230253;;, + 26;3; -0.648382, 3.135167,-1.230253;;, + 27;3; -0.648382, 3.135167,-1.230253;;, + 28;3; -0.648382, 3.135167,-1.230253;;, + 29;3; -0.648382, 3.135167,-1.230253;;, + 30;3; -0.648382, 3.135167,-1.230253;;, + 31;3; -0.648382, 3.135167,-1.230253;;, + 32;3; -0.648382, 3.135167,-1.230253;;, + 33;3; -0.648382, 3.135167,-1.230253;;, + 34;3; -0.648382, 3.135167,-1.230253;;, + 35;3; -0.648382, 3.135167,-1.230253;;, + 36;3; -0.648382, 3.135167,-1.230253;;, + 37;3; -0.648382, 3.135167,-1.230253;;, + 38;3; -0.648382, 3.135167,-1.230253;;, + 39;3; -0.648382, 3.135167,-1.230253;;, + 40;3; -0.648382, 3.135167,-1.230253;;, + 41;3; -0.648382, 3.135167,-1.230253;;, + 42;3; -0.648382, 3.135167,-1.230253;;, + 43;3; -0.648382, 3.135167,-1.230253;;, + 44;3; -0.648382, 3.135167,-1.230253;;, + 45;3; -0.648382, 3.135167,-1.230253;;, + 46;3; -0.648382, 3.135167,-1.230253;;, + 47;3; -0.648382, 3.135167,-1.230253;;, + 48;3; -0.648382, 3.135167,-1.230253;;, + 49;3; -0.648382, 3.135167,-1.230253;;, + 50;3; -0.648382, 3.135167,-1.230253;;, + 51;3; -0.648382, 3.135167,-1.230253;;, + 52;3; -0.648382, 3.135167,-1.230253;;, + 53;3; -0.648382, 3.135167,-1.230253;;, + 54;3; -0.648382, 3.135167,-1.230253;;, + 55;3; -0.648382, 3.135167,-1.230253;;, + 56;3; -0.648382, 3.135167,-1.230253;;, + 57;3; -0.648382, 3.135167,-1.230253;;, + 58;3; -0.648382, 3.135167,-1.230253;;, + 59;3; -0.648382, 3.135166,-1.230253;;, + 60;3; -0.648383, 3.135167,-1.230253;;, + 61;3; -0.648382, 3.135167,-1.230253;;, + 62;3; -0.648382, 3.135167,-1.230253;;, + 63;3; -0.648383, 3.135167,-1.230253;;, + 64;3; -0.648382, 3.135166,-1.230253;;, + 65;3; -0.648383, 3.135167,-1.230253;;, + 66;3; -0.648382, 3.135167,-1.230253;;, + 67;3; -0.648382, 3.135166,-1.230252;;, + 68;3; -0.648382, 3.135166,-1.230253;;, + 69;3; -0.648382, 3.135167,-1.230252;;, + 70;3; -0.648382, 3.135167,-1.230253;;, + 71;3; -0.648382, 3.135167,-1.230253;;, + 72;3; -0.648382, 3.135167,-1.230253;;, + 73;3; -0.648382, 3.135167,-1.230253;;, + 74;3; -0.648382, 3.135167,-1.230253;;, + 75;3; -0.648382, 3.135167,-1.230253;;, + 76;3; -0.648382, 3.135167,-1.230253;;, + 77;3; -0.648382, 3.135167,-1.230253;;, + 78;3; -0.648382, 3.135167,-1.230253;;, + 79;3; -0.648382, 3.135167,-1.230253;;, + 80;3; -0.648382, 3.135167,-1.230253;;, + 81;3; -0.648382, 3.135167,-1.230253;;, + 82;3; -0.648382, 3.135167,-1.230253;;, + 83;3; -0.648382, 3.135167,-1.230253;;, + 84;3; -0.648382, 3.135167,-1.230253;;, + 85;3; -0.648382, 3.135167,-1.230253;;, + 86;3; -0.648382, 3.135167,-1.230253;;, + 87;3; -0.648382, 3.135167,-1.230253;;, + 88;3; -0.648382, 3.135167,-1.230253;;, + 89;3; -0.648382, 3.135167,-1.230253;;, + 90;3; -0.648382, 3.135167,-1.230253;;, + 91;3; -0.648382, 3.135167,-1.230253;;, + 92;3; -0.648382, 3.135167,-1.230253;;, + 93;3; -0.648382, 3.135167,-1.230253;;, + 94;3; -0.648382, 3.135167,-1.230253;;, + 95;3; -0.648382, 3.135167,-1.230253;;, + 96;3; -0.648382, 3.135167,-1.230253;;, + 97;3; -0.648382, 3.135167,-1.230253;;, + 98;3; -0.648382, 3.135167,-1.230253;;, + 99;3; -0.648382, 3.135167,-1.230253;;, + 100;3; -0.648382, 3.135167,-1.230253;;, + 101;3; -0.648382, 3.135167,-1.230253;;; + } + AnimationKey { //Rotation + 0; + 102; + 0;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 1;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 2;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 3;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 4;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 5;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 6;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 7;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 8;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 9;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 10;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 11;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 12;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 13;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 14;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 15;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 16;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 17;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 18;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 19;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 20;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 21;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 22;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 23;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 24;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 25;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 26;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 27;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 28;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 29;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 30;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 31;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 32;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 33;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 34;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 35;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 36;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 37;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 38;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 39;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 40;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 41;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 42;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 43;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 44;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 45;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 46;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 47;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 48;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 49;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 50;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 51;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 52;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 53;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 54;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 55;4; -0.495817,-0.503681, 0.495817,-0.503681;;, + 56;4; -0.483644,-0.514391, 0.483644,-0.514391;;, + 57;4; -0.466144,-0.529788, 0.466144,-0.529788;;, + 58;4; -0.448643,-0.545186, 0.448643,-0.545186;;, + 59;4; -0.436467,-0.555900, 0.436467,-0.555900;;, + 60;4; -0.432283,-0.559582, 0.432283,-0.559582;;, + 61;4; -0.436059,-0.557054, 0.436059,-0.557054;;, + 62;4; -0.464513,-0.531274, 0.464513,-0.531274;;, + 63;4; -0.532433,-0.464604, 0.532433,-0.464604;;, + 64;4; -0.651826,-0.273976, 0.651826,-0.273976;;, + 65;4; -0.646495,-0.283429, 0.646495,-0.283429;;, + 66;4; -0.635695,-0.302251, 0.635695,-0.302251;;, + 67;4; -0.622440,-0.324854, 0.622440,-0.324854;;, + 68;4; -0.607847,-0.349126, 0.607847,-0.349126;;, + 69;4; -0.592496,-0.373935, 0.592496,-0.373935;;, + 70;4; -0.576750,-0.398543, 0.576750,-0.398543;;, + 71;4; -0.560868,-0.422379, 0.560868,-0.422379;;, + 72;4; -0.545061,-0.444948, 0.545061,-0.444948;;, + 73;4; -0.529519,-0.465765, 0.529519,-0.465765;;, + 74;4; -0.514431,-0.484314, 0.514431,-0.484314;;, + 75;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 76;4; -0.484961,-0.514511, 0.484961,-0.514511;;, + 77;4; -0.468617,-0.529316, 0.468617,-0.529316;;, + 78;4; -0.452909,-0.542813, 0.452909,-0.542813;;, + 79;4; -0.440398,-0.553114, 0.440397,-0.553114;;, + 80;4; -0.432840,-0.559133, 0.432840,-0.559133;;, + 81;4; -0.430459,-0.560986, 0.430459,-0.560986;;, + 82;4; -0.431600,-0.560142, 0.431600,-0.560142;;, + 83;4; -0.435279,-0.557349, 0.435279,-0.557349;;, + 84;4; -0.441746,-0.552277, 0.441746,-0.552277;;, + 85;4; -0.450899,-0.544824, 0.450898,-0.544824;;, + 86;4; -0.462164,-0.535258, 0.462164,-0.535258;;, + 87;4; -0.474650,-0.524167, 0.474650,-0.524167;;, + 88;4; -0.487474,-0.512229, 0.487474,-0.512229;;, + 89;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 90;4; -0.516302,-0.482515, 0.516302,-0.482515;;, + 91;4; -0.537661,-0.458062, 0.537660,-0.458062;;, + 92;4; -0.554951,-0.437677, 0.554951,-0.437677;;, + 93;4; -0.560986,-0.430459, 0.560986,-0.430459;;, + 94;4; -0.557219,-0.434755, 0.557219,-0.434755;;, + 95;4; -0.546256,-0.447256, 0.546256,-0.447256;;, + 96;4; -0.530496,-0.465226, 0.530496,-0.465226;;, + 97;4; -0.514735,-0.483199, 0.514735,-0.483199;;, + 98;4; -0.503769,-0.495703, 0.503769,-0.495703;;, + 99;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 100;4; -0.500000,-0.500000, 0.500000,-0.500000;;, + 101;4; -0.500000,-0.500000, 0.500000,-0.500000;;; + } + AnimationKey { //Scale + 1; + 102; + 0;3; 1.000000, 1.000000, 1.000000;;, + 1;3; 1.000000, 1.000000, 1.000000;;, + 2;3; 1.000000, 1.000000, 1.000000;;, + 3;3; 1.000000, 1.000000, 1.000000;;, + 4;3; 1.000000, 1.000000, 1.000000;;, + 5;3; 1.000000, 1.000000, 1.000000;;, + 6;3; 1.000000, 1.000000, 1.000000;;, + 7;3; 1.000000, 1.000000, 1.000000;;, + 8;3; 1.000000, 1.000000, 1.000000;;, + 9;3; 1.000000, 1.000000, 1.000000;;, + 10;3; 1.000000, 1.000000, 1.000000;;, + 11;3; 1.000000, 1.000000, 1.000000;;, + 12;3; 1.000000, 1.000000, 1.000000;;, + 13;3; 1.000000, 1.000000, 1.000000;;, + 14;3; 1.000000, 1.000000, 1.000000;;, + 15;3; 1.000000, 1.000000, 1.000000;;, + 16;3; 1.000000, 1.000000, 1.000000;;, + 17;3; 1.000000, 1.000000, 1.000000;;, + 18;3; 1.000000, 1.000000, 1.000000;;, + 19;3; 1.000000, 1.000000, 1.000000;;, + 20;3; 1.000000, 1.000000, 1.000000;;, + 21;3; 1.000000, 1.000000, 1.000000;;, + 22;3; 1.000000, 1.000000, 1.000000;;, + 23;3; 1.000000, 1.000000, 1.000000;;, + 24;3; 1.000000, 1.000000, 1.000000;;, + 25;3; 1.000000, 1.000000, 1.000000;;, + 26;3; 1.000000, 1.000000, 1.000000;;, + 27;3; 1.000000, 1.000000, 1.000000;;, + 28;3; 1.000000, 1.000000, 1.000000;;, + 29;3; 1.000000, 1.000000, 1.000000;;, + 30;3; 1.000000, 1.000000, 1.000000;;, + 31;3; 1.000000, 1.000000, 1.000000;;, + 32;3; 1.000000, 1.000000, 1.000000;;, + 33;3; 1.000000, 1.000000, 1.000000;;, + 34;3; 1.000000, 1.000000, 1.000000;;, + 35;3; 1.000000, 1.000000, 1.000000;;, + 36;3; 1.000000, 1.000000, 1.000000;;, + 37;3; 1.000000, 1.000000, 1.000000;;, + 38;3; 1.000000, 1.000000, 1.000000;;, + 39;3; 1.000000, 1.000000, 1.000000;;, + 40;3; 1.000000, 1.000000, 1.000000;;, + 41;3; 1.000000, 1.000000, 1.000000;;, + 42;3; 1.000000, 1.000000, 1.000000;;, + 43;3; 1.000000, 1.000000, 1.000000;;, + 44;3; 1.000000, 1.000000, 1.000000;;, + 45;3; 1.000000, 1.000000, 1.000000;;, + 46;3; 1.000000, 1.000000, 1.000000;;, + 47;3; 1.000000, 1.000000, 1.000000;;, + 48;3; 1.000000, 1.000000, 1.000000;;, + 49;3; 1.000000, 1.000000, 1.000000;;, + 50;3; 1.000000, 1.000000, 1.000000;;, + 51;3; 1.000000, 1.000000, 1.000000;;, + 52;3; 1.000000, 1.000000, 1.000000;;, + 53;3; 1.000000, 1.000000, 1.000000;;, + 54;3; 1.000000, 1.000000, 1.000000;;, + 55;3; 1.000000, 1.000000, 1.000000;;, + 56;3; 1.000000, 1.000000, 1.000000;;, + 57;3; 1.000000, 1.000000, 1.000000;;, + 58;3; 1.000000, 1.000000, 1.000000;;, + 59;3; 1.000000, 1.000000, 1.000000;;, + 60;3; 1.000000, 1.000000, 1.000000;;, + 61;3; 1.000000, 1.000000, 1.000000;;, + 62;3; 1.000000, 1.000000, 1.000000;;, + 63;3; 1.000000, 1.000000, 1.000000;;, + 64;3; 1.000000, 1.000000, 1.000000;;, + 65;3; 1.000000, 1.000000, 1.000000;;, + 66;3; 1.000000, 1.000000, 1.000000;;, + 67;3; 1.000000, 1.000000, 1.000000;;, + 68;3; 1.000000, 1.000000, 1.000000;;, + 69;3; 1.000000, 1.000000, 1.000000;;, + 70;3; 1.000000, 1.000000, 1.000000;;, + 71;3; 1.000000, 1.000000, 1.000000;;, + 72;3; 1.000000, 1.000000, 1.000000;;, + 73;3; 1.000000, 1.000000, 1.000000;;, + 74;3; 1.000000, 1.000000, 1.000000;;, + 75;3; 1.000000, 1.000000, 1.000000;;, + 76;3; 1.000000, 1.000000, 1.000000;;, + 77;3; 1.000000, 1.000000, 1.000000;;, + 78;3; 1.000000, 1.000000, 1.000000;;, + 79;3; 1.000000, 1.000000, 1.000000;;, + 80;3; 1.000000, 1.000000, 1.000000;;, + 81;3; 1.000000, 1.000000, 1.000000;;, + 82;3; 1.000000, 1.000000, 1.000000;;, + 83;3; 1.000000, 1.000000, 1.000000;;, + 84;3; 1.000000, 1.000000, 1.000000;;, + 85;3; 1.000000, 1.000000, 1.000000;;, + 86;3; 1.000000, 1.000000, 1.000000;;, + 87;3; 1.000000, 1.000000, 1.000000;;, + 88;3; 1.000000, 1.000000, 1.000000;;, + 89;3; 1.000000, 1.000000, 1.000000;;, + 90;3; 1.000000, 1.000000, 1.000000;;, + 91;3; 1.000000, 1.000000, 1.000000;;, + 92;3; 1.000000, 1.000000, 1.000000;;, + 93;3; 1.000000, 1.000000, 1.000000;;, + 94;3; 1.000000, 1.000000, 1.000000;;, + 95;3; 1.000000, 1.000000, 1.000000;;, + 96;3; 1.000000, 1.000000, 1.000000;;, + 97;3; 1.000000, 1.000000, 1.000000;;, + 98;3; 1.000000, 1.000000, 1.000000;;, + 99;3; 1.000000, 1.000000, 1.000000;;, + 100;3; 1.000000, 1.000000, 1.000000;;, + 101;3; 1.000000, 1.000000, 1.000000;;; + } + } + Animation { + {Armature_Bone_005} + AnimationKey { //Position + 2; + 102; + 0;3; 0.000000,-0.293364, 0.572615;;, + 1;3; 0.000000,-0.293364, 0.572615;;, + 2;3; 0.000000,-0.293364, 0.572615;;, + 3;3; 0.000000,-0.293364, 0.572615;;, + 4;3; 0.000000,-0.293364, 0.572615;;, + 5;3; 0.000000,-0.293364, 0.572615;;, + 6;3; 0.000000,-0.293364, 0.572615;;, + 7;3; 0.000000,-0.293364, 0.572615;;, + 8;3; 0.000000,-0.293364, 0.572615;;, + 9;3; 0.000000,-0.293364, 0.572615;;, + 10;3; 0.000000,-0.293364, 0.572615;;, + 11;3; 0.000000,-0.293364, 0.572615;;, + 12;3; 0.000000,-0.293364, 0.572615;;, + 13;3; 0.000000,-0.293364, 0.572615;;, + 14;3; 0.000000,-0.293364, 0.572615;;, + 15;3; 0.000000,-0.293364, 0.572615;;, + 16;3; 0.000000,-0.293364, 0.572615;;, + 17;3; 0.000000,-0.293364, 0.572615;;, + 18;3; 0.000000,-0.293364, 0.572615;;, + 19;3; 0.000000,-0.293364, 0.572615;;, + 20;3; 0.000000,-0.293364, 0.572615;;, + 21;3; 0.000000,-0.293364, 0.572615;;, + 22;3; 0.000000,-0.293364, 0.572615;;, + 23;3; 0.000000,-0.293364, 0.572615;;, + 24;3; 0.000000,-0.293364, 0.572615;;, + 25;3; 0.000000,-0.293364, 0.572615;;, + 26;3; 0.000000,-0.293364, 0.572615;;, + 27;3; 0.000000,-0.293364, 0.572615;;, + 28;3; 0.000000,-0.293364, 0.572615;;, + 29;3; 0.000000,-0.293364, 0.572615;;, + 30;3; 0.000000,-0.293364, 0.572615;;, + 31;3; 0.000000,-0.293364, 0.572615;;, + 32;3; 0.000000,-0.293364, 0.572615;;, + 33;3; 0.000000,-0.293364, 0.572615;;, + 34;3; 0.000000,-0.293364, 0.572615;;, + 35;3; 0.000000,-0.293364, 0.572615;;, + 36;3; 0.000000,-0.293364, 0.572615;;, + 37;3; 0.000000,-0.293364, 0.572615;;, + 38;3; 0.000000,-0.293364, 0.572615;;, + 39;3; 0.000000,-0.293364, 0.572615;;, + 40;3; 0.000000,-0.293364, 0.572615;;, + 41;3; 0.000000,-0.293364, 0.572615;;, + 42;3; 0.000000,-0.293364, 0.572615;;, + 43;3; 0.000000,-0.293364, 0.572615;;, + 44;3; 0.000000,-0.293364, 0.572615;;, + 45;3; 0.000000,-0.293364, 0.572615;;, + 46;3; 0.000000,-0.293364, 0.572615;;, + 47;3; 0.000000,-0.293364, 0.572615;;, + 48;3; 0.000000,-0.293364, 0.572615;;, + 49;3; 0.000000,-0.293364, 0.572615;;, + 50;3; 0.000000,-0.293364, 0.572615;;, + 51;3; 0.000000,-0.293364, 0.572615;;, + 52;3; 0.000000,-0.293364, 0.572615;;, + 53;3; 0.000000,-0.293364, 0.572615;;, + 54;3; 0.000000,-0.293364, 0.572615;;, + 55;3; 0.000000,-0.293364, 0.572615;;, + 56;3; 0.000000,-0.293364, 0.572615;;, + 57;3; 0.000000,-0.293364, 0.572615;;, + 58;3; 0.000000,-0.293364, 0.572615;;, + 59;3; 0.000000,-0.293364, 0.572615;;, + 60;3; -0.000000,-0.293364, 0.572615;;, + 61;3; 0.000000,-0.293364, 0.572615;;, + 62;3; 0.000000,-0.293364, 0.572615;;, + 63;3; -0.000000,-0.293364, 0.572615;;, + 64;3; 0.000000,-0.293364, 0.572615;;, + 65;3; -0.000000,-0.293364, 0.572615;;, + 66;3; 0.000000,-0.293364, 0.572615;;, + 67;3; 0.000000,-0.293364, 0.572615;;, + 68;3; 0.000000,-0.293364, 0.572615;;, + 69;3; 0.000000,-0.293364, 0.572615;;, + 70;3; 0.000000,-0.293364, 0.572615;;, + 71;3; 0.000000,-0.293364, 0.572615;;, + 72;3; 0.000000,-0.293364, 0.572615;;, + 73;3; 0.000000,-0.293364, 0.572615;;, + 74;3; 0.000000,-0.293364, 0.572615;;, + 75;3; 0.000000,-0.293364, 0.572615;;, + 76;3; 0.000000,-0.293364, 0.572615;;, + 77;3; 0.000000,-0.293364, 0.572615;;, + 78;3; 0.000000,-0.293364, 0.572615;;, + 79;3; 0.000000,-0.293364, 0.572615;;, + 80;3; 0.000000,-0.293364, 0.572615;;, + 81;3; 0.000000,-0.293364, 0.572615;;, + 82;3; 0.000000,-0.293364, 0.572615;;, + 83;3; 0.000000,-0.293364, 0.572615;;, + 84;3; 0.000000,-0.293364, 0.572615;;, + 85;3; 0.000000,-0.293364, 0.572615;;, + 86;3; 0.000000,-0.293364, 0.572615;;, + 87;3; 0.000000,-0.293364, 0.572615;;, + 88;3; 0.000000,-0.293364, 0.572615;;, + 89;3; 0.000000,-0.293364, 0.572615;;, + 90;3; 0.000000,-0.293364, 0.572615;;, + 91;3; 0.000000,-0.293364, 0.572615;;, + 92;3; 0.000000,-0.293364, 0.572615;;, + 93;3; 0.000000,-0.293364, 0.572615;;, + 94;3; 0.000000,-0.293364, 0.572615;;, + 95;3; 0.000000,-0.293364, 0.572615;;, + 96;3; 0.000000,-0.293364, 0.572615;;, + 97;3; 0.000000,-0.293364, 0.572615;;, + 98;3; 0.000000,-0.293364, 0.572615;;, + 99;3; 0.000000,-0.293364, 0.572615;;, + 100;3; 0.000000,-0.293364, 0.572615;;, + 101;3; 0.000000,-0.293364, 0.572615;;; + } + AnimationKey { //Rotation + 0; + 102; + 0;4; -0.590015,-0.807393,-0.000000, 0.000000;;, + 1;4; -0.590015,-0.807393,-0.000000, 0.000000;;, + 2;4; -0.590015,-0.807393,-0.000000, 0.000000;;, + 3;4; -0.590015,-0.807393,-0.000000, 0.000000;;, + 4;4; -0.590015,-0.807393,-0.000000, 0.000000;;, + 5;4; -0.590015,-0.807393,-0.000000, 0.000000;;, + 6;4; -0.590015,-0.807393,-0.000000, 0.000000;;, + 7;4; -0.590015,-0.807393,-0.000000, 0.000000;;, + 8;4; -0.590015,-0.807393,-0.000000, 0.000000;;, + 9;4; -0.590015,-0.807393,-0.000000, 0.000000;;, + 10;4; -0.321913,-0.818353, 0.030682,-0.007273;;, + 11;4; 0.245514,-0.839638, 0.096329,-0.022833;;, + 12;4; 0.510918,-0.849662, 0.127007,-0.030106;;, + 13;4; 0.443607,-0.845750, 0.115337,-0.036032;;, + 14;4; 0.247971,-0.834801, 0.081065,-0.052860;;, + 15;4; -0.033265,-0.819930, 0.030996,-0.075954;;, + 16;4; -0.315467,-0.806381,-0.020630,-0.096919;;, + 17;4; -0.513776,-0.799088,-0.059179,-0.107893;;, + 18;4; -0.584967,-0.800485,-0.077013,-0.105386;;, + 19;4; -0.588429,-0.805222,-0.061963,-0.075073;;, + 20;4; -0.589850,-0.807167,-0.020278,-0.023175;;, + 21;4; -0.590015,-0.807393,-0.000000, 0.000000;;, + 22;4; -0.590015,-0.807393,-0.000000, 0.000000;;, + 23;4; -0.590015,-0.807393,-0.000000, 0.000000;;, + 24;4; -0.590015,-0.807393,-0.000000, 0.000000;;, + 25;4; -0.590015,-0.807393,-0.000000, 0.000000;;, + 26;4; -0.590015,-0.807393,-0.000000, 0.000000;;, + 27;4; -0.590015,-0.807393,-0.000000, 0.000000;;, + 28;4; -0.590015,-0.807393,-0.000000, 0.000000;;, + 29;4; -0.590015,-0.807393,-0.000000, 0.000000;;, + 30;4; -0.590015,-0.807393,-0.000000, 0.000000;;, + 31;4; -0.588795,-0.805724, 0.018608, 0.025460;;, + 32;4; -0.586186,-0.802154, 0.058412, 0.079932;;, + 33;4; -0.584967,-0.800485, 0.077012, 0.105386;;, + 34;4; -0.584967,-0.800485, 0.067498, 0.092366;;, + 35;4; -0.584967,-0.800485, 0.039807, 0.054473;;, + 36;4; -0.584967,-0.800485,-0.000000, 0.000000;;, + 37;4; -0.584967,-0.800485,-0.039807,-0.054473;;, + 38;4; -0.584967,-0.800485,-0.067498,-0.092366;;, + 39;4; -0.584967,-0.800485,-0.077013,-0.105386;;, + 40;4; -0.586186,-0.802154,-0.058412,-0.079931;;, + 41;4; -0.588795,-0.805724,-0.018608,-0.025460;;, + 42;4; -0.590015,-0.807393,-0.000000, 0.000000;;, + 43;4; -0.590012,-0.807395,-0.000000, 0.000000;;, + 44;4; -0.589991,-0.807410,-0.000000, 0.000000;;, + 45;4; -0.589928,-0.807455,-0.000000, 0.000000;;, + 46;4; -0.589793,-0.807553,-0.000000, 0.000000;;, + 47;4; -0.589550,-0.807729,-0.000000, 0.000000;;, + 48;4; -0.589168,-0.808006,-0.000000, 0.000000;;, + 49;4; -0.588617,-0.808405,-0.000000, 0.000000;;, + 50;4; -0.587883,-0.808937,-0.000000, 0.000000;;, + 51;4; -0.586964,-0.809602,-0.000000, 0.000000;;, + 52;4; -0.585870,-0.810395,-0.000000, 0.000000;;, + 53;4; -0.584619,-0.811301,-0.000000, 0.000000;;, + 54;4; -0.583231,-0.812307,-0.000000, 0.000000;;, + 55;4; -0.547806,-0.827844,-0.000000, 0.000000;;, + 56;4; -0.446884,-0.869926,-0.000000, 0.000000;;, + 57;4; -0.300759,-0.927091,-0.000000, 0.000000;;, + 58;4; -0.151189,-0.978810,-0.000000, 0.000000;;, + 59;4; -0.040782,-1.005941,-0.000000, 0.000000;;, + 60;4; 0.008341,-0.999960, 0.000000, 0.000000;;, + 61;4; 0.025288,-0.975124, 0.009965,-0.007897;;, + 62;4; 0.041352,-0.946265, 0.039445,-0.031257;;, + 63;4; 0.053388,-0.914238, 0.084356,-0.066842;;, + 64;4; 0.057660,-0.880997, 0.135292,-0.107199;;, + 65;4; 0.051462,-0.849034, 0.180198,-0.142778;;, + 66;4; 0.034305,-0.820283, 0.209671,-0.166130;;, + 67;4; 0.007497,-0.795576, 0.219634,-0.174023;;, + 68;4; -0.038853,-0.777269, 0.212532,-0.168695;;, + 69;4; -0.114988,-0.768082, 0.191219,-0.152636;;, + 70;4; -0.215320,-0.767884, 0.157391,-0.126978;;, + 71;4; -0.327538,-0.774952, 0.115663,-0.095011;;, + 72;4; -0.434408,-0.785934, 0.073073,-0.061864;;, + 73;4; -0.519507,-0.796884, 0.036789,-0.032846;;, + 74;4; -0.572492,-0.804629, 0.011745,-0.011682;;, + 75;4; -0.590015,-0.807393,-0.000000, 0.000000;;, + 76;4; -0.589950,-0.807305,-0.001445, 0.008481;;, + 77;4; -0.589759,-0.807042, 0.004104, 0.019813;;, + 78;4; -0.589472,-0.806650, 0.014851, 0.032316;;, + 79;4; -0.589163,-0.806228, 0.026734, 0.043262;;, + 80;4; -0.588911,-0.805883, 0.035409, 0.050319;;, + 81;4; -0.588759,-0.805675, 0.038466, 0.052638;;, + 82;4; -0.588667,-0.805548, 0.037185, 0.050885;;, + 83;4; -0.588583,-0.805434, 0.033318, 0.045594;;, + 84;4; -0.588510,-0.805334, 0.026942, 0.036869;;, + 85;4; -0.588449,-0.805250, 0.018336, 0.025092;;, + 86;4; -0.588400,-0.805183, 0.008031, 0.010990;;, + 87;4; -0.588363,-0.805132,-0.003201,-0.004381;;, + 88;4; -0.588337,-0.805097,-0.014434,-0.019751;;, + 89;4; -0.588321,-0.805075,-0.024739,-0.033853;;, + 90;4; -0.588312,-0.805063,-0.033345,-0.045630;;, + 91;4; -0.588308,-0.805057,-0.039721,-0.054355;;, + 92;4; -0.588306,-0.805055,-0.043588,-0.059647;;, + 93;4; -0.588306,-0.805055,-0.044869,-0.061400;;, + 94;4; -0.588412,-0.805199,-0.042097,-0.057607;;, + 95;4; -0.588719,-0.805619,-0.034031,-0.046569;;, + 96;4; -0.589160,-0.806224,-0.022435,-0.030701;;, + 97;4; -0.589602,-0.806828,-0.010839,-0.014832;;, + 98;4; -0.589909,-0.807248,-0.002772,-0.003793;;, + 99;4; -0.590015,-0.807393,-0.000000, 0.000000;;, + 100;4; -0.590015,-0.807393,-0.000000, 0.000000;;, + 101;4; -0.590015,-0.807393,-0.000000, 0.000000;;; + } + AnimationKey { //Scale + 1; + 102; + 0;3; 1.000000, 1.000000, 1.000000;;, + 1;3; 1.000000, 1.000000, 1.000000;;, + 2;3; 1.000000, 1.000000, 1.000000;;, + 3;3; 1.000000, 1.000000, 1.000000;;, + 4;3; 1.000000, 1.000000, 1.000000;;, + 5;3; 1.000000, 1.000000, 1.000000;;, + 6;3; 1.000000, 1.000000, 1.000000;;, + 7;3; 1.000000, 1.000000, 1.000000;;, + 8;3; 1.000000, 1.000000, 1.000000;;, + 9;3; 1.000000, 1.000000, 1.000000;;, + 10;3; 1.000000, 1.000000, 1.000000;;, + 11;3; 1.000000, 1.000000, 1.000000;;, + 12;3; 1.000000, 1.000000, 1.000000;;, + 13;3; 1.000000, 1.000000, 1.000000;;, + 14;3; 1.000000, 1.000000, 1.000000;;, + 15;3; 1.000000, 1.000000, 1.000000;;, + 16;3; 1.000000, 1.000000, 1.000000;;, + 17;3; 1.000000, 1.000000, 1.000000;;, + 18;3; 1.000000, 1.000000, 1.000000;;, + 19;3; 1.000000, 1.000000, 1.000000;;, + 20;3; 1.000000, 1.000000, 1.000000;;, + 21;3; 1.000000, 1.000000, 1.000000;;, + 22;3; 1.000000, 1.000000, 1.000000;;, + 23;3; 1.000000, 1.000000, 1.000000;;, + 24;3; 1.000000, 1.000000, 1.000000;;, + 25;3; 1.000000, 1.000000, 1.000000;;, + 26;3; 1.000000, 1.000000, 1.000000;;, + 27;3; 1.000000, 1.000000, 1.000000;;, + 28;3; 1.000000, 1.000000, 1.000000;;, + 29;3; 1.000000, 1.000000, 1.000000;;, + 30;3; 1.000000, 1.000000, 1.000000;;, + 31;3; 1.000000, 1.000000, 1.000000;;, + 32;3; 1.000000, 1.000000, 1.000000;;, + 33;3; 1.000000, 1.000000, 1.000000;;, + 34;3; 1.000000, 1.000000, 1.000000;;, + 35;3; 1.000000, 1.000000, 1.000000;;, + 36;3; 1.000000, 1.000000, 1.000000;;, + 37;3; 1.000000, 1.000000, 1.000000;;, + 38;3; 1.000000, 1.000000, 1.000000;;, + 39;3; 1.000000, 1.000000, 1.000000;;, + 40;3; 1.000000, 1.000000, 1.000000;;, + 41;3; 1.000000, 1.000000, 1.000000;;, + 42;3; 1.000000, 1.000000, 1.000000;;, + 43;3; 1.000000, 1.000000, 1.000000;;, + 44;3; 1.000000, 1.000000, 1.000000;;, + 45;3; 1.000000, 1.000000, 1.000000;;, + 46;3; 1.000000, 1.000000, 1.000000;;, + 47;3; 1.000000, 1.000000, 1.000000;;, + 48;3; 1.000000, 1.000000, 1.000000;;, + 49;3; 1.000000, 1.000000, 1.000000;;, + 50;3; 1.000000, 1.000000, 1.000000;;, + 51;3; 1.000000, 1.000000, 1.000000;;, + 52;3; 1.000000, 1.000000, 1.000000;;, + 53;3; 1.000000, 1.000000, 1.000000;;, + 54;3; 1.000000, 1.000000, 1.000000;;, + 55;3; 1.000000, 1.000000, 1.000000;;, + 56;3; 1.000000, 1.000000, 1.000000;;, + 57;3; 1.000000, 1.000000, 1.000000;;, + 58;3; 1.000000, 1.000000, 1.000000;;, + 59;3; 1.000000, 1.000000, 1.000000;;, + 60;3; 1.000000, 1.000000, 1.000000;;, + 61;3; 1.000000, 1.000000, 1.000000;;, + 62;3; 1.000000, 1.000000, 1.000000;;, + 63;3; 1.000000, 1.000000, 1.000000;;, + 64;3; 1.000000, 1.000000, 1.000000;;, + 65;3; 1.000000, 1.000000, 1.000000;;, + 66;3; 1.000000, 1.000000, 1.000000;;, + 67;3; 1.000000, 1.000000, 1.000000;;, + 68;3; 1.000000, 1.000000, 1.000000;;, + 69;3; 1.000000, 1.000000, 1.000000;;, + 70;3; 1.000000, 1.000000, 1.000000;;, + 71;3; 1.000000, 1.000000, 1.000000;;, + 72;3; 1.000000, 1.000000, 1.000000;;, + 73;3; 1.000000, 1.000000, 1.000000;;, + 74;3; 1.000000, 1.000000, 1.000000;;, + 75;3; 1.000000, 1.000000, 1.000000;;, + 76;3; 1.000000, 1.000000, 1.000000;;, + 77;3; 1.000000, 1.000000, 1.000000;;, + 78;3; 1.000000, 1.000000, 1.000000;;, + 79;3; 1.000000, 1.000000, 1.000000;;, + 80;3; 1.000000, 1.000000, 1.000000;;, + 81;3; 1.000000, 1.000000, 1.000000;;, + 82;3; 1.000000, 1.000000, 1.000000;;, + 83;3; 1.000000, 1.000000, 1.000000;;, + 84;3; 1.000000, 1.000000, 1.000000;;, + 85;3; 1.000000, 1.000000, 1.000000;;, + 86;3; 1.000000, 1.000000, 1.000000;;, + 87;3; 1.000000, 1.000000, 1.000000;;, + 88;3; 1.000000, 1.000000, 1.000000;;, + 89;3; 1.000000, 1.000000, 1.000000;;, + 90;3; 1.000000, 1.000000, 1.000000;;, + 91;3; 1.000000, 1.000000, 1.000000;;, + 92;3; 1.000000, 1.000000, 1.000000;;, + 93;3; 1.000000, 1.000000, 1.000000;;, + 94;3; 1.000000, 1.000000, 1.000000;;, + 95;3; 1.000000, 1.000000, 1.000000;;, + 96;3; 1.000000, 1.000000, 1.000000;;, + 97;3; 1.000000, 1.000000, 1.000000;;, + 98;3; 1.000000, 1.000000, 1.000000;;, + 99;3; 1.000000, 1.000000, 1.000000;;, + 100;3; 1.000000, 1.000000, 1.000000;;, + 101;3; 1.000000, 1.000000, 1.000000;;; + } + } + Animation { + {Armature_Bone_006} + AnimationKey { //Position + 2; + 102; + 0;3; 0.000000, 3.228616, 0.252948;;, + 1;3; 0.000000, 3.228616, 0.252948;;, + 2;3; 0.000000, 3.228616, 0.252948;;, + 3;3; 0.000000, 3.228616, 0.252948;;, + 4;3; 0.000000, 3.228616, 0.252948;;, + 5;3; 0.000000, 3.228616, 0.252948;;, + 6;3; 0.000000, 3.228616, 0.252948;;, + 7;3; 0.000000, 3.228616, 0.252948;;, + 8;3; 0.000000, 3.228616, 0.252948;;, + 9;3; 0.000000, 3.228616, 0.252948;;, + 10;3; 0.000000, 3.228616, 0.252948;;, + 11;3; 0.000000, 3.228616, 0.252948;;, + 12;3; 0.000000, 3.228616, 0.252948;;, + 13;3; 0.000000, 3.228616, 0.252948;;, + 14;3; 0.000000, 3.228616, 0.252948;;, + 15;3; 0.000000, 3.228616, 0.252948;;, + 16;3; 0.000000, 3.228616, 0.252948;;, + 17;3; 0.000000, 3.228616, 0.252948;;, + 18;3; 0.000000, 3.228616, 0.252948;;, + 19;3; 0.000000, 3.228616, 0.252948;;, + 20;3; 0.000000, 3.228616, 0.252948;;, + 21;3; 0.000000, 3.228616, 0.252948;;, + 22;3; 0.000000, 3.228616, 0.252948;;, + 23;3; 0.000000, 3.228616, 0.252948;;, + 24;3; 0.000000, 3.228616, 0.252948;;, + 25;3; 0.000000, 3.228616, 0.252948;;, + 26;3; 0.000000, 3.228616, 0.252948;;, + 27;3; 0.000000, 3.228616, 0.252948;;, + 28;3; 0.000000, 3.228616, 0.252948;;, + 29;3; 0.000000, 3.228616, 0.252948;;, + 30;3; 0.000000, 3.228616, 0.252948;;, + 31;3; 0.000000, 3.228616, 0.252948;;, + 32;3; 0.000000, 3.228616, 0.252948;;, + 33;3; 0.000000, 3.228616, 0.252948;;, + 34;3; 0.000000, 3.228616, 0.252948;;, + 35;3; 0.000000, 3.228616, 0.252948;;, + 36;3; 0.000000, 3.228616, 0.252948;;, + 37;3; 0.000000, 3.228616, 0.252948;;, + 38;3; 0.000000, 3.228616, 0.252948;;, + 39;3; 0.000000, 3.228616, 0.252948;;, + 40;3; 0.000000, 3.228616, 0.252948;;, + 41;3; 0.000000, 3.228616, 0.252948;;, + 42;3; 0.000000, 3.228616, 0.252948;;, + 43;3; 0.000000, 3.228616, 0.252948;;, + 44;3; 0.000000, 3.228616, 0.252948;;, + 45;3; 0.000000, 3.228616, 0.252948;;, + 46;3; 0.000000, 3.228616, 0.252948;;, + 47;3; 0.000000, 3.228616, 0.252948;;, + 48;3; 0.000000, 3.228616, 0.252948;;, + 49;3; 0.000000, 3.228616, 0.252948;;, + 50;3; 0.000000, 3.228616, 0.252948;;, + 51;3; 0.000000, 3.228616, 0.252948;;, + 52;3; 0.000000, 3.228616, 0.252948;;, + 53;3; 0.000000, 3.228616, 0.252948;;, + 54;3; 0.000000, 3.228616, 0.252948;;, + 55;3; 0.000000, 3.228616, 0.252948;;, + 56;3; 0.000000, 3.228616, 0.252948;;, + 57;3; 0.000000, 3.228616, 0.252948;;, + 58;3; 0.000000, 3.228617, 0.252948;;, + 59;3; 0.000000, 3.228616, 0.252947;;, + 60;3; -0.000000, 3.228616, 0.252947;;, + 61;3; 0.000000, 3.228617, 0.252948;;, + 62;3; 0.000000, 3.228617, 0.252948;;, + 63;3; -0.000000, 3.228616, 0.252947;;, + 64;3; 0.000000, 3.228616, 0.252947;;, + 65;3; -0.000000, 3.228616, 0.252947;;, + 66;3; 0.000000, 3.228617, 0.252948;;, + 67;3; 0.000000, 3.228616, 0.252948;;, + 68;3; 0.000000, 3.228616, 0.252948;;, + 69;3; 0.000000, 3.228616, 0.252948;;, + 70;3; 0.000000, 3.228616, 0.252948;;, + 71;3; 0.000000, 3.228616, 0.252948;;, + 72;3; 0.000000, 3.228616, 0.252948;;, + 73;3; 0.000000, 3.228616, 0.252947;;, + 74;3; 0.000000, 3.228616, 0.252948;;, + 75;3; 0.000000, 3.228616, 0.252948;;, + 76;3; 0.000000, 3.228616, 0.252948;;, + 77;3; 0.000000, 3.228616, 0.252948;;, + 78;3; 0.000000, 3.228616, 0.252948;;, + 79;3; 0.000000, 3.228616, 0.252948;;, + 80;3; 0.000000, 3.228616, 0.252948;;, + 81;3; 0.000000, 3.228616, 0.252948;;, + 82;3; 0.000000, 3.228616, 0.252948;;, + 83;3; 0.000000, 3.228616, 0.252948;;, + 84;3; 0.000000, 3.228616, 0.252948;;, + 85;3; 0.000000, 3.228616, 0.252948;;, + 86;3; 0.000000, 3.228616, 0.252948;;, + 87;3; 0.000000, 3.228616, 0.252948;;, + 88;3; 0.000000, 3.228616, 0.252948;;, + 89;3; 0.000000, 3.228616, 0.252948;;, + 90;3; 0.000000, 3.228616, 0.252948;;, + 91;3; 0.000000, 3.228616, 0.252948;;, + 92;3; 0.000000, 3.228616, 0.252948;;, + 93;3; 0.000000, 3.228616, 0.252948;;, + 94;3; 0.000000, 3.228616, 0.252948;;, + 95;3; 0.000000, 3.228616, 0.252948;;, + 96;3; 0.000000, 3.228616, 0.252948;;, + 97;3; 0.000000, 3.228616, 0.252948;;, + 98;3; 0.000000, 3.228616, 0.252948;;, + 99;3; 0.000000, 3.228616, 0.252948;;, + 100;3; 0.000000, 3.228616, 0.252948;;, + 101;3; 0.000000, 3.228616, 0.252948;;; + } + AnimationKey { //Rotation + 0; + 102; + 0;4; -0.917037, 0.398802, 0.000000, 0.000000;;, + 1;4; -0.917037, 0.398802, 0.000000, 0.000000;;, + 2;4; -0.917037, 0.398802, 0.000000, 0.000000;;, + 3;4; -0.917037, 0.398802, 0.000000, 0.000000;;, + 4;4; -0.917037, 0.398802, 0.000000, 0.000000;;, + 5;4; -0.917037, 0.398802, 0.000000, 0.000000;;, + 6;4; -0.917037, 0.398802, 0.000000, 0.000000;;, + 7;4; -0.917037, 0.398802, 0.000000, 0.000000;;, + 8;4; -0.917037, 0.398802, 0.000000, 0.000000;;, + 9;4; -0.917037, 0.398802, 0.000000, 0.000000;;, + 10;4; -0.917037, 0.398802, 0.000000, 0.000000;;, + 11;4; -0.917037, 0.398802, 0.000000, 0.000000;;, + 12;4; -0.917037, 0.398802, 0.000000, 0.000000;;, + 13;4; -0.917037, 0.398802, 0.000000, 0.000000;;, + 14;4; -0.917037, 0.398802, 0.000000, 0.000000;;, + 15;4; -0.917037, 0.398802, 0.000000, 0.000000;;, + 16;4; -0.917037, 0.398802, 0.000000, 0.000000;;, + 17;4; -0.917037, 0.398802, 0.000000, 0.000000;;, + 18;4; -0.917037, 0.398802, 0.000000, 0.000000;;, + 19;4; -0.917037, 0.398802, 0.000000, 0.000000;;, + 20;4; -0.917037, 0.398802, 0.000000, 0.000000;;, + 21;4; -0.917037, 0.398802, 0.000000, 0.000000;;, + 22;4; -0.917037, 0.398802, 0.000000, 0.000000;;, + 23;4; -0.917037, 0.398802, 0.000000, 0.000000;;, + 24;4; -0.917037, 0.398802, 0.000000, 0.000000;;, + 25;4; -0.917037, 0.398802, 0.000000, 0.000000;;, + 26;4; -0.917037, 0.398802, 0.000000, 0.000000;;, + 27;4; -0.917037, 0.398802, 0.000000, 0.000000;;, + 28;4; -0.917037, 0.398802, 0.000000, 0.000000;;, + 29;4; -0.916951, 0.398765, 0.002500, 0.005748;;, + 30;4; -0.916237, 0.398455, 0.010631, 0.024444;;, + 31;4; -0.913988, 0.397477, 0.024884, 0.057217;;, + 32;4; -0.909210, 0.395398, 0.044634, 0.102632;;, + 33;4; -0.901276, 0.391948, 0.068036, 0.156447;;, + 34;4; -0.890205, 0.387134, 0.092835, 0.213473;;, + 35;4; -0.876483, 0.381166, 0.117284, 0.269692;;, + 36;4; -0.843436, 0.366795, 0.155312, 0.357134;;, + 37;4; -0.819081, 0.356203, 0.179340, 0.412387;;, + 38;4; -0.824950, 0.358755, 0.174193, 0.400554;;, + 39;4; -0.841601, 0.365997, 0.158578, 0.364645;;, + 40;4; -0.861760, 0.374763, 0.137137, 0.315342;;, + 41;4; -0.876483, 0.381166, 0.117284, 0.269692;;, + 42;4; -0.887073, 0.385772, 0.096610, 0.222152;;, + 43;4; -0.897254, 0.390199, 0.070722, 0.162624;;, + 44;4; -0.906032, 0.394016, 0.043242, 0.099435;;, + 45;4; -0.912404, 0.396787, 0.019759, 0.045433;;, + 46;4; -0.915973, 0.398340, 0.004853, 0.011157;;, + 47;4; -0.917037, 0.398802, 0.000000, 0.000000;;, + 48;4; -0.917037, 0.398802, 0.000000, 0.000000;;, + 49;4; -0.917037, 0.398802, 0.000000, 0.000000;;, + 50;4; -0.917037, 0.398802, 0.000000, 0.000000;;, + 51;4; -0.917037, 0.398802, 0.000000, 0.000000;;, + 52;4; -0.917037, 0.398802, 0.000000, 0.000000;;, + 53;4; -0.917037, 0.398802, 0.000000, 0.000000;;, + 54;4; -0.917037, 0.398802, 0.000000, 0.000000;;, + 55;4; -0.919039, 0.393560, 0.000000, 0.000000;;, + 56;4; -0.924865, 0.378303, 0.000000, 0.000000;;, + 57;4; -0.933240, 0.356371, 0.000000, 0.000000;;, + 58;4; -0.941615, 0.334438, 0.000000, 0.000000;;, + 59;4; -0.947441, 0.319181, 0.000000, 0.000000;;, + 60;4; -0.949443, 0.313939, 0.000000, 0.000000;;, + 61;4; -0.941668, 0.334010, 0.000000, 0.000000;;, + 62;4; -0.925020, 0.377048, 0.000000, 0.000000;;, + 63;4; -0.917210, 0.397396, 0.000000, 0.000000;;, + 64;4; -0.917168, 0.397738, 0.000000, 0.000000;;, + 65;4; -0.917131, 0.398038, 0.000000, 0.000000;;, + 66;4; -0.917100, 0.398288, 0.000000, 0.000000;;, + 67;4; -0.917076, 0.398485, 0.000000, 0.000000;;, + 68;4; -0.917059, 0.398627, 0.000000, 0.000000;;, + 69;4; -0.917047, 0.398718, 0.000000, 0.000000;;, + 70;4; -0.917041, 0.398770, 0.000000, 0.000000;;, + 71;4; -0.917038, 0.398794, 0.000000, 0.000000;;, + 72;4; -0.917037, 0.398801, 0.000000, 0.000000;;, + 73;4; -0.917037, 0.398802, 0.000000, 0.000000;;, + 74;4; -0.917037, 0.398802, 0.000000, 0.000000;;, + 75;4; -0.917037, 0.398802, 0.000000, 0.000000;;, + 76;4; -0.915889, 0.401289, 0.000000, 0.000000;;, + 77;4; -0.912550, 0.408525, 0.000000, 0.000000;;, + 78;4; -0.907749, 0.418928, 0.000000, 0.000000;;, + 79;4; -0.902948, 0.429331, 0.000000, 0.000000;;, + 80;4; -0.899608, 0.436568, 0.000000, 0.000000;;, + 81;4; -0.898461, 0.439054, 0.000000, 0.000000;;, + 82;4; -0.899608, 0.436568, 0.000000, 0.000000;;, + 83;4; -0.902948, 0.429331, 0.000000, 0.000000;;, + 84;4; -0.907749, 0.418928, 0.000000, 0.000000;;, + 85;4; -0.912550, 0.408525, 0.000000, 0.000000;;, + 86;4; -0.915890, 0.401289, 0.000000, 0.000000;;, + 87;4; -0.917037, 0.398802, 0.000000, 0.000000;;, + 88;4; -0.915567, 0.401940, 0.000000, 0.000000;;, + 89;4; -0.911287, 0.411071, 0.000000, 0.000000;;, + 90;4; -0.905135, 0.424198, 0.000000, 0.000000;;, + 91;4; -0.898983, 0.437325, 0.000000, 0.000000;;, + 92;4; -0.894703, 0.446457, 0.000000, 0.000000;;, + 93;4; -0.893233, 0.449594, 0.000000, 0.000000;;, + 94;4; -0.894703, 0.446457, 0.000000, 0.000000;;, + 95;4; -0.898983, 0.437325, 0.000000, 0.000000;;, + 96;4; -0.905135, 0.424199, 0.000000, 0.000000;;, + 97;4; -0.911287, 0.411072, 0.000000, 0.000000;;, + 98;4; -0.915566, 0.401940, 0.000000, 0.000000;;, + 99;4; -0.917037, 0.398802, 0.000000, 0.000000;;, + 100;4; -0.917037, 0.398802, 0.000000, 0.000000;;, + 101;4; -0.917037, 0.398802, 0.000000, 0.000000;;; + } + AnimationKey { //Scale + 1; + 102; + 0;3; 1.000000, 1.000000, 1.000000;;, + 1;3; 1.000000, 1.000000, 1.000000;;, + 2;3; 1.000000, 1.000000, 1.000000;;, + 3;3; 1.000000, 1.000000, 1.000000;;, + 4;3; 1.000000, 1.000000, 1.000000;;, + 5;3; 1.000000, 1.000000, 1.000000;;, + 6;3; 1.000000, 1.000000, 1.000000;;, + 7;3; 1.000000, 1.000000, 1.000000;;, + 8;3; 1.000000, 1.000000, 1.000000;;, + 9;3; 1.000000, 1.000000, 1.000000;;, + 10;3; 1.000000, 1.000000, 1.000000;;, + 11;3; 1.000000, 1.000000, 1.000000;;, + 12;3; 1.000000, 1.000000, 1.000000;;, + 13;3; 1.000000, 1.000000, 1.000000;;, + 14;3; 1.000000, 1.000000, 1.000000;;, + 15;3; 1.000000, 1.000000, 1.000000;;, + 16;3; 1.000000, 1.000000, 1.000000;;, + 17;3; 1.000000, 1.000000, 1.000000;;, + 18;3; 1.000000, 1.000000, 1.000000;;, + 19;3; 1.000000, 1.000000, 1.000000;;, + 20;3; 1.000000, 1.000000, 1.000000;;, + 21;3; 1.000000, 1.000000, 1.000000;;, + 22;3; 1.000000, 1.000000, 1.000000;;, + 23;3; 1.000000, 1.000000, 1.000000;;, + 24;3; 1.000000, 1.000000, 1.000000;;, + 25;3; 1.000000, 1.000000, 1.000000;;, + 26;3; 1.000000, 1.000000, 1.000000;;, + 27;3; 1.000000, 1.000000, 1.000000;;, + 28;3; 1.000000, 1.000000, 1.000000;;, + 29;3; 1.000000, 1.000000, 1.000000;;, + 30;3; 1.000000, 1.000000, 1.000000;;, + 31;3; 1.000000, 1.000000, 1.000000;;, + 32;3; 1.000000, 1.000000, 1.000000;;, + 33;3; 1.000000, 1.000000, 1.000000;;, + 34;3; 1.000000, 1.000000, 1.000000;;, + 35;3; 1.000000, 1.000000, 1.000000;;, + 36;3; 1.000000, 1.000000, 1.000000;;, + 37;3; 1.000000, 1.000000, 1.000000;;, + 38;3; 1.000000, 1.000000, 1.000000;;, + 39;3; 1.000000, 1.000000, 1.000000;;, + 40;3; 1.000000, 1.000000, 1.000000;;, + 41;3; 1.000000, 1.000000, 1.000000;;, + 42;3; 1.000000, 1.000000, 1.000000;;, + 43;3; 1.000000, 1.000000, 1.000000;;, + 44;3; 1.000000, 1.000000, 1.000000;;, + 45;3; 1.000000, 1.000000, 1.000000;;, + 46;3; 1.000000, 1.000000, 1.000000;;, + 47;3; 1.000000, 1.000000, 1.000000;;, + 48;3; 1.000000, 1.000000, 1.000000;;, + 49;3; 1.000000, 1.000000, 1.000000;;, + 50;3; 1.000000, 1.000000, 1.000000;;, + 51;3; 1.000000, 1.000000, 1.000000;;, + 52;3; 1.000000, 1.000000, 1.000000;;, + 53;3; 1.000000, 1.000000, 1.000000;;, + 54;3; 1.000000, 1.000000, 1.000000;;, + 55;3; 1.000000, 1.000000, 1.000000;;, + 56;3; 1.000000, 1.000000, 1.000000;;, + 57;3; 1.000000, 1.000000, 1.000000;;, + 58;3; 1.000000, 1.000000, 1.000000;;, + 59;3; 1.000000, 1.000000, 1.000000;;, + 60;3; 1.000000, 1.000000, 1.000000;;, + 61;3; 1.000000, 1.000000, 1.000000;;, + 62;3; 1.000000, 1.000000, 1.000000;;, + 63;3; 1.000000, 1.000000, 1.000000;;, + 64;3; 1.000000, 1.000000, 1.000000;;, + 65;3; 1.000000, 1.000000, 1.000000;;, + 66;3; 1.000000, 1.000000, 1.000000;;, + 67;3; 1.000000, 1.000000, 1.000000;;, + 68;3; 1.000000, 1.000000, 1.000000;;, + 69;3; 1.000000, 1.000000, 1.000000;;, + 70;3; 1.000000, 1.000000, 1.000000;;, + 71;3; 1.000000, 1.000000, 1.000000;;, + 72;3; 1.000000, 1.000000, 1.000000;;, + 73;3; 1.000000, 1.000000, 1.000000;;, + 74;3; 1.000000, 1.000000, 1.000000;;, + 75;3; 1.000000, 1.000000, 1.000000;;, + 76;3; 1.000000, 1.000000, 1.000000;;, + 77;3; 1.000000, 1.000000, 1.000000;;, + 78;3; 1.000000, 1.000000, 1.000000;;, + 79;3; 1.000000, 1.000000, 1.000000;;, + 80;3; 1.000000, 1.000000, 1.000000;;, + 81;3; 1.000000, 1.000000, 1.000000;;, + 82;3; 1.000000, 1.000000, 1.000000;;, + 83;3; 1.000000, 1.000000, 1.000000;;, + 84;3; 1.000000, 1.000000, 1.000000;;, + 85;3; 1.000000, 1.000000, 1.000000;;, + 86;3; 1.000000, 1.000000, 1.000000;;, + 87;3; 1.000000, 1.000000, 1.000000;;, + 88;3; 1.000000, 1.000000, 1.000000;;, + 89;3; 1.000000, 1.000000, 1.000000;;, + 90;3; 1.000000, 1.000000, 1.000000;;, + 91;3; 1.000000, 1.000000, 1.000000;;, + 92;3; 1.000000, 1.000000, 1.000000;;, + 93;3; 1.000000, 1.000000, 1.000000;;, + 94;3; 1.000000, 1.000000, 1.000000;;, + 95;3; 1.000000, 1.000000, 1.000000;;, + 96;3; 1.000000, 1.000000, 1.000000;;, + 97;3; 1.000000, 1.000000, 1.000000;;, + 98;3; 1.000000, 1.000000, 1.000000;;, + 99;3; 1.000000, 1.000000, 1.000000;;, + 100;3; 1.000000, 1.000000, 1.000000;;, + 101;3; 1.000000, 1.000000, 1.000000;;; + } + } + Animation { + {Armature_Bone_007} + AnimationKey { //Position + 2; + 102; + 0;3; -0.000000, 1.500366, 0.161866;;, + 1;3; -0.000000, 1.500366, 0.161866;;, + 2;3; -0.000000, 1.500366, 0.161866;;, + 3;3; -0.000000, 1.500366, 0.161866;;, + 4;3; -0.000000, 1.500366, 0.161866;;, + 5;3; -0.000000, 1.500366, 0.161866;;, + 6;3; -0.000000, 1.500366, 0.161866;;, + 7;3; -0.000000, 1.500366, 0.161866;;, + 8;3; -0.000000, 1.500366, 0.161866;;, + 9;3; -0.000000, 1.500366, 0.161866;;, + 10;3; -0.000000, 1.500366, 0.161866;;, + 11;3; -0.000000, 1.500366, 0.161866;;, + 12;3; -0.000000, 1.500366, 0.161866;;, + 13;3; -0.000000, 1.500366, 0.161866;;, + 14;3; -0.000000, 1.500366, 0.161866;;, + 15;3; -0.000000, 1.500366, 0.161866;;, + 16;3; -0.000000, 1.500366, 0.161866;;, + 17;3; -0.000000, 1.500366, 0.161866;;, + 18;3; -0.000000, 1.500366, 0.161866;;, + 19;3; -0.000000, 1.500366, 0.161866;;, + 20;3; -0.000000, 1.500366, 0.161866;;, + 21;3; -0.000000, 1.500366, 0.161866;;, + 22;3; -0.000000, 1.500366, 0.161866;;, + 23;3; -0.000000, 1.500366, 0.161866;;, + 24;3; -0.000000, 1.500366, 0.161866;;, + 25;3; -0.000000, 1.500366, 0.161866;;, + 26;3; -0.000000, 1.500366, 0.161866;;, + 27;3; -0.000000, 1.500366, 0.161866;;, + 28;3; -0.000000, 1.500366, 0.161866;;, + 29;3; 0.000000, 1.500365, 0.161866;;, + 30;3; 0.000000, 1.500366, 0.161866;;, + 31;3; -0.000000, 1.500365, 0.161866;;, + 32;3; 0.000000, 1.500366, 0.161866;;, + 33;3; -0.000000, 1.500366, 0.161866;;, + 34;3; -0.000000, 1.500366, 0.161866;;, + 35;3; 0.000000, 1.500366, 0.161866;;, + 36;3; -0.000000, 1.500366, 0.161866;;, + 37;3; -0.000000, 1.500366, 0.161866;;, + 38;3; -0.000000, 1.500366, 0.161865;;, + 39;3; 0.000000, 1.500366, 0.161866;;, + 40;3; -0.000000, 1.500365, 0.161866;;, + 41;3; 0.000000, 1.500366, 0.161866;;, + 42;3; -0.000000, 1.500366, 0.161866;;, + 43;3; -0.000000, 1.500366, 0.161866;;, + 44;3; -0.000000, 1.500366, 0.161866;;, + 45;3; 0.000001, 1.500366, 0.161866;;, + 46;3; 0.000000, 1.500366, 0.161866;;, + 47;3; -0.000000, 1.500366, 0.161866;;, + 48;3; -0.000000, 1.500366, 0.161866;;, + 49;3; -0.000000, 1.500366, 0.161866;;, + 50;3; -0.000000, 1.500366, 0.161866;;, + 51;3; -0.000000, 1.500366, 0.161866;;, + 52;3; -0.000000, 1.500366, 0.161866;;, + 53;3; -0.000000, 1.500366, 0.161866;;, + 54;3; -0.000000, 1.500366, 0.161866;;, + 55;3; 0.000000, 1.500366, 0.161866;;, + 56;3; 0.000000, 1.500366, 0.161866;;, + 57;3; -0.000000, 1.500366, 0.161866;;, + 58;3; -0.000000, 1.500366, 0.161866;;, + 59;3; -0.000000, 1.500365, 0.161866;;, + 60;3; -0.000000, 1.500365, 0.161866;;, + 61;3; 0.000000, 1.500365, 0.161866;;, + 62;3; -0.000000, 1.500366, 0.161866;;, + 63;3; -0.000000, 1.500366, 0.161866;;, + 64;3; -0.000000, 1.500366, 0.161866;;, + 65;3; 0.000000, 1.500365, 0.161866;;, + 66;3; 0.000000, 1.500366, 0.161866;;, + 67;3; -0.000000, 1.500365, 0.161866;;, + 68;3; -0.000000, 1.500365, 0.161866;;, + 69;3; 0.000000, 1.500366, 0.161866;;, + 70;3; -0.000000, 1.500365, 0.161866;;, + 71;3; -0.000000, 1.500366, 0.161866;;, + 72;3; -0.000000, 1.500366, 0.161866;;, + 73;3; -0.000000, 1.500366, 0.161866;;, + 74;3; -0.000000, 1.500366, 0.161866;;, + 75;3; -0.000000, 1.500366, 0.161866;;, + 76;3; 0.000000, 1.500365, 0.161866;;, + 77;3; -0.000000, 1.500366, 0.161866;;, + 78;3; -0.000000, 1.500366, 0.161866;;, + 79;3; -0.000000, 1.500366, 0.161866;;, + 80;3; -0.000000, 1.500365, 0.161866;;, + 81;3; -0.000000, 1.500366, 0.161866;;, + 82;3; -0.000000, 1.500365, 0.161866;;, + 83;3; -0.000000, 1.500366, 0.161866;;, + 84;3; 0.000000, 1.500366, 0.161866;;, + 85;3; 0.000000, 1.500365, 0.161866;;, + 86;3; -0.000000, 1.500366, 0.161866;;, + 87;3; -0.000000, 1.500366, 0.161866;;, + 88;3; -0.000000, 1.500366, 0.161866;;, + 89;3; -0.000000, 1.500366, 0.161866;;, + 90;3; -0.000000, 1.500366, 0.161866;;, + 91;3; -0.000000, 1.500366, 0.161866;;, + 92;3; -0.000000, 1.500366, 0.161866;;, + 93;3; -0.000000, 1.500366, 0.161866;;, + 94;3; -0.000000, 1.500366, 0.161866;;, + 95;3; -0.000000, 1.500366, 0.161866;;, + 96;3; 0.000000, 1.500366, 0.161866;;, + 97;3; 0.000000, 1.500366, 0.161866;;, + 98;3; -0.000000, 1.500366, 0.161866;;, + 99;3; -0.000000, 1.500366, 0.161866;;, + 100;3; -0.000000, 1.500366, 0.161866;;, + 101;3; -0.000000, 1.500366, 0.161866;;; + } + AnimationKey { //Rotation + 0; + 102; + 0;4; -0.922055,-0.387059, 0.000000,-0.000000;;, + 1;4; -0.922055,-0.387059, 0.000000,-0.000000;;, + 2;4; -0.922055,-0.387059, 0.000000,-0.000000;;, + 3;4; -0.922055,-0.387059, 0.000000,-0.000000;;, + 4;4; -0.922055,-0.387059, 0.000000,-0.000000;;, + 5;4; -0.922055,-0.387059, 0.000000,-0.000000;;, + 6;4; -0.922055,-0.387059, 0.000000,-0.000000;;, + 7;4; -0.922055,-0.387059, 0.000000,-0.000000;;, + 8;4; -0.922055,-0.387059, 0.000000,-0.000000;;, + 9;4; -0.922055,-0.387059, 0.000000,-0.000000;;, + 10;4; -0.922055,-0.387059, 0.000000,-0.000000;;, + 11;4; -0.922055,-0.387059, 0.000000,-0.000000;;, + 12;4; -0.922055,-0.387059, 0.000000,-0.000000;;, + 13;4; -0.922055,-0.387059, 0.000000,-0.000000;;, + 14;4; -0.922055,-0.387059, 0.000000,-0.000000;;, + 15;4; -0.922055,-0.387059, 0.000000,-0.000000;;, + 16;4; -0.922055,-0.387059, 0.000000,-0.000000;;, + 17;4; -0.922055,-0.387059, 0.000000,-0.000000;;, + 18;4; -0.922055,-0.387059, 0.000000,-0.000000;;, + 19;4; -0.922055,-0.387059, 0.000000,-0.000000;;, + 20;4; -0.922055,-0.387059, 0.000000,-0.000000;;, + 21;4; -0.922055,-0.387059, 0.000000,-0.000000;;, + 22;4; -0.922055,-0.387059, 0.000000,-0.000000;;, + 23;4; -0.922055,-0.387059, 0.000000,-0.000000;;, + 24;4; -0.922055,-0.387059, 0.000000,-0.000000;;, + 25;4; -0.922055,-0.387059, 0.000000,-0.000000;;, + 26;4; -0.922055,-0.387059, 0.000000,-0.000000;;, + 27;4; -0.922055,-0.387059, 0.000000,-0.000000;;, + 28;4; -0.922055,-0.387059, 0.000000,-0.000000;;, + 29;4; -0.916130,-0.376911,-0.020052,-0.017657;;, + 30;4; -0.898608,-0.346891,-0.079321,-0.069787;;, + 31;4; -0.871914,-0.301155,-0.169579,-0.149127;;, + 32;4; -0.841633,-0.249279,-0.271998,-0.239215;;, + 33;4; -0.814929,-0.203540,-0.362420,-0.318901;;, + 34;4; -0.797394,-0.173516,-0.421879,-0.371431;;, + 35;4; -0.791464,-0.163367,-0.442012,-0.389258;;, + 36;4; -0.862154,-0.220829,-0.270423,-0.221124;;, + 37;4; -0.926541,-0.293379,-0.037122, 0.037436;;, + 38;4; -0.909731,-0.319000, 0.056437, 0.177456;;, + 39;4; -0.884561,-0.341265, 0.119139, 0.277940;;, + 40;4; -0.862987,-0.354981, 0.147403, 0.328406;;, + 41;4; -0.855246,-0.359015, 0.153402, 0.340778;;, + 42;4; -0.859373,-0.360747, 0.143926, 0.319728;;, + 43;4; -0.871384,-0.365789, 0.116352, 0.258474;;, + 44;4; -0.888650,-0.373037, 0.076715, 0.170422;;, + 45;4; -0.905917,-0.380285, 0.037070, 0.082352;;, + 46;4; -0.917928,-0.385327, 0.009482, 0.021066;;, + 47;4; -0.922055,-0.387059, 0.000000,-0.000000;;, + 48;4; -0.922055,-0.387059, 0.000000,-0.000000;;, + 49;4; -0.922055,-0.387059, 0.000000,-0.000000;;, + 50;4; -0.922055,-0.387059, 0.000000,-0.000000;;, + 51;4; -0.922055,-0.387059, 0.000000,-0.000000;;, + 52;4; -0.922055,-0.387059, 0.000000,-0.000000;;, + 53;4; -0.922055,-0.387059, 0.000000,-0.000000;;, + 54;4; -0.922055,-0.387059, 0.000000,-0.000000;;, + 55;4; -0.916185,-0.397876, 0.000000,-0.000000;;, + 56;4; -0.899103,-0.429354, 0.000000,-0.000000;;, + 57;4; -0.874549,-0.474601, 0.000000,-0.000000;;, + 58;4; -0.849995,-0.519845, 0.000000,-0.000000;;, + 59;4; -0.832915,-0.551319, 0.000000,-0.000000;;, + 60;4; -0.827046,-0.562134, 0.000000,-0.000000;;, + 61;4; -0.828254,-0.559909, 0.000000,-0.000000;;, + 62;4; -0.831773,-0.553424, 0.000000,-0.000000;;, + 63;4; -0.837411,-0.543034, 0.000000,-0.000000;;, + 64;4; -0.844922,-0.529194, 0.000000,-0.000000;;, + 65;4; -0.853993,-0.512478, 0.000000,-0.000000;;, + 66;4; -0.864247,-0.493583, 0.000000,-0.000000;;, + 67;4; -0.875230,-0.473345, 0.000000,-0.000000;;, + 68;4; -0.886413,-0.452738, 0.000000,-0.000000;;, + 69;4; -0.897192,-0.432875, 0.000000,-0.000000;;, + 70;4; -0.906895,-0.414996, 0.000000,-0.000000;;, + 71;4; -0.914790,-0.400446, 0.000000,-0.000000;;, + 72;4; -0.920107,-0.390649, 0.000000,-0.000000;;, + 73;4; -0.922055,-0.387059, 0.000000,-0.000000;;, + 74;4; -0.922055,-0.387059, 0.000000,-0.000000;;, + 75;4; -0.922055,-0.387059, 0.000000,-0.000000;;, + 76;4; -0.921790,-0.386948,-0.005563, 0.002504;;, + 77;4; -0.921015,-0.386623,-0.021755, 0.009793;;, + 78;4; -0.919889,-0.386150,-0.045030, 0.020270;;, + 79;4; -0.918740,-0.385668,-0.068305, 0.030747;;, + 80;4; -0.917902,-0.385316,-0.084495, 0.038036;;, + 81;4; -0.917547,-0.385167,-0.090058, 0.040540;;, + 82;4; -0.917451,-0.385127,-0.087220, 0.039262;;, + 83;4; -0.917364,-0.385090,-0.078649, 0.035404;;, + 84;4; -0.917288,-0.385058,-0.064518, 0.029043;;, + 85;4; -0.917224,-0.385031,-0.045445, 0.020457;;, + 86;4; -0.917173,-0.385010,-0.022604, 0.010175;;, + 87;4; -0.917134,-0.384994, 0.002289,-0.001031;;, + 88;4; -0.917108,-0.384983, 0.027183,-0.012237;;, + 89;4; -0.917091,-0.384976, 0.050023,-0.022518;;, + 90;4; -0.917082,-0.384972, 0.069097,-0.031104;;, + 91;4; -0.917077,-0.384970, 0.083228,-0.037465;;, + 92;4; -0.917076,-0.384969, 0.091798,-0.041323;;, + 93;4; -0.917076,-0.384969, 0.094637,-0.042601;;, + 94;4; -0.917383,-0.385098, 0.088792,-0.039970;;, + 95;4; -0.918278,-0.385474, 0.071779,-0.032312;;, + 96;4; -0.919565,-0.386014, 0.047322,-0.021302;;, + 97;4; -0.920852,-0.386555, 0.022863,-0.010292;;, + 98;4; -0.921747,-0.386930, 0.005847,-0.002632;;, + 99;4; -0.922055,-0.387059, 0.000000,-0.000000;;, + 100;4; -0.922055,-0.387059, 0.000000,-0.000000;;, + 101;4; -0.922055,-0.387059, 0.000000,-0.000000;;; + } + AnimationKey { //Scale + 1; + 102; + 0;3; 1.000000, 1.000000, 1.000000;;, + 1;3; 1.000000, 1.000000, 1.000000;;, + 2;3; 1.000000, 1.000000, 1.000000;;, + 3;3; 1.000000, 1.000000, 1.000000;;, + 4;3; 1.000000, 1.000000, 1.000000;;, + 5;3; 1.000000, 1.000000, 1.000000;;, + 6;3; 1.000000, 1.000000, 1.000000;;, + 7;3; 1.000000, 1.000000, 1.000000;;, + 8;3; 1.000000, 1.000000, 1.000000;;, + 9;3; 1.000000, 1.000000, 1.000000;;, + 10;3; 1.000000, 1.000000, 1.000000;;, + 11;3; 1.000000, 1.000000, 1.000000;;, + 12;3; 1.000000, 1.000000, 1.000000;;, + 13;3; 1.000000, 1.000000, 1.000000;;, + 14;3; 1.000000, 1.000000, 1.000000;;, + 15;3; 1.000000, 1.000000, 1.000000;;, + 16;3; 1.000000, 1.000000, 1.000000;;, + 17;3; 1.000000, 1.000000, 1.000000;;, + 18;3; 1.000000, 1.000000, 1.000000;;, + 19;3; 1.000000, 1.000000, 1.000000;;, + 20;3; 1.000000, 1.000000, 1.000000;;, + 21;3; 1.000000, 1.000000, 1.000000;;, + 22;3; 1.000000, 1.000000, 1.000000;;, + 23;3; 1.000000, 1.000000, 1.000000;;, + 24;3; 1.000000, 1.000000, 1.000000;;, + 25;3; 1.000000, 1.000000, 1.000000;;, + 26;3; 1.000000, 1.000000, 1.000000;;, + 27;3; 1.000000, 1.000000, 1.000000;;, + 28;3; 1.000000, 1.000000, 1.000000;;, + 29;3; 1.000000, 1.000000, 1.000000;;, + 30;3; 1.000000, 1.000000, 1.000000;;, + 31;3; 1.000000, 1.000000, 1.000000;;, + 32;3; 1.000000, 1.000000, 1.000000;;, + 33;3; 1.000000, 1.000000, 1.000000;;, + 34;3; 1.000000, 1.000000, 1.000000;;, + 35;3; 1.000000, 1.000000, 1.000000;;, + 36;3; 1.000000, 1.000000, 1.000000;;, + 37;3; 1.000000, 1.000000, 1.000000;;, + 38;3; 1.000000, 1.000000, 1.000000;;, + 39;3; 1.000000, 1.000000, 1.000000;;, + 40;3; 1.000000, 1.000000, 1.000000;;, + 41;3; 1.000000, 1.000000, 1.000000;;, + 42;3; 1.000000, 1.000000, 1.000000;;, + 43;3; 1.000000, 1.000000, 1.000000;;, + 44;3; 1.000000, 1.000000, 1.000000;;, + 45;3; 1.000000, 1.000000, 1.000000;;, + 46;3; 1.000000, 1.000000, 1.000000;;, + 47;3; 1.000000, 1.000000, 1.000000;;, + 48;3; 1.000000, 1.000000, 1.000000;;, + 49;3; 1.000000, 1.000000, 1.000000;;, + 50;3; 1.000000, 1.000000, 1.000000;;, + 51;3; 1.000000, 1.000000, 1.000000;;, + 52;3; 1.000000, 1.000000, 1.000000;;, + 53;3; 1.000000, 1.000000, 1.000000;;, + 54;3; 1.000000, 1.000000, 1.000000;;, + 55;3; 1.000000, 1.000000, 1.000000;;, + 56;3; 1.000000, 1.000000, 1.000000;;, + 57;3; 1.000000, 1.000000, 1.000000;;, + 58;3; 1.000000, 1.000000, 1.000000;;, + 59;3; 1.000000, 1.000000, 1.000000;;, + 60;3; 1.000000, 1.000000, 1.000000;;, + 61;3; 1.000000, 1.000000, 1.000000;;, + 62;3; 1.000000, 1.000000, 1.000000;;, + 63;3; 1.000000, 1.000000, 1.000000;;, + 64;3; 1.000000, 1.000000, 1.000000;;, + 65;3; 1.000000, 1.000000, 1.000000;;, + 66;3; 1.000000, 1.000000, 1.000000;;, + 67;3; 1.000000, 1.000000, 1.000000;;, + 68;3; 1.000000, 1.000000, 1.000000;;, + 69;3; 1.000000, 1.000000, 1.000000;;, + 70;3; 1.000000, 1.000000, 1.000000;;, + 71;3; 1.000000, 1.000000, 1.000000;;, + 72;3; 1.000000, 1.000000, 1.000000;;, + 73;3; 1.000000, 1.000000, 1.000000;;, + 74;3; 1.000000, 1.000000, 1.000000;;, + 75;3; 1.000000, 1.000000, 1.000000;;, + 76;3; 1.000000, 1.000000, 1.000000;;, + 77;3; 1.000000, 1.000000, 1.000000;;, + 78;3; 1.000000, 1.000000, 1.000000;;, + 79;3; 1.000000, 1.000000, 1.000000;;, + 80;3; 1.000000, 1.000000, 1.000000;;, + 81;3; 1.000000, 1.000000, 1.000000;;, + 82;3; 1.000000, 1.000000, 1.000000;;, + 83;3; 1.000000, 1.000000, 1.000000;;, + 84;3; 1.000000, 1.000000, 1.000000;;, + 85;3; 1.000000, 1.000000, 1.000000;;, + 86;3; 1.000000, 1.000000, 1.000000;;, + 87;3; 1.000000, 1.000000, 1.000000;;, + 88;3; 1.000000, 1.000000, 1.000000;;, + 89;3; 1.000000, 1.000000, 1.000000;;, + 90;3; 1.000000, 1.000000, 1.000000;;, + 91;3; 1.000000, 1.000000, 1.000000;;, + 92;3; 1.000000, 1.000000, 1.000000;;, + 93;3; 1.000000, 1.000000, 1.000000;;, + 94;3; 1.000000, 1.000000, 1.000000;;, + 95;3; 1.000000, 1.000000, 1.000000;;, + 96;3; 1.000000, 1.000000, 1.000000;;, + 97;3; 1.000000, 1.000000, 1.000000;;, + 98;3; 1.000000, 1.000000, 1.000000;;, + 99;3; 1.000000, 1.000000, 1.000000;;, + 100;3; 1.000000, 1.000000, 1.000000;;, + 101;3; 1.000000, 1.000000, 1.000000;;; + } + } + Animation { + {Cube_005} + AnimationKey { //Position + 2; + 102; + 0;3; -0.018561,-0.012256,-0.107993;;, + 1;3; -0.018561,-0.012256,-0.107993;;, + 2;3; -0.018561,-0.012256,-0.107993;;, + 3;3; -0.018561,-0.012256,-0.107993;;, + 4;3; -0.018561,-0.012256,-0.107993;;, + 5;3; -0.018561,-0.012256,-0.107993;;, + 6;3; -0.018561,-0.012256,-0.107993;;, + 7;3; -0.018561,-0.012256,-0.107993;;, + 8;3; -0.018561,-0.012256,-0.107993;;, + 9;3; -0.018561,-0.012256,-0.107993;;, + 10;3; -0.018561,-0.012256,-0.107993;;, + 11;3; -0.018561,-0.012256,-0.107993;;, + 12;3; -0.018561,-0.012256,-0.107993;;, + 13;3; -0.018561,-0.012256,-0.107993;;, + 14;3; -0.018561,-0.012256,-0.107993;;, + 15;3; -0.018561,-0.012256,-0.107993;;, + 16;3; -0.018561,-0.012256,-0.107993;;, + 17;3; -0.018561,-0.012256,-0.107993;;, + 18;3; -0.018561,-0.012256,-0.107993;;, + 19;3; -0.018561,-0.012256,-0.107993;;, + 20;3; -0.018561,-0.012256,-0.107993;;, + 21;3; -0.018561,-0.012256,-0.107993;;, + 22;3; -0.018561,-0.012256,-0.107993;;, + 23;3; -0.018561,-0.012256,-0.107993;;, + 24;3; -0.018561,-0.012256,-0.107993;;, + 25;3; -0.018561,-0.012256,-0.107993;;, + 26;3; -0.018561,-0.012256,-0.107993;;, + 27;3; -0.018561,-0.012256,-0.107993;;, + 28;3; -0.018561,-0.012256,-0.107993;;, + 29;3; -0.018561,-0.012256,-0.107993;;, + 30;3; -0.018561,-0.012256,-0.107993;;, + 31;3; -0.018561,-0.012256,-0.107993;;, + 32;3; -0.018561,-0.012256,-0.107993;;, + 33;3; -0.018561,-0.012256,-0.107993;;, + 34;3; -0.018561,-0.012256,-0.107993;;, + 35;3; -0.018561,-0.012256,-0.107993;;, + 36;3; -0.018561,-0.012256,-0.107993;;, + 37;3; -0.018561,-0.012256,-0.107993;;, + 38;3; -0.018561,-0.012256,-0.107993;;, + 39;3; -0.018561,-0.012256,-0.107993;;, + 40;3; -0.018561,-0.012256,-0.107993;;, + 41;3; -0.018561,-0.012256,-0.107993;;, + 42;3; -0.018561,-0.012256,-0.107993;;, + 43;3; -0.018561,-0.012256,-0.107993;;, + 44;3; -0.018561,-0.012256,-0.107993;;, + 45;3; -0.018561,-0.012256,-0.107993;;, + 46;3; -0.018561,-0.012256,-0.107993;;, + 47;3; -0.018561,-0.012256,-0.107993;;, + 48;3; -0.018561,-0.012256,-0.107993;;, + 49;3; -0.018561,-0.012256,-0.107993;;, + 50;3; -0.018561,-0.012256,-0.107993;;, + 51;3; -0.018561,-0.012256,-0.107993;;, + 52;3; -0.018561,-0.012256,-0.107993;;, + 53;3; -0.018561,-0.012256,-0.107993;;, + 54;3; -0.018561,-0.012256,-0.107993;;, + 55;3; -0.018561,-0.012256,-0.107993;;, + 56;3; -0.018561,-0.012256,-0.107993;;, + 57;3; -0.018561,-0.012256,-0.107993;;, + 58;3; -0.018561,-0.012256,-0.107993;;, + 59;3; -0.018561,-0.012256,-0.107993;;, + 60;3; -0.018561,-0.012256,-0.107993;;, + 61;3; -0.018561,-0.012256,-0.107993;;, + 62;3; -0.018561,-0.012256,-0.107993;;, + 63;3; -0.018561,-0.012256,-0.107993;;, + 64;3; -0.018561,-0.012256,-0.107993;;, + 65;3; -0.018561,-0.012256,-0.107993;;, + 66;3; -0.018561,-0.012256,-0.107993;;, + 67;3; -0.018561,-0.012256,-0.107993;;, + 68;3; -0.018561,-0.012256,-0.107993;;, + 69;3; -0.018561,-0.012256,-0.107993;;, + 70;3; -0.018561,-0.012256,-0.107993;;, + 71;3; -0.018561,-0.012256,-0.107993;;, + 72;3; -0.018561,-0.012256,-0.107993;;, + 73;3; -0.018561,-0.012256,-0.107993;;, + 74;3; -0.018561,-0.012256,-0.107993;;, + 75;3; -0.018561,-0.012256,-0.107993;;, + 76;3; -0.018561,-0.012256,-0.107993;;, + 77;3; -0.018561,-0.012256,-0.107993;;, + 78;3; -0.018561,-0.012256,-0.107993;;, + 79;3; -0.018561,-0.012256,-0.107993;;, + 80;3; -0.018561,-0.012256,-0.107993;;, + 81;3; -0.018561,-0.012256,-0.107993;;, + 82;3; -0.018561,-0.012256,-0.107993;;, + 83;3; -0.018561,-0.012256,-0.107993;;, + 84;3; -0.018561,-0.012256,-0.107993;;, + 85;3; -0.018561,-0.012256,-0.107993;;, + 86;3; -0.018561,-0.012256,-0.107993;;, + 87;3; -0.018561,-0.012256,-0.107993;;, + 88;3; -0.018561,-0.012256,-0.107993;;, + 89;3; -0.018561,-0.012256,-0.107993;;, + 90;3; -0.018561,-0.012256,-0.107993;;, + 91;3; -0.018561,-0.012256,-0.107993;;, + 92;3; -0.018561,-0.012256,-0.107993;;, + 93;3; -0.018561,-0.012256,-0.107993;;, + 94;3; -0.018561,-0.012256,-0.107993;;, + 95;3; -0.018561,-0.012256,-0.107993;;, + 96;3; -0.018561,-0.012256,-0.107993;;, + 97;3; -0.018561,-0.012256,-0.107993;;, + 98;3; -0.018561,-0.012256,-0.107993;;, + 99;3; -0.018561,-0.012256,-0.107993;;, + 100;3; -0.018561,-0.012256,-0.107993;;, + 101;3; -0.018561,-0.012256,-0.107993;;; + } + AnimationKey { //Rotation + 0; + 102; + 0;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 1;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 2;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 3;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 4;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 5;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 6;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 7;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 8;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 9;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 10;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 11;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 12;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 13;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 14;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 15;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 16;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 17;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 18;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 19;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 20;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 21;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 22;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 23;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 24;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 25;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 26;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 27;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 28;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 29;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 30;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 31;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 32;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 33;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 34;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 35;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 36;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 37;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 38;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 39;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 40;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 41;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 42;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 43;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 44;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 45;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 46;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 47;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 48;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 49;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 50;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 51;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 52;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 53;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 54;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 55;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 56;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 57;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 58;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 59;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 60;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 61;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 62;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 63;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 64;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 65;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 66;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 67;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 68;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 69;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 70;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 71;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 72;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 73;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 74;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 75;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 76;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 77;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 78;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 79;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 80;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 81;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 82;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 83;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 84;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 85;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 86;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 87;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 88;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 89;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 90;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 91;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 92;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 93;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 94;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 95;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 96;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 97;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 98;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 99;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 100;4; -1.000000, 0.000000, 0.000000, 0.000000;;, + 101;4; -1.000000, 0.000000, 0.000000, 0.000000;;; + } + AnimationKey { //Scale + 1; + 102; + 0;3; 1.000000, 1.000000, 1.000000;;, + 1;3; 1.000000, 1.000000, 1.000000;;, + 2;3; 1.000000, 1.000000, 1.000000;;, + 3;3; 1.000000, 1.000000, 1.000000;;, + 4;3; 1.000000, 1.000000, 1.000000;;, + 5;3; 1.000000, 1.000000, 1.000000;;, + 6;3; 1.000000, 1.000000, 1.000000;;, + 7;3; 1.000000, 1.000000, 1.000000;;, + 8;3; 1.000000, 1.000000, 1.000000;;, + 9;3; 1.000000, 1.000000, 1.000000;;, + 10;3; 1.000000, 1.000000, 1.000000;;, + 11;3; 1.000000, 1.000000, 1.000000;;, + 12;3; 1.000000, 1.000000, 1.000000;;, + 13;3; 1.000000, 1.000000, 1.000000;;, + 14;3; 1.000000, 1.000000, 1.000000;;, + 15;3; 1.000000, 1.000000, 1.000000;;, + 16;3; 1.000000, 1.000000, 1.000000;;, + 17;3; 1.000000, 1.000000, 1.000000;;, + 18;3; 1.000000, 1.000000, 1.000000;;, + 19;3; 1.000000, 1.000000, 1.000000;;, + 20;3; 1.000000, 1.000000, 1.000000;;, + 21;3; 1.000000, 1.000000, 1.000000;;, + 22;3; 1.000000, 1.000000, 1.000000;;, + 23;3; 1.000000, 1.000000, 1.000000;;, + 24;3; 1.000000, 1.000000, 1.000000;;, + 25;3; 1.000000, 1.000000, 1.000000;;, + 26;3; 1.000000, 1.000000, 1.000000;;, + 27;3; 1.000000, 1.000000, 1.000000;;, + 28;3; 1.000000, 1.000000, 1.000000;;, + 29;3; 1.000000, 1.000000, 1.000000;;, + 30;3; 1.000000, 1.000000, 1.000000;;, + 31;3; 1.000000, 1.000000, 1.000000;;, + 32;3; 1.000000, 1.000000, 1.000000;;, + 33;3; 1.000000, 1.000000, 1.000000;;, + 34;3; 1.000000, 1.000000, 1.000000;;, + 35;3; 1.000000, 1.000000, 1.000000;;, + 36;3; 1.000000, 1.000000, 1.000000;;, + 37;3; 1.000000, 1.000000, 1.000000;;, + 38;3; 1.000000, 1.000000, 1.000000;;, + 39;3; 1.000000, 1.000000, 1.000000;;, + 40;3; 1.000000, 1.000000, 1.000000;;, + 41;3; 1.000000, 1.000000, 1.000000;;, + 42;3; 1.000000, 1.000000, 1.000000;;, + 43;3; 1.000000, 1.000000, 1.000000;;, + 44;3; 1.000000, 1.000000, 1.000000;;, + 45;3; 1.000000, 1.000000, 1.000000;;, + 46;3; 1.000000, 1.000000, 1.000000;;, + 47;3; 1.000000, 1.000000, 1.000000;;, + 48;3; 1.000000, 1.000000, 1.000000;;, + 49;3; 1.000000, 1.000000, 1.000000;;, + 50;3; 1.000000, 1.000000, 1.000000;;, + 51;3; 1.000000, 1.000000, 1.000000;;, + 52;3; 1.000000, 1.000000, 1.000000;;, + 53;3; 1.000000, 1.000000, 1.000000;;, + 54;3; 1.000000, 1.000000, 1.000000;;, + 55;3; 1.000000, 1.000000, 1.000000;;, + 56;3; 1.000000, 1.000000, 1.000000;;, + 57;3; 1.000000, 1.000000, 1.000000;;, + 58;3; 1.000000, 1.000000, 1.000000;;, + 59;3; 1.000000, 1.000000, 1.000000;;, + 60;3; 1.000000, 1.000000, 1.000000;;, + 61;3; 1.000000, 1.000000, 1.000000;;, + 62;3; 1.000000, 1.000000, 1.000000;;, + 63;3; 1.000000, 1.000000, 1.000000;;, + 64;3; 1.000000, 1.000000, 1.000000;;, + 65;3; 1.000000, 1.000000, 1.000000;;, + 66;3; 1.000000, 1.000000, 1.000000;;, + 67;3; 1.000000, 1.000000, 1.000000;;, + 68;3; 1.000000, 1.000000, 1.000000;;, + 69;3; 1.000000, 1.000000, 1.000000;;, + 70;3; 1.000000, 1.000000, 1.000000;;, + 71;3; 1.000000, 1.000000, 1.000000;;, + 72;3; 1.000000, 1.000000, 1.000000;;, + 73;3; 1.000000, 1.000000, 1.000000;;, + 74;3; 1.000000, 1.000000, 1.000000;;, + 75;3; 1.000000, 1.000000, 1.000000;;, + 76;3; 1.000000, 1.000000, 1.000000;;, + 77;3; 1.000000, 1.000000, 1.000000;;, + 78;3; 1.000000, 1.000000, 1.000000;;, + 79;3; 1.000000, 1.000000, 1.000000;;, + 80;3; 1.000000, 1.000000, 1.000000;;, + 81;3; 1.000000, 1.000000, 1.000000;;, + 82;3; 1.000000, 1.000000, 1.000000;;, + 83;3; 1.000000, 1.000000, 1.000000;;, + 84;3; 1.000000, 1.000000, 1.000000;;, + 85;3; 1.000000, 1.000000, 1.000000;;, + 86;3; 1.000000, 1.000000, 1.000000;;, + 87;3; 1.000000, 1.000000, 1.000000;;, + 88;3; 1.000000, 1.000000, 1.000000;;, + 89;3; 1.000000, 1.000000, 1.000000;;, + 90;3; 1.000000, 1.000000, 1.000000;;, + 91;3; 1.000000, 1.000000, 1.000000;;, + 92;3; 1.000000, 1.000000, 1.000000;;, + 93;3; 1.000000, 1.000000, 1.000000;;, + 94;3; 1.000000, 1.000000, 1.000000;;, + 95;3; 1.000000, 1.000000, 1.000000;;, + 96;3; 1.000000, 1.000000, 1.000000;;, + 97;3; 1.000000, 1.000000, 1.000000;;, + 98;3; 1.000000, 1.000000, 1.000000;;, + 99;3; 1.000000, 1.000000, 1.000000;;, + 100;3; 1.000000, 1.000000, 1.000000;;, + 101;3; 1.000000, 1.000000, 1.000000;;; + } + } +} //End of AnimationSet diff --git a/mob_horse/readme.md b/mob_horse/readme.md new file mode 100644 index 0000000..952bc2e --- /dev/null +++ b/mob_horse/readme.md @@ -0,0 +1,18 @@ +# MOB Horse + +### Spawning +There are three different horse textures (white, brown, black) which will spawn on green grassy areas and dry dirt areas in Ethereal mapgen. + +--- +### Taming +Horses can be tamed with 10x wheat or apples which then allows the player to pick up the horse using a lasso and ride by right-clicking with a saddle. + +--- +### Horseshoes +Horseshoes can be crafted using steel, bronze, mese and diamond (4x ingots - 2 down either side with 1x block top middle) and placed on a horse by punching with the item. These can make horses run faster or jump higher depending on tier. + +--- +### Dead Horse +When riding a horse monsters will generally attack the horse first to get to player riding it, when horse dies the player is dismounted and it will drop any shoes or saddles in use as well as some horse meat. + +#### Lucky Blocks: 4 diff --git a/mob_horse/screenshot.png b/mob_horse/screenshot.png new file mode 100644 index 0000000..9691561 Binary files /dev/null and b/mob_horse/screenshot.png differ diff --git a/mob_horse/textures/mobs_horse.png b/mob_horse/textures/mobs_horse.png new file mode 100644 index 0000000..c7958bc Binary files /dev/null and b/mob_horse/textures/mobs_horse.png differ diff --git a/mob_horse/textures/mobs_horseara.png b/mob_horse/textures/mobs_horseara.png new file mode 100644 index 0000000..a11d68b Binary files /dev/null and b/mob_horse/textures/mobs_horseara.png differ diff --git a/mob_horse/textures/mobs_horsepeg.png b/mob_horse/textures/mobs_horsepeg.png new file mode 100644 index 0000000..4442c0d Binary files /dev/null and b/mob_horse/textures/mobs_horsepeg.png differ diff --git a/mob_horse/textures/mobs_horseshoe_bronze.png b/mob_horse/textures/mobs_horseshoe_bronze.png new file mode 100644 index 0000000..95ea057 Binary files /dev/null and b/mob_horse/textures/mobs_horseshoe_bronze.png differ diff --git a/mob_horse/textures/mobs_horseshoe_diamond.png b/mob_horse/textures/mobs_horseshoe_diamond.png new file mode 100644 index 0000000..7026f79 Binary files /dev/null and b/mob_horse/textures/mobs_horseshoe_diamond.png differ diff --git a/mob_horse/textures/mobs_horseshoe_mese.png b/mob_horse/textures/mobs_horseshoe_mese.png new file mode 100644 index 0000000..0a3ce62 Binary files /dev/null and b/mob_horse/textures/mobs_horseshoe_mese.png differ diff --git a/mob_horse/textures/mobs_horseshoe_steel.png b/mob_horse/textures/mobs_horseshoe_steel.png new file mode 100644 index 0000000..57ec7ce Binary files /dev/null and b/mob_horse/textures/mobs_horseshoe_steel.png differ diff --git a/morelights/LICENSE b/morelights/LICENSE new file mode 100644 index 0000000..0a04128 --- /dev/null +++ b/morelights/LICENSE @@ -0,0 +1,165 @@ + GNU LESSER GENERAL PUBLIC LICENSE + Version 3, 29 June 2007 + + Copyright (C) 2007 Free Software Foundation, Inc. + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + + This version of the GNU Lesser General Public License incorporates +the terms and conditions of version 3 of the GNU General Public +License, supplemented by the additional permissions listed below. + + 0. Additional Definitions. + + As used herein, "this License" refers to version 3 of the GNU Lesser +General Public License, and the "GNU GPL" refers to version 3 of the GNU +General Public License. + + "The Library" refers to a covered work governed by this License, +other than an Application or a Combined Work as defined below. + + An "Application" is any work that makes use of an interface provided +by the Library, but which is not otherwise based on the Library. +Defining a subclass of a class defined by the Library is deemed a mode +of using an interface provided by the Library. + + A "Combined Work" is a work produced by combining or linking an +Application with the Library. The particular version of the Library +with which the Combined Work was made is also called the "Linked +Version". + + The "Minimal Corresponding Source" for a Combined Work means the +Corresponding Source for the Combined Work, excluding any source code +for portions of the Combined Work that, considered in isolation, are +based on the Application, and not on the Linked Version. + + The "Corresponding Application Code" for a Combined Work means the +object code and/or source code for the Application, including any data +and utility programs needed for reproducing the Combined Work from the +Application, but excluding the System Libraries of the Combined Work. + + 1. Exception to Section 3 of the GNU GPL. + + You may convey a covered work under sections 3 and 4 of this License +without being bound by section 3 of the GNU GPL. + + 2. Conveying Modified Versions. + + If you modify a copy of the Library, and, in your modifications, a +facility refers to a function or data to be supplied by an Application +that uses the facility (other than as an argument passed when the +facility is invoked), then you may convey a copy of the modified +version: + + a) under this License, provided that you make a good faith effort to + ensure that, in the event an Application does not supply the + function or data, the facility still operates, and performs + whatever part of its purpose remains meaningful, or + + b) under the GNU GPL, with none of the additional permissions of + this License applicable to that copy. + + 3. Object Code Incorporating Material from Library Header Files. + + The object code form of an Application may incorporate material from +a header file that is part of the Library. You may convey such object +code under terms of your choice, provided that, if the incorporated +material is not limited to numerical parameters, data structure +layouts and accessors, or small macros, inline functions and templates +(ten or fewer lines in length), you do both of the following: + + a) Give prominent notice with each copy of the object code that the + Library is used in it and that the Library and its use are + covered by this License. + + b) Accompany the object code with a copy of the GNU GPL and this license + document. + + 4. Combined Works. + + You may convey a Combined Work under terms of your choice that, +taken together, effectively do not restrict modification of the +portions of the Library contained in the Combined Work and reverse +engineering for debugging such modifications, if you also do each of +the following: + + a) Give prominent notice with each copy of the Combined Work that + the Library is used in it and that the Library and its use are + covered by this License. + + b) Accompany the Combined Work with a copy of the GNU GPL and this license + document. + + c) For a Combined Work that displays copyright notices during + execution, include the copyright notice for the Library among + these notices, as well as a reference directing the user to the + copies of the GNU GPL and this license document. + + d) Do one of the following: + + 0) Convey the Minimal Corresponding Source under the terms of this + License, and the Corresponding Application Code in a form + suitable for, and under terms that permit, the user to + recombine or relink the Application with a modified version of + the Linked Version to produce a modified Combined Work, in the + manner specified by section 6 of the GNU GPL for conveying + Corresponding Source. + + 1) Use a suitable shared library mechanism for linking with the + Library. A suitable mechanism is one that (a) uses at run time + a copy of the Library already present on the user's computer + system, and (b) will operate properly with a modified version + of the Library that is interface-compatible with the Linked + Version. + + e) Provide Installation Information, but only if you would otherwise + be required to provide such information under section 6 of the + GNU GPL, and only to the extent that such information is + necessary to install and execute a modified version of the + Combined Work produced by recombining or relinking the + Application with a modified version of the Linked Version. (If + you use option 4d0, the Installation Information must accompany + the Minimal Corresponding Source and Corresponding Application + Code. If you use option 4d1, you must provide the Installation + Information in the manner specified by section 6 of the GNU GPL + for conveying Corresponding Source.) + + 5. Combined Libraries. + + You may place library facilities that are a work based on the +Library side by side in a single library together with other library +facilities that are not Applications and are not covered by this +License, and convey such a combined library under terms of your +choice, if you do both of the following: + + a) Accompany the combined library with a copy of the same work based + on the Library, uncombined with any other library facilities, + conveyed under the terms of this License. + + b) Give prominent notice with the combined library that part of it + is a work based on the Library, and explaining where to find the + accompanying uncombined form of the same work. + + 6. Revised Versions of the GNU Lesser General Public License. + + The Free Software Foundation may publish revised and/or new versions +of the GNU Lesser General Public License from time to time. Such new +versions will be similar in spirit to the present version, but may +differ in detail to address new problems or concerns. + + Each version is given a distinguishing version number. If the +Library as you received it specifies that a certain numbered version +of the GNU Lesser General Public License "or any later version" +applies to it, you have the option of following the terms and +conditions either of that published version or of any later version +published by the Free Software Foundation. If the Library as you +received it does not specify a version number of the GNU Lesser +General Public License, you may choose any version of the GNU Lesser +General Public License ever published by the Free Software Foundation. + + If the Library as you received it specifies that a proxy can decide +whether future versions of the GNU Lesser General Public License shall +apply, that proxy's public statement of acceptance of any version is +permanent authorization for you to choose that version for the +Library. diff --git a/morelights/README.md b/morelights/README.md new file mode 100644 index 0000000..8b06857 --- /dev/null +++ b/morelights/README.md @@ -0,0 +1,15 @@ +# morelights +Minetest mod adding additional lighting nodes. + +![Screenshot](https://raw.githubusercontent.com/random-geek/morelights/master/screenshot.png "Screenshot") + +The Morelights Modpack adds over 30 high-quality lighting nodes for your Minetest world. + +## Craft Recipes + +Recipes for dark-variant nodes are the same as those of the light variants, except with dark grey dye instead of white dye. + +![Craft Recipes](https://raw.githubusercontent.com/random-geek/morelights/master/crafts.png "Craft Recipes") + +## Licenses +Source code is licensed under the LGPL v3.0 license. All other media and assets are licensed under the CC BY-SA 4.0 license. diff --git a/morelights/crafts.png b/morelights/crafts.png new file mode 100644 index 0000000..b0e7828 Binary files /dev/null and b/morelights/crafts.png differ diff --git a/morelights/mod.conf b/morelights/mod.conf new file mode 100644 index 0000000..aed8744 --- /dev/null +++ b/morelights/mod.conf @@ -0,0 +1,2 @@ +name = mp_morelights +description = Morelights is a lightweight modpack providing flexible interior and exterior lighting options for different styles of builds. diff --git a/morelights/modpack.txt b/morelights/modpack.txt new file mode 100644 index 0000000..e69de29 diff --git a/morelights/morelights/depends.txt b/morelights/morelights/depends.txt new file mode 100644 index 0000000..583a185 --- /dev/null +++ b/morelights/morelights/depends.txt @@ -0,0 +1,3 @@ +default +dye +xpanes? diff --git a/morelights/morelights/init.lua b/morelights/morelights/init.lua new file mode 100644 index 0000000..eeaf0b2 --- /dev/null +++ b/morelights/morelights/init.lua @@ -0,0 +1,55 @@ +morelights = {} + +if minetest.get_modpath("xpanes") then + morelights.glass = "xpanes:pane_flat" +else + morelights.glass = "default:glass" +end + +function morelights.register_variants(variants, fixedDef) + for _,variant in ipairs(variants) do + local name = variant.name + local def = table.copy(fixedDef) + + for k,v in pairs(variant) do + if k ~= "name" then + def[k] = v + end + end + + minetest.register_node(name, def) + end +end + +function morelights.on_place_hanging(itemstack, placer, pointed_thing, replaceName) + local ceiling = minetest.get_node(vector.add(pointed_thing.above, + {x=0, y=1, z=0})) + + if ceiling and ceiling.name ~= "air" + and minetest.get_item_group(ceiling.name, "mounted_ceiling") == 0 + and not (placer and placer:get_player_control().sneak) then + + local name = itemstack:get_name() + local fakestack = itemstack + fakestack:set_name(replaceName) + + minetest.item_place(fakestack, placer, pointed_thing, 0) + itemstack:set_name(name) + + return itemstack + end + + minetest.item_place(itemstack, placer, pointed_thing, 0) + return itemstack +end + +function morelights.rotate_and_place(itemstack, placer, pointed_thing, lookup) + local dir = minetest.dir_to_wallmounted(vector.subtract(pointed_thing.under, pointed_thing.above)) + local fDirs = lookup or {[0] = 20, 0, 16, 12, 8, 4} + minetest.item_place(itemstack, placer, pointed_thing, fDirs[dir] or 0) + return itemstack +end + +local path = minetest.get_modpath("morelights") + +dofile(path .. "/nodes.lua") diff --git a/morelights/morelights/models/morelights_chain.obj b/morelights/morelights/models/morelights_chain.obj new file mode 100644 index 0000000..7040288 --- /dev/null +++ b/morelights/morelights/models/morelights_chain.obj @@ -0,0 +1,590 @@ +# Blender v2.79 (sub 0) OBJ File: 'chain_merged.blend' +# www.blender.org +o Torus +v 0.000000 0.343753 0.000000 +v 0.015625 0.359378 0.000000 +v 0.000000 0.375003 0.000000 +v -0.015625 0.359378 0.000000 +v 0.000000 0.375003 -0.054127 +v 0.015625 0.382815 -0.040595 +v 0.000000 0.390628 -0.027063 +v -0.015625 0.382815 -0.040595 +v 0.000000 0.500003 -0.054127 +v 0.015625 0.492190 -0.040595 +v 0.000000 0.484378 -0.027063 +v -0.015625 0.492190 -0.040595 +v 0.000000 0.531253 -0.000000 +v 0.015625 0.515628 -0.000000 +v 0.000000 0.500003 -0.000000 +v -0.015625 0.515628 -0.000000 +v 0.000000 0.500003 0.054127 +v 0.015625 0.492190 0.040595 +v 0.000000 0.484378 0.027063 +v -0.015625 0.492190 0.040595 +v 0.000000 0.375003 0.054127 +v 0.015625 0.382815 0.040595 +v 0.000000 0.390628 0.027063 +v -0.015625 0.382815 0.040595 +v 0.000000 -0.156247 0.000000 +v 0.015625 -0.140622 0.000000 +v 0.000000 -0.124997 0.000000 +v -0.015625 -0.140622 0.000000 +v 0.000000 -0.124997 -0.054127 +v 0.015625 -0.117185 -0.040595 +v 0.000000 -0.109372 -0.027063 +v -0.015625 -0.117185 -0.040595 +v -0.000000 0.000003 -0.054127 +v 0.015625 -0.007810 -0.040595 +v -0.000000 -0.015622 -0.027063 +v -0.015625 -0.007810 -0.040595 +v -0.000000 0.031253 -0.000000 +v 0.015625 0.015628 -0.000000 +v -0.000000 0.000003 -0.000000 +v -0.015625 0.015628 -0.000000 +v -0.000000 0.000003 0.054127 +v 0.015625 -0.007810 0.040595 +v -0.000000 -0.015622 0.027063 +v -0.015625 -0.007810 0.040595 +v 0.000000 -0.124997 0.054127 +v 0.015625 -0.117185 0.040595 +v 0.000000 -0.109372 0.027063 +v -0.015625 -0.117185 0.040595 +v 0.000000 -0.281247 0.000000 +v 0.000000 -0.265622 0.015625 +v 0.000000 -0.249997 0.000000 +v 0.000000 -0.265622 -0.015625 +v 0.054127 -0.249997 0.000000 +v 0.040595 -0.242185 0.015625 +v 0.027063 -0.234372 0.000000 +v 0.040595 -0.242185 -0.015625 +v 0.054127 -0.124997 0.000000 +v 0.040595 -0.132810 0.015625 +v 0.027063 -0.140622 0.000000 +v 0.040595 -0.132810 -0.015625 +v 0.000000 -0.093747 0.000000 +v -0.000000 -0.109372 0.015625 +v 0.000000 -0.109372 -0.015625 +v -0.054127 -0.124997 -0.000000 +v -0.040595 -0.132810 0.015625 +v -0.027063 -0.140622 -0.000000 +v -0.040595 -0.132810 -0.015625 +v -0.054127 -0.249997 -0.000000 +v -0.040595 -0.242185 0.015625 +v -0.027063 -0.234372 -0.000000 +v -0.040595 -0.242185 -0.015625 +v -0.000000 -0.531247 0.000000 +v -0.000000 -0.515622 0.015625 +v -0.000000 -0.499997 0.000000 +v -0.000000 -0.515622 -0.015625 +v 0.054127 -0.499997 0.000000 +v 0.040595 -0.492185 0.015625 +v 0.027063 -0.484372 0.000000 +v 0.040595 -0.492185 -0.015625 +v 0.054127 -0.374997 0.000000 +v 0.040595 -0.382810 0.015625 +v 0.027063 -0.390622 0.000000 +v 0.040595 -0.382810 -0.015625 +v -0.000000 -0.343747 0.000000 +v -0.000000 -0.359372 0.015625 +v -0.000000 -0.374997 0.000000 +v -0.000000 -0.359372 -0.015625 +v -0.054127 -0.374997 -0.000000 +v -0.040595 -0.382810 0.015625 +v -0.027063 -0.390622 -0.000000 +v -0.040595 -0.382810 -0.015625 +v -0.054127 -0.499997 -0.000000 +v -0.040595 -0.492185 0.015625 +v -0.027063 -0.484372 -0.000000 +v -0.040595 -0.492185 -0.015625 +v 0.000000 -0.406247 0.000000 +v 0.015625 -0.390622 0.000000 +v -0.015625 -0.390622 0.000000 +v 0.000000 -0.374997 -0.054127 +v 0.015625 -0.367185 -0.040595 +v 0.000000 -0.359372 -0.027063 +v -0.015625 -0.367185 -0.040595 +v -0.000000 -0.249997 -0.054127 +v 0.015625 -0.257810 -0.040595 +v -0.000000 -0.265622 -0.027063 +v -0.015625 -0.257810 -0.040595 +v -0.000000 -0.218747 -0.000000 +v 0.015625 -0.234372 -0.000000 +v -0.015625 -0.234372 -0.000000 +v -0.000000 -0.249997 0.054127 +v 0.015625 -0.257810 0.040595 +v -0.000000 -0.265622 0.027063 +v -0.015625 -0.257810 0.040595 +v 0.000000 -0.374997 0.054127 +v 0.015625 -0.367185 0.040595 +v 0.000000 -0.359372 0.027063 +v -0.015625 -0.367185 0.040595 +v 0.000000 0.093753 0.000000 +v 0.015625 0.109378 0.000000 +v -0.015625 0.109378 0.000000 +v 0.000000 0.125003 -0.054127 +v 0.015625 0.132815 -0.040595 +v 0.000000 0.140628 -0.027063 +v -0.015625 0.132815 -0.040595 +v 0.000000 0.250003 -0.054127 +v 0.015625 0.242190 -0.040595 +v 0.000000 0.234378 -0.027063 +v -0.015625 0.242190 -0.040595 +v 0.000000 0.281253 -0.000000 +v 0.015625 0.265628 -0.000000 +v 0.000000 0.250003 -0.000000 +v -0.015625 0.265628 -0.000000 +v 0.000000 0.250003 0.054127 +v 0.015625 0.242190 0.040595 +v 0.000000 0.234378 0.027063 +v -0.015625 0.242190 0.040595 +v 0.000000 0.125003 0.054127 +v 0.015625 0.132815 0.040595 +v 0.000000 0.140628 0.027063 +v -0.015625 0.132815 0.040595 +v 0.000000 -0.031247 0.000000 +v 0.000000 -0.015622 0.015625 +v 0.000000 -0.015622 -0.015625 +v 0.054127 0.000003 0.000000 +v 0.040595 0.007815 0.015625 +v 0.027063 0.015628 0.000000 +v 0.040595 0.007815 -0.015625 +v 0.054127 0.125003 0.000000 +v 0.040595 0.117190 0.015625 +v 0.027063 0.109378 0.000000 +v 0.040595 0.117190 -0.015625 +v 0.000000 0.156253 0.000000 +v 0.000000 0.140628 0.015625 +v 0.000000 0.125003 0.000000 +v 0.000000 0.140628 -0.015625 +v -0.054127 0.125003 -0.000000 +v -0.040595 0.117190 0.015625 +v -0.027063 0.109378 -0.000000 +v -0.040595 0.117190 -0.015625 +v -0.054127 0.000003 -0.000000 +v -0.040595 0.007815 0.015625 +v -0.027063 0.015628 -0.000000 +v -0.040595 0.007815 -0.015625 +v 0.000000 0.218753 0.000000 +v 0.000000 0.234378 0.015625 +v 0.000000 0.234378 -0.015625 +v 0.054127 0.250003 0.000000 +v 0.040595 0.257815 0.015625 +v 0.027063 0.265628 0.000000 +v 0.040595 0.257815 -0.015625 +v 0.054127 0.375003 0.000000 +v 0.040595 0.367190 0.015625 +v 0.027063 0.359378 0.000000 +v 0.040595 0.367190 -0.015625 +v 0.000000 0.406253 0.000000 +v 0.000000 0.390628 0.015625 +v 0.000000 0.390628 -0.015625 +v -0.054127 0.375003 -0.000000 +v -0.040595 0.367190 0.015625 +v -0.027063 0.359378 -0.000000 +v -0.040595 0.367190 -0.015625 +v -0.054127 0.250003 -0.000000 +v -0.040595 0.257815 0.015625 +v -0.027063 0.265628 -0.000000 +v -0.040595 0.257815 -0.015625 +vt 0.500000 0.823529 +vt 0.469913 0.852941 +vt 0.468750 0.860294 +vt 0.491315 0.838235 +vt 0.484957 0.867647 +vt 0.500000 0.852941 +vt 0.486120 0.860294 +vt 0.508685 0.838235 +vt 0.469913 0.970588 +vt 0.468750 0.963235 +vt 0.484957 0.955882 +vt 0.486120 0.963235 +vt 0.500000 1.000000 +vt 0.491315 0.985294 +vt 0.500000 0.970588 +vt 0.508685 0.985294 +vt 0.530087 0.970588 +vt 0.513880 0.963235 +vt 0.515043 0.955882 +vt 0.531250 0.963235 +vt 0.530087 0.852941 +vt 0.513880 0.860294 +vt 0.515043 0.867647 +vt 0.531250 0.860294 +vt 0.500000 0.352941 +vt 0.469913 0.382353 +vt 0.468750 0.389706 +vt 0.491315 0.367647 +vt 0.484957 0.397059 +vt 0.500000 0.382353 +vt 0.486120 0.389706 +vt 0.508685 0.367647 +vt 0.469913 0.500000 +vt 0.468750 0.492647 +vt 0.484957 0.485294 +vt 0.486120 0.492647 +vt 0.500000 0.529412 +vt 0.491315 0.514706 +vt 0.500000 0.500000 +vt 0.508685 0.514706 +vt 0.530087 0.500000 +vt 0.513880 0.492647 +vt 0.515043 0.485294 +vt 0.531250 0.492647 +vt 0.530087 0.382353 +vt 0.513880 0.389706 +vt 0.515043 0.397059 +vt 0.531250 0.389706 +vt 0.500000 0.235294 +vt 0.469913 0.264706 +vt 0.486120 0.272059 +vt 0.508685 0.250000 +vt 0.484957 0.279412 +vt 0.500000 0.264706 +vt 0.468750 0.272059 +vt 0.491315 0.250000 +vt 0.469913 0.382353 +vt 0.486120 0.375000 +vt 0.484957 0.367647 +vt 0.468750 0.375000 +vt 0.500000 0.411765 +vt 0.508685 0.397059 +vt 0.491315 0.397059 +vt 0.530087 0.382353 +vt 0.531250 0.375000 +vt 0.515043 0.367647 +vt 0.513880 0.375000 +vt 0.530087 0.264706 +vt 0.531250 0.272059 +vt 0.515043 0.279412 +vt 0.513880 0.272059 +vt 0.500000 0.000000 +vt 0.469913 0.029412 +vt 0.486120 0.036765 +vt 0.508685 0.014706 +vt 0.484957 0.044118 +vt 0.500000 0.029412 +vt 0.468750 0.036765 +vt 0.491315 0.014706 +vt 0.469913 0.147059 +vt 0.486120 0.139706 +vt 0.484957 0.132353 +vt 0.468750 0.139706 +vt 0.500000 0.176471 +vt 0.508685 0.161765 +vt 0.500000 0.147059 +vt 0.491315 0.161765 +vt 0.530087 0.147059 +vt 0.531250 0.139706 +vt 0.515043 0.132353 +vt 0.513880 0.139706 +vt 0.530087 0.029412 +vt 0.531250 0.036765 +vt 0.515043 0.044118 +vt 0.513880 0.036765 +vt 0.500000 0.117647 +vt 0.469913 0.147059 +vt 0.468750 0.154412 +vt 0.491315 0.132353 +vt 0.484957 0.161765 +vt 0.486120 0.154412 +vt 0.508685 0.132353 +vt 0.469913 0.264706 +vt 0.468750 0.257353 +vt 0.484957 0.250000 +vt 0.486120 0.257353 +vt 0.500000 0.294118 +vt 0.491315 0.279412 +vt 0.508685 0.279412 +vt 0.530087 0.264706 +vt 0.513880 0.257353 +vt 0.515043 0.250000 +vt 0.531250 0.257353 +vt 0.530087 0.147059 +vt 0.513880 0.154412 +vt 0.515043 0.161765 +vt 0.531250 0.154412 +vt 0.500000 0.588235 +vt 0.469913 0.617647 +vt 0.468750 0.625000 +vt 0.491315 0.602941 +vt 0.484957 0.632353 +vt 0.500000 0.617647 +vt 0.486120 0.625000 +vt 0.508685 0.602941 +vt 0.469913 0.735294 +vt 0.468750 0.727941 +vt 0.484957 0.720588 +vt 0.486120 0.727941 +vt 0.500000 0.764706 +vt 0.491315 0.750000 +vt 0.500000 0.735294 +vt 0.508685 0.750000 +vt 0.530087 0.735294 +vt 0.513880 0.727941 +vt 0.515043 0.720588 +vt 0.531250 0.727941 +vt 0.530087 0.617647 +vt 0.513880 0.625000 +vt 0.515043 0.632353 +vt 0.531250 0.625000 +vt 0.500000 0.470588 +vt 0.469913 0.500000 +vt 0.486120 0.507353 +vt 0.508685 0.485294 +vt 0.484957 0.514706 +vt 0.468750 0.507353 +vt 0.491315 0.485294 +vt 0.469913 0.617647 +vt 0.486120 0.610294 +vt 0.484957 0.602941 +vt 0.468750 0.610294 +vt 0.500000 0.647059 +vt 0.508685 0.632353 +vt 0.491315 0.632353 +vt 0.530087 0.617647 +vt 0.531250 0.610294 +vt 0.515043 0.602941 +vt 0.513880 0.610294 +vt 0.530087 0.500000 +vt 0.531250 0.507353 +vt 0.515043 0.514706 +vt 0.513880 0.507353 +vt 0.500000 0.705882 +vt 0.469913 0.735294 +vt 0.486120 0.742647 +vt 0.508685 0.720588 +vt 0.484957 0.750000 +vt 0.468750 0.742647 +vt 0.491315 0.720588 +vt 0.469913 0.852941 +vt 0.486120 0.845588 +vt 0.484957 0.838235 +vt 0.468750 0.845588 +vt 0.500000 0.882353 +vt 0.508685 0.867647 +vt 0.491315 0.867647 +vt 0.530087 0.852941 +vt 0.531250 0.845588 +vt 0.515043 0.838235 +vt 0.513880 0.845588 +vt 0.530087 0.735294 +vt 0.531250 0.742647 +vt 0.515043 0.750000 +vt 0.513880 0.742647 +vn 0.6547 -0.6547 -0.3780 +vn 0.6547 0.6547 0.3780 +vn -0.6547 0.6547 0.3780 +vn -0.6547 -0.6547 -0.3780 +vn 0.6547 0.0000 -0.7559 +vn 0.6547 0.0000 0.7559 +vn -0.6547 -0.0000 0.7559 +vn -0.6547 -0.0000 -0.7559 +vn 0.6547 0.6547 -0.3780 +vn 0.6547 -0.6547 0.3780 +vn -0.6547 -0.6547 0.3780 +vn -0.6547 0.6547 -0.3780 +vn 0.3780 -0.6547 0.6547 +vn -0.3780 0.6547 0.6547 +vn -0.3780 0.6547 -0.6547 +vn 0.3780 -0.6547 -0.6547 +vn 0.7559 0.0000 0.6547 +vn -0.7559 -0.0000 0.6547 +vn -0.7559 -0.0000 -0.6547 +vn 0.7559 0.0000 -0.6547 +vn 0.3780 0.6547 0.6547 +vn -0.3780 -0.6547 0.6547 +vn -0.3780 -0.6547 -0.6547 +vn 0.3780 0.6547 -0.6547 +s off +f 1/1/1 5/2/1 6/3/1 2/4/1 +f 2/4/2 6/3/2 7/5/2 3/6/2 +f 3/6/3 7/5/3 8/7/3 4/8/3 +f 4/8/4 8/7/4 5/2/4 1/1/4 +f 5/2/5 9/9/5 10/10/5 6/3/5 +f 6/3/6 10/10/6 11/11/6 7/5/6 +f 7/5/7 11/11/7 12/12/7 8/7/7 +f 8/7/8 12/12/8 9/9/8 5/2/8 +f 9/9/9 13/13/9 14/14/9 10/10/9 +f 10/10/10 14/14/10 15/15/10 11/11/10 +f 11/11/11 15/15/11 16/16/11 12/12/11 +f 12/12/12 16/16/12 13/13/12 9/9/12 +f 13/13/2 17/17/2 18/18/2 14/14/2 +f 14/14/1 18/18/1 19/19/1 15/15/1 +f 15/15/4 19/19/4 20/20/4 16/16/4 +f 16/16/3 20/20/3 17/17/3 13/13/3 +f 17/17/6 21/21/6 22/22/6 18/18/6 +f 18/18/5 22/22/5 23/23/5 19/19/5 +f 19/19/8 23/23/8 24/24/8 20/20/8 +f 20/20/7 24/24/7 21/21/7 17/17/7 +f 21/21/10 1/1/10 2/4/10 22/22/10 +f 22/22/9 2/4/9 3/6/9 23/23/9 +f 23/23/12 3/6/12 4/8/12 24/24/12 +f 24/24/11 4/8/11 1/1/11 21/21/11 +f 25/25/1 29/26/1 30/27/1 26/28/1 +f 26/28/2 30/27/2 31/29/2 27/30/2 +f 27/30/3 31/29/3 32/31/3 28/32/3 +f 28/32/4 32/31/4 29/26/4 25/25/4 +f 29/26/5 33/33/5 34/34/5 30/27/5 +f 30/27/6 34/34/6 35/35/6 31/29/6 +f 31/29/7 35/35/7 36/36/7 32/31/7 +f 32/31/8 36/36/8 33/33/8 29/26/8 +f 33/33/9 37/37/9 38/38/9 34/34/9 +f 34/34/10 38/38/10 39/39/10 35/35/10 +f 35/35/11 39/39/11 40/40/11 36/36/11 +f 36/36/12 40/40/12 37/37/12 33/33/12 +f 37/37/2 41/41/2 42/42/2 38/38/2 +f 38/38/1 42/42/1 43/43/1 39/39/1 +f 39/39/4 43/43/4 44/44/4 40/40/4 +f 40/40/3 44/44/3 41/41/3 37/37/3 +f 41/41/6 45/45/6 46/46/6 42/42/6 +f 42/42/5 46/46/5 47/47/5 43/43/5 +f 43/43/8 47/47/8 48/48/8 44/44/8 +f 44/44/7 48/48/7 45/45/7 41/41/7 +f 45/45/10 25/25/10 26/28/10 46/46/10 +f 46/46/9 26/28/9 27/30/9 47/47/9 +f 47/47/12 27/30/12 28/32/12 48/48/12 +f 48/48/11 28/32/11 25/25/11 45/45/11 +f 49/49/13 53/50/13 54/51/13 50/52/13 +f 50/52/14 54/51/14 55/53/14 51/54/14 +f 51/54/15 55/53/15 56/55/15 52/56/15 +f 52/56/16 56/55/16 53/50/16 49/49/16 +f 53/50/17 57/57/17 58/58/17 54/51/17 +f 54/51/18 58/58/18 59/59/18 55/53/18 +f 55/53/19 59/59/19 60/60/19 56/55/19 +f 56/55/20 60/60/20 57/57/20 53/50/20 +f 57/57/21 61/61/21 62/62/21 58/58/21 +f 58/58/22 62/62/22 27/30/22 59/59/22 +f 59/59/23 27/30/23 63/63/23 60/60/23 +f 60/60/24 63/63/24 61/61/24 57/57/24 +f 61/61/14 64/64/14 65/65/14 62/62/14 +f 62/62/13 65/65/13 66/66/13 27/30/13 +f 27/30/16 66/66/16 67/67/16 63/63/16 +f 63/63/15 67/67/15 64/64/15 61/61/15 +f 64/64/18 68/68/18 69/69/18 65/65/18 +f 65/65/17 69/69/17 70/70/17 66/66/17 +f 66/66/20 70/70/20 71/71/20 67/67/20 +f 67/67/19 71/71/19 68/68/19 64/64/19 +f 68/68/22 49/49/22 50/52/22 69/69/22 +f 69/69/21 50/52/21 51/54/21 70/70/21 +f 70/70/24 51/54/24 52/56/24 71/71/24 +f 71/71/23 52/56/23 49/49/23 68/68/23 +f 72/72/13 76/73/13 77/74/13 73/75/13 +f 73/75/14 77/74/14 78/76/14 74/77/14 +f 74/77/15 78/76/15 79/78/15 75/79/15 +f 75/79/16 79/78/16 76/73/16 72/72/16 +f 76/73/17 80/80/17 81/81/17 77/74/17 +f 77/74/18 81/81/18 82/82/18 78/76/18 +f 78/76/19 82/82/19 83/83/19 79/78/19 +f 79/78/20 83/83/20 80/80/20 76/73/20 +f 80/80/21 84/84/21 85/85/21 81/81/21 +f 81/81/22 85/85/22 86/86/22 82/82/22 +f 82/82/23 86/86/23 87/87/23 83/83/23 +f 83/83/24 87/87/24 84/84/24 80/80/24 +f 84/84/14 88/88/14 89/89/14 85/85/14 +f 85/85/13 89/89/13 90/90/13 86/86/13 +f 86/86/16 90/90/16 91/91/16 87/87/16 +f 87/87/15 91/91/15 88/88/15 84/84/15 +f 88/88/18 92/92/18 93/93/18 89/89/18 +f 89/89/17 93/93/17 94/94/17 90/90/17 +f 90/90/20 94/94/20 95/95/20 91/91/20 +f 91/91/19 95/95/19 92/92/19 88/88/19 +f 92/92/22 72/72/22 73/75/22 93/93/22 +f 93/93/21 73/75/21 74/77/21 94/94/21 +f 94/94/24 74/77/24 75/79/24 95/95/24 +f 95/95/23 75/79/23 72/72/23 92/92/23 +f 96/96/1 99/97/1 100/98/1 97/99/1 +f 97/99/2 100/98/2 101/100/2 86/86/2 +f 86/86/3 101/100/3 102/101/3 98/102/3 +f 98/102/4 102/101/4 99/97/4 96/96/4 +f 99/97/5 103/103/5 104/104/5 100/98/5 +f 100/98/6 104/104/6 105/105/6 101/100/6 +f 101/100/7 105/105/7 106/106/7 102/101/7 +f 102/101/8 106/106/8 103/103/8 99/97/8 +f 103/103/9 107/107/9 108/108/9 104/104/9 +f 104/104/10 108/108/10 51/54/10 105/105/10 +f 105/105/11 51/54/11 109/109/11 106/106/11 +f 106/106/12 109/109/12 107/107/12 103/103/12 +f 107/107/2 110/110/2 111/111/2 108/108/2 +f 108/108/1 111/111/1 112/112/1 51/54/1 +f 51/54/4 112/112/4 113/113/4 109/109/4 +f 109/109/3 113/113/3 110/110/3 107/107/3 +f 110/110/6 114/114/6 115/115/6 111/111/6 +f 111/111/5 115/115/5 116/116/5 112/112/5 +f 112/112/8 116/116/8 117/117/8 113/113/8 +f 113/113/7 117/117/7 114/114/7 110/110/7 +f 114/114/10 96/96/10 97/99/10 115/115/10 +f 115/115/9 97/99/9 86/86/9 116/116/9 +f 116/116/12 86/86/12 98/102/12 117/117/12 +f 117/117/11 98/102/11 96/96/11 114/114/11 +f 118/118/1 121/119/1 122/120/1 119/121/1 +f 119/121/2 122/120/2 123/122/2 154/123/2 +f 154/123/3 123/122/3 124/124/3 120/125/3 +f 120/125/4 124/124/4 121/119/4 118/118/4 +f 121/119/5 125/126/5 126/127/5 122/120/5 +f 122/120/6 126/127/6 127/128/6 123/122/6 +f 123/122/7 127/128/7 128/129/7 124/124/7 +f 124/124/8 128/129/8 125/126/8 121/119/8 +f 125/126/9 129/130/9 130/131/9 126/127/9 +f 126/127/10 130/131/10 131/132/10 127/128/10 +f 127/128/11 131/132/11 132/133/11 128/129/11 +f 128/129/12 132/133/12 129/130/12 125/126/12 +f 129/130/2 133/134/2 134/135/2 130/131/2 +f 130/131/1 134/135/1 135/136/1 131/132/1 +f 131/132/4 135/136/4 136/137/4 132/133/4 +f 132/133/3 136/137/3 133/134/3 129/130/3 +f 133/134/6 137/138/6 138/139/6 134/135/6 +f 134/135/5 138/139/5 139/140/5 135/136/5 +f 135/136/8 139/140/8 140/141/8 136/137/8 +f 136/137/7 140/141/7 137/138/7 133/134/7 +f 137/138/10 118/118/10 119/121/10 138/139/10 +f 138/139/9 119/121/9 154/123/9 139/140/9 +f 139/140/12 154/123/12 120/125/12 140/141/12 +f 140/141/11 120/125/11 118/118/11 137/138/11 +f 141/142/13 144/143/13 145/144/13 142/145/13 +f 142/145/14 145/144/14 146/146/14 39/39/14 +f 39/39/15 146/146/15 147/147/15 143/148/15 +f 143/148/16 147/147/16 144/143/16 141/142/16 +f 144/143/17 148/149/17 149/150/17 145/144/17 +f 145/144/18 149/150/18 150/151/18 146/146/18 +f 146/146/19 150/151/19 151/152/19 147/147/19 +f 147/147/20 151/152/20 148/149/20 144/143/20 +f 148/149/21 152/153/21 153/154/21 149/150/21 +f 149/150/22 153/154/22 154/123/22 150/151/22 +f 150/151/23 154/123/23 155/155/23 151/152/23 +f 151/152/24 155/155/24 152/153/24 148/149/24 +f 152/153/14 156/156/14 157/157/14 153/154/14 +f 153/154/13 157/157/13 158/158/13 154/123/13 +f 154/123/16 158/158/16 159/159/16 155/155/16 +f 155/155/15 159/159/15 156/156/15 152/153/15 +f 156/156/18 160/160/18 161/161/18 157/157/18 +f 157/157/17 161/161/17 162/162/17 158/158/17 +f 158/158/20 162/162/20 163/163/20 159/159/20 +f 159/159/19 163/163/19 160/160/19 156/156/19 +f 160/160/22 141/142/22 142/145/22 161/161/22 +f 161/161/21 142/145/21 39/39/21 162/162/21 +f 162/162/24 39/39/24 143/148/24 163/163/24 +f 163/163/23 143/148/23 141/142/23 160/160/23 +f 164/164/13 167/165/13 168/166/13 165/167/13 +f 165/167/14 168/166/14 169/168/14 131/132/14 +f 131/132/15 169/168/15 170/169/15 166/170/15 +f 166/170/16 170/169/16 167/165/16 164/164/16 +f 167/165/17 171/171/17 172/172/17 168/166/17 +f 168/166/18 172/172/18 173/173/18 169/168/18 +f 169/168/19 173/173/19 174/174/19 170/169/19 +f 170/169/20 174/174/20 171/171/20 167/165/20 +f 171/171/21 175/175/21 176/176/21 172/172/21 +f 172/172/22 176/176/22 3/6/22 173/173/22 +f 173/173/23 3/6/23 177/177/23 174/174/23 +f 174/174/24 177/177/24 175/175/24 171/171/24 +f 175/175/14 178/178/14 179/179/14 176/176/14 +f 176/176/13 179/179/13 180/180/13 3/6/13 +f 3/6/16 180/180/16 181/181/16 177/177/16 +f 177/177/15 181/181/15 178/178/15 175/175/15 +f 178/178/18 182/182/18 183/183/18 179/179/18 +f 179/179/17 183/183/17 184/184/17 180/180/17 +f 180/180/20 184/184/20 185/185/20 181/181/20 +f 181/181/19 185/185/19 182/182/19 178/178/19 +f 182/182/22 164/164/22 165/167/22 183/183/22 +f 183/183/21 165/167/21 131/132/21 184/184/21 +f 184/184/24 131/132/24 166/170/24 185/185/24 +f 185/185/23 166/170/23 164/164/23 182/182/23 diff --git a/morelights/morelights/models/morelights_chain_ceiling.obj b/morelights/morelights/models/morelights_chain_ceiling.obj new file mode 100644 index 0000000..1caf2fc --- /dev/null +++ b/morelights/morelights/models/morelights_chain_ceiling.obj @@ -0,0 +1,620 @@ +# Blender v2.79 (sub 0) OBJ File: 'chain_ceiling.blend' +# www.blender.org +o Cube +v -0.187500 0.437500 0.187500 +v -0.187500 0.500000 0.187500 +v -0.187500 0.437500 -0.187500 +v -0.187500 0.500000 -0.187500 +v 0.187500 0.437500 0.187500 +v 0.187500 0.500000 0.187500 +v 0.187500 0.437500 -0.187500 +v 0.187500 0.500000 -0.187500 +vt 0.687500 0.937500 +vt 0.687500 1.000000 +vt 0.312500 1.000000 +vt 0.312500 0.937500 +vt 0.687500 0.937500 +vt 0.687500 1.000000 +vt 0.312500 1.000000 +vt 0.312500 0.937500 +vt 0.687500 0.937500 +vt 0.687500 1.000000 +vt 0.312500 1.000000 +vt 0.312500 0.937500 +vt 0.687500 0.937500 +vt 0.687500 1.000000 +vt 0.312500 1.000000 +vt 0.312500 0.937500 +vt 0.312500 0.312500 +vt 0.312500 0.687500 +vt 0.687500 0.687500 +vt 0.687500 0.312500 +vt 0.312500 0.312500 +vt 0.687500 0.312500 +vt 0.687500 0.687500 +vt 0.312500 0.687500 +vn -1.0000 0.0000 0.0000 +vn 0.0000 0.0000 -1.0000 +vn 1.0000 0.0000 0.0000 +vn 0.0000 0.0000 1.0000 +vn 0.0000 -1.0000 0.0000 +vn 0.0000 1.0000 0.0000 +s off +f 1/1/1 2/2/1 4/3/1 3/4/1 +f 3/5/2 4/6/2 8/7/2 7/8/2 +f 7/9/3 8/10/3 6/11/3 5/12/3 +f 5/13/4 6/14/4 2/15/4 1/16/4 +f 3/17/5 7/18/5 5/19/5 1/20/5 +f 8/21/6 4/22/6 2/23/6 6/24/6 +o Torus +v 0.000000 0.343753 0.000000 +v 0.015625 0.359378 0.000000 +v 0.000000 0.375003 0.000000 +v -0.015625 0.359378 0.000000 +v 0.000000 0.375003 -0.054127 +v 0.015625 0.382815 -0.040595 +v 0.000000 0.390628 -0.027063 +v -0.015625 0.382815 -0.040595 +v 0.000000 0.375003 0.054127 +v 0.015625 0.382815 0.040595 +v 0.000000 0.390628 0.027063 +v -0.015625 0.382815 0.040595 +v 0.000000 -0.156247 0.000000 +v 0.015625 -0.140622 0.000000 +v 0.000000 -0.124997 0.000000 +v -0.015625 -0.140622 0.000000 +v 0.000000 -0.124997 -0.054127 +v 0.015625 -0.117185 -0.040595 +v 0.000000 -0.109372 -0.027063 +v -0.015625 -0.117185 -0.040595 +v -0.000000 0.000003 -0.054127 +v 0.015625 -0.007810 -0.040595 +v -0.000000 -0.015622 -0.027063 +v -0.015625 -0.007810 -0.040595 +v -0.000000 0.031253 -0.000000 +v 0.015625 0.015628 -0.000000 +v -0.000000 0.000003 -0.000000 +v -0.015625 0.015628 -0.000000 +v -0.000000 0.000003 0.054127 +v 0.015625 -0.007810 0.040595 +v -0.000000 -0.015622 0.027063 +v -0.015625 -0.007810 0.040595 +v 0.000000 -0.124997 0.054127 +v 0.015625 -0.117185 0.040595 +v 0.000000 -0.109372 0.027063 +v -0.015625 -0.117185 0.040595 +v 0.000000 -0.281247 0.000000 +v 0.000000 -0.265622 0.015625 +v 0.000000 -0.249997 0.000000 +v 0.000000 -0.265622 -0.015625 +v 0.054127 -0.249997 0.000000 +v 0.040595 -0.242185 0.015625 +v 0.027063 -0.234372 0.000000 +v 0.040595 -0.242185 -0.015625 +v 0.054127 -0.124997 0.000000 +v 0.040595 -0.132810 0.015625 +v 0.027063 -0.140622 0.000000 +v 0.040595 -0.132810 -0.015625 +v 0.000000 -0.093747 0.000000 +v -0.000000 -0.109372 0.015625 +v 0.000000 -0.109372 -0.015625 +v -0.054127 -0.124997 -0.000000 +v -0.040595 -0.132810 0.015625 +v -0.027063 -0.140622 -0.000000 +v -0.040595 -0.132810 -0.015625 +v -0.054127 -0.249997 -0.000000 +v -0.040595 -0.242185 0.015625 +v -0.027063 -0.234372 -0.000000 +v -0.040595 -0.242185 -0.015625 +v -0.000000 -0.531247 0.000000 +v -0.000000 -0.515622 0.015625 +v -0.000000 -0.499997 0.000000 +v -0.000000 -0.515622 -0.015625 +v 0.054127 -0.499997 0.000000 +v 0.040595 -0.492185 0.015625 +v 0.027063 -0.484372 0.000000 +v 0.040595 -0.492185 -0.015625 +v 0.054127 -0.374997 0.000000 +v 0.040595 -0.382810 0.015625 +v 0.027063 -0.390622 0.000000 +v 0.040595 -0.382810 -0.015625 +v -0.000000 -0.343747 0.000000 +v -0.000000 -0.359372 0.015625 +v -0.000000 -0.374997 0.000000 +v -0.000000 -0.359372 -0.015625 +v -0.054127 -0.374997 -0.000000 +v -0.040595 -0.382810 0.015625 +v -0.027063 -0.390622 -0.000000 +v -0.040595 -0.382810 -0.015625 +v -0.054127 -0.499997 -0.000000 +v -0.040595 -0.492185 0.015625 +v -0.027063 -0.484372 -0.000000 +v -0.040595 -0.492185 -0.015625 +v 0.000000 -0.406247 0.000000 +v 0.015625 -0.390622 0.000000 +v -0.015625 -0.390622 0.000000 +v 0.000000 -0.374997 -0.054127 +v 0.015625 -0.367185 -0.040595 +v 0.000000 -0.359372 -0.027063 +v -0.015625 -0.367185 -0.040595 +v -0.000000 -0.249997 -0.054127 +v 0.015625 -0.257810 -0.040595 +v -0.000000 -0.265622 -0.027063 +v -0.015625 -0.257810 -0.040595 +v -0.000000 -0.218747 -0.000000 +v 0.015625 -0.234372 -0.000000 +v -0.015625 -0.234372 -0.000000 +v -0.000000 -0.249997 0.054127 +v 0.015625 -0.257810 0.040595 +v -0.000000 -0.265622 0.027063 +v -0.015625 -0.257810 0.040595 +v 0.000000 -0.374997 0.054127 +v 0.015625 -0.367185 0.040595 +v 0.000000 -0.359372 0.027063 +v -0.015625 -0.367185 0.040595 +v 0.000000 0.093753 0.000000 +v 0.015625 0.109378 0.000000 +v -0.015625 0.109378 0.000000 +v 0.000000 0.125003 -0.054127 +v 0.015625 0.132815 -0.040595 +v 0.000000 0.140628 -0.027063 +v -0.015625 0.132815 -0.040595 +v 0.000000 0.250003 -0.054127 +v 0.015625 0.242190 -0.040595 +v 0.000000 0.234378 -0.027063 +v -0.015625 0.242190 -0.040595 +v 0.000000 0.281253 -0.000000 +v 0.015625 0.265628 -0.000000 +v 0.000000 0.250003 -0.000000 +v -0.015625 0.265628 -0.000000 +v 0.000000 0.250003 0.054127 +v 0.015625 0.242190 0.040595 +v 0.000000 0.234378 0.027063 +v -0.015625 0.242190 0.040595 +v 0.000000 0.125003 0.054127 +v 0.015625 0.132815 0.040595 +v 0.000000 0.140628 0.027063 +v -0.015625 0.132815 0.040595 +v 0.000000 -0.031247 0.000000 +v 0.000000 -0.015622 0.015625 +v 0.000000 -0.015622 -0.015625 +v 0.054127 0.000003 0.000000 +v 0.040595 0.007815 0.015625 +v 0.027063 0.015628 0.000000 +v 0.040595 0.007815 -0.015625 +v 0.054127 0.125003 0.000000 +v 0.040595 0.117190 0.015625 +v 0.027063 0.109378 0.000000 +v 0.040595 0.117190 -0.015625 +v 0.000000 0.156253 0.000000 +v 0.000000 0.140628 0.015625 +v 0.000000 0.125003 0.000000 +v 0.000000 0.140628 -0.015625 +v -0.054127 0.125003 -0.000000 +v -0.040595 0.117190 0.015625 +v -0.027063 0.109378 -0.000000 +v -0.040595 0.117190 -0.015625 +v -0.054127 0.000003 -0.000000 +v -0.040595 0.007815 0.015625 +v -0.027063 0.015628 -0.000000 +v -0.040595 0.007815 -0.015625 +v 0.000000 0.218753 0.000000 +v 0.000000 0.234378 0.015625 +v 0.000000 0.234378 -0.015625 +v 0.054127 0.250003 0.000000 +v 0.040595 0.257815 0.015625 +v 0.027063 0.265628 0.000000 +v 0.040595 0.257815 -0.015625 +v 0.054127 0.375003 0.000000 +v 0.040595 0.367190 0.015625 +v 0.027063 0.359378 0.000000 +v 0.040595 0.367190 -0.015625 +v 0.000000 0.406253 0.000000 +v 0.000000 0.390628 0.015625 +v 0.000000 0.390628 -0.015625 +v -0.054127 0.375003 -0.000000 +v -0.040595 0.367190 0.015625 +v -0.027063 0.359378 -0.000000 +v -0.040595 0.367190 -0.015625 +v -0.054127 0.250003 -0.000000 +v -0.040595 0.257815 0.015625 +v -0.027063 0.265628 -0.000000 +v -0.040595 0.257815 -0.015625 +v 0.000000 0.437500 0.054127 +v -0.015625 0.437500 0.040595 +v 0.000000 0.437500 0.027063 +v 0.015625 0.437500 0.040595 +v 0.000000 0.437500 -0.054127 +v 0.015625 0.437500 -0.040595 +v -0.015625 0.437500 -0.040595 +v 0.000000 0.437500 -0.027063 +vt 0.500000 0.823529 +vt 0.469913 0.852941 +vt 0.468750 0.860294 +vt 0.491315 0.838235 +vt 0.484957 0.867647 +vt 0.500000 0.852941 +vt 0.486120 0.860294 +vt 0.508685 0.838235 +vt 0.469913 0.911762 +vt 0.468750 0.911762 +vt 0.484957 0.911762 +vt 0.486120 0.911762 +vt 0.530087 0.852941 +vt 0.513880 0.860294 +vt 0.515043 0.867647 +vt 0.531250 0.860294 +vt 0.500000 0.352941 +vt 0.469913 0.382353 +vt 0.468750 0.389706 +vt 0.491315 0.367647 +vt 0.484957 0.397059 +vt 0.500000 0.382353 +vt 0.486120 0.389706 +vt 0.508685 0.367647 +vt 0.469913 0.500000 +vt 0.468750 0.492647 +vt 0.484957 0.485294 +vt 0.486120 0.492647 +vt 0.500000 0.529412 +vt 0.491315 0.514706 +vt 0.500000 0.500000 +vt 0.508685 0.514706 +vt 0.530087 0.500000 +vt 0.513880 0.492647 +vt 0.515043 0.485294 +vt 0.531250 0.492647 +vt 0.530087 0.382353 +vt 0.513880 0.389706 +vt 0.515043 0.397059 +vt 0.531250 0.389706 +vt 0.500000 0.235294 +vt 0.469913 0.264706 +vt 0.486120 0.272059 +vt 0.508685 0.250000 +vt 0.484957 0.279412 +vt 0.500000 0.264706 +vt 0.468750 0.272059 +vt 0.491315 0.250000 +vt 0.469913 0.382353 +vt 0.486120 0.375000 +vt 0.484957 0.367647 +vt 0.468750 0.375000 +vt 0.500000 0.411765 +vt 0.508685 0.397059 +vt 0.491315 0.397059 +vt 0.530087 0.382353 +vt 0.531250 0.375000 +vt 0.515043 0.367647 +vt 0.513880 0.375000 +vt 0.530087 0.264706 +vt 0.531250 0.272059 +vt 0.515043 0.279412 +vt 0.513880 0.272059 +vt 0.500000 0.000000 +vt 0.469913 0.029412 +vt 0.486120 0.036765 +vt 0.508685 0.014706 +vt 0.484957 0.044118 +vt 0.500000 0.029412 +vt 0.468750 0.036765 +vt 0.491315 0.014706 +vt 0.469913 0.147059 +vt 0.486120 0.139706 +vt 0.484957 0.132353 +vt 0.468750 0.139706 +vt 0.500000 0.176471 +vt 0.508685 0.161765 +vt 0.500000 0.147059 +vt 0.491315 0.161765 +vt 0.530087 0.147059 +vt 0.531250 0.139706 +vt 0.515043 0.132353 +vt 0.513880 0.139706 +vt 0.530087 0.029412 +vt 0.531250 0.036765 +vt 0.515043 0.044118 +vt 0.513880 0.036765 +vt 0.500000 0.117647 +vt 0.469913 0.147059 +vt 0.468750 0.154412 +vt 0.491315 0.132353 +vt 0.484957 0.161765 +vt 0.486120 0.154412 +vt 0.508685 0.132353 +vt 0.469913 0.264706 +vt 0.468750 0.257353 +vt 0.484957 0.250000 +vt 0.486120 0.257353 +vt 0.500000 0.294118 +vt 0.491315 0.279412 +vt 0.508685 0.279412 +vt 0.530087 0.264706 +vt 0.513880 0.257353 +vt 0.515043 0.250000 +vt 0.531250 0.257353 +vt 0.530087 0.147059 +vt 0.513880 0.154412 +vt 0.515043 0.161765 +vt 0.531250 0.154412 +vt 0.500000 0.588235 +vt 0.469913 0.617647 +vt 0.468750 0.625000 +vt 0.491315 0.602941 +vt 0.484957 0.632353 +vt 0.500000 0.617647 +vt 0.486120 0.625000 +vt 0.508685 0.602941 +vt 0.469913 0.735294 +vt 0.468750 0.727941 +vt 0.484957 0.720588 +vt 0.486120 0.727941 +vt 0.500000 0.764706 +vt 0.491315 0.750000 +vt 0.500000 0.735294 +vt 0.508685 0.750000 +vt 0.530087 0.735294 +vt 0.513880 0.727941 +vt 0.515043 0.720588 +vt 0.531250 0.727941 +vt 0.530087 0.617647 +vt 0.513880 0.625000 +vt 0.515043 0.632353 +vt 0.531250 0.625000 +vt 0.500000 0.470588 +vt 0.469913 0.500000 +vt 0.486120 0.507353 +vt 0.508685 0.485294 +vt 0.484957 0.514706 +vt 0.468750 0.507353 +vt 0.491315 0.485294 +vt 0.469913 0.617647 +vt 0.486120 0.610294 +vt 0.484957 0.602941 +vt 0.468750 0.610294 +vt 0.500000 0.647059 +vt 0.508685 0.632353 +vt 0.491315 0.632353 +vt 0.530087 0.617647 +vt 0.531250 0.610294 +vt 0.515043 0.602941 +vt 0.513880 0.610294 +vt 0.530087 0.500000 +vt 0.531250 0.507353 +vt 0.515043 0.514706 +vt 0.513880 0.507353 +vt 0.500000 0.705882 +vt 0.469913 0.735294 +vt 0.486120 0.742647 +vt 0.508685 0.720588 +vt 0.484957 0.750000 +vt 0.468750 0.742647 +vt 0.491315 0.720588 +vt 0.469913 0.852941 +vt 0.486120 0.845588 +vt 0.484957 0.838235 +vt 0.468750 0.845588 +vt 0.500000 0.882353 +vt 0.508685 0.867647 +vt 0.491315 0.867647 +vt 0.530087 0.852941 +vt 0.531250 0.845588 +vt 0.515043 0.838235 +vt 0.513880 0.845588 +vt 0.530087 0.735294 +vt 0.531250 0.742647 +vt 0.515043 0.750000 +vt 0.513880 0.742647 +vt 0.530087 0.911762 +vt 0.531250 0.911762 +vt 0.515043 0.911762 +vt 0.513880 0.911762 +vn 0.6547 -0.6547 -0.3780 +vn 0.6547 0.6547 0.3780 +vn -0.6547 0.6547 0.3780 +vn -0.6547 -0.6547 -0.3780 +vn 0.6547 0.0000 -0.7559 +vn 0.6547 0.0000 0.7559 +vn -0.6547 -0.0000 0.7559 +vn -0.6547 -0.0000 -0.7559 +vn 0.6547 -0.6547 0.3780 +vn 0.6547 0.6547 -0.3780 +vn -0.6547 0.6547 -0.3780 +vn -0.6547 -0.6547 0.3780 +vn 0.3780 -0.6547 0.6547 +vn -0.3780 0.6547 0.6547 +vn -0.3780 0.6547 -0.6547 +vn 0.3780 -0.6547 -0.6547 +vn 0.7559 0.0000 0.6547 +vn -0.7559 -0.0000 0.6547 +vn -0.7559 -0.0000 -0.6547 +vn 0.7559 0.0000 -0.6547 +vn 0.3780 0.6547 0.6547 +vn -0.3780 -0.6547 0.6547 +vn -0.3780 -0.6547 -0.6547 +vn 0.3780 0.6547 -0.6547 +s off +f 9/25/7 13/26/7 14/27/7 10/28/7 +f 10/28/8 14/27/8 15/29/8 11/30/8 +f 11/30/9 15/29/9 16/31/9 12/32/9 +f 12/32/10 16/31/10 13/26/10 9/25/10 +f 13/26/11 186/33/11 187/34/11 14/27/11 +f 14/27/12 187/34/12 189/35/12 15/29/12 +f 15/29/13 189/35/13 188/36/13 16/31/13 +f 16/31/14 188/36/14 186/33/14 13/26/14 +f 17/37/15 9/25/15 10/28/15 18/38/15 +f 18/38/16 10/28/16 11/30/16 19/39/16 +f 19/39/17 11/30/17 12/32/17 20/40/17 +f 20/40/18 12/32/18 9/25/18 17/37/18 +f 21/41/7 25/42/7 26/43/7 22/44/7 +f 22/44/8 26/43/8 27/45/8 23/46/8 +f 23/46/9 27/45/9 28/47/9 24/48/9 +f 24/48/10 28/47/10 25/42/10 21/41/10 +f 25/42/11 29/49/11 30/50/11 26/43/11 +f 26/43/12 30/50/12 31/51/12 27/45/12 +f 27/45/13 31/51/13 32/52/13 28/47/13 +f 28/47/14 32/52/14 29/49/14 25/42/14 +f 29/49/16 33/53/16 34/54/16 30/50/16 +f 30/50/15 34/54/15 35/55/15 31/51/15 +f 31/51/18 35/55/18 36/56/18 32/52/18 +f 32/52/17 36/56/17 33/53/17 29/49/17 +f 33/53/8 37/57/8 38/58/8 34/54/8 +f 34/54/7 38/58/7 39/59/7 35/55/7 +f 35/55/10 39/59/10 40/60/10 36/56/10 +f 36/56/9 40/60/9 37/57/9 33/53/9 +f 37/57/12 41/61/12 42/62/12 38/58/12 +f 38/58/11 42/62/11 43/63/11 39/59/11 +f 39/59/14 43/63/14 44/64/14 40/60/14 +f 40/60/13 44/64/13 41/61/13 37/57/13 +f 41/61/15 21/41/15 22/44/15 42/62/15 +f 42/62/16 22/44/16 23/46/16 43/63/16 +f 43/63/17 23/46/17 24/48/17 44/64/17 +f 44/64/18 24/48/18 21/41/18 41/61/18 +f 45/65/19 49/66/19 50/67/19 46/68/19 +f 46/68/20 50/67/20 51/69/20 47/70/20 +f 47/70/21 51/69/21 52/71/21 48/72/21 +f 48/72/22 52/71/22 49/66/22 45/65/22 +f 49/66/23 53/73/23 54/74/23 50/67/23 +f 50/67/24 54/74/24 55/75/24 51/69/24 +f 51/69/25 55/75/25 56/76/25 52/71/25 +f 52/71/26 56/76/26 53/73/26 49/66/26 +f 53/73/27 57/77/27 58/78/27 54/74/27 +f 54/74/28 58/78/28 23/46/28 55/75/28 +f 55/75/29 23/46/29 59/79/29 56/76/29 +f 56/76/30 59/79/30 57/77/30 53/73/30 +f 57/77/20 60/80/20 61/81/20 58/78/20 +f 58/78/19 61/81/19 62/82/19 23/46/19 +f 23/46/22 62/82/22 63/83/22 59/79/22 +f 59/79/21 63/83/21 60/80/21 57/77/21 +f 60/80/24 64/84/24 65/85/24 61/81/24 +f 61/81/23 65/85/23 66/86/23 62/82/23 +f 62/82/26 66/86/26 67/87/26 63/83/26 +f 63/83/25 67/87/25 64/84/25 60/80/25 +f 64/84/28 45/65/28 46/68/28 65/85/28 +f 65/85/27 46/68/27 47/70/27 66/86/27 +f 66/86/30 47/70/30 48/72/30 67/87/30 +f 67/87/29 48/72/29 45/65/29 64/84/29 +f 68/88/19 72/89/19 73/90/19 69/91/19 +f 69/91/20 73/90/20 74/92/20 70/93/20 +f 70/93/21 74/92/21 75/94/21 71/95/21 +f 71/95/22 75/94/22 72/89/22 68/88/22 +f 72/89/23 76/96/23 77/97/23 73/90/23 +f 73/90/24 77/97/24 78/98/24 74/92/24 +f 74/92/25 78/98/25 79/99/25 75/94/25 +f 75/94/26 79/99/26 76/96/26 72/89/26 +f 76/96/27 80/100/27 81/101/27 77/97/27 +f 77/97/28 81/101/28 82/102/28 78/98/28 +f 78/98/29 82/102/29 83/103/29 79/99/29 +f 79/99/30 83/103/30 80/100/30 76/96/30 +f 80/100/20 84/104/20 85/105/20 81/101/20 +f 81/101/19 85/105/19 86/106/19 82/102/19 +f 82/102/22 86/106/22 87/107/22 83/103/22 +f 83/103/21 87/107/21 84/104/21 80/100/21 +f 84/104/24 88/108/24 89/109/24 85/105/24 +f 85/105/23 89/109/23 90/110/23 86/106/23 +f 86/106/26 90/110/26 91/111/26 87/107/26 +f 87/107/25 91/111/25 88/108/25 84/104/25 +f 88/108/28 68/88/28 69/91/28 89/109/28 +f 89/109/27 69/91/27 70/93/27 90/110/27 +f 90/110/30 70/93/30 71/95/30 91/111/30 +f 91/111/29 71/95/29 68/88/29 88/108/29 +f 92/112/7 95/113/7 96/114/7 93/115/7 +f 93/115/8 96/114/8 97/116/8 82/102/8 +f 82/102/9 97/116/9 98/117/9 94/118/9 +f 94/118/10 98/117/10 95/113/10 92/112/10 +f 95/113/11 99/119/11 100/120/11 96/114/11 +f 96/114/12 100/120/12 101/121/12 97/116/12 +f 97/116/13 101/121/13 102/122/13 98/117/13 +f 98/117/14 102/122/14 99/119/14 95/113/14 +f 99/119/16 103/123/16 104/124/16 100/120/16 +f 100/120/15 104/124/15 47/70/15 101/121/15 +f 101/121/18 47/70/18 105/125/18 102/122/18 +f 102/122/17 105/125/17 103/123/17 99/119/17 +f 103/123/8 106/126/8 107/127/8 104/124/8 +f 104/124/7 107/127/7 108/128/7 47/70/7 +f 47/70/10 108/128/10 109/129/10 105/125/10 +f 105/125/9 109/129/9 106/126/9 103/123/9 +f 106/126/12 110/130/12 111/131/12 107/127/12 +f 107/127/11 111/131/11 112/132/11 108/128/11 +f 108/128/14 112/132/14 113/133/14 109/129/14 +f 109/129/13 113/133/13 110/130/13 106/126/13 +f 110/130/15 92/112/15 93/115/15 111/131/15 +f 111/131/16 93/115/16 82/102/16 112/132/16 +f 112/132/17 82/102/17 94/118/17 113/133/17 +f 113/133/18 94/118/18 92/112/18 110/130/18 +f 114/134/7 117/135/7 118/136/7 115/137/7 +f 115/137/8 118/136/8 119/138/8 150/139/8 +f 150/139/9 119/138/9 120/140/9 116/141/9 +f 116/141/10 120/140/10 117/135/10 114/134/10 +f 117/135/11 121/142/11 122/143/11 118/136/11 +f 118/136/12 122/143/12 123/144/12 119/138/12 +f 119/138/13 123/144/13 124/145/13 120/140/13 +f 120/140/14 124/145/14 121/142/14 117/135/14 +f 121/142/16 125/146/16 126/147/16 122/143/16 +f 122/143/15 126/147/15 127/148/15 123/144/15 +f 123/144/18 127/148/18 128/149/18 124/145/18 +f 124/145/17 128/149/17 125/146/17 121/142/17 +f 125/146/8 129/150/8 130/151/8 126/147/8 +f 126/147/7 130/151/7 131/152/7 127/148/7 +f 127/148/10 131/152/10 132/153/10 128/149/10 +f 128/149/9 132/153/9 129/150/9 125/146/9 +f 129/150/12 133/154/12 134/155/12 130/151/12 +f 130/151/11 134/155/11 135/156/11 131/152/11 +f 131/152/14 135/156/14 136/157/14 132/153/14 +f 132/153/13 136/157/13 133/154/13 129/150/13 +f 133/154/15 114/134/15 115/137/15 134/155/15 +f 134/155/16 115/137/16 150/139/16 135/156/16 +f 135/156/17 150/139/17 116/141/17 136/157/17 +f 136/157/18 116/141/18 114/134/18 133/154/18 +f 137/158/19 140/159/19 141/160/19 138/161/19 +f 138/161/20 141/160/20 142/162/20 35/55/20 +f 35/55/21 142/162/21 143/163/21 139/164/21 +f 139/164/22 143/163/22 140/159/22 137/158/22 +f 140/159/23 144/165/23 145/166/23 141/160/23 +f 141/160/24 145/166/24 146/167/24 142/162/24 +f 142/162/25 146/167/25 147/168/25 143/163/25 +f 143/163/26 147/168/26 144/165/26 140/159/26 +f 144/165/27 148/169/27 149/170/27 145/166/27 +f 145/166/28 149/170/28 150/139/28 146/167/28 +f 146/167/29 150/139/29 151/171/29 147/168/29 +f 147/168/30 151/171/30 148/169/30 144/165/30 +f 148/169/20 152/172/20 153/173/20 149/170/20 +f 149/170/19 153/173/19 154/174/19 150/139/19 +f 150/139/22 154/174/22 155/175/22 151/171/22 +f 151/171/21 155/175/21 152/172/21 148/169/21 +f 152/172/24 156/176/24 157/177/24 153/173/24 +f 153/173/23 157/177/23 158/178/23 154/174/23 +f 154/174/26 158/178/26 159/179/26 155/175/26 +f 155/175/25 159/179/25 156/176/25 152/172/25 +f 156/176/28 137/158/28 138/161/28 157/177/28 +f 157/177/27 138/161/27 35/55/27 158/178/27 +f 158/178/30 35/55/30 139/164/30 159/179/30 +f 159/179/29 139/164/29 137/158/29 156/176/29 +f 160/180/19 163/181/19 164/182/19 161/183/19 +f 161/183/20 164/182/20 165/184/20 127/148/20 +f 127/148/21 165/184/21 166/185/21 162/186/21 +f 162/186/22 166/185/22 163/181/22 160/180/22 +f 163/181/23 167/187/23 168/188/23 164/182/23 +f 164/182/24 168/188/24 169/189/24 165/184/24 +f 165/184/25 169/189/25 170/190/25 166/185/25 +f 166/185/26 170/190/26 167/187/26 163/181/26 +f 167/187/27 171/191/27 172/192/27 168/188/27 +f 168/188/28 172/192/28 11/30/28 169/189/28 +f 169/189/29 11/30/29 173/193/29 170/190/29 +f 170/190/30 173/193/30 171/191/30 167/187/30 +f 171/191/20 174/194/20 175/195/20 172/192/20 +f 172/192/19 175/195/19 176/196/19 11/30/19 +f 11/30/22 176/196/22 177/197/22 173/193/22 +f 173/193/21 177/197/21 174/194/21 171/191/21 +f 174/194/24 178/198/24 179/199/24 175/195/24 +f 175/195/23 179/199/23 180/200/23 176/196/23 +f 176/196/26 180/200/26 181/201/26 177/197/26 +f 177/197/25 181/201/25 178/198/25 174/194/25 +f 178/198/28 160/180/28 161/183/28 179/199/28 +f 179/199/27 161/183/27 127/148/27 180/200/27 +f 180/200/30 127/148/30 162/186/30 181/201/30 +f 181/201/29 162/186/29 160/180/29 178/198/29 +f 182/202/13 183/203/13 20/40/13 17/37/13 +f 183/203/14 184/204/14 19/39/14 20/40/14 +f 184/204/11 185/205/11 18/38/11 19/39/11 +f 185/205/12 182/202/12 17/37/12 18/38/12 diff --git a/morelights/morelights/nodes.lua b/morelights/morelights/nodes.lua new file mode 100644 index 0000000..7d78ee7 --- /dev/null +++ b/morelights/morelights/nodes.lua @@ -0,0 +1,168 @@ +minetest.register_craftitem("morelights:bulb", { + description = "Light Bulb", + inventory_image = "morelights_bulb.png" +}) + +morelights.register_variants({ + {name = "morelights:pole_d", description = "Metal Pole (dark)", + tiles = {"morelights_metal_dark_32.png"}, + on_place = function(itemstack, placer, pointed_thing) + return morelights.on_place_hanging(itemstack, placer, pointed_thing, + "morelights:pole_ceiling_d") + end}, + {name = "morelights:pole_l", description = "Metal Pole (light)", + tiles = {"morelights_metal_light_32.png"}, + on_place = function(itemstack, placer, pointed_thing) + return morelights.on_place_hanging(itemstack, placer, pointed_thing, + "morelights:pole_ceiling_l") + end} +}, +{ + drawtype = "nodebox", + node_box = { + type = "fixed", + fixed = {-1/32, -1/2, -1/32, 1/32, 1/2, 1/32} + }, + selection_box = { + type = "wallmounted", + wall_bottom = {-1/16, -1/2, -1/16, 1/16, 1/2, 1/16}, + wall_side = {-1/2, -1/16, -1/16, 1/2, 1/16, 1/16}, + wall_top = {-1/16, -1/2, -1/16, 1/16, 1/2, 1/16} + }, + paramtype = "light", + paramtype2 = "wallmounted", + sunlight_propegates = true, + groups = {cracky = 3, oddly_breakable_by_hand = 3, mounted_ceiling = 1}, + sounds = default.node_sound_metal_defaults(), +}) + +morelights.register_variants({ + {name = "morelights:pole_ceiling_d", + tiles = {"morelights_metal_dark_32.png"}, drop = "morelights:pole_d"}, + {name = "morelights:pole_ceiling_l", + tiles = {"morelights_metal_light_32.png"}, drop = "morelights:pole_l"} +}, +{ + drawtype = "nodebox", + node_box = { + type = "fixed", + fixed = {{-3/16, -7/16, -3/16, 3/16, -1/2, 3/16}, + {-1/32, 1/2, -1/32, 1/32, -7/16, 1/32}} + }, + selection_box = { + type = "wallmounted", + wall_bottom = {-1/16, -1/2, -1/16, 1/16, 1/2, 1/16}, + wall_side = {-1/2, -1/16, -1/16, 1/2, 1/16, 1/16}, + wall_top = {-1/16, -1/2, -1/16, 1/16, 1/2, 1/16} + }, + paramtype = "light", + paramtype2 = "wallmounted", + sunlight_propegates = true, + groups = {cracky = 3, oddly_breakable_by_hand = 3, + not_in_creative_inventory = 1, mounted_ceiling = 1}, + sounds = default.node_sound_metal_defaults(), +}) + +morelights.register_variants({ + {name = "morelights:chain_d", description = "Metal Chain (dark)", + tiles = {"morelights_metal_dark_32.png"}, + on_place = function(itemstack, placer, pointed_thing) + return morelights.on_place_hanging(itemstack, placer, pointed_thing, + "morelights:chain_ceiling_d") + end}, + {name = "morelights:chain_l", description = "Metal Chain (light)", + tiles = {"morelights_metal_light_32.png"}, + on_place = function(itemstack, placer, pointed_thing) + return morelights.on_place_hanging(itemstack, placer, pointed_thing, + "morelights:chain_ceiling_l") + end} +}, +{ + drawtype = "mesh", + mesh = "morelights_chain.obj", + collision_box = { + type = "fixed", + fixed = {-1/16, -1/2, -1/16, 1/16, 1/2, 1/16} + }, + selection_box = { + type = "fixed", + fixed = {-1/16, -1/2, -1/16, 1/16, 1/2, 1/16} + }, + paramtype = "light", + groups = {cracky = 3, oddly_breakable_by_hand = 3, mounted_ceiling = 1}, + sounds = default.node_sound_metal_defaults(), +}) + +morelights.register_variants({ + {name = "morelights:chain_ceiling_d", + tiles = {"morelights_metal_dark_32.png"}, drop = "morelights:chain_d"}, + {name = "morelights:chain_ceiling_l", + tiles = {"morelights_metal_light_32.png"}, drop = "morelights:chain_l"} +}, +{ + drawtype = "mesh", + mesh = "morelights_chain_ceiling.obj", + collision_box = { + type = "fixed", + fixed = {{-3/16, 7/16, -3/16, 3/16, 1/2, 3/16}, + {-1/16, -1/2, -1/16, 1/16, 7/16, 1/16}} + }, + selection_box = { + type = "fixed", + fixed = {{-3/16, 7/16, -3/16, 3/16, 1/2, 3/16}, + {-1/16, -1/2, -1/16, 1/16, 7/16, 1/16}} + }, + paramtype = "light", + groups = {cracky = 3, oddly_breakable_by_hand = 3, + not_in_creative_inventory = 1, mounted_ceiling = 1}, + sounds = default.node_sound_metal_defaults(), +}) + +-- +-- Craft recipes +-- + +minetest.register_craft({ + output = "morelights:bulb", + recipe = { + {"", "default:glass", ""}, + {"", "default:copper_ingot", ""}, + {"", "default:steel_ingot", ""} + } +}) + +minetest.register_craft({ + output = "morelights:pole_d 2", + recipe = { + {"dye:dark_grey", "default:steel_ingot", ""}, + {"", "default:steel_ingot", ""}, + {"", "default:steel_ingot", ""} + } +}) + +minetest.register_craft({ + output = "morelights:pole_l 2", + recipe = { + {"dye:white", "default:steel_ingot", ""}, + {"", "default:steel_ingot", ""}, + {"", "default:steel_ingot", ""} + } +}) + +minetest.register_craft({ + output = "morelights:chain_d", + recipe = { + {"dye:dark_grey", "default:steel_ingot", ""}, + {"", "", ""}, + {"", "default:steel_ingot", ""} + } +}) + +minetest.register_craft({ + output = "morelights:chain_l", + recipe = { + {"dye:white", "default:steel_ingot", ""}, + {"", "", ""}, + {"", "default:steel_ingot", ""} + } +}) diff --git a/morelights/morelights/textures/morelights_bulb.png b/morelights/morelights/textures/morelights_bulb.png new file mode 100644 index 0000000..5c66547 Binary files /dev/null and b/morelights/morelights/textures/morelights_bulb.png differ diff --git a/morelights/morelights/textures/morelights_metal_dark.png b/morelights/morelights/textures/morelights_metal_dark.png new file mode 100644 index 0000000..121f5af Binary files /dev/null and b/morelights/morelights/textures/morelights_metal_dark.png differ diff --git a/morelights/morelights/textures/morelights_metal_dark_32.png b/morelights/morelights/textures/morelights_metal_dark_32.png new file mode 100644 index 0000000..d68267a Binary files /dev/null and b/morelights/morelights/textures/morelights_metal_dark_32.png differ diff --git a/morelights/morelights/textures/morelights_metal_light.png b/morelights/morelights/textures/morelights_metal_light.png new file mode 100644 index 0000000..5046c24 Binary files /dev/null and b/morelights/morelights/textures/morelights_metal_light.png differ diff --git a/morelights/morelights/textures/morelights_metal_light_32.png b/morelights/morelights/textures/morelights_metal_light_32.png new file mode 100644 index 0000000..8e3cefe Binary files /dev/null and b/morelights/morelights/textures/morelights_metal_light_32.png differ diff --git a/morelights/morelights_extras/depends.txt b/morelights/morelights_extras/depends.txt new file mode 100644 index 0000000..bec07a9 --- /dev/null +++ b/morelights/morelights_extras/depends.txt @@ -0,0 +1,3 @@ +default +morelights +stairs? diff --git a/morelights/morelights_extras/init.lua b/morelights/morelights_extras/init.lua new file mode 100644 index 0000000..cf4b74a --- /dev/null +++ b/morelights/morelights_extras/init.lua @@ -0,0 +1,122 @@ +minetest.register_node("morelights_extras:f_block", { + description = "Futuristic Light Block", + tiles = {"morelights_extras_f_block.png"}, + paramtype = "light", + light_source = LIGHT_MAX, + groups = {cracky = 2, oddly_breakable_by_hand = 3}, + sounds = default.node_sound_glass_defaults(), +}) + +minetest.register_node("morelights_extras:dirt_with_grass", { + description = "Grass Light", + tiles = {"default_grass.png^morelights_extras_blocklight.png", + "default_dirt.png", "default_dirt.png^default_grass_side.png"}, + paramtype = "light", + light_source = 12, + groups = {cracky = 2, oddly_breakable_by_hand = 3}, + sounds = default.node_sound_glass_defaults() +}) + +minetest.register_node("morelights_extras:stone_block", { + description = "Stone Block Light", + tiles = {"default_stone_block.png^morelights_extras_blocklight.png"}, + paramtype = "light", + light_source = 12, + groups = {cracky = 2, oddly_breakable_by_hand = 3}, + sounds = default.node_sound_glass_defaults() +}) + +minetest.register_node("morelights_extras:sandstone_block", { + description = "Sandstone Block Light", + tiles = {"default_sandstone_block.png^morelights_extras_blocklight.png"}, + paramtype = "light", + light_source = 12, + groups = {cracky = 2, oddly_breakable_by_hand = 3}, + sounds = default.node_sound_glass_defaults() +}) + +minetest.register_node("morelights_extras:stairlight", { + description = "Stair Light (place on stairs)", + drawtype = "nodebox", + node_box = { + type = "fixed", + fixed = {-1/4, -13/16, -1/16, 1/4, -11/16, 0} + }, + selection_box = { + type = "fixed", + fixed = {-1/4, -13/16, -1/16, 1/4, -11/16, 0} + }, + walkable = false, + tiles = {"morelights_metal_dark.png"}, + overlay_tiles = {"", "morelights_extras_stairlight.png", + "", "", "morelights_extras_stairlight.png"}, + paramtype = "light", + paramtype2 = "facedir", + light_source = 10, + groups = {cracky = 2, oddly_breakable_by_hand = 3, attached_node = 1}, + node_placement_prediction = "", + sounds = default.node_sound_glass_defaults(), + + on_place = function(itemstack, placer, pointed_thing) + local node = minetest.get_node(vector.subtract(pointed_thing.above, + {x=0, y=1, z=0})) + + if node and node.name:match("^stairs:stair") + and node.param2 < 4 then + minetest.item_place(itemstack, placer, pointed_thing, node.param2) + end + + return itemstack + end, + + on_rotate = function(pos, node, user, mode, new_param2) + return false + end, +}) + +-- +-- Craft recipes +-- + +minetest.register_craft({ + output = "morelights_extras:f_block", + recipe = { + {"default:mese_crystal_fragment", "default:steel_ingot", "default:mese_crystal_fragment"}, + {morelights.glass, "morelights:bulb", morelights.glass}, + {"default:mese_crystal_fragment", "default:steel_ingot", "default:mese_crystal_fragment"} + } +}) + +minetest.register_craft({ + output = "morelights_extras:dirt_with_grass", + recipe = { + {"", morelights.glass, ""}, + {"", "morelights:bulb", ""}, + {"default:grass_1", "default:dirt", ""} + } +}) + +minetest.register_craft({ + output = "morelights_extras:stone_block", + recipe = { + {"", morelights.glass, ""}, + {"", "morelights:bulb", ""}, + {"", "default:stone_block", ""} + } +}) + +minetest.register_craft({ + output = "morelights_extras:sandstone_block", + recipe = { + {"", morelights.glass, ""}, + {"", "morelights:bulb", ""}, + {"", "default:sandstone_block", ""} + } +}) + +minetest.register_craft({ + output = "morelights_extras:stairlight", + recipe = { + {"default:steel_ingot", "morelights:bulb", "default:steel_ingot"} + } +}) diff --git a/morelights/morelights_extras/textures/morelights_extras_blocklight.png b/morelights/morelights_extras/textures/morelights_extras_blocklight.png new file mode 100644 index 0000000..a088a7a Binary files /dev/null and b/morelights/morelights_extras/textures/morelights_extras_blocklight.png differ diff --git a/morelights/morelights_extras/textures/morelights_extras_f_block.png b/morelights/morelights_extras/textures/morelights_extras_f_block.png new file mode 100644 index 0000000..929f5f6 Binary files /dev/null and b/morelights/morelights_extras/textures/morelights_extras_f_block.png differ diff --git a/morelights/morelights_extras/textures/morelights_extras_stairlight.png b/morelights/morelights_extras/textures/morelights_extras_stairlight.png new file mode 100644 index 0000000..d395775 Binary files /dev/null and b/morelights/morelights_extras/textures/morelights_extras_stairlight.png differ diff --git a/morelights/morelights_modern/depends.txt b/morelights/morelights_modern/depends.txt new file mode 100644 index 0000000..ba0e880 --- /dev/null +++ b/morelights/morelights_modern/depends.txt @@ -0,0 +1,4 @@ +default +dye +morelights +wool diff --git a/morelights/morelights_modern/init.lua b/morelights/morelights_modern/init.lua new file mode 100644 index 0000000..d2ca799 --- /dev/null +++ b/morelights/morelights_modern/init.lua @@ -0,0 +1,380 @@ +minetest.register_node("morelights_modern:block", { + description = "Modern Light Block", + tiles = {"morelights_metal_dark.png^morelights_modern_block.png"}, + paramtype = "light", + light_source = LIGHT_MAX, + groups = {cracky = 2, oddly_breakable_by_hand = 3}, + sounds = default.node_sound_glass_defaults(), +}) + +minetest.register_node("morelights_modern:smallblock", { + description = "Modern Light Block (small)", + drawtype = "nodebox", + node_box = { + type = "fixed", + fixed = {-1/4, -1/2, -1/4, 1/4, 0, 1/4} + }, + tiles = {"morelights_metal_dark.png^morelights_modern_smallblock.png", + "morelights_metal_dark.png^morelights_modern_smallblock.png", + "[combine:16x16:0,0=morelights_metal_dark.png:0,4=morelights_modern_smallblock.png"}, + paramtype = "light", + paramtype2 = "facedir", + light_source = 12, + groups = {cracky = 3, oddly_breakable_by_hand = 3}, + sounds = default.node_sound_glass_defaults(), + + on_place = function(itemstack, placer, pointed_thing) + return morelights.rotate_and_place(itemstack, placer, pointed_thing) + end, +}) + +morelights.register_variants({ + {name = "morelights_modern:post_d", description = "Modern Post Light (dark)", + tiles = {"morelights_metal_dark.png", "morelights_metal_dark.png", + "morelights_metal_dark.png^morelights_modern_post.png"}}, + {name = "morelights_modern:post_l", description = "Modern Post Light (light)", + tiles = {"morelights_metal_light.png", "morelights_metal_light.png", + "morelights_metal_light.png^morelights_modern_post.png"}} +}, +{ + drawtype = "nodebox", + node_box = { + type = "fixed", + fixed = {{-1/8, -1/2, -1/8, 1/8, 1/2, 1/8}} + }, + paramtype = "light", + light_source = LIGHT_MAX, + groups = {cracky = 3, oddly_breakable_by_hand = 3}, + sounds = default.node_sound_metal_defaults(), +}) + +morelights.register_variants({ + {name = "morelights_modern:streetpost_d", + description = "Street Lamp Post (dark)--connects to bar lights", + tiles = {"morelights_metal_dark.png"}}, + {name = "morelights_modern:streetpost_l", + description = "Street Lamp Post (light)--connects to bar lights", + tiles = {"morelights_metal_light.png"}} +}, +{ + drawtype = "nodebox", + node_box = { + type = "connected", + fixed = {-1/16, -1/2, -1/16, 1/16, 1/2, 1/16}, + connect_front = {-1/16, 3/8, -1/2, 1/16, 7/16, -1/16}, + connect_left = {-1/2, 3/8, -1/16, -1/16, 7/16, 1/16}, + connect_back = {-1/16, 3/8, 1/16, 1/16, 7/16, 1/2}, + connect_right = {1/16, 3/8, -1/16, 1/2, 7/16, 1/16}, + }, + connects_to = {"morelights_modern:barlight_c", "morelights_modern:barlight_s"}, + paramtype = "light", + groups = {cracky = 2, oddly_breakable_by_hand = 3}, + sounds = default.node_sound_metal_defaults(), +}) + +minetest.register_node("morelights_modern:barlight_c", { + description = "Ceiling Bar Light (connecting)", + drawtype = "nodebox", + node_box = { + type = "connected", + fixed = {-1/8, 3/8, -1/8, 1/8, 1/2, 1/8}, + connect_front = {-1/8, 3/8, -1/2, 1/8, 1/2, -1/8}, + connect_left = {-1/2, 3/8, -1/8, -1/8, 1/2, 1/8}, + connect_back = {-1/8, 3/8, 1/8, 1/8, 1/2, 1/2}, + connect_right = {1/8, 3/8, -1/8, 1/2, 1/2, 1/8}, + }, + connects_to = {"morelights_modern:barlight_c", "morelights_modern:barlight_s", + "morelights_modern:streetpost_d", "morelights_modern:streetpost_l"}, + tiles = {"morelights_metal_dark.png", "morelights_modern_barlight.png", + "morelights_metal_dark.png"}, + paramtype = "light", + light_source = LIGHT_MAX, + groups = {cracky = 2, oddly_breakable_by_hand = 3}, + sounds = default.node_sound_glass_defaults(), +}) + +minetest.register_node("morelights_modern:barlight_s", { + description = "Ceiling Bar Light (straight)", + drawtype = "nodebox", + node_box = { + type = "fixed", + fixed = {-1/2, 3/8, -1/8, 1/2, 1/2, 1/8}, + }, + tiles = {"morelights_metal_dark.png", "morelights_modern_barlight.png", + "morelights_metal_dark.png"}, + paramtype = "light", + paramtype2 = "facedir", + light_source = LIGHT_MAX, + groups = {cracky = 2, oddly_breakable_by_hand = 3}, + sounds = default.node_sound_glass_defaults(), +}) + +minetest.register_node("morelights_modern:ceilinglight", { + description = "Modern Ceiling Light", + drawtype = "nodebox", + node_box = { + type = "fixed", + fixed = {-1/4, 3/8, -1/4, 1/4, 1/2, 1/4} + }, + tiles = {"morelights_metal_dark.png", + "morelights_metal_dark.png^morelights_modern_block.png"}, + paramtype = "light", + paramtype2 = "facedir", + light_source = LIGHT_MAX, + groups = {cracky = 3, oddly_breakable_by_hand = 3}, + sounds = default.node_sound_glass_defaults(), + + on_place = function(itemstack, placer, pointed_thing) + return morelights.rotate_and_place(itemstack, placer, pointed_thing, + {[0] = 0, 20, 12, 16, 4, 8}) + end, +}) + +morelights.register_variants({ + {name = "morelights_modern:canlight_d", + description = "Modern Can Light (dark)", + tiles = {"morelights_metal_dark.png^morelights_modern_canlight.png"}}, + {name = "morelights_modern:canlight_l", + description = "Modern Can Light (light)", + tiles = {"morelights_metal_light.png^morelights_modern_canlight.png"}}, +}, +{ + drawtype = "mesh", + mesh = "morelights_modern_canlight.obj", + collision_box = { + type = "fixed", + fixed = {-1/8, 0, -1/8, 1/8, 1/2, 1/8} + }, + selection_box = { + type = "fixed", + fixed = {-1/8, 0, -1/8, 1/8, 1/2, 1/8} + }, + paramtype = "light", + light_source = 12, + groups = {cracky = 2, oddly_breakable_by_hand = 3}, + sounds = default.node_sound_metal_defaults(), +}) + +minetest.register_node("morelights_modern:walllamp", { + description = "Modern Wall Lamp", + drawtype = "mesh", + mesh = "morelights_modern_walllamp.obj", + collision_box = { + type = "fixed", + fixed = {-1/8, -3/8, 1/8, 1/8, 1/4, 1/2} + }, + selection_box = { + type = "fixed", + fixed = {-1/8, -3/8, 1/8, 1/8, 1/4, 1/2} + }, + tiles = {"morelights_metal_dark_32.png^morelights_modern_walllamp.png"}, + paramtype = "light", + paramtype2 = "facedir", + light_source = 12, + groups = {cracky = 2, oddly_breakable_by_hand = 3}, + sounds = default.node_sound_glass_defaults(), + + on_place = function(itemstack, placer, pointed_thing) + return morelights.rotate_and_place(itemstack, placer, pointed_thing, + {[0] = 6, 4, 1, 3, 0, 2}) + end, +}) + +morelights.register_variants({ + {name = "morelights_modern:tablelamp_d", + description = "Modern Table Lamp (dark)", + tiles = {"morelights_metal_light_32.png^morelights_modern_tablelamp_o.png", + "morelights_modern_tablelamp_d.png"}}, + {name = "morelights_modern:tablelamp_l", + description = "Modern Table Lamp (light)", + tiles = {"morelights_metal_dark_32.png^morelights_modern_tablelamp_o.png", + "morelights_modern_tablelamp_l.png"}}, +}, +{ + drawtype = "mesh", + mesh = "morelights_modern_tablelamp.obj", + collision_box = { + type = "fixed", + fixed = {-1/4, -1/2, -1/4, 1/4, 7/16, 1/4} + }, + selection_box = { + type = "fixed", + fixed = {-1/4, -1/2, -1/4, 1/4, 7/16, 1/4} + }, + paramtype = "light", + light_source = 10, + groups = {choppy = 2, oddly_breakable_by_hand = 3}, + sounds = default.node_sound_defaults(), +}) + +morelights.register_variants({ + {name = "morelights_modern:pathlight_d", + description = "Modern Path Light (dark)", + tiles = {"morelights_metal_dark_32.png^morelights_modern_pathlight.png"}}, + {name = "morelights_modern:pathlight_l", + description = "Modern Path Light (light)", + tiles = {"morelights_metal_light_32.png^morelights_modern_pathlight.png"}} +}, +{ + drawtype = "nodebox", + node_box = { + type = "fixed", + fixed = {{-1/32, -8/16, -1/32, 1/32, 1/8, 1/32}, + {-1/16, 1/8, -1/16, 1/16, 5/16, 1/16}, + {-1/8, 5/16, -1/8, 1/8, 3/8, 1/8}} + }, + selection_box = { + type = "fixed", + fixed = {{-1/8, -1/2, -1/8, 1/8, 3/8, 1/8}} + }, + paramtype = "light", + light_source = 8, + groups = {cracky = 3, oddly_breakable_by_hand = 3}, + sounds = default.node_sound_metal_defaults(), +}) + +-- +-- Craft recipes +-- + +minetest.register_craft({ + output = "morelights_modern:block", + recipe = { + {"", "default:steel_ingot", ""}, + {morelights.glass, "morelights:bulb", morelights.glass}, + {"", "default:steel_ingot", ""} + } +}) + +minetest.register_craft({ + output = "morelights_modern:smallblock", + recipe = { + {"", morelights.glass, ""}, + {"default:steel_ingot", "morelights:bulb", "default:steel_ingot"} + } +}) + +minetest.register_craft({ + output = "morelights_modern:post_d", + recipe = { + {"dye:dark_grey", "default:steel_ingot", ""}, + {"", "morelights:bulb", ""}, + {"", "default:steel_ingot", ""} + } +}) + +minetest.register_craft({ + output = "morelights_modern:post_l", + recipe = { + {"dye:white", "default:steel_ingot", ""}, + {"", "morelights:bulb", ""}, + {"", "default:steel_ingot", ""} + } +}) + +minetest.register_craft({ + output = "morelights_modern:streetpost_d 2", + recipe = { + {"dye:dark_grey", "default:steel_ingot", "default:steel_ingot"}, + {"", "default:steel_ingot", ""}, + {"", "default:steel_ingot", ""} + } +}) + +minetest.register_craft({ + output = "morelights_modern:streetpost_l 2", + recipe = { + {"dye:white", "default:steel_ingot", "default:steel_ingot"}, + {"", "default:steel_ingot", ""}, + {"", "default:steel_ingot", ""} + } +}) + +minetest.register_craft({ + output = "morelights_modern:barlight_c 4", + recipe = { + {"default:steel_ingot", "default:steel_ingot", "default:steel_ingot"}, + {"default:copper_ingot", "default:glass", "default:copper_ingot"} + } +}) + +minetest.register_craft({ + output = "morelights_modern:barlight_c", + type = "shapeless", + recipe = {"morelights_modern:barlight_s"} +}) + +minetest.register_craft({ + output = "morelights_modern:barlight_s", + type = "shapeless", + recipe = {"morelights_modern:barlight_c"} +}) + +minetest.register_craft({ + output = "morelights_modern:ceilinglight", + recipe = { + {"default:steel_ingot", "morelights:bulb", "default:steel_ingot"}, + {"", morelights.glass, ""}, + } +}) + +minetest.register_craft({ + output = "morelights_modern:canlight_d", + recipe = { + {"dye:dark_grey", "default:steel_ingot", ""}, + {"default:steel_ingot", "morelights:bulb", "default:steel_ingot"}, + } +}) + +minetest.register_craft({ + output = "morelights_modern:canlight_l", + recipe = { + {"dye:white", "default:steel_ingot", ""}, + {"default:steel_ingot", "morelights:bulb", "default:steel_ingot"}, + } +}) + +minetest.register_craft({ + output = "morelights_modern:walllamp", + recipe = { + {"dye:white", morelights.glass, ""}, + {morelights.glass, "morelights:bulb", "default:steel_ingot"}, + {"", "dye:dark_grey", "default:steel_ingot"} + } +}) + +minetest.register_craft({ + output = "morelights_modern:tablelamp_d", + recipe = { + {"wool:dark_grey", "morelights:bulb", "wool:dark_grey"}, + {"", "default:steel_ingot", ""}, + {"", "default:steel_ingot", ""} + } +}) + +minetest.register_craft({ + output = "morelights_modern:tablelamp_l", + recipe = { + {"wool:white", "morelights:bulb", "wool:white"}, + {"", "default:steel_ingot", ""}, + {"", "default:steel_ingot", ""} + } +}) + +minetest.register_craft({ + output = "morelights_modern:pathlight_d", + recipe = { + {"dye:dark_grey", "morelights:bulb", ""}, + {"", "default:steel_ingot", ""}, + {"", "default:steel_ingot", ""} + } +}) + +minetest.register_craft({ + output = "morelights_modern:pathlight_l", + recipe = { + {"dye:white", "morelights:bulb", ""}, + {"", "default:steel_ingot", ""}, + {"", "default:steel_ingot", ""} + } +}) diff --git a/morelights/morelights_modern/models/morelights_modern_canlight.obj b/morelights/morelights_modern/models/morelights_modern_canlight.obj new file mode 100644 index 0000000..9c42e46 --- /dev/null +++ b/morelights/morelights_modern/models/morelights_modern_canlight.obj @@ -0,0 +1,124 @@ +# Blender v2.79 (sub 0) OBJ File: 'modern_can_2.blend' +# www.blender.org +o Cylinder_Cylinder.002 +v -0.051777 -0.000000 -0.125000 +v -0.051777 0.500000 -0.125000 +v 0.051777 0.500000 -0.125000 +v 0.051777 -0.000000 -0.125000 +v 0.125000 -0.000000 0.051777 +v 0.051777 -0.000000 0.125000 +v -0.051777 -0.000000 0.125000 +v -0.125000 -0.000000 0.051777 +v -0.125000 -0.000000 -0.051777 +v -0.100000 -0.000000 -0.041421 +v -0.100000 -0.000000 0.041421 +v -0.041421 -0.000000 0.100000 +v 0.041421 -0.000000 0.100000 +v 0.100000 -0.000000 0.041421 +v 0.125000 -0.000000 -0.051777 +v 0.100000 -0.000000 -0.041421 +v 0.041421 -0.000000 -0.100000 +v -0.041421 -0.000000 -0.100000 +v -0.125000 0.500000 -0.051777 +v -0.125000 0.500000 0.051777 +v -0.051777 0.500000 0.125000 +v 0.051777 0.500000 0.125000 +v 0.125000 0.500000 0.051777 +v 0.125000 0.500000 -0.051777 +v 0.041421 0.125000 -0.100000 +v -0.041421 0.125000 -0.100000 +v -0.100000 0.125000 -0.041421 +v 0.100000 0.125000 -0.041421 +v 0.100000 0.125000 0.041421 +v 0.041421 0.125000 0.100000 +v -0.041421 0.125000 0.100000 +v -0.100000 0.125000 0.041421 +vt 0.375000 0.500000 +vt 0.375000 1.000000 +vt 0.250000 1.000000 +vt 0.250000 0.500000 +vt 0.500000 0.500000 +vt 0.500000 1.000000 +vt 0.239277 0.937500 +vt 0.135723 0.937500 +vt 0.062500 0.864257 +vt 0.062500 0.760704 +vt 0.135723 0.687500 +vt 0.239277 0.687500 +vt 0.312500 0.760704 +vt 0.312500 0.864257 +vt 0.125000 1.000000 +vt 0.125000 0.500000 +vt 0.000000 1.000000 +vt 0.000000 0.500000 +vt 1.000000 0.500000 +vt 1.000000 1.000000 +vt 0.875000 1.000000 +vt 0.875000 0.500000 +vt 0.750000 1.000000 +vt 0.750000 0.500000 +vt 0.625000 1.000000 +vt 0.625000 0.500000 +vt 0.375000 0.437500 +vt 0.250000 0.437500 +vt 0.250000 0.312500 +vt 0.375000 0.312500 +vt 0.500000 0.437500 +vt 0.500000 0.312500 +vt 0.176777 0.000000 +vt 0.250000 0.073223 +vt 0.250000 0.176777 +vt 0.176777 0.250000 +vt 0.073223 0.250000 +vt 0.000000 0.176777 +vt 0.000000 0.073223 +vt 0.073223 0.000000 +vt 0.125000 0.437500 +vt 0.125000 0.312500 +vt 0.625000 0.437500 +vt 0.625000 0.312500 +vt 0.750000 0.437500 +vt 0.750000 0.312500 +vt 0.875000 0.437500 +vt 0.875000 0.312500 +vt 1.000000 0.437500 +vt 1.000000 0.312500 +vt 0.000000 0.437500 +vt 0.000000 0.312500 +vn 0.0000 0.0000 -1.0000 +vn -0.7071 0.0000 -0.7071 +vn 0.0000 1.0000 -0.0000 +vn 0.7071 0.0000 -0.7071 +vn 1.0000 0.0000 0.0000 +vn 0.7071 0.0000 0.7071 +vn -0.0000 0.0000 1.0000 +vn -0.7071 0.0000 0.7071 +vn -1.0000 0.0000 0.0000 +vn 0.0000 -1.0000 0.0000 +s off +f 1/1/1 2/2/1 3/3/1 4/4/1 +f 9/5/2 19/6/2 2/2/2 1/1/2 +f 3/7/3 2/8/3 19/9/3 20/10/3 21/11/3 22/12/3 23/13/3 24/14/3 +f 4/4/4 3/3/4 24/15/4 15/16/4 +f 15/16/5 24/15/5 23/17/5 5/18/5 +f 5/19/6 23/20/6 22/21/6 6/22/6 +f 6/22/7 22/21/7 21/23/7 7/24/7 +f 7/24/8 21/23/8 20/25/8 8/26/8 +f 8/26/9 20/25/9 19/6/9 9/5/9 +f 18/27/7 17/28/7 25/29/7 26/30/7 +f 10/31/6 18/27/6 26/30/6 27/32/6 +f 25/33/10 28/34/10 29/35/10 30/36/10 31/37/10 32/38/10 27/39/10 26/40/10 +f 17/28/8 16/41/8 28/42/8 25/29/8 +f 11/43/5 10/31/5 27/32/5 32/44/5 +f 12/45/4 11/43/4 32/44/4 31/46/4 +f 13/47/1 12/45/1 31/46/1 30/48/1 +f 14/49/2 13/47/2 30/48/2 29/50/2 +f 16/41/9 14/51/9 29/52/9 28/42/9 +f 10/31/10 9/5/10 1/1/10 18/27/10 +f 1/1/10 4/4/10 17/28/10 18/27/10 +f 4/4/10 15/16/10 16/41/10 17/28/10 +f 14/51/10 16/41/10 15/16/10 5/18/10 +f 14/49/10 5/19/10 6/22/10 13/47/10 +f 13/47/10 6/22/10 7/24/10 12/45/10 +f 7/24/10 8/26/10 11/43/10 12/45/10 +f 11/43/10 8/26/10 9/5/10 10/31/10 diff --git a/morelights/morelights_modern/models/morelights_modern_tablelamp.obj b/morelights/morelights_modern/models/morelights_modern_tablelamp.obj new file mode 100644 index 0000000..11f38bb --- /dev/null +++ b/morelights/morelights_modern/models/morelights_modern_tablelamp.obj @@ -0,0 +1,204 @@ +# Blender v2.79 (sub 0) OBJ File: 'modern_tablelamp_joined.blend' +# www.blender.org +o support_Plane.001 +v 0.031250 0.312500 0.031250 +v 0.218750 0.312500 0.031250 +v 0.031250 0.343750 0.000000 +v 0.218750 0.343750 0.000000 +v 0.031250 0.312500 -0.031250 +v 0.218750 0.312500 -0.031250 +v -0.218750 0.312500 0.031250 +v -0.031250 0.312500 0.031250 +v -0.218750 0.343750 0.000000 +v -0.031250 0.343750 0.000000 +v -0.218750 0.312500 -0.031250 +v -0.031250 0.312500 -0.031250 +vt 0.531250 0.468748 +vt 0.718750 0.468748 +vt 0.718750 0.499998 +vt 0.531250 0.499998 +vt 0.718750 0.531248 +vt 0.531250 0.531248 +vt 0.281250 0.468748 +vt 0.468750 0.468748 +vt 0.468750 0.499998 +vt 0.281250 0.499998 +vt 0.468750 0.531248 +vt 0.281250 0.531248 +vn 0.0000 0.7071 0.7071 +vn 0.0000 0.7071 -0.7071 +g Material.000 +s off +f 1/1/1 2/2/1 4/3/1 3/4/1 +f 3/4/2 4/3/2 6/5/2 5/6/2 +f 7/7/1 8/8/1 10/9/1 9/10/1 +f 9/10/2 10/9/2 12/11/2 11/12/2 +o pole_Cube.007 +v -0.031250 -0.437500 0.031250 +v -0.031250 0.375000 0.031250 +v -0.031250 -0.437500 -0.031250 +v -0.031250 0.375000 -0.031250 +v 0.031250 -0.437500 0.031250 +v 0.031250 0.375000 0.031250 +v 0.031250 -0.437500 -0.031250 +v 0.031250 0.375000 -0.031250 +vt 0.312500 0.062500 +vt 0.312500 0.875000 +vt 0.250000 0.875000 +vt 0.250000 0.062500 +vt 0.312500 0.062500 +vt 0.312500 0.875000 +vt 0.250000 0.875000 +vt 0.250000 0.062500 +vt 0.312500 0.062500 +vt 0.312500 0.875000 +vt 0.250000 0.875000 +vt 0.250000 0.062500 +vt 0.312501 0.062500 +vt 0.312499 0.875000 +vt 0.250000 0.875000 +vt 0.250000 0.062500 +vt 0.312500 0.531250 +vt 0.250000 0.531250 +vt 0.250000 0.468750 +vt 0.312500 0.468750 +vn -1.0000 0.0000 0.0000 +vn 0.0000 0.0000 -1.0000 +vn 1.0000 0.0000 0.0000 +vn 0.0000 0.0000 1.0000 +vn 0.0000 1.0000 0.0000 +g Material.000 +s off +f 13/13/3 14/14/3 16/15/3 15/16/3 +f 15/17/4 16/18/4 20/19/4 19/20/4 +f 19/21/5 20/22/5 18/23/5 17/24/5 +f 17/25/6 18/26/6 14/27/6 13/28/6 +f 20/29/7 16/30/7 14/31/7 18/32/7 +o base_Cube.006 +v -0.187500 -0.500000 0.187500 +v -0.187500 -0.437500 0.187500 +v -0.187500 -0.500000 -0.187500 +v -0.187500 -0.437500 -0.187500 +v 0.187500 -0.500000 0.187500 +v 0.187500 -0.437500 0.187500 +v 0.187500 -0.500000 -0.187500 +v 0.187500 -0.437500 -0.187500 +vt 0.312500 0.062500 +vt 0.312500 0.000000 +vt 0.687500 0.000000 +vt 0.687500 0.062500 +vt 0.312500 0.062500 +vt 0.312500 0.000000 +vt 0.687500 0.000000 +vt 0.687500 0.062500 +vt 0.687500 0.000000 +vt 0.687500 0.062500 +vt 0.312500 0.062500 +vt 0.312500 0.000000 +vt 0.687500 0.000000 +vt 0.687500 0.062500 +vt 0.312500 0.062500 +vt 0.312500 0.000000 +vt 0.687500 0.312500 +vt 0.687500 0.687500 +vt 0.312500 0.687500 +vt 0.312500 0.312500 +vt 0.687500 0.312500 +vt 0.687500 0.687500 +vt 0.312500 0.687500 +vt 0.312500 0.312500 +vn -1.0000 0.0000 0.0000 +vn 0.0000 0.0000 -1.0000 +vn 1.0000 0.0000 0.0000 +vn 0.0000 0.0000 1.0000 +vn 0.0000 -1.0000 0.0000 +vn 0.0000 1.0000 0.0000 +g Material.000 +s off +f 21/33/8 22/34/8 24/35/8 23/36/8 +f 23/37/9 24/38/9 28/39/9 27/40/9 +f 27/41/10 28/42/10 26/43/10 25/44/10 +f 25/45/11 26/46/11 22/47/11 21/48/11 +f 23/49/12 27/50/12 25/51/12 21/52/12 +f 28/53/13 24/54/13 22/55/13 26/56/13 +o shade_Cube.005 +v -0.250000 -0.062500 0.250000 +v -0.250000 0.437500 0.250000 +v -0.250000 -0.062500 -0.250000 +v -0.250000 0.437500 -0.250000 +v 0.250000 -0.062500 0.250000 +v 0.250000 0.437500 0.250000 +v 0.250000 -0.062500 -0.250000 +v 0.250000 0.437500 -0.250000 +v -0.218750 -0.062500 0.218750 +v -0.218750 0.437500 0.218750 +v -0.218750 -0.062500 -0.218750 +v -0.218750 0.437500 -0.218750 +v 0.218750 -0.062500 0.218750 +v 0.218750 0.437500 0.218750 +v 0.218750 -0.062500 -0.218750 +v 0.218750 0.437500 -0.218750 +vt 0.000000 0.000000 +vt 0.000000 1.000000 +vt 1.000000 1.000000 +vt 1.000000 0.000000 +vt 0.000000 0.000000 +vt 0.000000 1.000000 +vt 1.000000 1.000000 +vt 1.000000 0.000000 +vt 0.000000 1.000000 +vt 0.000000 0.000000 +vt 1.000000 0.000000 +vt 1.000000 1.000000 +vt 0.062500 0.000000 +vt 0.062500 1.000000 +vt 0.937500 1.000000 +vt 0.937500 0.000000 +vt 0.062500 0.000000 +vt 0.062500 1.000000 +vt 0.937500 1.000000 +vt 0.937500 0.000000 +vt 0.062500 0.000000 +vt 0.062500 1.000000 +vt 0.937500 1.000000 +vt 0.937500 0.000000 +vt 0.062500 0.000000 +vt 0.062500 1.000000 +vt 0.937500 1.000000 +vt 0.937500 0.000000 +vt 0.000000 0.000000 +vt 1.000000 0.000000 +vt 0.937500 0.062500 +vt 0.062500 0.062500 +vt 0.062500 0.937500 +vt 0.937500 0.937500 +vt 0.000000 1.000000 +vt 0.062500 0.062500 +vt 0.062500 0.937500 +vt 0.937500 0.062500 +vt 1.000000 1.000000 +vt 0.937500 0.937500 +vn -1.0000 0.0000 0.0000 +vn 0.0000 0.0000 -1.0000 +vn 1.0000 0.0000 0.0000 +vn 0.0000 0.0000 1.0000 +vn 0.0000 1.0000 0.0000 +vn 0.0000 -1.0000 0.0000 +g Material.001 +s off +f 29/57/14 30/58/14 32/59/14 31/60/14 +f 31/61/15 32/62/15 36/63/15 35/64/15 +f 35/64/16 36/63/16 34/65/16 33/66/16 +f 33/67/17 34/68/17 30/58/17 29/57/17 +f 39/69/15 40/70/15 44/71/15 43/72/15 +f 37/73/14 38/74/14 40/75/14 39/76/14 +f 43/77/16 44/78/16 42/79/16 41/80/16 +f 41/81/17 42/82/17 38/83/17 37/84/17 +f 30/85/18 34/86/18 42/87/18 38/88/18 +f 32/62/18 30/85/18 38/88/18 40/89/18 +f 36/63/18 32/62/18 40/89/18 44/90/18 +f 34/86/18 36/63/18 44/90/18 42/87/18 +f 29/91/19 31/61/19 39/92/19 37/93/19 +f 31/61/19 35/64/19 43/94/19 39/92/19 +f 35/64/19 33/95/19 41/96/19 43/94/19 +f 33/95/19 29/91/19 37/93/19 41/96/19 diff --git a/morelights/morelights_modern/models/morelights_modern_walllamp.obj b/morelights/morelights_modern/models/morelights_modern_walllamp.obj new file mode 100644 index 0000000..e9e7fcc --- /dev/null +++ b/morelights/morelights_modern/models/morelights_modern_walllamp.obj @@ -0,0 +1,132 @@ +# Blender v2.79 (sub 0) OBJ File: 'walllamp.blend' +# www.blender.org +o Cube.003 +v 0.031250 -0.343750 0.437500 +v 0.031250 -0.281250 0.437500 +v -0.031250 -0.343750 0.437500 +v -0.031250 -0.281250 0.437500 +v 0.031250 -0.343750 0.218750 +v 0.031250 -0.281250 0.281250 +v -0.031250 -0.343750 0.218750 +v -0.031250 -0.281250 0.281250 +v 0.031250 -0.250000 0.218750 +v 0.031250 -0.250000 0.281250 +v -0.031250 -0.250000 0.218750 +v -0.031250 -0.250000 0.281250 +vt 0.031250 0.062500 +vt 0.031250 0.125000 +vt 0.187500 0.125000 +vt 0.250000 0.062500 +vt 0.187500 0.156250 +vt 0.250000 0.156250 +vt 0.250000 0.062500 +vt 0.187500 0.125000 +vt 0.031250 0.125000 +vt 0.031250 0.062500 +vt 0.250000 0.000000 +vt 0.031250 0.000000 +vt 0.187500 0.250000 +vt 0.031250 0.250000 +vt 0.031250 0.187500 +vt 0.187500 0.187500 +vt 0.250000 0.156250 +vt 0.187500 0.156250 +vt 0.343750 0.062500 +vt 0.343750 0.000000 +vt 0.218750 0.187500 +vt 0.218750 0.250000 +vn -1.0000 -0.0000 -0.0000 +vn 1.0000 -0.0000 0.0000 +vn 0.0000 -1.0000 -0.0000 +vn 0.0000 1.0000 -0.0000 +vn 0.0000 0.0000 -1.0000 +vn 0.0000 0.0000 1.0000 +s off +f 3/1/1 4/2/1 8/3/1 7/4/1 +f 7/4/1 8/3/1 12/5/1 11/6/1 +f 5/7/2 6/8/2 2/9/2 1/10/2 +f 3/1/3 7/4/3 5/11/3 1/12/3 +f 8/13/4 4/14/4 2/15/4 6/16/4 +f 6/8/2 5/7/2 9/17/2 10/18/2 +f 5/11/5 7/4/5 11/19/5 9/20/5 +f 8/13/6 6/16/6 10/21/6 12/22/6 +o Cube.002 +v 0.125000 -0.375000 0.500000 +v 0.125000 0.125000 0.500000 +v -0.125000 -0.375000 0.500000 +v -0.125000 0.125000 0.500000 +v 0.125000 -0.375000 0.437500 +v 0.125000 0.125000 0.437500 +v -0.125000 -0.375000 0.437500 +v -0.125000 0.125000 0.437500 +vt 0.937500 0.000000 +vt 0.937500 0.500000 +vt 0.687500 0.500000 +vt 0.687500 0.000000 +vt 0.625000 0.500000 +vt 0.625000 0.000000 +vt 0.375000 0.500000 +vt 0.375000 0.000000 +vt 0.312500 0.500000 +vt 0.312500 0.000000 +vt 0.937500 0.250000 +vt 1.000000 0.250000 +vt 1.000000 0.500000 +vt 0.937500 0.500000 +vt 0.937500 0.000000 +vt 1.000000 0.000000 +vt 1.000000 0.250000 +vt 0.937500 0.250000 +vn 0.0000 0.0000 1.0000 +vn -1.0000 0.0000 0.0000 +vn 0.0000 0.0000 -1.0000 +vn 1.0000 0.0000 0.0000 +vn 0.0000 -1.0000 0.0000 +vn 0.0000 1.0000 0.0000 +s off +f 13/23/7 14/24/7 16/25/7 15/26/7 +f 15/26/8 16/25/8 20/27/8 19/28/8 +f 19/28/9 20/27/9 18/29/9 17/30/9 +f 17/30/10 18/29/10 14/31/10 13/32/10 +f 15/33/11 19/34/11 17/35/11 13/36/11 +f 20/37/12 16/38/12 14/39/12 18/40/12 +o Cube.001 +v 0.125000 -0.250000 0.375000 +v 0.125000 0.250000 0.375000 +v -0.125000 -0.250000 0.375000 +v -0.125000 0.250000 0.375000 +v 0.125000 -0.250000 0.125000 +v 0.125000 0.250000 0.125000 +v -0.125000 -0.250000 0.125000 +v -0.125000 0.250000 0.125000 +vt 1.000000 0.500000 +vt 1.000000 1.000000 +vt 0.750000 1.000000 +vt 0.750000 0.500000 +vt 0.500000 1.000000 +vt 0.500000 0.500000 +vt 0.250000 1.000000 +vt 0.250000 0.500000 +vt 0.000000 1.000000 +vt 0.000000 0.500000 +vt 0.250000 0.500000 +vt 0.000000 0.500000 +vt 0.000000 0.250000 +vt 0.250000 0.250000 +vt 0.250000 0.500000 +vt 0.000000 0.500000 +vt 0.000000 0.250000 +vt 0.250000 0.250000 +vn 0.0000 0.0000 1.0000 +vn -1.0000 0.0000 -0.0000 +vn 0.0000 0.0000 -1.0000 +vn 1.0000 0.0000 0.0000 +vn 0.0000 -1.0000 0.0000 +vn 0.0000 1.0000 0.0000 +s off +f 21/41/13 22/42/13 24/43/13 23/44/13 +f 23/44/14 24/43/14 28/45/14 27/46/14 +f 27/46/15 28/45/15 26/47/15 25/48/15 +f 25/48/16 26/47/16 22/49/16 21/50/16 +f 23/51/17 27/52/17 25/53/17 21/54/17 +f 28/55/18 24/56/18 22/57/18 26/58/18 diff --git a/morelights/morelights_modern/textures/morelights_modern_barlight.png b/morelights/morelights_modern/textures/morelights_modern_barlight.png new file mode 100644 index 0000000..0cc9434 Binary files /dev/null and b/morelights/morelights_modern/textures/morelights_modern_barlight.png differ diff --git a/morelights/morelights_modern/textures/morelights_modern_block.png b/morelights/morelights_modern/textures/morelights_modern_block.png new file mode 100644 index 0000000..1b6624c Binary files /dev/null and b/morelights/morelights_modern/textures/morelights_modern_block.png differ diff --git a/morelights/morelights_modern/textures/morelights_modern_canlight.png b/morelights/morelights_modern/textures/morelights_modern_canlight.png new file mode 100644 index 0000000..86da637 Binary files /dev/null and b/morelights/morelights_modern/textures/morelights_modern_canlight.png differ diff --git a/morelights/morelights_modern/textures/morelights_modern_pathlight.png b/morelights/morelights_modern/textures/morelights_modern_pathlight.png new file mode 100644 index 0000000..dabda5e Binary files /dev/null and b/morelights/morelights_modern/textures/morelights_modern_pathlight.png differ diff --git a/morelights/morelights_modern/textures/morelights_modern_post.png b/morelights/morelights_modern/textures/morelights_modern_post.png new file mode 100644 index 0000000..3581a0f Binary files /dev/null and b/morelights/morelights_modern/textures/morelights_modern_post.png differ diff --git a/morelights/morelights_modern/textures/morelights_modern_smallblock.png b/morelights/morelights_modern/textures/morelights_modern_smallblock.png new file mode 100644 index 0000000..d6bd515 Binary files /dev/null and b/morelights/morelights_modern/textures/morelights_modern_smallblock.png differ diff --git a/morelights/morelights_modern/textures/morelights_modern_tablelamp_d.png b/morelights/morelights_modern/textures/morelights_modern_tablelamp_d.png new file mode 100644 index 0000000..410cd78 Binary files /dev/null and b/morelights/morelights_modern/textures/morelights_modern_tablelamp_d.png differ diff --git a/morelights/morelights_modern/textures/morelights_modern_tablelamp_l.png b/morelights/morelights_modern/textures/morelights_modern_tablelamp_l.png new file mode 100644 index 0000000..9b07fc4 Binary files /dev/null and b/morelights/morelights_modern/textures/morelights_modern_tablelamp_l.png differ diff --git a/morelights/morelights_modern/textures/morelights_modern_tablelamp_o.png b/morelights/morelights_modern/textures/morelights_modern_tablelamp_o.png new file mode 100644 index 0000000..6629bfa Binary files /dev/null and b/morelights/morelights_modern/textures/morelights_modern_tablelamp_o.png differ diff --git a/morelights/morelights_modern/textures/morelights_modern_walllamp.png b/morelights/morelights_modern/textures/morelights_modern_walllamp.png new file mode 100644 index 0000000..48a1034 Binary files /dev/null and b/morelights/morelights_modern/textures/morelights_modern_walllamp.png differ diff --git a/morelights/morelights_vintage/depends.txt b/morelights/morelights_vintage/depends.txt new file mode 100644 index 0000000..ac7ff56 --- /dev/null +++ b/morelights/morelights_vintage/depends.txt @@ -0,0 +1,4 @@ +basic_materials? +default +farming +morelights diff --git a/morelights/morelights_vintage/init.lua b/morelights/morelights_vintage/init.lua new file mode 100644 index 0000000..c8c6dc0 --- /dev/null +++ b/morelights/morelights_vintage/init.lua @@ -0,0 +1,305 @@ +-- basic_materials compatibility + +local brass_ingot_name + +if minetest.get_modpath("basic_materials") then + -- Use basic materials brass ingot + brass_ingot_name = "basic_materials:brass_ingot" +else + -- Register and use morelights brass ingot + minetest.register_craftitem("morelights_vintage:brass_ingot", { + description = "Brass Ingot", + inventory_image = "default_steel_ingot.png^[multiply:#FFCE69" + }) + + minetest.register_craft({ + output = "morelights_vintage:brass_ingot 2", + type = "shapeless", + recipe = { + "default:copper_ingot", "default:tin_ingot" + } + }) + + brass_ingot_name = "morelights_vintage:brass_ingot" +end + +minetest.register_node("morelights_vintage:chain_b", { + description = "Brass Chain", + drawtype = "mesh", + mesh = "morelights_chain.obj", + collision_box = { + type = "fixed", + fixed = {-1/16, -8/16, -1/16, 1/16, 8/16, 1/16} + }, + selection_box = { + type = "fixed", + fixed = {-1/16, -8/16, -1/16, 1/16, 8/16, 1/16} + }, + tiles = {"morelights_vintage_brass_32.png"}, + paramtype = "light", + groups = {cracky = 3, oddly_breakable_by_hand = 3, mounted_ceiling = 1}, + sounds = default.node_sound_metal_defaults(), + + on_place = function(itemstack, placer, pointed_thing) + return morelights.on_place_hanging(itemstack, placer, pointed_thing, + "morelights_vintage:chain_ceiling_b") + end, +}) + +minetest.register_node("morelights_vintage:chain_ceiling_b", { + drawtype = "mesh", + mesh = "morelights_chain_ceiling.obj", + collision_box = { + type = "fixed", + fixed = {{-3/16, 7/16, -3/16, 3/16, 8/16, 3/16}, + {-1/16, -8/16, -1/16, 1/16, 7/16, 1/16}} + }, + selection_box = { + type = "fixed", + fixed = {{-3/16, 7/16, -3/16, 3/16, 8/16, 3/16}, + {-1/16, -8/16, -1/16, 1/16, 7/16, 1/16}} + }, + tiles = {"morelights_vintage_brass_32.png"}, + drop = "morelights_vintage:chain_b", + paramtype = "light", + groups = {cracky = 3, oddly_breakable_by_hand = 3, + not_in_creative_inventory = 1, mounted_ceiling = 1}, + sounds = default.node_sound_metal_defaults(), +}) + +minetest.register_node("morelights_vintage:block", { + description = "Vintage Light Block", + tiles = {"morelights_vintage_block.png"}, + paramtype = "light", + light_source = LIGHT_MAX, + groups = {cracky = 2, oddly_breakable_by_hand = 3}, + sounds = default.node_sound_glass_defaults(), +}) + +minetest.register_node("morelights_vintage:smallblock", { + description = "Vintage Light Block (small)", + drawtype = "nodebox", + node_box = { + type = "fixed", + fixed = {-1/4, -1/2, -1/4, 1/4, 0, 1/4} + }, + tiles = {"morelights_vintage_block.png", "morelights_vintage_block.png", + "[combine:16x16:0,4=morelights_vintage_block.png"}, + paramtype = "light", + paramtype2 = "facedir", + light_source = 12, + groups = {cracky = 2, oddly_breakable_by_hand = 3}, + sounds = default.node_sound_glass_defaults(), + on_place = function(itemstack, placer, pointed_thing) + return morelights.rotate_and_place(itemstack, placer, pointed_thing) + end, +}) + +minetest.register_node("morelights_vintage:lantern_f", { + description = "Vintage Lantern (floor, wall, or ceiling)", + drawtype = "mesh", + mesh = "morelights_vintage_lantern_f.obj", + tiles = {"morelights_vintage_lantern.png", "morelights_metal_dark_32.png"}, + collision_box = { + type = "fixed", + fixed = {-3/16, -1/2, -3/16, 3/16, 1/16, 3/16} + }, + selection_box = { + type = "fixed", + fixed = {-3/16, -1/2, -3/16, 3/16, 1/16, 3/16} + }, + paramtype = "light", + light_source = 12, + groups = {cracky = 2, oddly_breakable_by_hand = 3}, + sounds = default.node_sound_glass_defaults(), + + on_place = function(itemstack, placer, pointed_thing) + local wdir = minetest.dir_to_wallmounted( + vector.subtract(pointed_thing.under, pointed_thing.above)) + local fakestack = itemstack + + if wdir == 0 then + fakestack:set_name("morelights_vintage:lantern_c") + elseif wdir == 1 then + fakestack:set_name("morelights_vintage:lantern_f") + else + fakestack:set_name("morelights_vintage:lantern_w") + end + + itemstack = minetest.item_place(fakestack, placer, pointed_thing, wdir) + itemstack:set_name("morelights_vintage:lantern_f") + + return itemstack + end, +}) + +minetest.register_node("morelights_vintage:lantern_c", { + drawtype = "mesh", + mesh = "morelights_vintage_lantern_c.obj", + tiles = {"morelights_vintage_lantern.png", "morelights_metal_dark_32.png"}, + collision_box = { + type = "fixed", + fixed = {-3/16, -1/16, -3/16, 3/16, 1/2, 3/16} + }, + selection_box = { + type = "fixed", + fixed = {-3/16, 0, -3/16, 3/16, 1/2, 3/16} + }, + paramtype = "light", + light_source = 12, + groups = {cracky = 2, oddly_breakable_by_hand = 3, + not_in_creative_inventory = 1}, + sounds = default.node_sound_glass_defaults(), + drop = "morelights_vintage:lantern_f", +}) + +minetest.register_node("morelights_vintage:lantern_w", { + drawtype = "mesh", + mesh = "morelights_vintage_lantern_w.obj", + tiles = {"morelights_vintage_lantern.png", "morelights_metal_dark_32.png"}, + collision_box = { + type = "fixed", + fixed = {-3/16, -1/4, -5/16, 3/16, 1/8, 3/16} + }, + selection_box = { + type = "wallmounted", + wall_bottom = {-3/16, -1/4, -5/16, 3/16, 1/8, 3/16}, + wall_side = {-1/4, -5/16, -3/16, 1/8, 3/16, 3/16}, + wall_top = {-3/16, -1/8, -5/16, 3/16, 1/4, 3/16} + }, + paramtype = "light", + paramtype2 = "wallmounted", + light_source = 12, + groups = {cracky = 2, oddly_breakable_by_hand = 3, + not_in_creative_inventory = 1}, + sounds = default.node_sound_glass_defaults(), + drop = "morelights_vintage:lantern_f", +}) + +minetest.register_node("morelights_vintage:hangingbulb", { + description = "Vintage Hanging Light Bulb", + drawtype = "mesh", + mesh = "morelights_vintage_hangingbulb.obj", + tiles = {"morelights_vintage_hangingbulb.png^[lowpart:50:morelights_metal_dark_32.png"}, + use_texture_alpha = true, + collision_box = { + type = "fixed", + fixed = {-1/8, -1/8, -1/8, 1/8, 1/2, 1/8} + }, + selection_box = { + type = "fixed", + fixed = {-1/8, -1/8, -1/8, 1/8, 1/2, 1/8} + }, + paramtype = "light", + light_source = 10, + groups = {cracky = 2, oddly_breakable_by_hand = 3}, + sounds = default.node_sound_glass_defaults(), +}) + +minetest.register_node("morelights_vintage:oillamp", { + description = "Vintage Oil Lamp", + drawtype = "mesh", + mesh = "morelights_vintage_oillamp.obj", + tiles = {{name = "morelights_vintage_oil_flame.png", + animation = {type = "sheet_2d", frames_w = 16, frames_h = 1, frame_length = 0.3}}, + "morelights_vintage_oillamp.png", + "morelights_vintage_brass_32.png"}, + collision_box = { + type = "fixed", + fixed = {-1/8, -1/2, -1/8, 1/8, 1/4, 1/8} + }, + selection_box = { + type = "fixed", + fixed = {-1/8, -1/2, -1/8, 1/8, 1/4, 1/8} + }, + paramtype = "light", + light_source = 8, + groups = {cracky = 2, oddly_breakable_by_hand = 3}, + sounds = default.node_sound_glass_defaults(), +}) + +minetest.register_node("morelights_vintage:chandelier", { + description = "Vintage Chandelier", + drawtype = "mesh", + mesh = "morelights_vintage_chandelier.obj", + tiles = {"morelights_vintage_chandelier.png", + "morelights_vintage_brass_32.png^[multiply:#DFDFDF"}, + collision_box = { + type = "fixed", + fixed = {-3/8, -1/2, -3/8, 3/8, 1/2, 3/8} + }, + selection_box = { + type = "fixed", + fixed = {-3/8, -1/2, -3/8, 3/8, 1/2, 3/8} + }, + paramtype = "light", + light_source = 10, + groups = {cracky = 2, oddly_breakable_by_hand = 3}, + sounds = default.node_sound_glass_defaults(), +}) + +-- +-- Craft recipes +-- + +minetest.register_craft({ + output = "morelights_vintage:chain_b", + recipe = { + {"", brass_ingot_name, ""}, + {"", "", ""}, + {"", brass_ingot_name, ""} + } +}) + +minetest.register_craft({ + output = "morelights_vintage:block", + recipe = { + {"", "default:junglewood", ""}, + {morelights.glass, "morelights:bulb", morelights.glass}, + {"", "default:junglewood", ""} + } +}) + +minetest.register_craft({ + output = "morelights_vintage:smallblock", + recipe = { + {"", morelights.glass, ""}, + {"default:junglewood", "morelights:bulb", "default:junglewood"} + } +}) + +minetest.register_craft({ + output = "morelights_vintage:lantern_f", + recipe = { + {"", "default:steel_ingot", ""}, + {morelights.glass, "morelights:bulb", morelights.glass}, + {"default:stick", "default:steel_ingot", "default:stick"} + } +}) + +minetest.register_craft({ + output = "morelights_vintage:hangingbulb", + recipe = { + {"", "default:steel_ingot", ""}, + {"", "default:copper_ingot", ""}, + {"", "morelights:bulb", ""} + } +}) + +minetest.register_craft({ + output = "morelights_vintage:oillamp", + recipe = { + {"", "default:glass", ""}, + {"farming:cotton", brass_ingot_name, ""}, + {"", "default:glass", ""} + } +}) + +minetest.register_craft({ + output = "morelights_vintage:chandelier", + recipe = { + {"", brass_ingot_name, ""}, + {"morelights:bulb", brass_ingot_name, "morelights:bulb"}, + {"default:steel_ingot", brass_ingot_name, "default:steel_ingot"} + } +}) diff --git a/morelights/morelights_vintage/models/morelights_vintage_chandelier.obj b/morelights/morelights_vintage/models/morelights_vintage_chandelier.obj new file mode 100644 index 0000000..22fd05b --- /dev/null +++ b/morelights/morelights_vintage/models/morelights_vintage_chandelier.obj @@ -0,0 +1,79 @@ +# Blender v2.79 (sub 0) OBJ File: 'vintage_chandelier.blend' +# www.blender.org +o Plane.001_Plane.005 +v 0.250000 -0.500000 -0.433013 +v -0.250000 -0.500000 0.433013 +v 0.250000 0.500000 -0.433013 +v -0.250000 0.500000 0.433013 +v -0.250000 -0.500000 -0.433013 +v 0.250000 -0.500000 0.433013 +v -0.250000 0.500000 -0.433013 +v 0.250000 0.500000 0.433013 +v 0.500000 -0.500000 0.000000 +v -0.500000 -0.500000 0.000000 +v 0.500000 0.500000 -0.000000 +v -0.500000 0.500000 0.000000 +v 0.000000 -0.500000 0.000000 +v -0.000000 0.500000 -0.000000 +vt 0.000000 0.000000 +vt 0.500000 0.000000 +vt 0.500000 1.000000 +vt 0.000000 1.000000 +vt 0.000000 0.000000 +vt 0.000000 1.000000 +vt 0.000000 0.000000 +vt 0.000000 1.000000 +vt 1.000000 0.000000 +vt 1.000000 1.000000 +vt 1.000000 0.000000 +vt 1.000000 1.000000 +vt 1.000000 0.000000 +vt 1.000000 1.000000 +vn -0.8660 -0.0000 -0.5000 +vn -0.8660 -0.0000 0.5000 +vn -0.0000 -0.0000 -1.0000 +g Plane.001_Plane.005_Material.001 +s off +f 1/1/1 13/2/1 14/3/1 3/4/1 +f 5/5/2 13/2/2 14/3/2 7/6/2 +f 9/7/3 13/2/3 14/3/3 11/8/3 +f 14/3/1 13/2/1 2/9/1 4/10/1 +f 14/3/2 13/2/2 6/11/2 8/12/2 +f 14/3/3 13/2/3 10/13/3 12/14/3 +o Cube +v 0.031250 -0.375000 -0.031250 +v 0.031250 -0.375000 0.031250 +v -0.031250 -0.375000 0.031250 +v -0.031250 -0.375000 -0.031250 +v 0.031250 0.500000 -0.031250 +v 0.031250 0.500000 0.031250 +v -0.031250 0.500000 0.031250 +v -0.031250 0.500000 -0.031250 +vt 0.437500 0.062500 +vt 0.375000 0.062500 +vt 0.375000 0.000000 +vt 0.437500 0.000000 +vt 0.437500 0.937500 +vt 0.437500 1.000000 +vt 0.375000 1.000000 +vt 0.375000 0.937500 +vt 0.625000 0.062500 +vt 0.625000 0.937500 +vt 0.562500 0.937500 +vt 0.562500 0.062500 +vt 0.500000 0.937500 +vt 0.500000 0.062500 +vn 0.0000 -1.0000 0.0000 +vn 0.0000 1.0000 0.0000 +vn 1.0000 0.0000 0.0000 +vn -0.0000 -0.0000 1.0000 +vn -1.0000 -0.0000 -0.0000 +vn 0.0000 0.0000 -1.0000 +g Cube_Cube_Material +s off +f 15/15/4 16/16/4 17/17/4 18/18/4 +f 19/19/5 22/20/5 21/21/5 20/22/5 +f 15/15/6 19/19/6 20/22/6 16/16/6 +f 16/23/7 20/24/7 21/25/7 17/26/7 +f 17/26/8 21/25/8 22/27/8 18/28/8 +f 19/19/9 15/15/9 18/28/9 22/27/9 diff --git a/morelights/morelights_vintage/models/morelights_vintage_hangingbulb.obj b/morelights/morelights_vintage/models/morelights_vintage_hangingbulb.obj new file mode 100644 index 0000000..0f1ba38 --- /dev/null +++ b/morelights/morelights_vintage/models/morelights_vintage_hangingbulb.obj @@ -0,0 +1,192 @@ +# Blender v2.79 (sub 0) OBJ File: 'bulb.blend' +# www.blender.org +o Cube_Cube.009 +v -0.031250 0.093750 0.031250 +v -0.031250 0.343750 0.031250 +v -0.031250 0.093750 -0.031250 +v -0.031250 0.343750 -0.031250 +v 0.031250 0.093750 0.031250 +v 0.031250 0.343750 0.031250 +v 0.031250 0.093750 -0.031250 +v 0.031250 0.343750 -0.031250 +v 0.000000 0.343750 0.000000 +v 0.000000 0.093750 0.000000 +vt 0.000000 1.000000 +vt 0.000000 0.750000 +vt 0.031251 0.750000 +vt 0.031249 1.000000 +vt 0.062501 0.750000 +vt 0.062499 1.000000 +vt 0.000000 0.750000 +vt 0.000000 1.000000 +vt 0.062499 1.000000 +vt 0.062501 0.750000 +vn -0.7071 0.0000 0.7071 +vn -0.7071 0.0000 -0.7071 +s off +f 4/1/1 3/2/1 10/3/1 9/4/1 +f 1/5/2 2/6/2 9/4/2 10/3/2 +f 9/4/1 10/3/1 5/7/1 6/8/1 +f 10/3/2 9/4/2 8/9/2 7/10/2 +o Cube.002_Cube.007 +v -0.062500 0.000000 0.062500 +v -0.062500 0.031250 0.093750 +v -0.093750 0.031250 0.062500 +v -0.062500 0.312500 0.093750 +v -0.062500 0.343750 0.062500 +v -0.093750 0.312500 0.062500 +v -0.062500 0.000000 -0.062500 +v -0.093750 0.031250 -0.062500 +v -0.062500 0.031250 -0.093750 +v -0.062500 0.343750 -0.062500 +v -0.062500 0.312500 -0.093750 +v -0.093750 0.312500 -0.062500 +v 0.062500 0.000000 0.062500 +v 0.093750 0.031250 0.062500 +v 0.062500 0.031250 0.093750 +v 0.062500 0.343750 0.062500 +v 0.062500 0.312500 0.093750 +v 0.093750 0.312500 0.062500 +v 0.062500 0.000000 -0.062500 +v 0.062500 0.031250 -0.093750 +v 0.093750 0.031250 -0.062500 +v 0.062500 0.343750 -0.062500 +v 0.093750 0.312500 -0.062500 +v 0.062500 0.312500 -0.093750 +vt 0.437500 0.656250 +vt 0.437500 0.937500 +vt 0.312500 0.937500 +vt 0.312500 0.656250 +vt 0.625000 0.656250 +vt 0.625000 0.937500 +vt 0.500000 0.937500 +vt 0.500000 0.656250 +vt 1.000003 0.656250 +vt 1.000002 0.937500 +vt 0.875000 0.937500 +vt 0.875000 0.656250 +vt 0.812500 0.656250 +vt 0.812500 0.937500 +vt 0.687500 0.937500 +vt 0.687500 0.656250 +vt 0.281250 0.593750 +vt 0.250000 0.656250 +vt 0.281250 1.000000 +vt 0.250000 0.937500 +vt 0.843750 0.593750 +vt 0.843750 1.000000 +vt 0.468750 0.593750 +vt 0.468750 1.000000 +vt 0.656250 0.593750 +vt 0.656250 1.000000 +vt 0.875000 0.593750 +vt 1.000003 0.593750 +vt 1.000002 1.000000 +vt 0.875000 1.000000 +vt 0.687500 0.593750 +vt 0.812500 0.593750 +vt 0.812500 1.000000 +vt 0.687500 1.000000 +vt 0.500000 0.593750 +vt 0.625000 0.593750 +vt 0.625000 1.000000 +vt 0.500000 1.000000 +vt 0.312500 0.593750 +vt 0.437500 0.593750 +vt 0.437500 1.000000 +vt 0.312500 1.000000 +vt 0.250000 1.000000 +vt 0.125000 1.000000 +vt 0.125000 0.875000 +vt 0.250000 0.875000 +vn 0.0000 0.0000 1.0000 +vn 1.0000 0.0000 0.0000 +vn -1.0000 0.0000 0.0000 +vn 0.0000 0.0000 -1.0000 +vn -0.5774 -0.5774 0.5774 +vn -0.5774 0.5774 0.5774 +vn -0.5774 -0.5774 -0.5774 +vn -0.5774 0.5774 -0.5774 +vn 0.5774 -0.5774 0.5774 +vn 0.5774 0.5774 0.5774 +vn 0.5774 -0.5774 -0.5774 +vn 0.5774 0.5774 -0.5774 +vn -0.7071 -0.7071 0.0000 +vn -0.7071 0.0000 0.7071 +vn -0.7071 0.7071 0.0000 +vn -0.7071 0.0000 -0.7071 +vn 0.0000 -0.7071 -0.7071 +vn 0.0000 0.7071 -0.7071 +vn 0.7071 0.0000 -0.7071 +vn 0.7071 -0.7071 0.0000 +vn 0.7071 0.7071 0.0000 +vn 0.7071 0.0000 0.7071 +vn 0.0000 -0.7071 0.7071 +vn 0.0000 0.7071 0.7071 +vn 0.0000 -1.0000 0.0000 +s off +f 25/11/3 27/12/3 14/13/3 12/14/3 +f 31/15/4 33/16/4 28/17/4 24/18/4 +f 13/19/5 16/20/5 22/21/5 18/22/5 +f 19/23/6 21/24/6 34/25/6 30/26/6 +f 11/27/7 12/14/7 13/28/7 +f 14/13/8 15/29/8 16/30/8 +f 17/31/9 18/22/9 19/23/9 +f 20/32/10 21/24/10 22/21/10 +f 23/33/11 24/18/11 25/11/11 +f 26/34/12 27/12/12 28/17/12 +f 29/35/13 30/26/13 31/15/13 +f 32/36/14 33/16/14 34/25/14 +f 17/37/15 11/38/15 13/19/15 18/22/15 +f 12/14/16 14/13/16 16/30/16 13/28/16 +f 15/39/17 20/40/17 22/21/17 16/20/17 +f 21/24/18 19/23/18 18/22/18 22/21/18 +f 29/41/19 17/42/19 19/23/19 30/26/19 +f 20/43/20 32/44/20 34/25/20 21/24/20 +f 33/16/21 31/15/21 30/26/21 34/25/21 +f 23/45/22 29/46/22 31/15/22 24/18/22 +f 32/47/23 26/48/23 28/17/23 33/16/23 +f 27/12/24 25/11/24 24/18/24 28/17/24 +f 11/49/25 23/50/25 25/11/25 12/14/25 +f 26/51/26 15/52/26 14/13/26 27/12/26 +f 17/53/27 29/54/27 23/55/27 11/56/27 +o Cube.001_Cube.006 +v -0.062500 0.343750 0.062500 +v -0.062500 0.500000 0.062500 +v -0.062500 0.343750 -0.062500 +v -0.062500 0.500000 -0.062500 +v 0.062500 0.343750 0.062500 +v 0.062500 0.500000 0.062500 +v 0.062500 0.343750 -0.062500 +v 0.062500 0.500000 -0.062500 +vt 0.500000 0.000000 +vt 0.500000 0.156250 +vt 0.375000 0.156250 +vt 0.375000 0.000000 +vt 0.250000 0.156250 +vt 0.250000 0.000000 +vt 0.125000 0.156250 +vt 0.125000 0.000000 +vt 0.000000 0.156250 +vt 0.000000 0.000000 +vt 0.125000 0.156250 +vt 0.125000 0.281250 +vt 0.000000 0.281250 +vt 0.000000 0.156250 +vt 0.250000 0.281250 +vt 0.125000 0.281250 +vt 0.125000 0.156250 +vt 0.250000 0.156250 +vn -1.0000 0.0000 0.0000 +vn 0.0000 0.0000 -1.0000 +vn 1.0000 0.0000 0.0000 +vn 0.0000 0.0000 1.0000 +vn 0.0000 -1.0000 0.0000 +vn 0.0000 1.0000 0.0000 +s off +f 35/57/28 36/58/28 38/59/28 37/60/28 +f 37/60/29 38/59/29 42/61/29 41/62/29 +f 41/62/30 42/61/30 40/63/30 39/64/30 +f 39/64/31 40/63/31 36/65/31 35/66/31 +f 37/67/32 41/68/32 39/69/32 35/70/32 +f 42/71/33 38/72/33 36/73/33 40/74/33 diff --git a/morelights/morelights_vintage/models/morelights_vintage_lantern_c.obj b/morelights/morelights_vintage/models/morelights_vintage_lantern_c.obj new file mode 100644 index 0000000..27512d1 --- /dev/null +++ b/morelights/morelights_vintage/models/morelights_vintage_lantern_c.obj @@ -0,0 +1,105 @@ +# Blender v2.79 (sub 0) OBJ File: 'vintage_lantern_ceiling.blend' +# www.blender.org +o Cube.003 +v -0.125000 0.000000 0.125000 +v -0.125000 0.375000 0.125000 +v -0.125000 0.000000 -0.125000 +v -0.125000 0.375000 -0.125000 +v 0.125000 0.000000 0.125000 +v 0.125000 0.375000 0.125000 +v 0.125000 0.000000 -0.125000 +v 0.125000 0.375000 -0.125000 +vt 0.750000 0.500000 +vt 0.750000 0.875000 +vt 0.500000 0.875000 +vt 0.500000 0.500000 +vt 0.250000 0.875000 +vt 0.250000 0.500000 +vt 0.000000 0.875000 +vt 0.000000 0.500000 +vt 1.000000 0.500000 +vt 1.000000 0.875000 +vt 0.750000 0.250000 +vt 1.000000 0.250000 +vn -1.0000 0.0000 0.0000 +vn 0.0000 0.0000 -1.0000 +vn 1.0000 0.0000 0.0000 +vn 0.0000 0.0000 1.0000 +vn 0.0000 -1.0000 0.0000 +g Cube.003_Cube.003_Material.001 +s off +f 1/1/1 2/2/1 4/3/1 3/4/1 +f 3/4/2 4/3/2 8/5/2 7/6/2 +f 7/6/3 8/5/3 6/7/3 5/8/3 +f 5/9/4 6/10/4 2/2/4 1/1/4 +f 3/11/5 7/12/5 5/9/5 1/1/5 +o Cube.001 +v -0.156250 0.375000 0.156250 +v -0.156250 0.437500 0.156250 +v -0.156250 0.375000 -0.156250 +v -0.156250 0.437500 -0.156250 +v 0.156250 0.375000 0.156250 +v 0.156250 0.437500 0.156250 +v 0.156250 0.375000 -0.156250 +v 0.156250 0.437500 -0.156250 +v -0.062500 0.437500 0.062500 +v -0.062500 0.500000 0.062500 +v -0.062500 0.437500 -0.062500 +v -0.062500 0.500000 -0.062500 +v 0.062500 0.437500 0.062500 +v 0.062500 0.500000 0.062500 +v 0.062500 0.437500 -0.062500 +v 0.062500 0.500000 -0.062500 +vt 0.500000 0.875000 +vt 0.500000 0.812500 +vt 0.812500 0.812500 +vt 0.812500 0.875000 +vt 0.812500 0.812500 +vt 0.812500 0.875000 +vt 0.500000 0.875000 +vt 0.500000 0.812500 +vt 0.187500 0.875000 +vt 0.187500 0.812500 +vt 0.187500 0.875000 +vt 0.187500 0.812500 +vt 0.500000 0.812500 +vt 0.187500 0.812500 +vt 0.187500 0.500000 +vt 0.500000 0.500000 +vt 0.500000 0.500000 +vt 0.500000 0.812500 +vt 0.187500 0.812500 +vt 0.187500 0.500000 +vt 1.000000 0.375000 +vt 1.000000 0.437500 +vt 0.875000 0.437500 +vt 0.875000 0.375000 +vt 0.750000 0.437500 +vt 0.750000 0.375000 +vt 0.625000 0.437500 +vt 0.625000 0.375000 +vt 0.500000 0.437500 +vt 0.500000 0.375000 +vt 0.625000 0.625000 +vt 0.500000 0.625000 +vt 0.500000 0.500000 +vt 0.625000 0.500000 +vn -1.0000 0.0000 0.0000 +vn 0.0000 0.0000 -1.0000 +vn 1.0000 0.0000 0.0000 +vn 0.0000 0.0000 1.0000 +vn 0.0000 -1.0000 0.0000 +vn 0.0000 1.0000 0.0000 +g Cube.001_Cube.001_Material.000 +s off +f 9/13/6 10/14/6 12/15/6 11/16/6 +f 11/17/7 12/18/7 16/19/7 15/20/7 +f 15/20/8 16/19/8 14/21/8 13/22/8 +f 13/23/9 14/24/9 10/14/9 9/13/9 +f 11/25/10 15/26/10 13/27/10 9/28/10 +f 16/29/11 12/30/11 10/31/11 14/32/11 +f 17/33/6 18/34/6 20/35/6 19/36/6 +f 19/36/7 20/35/7 24/37/7 23/38/7 +f 23/38/8 24/37/8 22/39/8 21/40/8 +f 21/40/9 22/39/9 18/41/9 17/42/9 +f 24/43/11 20/44/11 18/45/11 22/46/11 diff --git a/morelights/morelights_vintage/models/morelights_vintage_lantern_f.obj b/morelights/morelights_vintage/models/morelights_vintage_lantern_f.obj new file mode 100644 index 0000000..8f07e1c --- /dev/null +++ b/morelights/morelights_vintage/models/morelights_vintage_lantern_f.obj @@ -0,0 +1,131 @@ +# Blender v2.79 (sub 0) OBJ File: 'vintage_lantern.blend' +# www.blender.org +o Cube.003 +v -0.125000 -0.437500 0.125000 +v -0.125000 -0.062500 0.125000 +v -0.125000 -0.437500 -0.125000 +v -0.125000 -0.062500 -0.125000 +v 0.125000 -0.437500 0.125000 +v 0.125000 -0.062500 0.125000 +v 0.125000 -0.437500 -0.125000 +v 0.125000 -0.062500 -0.125000 +vt 0.750000 0.500000 +vt 0.750000 0.875000 +vt 0.500000 0.875000 +vt 0.500000 0.500000 +vt 0.250000 0.875000 +vt 0.250000 0.500000 +vt 0.000000 0.875000 +vt 0.000000 0.500000 +vt 1.000000 0.500000 +vt 1.000000 0.875000 +vn -1.0000 0.0000 0.0000 +vn 0.0000 0.0000 -1.0000 +vn 1.0000 0.0000 0.0000 +vn 0.0000 0.0000 1.0000 +g Cube.003_Cube.003_Material.001 +s off +f 1/1/1 2/2/1 4/3/1 3/4/1 +f 3/4/2 4/3/2 8/5/2 7/6/2 +f 7/6/3 8/5/3 6/7/3 5/8/3 +f 5/9/4 6/10/4 2/2/4 1/1/4 +o Cube.001 +v -0.156250 -0.500000 0.156250 +v -0.156250 -0.437500 0.156250 +v -0.156250 -0.500000 -0.156250 +v -0.156250 -0.437500 -0.156250 +v 0.156250 -0.500000 0.156250 +v 0.156250 -0.437500 0.156250 +v 0.156250 -0.500000 -0.156250 +v 0.156250 -0.437500 -0.156250 +v -0.156250 -0.062500 0.156250 +v -0.156250 0.000000 0.156250 +v -0.156250 -0.062500 -0.156250 +v -0.156250 0.000000 -0.156250 +v 0.156250 -0.062500 0.156250 +v 0.156250 0.000000 0.156250 +v 0.156250 -0.062500 -0.156250 +v 0.156250 0.000000 -0.156250 +v -0.062500 0.000000 0.062500 +v -0.062500 0.062500 0.062500 +v -0.062500 0.000000 -0.062500 +v -0.062500 0.062500 -0.062500 +v 0.062500 0.000000 0.062500 +v 0.062500 0.062500 0.062500 +v 0.062500 0.000000 -0.062500 +v 0.062500 0.062500 -0.062500 +vt 0.500000 0.187500 +vt 0.500000 0.125000 +vt 0.812500 0.125000 +vt 0.812500 0.187500 +vt 0.812500 0.125000 +vt 0.812500 0.187500 +vt 0.500000 0.187500 +vt 0.500000 0.125000 +vt 0.187500 0.187500 +vt 0.187500 0.125000 +vt 0.187500 0.187500 +vt 0.187500 0.125000 +vt 0.500000 0.500000 +vt 0.187500 0.500000 +vt 0.500000 0.500000 +vt 0.187500 0.500000 +vt 0.500000 0.875000 +vt 0.500000 0.812500 +vt 0.812500 0.812500 +vt 0.812500 0.875000 +vt 0.812500 0.812500 +vt 0.812500 0.875000 +vt 0.500000 0.875000 +vt 0.500000 0.812500 +vt 0.187500 0.875000 +vt 0.187500 0.812500 +vt 0.187500 0.875000 +vt 0.187500 0.812500 +vt 0.500000 0.812500 +vt 0.187500 0.812500 +vt 0.187500 0.500000 +vt 0.500000 0.500000 +vt 0.500000 0.500000 +vt 0.500000 0.812500 +vt 0.187500 0.812500 +vt 0.187500 0.500000 +vt 1.000000 0.375000 +vt 1.000000 0.437500 +vt 0.875000 0.437500 +vt 0.875000 0.375000 +vt 0.750000 0.437500 +vt 0.750000 0.375000 +vt 0.625000 0.437500 +vt 0.625000 0.375000 +vt 0.500000 0.437500 +vt 0.500000 0.375000 +vt 0.625000 0.625000 +vt 0.500000 0.625000 +vt 0.500000 0.500000 +vt 0.625000 0.500000 +vn -1.0000 0.0000 0.0000 +vn 0.0000 0.0000 -1.0000 +vn 1.0000 0.0000 0.0000 +vn 0.0000 0.0000 1.0000 +vn 0.0000 -1.0000 0.0000 +vn 0.0000 1.0000 0.0000 +g Cube.001_Cube.001_Material.000 +s off +f 9/11/5 10/12/5 12/13/5 11/14/5 +f 11/15/6 12/16/6 16/17/6 15/18/6 +f 15/18/7 16/17/7 14/19/7 13/20/7 +f 13/21/8 14/22/8 10/12/8 9/11/8 +f 11/23/9 15/24/9 13/21/9 9/11/9 +f 16/17/10 12/25/10 10/26/10 14/19/10 +f 17/27/5 18/28/5 20/29/5 19/30/5 +f 19/31/6 20/32/6 24/33/6 23/34/6 +f 23/34/7 24/33/7 22/35/7 21/36/7 +f 21/37/8 22/38/8 18/28/8 17/27/8 +f 19/39/9 23/40/9 21/41/9 17/42/9 +f 24/43/10 20/44/10 18/45/10 22/46/10 +f 25/47/5 26/48/5 28/49/5 27/50/5 +f 27/50/6 28/49/6 32/51/6 31/52/6 +f 31/52/7 32/51/7 30/53/7 29/54/7 +f 29/54/8 30/53/8 26/55/8 25/56/8 +f 32/57/10 28/58/10 26/59/10 30/60/10 diff --git a/morelights/morelights_vintage/models/morelights_vintage_lantern_w.obj b/morelights/morelights_vintage/models/morelights_vintage_lantern_w.obj new file mode 100644 index 0000000..ceb48b1 --- /dev/null +++ b/morelights/morelights_vintage/models/morelights_vintage_lantern_w.obj @@ -0,0 +1,142 @@ +# Blender v2.79 (sub 0) OBJ File: 'vintage_lantern_wall2_merged.blend' +# www.blender.org +o Cube.003 +v -0.125000 -0.187500 -0.312500 +v -0.125000 -0.187500 0.062500 +v -0.125000 0.062500 -0.312500 +v -0.125000 0.062500 0.062500 +v 0.125000 -0.187500 -0.312500 +v 0.125000 -0.187500 0.062500 +v 0.125000 0.062500 -0.312500 +v 0.125000 0.062500 0.062500 +v -0.000000 -0.437500 0.312500 +v 0.000000 -0.437500 0.062500 +v -0.000000 0.062500 0.312500 +v 0.000000 0.062500 0.062500 +vt 0.750000 0.500000 +vt 0.750000 0.875000 +vt 0.500000 0.875000 +vt 0.500000 0.500000 +vt 0.250000 0.875000 +vt 0.250000 0.500000 +vt 0.000000 0.875000 +vt 0.000000 0.500000 +vt 1.000000 0.500000 +vt 1.000000 0.875000 +vt 0.000000 0.500000 +vt 0.000000 0.250000 +vt 0.500000 0.250000 +vt 0.500000 0.500000 +vt 0.750000 0.250000 +vt 1.000000 0.250000 +vn -1.0000 0.0000 0.0000 +vn 0.0000 1.0000 0.0000 +vn 1.0000 0.0000 0.0000 +vn 0.0000 -1.0000 0.0000 +vn 0.0000 0.0000 -1.0000 +g Cube.003_Cube.003_Material.001 +s off +f 1/1/1 2/2/1 4/3/1 3/4/1 +f 3/4/2 4/3/2 8/5/2 7/6/2 +f 7/6/3 8/5/3 6/7/3 5/8/3 +f 5/9/4 6/10/4 2/2/4 1/1/4 +f 9/11/3 10/12/3 12/13/3 11/14/3 +f 3/15/5 7/16/5 5/9/5 1/1/5 +o Cube.001 +v -0.156250 -0.218750 0.062500 +v -0.156250 -0.218750 0.125000 +v -0.156250 0.093750 0.062500 +v -0.156250 0.093750 0.125000 +v 0.156250 -0.218750 0.062500 +v 0.156250 -0.218750 0.125000 +v 0.156250 0.093750 0.062500 +v 0.156250 0.093750 0.125000 +v -0.062500 -0.125000 0.125000 +v -0.062500 -0.125000 0.187500 +v -0.062500 -0.000000 0.125000 +v -0.062500 -0.000000 0.187500 +v 0.062500 -0.125000 0.125000 +v 0.062500 -0.125000 0.187500 +v 0.062500 -0.000000 0.125000 +v 0.062500 -0.000000 0.187500 +v 0.125000 -0.500000 -0.125000 +v 0.125000 -0.500000 0.375000 +v -0.125000 -0.500000 -0.125000 +v -0.125000 -0.500000 0.375000 +v 0.125000 -0.437500 -0.125000 +v 0.125000 -0.437500 0.375000 +v -0.125000 -0.437500 -0.125000 +v -0.125000 -0.437500 0.375000 +vt 0.500000 0.875000 +vt 0.500000 0.812500 +vt 0.812500 0.812500 +vt 0.812500 0.875000 +vt 0.812500 0.812500 +vt 0.812500 0.875000 +vt 0.500000 0.875000 +vt 0.500000 0.812500 +vt 0.187500 0.875000 +vt 0.187500 0.812500 +vt 0.187500 0.875000 +vt 0.187500 0.812500 +vt 0.500000 0.812500 +vt 0.187500 0.812500 +vt 0.187500 0.500000 +vt 0.500000 0.500000 +vt 0.500000 0.500000 +vt 0.500000 0.812500 +vt 0.187500 0.812500 +vt 0.187500 0.500000 +vt 1.000000 0.375000 +vt 1.000000 0.437500 +vt 0.875000 0.437500 +vt 0.875000 0.375000 +vt 0.750000 0.437500 +vt 0.750000 0.375000 +vt 0.625000 0.437500 +vt 0.625000 0.375000 +vt 0.500000 0.437500 +vt 0.500000 0.375000 +vt 0.625000 0.625000 +vt 0.500000 0.625000 +vt 0.500000 0.500000 +vt 0.625000 0.500000 +vt 0.937500 0.250000 +vt 0.937500 0.750000 +vt 0.687500 0.750000 +vt 0.687500 0.250000 +vt 0.625000 0.750000 +vt 0.625000 0.250000 +vt 0.375000 0.750000 +vt 0.375000 0.250000 +vt 0.312500 0.750000 +vt 0.312500 0.250000 +vt 0.687500 0.187500 +vt 0.937500 0.187500 +vt 0.687500 0.812500 +vt 0.937500 0.812500 +vn -1.0000 0.0000 0.0000 +vn 0.0000 1.0000 0.0000 +vn 1.0000 0.0000 0.0000 +vn 0.0000 -1.0000 0.0000 +vn 0.0000 0.0000 -1.0000 +vn 0.0000 0.0000 1.0000 +g Cube.001_Cube.001_Material.000 +s off +f 13/17/6 14/18/6 16/19/6 15/20/6 +f 15/21/7 16/22/7 20/23/7 19/24/7 +f 19/24/8 20/23/8 18/25/8 17/26/8 +f 17/27/9 18/28/9 14/18/9 13/17/9 +f 15/29/10 19/30/10 17/31/10 13/32/10 +f 20/33/11 16/34/11 14/35/11 18/36/11 +f 21/37/6 22/38/6 24/39/6 23/40/6 +f 23/40/7 24/39/7 28/41/7 27/42/7 +f 27/42/8 28/41/8 26/43/8 25/44/8 +f 25/44/9 26/43/9 22/45/9 21/46/9 +f 28/47/11 24/48/11 22/49/11 26/50/11 +f 29/51/9 30/52/9 32/53/9 31/54/9 +f 31/54/6 32/53/6 36/55/6 35/56/6 +f 35/56/7 36/55/7 34/57/7 33/58/7 +f 33/58/8 34/57/8 30/59/8 29/60/8 +f 31/54/10 35/61/10 33/62/10 29/51/10 +f 36/63/11 32/53/11 30/52/11 34/64/11 diff --git a/morelights/morelights_vintage/models/morelights_vintage_oillamp.obj b/morelights/morelights_vintage/models/morelights_vintage_oillamp.obj new file mode 100644 index 0000000..de84b17 --- /dev/null +++ b/morelights/morelights_vintage/models/morelights_vintage_oillamp.obj @@ -0,0 +1,169 @@ +# Blender v2.79 (sub 0) OBJ File: 'vintage_oillamp.blend' +# www.blender.org +o Plane +v -0.031250 -0.468750 -0.031250 +v 0.031250 -0.468750 0.031250 +v -0.031250 0.031250 -0.031250 +v 0.031250 0.031250 0.031250 +v 0.031250 -0.468750 -0.031250 +v -0.031250 -0.468750 0.031250 +v 0.031250 0.031250 -0.031250 +v -0.031250 0.031250 0.031250 +vt 0.000000 0.000000 +vt 1.000000 0.000000 +vt 1.000000 1.000000 +vt 0.000000 1.000000 +vt -0.000000 0.000000 +vt 1.000000 0.000000 +vt 1.000000 1.000000 +vt -0.000000 1.000000 +vn -0.7071 -0.0000 0.7071 +vn -0.7071 -0.0000 -0.7071 +g Plane_Plane_Material.003 +s off +f 1/1/1 2/2/1 4/3/1 3/4/1 +f 5/5/2 6/6/2 8/7/2 7/8/2 +o Cube.001 +v -0.125000 -0.499000 0.125000 +v -0.125000 -0.343750 0.125000 +v -0.125000 -0.499000 -0.125000 +v -0.125000 -0.343750 -0.125000 +v 0.125000 -0.499000 0.125000 +v 0.125000 -0.343750 0.125000 +v 0.125000 -0.499000 -0.125000 +v 0.125000 -0.343750 -0.125000 +v -0.125000 -0.218750 0.125000 +v -0.125000 0.250000 0.125000 +v -0.125000 -0.218750 -0.125000 +v -0.125000 0.250000 -0.125000 +v 0.125000 -0.218750 0.125000 +v 0.125000 0.250000 0.125000 +v 0.125000 -0.218750 -0.125000 +v 0.125000 0.250000 -0.125000 +vt 0.750000 0.000000 +vt 0.750000 0.156250 +vt 0.500000 0.156250 +vt 0.500000 0.000000 +vt 0.250000 0.156250 +vt 0.250000 0.000000 +vt 0.000000 0.156250 +vt 0.000000 0.000000 +vt 1.000000 0.000000 +vt 1.000000 0.156250 +vt 0.250000 0.406250 +vt 0.000000 0.406250 +vt 0.000000 0.156250 +vt 0.250000 0.156250 +vt 0.750000 0.406250 +vt 0.750000 0.875000 +vt 0.500000 0.875000 +vt 0.500000 0.406250 +vt 0.250000 0.875000 +vt 0.250000 0.406250 +vt 0.000000 0.875000 +vt 0.000000 0.406250 +vt 1.000000 0.406250 +vt 1.000000 0.875000 +vt 0.500000 0.406250 +vt 0.250000 0.406250 +vt 0.250000 0.156250 +vt 0.500000 0.156250 +vn -1.0000 0.0000 0.0000 +vn 0.0000 0.0000 -1.0000 +vn 1.0000 0.0000 0.0000 +vn 0.0000 0.0000 1.0000 +vn 0.0000 -1.0000 0.0000 +vn 0.0000 1.0000 0.0000 +g Cube.001_Cube.001_Material.002 +s off +f 9/9/3 10/10/3 12/11/3 11/12/3 +f 11/12/4 12/11/4 16/13/4 15/14/4 +f 15/14/5 16/13/5 14/15/5 13/16/5 +f 13/17/6 14/18/6 10/10/6 9/9/6 +f 11/19/7 15/20/7 13/21/7 9/22/7 +f 17/23/3 18/24/3 20/25/3 19/26/3 +f 19/26/4 20/25/4 24/27/4 23/28/4 +f 23/28/5 24/27/5 22/29/5 21/30/5 +f 21/31/6 22/32/6 18/24/6 17/23/6 +f 18/33/8 22/34/8 24/35/8 20/36/8 +o Cube +v 0.062500 -0.312500 -0.062500 +v 0.062500 -0.312500 0.062500 +v -0.062500 -0.312500 0.062500 +v -0.062500 -0.312500 -0.062500 +v 0.062500 -0.250000 -0.062500 +v 0.062500 -0.250000 0.062500 +v -0.062500 -0.250000 0.062500 +v -0.062500 -0.250000 -0.062500 +v -0.125000 -0.343750 0.125000 +v -0.125000 -0.312500 0.125000 +v -0.125000 -0.343750 -0.125000 +v -0.125000 -0.312500 -0.125000 +v 0.125000 -0.343750 0.125000 +v 0.125000 -0.312500 0.125000 +v 0.125000 -0.343750 -0.125000 +v 0.125000 -0.312500 -0.125000 +v -0.125000 -0.250000 0.125000 +v -0.125000 -0.218750 0.125000 +v -0.125000 -0.250000 -0.125000 +v -0.125000 -0.218750 -0.125000 +v 0.125000 -0.250000 0.125000 +v 0.125000 -0.218750 0.125000 +v 0.125000 -0.250000 -0.125000 +v 0.125000 -0.218750 -0.125000 +vt 0.625000 0.531250 +vt 0.625000 0.468750 +vt 0.750000 0.468750 +vt 0.750000 0.531250 +vt 0.250000 0.531250 +vt 0.250000 0.468750 +vt 0.375000 0.468750 +vt 0.375000 0.531250 +vt 0.500000 0.468750 +vt 0.500000 0.531250 +vt 0.250000 0.781250 +vt 0.250000 0.750000 +vt 0.500000 0.750000 +vt 0.500000 0.781250 +vt 0.750000 0.750000 +vt 0.750000 0.781250 +vt 1.000000 0.750000 +vt 1.000000 0.781250 +vt 0.000000 0.781250 +vt 0.000000 0.750000 +vt 0.000000 0.500000 +vt 0.250000 0.500000 +vt 0.250000 0.250000 +vt 0.250000 0.218750 +vt 0.500000 0.218750 +vt 0.500000 0.250000 +vt 0.750000 0.218750 +vt 0.750000 0.250000 +vt 1.000000 0.218750 +vt 1.000000 0.250000 +vt 0.000000 0.250000 +vt 0.000000 0.218750 +vt 0.250000 0.500000 +vt 0.000000 0.500000 +vn 1.0000 0.0000 0.0000 +vn -0.0000 -0.0000 1.0000 +vn -1.0000 -0.0000 -0.0000 +vn 0.0000 0.0000 -1.0000 +vn 0.0000 1.0000 0.0000 +vn 0.0000 -1.0000 0.0000 +g Cube_Cube_Material +s off +f 25/37/9 29/38/9 30/39/9 26/40/9 +f 26/41/10 30/42/10 31/43/10 27/44/10 +f 27/44/11 31/43/11 32/45/11 28/46/11 +f 29/38/12 25/37/12 28/46/12 32/45/12 +f 33/47/11 34/48/11 36/49/11 35/50/11 +f 35/50/12 36/49/12 40/51/12 39/52/12 +f 39/52/9 40/51/9 38/53/9 37/54/9 +f 37/55/10 38/56/10 34/48/10 33/47/10 +f 34/48/13 38/56/13 40/57/13 36/58/13 +f 41/59/11 42/60/11 44/61/11 43/62/11 +f 43/62/12 44/61/12 48/63/12 47/64/12 +f 47/64/9 48/63/9 46/65/9 45/66/9 +f 45/67/10 46/68/10 42/60/10 41/59/10 +f 43/69/14 47/70/14 45/67/14 41/59/14 diff --git a/morelights/morelights_vintage/models/morelights_vintage_streetlamp.obj b/morelights/morelights_vintage/models/morelights_vintage_streetlamp.obj new file mode 100644 index 0000000..1dd847d --- /dev/null +++ b/morelights/morelights_vintage/models/morelights_vintage_streetlamp.obj @@ -0,0 +1,42 @@ +# Blender v2.79 (sub 0) OBJ File: 'vintage_streetlamp.blend' +# www.blender.org +mtllib morelights_vintage_streetlamp.mtl +o Plane +v -0.312500 0.075000 0.312500 +v 0.312500 0.075000 0.312500 +v -0.312500 0.075000 -0.312500 +v 0.312500 0.075000 -0.312500 +v 0.000000 0.325000 0.000000 +vn 0.6247 -0.7809 0.0000 +vn 0.0000 -0.7809 -0.6247 +vn -0.6247 -0.7809 0.0000 +vn 0.0000 -0.7809 0.6247 +usemtl None +s off +f 1//1 3//1 5//1 +f 2//2 1//2 5//2 +f 4//3 2//3 5//3 +f 3//4 4//4 5//4 +o Cube.001 +v -0.187500 -0.500000 0.187500 +v -0.250000 0.125000 0.250000 +v -0.187500 -0.500000 -0.187500 +v -0.250000 0.125000 -0.250000 +v 0.187500 -0.500000 0.187500 +v 0.250000 0.125000 0.250000 +v 0.187500 -0.500000 -0.187500 +v 0.250000 0.125000 -0.250000 +vn -0.9950 -0.0995 0.0000 +vn 0.0000 -0.0995 -0.9950 +vn 0.9950 -0.0995 0.0000 +vn 0.0000 -0.0995 0.9950 +vn 0.0000 -1.0000 0.0000 +vn 0.0000 1.0000 0.0000 +usemtl None +s off +f 6//5 7//5 9//5 8//5 +f 8//6 9//6 13//6 12//6 +f 12//7 13//7 11//7 10//7 +f 10//8 11//8 7//8 6//8 +f 8//9 12//9 10//9 6//9 +f 13//10 9//10 7//10 11//10 diff --git a/morelights/morelights_vintage/textures/morelights_vintage_block.png b/morelights/morelights_vintage/textures/morelights_vintage_block.png new file mode 100644 index 0000000..89071f9 Binary files /dev/null and b/morelights/morelights_vintage/textures/morelights_vintage_block.png differ diff --git a/morelights/morelights_vintage/textures/morelights_vintage_brass.png b/morelights/morelights_vintage/textures/morelights_vintage_brass.png new file mode 100644 index 0000000..ff20bb8 Binary files /dev/null and b/morelights/morelights_vintage/textures/morelights_vintage_brass.png differ diff --git a/morelights/morelights_vintage/textures/morelights_vintage_brass_32.png b/morelights/morelights_vintage/textures/morelights_vintage_brass_32.png new file mode 100644 index 0000000..a6df9f4 Binary files /dev/null and b/morelights/morelights_vintage/textures/morelights_vintage_brass_32.png differ diff --git a/morelights/morelights_vintage/textures/morelights_vintage_chandelier.png b/morelights/morelights_vintage/textures/morelights_vintage_chandelier.png new file mode 100644 index 0000000..10e50ee Binary files /dev/null and b/morelights/morelights_vintage/textures/morelights_vintage_chandelier.png differ diff --git a/morelights/morelights_vintage/textures/morelights_vintage_hangingbulb.png b/morelights/morelights_vintage/textures/morelights_vintage_hangingbulb.png new file mode 100644 index 0000000..6983015 Binary files /dev/null and b/morelights/morelights_vintage/textures/morelights_vintage_hangingbulb.png differ diff --git a/morelights/morelights_vintage/textures/morelights_vintage_lantern.png b/morelights/morelights_vintage/textures/morelights_vintage_lantern.png new file mode 100644 index 0000000..cf9d74e Binary files /dev/null and b/morelights/morelights_vintage/textures/morelights_vintage_lantern.png differ diff --git a/morelights/morelights_vintage/textures/morelights_vintage_oil_flame.png b/morelights/morelights_vintage/textures/morelights_vintage_oil_flame.png new file mode 100644 index 0000000..2e78c89 Binary files /dev/null and b/morelights/morelights_vintage/textures/morelights_vintage_oil_flame.png differ diff --git a/morelights/morelights_vintage/textures/morelights_vintage_oillamp.png b/morelights/morelights_vintage/textures/morelights_vintage_oillamp.png new file mode 100644 index 0000000..7b5206a Binary files /dev/null and b/morelights/morelights_vintage/textures/morelights_vintage_oillamp.png differ diff --git a/morelights/screenshot.png b/morelights/screenshot.png new file mode 100644 index 0000000..4bea3ff Binary files /dev/null and b/morelights/screenshot.png differ diff --git a/nixie_tubes/LICENSE b/nixie_tubes/LICENSE new file mode 100644 index 0000000..c5885ae --- /dev/null +++ b/nixie_tubes/LICENSE @@ -0,0 +1,600 @@ +License for code: LGPL 3.0 +License for media and all other assets: CC-by-SA 4.0 + +############################################################################### + + GNU LESSER GENERAL PUBLIC LICENSE + Version 3, 29 June 2007 + + Copyright (C) 2007 Free Software Foundation, Inc. + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + + This version of the GNU Lesser General Public License incorporates +the terms and conditions of version 3 of the GNU General Public +License, supplemented by the additional permissions listed below. + + 0. Additional Definitions. + + As used herein, "this License" refers to version 3 of the GNU Lesser +General Public License, and the "GNU GPL" refers to version 3 of the GNU +General Public License. + + "The Library" refers to a covered work governed by this License, +other than an Application or a Combined Work as defined below. + + An "Application" is any work that makes use of an interface provided +by the Library, but which is not otherwise based on the Library. +Defining a subclass of a class defined by the Library is deemed a mode +of using an interface provided by the Library. + + A "Combined Work" is a work produced by combining or linking an +Application with the Library. The particular version of the Library +with which the Combined Work was made is also called the "Linked +Version". + + The "Minimal Corresponding Source" for a Combined Work means the +Corresponding Source for the Combined Work, excluding any source code +for portions of the Combined Work that, considered in isolation, are +based on the Application, and not on the Linked Version. + + The "Corresponding Application Code" for a Combined Work means the +object code and/or source code for the Application, including any data +and utility programs needed for reproducing the Combined Work from the +Application, but excluding the System Libraries of the Combined Work. + + 1. Exception to Section 3 of the GNU GPL. + + You may convey a covered work under sections 3 and 4 of this License +without being bound by section 3 of the GNU GPL. + + 2. Conveying Modified Versions. + + If you modify a copy of the Library, and, in your modifications, a +facility refers to a function or data to be supplied by an Application +that uses the facility (other than as an argument passed when the +facility is invoked), then you may convey a copy of the modified +version: + + a) under this License, provided that you make a good faith effort to + ensure that, in the event an Application does not supply the + function or data, the facility still operates, and performs + whatever part of its purpose remains meaningful, or + + b) under the GNU GPL, with none of the additional permissions of + this License applicable to that copy. + + 3. Object Code Incorporating Material from Library Header Files. + + The object code form of an Application may incorporate material from +a header file that is part of the Library. You may convey such object +code under terms of your choice, provided that, if the incorporated +material is not limited to numerical parameters, data structure +layouts and accessors, or small macros, inline functions and templates +(ten or fewer lines in length), you do both of the following: + + a) Give prominent notice with each copy of the object code that the + Library is used in it and that the Library and its use are + covered by this License. + + b) Accompany the object code with a copy of the GNU GPL and this license + document. + + 4. Combined Works. + + You may convey a Combined Work under terms of your choice that, +taken together, effectively do not restrict modification of the +portions of the Library contained in the Combined Work and reverse +engineering for debugging such modifications, if you also do each of +the following: + + a) Give prominent notice with each copy of the Combined Work that + the Library is used in it and that the Library and its use are + covered by this License. + + b) Accompany the Combined Work with a copy of the GNU GPL and this license + document. + + c) For a Combined Work that displays copyright notices during + execution, include the copyright notice for the Library among + these notices, as well as a reference directing the user to the + copies of the GNU GPL and this license document. + + d) Do one of the following: + + 0) Convey the Minimal Corresponding Source under the terms of this + License, and the Corresponding Application Code in a form + suitable for, and under terms that permit, the user to + recombine or relink the Application with a modified version of + the Linked Version to produce a modified Combined Work, in the + manner specified by section 6 of the GNU GPL for conveying + Corresponding Source. + + 1) Use a suitable shared library mechanism for linking with the + Library. A suitable mechanism is one that (a) uses at run time + a copy of the Library already present on the user's computer + system, and (b) will operate properly with a modified version + of the Library that is interface-compatible with the Linked + Version. + + e) Provide Installation Information, but only if you would otherwise + be required to provide such information under section 6 of the + GNU GPL, and only to the extent that such information is + necessary to install and execute a modified version of the + Combined Work produced by recombining or relinking the + Application with a modified version of the Linked Version. (If + you use option 4d0, the Installation Information must accompany + the Minimal Corresponding Source and Corresponding Application + Code. If you use option 4d1, you must provide the Installation + Information in the manner specified by section 6 of the GNU GPL + for conveying Corresponding Source.) + + 5. Combined Libraries. + + You may place library facilities that are a work based on the +Library side by side in a single library together with other library +facilities that are not Applications and are not covered by this +License, and convey such a combined library under terms of your +choice, if you do both of the following: + + a) Accompany the combined library with a copy of the same work based + on the Library, uncombined with any other library facilities, + conveyed under the terms of this License. + + b) Give prominent notice with the combined library that part of it + is a work based on the Library, and explaining where to find the + accompanying uncombined form of the same work. + + 6. Revised Versions of the GNU Lesser General Public License. + + The Free Software Foundation may publish revised and/or new versions +of the GNU Lesser General Public License from time to time. Such new +versions will be similar in spirit to the present version, but may +differ in detail to address new problems or concerns. + + Each version is given a distinguishing version number. If the +Library as you received it specifies that a certain numbered version +of the GNU Lesser General Public License "or any later version" +applies to it, you have the option of following the terms and +conditions either of that published version or of any later version +published by the Free Software Foundation. If the Library as you +received it does not specify a version number of the GNU Lesser +General Public License, you may choose any version of the GNU Lesser +General Public License ever published by the Free Software Foundation. + + If the Library as you received it specifies that a proxy can decide +whether future versions of the GNU Lesser General Public License shall +apply, that proxy's public statement of acceptance of any version is +permanent authorization for you to choose that version for the +Library. + +############################################################################### + +Attribution-ShareAlike 4.0 International + +======================================================================= + +Creative Commons Corporation ("Creative Commons") is not a law firm and +does not provide legal services or legal advice. Distribution of +Creative Commons public licenses does not create a lawyer-client or +other relationship. Creative Commons makes its licenses and related +information available on an "as-is" basis. Creative Commons gives no +warranties regarding its licenses, any material licensed under their +terms and conditions, or any related information. Creative Commons +disclaims all liability for damages resulting from their use to the +fullest extent possible. + +Using Creative Commons Public Licenses + +Creative Commons public licenses provide a standard set of terms and +conditions that creators and other rights holders may use to share +original works of authorship and other material subject to copyright +and certain other rights specified in the public license below. The +following considerations are for informational purposes only, are not +exhaustive, and do not form part of our licenses. + + Considerations for licensors: Our public licenses are + intended for use by those authorized to give the public + permission to use material in ways otherwise restricted by + copyright and certain other rights. Our licenses are + irrevocable. Licensors should read and understand the terms + and conditions of the license they choose before applying it. + Licensors should also secure all rights necessary before + applying our licenses so that the public can reuse the + material as expected. Licensors should clearly mark any + material not subject to the license. This includes other CC- + licensed material, or material used under an exception or + limitation to copyright. More considerations for licensors: + wiki.creativecommons.org/Considerations_for_licensors + + Considerations for the public: By using one of our public + licenses, a licensor grants the public permission to use the + licensed material under specified terms and conditions. If + the licensor's permission is not necessary for any reason--for + example, because of any applicable exception or limitation to + copyright--then that use is not regulated by the license. Our + licenses grant only permissions under copyright and certain + other rights that a licensor has authority to grant. Use of + the licensed material may still be restricted for other + reasons, including because others have copyright or other + rights in the material. A licensor may make special requests, + such as asking that all changes be marked or described. + Although not required by our licenses, you are encouraged to + respect those requests where reasonable. More considerations + for the public: + wiki.creativecommons.org/Considerations_for_licensees + +======================================================================= + +Creative Commons Attribution-ShareAlike 4.0 International Public +License + +By exercising the Licensed Rights (defined below), You accept and agree +to be bound by the terms and conditions of this Creative Commons +Attribution-ShareAlike 4.0 International Public License ("Public +License"). To the extent this Public License may be interpreted as a +contract, You are granted the Licensed Rights in consideration of Your +acceptance of these terms and conditions, and the Licensor grants You +such rights in consideration of benefits the Licensor receives from +making the Licensed Material available under these terms and +conditions. + + +Section 1 -- Definitions. + + a. Adapted Material means material subject to Copyright and Similar + Rights that is derived from or based upon the Licensed Material + and in which the Licensed Material is translated, altered, + arranged, transformed, or otherwise modified in a manner requiring + permission under the Copyright and Similar Rights held by the + Licensor. For purposes of this Public License, where the Licensed + Material is a musical work, performance, or sound recording, + Adapted Material is always produced where the Licensed Material is + synched in timed relation with a moving image. + + b. Adapter's License means the license You apply to Your Copyright + and Similar Rights in Your contributions to Adapted Material in + accordance with the terms and conditions of this Public License. + + c. BY-SA Compatible License means a license listed at + creativecommons.org/compatiblelicenses, approved by Creative + Commons as essentially the equivalent of this Public License. + + d. Copyright and Similar Rights means copyright and/or similar rights + closely related to copyright including, without limitation, + performance, broadcast, sound recording, and Sui Generis Database + Rights, without regard to how the rights are labeled or + categorized. For purposes of this Public License, the rights + specified in Section 2(b)(1)-(2) are not Copyright and Similar + Rights. + + e. Effective Technological Measures means those measures that, in the + absence of proper authority, may not be circumvented under laws + fulfilling obligations under Article 11 of the WIPO Copyright + Treaty adopted on December 20, 1996, and/or similar international + agreements. + + f. Exceptions and Limitations means fair use, fair dealing, and/or + any other exception or limitation to Copyright and Similar Rights + that applies to Your use of the Licensed Material. + + g. License Elements means the license attributes listed in the name + of a Creative Commons Public License. The License Elements of this + Public License are Attribution and ShareAlike. + + h. Licensed Material means the artistic or literary work, database, + or other material to which the Licensor applied this Public + License. + + i. Licensed Rights means the rights granted to You subject to the + terms and conditions of this Public License, which are limited to + all Copyright and Similar Rights that apply to Your use of the + Licensed Material and that the Licensor has authority to license. + + j. Licensor means the individual(s) or entity(ies) granting rights + under this Public License. + + k. Share means to provide material to the public by any means or + process that requires permission under the Licensed Rights, such + as reproduction, public display, public performance, distribution, + dissemination, communication, or importation, and to make material + available to the public including in ways that members of the + public may access the material from a place and at a time + individually chosen by them. + + l. Sui Generis Database Rights means rights other than copyright + resulting from Directive 96/9/EC of the European Parliament and of + the Council of 11 March 1996 on the legal protection of databases, + as amended and/or succeeded, as well as other essentially + equivalent rights anywhere in the world. + + m. You means the individual or entity exercising the Licensed Rights + under this Public License. Your has a corresponding meaning. + + +Section 2 -- Scope. + + a. License grant. + + 1. Subject to the terms and conditions of this Public License, + the Licensor hereby grants You a worldwide, royalty-free, + non-sublicensable, non-exclusive, irrevocable license to + exercise the Licensed Rights in the Licensed Material to: + + a. reproduce and Share the Licensed Material, in whole or + in part; and + + b. produce, reproduce, and Share Adapted Material. + + 2. Exceptions and Limitations. For the avoidance of doubt, where + Exceptions and Limitations apply to Your use, this Public + License does not apply, and You do not need to comply with + its terms and conditions. + + 3. Term. The term of this Public License is specified in Section + 6(a). + + 4. Media and formats; technical modifications allowed. The + Licensor authorizes You to exercise the Licensed Rights in + all media and formats whether now known or hereafter created, + and to make technical modifications necessary to do so. The + Licensor waives and/or agrees not to assert any right or + authority to forbid You from making technical modifications + necessary to exercise the Licensed Rights, including + technical modifications necessary to circumvent Effective + Technological Measures. For purposes of this Public License, + simply making modifications authorized by this Section 2(a) + (4) never produces Adapted Material. + + 5. Downstream recipients. + + a. Offer from the Licensor -- Licensed Material. Every + recipient of the Licensed Material automatically + receives an offer from the Licensor to exercise the + Licensed Rights under the terms and conditions of this + Public License. + + b. Additional offer from the Licensor -- Adapted Material. + Every recipient of Adapted Material from You + automatically receives an offer from the Licensor to + exercise the Licensed Rights in the Adapted Material + under the conditions of the Adapter's License You apply. + + c. No downstream restrictions. You may not offer or impose + any additional or different terms or conditions on, or + apply any Effective Technological Measures to, the + Licensed Material if doing so restricts exercise of the + Licensed Rights by any recipient of the Licensed + Material. + + 6. No endorsement. Nothing in this Public License constitutes or + may be construed as permission to assert or imply that You + are, or that Your use of the Licensed Material is, connected + with, or sponsored, endorsed, or granted official status by, + the Licensor or others designated to receive attribution as + provided in Section 3(a)(1)(A)(i). + + b. Other rights. + + 1. Moral rights, such as the right of integrity, are not + licensed under this Public License, nor are publicity, + privacy, and/or other similar personality rights; however, to + the extent possible, the Licensor waives and/or agrees not to + assert any such rights held by the Licensor to the limited + extent necessary to allow You to exercise the Licensed + Rights, but not otherwise. + + 2. Patent and trademark rights are not licensed under this + Public License. + + 3. To the extent possible, the Licensor waives any right to + collect royalties from You for the exercise of the Licensed + Rights, whether directly or through a collecting society + under any voluntary or waivable statutory or compulsory + licensing scheme. In all other cases the Licensor expressly + reserves any right to collect such royalties. + + +Section 3 -- License Conditions. + +Your exercise of the Licensed Rights is expressly made subject to the +following conditions. + + a. Attribution. + + 1. If You Share the Licensed Material (including in modified + form), You must: + + a. retain the following if it is supplied by the Licensor + with the Licensed Material: + + i. identification of the creator(s) of the Licensed + Material and any others designated to receive + attribution, in any reasonable manner requested by + the Licensor (including by pseudonym if + designated); + + ii. a copyright notice; + + iii. a notice that refers to this Public License; + + iv. a notice that refers to the disclaimer of + warranties; + + v. a URI or hyperlink to the Licensed Material to the + extent reasonably practicable; + + b. indicate if You modified the Licensed Material and + retain an indication of any previous modifications; and + + c. indicate the Licensed Material is licensed under this + Public License, and include the text of, or the URI or + hyperlink to, this Public License. + + 2. You may satisfy the conditions in Section 3(a)(1) in any + reasonable manner based on the medium, means, and context in + which You Share the Licensed Material. For example, it may be + reasonable to satisfy the conditions by providing a URI or + hyperlink to a resource that includes the required + information. + + 3. If requested by the Licensor, You must remove any of the + information required by Section 3(a)(1)(A) to the extent + reasonably practicable. + + b. ShareAlike. + + In addition to the conditions in Section 3(a), if You Share + Adapted Material You produce, the following conditions also apply. + + 1. The Adapter's License You apply must be a Creative Commons + license with the same License Elements, this version or + later, or a BY-SA Compatible License. + + 2. You must include the text of, or the URI or hyperlink to, the + Adapter's License You apply. You may satisfy this condition + in any reasonable manner based on the medium, means, and + context in which You Share Adapted Material. + + 3. You may not offer or impose any additional or different terms + or conditions on, or apply any Effective Technological + Measures to, Adapted Material that restrict exercise of the + rights granted under the Adapter's License You apply. + + +Section 4 -- Sui Generis Database Rights. + +Where the Licensed Rights include Sui Generis Database Rights that +apply to Your use of the Licensed Material: + + a. for the avoidance of doubt, Section 2(a)(1) grants You the right + to extract, reuse, reproduce, and Share all or a substantial + portion of the contents of the database; + + b. if You include all or a substantial portion of the database + contents in a database in which You have Sui Generis Database + Rights, then the database in which You have Sui Generis Database + Rights (but not its individual contents) is Adapted Material, + + including for purposes of Section 3(b); and + c. You must comply with the conditions in Section 3(a) if You Share + all or a substantial portion of the contents of the database. + +For the avoidance of doubt, this Section 4 supplements and does not +replace Your obligations under this Public License where the Licensed +Rights include other Copyright and Similar Rights. + + +Section 5 -- Disclaimer of Warranties and Limitation of Liability. + + a. UNLESS OTHERWISE SEPARATELY UNDERTAKEN BY THE LICENSOR, TO THE + EXTENT POSSIBLE, THE LICENSOR OFFERS THE LICENSED MATERIAL AS-IS + AND AS-AVAILABLE, AND MAKES NO REPRESENTATIONS OR WARRANTIES OF + ANY KIND CONCERNING THE LICENSED MATERIAL, WHETHER EXPRESS, + IMPLIED, STATUTORY, OR OTHER. THIS INCLUDES, WITHOUT LIMITATION, + WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR + PURPOSE, NON-INFRINGEMENT, ABSENCE OF LATENT OR OTHER DEFECTS, + ACCURACY, OR THE PRESENCE OR ABSENCE OF ERRORS, WHETHER OR NOT + KNOWN OR DISCOVERABLE. WHERE DISCLAIMERS OF WARRANTIES ARE NOT + ALLOWED IN FULL OR IN PART, THIS DISCLAIMER MAY NOT APPLY TO YOU. + + b. TO THE EXTENT POSSIBLE, IN NO EVENT WILL THE LICENSOR BE LIABLE + TO YOU ON ANY LEGAL THEORY (INCLUDING, WITHOUT LIMITATION, + NEGLIGENCE) OR OTHERWISE FOR ANY DIRECT, SPECIAL, INDIRECT, + INCIDENTAL, CONSEQUENTIAL, PUNITIVE, EXEMPLARY, OR OTHER LOSSES, + COSTS, EXPENSES, OR DAMAGES ARISING OUT OF THIS PUBLIC LICENSE OR + USE OF THE LICENSED MATERIAL, EVEN IF THE LICENSOR HAS BEEN + ADVISED OF THE POSSIBILITY OF SUCH LOSSES, COSTS, EXPENSES, OR + DAMAGES. WHERE A LIMITATION OF LIABILITY IS NOT ALLOWED IN FULL OR + IN PART, THIS LIMITATION MAY NOT APPLY TO YOU. + + c. The disclaimer of warranties and limitation of liability provided + above shall be interpreted in a manner that, to the extent + possible, most closely approximates an absolute disclaimer and + waiver of all liability. + + +Section 6 -- Term and Termination. + + a. This Public License applies for the term of the Copyright and + Similar Rights licensed here. However, if You fail to comply with + this Public License, then Your rights under this Public License + terminate automatically. + + b. Where Your right to use the Licensed Material has terminated under + Section 6(a), it reinstates: + + 1. automatically as of the date the violation is cured, provided + it is cured within 30 days of Your discovery of the + violation; or + + 2. upon express reinstatement by the Licensor. + + For the avoidance of doubt, this Section 6(b) does not affect any + right the Licensor may have to seek remedies for Your violations + of this Public License. + + c. For the avoidance of doubt, the Licensor may also offer the + Licensed Material under separate terms or conditions or stop + distributing the Licensed Material at any time; however, doing so + will not terminate this Public License. + + d. Sections 1, 5, 6, 7, and 8 survive termination of this Public + License. + + +Section 7 -- Other Terms and Conditions. + + a. The Licensor shall not be bound by any additional or different + terms or conditions communicated by You unless expressly agreed. + + b. Any arrangements, understandings, or agreements regarding the + Licensed Material not stated herein are separate from and + independent of the terms and conditions of this Public License. + + +Section 8 -- Interpretation. + + a. For the avoidance of doubt, this Public License does not, and + shall not be interpreted to, reduce, limit, restrict, or impose + conditions on any use of the Licensed Material that could lawfully + be made without permission under this Public License. + + b. To the extent possible, if any provision of this Public License is + deemed unenforceable, it shall be automatically reformed to the + minimum extent necessary to make it enforceable. If the provision + cannot be reformed, it shall be severed from this Public License + without affecting the enforceability of the remaining terms and + conditions. + + c. No term or condition of this Public License will be waived and no + failure to comply consented to unless expressly agreed to by the + Licensor. + + d. Nothing in this Public License constitutes or may be interpreted + as a limitation upon, or waiver of, any privileges and immunities + that apply to the Licensor or You, including from the legal + processes of any jurisdiction or authority. + + +======================================================================= + +Creative Commons is not a party to its public +licenses. Notwithstanding, Creative Commons may elect to apply one of +its public licenses to material it publishes and in those instances +will be considered the “Licensor.” The text of the Creative Commons +public licenses is dedicated to the public domain under the CC0 Public +Domain Dedication. Except for the limited purpose of indicating that +material is shared under a Creative Commons public license or as +otherwise permitted by the Creative Commons policies published at +creativecommons.org/policies, Creative Commons does not authorize the +use of the trademark "Creative Commons" or any other trademark or logo +of Creative Commons without its prior written consent including, +without limitation, in connection with any unauthorized modifications +to any of its public licenses or any other arrangements, +understandings, or agreements concerning use of licensed material. For +the avoidance of doubt, this paragraph does not form part of the +public licenses. + +Creative Commons may be contacted at creativecommons.org. diff --git a/nixie_tubes/README.md b/nixie_tubes/README.md new file mode 100644 index 0000000..34a0a10 --- /dev/null +++ b/nixie_tubes/README.md @@ -0,0 +1,51 @@ +# nixie_tubes mod + +*by Vanessa Dannenberg* + +This mod provides a set of classic Nixie tubes, and a set of alphanumeric 15-segment tubes similar to Burroughs B-7971, controlled by Mesecons' Digilines mod. + +Simply place a tube, right-click it, and set a channel. + +Then send a character, or one of several control words to that channel from a Mesecons Lua Controller and the mod will try to display it. + +The classic tubes are numeric with colon and period symbols, and hence will respond to the literal numbers 0-9, and the words "colon", "period", and "off". Any other symbol or string is ignored. + +The alphanumeric tubes respond to singular characters from the standard 7-bit ASCII character set, or entire strings composed of such. + +A single character will be displayed on the connected tube. A decimal value as a numeric message (i.e. not a string) will display the first digit on the connected tube. + +Strings will be displayed to all alphanumeric tubes in a lineup, so long as they all face the same way, starting from the tube the Lua Controller is connected to, going left to right. The other tubes in the line do not need to be connected to anything - think of them as being connected together internally. Only the tube at the far left need be connected to the Lua Controller. + +The string will spread until either a tube is found that faces the wrong way, or has a channel that's not empty/nil and is set to something other than what the first is set to, or if a node is encountered that is not an alpha-numeric tube at all. + +Tubes to the left of the connected one are ignored in the case of strings. + +You can put multiple lines of tubes end to end to form independent displays, so long as the tubes that start each of the lines have unique channel names set. + +The string is padded with spaces and then trimmed to 64 characters. + +Any unrecognized symbol or character outside the ASCII 32 - 128 range, or characters 31 and 144, whether part of a string or singularly is ignored. + +The alphanumeric tubes also respond to these control messages: + +* "off", "colon" and "period" act the same as on the numeric tubes. Note that neither a colon nor a period actually look all that great on a 15-segment + display, so use a classic tube for those, if you can. +* "del" or character code 127 displays an all-on square, but without segment #15 (the bottom, chevron-shaped one). +* "allon" or character code 144 will display an all-on square, with segment #15 lit also. +* "cursor" or character code 31 will display just segment 15. +* "off_multi" turns all tubes in a lineup off +* "allon_multi" turns on all segments of all tubes in a lineup. + +You can use "get" and "getstr" to read the one character from the first, connected tube. These messages will not read the other tubes in the lineup. + +This mod also provides Decatron tubes, which respond to 0-9 and "off", just as with the classic numeric tubes, along with the following actions: + +* "inc" will increment the tube's current number value. If the value overflows from 9 back to 0, the tube will generate a "carry" message. +* "dec" will decrement the current value. If the value wraps from 0 back to 9, the tube will send out a "borrow" message. +* "get" will query the current state of the tube, responding with a single digit 0-9 or the word "off". + +All tubes emit a small amount of light when displaying something. + +Nixies can only be mounted on the floor, while Decatrons can be mounted on a wall (or a ceiling if so desired). + +A Decatron has a small grey spot on its internal insulator to mark the "0" position. diff --git a/nixie_tubes/depends.txt b/nixie_tubes/depends.txt new file mode 100644 index 0000000..2cec86e --- /dev/null +++ b/nixie_tubes/depends.txt @@ -0,0 +1,2 @@ +default +digilines diff --git a/nixie_tubes/description.txt b/nixie_tubes/description.txt new file mode 100644 index 0000000..e93f904 --- /dev/null +++ b/nixie_tubes/description.txt @@ -0,0 +1 @@ +This mod provides a set of classic Nixie tubes, and a set of alphanumeric 15-segment tubes similar to Burroughs B-7971, controlled by Mesecons' Digilines mod. diff --git a/nixie_tubes/init.lua b/nixie_tubes/init.lua new file mode 100644 index 0000000..3d71069 --- /dev/null +++ b/nixie_tubes/init.lua @@ -0,0 +1,517 @@ +-- simple nixie tubes mod +-- by Vanessa Ezekowitz + +nixie_tubes = {} + +local S +if minetest.get_modpath("intllib") then + S = intllib.Getter() +else + S = function(s) return s end +end + +local nixie_types = { + "1", + "2", + "3", + "4", + "5", + "6", + "7", + "8", + "9", + "0", + "colon", + "period", + "off" +} + +local tube_cbox = { + type = "fixed", + fixed = { -11/32, -8/16, -11/32, 11/32, 8/16, 11/32 } +} + +-- the following functions based on the so-named ones in Jeija's digilines mod + +local reset_meta = function(pos) + minetest.get_meta(pos):set_string("formspec", "field[channel;Channel;${channel}]") +end + +local on_digiline_receive_std = function(pos, node, channel, msg) + local meta = minetest.get_meta(pos) + local setchan = meta:get_string("channel") + if setchan ~= channel then return end + local num = tonumber(msg) + if msg == "colon" or msg == "period" or msg == "off" or (num and (num >= 0 and num <= 9)) then + if string.sub(node.name,1,21) == "nixie_tubes:numitron_" then + minetest.swap_node(pos, { name = "nixie_tubes:numitron_"..msg, param2 = node.param2}) + else + minetest.swap_node(pos, { name = "nixie_tubes:tube_"..msg, param2 = node.param2}) + end + end +end + +local on_digiline_receive_deca = function(pos, node, channel, msg) + + local meta = minetest.get_meta(pos) + local setchan = meta:get_string("channel") + if setchan ~= channel then return end + local tubenum = string.gsub(node.name, "nixie_tubes:decatron_", "") + local num = tonumber(msg) + + if msg == "off" or (num and (num >= 0 and num <= 9)) then + minetest.swap_node(pos, { name = "nixie_tubes:decatron_"..msg, param2 = node.param2}) + + elseif msg == "inc" then + num = (tonumber(tubenum) or 0) + 1 + if num > 9 then + num = 0 + digiline:receptor_send(pos, digiline.rules.default, channel, "carry") + end + minetest.swap_node(pos, { name = "nixie_tubes:decatron_"..num, param2 = node.param2}) + + elseif msg == "dec" then + num = (tonumber(tubenum) or 0) - 1 + if num < 0 then + num = 9 + digiline:receptor_send(pos, digiline.rules.default, channel, "borrow") + end + minetest.swap_node(pos, { name = "nixie_tubes:decatron_"..num, param2 = node.param2}) + + elseif msg == "get" then + digiline:receptor_send(pos, digiline.rules.default, channel, tubenum) + + end +end + +-- the nodes: + +for _,tube in ipairs(nixie_types) do + local groups = { cracky = 2, not_in_creative_inventory = 1} + local light = LIGHT_MAX-4 + local light2 = LIGHT_MAX-5 + local description = S("Nixie Tube ("..tube..")") + local description2 = S("Decatron ("..tube..")") + local description3 = S("Numitron Tube") + local cathode = "nixie_tube_cathode_off.png^nixie_tube_cathode_"..tube..".png" + local cathode2 = "decatron_cathode_"..tube..".png" + local cathode3 = "numitron_filaments.png^numitron_"..tube..".png" + + if tube == "off" then + groups = {cracky = 2} + light = nil + light2 = nil + description = S("Nixie Tube") + description2 = S("Decatron") + cathode = "nixie_tube_cathode_off.png" + cathode2 = "nixie_tube_blank.png" + cathode3 = "numitron_filaments.png" + end + + minetest.register_node("nixie_tubes:tube_"..tube, { + description = description, + drawtype = "mesh", + mesh = "nixie_tube.obj", + tiles = { + "nixie_tube_base.png", + "nixie_tube_backing.png", + cathode, + "nixie_tube_anode.png", + "nixie_tube_glass.png", + }, + use_texture_alpha = true, + groups = groups, + paramtype = "light", + paramtype2 = "facedir", + light_source = light, + selection_box = tube_cbox, + collision_box = tube_cbox, + on_construct = function(pos) + reset_meta(pos) + end, + on_receive_fields = function(pos, formname, fields, sender) + if (fields.channel) then + minetest.get_meta(pos):set_string("channel", fields.channel) + end + end, + digiline = { + receptor = {}, + effector = { + action = on_digiline_receive_std + }, + }, + drop = "nixie_tubes:tube_off" + }) + + minetest.register_node("nixie_tubes:numitron_"..tube, { + description = description3, + drawtype = "mesh", + mesh = "nixie_tube.obj", + tiles = { + "nixie_tube_base.png", + "nixie_tube_backing.png", + cathode3, + "nixie_tube_anode.png", + "nixie_tube_glass.png", + }, + use_texture_alpha = true, + groups = groups, + paramtype = "light", + paramtype2 = "facedir", + light_source = light, + selection_box = tube_cbox, + collision_box = tube_cbox, + on_construct = function(pos) + reset_meta(pos) + end, + on_receive_fields = function(pos, formname, fields, sender) + if (fields.channel) then + minetest.get_meta(pos):set_string("channel", fields.channel) + end + end, + digiline = { + receptor = {}, + effector = { + action = on_digiline_receive_std + }, + }, + drop = "nixie_tubes:numitron_off" + }) + + if tube ~= "colon" and tube ~= "period" then + minetest.register_node("nixie_tubes:decatron_"..tube, { + description = description2, + drawtype = "mesh", + mesh = "decatron.obj", + tiles = { + "nixie_tube_base.png", + "decatron_internals.png", + "decatron_anode.png", + "decatron_cathode_pins.png", + cathode2, + "nixie_tube_glass.png", + }, + use_texture_alpha = true, + groups = groups, + paramtype = "light", + paramtype2 = "facedir", + light_source = light2, + selection_box = tube_cbox, + collision_box = tube_cbox, + after_place_node = function(pos, placer, itemstack, pointed_thing) + minetest.set_node(pos, { name = "air"}) + minetest.rotate_node(itemstack, placer, pointed_thing) + if minetest.get_node(pos).param2 == 12 then + minetest.set_node(pos, { name = "nixie_tubes:decatron_off", param2 = 15 }) + end + end, + on_construct = function(pos) + reset_meta(pos) + end, + on_receive_fields = function(pos, formname, fields, sender) + if (fields.channel) then + minetest.get_meta(pos):set_string("channel", fields.channel) + end + end, + digiline = { + receptor = {}, + effector = { + action = on_digiline_receive_deca + }, + }, + drop = "nixie_tubes:decatron_off" + }) + end +end + +-- Alpha-numeric tubes (Burroughs B-7971 or similar) + +--[[ + +Map of display wires: + + --1------ + |\ |8 /| + 6| \ | / |2 + | 7\ | /9 | + | \|/ | +14--> ---- ---- <--10 + | /|\ | + |13/ | \11| + 5| / | \ |3 + |/ 12| \| + ------4-- + _ + --¯¯ ¯¯-- <--15 + +-- Wire positions in table: +-- char = { 1, 2, 3, 4, .... , 13, 14, 15 } + +]]-- + +local alnum_chars = { + { string.char(31), { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,1 } }, -- "cursor" segment + { " ", { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 } }, -- 32 + { "!", { 0,0,0,0,1,1,0,0,0,0,0,0,0,0,0 } }, + { '"', { 0,0,0,0,0,1,0,1,0,0,0,0,0,0,0 } }, + { "#", { 0,1,1,1,0,0,0,1,0,1,0,1,0,1,0 } }, + { "$", { 1,0,1,1,0,1,0,1,0,1,0,1,0,1,0 } }, + { "%", { 0,0,1,0,0,1,0,0,1,0,0,0,1,0,0 } }, + { "&", { 1,0,0,1,1,0,1,0,1,0,1,0,0,1,0 } }, + { "'", { 0,0,0,0,0,0,0,1,0,0,0,0,0,0,0 } }, + { "(", { 0,0,0,0,0,0,0,0,1,0,1,0,0,0,0 } }, + { ")", { 0,0,0,0,0,0,1,0,0,0,0,0,1,0,0 } }, + { "*", { 0,0,0,0,0,0,1,1,1,1,1,1,1,1,0 } }, + { "+", { 0,0,0,0,0,0,0,1,0,1,0,1,0,1,0 } }, + { ",", { 0,0,0,0,0,0,0,0,0,0,0,0,1,0,0 } }, + { "-", { 0,0,0,0,0,0,0,0,0,0,0,0,0,1,0 } }, + { ".", { 0,0,0,0,1,0,0,0,0,0,0,0,0,0,0 } }, + { "/", { 0,0,0,0,0,0,0,0,1,0,0,0,1,0,0 } }, + { "0", { 1,1,1,1,1,1,0,0,1,0,0,0,1,0,0 } }, -- 48 + { "1", { 0,1,1,0,0,0,0,0,1,0,0,0,0,0,0 } }, + { "2", { 1,1,0,1,0,0,0,0,0,1,0,0,1,0,0 } }, + { "3", { 1,1,1,1,0,0,0,0,0,1,0,0,0,0,0 } }, + { "4", { 0,1,1,0,0,1,0,0,0,1,0,0,0,1,0 } }, + { "5", { 1,0,1,1,0,1,0,0,0,1,0,0,0,1,0 } }, + { "6", { 1,0,1,1,1,1,0,0,0,1,0,0,0,1,0 } }, + { "7", { 1,0,0,0,0,0,0,0,1,0,0,1,0,0,0 } }, + { "8", { 1,1,1,1,1,1,0,0,0,1,0,0,0,1,0 } }, + { "9", { 1,1,1,0,0,1,0,0,0,1,0,0,0,1,0 } }, + { ":", { 0,0,0,0,0,0,0,1,0,0,0,1,0,0,0 } }, -- 58 + { ";", { 0,0,0,0,0,0,0,1,0,0,0,0,1,0,0 } }, + { "<", { 0,0,0,0,0,0,0,0,1,0,1,0,0,1,0 } }, + { "=", { 0,0,0,1,0,0,0,0,0,1,0,0,0,1,0 } }, + { ">", { 0,0,0,0,0,0,1,0,0,1,0,0,1,0,0 } }, + { "?", { 1,1,0,0,0,0,0,0,0,1,0,1,0,0,0 } }, + { "@", { 1,1,0,1,1,1,0,1,0,1,0,0,0,0,0 } }, -- 64 + { "A", { 1,1,1,0,1,1,0,0,0,1,0,0,0,1,0 } }, + { "B", { 1,1,1,1,0,0,0,1,0,1,0,1,0,0,0 } }, + { "C", { 1,0,0,1,1,1,0,0,0,0,0,0,0,0,0 } }, + { "D", { 1,1,1,1,0,0,0,1,0,0,0,1,0,0,0 } }, + { "E", { 1,0,0,1,1,1,0,0,0,0,0,0,0,1,0 } }, + { "F", { 1,0,0,0,1,1,0,0,0,0,0,0,0,1,0 } }, + { "G", { 1,0,1,1,1,1,0,0,0,1,0,0,0,0,0 } }, + { "H", { 0,1,1,0,1,1,0,0,0,1,0,0,0,1,0 } }, + { "I", { 1,0,0,1,0,0,0,1,0,0,0,1,0,0,0 } }, + { "J", { 0,1,1,1,1,0,0,0,0,0,0,0,0,0,0 } }, + { "K", { 0,0,0,0,1,1,0,0,1,0,1,0,0,1,0 } }, + { "L", { 0,0,0,1,1,1,0,0,0,0,0,0,0,0,0 } }, + { "M", { 0,1,1,0,1,1,1,0,1,0,0,0,0,0,0 } }, + { "N", { 0,1,1,0,1,1,1,0,0,0,1,0,0,0,0 } }, + { "O", { 1,1,1,1,1,1,0,0,0,0,0,0,0,0,0 } }, + { "P", { 1,1,0,0,1,1,0,0,0,1,0,0,0,1,0 } }, + { "Q", { 1,1,1,1,1,1,0,0,0,0,1,0,0,0,0 } }, + { "R", { 1,1,0,0,1,1,0,0,0,1,1,0,0,1,0 } }, + { "S", { 1,0,1,1,0,1,0,0,0,1,0,0,0,1,0 } }, + { "T", { 1,0,0,0,0,0,0,1,0,0,0,1,0,0,0 } }, + { "U", { 0,1,1,1,1,1,0,0,0,0,0,0,0,0,0 } }, + { "V", { 0,0,0,0,1,1,0,0,1,0,0,0,1,0,0 } }, + { "W", { 0,1,1,0,1,1,0,0,0,0,1,0,1,0,0 } }, + { "X", { 0,0,0,0,0,0,1,0,1,0,1,0,1,0,0 } }, + { "Y", { 0,0,0,0,0,0,1,0,1,0,0,1,0,0,0 } }, + { "Z", { 1,0,0,1,0,0,0,0,1,0,0,0,1,0,0 } }, + { "[", { 1,0,0,1,1,1,0,0,0,0,0,0,0,0,0 } }, -- 91 + { "\\", { 0,0,0,0,0,0,1,0,0,0,1,0,0,0,0 } }, + { "]", { 1,1,1,1,0,0,0,0,0,0,0,0,0,0,0 } }, + { "^", { 0,0,0,0,0,0,0,0,0,0,1,0,1,0,0 } }, + { "_", { 0,0,0,1,0,0,0,0,0,0,0,0,0,0,0 } }, + { "`", { 0,0,0,0,0,0,1,0,0,0,0,0,0,0,0 } }, + { "a", { 1,1,1,1,0,0,0,0,0,1,0,0,1,0,0 } }, -- 97 + { "b", { 0,0,0,1,1,1,0,0,0,0,1,0,0,1,0 } }, + { "c", { 0,0,0,1,1,0,0,0,0,1,0,0,0,1,0 } }, + { "d", { 0,1,1,1,0,0,0,0,0,1,0,0,1,0,0 } }, + { "e", { 0,0,0,1,1,0,0,0,0,0,0,0,1,1,0 } }, + { "f", { 1,0,0,0,1,1,0,0,0,0,0,0,0,1,0 } }, + { "g", { 1,1,1,1,0,0,1,0,0,1,0,0,0,0,0 } }, + { "h", { 0,0,0,0,1,1,0,0,0,0,1,0,0,1,0 } }, + { "i", { 0,0,0,0,0,0,0,0,0,0,0,1,0,0,0 } }, + { "j", { 0,1,1,1,0,0,0,0,0,0,0,0,0,0,0 } }, + { "k", { 0,0,0,0,0,0,0,1,1,0,1,1,0,0,0 } }, + { "l", { 0,0,0,0,0,0,0,1,0,0,0,1,0,0,0 } }, + { "m", { 0,0,1,0,1,0,0,0,0,1,0,1,0,1,0 } }, + { "n", { 0,0,0,0,1,0,0,0,0,0,1,0,0,1,0 } }, + { "o", { 0,0,1,1,1,0,0,0,0,1,0,0,0,1,0 } }, + { "p", { 1,0,0,0,1,1,0,0,1,0,0,0,0,1,0 } }, + { "q", { 1,1,1,0,0,0,1,0,0,1,0,0,0,0,0 } }, + { "r", { 0,0,0,0,1,0,0,0,0,0,0,0,0,1,0 } }, + { "s", { 0,0,0,1,0,0,0,0,0,1,1,0,0,0,0 } }, + { "t", { 0,0,0,1,1,1,0,0,0,0,0,0,0,1,0 } }, + { "u", { 0,0,1,1,1,0,0,0,0,0,0,0,0,0,0 } }, + { "v", { 0,0,0,0,1,0,0,0,0,0,0,0,1,0,0 } }, + { "w", { 0,0,1,0,1,0,0,0,0,0,1,0,1,0,0 } }, + { "x", { 0,0,0,0,0,0,1,0,1,0,1,0,1,0,0 } }, + { "y", { 0,0,0,0,0,0,1,0,1,0,0,0,1,0,0 } }, + { "z", { 0,0,0,4,0,0,0,0,0,0,0,0,1,1,0 } }, + { "{", { 1,0,0,1,0,0,1,0,0,0,0,0,1,1,0 } }, + { "|", { 0,0,0,0,0,0,0,1,0,0,0,1,0,0,0 } }, + { "}", { 1,0,0,1,0,0,0,0,1,1,1,0,0,0,0 } }, + { "~", { 0,1,0,0,0,1,1,0,0,1,0,0,0,0,0 } }, + { string.char(127), { 1,1,1,1,1,1,1,1,1,1,1,1,1,1,0 } }, -- "DEL" + { string.char(144), { 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1 } }, -- all-on +} + +local fdir_to_right = { + { 1, 0 }, + { 0, -1 }, + { -1, 0 }, + { 0, 1 }, +} + +local padding = " " +local allon = string.char(128) +for i = 1, 64 do + padding = padding.." " + allon = allon..string.char(128) +end + +local display_string = function(pos, channel, string) + if string == "off_multi" then + string = "" + elseif string == "allon_multi" then + string = allon + end + local padded_string = string.sub(string..padding, 1, 64) + local fdir = minetest.get_node(pos).param2 % 4 + local pos2 = pos + for i = 1, 64 do + local node = minetest.get_node(pos2) + local meta = minetest.get_meta(pos2) + local setchan = meta:get_string("channel") + if not string.match(node.name, "nixie_tubes:alnum_") or (setchan ~= nil and setchan ~= "" and setchan ~= channel) then break end + local asc = string.byte(padded_string, i, i) + if node.param2 == fdir and ((asc > 30 and asc < 128) or asc == 144) then + minetest.swap_node(pos2, { name = "nixie_tubes:alnum_"..asc, param2 = node.param2}) + end + pos2.x = pos2.x + fdir_to_right[fdir+1][1] + pos2.z = pos2.z + fdir_to_right[fdir+1][2] + end +end + +local on_digiline_receive_alnum = function(pos, node, channel, msg) + local meta = minetest.get_meta(pos) + local setchan = meta:get_string("channel") + if setchan ~= channel then return end + if msg and msg ~= "" and type(msg) == "string" then + if string.len(msg) > 1 then + if msg == "off" then + minetest.swap_node(pos, { name = "nixie_tubes:alnum_32", param2 = node.param2}) + elseif msg == "colon" then + minetest.swap_node(pos, { name = "nixie_tubes:alnum_58", param2 = node.param2}) + elseif msg == "period" then + minetest.swap_node(pos, { name = "nixie_tubes:alnum_46", param2 = node.param2}) + elseif msg == "del" then + minetest.swap_node(pos, { name = "nixie_tubes:alnum_127", param2 = node.param2}) + elseif msg == "allon" then + minetest.swap_node(pos, { name = "nixie_tubes:alnum_144", param2 = node.param2}) + elseif msg == "cursor" then + minetest.swap_node(pos, { name = "nixie_tubes:alnum_31", param2 = node.param2}) + else + display_string(pos, channel, msg) + end + else + local asc = string.byte(msg) + if (asc > 30 and asc < 128) or asc == 144 then + minetest.swap_node(pos, { name = "nixie_tubes:alnum_"..asc, param2 = node.param2}) + elseif msg == "get" then -- get value as ASCII numerical value + digiline:receptor_send(pos, digiline.rules.default, channel, tonumber(string.match(minetest.get_node(pos).name,"nixie_tubes:alnum_(.+)"))) -- wonderfully horrible string manipulaiton + elseif msg == "getstr" then -- get actual char + digiline:receptor_send(pos, digiline.rules.default, channel, string.char(tonumber(string.match(minetest.get_node(pos).name,"nixie_tubes:alnum_(.+)")))) + end + end + elseif msg and type(msg) == "number" then + if msg == 0 then + minetest.swap_node(pos, { name = "nixie_tubes:alnum_32", param2 = node.param2}) + elseif (msg > 30 and msg < 128) or msg == 144 then + minetest.swap_node(pos, { name = "nixie_tubes:alnum_"..tostring(msg), param2 = node.param2}) + end + end +end + +for i in ipairs(alnum_chars) do + local char = alnum_chars[i][1] + local bits = alnum_chars[i][2] + + local groups = { cracky = 2, not_in_creative_inventory = 1} + local light = LIGHT_MAX-4 + local description = S("Alphanumeric Nixie Tube ("..char..")") + + local wires = "nixie_tube_alnum_wires.png" + for j = 1, 15 do + if bits[j] == 1 then + wires = wires.."^nixie_tube_alnum_seg_"..j..".png" + end + end + + if char == " " then + groups = {cracky = 2} + light = nil + description = S("Alphanumeric Nixie Tube") + wires = "nixie_tube_alnum_wires.png" + end + + minetest.register_node("nixie_tubes:alnum_"..string.byte(char), { + description = description, + drawtype = "mesh", + mesh = "nixie_tube.obj", + tiles = { + "nixie_tube_base.png", + "nixie_tube_backing.png", + wires, + "nixie_tube_anode.png", + "nixie_tube_glass.png", + }, + use_texture_alpha = true, + groups = groups, + paramtype = "light", + paramtype2 = "facedir", + light_source = light, + selection_box = tube_cbox, + collision_box = tube_cbox, + on_construct = function(pos) + reset_meta(pos) + end, + on_receive_fields = function(pos, formname, fields, sender) + if (fields.channel) then + minetest.get_meta(pos):set_string("channel", fields.channel) + end + end, + digiline = { + receptor = {}, + effector = { + action = on_digiline_receive_alnum + }, + }, + drop = "nixie_tubes:alnum_32" + }) +end + +-- crafts + +minetest.register_craft({ + output = "nixie_tubes:tube_off 4", + recipe = { + { "", "default:glass", "" }, + { "default:glass", "default:sign_wall", "default:glass" }, + { "default:glass", "default:mese_crystal_fragment", "default:glass" } + }, +}) + +minetest.register_craft({ + output = "nixie_tubes:numitron_off 4", + recipe = { + { "", "default:glass", "" }, + { "default:glass", "default:copper_ingot", "default:glass" }, + { "default:glass", "default:mese_crystal_fragment", "default:glass" } + }, +}) + + +minetest.register_craft({ + output = "nixie_tubes:alnum_32 4", + recipe = { + { "", "default:glass", "" }, + { "default:glass", "default:sign_wall", "default:glass" }, + { "default:glass", "default:mese_crystal", "default:glass" } + }, +}) + diff --git a/nixie_tubes/mod.conf b/nixie_tubes/mod.conf new file mode 100644 index 0000000..2ead58f --- /dev/null +++ b/nixie_tubes/mod.conf @@ -0,0 +1 @@ +name = nixie_tubes diff --git a/nixie_tubes/models/decatron.obj b/nixie_tubes/models/decatron.obj new file mode 100644 index 0000000..27b71d7 --- /dev/null +++ b/nixie_tubes/models/decatron.obj @@ -0,0 +1,1225 @@ +# Blender v2.73 (sub 0) OBJ File: 'decatron.blend' +# www.blender.org +o nixie_Cylinder.009 +v 0.349999 -0.500000 0.000000 +v 0.323357 -0.500000 0.133939 +v 0.247486 -0.500000 0.247486 +v 0.133939 -0.500000 0.323357 +v 0.000000 -0.500000 0.349999 +v -0.133939 -0.500000 0.323357 +v -0.247486 -0.500000 0.247486 +v -0.323357 -0.500000 0.133939 +v -0.349999 -0.500000 0.000000 +v -0.323357 -0.500000 -0.133939 +v -0.247486 -0.500000 -0.247486 +v -0.133939 -0.500000 -0.323357 +v -0.000000 -0.500000 -0.349999 +v 0.133939 -0.500000 -0.323357 +v 0.247486 -0.500000 -0.247486 +v 0.323357 -0.500000 -0.133939 +v -0.000000 -0.227297 0.000000 +v -0.000000 -0.500000 0.000000 +v 0.323357 -0.250001 0.133939 +v 0.247486 -0.250001 0.247486 +v 0.133939 -0.250001 0.323357 +v 0.000000 -0.250001 0.349999 +v -0.133939 -0.250001 0.323357 +v -0.247486 -0.250001 0.247486 +v -0.323357 -0.250001 0.133939 +v -0.349999 -0.250001 0.000000 +v -0.323357 -0.250001 -0.133939 +v -0.247486 -0.250001 -0.247486 +v -0.133939 -0.250001 -0.323357 +v -0.000000 -0.250001 -0.349999 +v 0.133939 -0.250001 -0.323357 +v 0.247486 -0.250001 -0.247486 +v 0.323357 -0.250001 -0.133939 +v 0.349999 -0.250001 0.000000 +v 0.326386 -0.227297 0.000000 +v 0.301541 -0.227297 0.124903 +v 0.230790 -0.227297 0.230790 +v 0.124903 -0.227297 0.301541 +v 0.000000 -0.227297 0.326386 +v -0.124903 -0.227297 0.301541 +v -0.230790 -0.227297 0.230790 +v -0.301541 -0.227297 0.124903 +v -0.326386 -0.227297 0.000000 +v -0.301541 -0.227297 -0.124902 +v -0.230790 -0.227297 -0.230790 +v -0.124903 -0.227297 -0.301541 +v -0.000000 -0.227297 -0.326386 +v 0.124903 -0.227297 -0.301541 +v 0.230790 -0.227297 -0.230790 +v 0.301541 -0.227297 -0.124902 +v 0.207637 0.464059 -0.086006 +v 0.158918 0.464059 -0.158918 +v 0.086006 0.464059 -0.207637 +v -0.000000 0.464059 -0.224745 +v -0.086006 0.464059 -0.207637 +v -0.158919 0.464059 -0.158918 +v -0.207637 0.464059 -0.086006 +v -0.224745 0.464059 0.000000 +v -0.207637 0.464059 0.086006 +v -0.158918 0.464059 0.158919 +v -0.086006 0.464059 0.207637 +v 0.000000 0.464059 0.224745 +v 0.086006 0.464059 0.207637 +v 0.158918 0.464059 0.158918 +v 0.207637 0.464059 0.086006 +v 0.326386 0.287854 0.000000 +v 0.301541 0.287854 -0.124902 +v 0.230790 0.287854 -0.230790 +v 0.124903 0.287854 -0.301541 +v -0.000000 0.287854 -0.326386 +v -0.124903 0.287854 -0.301541 +v -0.230790 0.287854 -0.230790 +v -0.301541 0.287854 -0.124902 +v -0.326386 0.287854 0.000000 +v -0.301541 0.287854 0.124903 +v -0.230790 0.287854 0.230790 +v -0.124903 0.287854 0.301541 +v 0.000000 0.287854 0.326386 +v 0.124903 0.287854 0.301541 +v 0.230790 0.287854 0.230790 +v 0.301541 0.287854 0.124903 +v 0.224745 0.464059 0.000000 +v 0.280086 0.375956 -0.116015 +v 0.214368 0.375956 -0.214368 +v 0.116015 0.375956 -0.280086 +v -0.000000 0.375956 -0.303163 +v -0.116015 0.375956 -0.280086 +v -0.214368 0.375956 -0.214368 +v -0.280086 0.375956 -0.116015 +v -0.303163 0.375956 0.000000 +v -0.280086 0.375956 0.116015 +v -0.214368 0.375956 0.214368 +v -0.116015 0.375956 0.280086 +v 0.000000 0.375956 0.303163 +v 0.116015 0.375956 0.280086 +v 0.214368 0.375956 0.214368 +v 0.280086 0.375956 0.116015 +v 0.303163 0.375956 0.000000 +v -0.000000 0.499996 0.000000 +v 0.041885 0.499996 -0.017349 +v 0.032057 0.499996 -0.032057 +v 0.017349 0.499996 -0.041885 +v -0.000000 0.499996 -0.045336 +v -0.017349 0.499996 -0.041885 +v -0.032057 0.499996 -0.032057 +v -0.041885 0.499996 -0.017349 +v -0.045336 0.499996 0.000000 +v -0.041885 0.499996 0.017349 +v -0.032057 0.499996 0.032057 +v -0.017349 0.499996 0.041885 +v 0.000000 0.499996 0.045336 +v 0.017349 0.499996 0.041885 +v 0.032057 0.499996 0.032057 +v 0.041885 0.499996 0.017349 +v 0.045336 0.499996 0.000000 +v 0.301541 -0.227297 -0.124902 +v 0.230790 -0.227297 -0.230790 +v 0.124903 -0.227297 -0.301541 +v -0.000000 -0.227297 -0.326386 +v -0.124903 -0.227297 -0.301541 +v -0.230790 -0.227297 -0.230790 +v -0.301541 -0.227297 -0.124902 +v -0.326386 -0.227297 0.000000 +v -0.301541 -0.227297 0.124903 +v -0.230790 -0.227297 0.230790 +v -0.124903 -0.227297 0.301541 +v 0.000000 -0.227297 0.326386 +v 0.124903 -0.227297 0.301541 +v 0.230790 -0.227297 0.230790 +v 0.301541 -0.227297 0.124903 +v 0.326386 -0.227297 0.000000 +v 0.147416 0.489328 0.000000 +v 0.136194 0.489328 0.056414 +v 0.104239 0.489328 0.104239 +v 0.056414 0.489328 0.136195 +v 0.000000 0.489328 0.147416 +v -0.056414 0.489328 0.136195 +v -0.104239 0.489328 0.104239 +v -0.136194 0.489328 0.056414 +v -0.147416 0.489328 0.000000 +v -0.136195 0.489328 -0.056414 +v -0.104239 0.489328 -0.104239 +v -0.056414 0.489328 -0.136194 +v -0.000000 0.489328 -0.147416 +v 0.056414 0.489328 -0.136194 +v 0.104239 0.489328 -0.104239 +v 0.136195 0.489328 -0.056414 +v 0.182642 0.475456 0.036330 +v 0.154837 0.475456 0.103459 +v 0.103459 0.475456 0.154837 +v 0.036330 0.475456 0.182643 +v -0.036330 0.475456 0.182643 +v -0.103459 0.475456 0.154837 +v -0.154837 0.475456 0.103459 +v -0.182642 0.475456 0.036330 +v -0.182642 0.475456 -0.036330 +v -0.154837 0.475456 -0.103459 +v -0.103459 0.475456 -0.154837 +v -0.036330 0.475456 -0.182642 +v 0.036330 0.475456 -0.182642 +v 0.103459 0.475456 -0.154837 +v 0.182642 0.475456 -0.036330 +v 0.154837 0.475456 -0.103459 +v 0.256519 0.416957 0.051025 +v 0.217466 0.416957 0.145306 +v 0.145306 0.416957 0.217466 +v 0.051025 0.416957 0.256519 +v -0.051025 0.416957 0.256519 +v -0.145306 0.416957 0.217466 +v -0.217466 0.416957 0.145306 +v -0.256519 0.416957 0.051025 +v -0.256519 0.416957 -0.051025 +v -0.217466 0.416957 -0.145306 +v -0.145306 0.416957 -0.217466 +v -0.051025 0.416957 -0.256519 +v 0.051025 0.416957 -0.256519 +v 0.145306 0.416957 -0.217466 +v 0.256519 0.416957 -0.051025 +v 0.217466 0.416957 -0.145306 +v 0.303030 0.330972 0.060276 +v 0.256897 0.330972 0.171653 +v 0.171653 0.330972 0.256897 +v 0.060277 0.330972 0.303030 +v -0.060277 0.330972 0.303030 +v -0.171653 0.330972 0.256897 +v -0.256897 0.330972 0.171653 +v -0.303030 0.330972 0.060277 +v -0.303031 0.330972 -0.060276 +v -0.256897 0.330972 -0.171653 +v -0.171653 0.330972 -0.256897 +v -0.060277 0.330972 -0.303030 +v 0.060277 0.330972 -0.303030 +v 0.171653 0.330972 -0.256897 +v 0.303031 0.330972 -0.060276 +v 0.256897 0.330972 -0.171653 +v 0.096678 -0.024066 0.070240 +v 0.119500 -0.024066 -0.000000 +v 0.119500 -0.250000 -0.000000 +v 0.317357 0.256231 -0.000000 +v 0.096678 -0.250000 0.070240 +v 0.256747 0.256231 0.186538 +v 0.036928 -0.250000 0.113651 +v 0.098069 0.256231 0.301824 +v -0.036928 -0.250000 0.113651 +v -0.098069 0.256231 0.301824 +v -0.096678 -0.250000 0.070240 +v -0.256747 0.256231 0.186538 +v -0.119500 -0.250000 0.000000 +v -0.317357 0.256231 0.000000 +v -0.096678 -0.250000 -0.070240 +v -0.256747 0.256231 -0.186538 +v -0.036928 -0.250000 -0.113651 +v -0.098069 0.256231 -0.301824 +v 0.036928 -0.250000 -0.113651 +v 0.098069 0.256231 -0.301824 +v 0.096678 -0.250000 -0.070240 +v 0.256747 0.256231 -0.186538 +v 0.036928 -0.024066 0.113651 +v -0.036928 -0.024066 0.113651 +v -0.096678 -0.024066 0.070240 +v -0.119500 -0.024066 0.000000 +v -0.096678 -0.024066 -0.070240 +v -0.036928 -0.024066 -0.113651 +v 0.036928 -0.024066 -0.113651 +v 0.096678 -0.024066 -0.070240 +v 0.096678 0.093867 -0.070240 +v 0.036928 0.093867 -0.113651 +v 0.119500 0.093867 -0.000000 +v -0.036928 0.093867 -0.113651 +v -0.096678 0.093867 -0.070240 +v -0.119500 0.093867 0.000000 +v -0.096678 0.093867 0.070240 +v -0.036928 0.093867 0.113651 +v 0.036928 0.093867 0.113651 +v 0.096678 0.093867 0.070240 +v 0.317332 0.175898 -0.000000 +v 0.256727 0.175898 -0.186523 +v 0.098061 0.175898 -0.301801 +v -0.098061 0.175898 -0.301801 +v -0.256727 0.175898 -0.186523 +v -0.317332 0.175898 0.000000 +v -0.256727 0.175898 0.186523 +v -0.098061 0.175898 0.301801 +v 0.098061 0.175898 0.301801 +v 0.256727 0.175898 0.186523 +v 0.096678 -0.188128 0.070240 +v 0.036928 -0.188128 0.113651 +v -0.036928 -0.188128 0.113651 +v -0.096678 -0.188128 0.070240 +v -0.119500 -0.188128 0.000000 +v -0.096678 -0.188128 -0.070240 +v -0.036928 -0.188128 -0.113651 +v 0.036928 -0.188128 -0.113651 +v 0.119500 -0.188128 -0.000000 +v 0.096678 -0.188128 -0.070240 +v 0.061561 -0.106097 -0.000000 +v 0.049804 -0.106097 0.036184 +v 0.019023 -0.106097 0.058548 +v -0.019023 -0.106097 0.058548 +v -0.049804 -0.106097 0.036184 +v -0.061561 -0.106097 0.000000 +v -0.049804 -0.106097 -0.036184 +v -0.019023 -0.106097 -0.058548 +v 0.019023 -0.106097 -0.058548 +v 0.049804 -0.106097 -0.036184 +v -0.221607 0.336504 -0.161007 +v -0.273921 0.336504 0.000000 +v -0.221607 0.336504 0.161007 +v -0.084646 0.336504 0.260514 +v 0.084646 0.336504 0.260514 +v 0.273900 0.256171 -0.000000 +v 0.221590 0.256171 0.160994 +v 0.084640 0.256171 0.260495 +v -0.084640 0.256171 0.260495 +v -0.221590 0.256171 0.160995 +v -0.273900 0.256171 0.000000 +v -0.221590 0.256171 -0.160994 +v -0.084640 0.256171 -0.260495 +v 0.084640 0.256171 -0.260495 +v 0.221590 0.256171 -0.160995 +v 0.119500 0.253981 -0.000000 +v 0.119500 0.320332 -0.000000 +v 0.096678 0.253981 0.070240 +v 0.096678 0.320332 0.070240 +v 0.036928 0.253981 0.113651 +v 0.036928 0.320332 0.113651 +v -0.036928 0.253981 0.113651 +v -0.036928 0.320332 0.113651 +v -0.096678 0.253981 0.070240 +v -0.096678 0.320332 0.070240 +v -0.119500 0.253981 0.000000 +v -0.119500 0.320332 0.000000 +v -0.096678 0.253981 -0.070240 +v -0.096678 0.320332 -0.070240 +v -0.036928 0.253981 -0.113651 +v -0.036928 0.320332 -0.113651 +v 0.036928 0.253981 -0.113651 +v 0.036928 0.320332 -0.113651 +v 0.096678 0.253981 -0.070240 +v 0.096678 0.320332 -0.070240 +v 0.273799 0.336504 -0.000000 +v 0.221508 0.336504 -0.160935 +v 0.084609 0.336504 -0.260398 +v -0.084609 0.336504 -0.260398 +v 0.221508 0.336504 0.160935 +v 0.117966 0.317873 -0.000000 +v 0.095436 0.317873 0.069338 +v 0.036453 0.317873 0.112192 +v -0.036453 0.317873 0.112192 +v -0.095436 0.317873 0.069339 +v -0.117966 0.317873 0.000000 +v -0.095436 0.317873 -0.069338 +v -0.036453 0.317873 -0.112192 +v 0.036453 0.317873 -0.112192 +v 0.095436 0.317873 -0.069338 +v 0.190983 0.325972 -0.062054 +v 0.118034 0.325972 -0.162460 +v -0.000000 0.325972 -0.200811 +v -0.118034 0.325971 -0.162460 +v -0.190983 0.325972 -0.062054 +v -0.190983 0.325972 0.062054 +v -0.118034 0.325972 0.162460 +v 0.000000 0.325971 0.200811 +v 0.190983 0.325972 0.062054 +v 0.118034 0.325972 0.162460 +v -0.220928 0.336504 0.160514 +v -0.273082 0.336504 0.000000 +v -0.220928 0.336504 -0.160514 +v -0.084387 0.336504 -0.259717 +v 0.084387 0.336504 -0.259717 +v 0.273061 0.256171 -0.000000 +v 0.220911 0.256171 -0.160501 +v 0.084381 0.256171 -0.259697 +v -0.084381 0.256171 -0.259697 +v -0.220911 0.256171 -0.160502 +v -0.273061 0.256171 0.000000 +v -0.220911 0.256171 0.160502 +v -0.084381 0.256171 0.259697 +v 0.084381 0.256171 0.259697 +v 0.220911 0.256171 0.160502 +v 0.272961 0.336504 -0.000000 +v 0.220830 0.336504 0.160442 +v 0.084350 0.336504 0.259601 +v -0.084349 0.336504 0.259601 +v 0.220830 0.336504 -0.160442 +v -0.220152 0.336504 0.159950 +v -0.272123 0.336504 0.000000 +v -0.220152 0.336504 -0.159950 +v -0.084091 0.336504 -0.258804 +v 0.084091 0.336504 -0.258804 +v 0.272102 0.256171 -0.000000 +v 0.220135 0.256171 -0.159938 +v 0.084084 0.256171 -0.258785 +v -0.084084 0.256171 -0.258785 +v -0.220135 0.256171 -0.159938 +v -0.272102 0.256171 0.000000 +v -0.220135 0.256171 0.159938 +v -0.084084 0.256171 0.258785 +v 0.084084 0.256171 0.258785 +v 0.220135 0.256171 0.159938 +v 0.272002 0.336504 -0.000000 +v 0.220054 0.336504 0.159879 +v 0.084053 0.336504 0.258689 +v -0.084053 0.336504 0.258689 +v 0.220054 0.336504 -0.159879 +v -0.219464 0.336504 -0.159450 +v -0.271273 0.336504 0.000000 +v -0.219464 0.336504 0.159450 +v -0.083828 0.336504 0.257996 +v 0.083828 0.336504 0.257996 +v 0.271252 0.256171 -0.000000 +v 0.219447 0.256171 0.159438 +v 0.083822 0.256171 0.257976 +v -0.083821 0.256171 0.257976 +v -0.219447 0.256171 0.159438 +v -0.271252 0.256171 0.000000 +v -0.219447 0.256171 -0.159438 +v -0.083822 0.256171 -0.257976 +v 0.083821 0.256171 -0.257976 +v 0.219447 0.256171 -0.159438 +v 0.271152 0.336504 -0.000000 +v 0.219366 0.336504 -0.159379 +v 0.083790 0.336504 -0.257881 +v -0.083791 0.336504 -0.257881 +v 0.219366 0.336504 0.159379 +v 0.000000 -0.060385 0.089254 +v -0.052462 -0.060385 0.072208 +v -0.084886 -0.060385 0.027581 +v -0.084886 -0.060385 -0.027581 +v -0.052462 -0.060385 -0.072208 +v -0.000000 -0.060385 -0.089254 +v 0.084886 -0.060385 -0.027581 +v 0.084886 -0.060385 0.027581 +v 0.052462 -0.060385 -0.072208 +v 0.052462 -0.060385 0.072208 +v 0.052462 -0.151808 0.072208 +v 0.052462 -0.151808 -0.072208 +v 0.084886 -0.151808 0.027581 +v 0.084886 -0.151808 -0.027581 +v -0.000000 -0.151808 -0.089254 +v -0.052462 -0.151808 -0.072208 +v -0.084886 -0.151808 -0.027581 +v -0.084886 -0.151808 0.027581 +v -0.052462 -0.151808 0.072208 +v 0.000000 -0.151808 0.089254 +v 0.131780 0.142064 -0.181380 +v 0.213225 0.142064 -0.069281 +v -0.000000 0.142064 -0.224198 +v -0.131780 0.142064 -0.181380 +v -0.213225 0.142064 -0.069281 +v -0.213225 0.142064 0.069281 +v -0.131780 0.142064 0.181380 +v 0.000000 0.142064 0.224198 +v 0.131780 0.142064 0.181380 +v 0.213225 0.142064 0.069281 +vt 0.500000 0.750000 +vt 0.595671 0.730970 +vt 0.500000 0.500000 +vt 0.437500 0.000000 +vt 0.437500 0.250000 +vt 0.375000 0.250000 +vt 0.375000 0.000000 +vt 0.312500 0.250000 +vt 0.312500 0.000000 +vt 0.250000 0.250000 +vt 0.250000 0.000000 +vt 0.187500 0.250000 +vt 0.187500 0.000000 +vt 0.125000 0.250000 +vt 0.125000 0.000000 +vt 0.062500 0.250000 +vt 0.062500 0.000000 +vt 0.000000 0.250000 +vt 0.000000 0.000000 +vt 1.000000 0.000000 +vt 1.000000 0.250000 +vt 0.937500 0.250000 +vt 0.937500 0.000000 +vt 0.875000 0.250000 +vt 0.875000 0.000000 +vt 0.812500 0.250000 +vt 0.812500 0.000000 +vt 0.750000 0.250000 +vt 0.750000 0.000000 +vt 0.687500 0.250000 +vt 0.687500 0.000000 +vt 0.625000 0.250000 +vt 0.625000 0.000000 +vt 0.562500 0.250000 +vt 0.562500 0.000000 +vt 0.500000 0.000000 +vt 0.500000 0.250000 +vt 0.676777 0.676777 +vt 0.500000 0.733134 +vt 0.589216 0.715388 +vt 0.664850 0.664850 +vt 0.715388 0.589216 +vt 0.730970 0.595671 +vt 0.733134 0.500000 +vt 0.750000 0.500000 +vt 0.715388 0.410784 +vt 0.730970 0.404329 +vt 0.664850 0.335149 +vt 0.676777 0.323223 +vt 0.589216 0.284612 +vt 0.595671 0.269030 +vt 0.500000 0.266866 +vt 0.410784 0.284612 +vt 0.404329 0.269030 +vt 0.335150 0.335149 +vt 0.323223 0.323223 +vt 0.284612 0.410784 +vt 0.269030 0.404329 +vt 0.266866 0.500000 +vt 0.250000 0.500000 +vt 0.284612 0.589217 +vt 0.269030 0.595671 +vt 0.335150 0.664851 +vt 0.323223 0.676777 +vt 0.404329 0.730970 +vt 0.410784 0.715388 +vt 0.875000 0.500000 +vt 0.812500 0.389311 +vt 0.250000 0.875000 +vt 0.250000 1.000000 +vt 0.125000 1.000000 +vt 0.125000 0.875000 +vt 0.875000 0.750000 +vt 0.750000 0.750000 +vt 0.687500 0.389311 +vt -0.000000 1.000000 +vt -0.000000 0.875000 +vt 1.000000 0.500000 +vt 1.000000 0.750000 +vt 0.625000 0.500000 +vt 0.562500 0.389311 +vt 1.000000 0.875000 +vt 1.000000 1.000000 +vt 0.875000 1.000000 +vt 0.875000 0.875000 +vt 0.625000 0.750000 +vt 0.437500 0.389311 +vt 0.750000 1.000000 +vt 0.750000 0.875000 +vt 0.375000 0.750000 +vt 0.375000 0.500000 +vt 0.312500 0.389311 +vt 0.625000 1.000000 +vt 0.625000 0.875000 +vt 0.250000 0.750000 +vt 0.125000 0.500000 +vt 0.062500 0.389311 +vt 0.500000 1.000000 +vt 0.500000 0.875000 +vt 0.125000 0.750000 +vt -0.000000 0.750000 +vt -0.000000 0.500000 +vt 0.187500 0.389311 +vt 0.375000 1.000000 +vt 0.375000 0.875000 +vt 0.125000 0.062500 +vt 0.062500 0.145516 +vt 0.500000 0.998244 +vt 0.572441 0.974707 +vt 0.617212 0.913084 +vt 0.617212 0.836916 +vt 0.572441 0.775293 +vt 0.500000 0.751756 +vt 0.427559 0.775293 +vt 0.382788 0.836916 +vt 0.382788 0.913085 +vt 0.427559 0.974707 +vt 0.062500 0.823443 +vt 0.312500 0.823443 +vt 0.437500 0.823443 +vt 0.562500 0.823443 +vt 0.687500 0.823443 +vt 0.812500 0.823443 +vt 0.937500 0.823443 +vt 0.187500 0.823443 +vt -0.000000 0.062500 +vt 0.250000 0.062500 +vt 0.375000 0.062500 +vt 0.500000 0.062500 +vt 0.625000 0.062500 +vt 0.750000 0.062500 +vt 0.875000 0.062500 +vt 0.187500 0.145516 +vt 0.312500 0.145516 +vt 0.437500 0.145516 +vt 0.562500 0.145516 +vt 0.687500 0.145516 +vt 0.812500 0.145516 +vt 1.000000 0.062500 +vt 0.937500 0.145516 +vt 0.937500 0.389311 +vt 0.250000 0.125000 +vt 0.125000 0.125000 +vt -0.000000 0.125000 +vt 1.000000 0.125000 +vt 0.875000 0.125000 +vt 0.750000 0.125000 +vt 0.625000 0.125000 +vt 0.500000 0.125000 +vt 0.375000 0.125000 +vt 0.617946 0.662339 +vt 0.500000 0.700662 +vt 0.382054 0.662339 +vt 0.309159 0.562008 +vt 0.309159 0.437992 +vt 0.382054 0.337661 +vt 0.500000 0.299338 +vt 0.617946 0.337661 +vt 0.690840 0.437992 +vt 0.690840 0.562008 +vt 0.625000 0.646142 +vt 0.375000 0.646142 +vt 0.125000 0.646142 +vt 0.875000 0.896142 +vt 0.625000 0.896142 +vt 0.375000 0.896142 +vt 0.125000 0.896142 +vt 0.125000 0.396142 +vt 0.375000 0.396142 +vt 0.875000 0.646142 +vt 0.250000 0.320312 +vt 0.125000 0.320312 +vt 1.000000 0.320312 +vt 0.875000 0.320312 +vt 0.750000 0.320312 +vt 0.625000 0.320312 +vt 0.500000 0.320312 +vt 0.375000 0.320312 +vt 0.000000 0.320312 +vt 0.875000 0.445312 +vt 0.812500 0.469977 +vt 0.750000 0.445312 +vt 0.687500 0.469977 +vt 0.625000 0.445312 +vt 0.562500 0.469977 +vt 0.500000 0.445312 +vt 0.437500 0.469977 +vt 0.375000 0.445312 +vt 0.312500 0.469977 +vt 0.250000 0.445312 +vt 0.187500 0.469977 +vt 0.125000 0.445312 +vt 0.062500 0.469977 +vt 1.000000 0.445312 +vt 0.937500 0.469977 +vt 1.000000 0.375000 +vt 0.937500 0.407722 +vt 0.875000 0.375000 +vt 0.812500 0.407722 +vt 0.750000 0.375000 +vt 0.687500 0.407722 +vt 0.625000 0.375000 +vt 0.562500 0.407722 +vt 0.500000 0.375000 +vt 0.437500 0.407722 +vt 0.375000 0.375000 +vt 0.312500 0.407722 +vt 0.250000 0.375000 +vt 0.187500 0.407722 +vt 0.125000 0.375000 +vt 0.062500 0.407722 +vt 0.937500 0.347077 +vt 0.537472 0.537472 +vt 0.520280 0.548959 +vt 0.548959 0.520280 +vt 0.552993 0.500000 +vt 0.548959 0.479721 +vt 0.537472 0.462529 +vt 0.520280 0.451041 +vt 0.500000 0.447008 +vt 0.479721 0.451041 +vt 0.462529 0.462529 +vt 0.451041 0.479721 +vt 0.447007 0.500000 +vt 0.451041 0.520280 +vt 0.462529 0.537472 +vt 0.479721 0.548959 +vt 0.500000 0.552993 +vt 0.812500 0.347077 +vt 0.687500 0.347077 +vt 0.562500 0.347077 +vt 0.437500 0.347077 +vt 0.312500 0.347077 +vt 0.187500 0.347077 +vt 0.062500 0.347077 +vt 0.378156 0.621844 +vt 0.434059 0.659197 +vt 0.500000 0.672314 +vt 0.340803 0.565942 +vt 0.327687 0.500000 +vt 0.340803 0.434059 +vt 0.378156 0.378156 +vt 0.434059 0.340803 +vt 0.500000 0.327687 +vt 0.565942 0.340803 +vt 0.621844 0.378156 +vt 0.659197 0.434059 +vt 0.672314 0.500000 +vt 0.659197 0.565942 +vt 0.621844 0.621844 +vt 0.565942 0.659197 +vt 0.000000 0.445312 +vt 0.000000 0.375000 +g nixie_Cylinder.009_base +s 1 +f 1/1 2/2 18/3 +f 1/4 34/5 19/6 2/7 +f 2/7 19/6 20/8 3/9 +f 3/9 20/8 21/10 4/11 +f 4/11 21/10 22/12 5/13 +f 5/13 22/12 23/14 6/15 +f 6/15 23/14 24/16 7/17 +f 7/17 24/16 25/18 8/19 +f 8/20 25/21 26/22 9/23 +f 9/23 26/22 27/24 10/25 +f 10/25 27/24 28/26 11/27 +f 11/27 28/26 29/28 12/29 +f 12/29 29/28 30/30 13/31 +f 13/31 30/30 31/32 14/33 +f 14/33 31/32 32/34 15/35 +f 16/36 33/37 34/5 1/4 +f 15/35 32/34 33/37 16/36 +f 2/2 3/38 18/3 +f 34/1 35/39 36/40 19/2 +f 19/2 36/40 37/41 20/38 +f 20/38 37/41 38/42 21/43 +f 21/43 38/42 39/44 22/45 +f 22/45 39/44 40/46 23/47 +f 23/47 40/46 41/48 24/49 +f 24/49 41/48 42/50 25/51 +f 25/51 42/50 43/52 26/37 +f 26/37 43/52 44/53 27/54 +f 27/54 44/53 45/55 28/56 +f 28/56 45/55 46/57 29/58 +f 29/58 46/57 47/59 30/60 +f 30/60 47/59 48/61 31/62 +f 31/62 48/61 49/63 32/64 +f 33/65 50/66 35/39 34/1 +f 32/64 49/63 50/66 33/65 +f 3/38 4/43 18/3 +f 4/43 5/45 18/3 +f 5/45 6/47 18/3 +f 6/47 7/49 18/3 +f 7/49 8/51 18/3 +f 8/51 9/37 18/3 +f 9/37 10/54 18/3 +f 10/54 11/56 18/3 +f 11/56 12/58 18/3 +f 12/58 13/60 18/3 +f 13/60 14/62 18/3 +f 14/62 15/64 18/3 +f 15/64 16/65 18/3 +f 16/65 1/1 18/3 +f 50/66 35/39 17/3 +f 35/39 36/40 17/3 +f 36/40 37/41 17/3 +f 37/41 38/42 17/3 +f 38/42 39/44 17/3 +f 39/44 40/46 17/3 +f 40/46 41/48 17/3 +f 41/48 42/50 17/3 +f 42/50 43/52 17/3 +f 43/52 44/53 17/3 +f 44/53 45/55 17/3 +f 45/55 46/57 17/3 +f 46/57 47/59 17/3 +f 47/59 48/61 17/3 +f 48/61 49/63 17/3 +f 49/63 50/66 17/3 +g nixie_Cylinder.009_internals +f 259/24 219/67 387/68 +f 236/69 199/70 201/71 245/72 +f 219/67 233/73 232/74 220/45 +f 260/28 220/45 388/75 +f 245/72 201/71 203/76 244/77 +f 218/78 234/79 233/73 219/67 +f 261/32 221/80 389/81 +f 244/82 203/83 205/84 243/85 +f 221/80 231/86 230/1 222/3 +f 262/37 222/3 390/87 +f 243/85 205/84 207/88 242/89 +f 222/3 230/1 229/90 223/91 +f 263/6 223/91 391/92 +f 242/89 207/88 209/93 241/94 +f 223/91 229/90 227/95 224/60 +f 265/14 225/96 392/97 +f 241/94 209/93 211/98 240/99 +f 225/96 226/100 228/101 197/102 +f 256/10 197/60 393/103 +f 240/99 211/98 213/104 239/105 +f 264/10 224/60 394/103 +f 257/14 196/96 395/97 +f 239/105 213/104 215/70 238/69 +f 201/19 199/19 217/19 215/19 213/19 211/19 209/19 207/19 205/19 203/19 +f 237/72 217/71 199/76 236/77 +f 238/69 215/70 217/71 237/72 +f 224/60 227/95 226/100 225/96 +f 246/106 257/14 396/107 +f 198/108 200/109 202/110 204/111 206/112 208/113 210/114 212/115 214/116 216/117 +f 220/45 232/74 231/86 221/80 +f 196/96 235/100 234/101 218/102 +f 226/100 237/72 407/118 +f 229/90 239/105 408/119 +f 230/1 240/99 409/120 +f 231/86 241/94 410/121 +f 232/74 242/89 411/122 +f 233/73 243/85 412/123 +f 234/79 244/82 413/124 +f 235/100 245/72 414/118 +f 228/95 236/69 415/125 +f 197/60 228/95 235/100 196/96 +f 200/15 246/106 247/126 202/19 +f 214/11 253/127 255/106 216/15 +f 198/11 254/127 246/106 200/15 +f 216/15 255/106 254/126 198/19 +f 212/7 252/128 253/127 214/11 +f 210/36 251/129 252/128 212/7 +f 208/33 250/130 251/129 210/36 +f 206/29 249/131 250/130 208/33 +f 204/25 248/132 249/131 206/29 +f 253/127 264/10 397/133 +f 254/127 256/10 398/133 +f 255/106 265/14 399/107 +f 252/128 263/6 400/134 +f 251/129 262/37 401/135 +f 250/130 261/32 402/136 +f 249/131 260/28 403/137 +f 248/132 259/24 404/138 +f 247/139 258/21 405/140 +f 227/95 238/69 406/125 +f 202/20 247/139 248/132 204/25 +f 258/21 218/78 386/141 +f 218/78 219/67 386/141 +f 219/67 259/24 386/141 +f 259/24 258/21 386/141 +f 219/67 220/45 387/68 +f 220/45 260/28 387/68 +f 260/28 259/24 387/68 +f 220/45 221/80 388/75 +f 221/80 261/32 388/75 +f 261/32 260/28 388/75 +f 221/80 222/3 389/81 +f 222/3 262/37 389/81 +f 262/37 261/32 389/81 +f 222/3 223/91 390/87 +f 223/91 263/6 390/87 +f 263/6 262/37 390/87 +f 223/91 224/60 391/92 +f 224/60 264/10 391/92 +f 264/10 263/6 391/92 +f 225/96 197/102 392/97 +f 197/102 256/18 392/97 +f 256/18 265/14 392/97 +f 197/60 196/96 393/103 +f 196/96 257/14 393/103 +f 257/14 256/10 393/103 +f 224/60 225/96 394/103 +f 225/96 265/14 394/103 +f 265/14 264/10 394/103 +f 196/96 218/102 395/97 +f 218/102 258/18 395/97 +f 258/18 257/14 395/97 +f 257/14 258/18 396/107 +f 258/18 247/126 396/107 +f 247/126 246/106 396/107 +f 264/10 265/14 397/133 +f 265/14 255/106 397/133 +f 255/106 253/127 397/133 +f 256/10 257/14 398/133 +f 257/14 246/106 398/133 +f 246/106 254/127 398/133 +f 265/14 256/18 399/107 +f 256/18 254/126 399/107 +f 254/126 255/106 399/107 +f 263/6 264/10 400/134 +f 264/10 253/127 400/134 +f 253/127 252/128 400/134 +f 262/37 263/6 401/135 +f 263/6 252/128 401/135 +f 252/128 251/129 401/135 +f 261/32 262/37 402/136 +f 262/37 251/129 402/136 +f 251/129 250/130 402/136 +f 260/28 261/32 403/137 +f 261/32 250/130 403/137 +f 250/130 249/131 403/137 +f 259/24 260/28 404/138 +f 260/28 249/131 404/138 +f 249/131 248/132 404/138 +f 258/21 259/24 405/140 +f 259/24 248/132 405/140 +f 248/132 247/139 405/140 +f 238/69 237/72 406/125 +f 237/72 226/100 406/125 +f 226/100 227/95 406/125 +f 237/72 236/77 407/118 +f 236/77 228/101 407/118 +f 228/101 226/100 407/118 +f 239/105 238/69 408/119 +f 238/69 227/95 408/119 +f 227/95 229/90 408/119 +f 240/99 239/105 409/120 +f 239/105 229/90 409/120 +f 229/90 230/1 409/120 +f 241/94 240/99 410/121 +f 240/99 230/1 410/121 +f 230/1 231/86 410/121 +f 242/89 241/94 411/122 +f 241/94 231/86 411/122 +f 231/86 232/74 411/122 +f 243/85 242/89 412/123 +f 242/89 232/74 412/123 +f 232/74 233/73 412/123 +f 244/82 243/85 413/124 +f 243/85 233/73 413/124 +f 233/73 234/79 413/124 +f 245/72 244/77 414/118 +f 244/77 234/101 414/118 +f 234/101 235/100 414/118 +f 236/69 245/72 415/125 +f 245/72 235/100 415/125 +f 235/100 228/95 415/125 +g nixie_Cylinder.009_anode +f 281/142 282/10 284/14 283/143 +f 283/143 284/14 286/18 285/144 +f 285/20 286/145 288/146 287/25 +f 287/25 288/146 290/147 289/29 +f 289/29 290/147 292/148 291/33 +f 291/33 292/148 294/149 293/36 +f 293/36 294/149 296/150 295/7 +f 295/7 296/150 298/142 297/11 +f 284/151 282/152 300/153 298/154 296/155 294/156 292/157 290/158 288/159 286/160 +f 299/15 300/143 282/144 281/19 +f 297/11 298/142 300/143 299/15 +g nixie_Cylinder.009_cathode-pins +f 337/79 326/83 327/88 336/74 +f 336/74 327/88 328/98 335/1 +f 335/1 328/98 329/70 334/95 +f 334/95 329/70 330/76 333/101 +f 331/78 341/79 342/74 340/45 +f 340/45 342/74 343/1 339/3 +f 339/3 343/1 344/95 338/60 +f 338/60 344/95 326/101 337/102 +f 332/10 345/60 341/102 331/18 +f 333/37 330/3 345/60 332/10 +f 357/79 356/74 347/88 346/83 +f 356/74 355/1 348/98 347/88 +f 355/1 354/95 349/70 348/98 +f 354/95 353/101 350/76 349/70 +f 351/78 360/45 362/74 361/79 +f 360/45 359/3 363/1 362/74 +f 359/3 358/60 364/95 363/1 +f 358/60 357/102 346/101 364/95 +f 352/10 351/18 361/102 365/60 +f 353/37 352/10 365/60 350/3 +g nixie_Cylinder.009_cathode-lighting +f 277/79 276/74 267/88 266/83 +f 276/74 275/1 268/98 267/88 +f 275/1 274/95 269/70 268/98 +f 274/95 273/101 270/76 269/70 +f 315/45 317/161 314/3 +f 314/3 318/162 313/60 +f 313/60 319/163 312/102 +f 312/79 320/164 311/74 +f 311/74 321/165 310/1 +f 310/1 322/166 309/95 +f 309/95 323/167 308/101 +f 307/10 324/168 306/18 +f 308/37 325/169 307/10 +f 306/78 316/170 315/45 +f 315/45 316/170 302/74 +f 302/74 316/170 301/79 +f 301/79 316/170 306/78 +f 314/3 317/161 303/1 +f 303/1 317/161 302/74 +f 302/74 317/161 315/45 +f 313/60 318/162 304/95 +f 304/95 318/162 303/1 +f 303/1 318/162 314/3 +f 304/95 319/163 313/60 +f 306/18 324/168 301/102 +f 301/102 324/168 305/60 +f 305/60 324/168 307/10 +f 307/10 325/169 305/60 +f 271/78 280/45 302/74 301/79 +f 280/45 279/3 303/1 302/74 +f 279/3 278/60 304/95 303/1 +f 278/60 277/102 266/101 304/95 +f 272/10 271/18 301/102 305/60 +f 273/37 272/10 305/60 270/3 +f 312/102 319/163 266/101 +f 266/101 319/163 304/95 +f 311/74 320/164 267/88 +f 267/88 320/164 266/83 +f 266/83 320/164 312/79 +f 310/1 321/165 268/98 +f 268/98 321/165 267/88 +f 267/88 321/165 311/74 +f 309/95 322/166 269/70 +f 269/70 322/166 268/98 +f 268/98 322/166 310/1 +f 308/101 323/167 270/76 +f 270/76 323/167 269/70 +f 269/70 323/167 309/95 +f 305/60 325/169 270/3 +f 270/3 325/169 308/37 +f 377/79 376/74 367/88 366/83 +f 376/74 375/1 368/98 367/88 +f 375/1 374/95 369/70 368/98 +f 374/95 373/101 370/76 369/70 +f 371/78 380/45 382/74 381/79 +f 380/45 379/3 383/1 382/74 +f 379/3 378/60 384/95 383/1 +f 378/60 377/102 366/101 384/95 +f 372/10 371/18 381/102 385/60 +f 373/37 372/10 385/60 370/3 +g nixie_Cylinder.009_glass +f 68/171 67/172 116/15 117/11 +f 131/20 66/173 81/174 130/25 +f 81/174 80/175 129/29 130/25 +f 80/175 79/176 128/33 129/29 +f 79/176 78/177 127/36 128/33 +f 78/177 77/178 126/7 127/36 +f 77/178 76/171 125/11 126/7 +f 76/171 75/172 124/15 125/11 +f 75/172 74/179 123/19 124/15 +f 74/173 73/174 122/25 123/20 +f 73/174 72/175 121/29 122/25 +f 72/175 71/176 120/33 121/29 +f 71/176 70/177 119/36 120/33 +f 70/177 69/178 118/7 119/36 +f 69/178 68/171 117/11 118/7 +f 67/172 66/179 131/19 116/15 +f 65/180 133/67 149/181 +f 64/182 134/45 150/183 +f 63/184 135/80 151/185 +f 62/186 136/3 152/187 +f 61/188 137/91 153/189 +f 60/190 138/60 154/191 +f 59/192 139/96 155/193 +f 58/194 140/78 156/195 +f 57/180 141/67 157/181 +f 56/182 142/45 158/183 +f 55/184 143/80 159/185 +f 54/186 144/3 160/187 +f 53/188 145/91 161/189 +f 51/192 147/96 162/193 +f 52/190 146/60 163/191 +f 98/196 82/194 164/197 +f 97/198 65/180 165/199 +f 96/200 64/182 166/201 +f 95/202 63/184 167/203 +f 94/204 62/186 168/205 +f 93/206 61/188 169/207 +f 92/208 60/190 170/209 +f 91/210 59/192 171/211 +f 90/196 58/194 172/197 +f 89/198 57/180 173/199 +f 88/200 56/182 174/201 +f 87/202 55/184 175/203 +f 86/204 54/186 176/205 +f 85/206 53/188 177/207 +f 83/210 51/192 178/211 +f 84/208 52/190 179/209 +f 66/173 98/196 180/212 +f 113/213 114/214 99/3 +f 112/215 113/213 99/3 +f 111/216 112/215 99/3 +f 110/217 111/216 99/3 +f 109/218 110/217 99/3 +f 108/219 109/218 99/3 +f 107/220 108/219 99/3 +f 106/221 107/220 99/3 +f 105/222 106/221 99/3 +f 104/223 105/222 99/3 +f 103/224 104/223 99/3 +f 102/225 103/224 99/3 +f 101/226 102/225 99/3 +f 100/227 101/226 99/3 +f 115/228 100/227 99/3 +f 81/174 97/198 181/229 +f 80/175 96/200 182/230 +f 79/176 95/202 183/231 +f 78/177 94/204 184/232 +f 77/178 93/206 185/233 +f 76/171 92/208 186/234 +f 75/172 91/210 187/235 +f 74/173 90/196 188/212 +f 73/174 89/198 189/229 +f 72/175 88/200 190/230 +f 71/176 87/202 191/231 +f 70/177 86/204 192/232 +f 69/178 85/206 193/233 +f 67/172 83/210 194/235 +f 68/171 84/208 195/234 +f 114/214 115/228 99/3 +f 146/236 101/226 100/227 147/237 +f 147/237 100/227 115/228 132/238 +f 145/239 102/225 101/226 146/236 +f 144/240 103/224 102/225 145/239 +f 143/241 104/223 103/224 144/240 +f 142/242 105/222 104/223 143/241 +f 141/243 106/221 105/222 142/242 +f 140/244 107/220 106/221 141/243 +f 139/245 108/219 107/220 140/244 +f 138/246 109/218 108/219 139/245 +f 137/247 110/217 109/218 138/246 +f 136/248 111/216 110/217 137/247 +f 135/249 112/215 111/216 136/248 +f 134/250 113/213 112/215 135/249 +f 133/251 114/214 113/213 134/250 +f 132/238 115/228 114/214 133/251 +f 82/194 132/78 148/195 +f 132/78 133/67 148/195 +f 133/67 65/180 148/195 +f 65/180 82/194 148/195 +f 133/67 134/45 149/181 +f 134/45 64/182 149/181 +f 64/182 65/180 149/181 +f 134/45 135/80 150/183 +f 135/80 63/184 150/183 +f 63/184 64/182 150/183 +f 135/80 136/3 151/185 +f 136/3 62/186 151/185 +f 62/186 63/184 151/185 +f 136/3 137/91 152/187 +f 137/91 61/188 152/187 +f 61/188 62/186 152/187 +f 137/91 138/60 153/189 +f 138/60 60/190 153/189 +f 60/190 61/188 153/189 +f 138/60 139/96 154/191 +f 139/96 59/192 154/191 +f 59/192 60/190 154/191 +f 139/96 140/102 155/193 +f 140/102 58/252 155/193 +f 58/252 59/192 155/193 +f 140/78 141/67 156/195 +f 141/67 57/180 156/195 +f 57/180 58/194 156/195 +f 141/67 142/45 157/181 +f 142/45 56/182 157/181 +f 56/182 57/180 157/181 +f 142/45 143/80 158/183 +f 143/80 55/184 158/183 +f 55/184 56/182 158/183 +f 143/80 144/3 159/185 +f 144/3 54/186 159/185 +f 54/186 55/184 159/185 +f 144/3 145/91 160/187 +f 145/91 53/188 160/187 +f 53/188 54/186 160/187 +f 145/91 146/60 161/189 +f 146/60 52/190 161/189 +f 52/190 53/188 161/189 +f 147/96 132/102 162/193 +f 132/102 82/252 162/193 +f 82/252 51/192 162/193 +f 146/60 147/96 163/191 +f 147/96 51/192 163/191 +f 51/192 52/190 163/191 +f 82/194 65/180 164/197 +f 65/180 97/198 164/197 +f 97/198 98/196 164/197 +f 65/180 64/182 165/199 +f 64/182 96/200 165/199 +f 96/200 97/198 165/199 +f 64/182 63/184 166/201 +f 63/184 95/202 166/201 +f 95/202 96/200 166/201 +f 63/184 62/186 167/203 +f 62/186 94/204 167/203 +f 94/204 95/202 167/203 +f 62/186 61/188 168/205 +f 61/188 93/206 168/205 +f 93/206 94/204 168/205 +f 61/188 60/190 169/207 +f 60/190 92/208 169/207 +f 92/208 93/206 169/207 +f 60/190 59/192 170/209 +f 59/192 91/210 170/209 +f 91/210 92/208 170/209 +f 59/192 58/252 171/211 +f 58/252 90/253 171/211 +f 90/253 91/210 171/211 +f 58/194 57/180 172/197 +f 57/180 89/198 172/197 +f 89/198 90/196 172/197 +f 57/180 56/182 173/199 +f 56/182 88/200 173/199 +f 88/200 89/198 173/199 +f 56/182 55/184 174/201 +f 55/184 87/202 174/201 +f 87/202 88/200 174/201 +f 55/184 54/186 175/203 +f 54/186 86/204 175/203 +f 86/204 87/202 175/203 +f 54/186 53/188 176/205 +f 53/188 85/206 176/205 +f 85/206 86/204 176/205 +f 53/188 52/190 177/207 +f 52/190 84/208 177/207 +f 84/208 85/206 177/207 +f 51/192 82/252 178/211 +f 82/252 98/253 178/211 +f 98/253 83/210 178/211 +f 52/190 51/192 179/209 +f 51/192 83/210 179/209 +f 83/210 84/208 179/209 +f 98/196 97/198 180/212 +f 97/198 81/174 180/212 +f 81/174 66/173 180/212 +f 97/198 96/200 181/229 +f 96/200 80/175 181/229 +f 80/175 81/174 181/229 +f 96/200 95/202 182/230 +f 95/202 79/176 182/230 +f 79/176 80/175 182/230 +f 95/202 94/204 183/231 +f 94/204 78/177 183/231 +f 78/177 79/176 183/231 +f 94/204 93/206 184/232 +f 93/206 77/178 184/232 +f 77/178 78/177 184/232 +f 93/206 92/208 185/233 +f 92/208 76/171 185/233 +f 76/171 77/178 185/233 +f 92/208 91/210 186/234 +f 91/210 75/172 186/234 +f 75/172 76/171 186/234 +f 91/210 90/253 187/235 +f 90/253 74/179 187/235 +f 74/179 75/172 187/235 +f 90/196 89/198 188/212 +f 89/198 73/174 188/212 +f 73/174 74/173 188/212 +f 89/198 88/200 189/229 +f 88/200 72/175 189/229 +f 72/175 73/174 189/229 +f 88/200 87/202 190/230 +f 87/202 71/176 190/230 +f 71/176 72/175 190/230 +f 87/202 86/204 191/231 +f 86/204 70/177 191/231 +f 70/177 71/176 191/231 +f 86/204 85/206 192/232 +f 85/206 69/178 192/232 +f 69/178 70/177 192/232 +f 85/206 84/208 193/233 +f 84/208 68/171 193/233 +f 68/171 69/178 193/233 +f 83/210 98/253 194/235 +f 98/253 66/179 194/235 +f 66/179 67/172 194/235 +f 84/208 83/210 195/234 +f 83/210 67/172 195/234 +f 67/172 68/171 195/234 diff --git a/nixie_tubes/models/nixie_tube.obj b/nixie_tubes/models/nixie_tube.obj new file mode 100644 index 0000000..e2d8f8d --- /dev/null +++ b/nixie_tubes/models/nixie_tube.obj @@ -0,0 +1,712 @@ +# Blender v2.73 (sub 0) OBJ File: 'nixie.blend' +# www.blender.org +o nixie_Cylinder.009 +v 0.000000 -0.500000 -0.349999 +v 0.133939 -0.500000 -0.323357 +v 0.247486 -0.500000 -0.247486 +v 0.323357 -0.500000 -0.133939 +v 0.349999 -0.500000 0.000000 +v 0.323357 -0.500000 0.133939 +v 0.247486 -0.500000 0.247486 +v 0.133939 -0.500000 0.323357 +v 0.000000 -0.500000 0.349999 +v -0.133939 -0.500000 0.323357 +v -0.247486 -0.500000 0.247486 +v -0.323357 -0.500000 0.133939 +v -0.349999 -0.500000 -0.000000 +v -0.323357 -0.500000 -0.133939 +v -0.247486 -0.500000 -0.247486 +v -0.133938 -0.500000 -0.323357 +v 0.000000 -0.227297 0.000000 +v 0.000000 -0.500000 0.000000 +v 0.133939 -0.250001 -0.323357 +v 0.247486 -0.250001 -0.247486 +v 0.323357 -0.250001 -0.133939 +v 0.349999 -0.250001 0.000000 +v 0.323357 -0.250001 0.133939 +v 0.247486 -0.250001 0.247486 +v 0.133939 -0.250001 0.323357 +v 0.000000 -0.250001 0.349999 +v -0.133939 -0.250001 0.323357 +v -0.247486 -0.250001 0.247486 +v -0.323357 -0.250001 0.133939 +v -0.349999 -0.250001 -0.000000 +v -0.323357 -0.250001 -0.133939 +v -0.247486 -0.250001 -0.247486 +v -0.133938 -0.250001 -0.323357 +v 0.000000 -0.250001 -0.349999 +v 0.000000 -0.227297 -0.326386 +v 0.124903 -0.227297 -0.301541 +v 0.230790 -0.227297 -0.230790 +v 0.301541 -0.227297 -0.124903 +v 0.326386 -0.227297 0.000000 +v 0.301541 -0.227297 0.124903 +v 0.230790 -0.227297 0.230790 +v 0.124903 -0.227297 0.301541 +v 0.000000 -0.227297 0.326386 +v -0.124902 -0.227297 0.301541 +v -0.230790 -0.227297 0.230790 +v -0.301541 -0.227297 0.124903 +v -0.326386 -0.227297 0.000000 +v -0.301541 -0.227297 -0.124903 +v -0.230790 -0.227297 -0.230790 +v -0.124902 -0.227297 -0.301541 +v -0.086006 0.464059 -0.207637 +v -0.158918 0.464059 -0.158919 +v -0.207637 0.464059 -0.086006 +v -0.224745 0.464059 0.000000 +v -0.207637 0.464059 0.086006 +v -0.158918 0.464059 0.158919 +v -0.086006 0.464059 0.207637 +v 0.000000 0.464059 0.224745 +v 0.086006 0.464059 0.207637 +v 0.158919 0.464059 0.158918 +v 0.207637 0.464059 0.086006 +v 0.224745 0.464059 0.000000 +v 0.207637 0.464059 -0.086006 +v 0.158919 0.464059 -0.158918 +v 0.086006 0.464059 -0.207637 +v 0.000000 0.287854 -0.326386 +v -0.124902 0.287854 -0.301541 +v -0.230790 0.287854 -0.230790 +v -0.301541 0.287854 -0.124903 +v -0.326386 0.287854 0.000000 +v -0.301541 0.287854 0.124903 +v -0.230790 0.287854 0.230790 +v -0.124902 0.287854 0.301541 +v 0.000000 0.287854 0.326386 +v 0.124903 0.287854 0.301541 +v 0.230790 0.287854 0.230790 +v 0.301541 0.287854 0.124903 +v 0.326386 0.287854 0.000000 +v 0.301541 0.287854 -0.124903 +v 0.230790 0.287854 -0.230790 +v 0.124903 0.287854 -0.301541 +v 0.000000 0.464059 -0.224745 +v -0.116015 0.375956 -0.280086 +v -0.214368 0.375956 -0.214368 +v -0.280086 0.375956 -0.116015 +v -0.303163 0.375956 0.000000 +v -0.280086 0.375956 0.116015 +v -0.214368 0.375956 0.214368 +v -0.116015 0.375956 0.280086 +v 0.000000 0.375956 0.303163 +v 0.116015 0.375956 0.280086 +v 0.214368 0.375956 0.214368 +v 0.280086 0.375956 0.116015 +v 0.303163 0.375956 0.000000 +v 0.280086 0.375956 -0.116015 +v 0.214368 0.375956 -0.214368 +v 0.116015 0.375956 -0.280086 +v 0.000000 0.375956 -0.303163 +v 0.000000 0.499996 0.000000 +v -0.017349 0.499996 -0.041885 +v -0.032057 0.499996 -0.032057 +v -0.041885 0.499996 -0.017349 +v -0.045336 0.499996 0.000000 +v -0.041885 0.499996 0.017349 +v -0.032057 0.499996 0.032057 +v -0.017349 0.499996 0.041885 +v 0.000000 0.499996 0.045336 +v 0.017349 0.499996 0.041885 +v 0.032057 0.499996 0.032057 +v 0.041885 0.499996 0.017349 +v 0.045336 0.499996 0.000000 +v 0.041885 0.499996 -0.017349 +v 0.032057 0.499996 -0.032057 +v 0.017349 0.499996 -0.041885 +v 0.000000 0.499996 -0.045336 +v -0.124902 -0.227297 -0.301541 +v -0.230790 -0.227297 -0.230790 +v -0.301541 -0.227297 -0.124903 +v -0.326386 -0.227297 0.000000 +v -0.301541 -0.227297 0.124903 +v -0.230790 -0.227297 0.230790 +v -0.124902 -0.227297 0.301541 +v 0.000000 -0.227297 0.326386 +v 0.124903 -0.227297 0.301541 +v 0.230790 -0.227297 0.230790 +v 0.301541 -0.227297 0.124903 +v 0.326386 -0.227297 0.000000 +v 0.301541 -0.227297 -0.124903 +v 0.230790 -0.227297 -0.230790 +v 0.124903 -0.227297 -0.301541 +v 0.000000 -0.227297 -0.326386 +v 0.000000 0.489328 -0.147416 +v 0.056414 0.489328 -0.136194 +v 0.104239 0.489328 -0.104239 +v 0.136195 0.489328 -0.056414 +v 0.147416 0.489328 0.000000 +v 0.136195 0.489328 0.056414 +v 0.104239 0.489328 0.104239 +v 0.056414 0.489328 0.136194 +v 0.000000 0.489328 0.147416 +v -0.056414 0.489328 0.136195 +v -0.104239 0.489328 0.104239 +v -0.136194 0.489328 0.056414 +v -0.147416 0.489328 0.000000 +v -0.136194 0.489328 -0.056414 +v -0.104239 0.489328 -0.104239 +v -0.056414 0.489328 -0.136195 +v -0.224443 -0.231638 -0.000969 +v -0.224444 0.401803 -0.000969 +v 0.224447 -0.231638 -0.000969 +v 0.224447 0.401804 -0.000969 +v 0.000002 -0.231638 -0.123652 +v 0.000001 0.401804 -0.123652 +v -0.182487 -0.231638 -0.073743 +v 0.182490 0.401804 -0.073743 +v 0.182490 -0.231638 -0.073743 +v -0.182487 0.401804 -0.073743 +v -0.229076 -0.231638 -0.015446 +v 0.229079 0.401804 -0.015446 +v 0.124738 -0.231638 -0.102105 +v -0.124735 0.401804 -0.102105 +v -0.124735 -0.231638 -0.102105 +v 0.124738 0.401804 -0.102105 +v 0.229080 -0.231638 -0.015446 +v -0.229076 0.401803 -0.015446 +v 0.249582 0.401804 0.050941 +v 0.249582 -0.231638 0.050941 +v -0.249579 0.401803 0.050941 +v -0.249579 -0.231638 0.050941 +v 0.000002 -0.231638 -0.007523 +v 0.000001 0.401803 -0.007523 +v 0.036330 0.475456 -0.182642 +v 0.103459 0.475456 -0.154837 +v 0.154837 0.475456 -0.103459 +v 0.182643 0.475456 -0.036330 +v 0.182643 0.475456 0.036330 +v 0.154837 0.475456 0.103459 +v 0.103459 0.475456 0.154837 +v 0.036330 0.475456 0.182642 +v -0.036330 0.475456 0.182642 +v -0.103459 0.475456 0.154837 +v -0.154837 0.475456 0.103459 +v -0.182642 0.475456 0.036330 +v -0.182642 0.475456 -0.036330 +v -0.154837 0.475456 -0.103459 +v -0.036330 0.475456 -0.182642 +v -0.103459 0.475456 -0.154837 +v 0.051025 0.416957 -0.256519 +v 0.145306 0.416957 -0.217466 +v 0.217466 0.416957 -0.145306 +v 0.256519 0.416957 -0.051025 +v 0.256519 0.416957 0.051025 +v 0.217466 0.416957 0.145306 +v 0.145306 0.416957 0.217466 +v 0.051025 0.416957 0.256519 +v -0.051025 0.416957 0.256519 +v -0.145306 0.416957 0.217466 +v -0.217466 0.416957 0.145306 +v -0.256519 0.416957 0.051025 +v -0.256519 0.416957 -0.051025 +v -0.217466 0.416957 -0.145306 +v -0.051025 0.416957 -0.256519 +v -0.145306 0.416957 -0.217466 +v 0.060277 0.330972 -0.303030 +v 0.171653 0.330972 -0.256897 +v 0.256897 0.330972 -0.171653 +v 0.303030 0.330972 -0.060276 +v 0.303030 0.330972 0.060277 +v 0.256897 0.330972 0.171653 +v 0.171653 0.330972 0.256897 +v 0.060277 0.330972 0.303030 +v -0.060276 0.330972 0.303031 +v -0.171653 0.330972 0.256897 +v -0.256897 0.330972 0.171653 +v -0.303030 0.330972 0.060277 +v -0.303030 0.330972 -0.060277 +v -0.256897 0.330972 -0.171653 +v -0.060276 0.330972 -0.303031 +v -0.171653 0.330972 -0.256897 +vt 0.500000 0.750000 +vt 0.595671 0.730970 +vt 0.500000 0.500000 +vt 0.437500 0.000000 +vt 0.437500 0.250000 +vt 0.375000 0.250000 +vt 0.375000 0.000000 +vt 0.312500 0.250000 +vt 0.312500 0.000000 +vt 0.250000 0.250000 +vt 0.250000 0.000000 +vt 0.187500 0.250000 +vt 0.187500 0.000000 +vt 0.125000 0.250000 +vt 0.125000 0.000000 +vt 0.062500 0.250000 +vt 0.062500 0.000000 +vt 0.000000 0.250000 +vt 0.000000 0.000000 +vt 1.000000 0.000000 +vt 1.000000 0.250000 +vt 0.937500 0.250000 +vt 0.937500 0.000000 +vt 0.875000 0.250000 +vt 0.875000 0.000000 +vt 0.812500 0.250000 +vt 0.812500 0.000000 +vt 0.750000 0.250000 +vt 0.750000 0.000000 +vt 0.687500 0.250000 +vt 0.687500 0.000000 +vt 0.625000 0.250000 +vt 0.625000 0.000000 +vt 0.562500 0.250000 +vt 0.562500 0.000000 +vt 0.500000 0.000000 +vt 0.500000 0.250000 +vt 0.676777 0.676777 +vt 0.500000 0.733134 +vt 0.589216 0.715388 +vt 0.664850 0.664850 +vt 0.715388 0.589216 +vt 0.730970 0.595671 +vt 0.733134 0.500000 +vt 0.750000 0.500000 +vt 0.715388 0.410784 +vt 0.730970 0.404329 +vt 0.664850 0.335149 +vt 0.676777 0.323223 +vt 0.589216 0.284612 +vt 0.595671 0.269030 +vt 0.500000 0.266866 +vt 0.410784 0.284612 +vt 0.404329 0.269030 +vt 0.335150 0.335149 +vt 0.323223 0.323223 +vt 0.284612 0.410784 +vt 0.269030 0.404329 +vt 0.266866 0.500000 +vt 0.250000 0.500000 +vt 0.284612 0.589217 +vt 0.269030 0.595671 +vt 0.335150 0.664851 +vt 0.323223 0.676777 +vt 0.404329 0.730970 +vt 0.410784 0.715388 +vt 0.000000 1.000000 +vt 1.000000 1.000000 +vt 0.500000 1.000000 +vt 0.093750 1.000000 +vt 0.093750 0.000000 +vt 0.906250 0.000000 +vt 0.906250 1.000000 +vt 0.718750 0.000000 +vt 0.718750 1.000000 +vt 0.812500 1.000000 +vt 0.312500 1.000000 +vt 0.218750 1.000000 +vt 0.218750 0.000000 +vt 0.125000 1.000000 +vt 0.250000 0.320312 +vt 0.125000 0.320312 +vt 1.000000 0.320312 +vt 0.875000 0.320312 +vt 0.750000 0.320312 +vt 0.625000 0.320312 +vt 0.500000 0.320312 +vt 0.375000 0.320312 +vt 0.000000 0.320312 +vt 0.875000 0.445312 +vt 0.875000 0.500000 +vt 0.812500 0.469977 +vt 0.750000 0.445312 +vt 0.687500 0.469977 +vt 0.625000 0.445312 +vt 0.625000 0.500000 +vt 0.562500 0.469977 +vt 0.500000 0.445312 +vt 0.437500 0.469977 +vt 0.375000 0.445312 +vt 0.375000 0.500000 +vt 0.312500 0.469977 +vt 0.250000 0.445312 +vt 0.187500 0.469977 +vt 0.125000 0.445312 +vt 0.125000 0.500000 +vt 0.062500 0.469977 +vt 1.000000 0.445312 +vt 1.000000 0.500000 +vt 0.937500 0.469977 +vt 1.000000 0.375000 +vt 0.937500 0.407722 +vt 0.875000 0.375000 +vt 0.812500 0.407722 +vt 0.750000 0.375000 +vt 0.687500 0.407722 +vt 0.625000 0.375000 +vt 0.562500 0.407722 +vt 0.500000 0.375000 +vt 0.437500 0.407722 +vt 0.375000 0.375000 +vt 0.312500 0.407722 +vt 0.250000 0.375000 +vt 0.187500 0.407722 +vt 0.125000 0.375000 +vt 0.062500 0.407722 +vt 0.937500 0.347077 +vt 0.537472 0.537472 +vt 0.520280 0.548959 +vt 0.548959 0.520280 +vt 0.552993 0.500000 +vt 0.548959 0.479721 +vt 0.537472 0.462529 +vt 0.520280 0.451041 +vt 0.500000 0.447008 +vt 0.479721 0.451041 +vt 0.462529 0.462529 +vt 0.451041 0.479721 +vt 0.447007 0.500000 +vt 0.451041 0.520280 +vt 0.462529 0.537472 +vt 0.479721 0.548959 +vt 0.500000 0.552993 +vt 0.812500 0.347077 +vt 0.687500 0.347077 +vt 0.562500 0.347077 +vt 0.437500 0.347077 +vt 0.312500 0.347077 +vt 0.187500 0.347077 +vt 0.062500 0.347077 +vt 0.378156 0.621844 +vt 0.434059 0.659197 +vt 0.500000 0.672314 +vt 0.340803 0.565942 +vt 0.327687 0.500000 +vt 0.340803 0.434059 +vt 0.378156 0.378156 +vt 0.434059 0.340803 +vt 0.500000 0.327687 +vt 0.565942 0.340803 +vt 0.621844 0.378156 +vt 0.659197 0.434059 +vt 0.672314 0.500000 +vt 0.659197 0.565942 +vt 0.621844 0.621844 +vt 0.565942 0.659197 +vt 0.000000 0.500000 +vt 0.000000 0.445312 +vt 0.000000 0.375000 +g nixie_Cylinder.009_base +s 1 +f 1/1 2/2 18/3 +f 1/4 34/5 19/6 2/7 +f 2/7 19/6 20/8 3/9 +f 3/9 20/8 21/10 4/11 +f 4/11 21/10 22/12 5/13 +f 5/13 22/12 23/14 6/15 +f 6/15 23/14 24/16 7/17 +f 7/17 24/16 25/18 8/19 +f 8/20 25/21 26/22 9/23 +f 9/23 26/22 27/24 10/25 +f 10/25 27/24 28/26 11/27 +f 11/27 28/26 29/28 12/29 +f 12/29 29/28 30/30 13/31 +f 13/31 30/30 31/32 14/33 +f 14/33 31/32 32/34 15/35 +f 16/36 33/37 34/5 1/4 +f 15/35 32/34 33/37 16/36 +f 2/2 3/38 18/3 +f 34/1 35/39 36/40 19/2 +f 19/2 36/40 37/41 20/38 +f 20/38 37/41 38/42 21/43 +f 21/43 38/42 39/44 22/45 +f 22/45 39/44 40/46 23/47 +f 23/47 40/46 41/48 24/49 +f 24/49 41/48 42/50 25/51 +f 25/51 42/50 43/52 26/37 +f 26/37 43/52 44/53 27/54 +f 27/54 44/53 45/55 28/56 +f 28/56 45/55 46/57 29/58 +f 29/58 46/57 47/59 30/60 +f 30/60 47/59 48/61 31/62 +f 31/62 48/61 49/63 32/64 +f 33/65 50/66 35/39 34/1 +f 32/64 49/63 50/66 33/65 +f 3/38 4/43 18/3 +f 4/43 5/45 18/3 +f 5/45 6/47 18/3 +f 6/47 7/49 18/3 +f 7/49 8/51 18/3 +f 8/51 9/37 18/3 +f 9/37 10/54 18/3 +f 10/54 11/56 18/3 +f 11/56 12/58 18/3 +f 12/58 13/60 18/3 +f 13/60 14/62 18/3 +f 14/62 15/64 18/3 +f 15/64 16/65 18/3 +f 16/65 1/1 18/3 +f 50/66 35/39 17/3 +f 35/39 36/40 17/3 +f 36/40 37/41 17/3 +f 37/41 38/42 17/3 +f 38/42 39/44 17/3 +f 39/44 40/46 17/3 +f 40/46 41/48 17/3 +f 41/48 42/50 17/3 +f 42/50 43/52 17/3 +f 43/52 44/53 17/3 +f 44/53 45/55 17/3 +f 45/55 46/57 17/3 +f 46/57 47/59 17/3 +f 47/59 48/61 17/3 +f 48/61 49/63 17/3 +f 49/63 50/66 17/3 +g nixie_Cylinder.009_backing +f 169/67 168/68 166/20 167/19 +g nixie_Cylinder.009_cathode +f 170/36 171/69 151/70 150/71 +f 148/72 149/73 171/69 170/36 +g nixie_Cylinder.009_anode +f 162/74 161/75 153/69 152/36 +f 158/72 165/73 157/76 154/27 +f 160/9 163/77 155/78 156/79 +f 152/36 153/69 163/77 160/9 +f 154/27 157/76 161/75 162/74 +f 156/79 155/78 159/80 164/15 +f 164/15 159/80 166/67 167/19 +f 169/20 168/68 165/73 158/72 +g nixie_Cylinder.009_glass +f 68/81 67/82 116/15 117/11 +f 131/20 66/83 81/84 130/25 +f 81/84 80/85 129/29 130/25 +f 80/85 79/86 128/33 129/29 +f 79/86 78/87 127/36 128/33 +f 78/87 77/88 126/7 127/36 +f 77/88 76/81 125/11 126/7 +f 76/81 75/82 124/15 125/11 +f 75/82 74/89 123/19 124/15 +f 74/83 73/84 122/25 123/20 +f 73/84 72/85 121/29 122/25 +f 72/85 71/86 120/33 121/29 +f 71/86 70/87 119/36 120/33 +f 70/87 69/88 118/7 119/36 +f 69/88 68/81 117/11 118/7 +f 67/82 66/89 131/19 116/15 +f 65/90 133/91 173/92 +f 64/93 134/45 174/94 +f 63/95 135/96 175/97 +f 62/98 136/3 176/99 +f 61/100 137/101 177/102 +f 60/103 138/60 178/104 +f 59/105 139/106 179/107 +f 58/108 140/109 180/110 +f 57/90 141/91 181/92 +f 56/93 142/45 182/94 +f 55/95 143/96 183/97 +f 54/98 144/3 184/99 +f 53/100 145/101 185/102 +f 51/105 147/106 186/107 +f 52/103 146/60 187/104 +f 98/111 82/108 188/112 +f 97/113 65/90 189/114 +f 96/115 64/93 190/116 +f 95/117 63/95 191/118 +f 94/119 62/98 192/120 +f 93/121 61/100 193/122 +f 92/123 60/103 194/124 +f 91/125 59/105 195/126 +f 90/111 58/108 196/112 +f 89/113 57/90 197/114 +f 88/115 56/93 198/116 +f 87/117 55/95 199/118 +f 86/119 54/98 200/120 +f 85/121 53/100 201/122 +f 83/125 51/105 202/126 +f 84/123 52/103 203/124 +f 66/83 98/111 204/127 +f 113/128 114/129 99/3 +f 112/130 113/128 99/3 +f 111/131 112/130 99/3 +f 110/132 111/131 99/3 +f 109/133 110/132 99/3 +f 108/134 109/133 99/3 +f 107/135 108/134 99/3 +f 106/136 107/135 99/3 +f 105/137 106/136 99/3 +f 104/138 105/137 99/3 +f 103/139 104/138 99/3 +f 102/140 103/139 99/3 +f 101/141 102/140 99/3 +f 100/142 101/141 99/3 +f 115/143 100/142 99/3 +f 81/84 97/113 205/144 +f 80/85 96/115 206/145 +f 79/86 95/117 207/146 +f 78/87 94/119 208/147 +f 77/88 93/121 209/148 +f 76/81 92/123 210/149 +f 75/82 91/125 211/150 +f 74/83 90/111 212/127 +f 73/84 89/113 213/144 +f 72/85 88/115 214/145 +f 71/86 87/117 215/146 +f 70/87 86/119 216/147 +f 69/88 85/121 217/148 +f 67/82 83/125 218/150 +f 68/81 84/123 219/149 +f 114/129 115/143 99/3 +f 146/151 101/141 100/142 147/152 +f 147/152 100/142 115/143 132/153 +f 145/154 102/140 101/141 146/151 +f 144/155 103/139 102/140 145/154 +f 143/156 104/138 103/139 144/155 +f 142/157 105/137 104/138 143/156 +f 141/158 106/136 105/137 142/157 +f 140/159 107/135 106/136 141/158 +f 139/160 108/134 107/135 140/159 +f 138/161 109/133 108/134 139/160 +f 137/162 110/132 109/133 138/161 +f 136/163 111/131 110/132 137/162 +f 135/164 112/130 111/131 136/163 +f 134/165 113/128 112/130 135/164 +f 133/166 114/129 113/128 134/165 +f 132/153 115/143 114/129 133/166 +f 82/108 132/109 172/110 +f 132/109 133/91 172/110 +f 133/91 65/90 172/110 +f 65/90 82/108 172/110 +f 133/91 134/45 173/92 +f 134/45 64/93 173/92 +f 64/93 65/90 173/92 +f 134/45 135/96 174/94 +f 135/96 63/95 174/94 +f 63/95 64/93 174/94 +f 135/96 136/3 175/97 +f 136/3 62/98 175/97 +f 62/98 63/95 175/97 +f 136/3 137/101 176/99 +f 137/101 61/100 176/99 +f 61/100 62/98 176/99 +f 137/101 138/60 177/102 +f 138/60 60/103 177/102 +f 60/103 61/100 177/102 +f 138/60 139/106 178/104 +f 139/106 59/105 178/104 +f 59/105 60/103 178/104 +f 139/106 140/167 179/107 +f 140/167 58/168 179/107 +f 58/168 59/105 179/107 +f 140/109 141/91 180/110 +f 141/91 57/90 180/110 +f 57/90 58/108 180/110 +f 141/91 142/45 181/92 +f 142/45 56/93 181/92 +f 56/93 57/90 181/92 +f 142/45 143/96 182/94 +f 143/96 55/95 182/94 +f 55/95 56/93 182/94 +f 143/96 144/3 183/97 +f 144/3 54/98 183/97 +f 54/98 55/95 183/97 +f 144/3 145/101 184/99 +f 145/101 53/100 184/99 +f 53/100 54/98 184/99 +f 145/101 146/60 185/102 +f 146/60 52/103 185/102 +f 52/103 53/100 185/102 +f 147/106 132/167 186/107 +f 132/167 82/168 186/107 +f 82/168 51/105 186/107 +f 146/60 147/106 187/104 +f 147/106 51/105 187/104 +f 51/105 52/103 187/104 +f 82/108 65/90 188/112 +f 65/90 97/113 188/112 +f 97/113 98/111 188/112 +f 65/90 64/93 189/114 +f 64/93 96/115 189/114 +f 96/115 97/113 189/114 +f 64/93 63/95 190/116 +f 63/95 95/117 190/116 +f 95/117 96/115 190/116 +f 63/95 62/98 191/118 +f 62/98 94/119 191/118 +f 94/119 95/117 191/118 +f 62/98 61/100 192/120 +f 61/100 93/121 192/120 +f 93/121 94/119 192/120 +f 61/100 60/103 193/122 +f 60/103 92/123 193/122 +f 92/123 93/121 193/122 +f 60/103 59/105 194/124 +f 59/105 91/125 194/124 +f 91/125 92/123 194/124 +f 59/105 58/168 195/126 +f 58/168 90/169 195/126 +f 90/169 91/125 195/126 +f 58/108 57/90 196/112 +f 57/90 89/113 196/112 +f 89/113 90/111 196/112 +f 57/90 56/93 197/114 +f 56/93 88/115 197/114 +f 88/115 89/113 197/114 +f 56/93 55/95 198/116 +f 55/95 87/117 198/116 +f 87/117 88/115 198/116 +f 55/95 54/98 199/118 +f 54/98 86/119 199/118 +f 86/119 87/117 199/118 +f 54/98 53/100 200/120 +f 53/100 85/121 200/120 +f 85/121 86/119 200/120 +f 53/100 52/103 201/122 +f 52/103 84/123 201/122 +f 84/123 85/121 201/122 +f 51/105 82/168 202/126 +f 82/168 98/169 202/126 +f 98/169 83/125 202/126 +f 52/103 51/105 203/124 +f 51/105 83/125 203/124 +f 83/125 84/123 203/124 +f 98/111 97/113 204/127 +f 97/113 81/84 204/127 +f 81/84 66/83 204/127 +f 97/113 96/115 205/144 +f 96/115 80/85 205/144 +f 80/85 81/84 205/144 +f 96/115 95/117 206/145 +f 95/117 79/86 206/145 +f 79/86 80/85 206/145 +f 95/117 94/119 207/146 +f 94/119 78/87 207/146 +f 78/87 79/86 207/146 +f 94/119 93/121 208/147 +f 93/121 77/88 208/147 +f 77/88 78/87 208/147 +f 93/121 92/123 209/148 +f 92/123 76/81 209/148 +f 76/81 77/88 209/148 +f 92/123 91/125 210/149 +f 91/125 75/82 210/149 +f 75/82 76/81 210/149 +f 91/125 90/169 211/150 +f 90/169 74/89 211/150 +f 74/89 75/82 211/150 +f 90/111 89/113 212/127 +f 89/113 73/84 212/127 +f 73/84 74/83 212/127 +f 89/113 88/115 213/144 +f 88/115 72/85 213/144 +f 72/85 73/84 213/144 +f 88/115 87/117 214/145 +f 87/117 71/86 214/145 +f 71/86 72/85 214/145 +f 87/117 86/119 215/146 +f 86/119 70/87 215/146 +f 70/87 71/86 215/146 +f 86/119 85/121 216/147 +f 85/121 69/88 216/147 +f 69/88 70/87 216/147 +f 85/121 84/123 217/148 +f 84/123 68/81 217/148 +f 68/81 69/88 217/148 +f 83/125 98/169 218/150 +f 98/169 66/89 218/150 +f 66/89 67/82 218/150 +f 84/123 83/125 219/149 +f 83/125 67/82 219/149 +f 67/82 68/81 219/149 diff --git a/nixie_tubes/screenshot.png b/nixie_tubes/screenshot.png new file mode 100644 index 0000000..38523ac Binary files /dev/null and b/nixie_tubes/screenshot.png differ diff --git a/nixie_tubes/textures/decatron_anode.png b/nixie_tubes/textures/decatron_anode.png new file mode 100644 index 0000000..98ad8c7 Binary files /dev/null and b/nixie_tubes/textures/decatron_anode.png differ diff --git a/nixie_tubes/textures/decatron_cathode_0.png b/nixie_tubes/textures/decatron_cathode_0.png new file mode 100644 index 0000000..be1fff0 Binary files /dev/null and b/nixie_tubes/textures/decatron_cathode_0.png differ diff --git a/nixie_tubes/textures/decatron_cathode_1.png b/nixie_tubes/textures/decatron_cathode_1.png new file mode 100644 index 0000000..4171fc3 Binary files /dev/null and b/nixie_tubes/textures/decatron_cathode_1.png differ diff --git a/nixie_tubes/textures/decatron_cathode_2.png b/nixie_tubes/textures/decatron_cathode_2.png new file mode 100644 index 0000000..ef8ca2a Binary files /dev/null and b/nixie_tubes/textures/decatron_cathode_2.png differ diff --git a/nixie_tubes/textures/decatron_cathode_3.png b/nixie_tubes/textures/decatron_cathode_3.png new file mode 100644 index 0000000..a3509df Binary files /dev/null and b/nixie_tubes/textures/decatron_cathode_3.png differ diff --git a/nixie_tubes/textures/decatron_cathode_4.png b/nixie_tubes/textures/decatron_cathode_4.png new file mode 100644 index 0000000..0f38c4e Binary files /dev/null and b/nixie_tubes/textures/decatron_cathode_4.png differ diff --git a/nixie_tubes/textures/decatron_cathode_5.png b/nixie_tubes/textures/decatron_cathode_5.png new file mode 100644 index 0000000..60a8717 Binary files /dev/null and b/nixie_tubes/textures/decatron_cathode_5.png differ diff --git a/nixie_tubes/textures/decatron_cathode_6.png b/nixie_tubes/textures/decatron_cathode_6.png new file mode 100644 index 0000000..8fb1bef Binary files /dev/null and b/nixie_tubes/textures/decatron_cathode_6.png differ diff --git a/nixie_tubes/textures/decatron_cathode_7.png b/nixie_tubes/textures/decatron_cathode_7.png new file mode 100644 index 0000000..5925788 Binary files /dev/null and b/nixie_tubes/textures/decatron_cathode_7.png differ diff --git a/nixie_tubes/textures/decatron_cathode_8.png b/nixie_tubes/textures/decatron_cathode_8.png new file mode 100644 index 0000000..c3009ca Binary files /dev/null and b/nixie_tubes/textures/decatron_cathode_8.png differ diff --git a/nixie_tubes/textures/decatron_cathode_9.png b/nixie_tubes/textures/decatron_cathode_9.png new file mode 100644 index 0000000..dd19aa5 Binary files /dev/null and b/nixie_tubes/textures/decatron_cathode_9.png differ diff --git a/nixie_tubes/textures/decatron_cathode_pins.png b/nixie_tubes/textures/decatron_cathode_pins.png new file mode 100644 index 0000000..d7a9d25 Binary files /dev/null and b/nixie_tubes/textures/decatron_cathode_pins.png differ diff --git a/nixie_tubes/textures/decatron_internals.png b/nixie_tubes/textures/decatron_internals.png new file mode 100644 index 0000000..170eea6 Binary files /dev/null and b/nixie_tubes/textures/decatron_internals.png differ diff --git a/nixie_tubes/textures/nixie_tube_alnum_seg_1.png b/nixie_tubes/textures/nixie_tube_alnum_seg_1.png new file mode 100644 index 0000000..3cc70b0 Binary files /dev/null and b/nixie_tubes/textures/nixie_tube_alnum_seg_1.png differ diff --git a/nixie_tubes/textures/nixie_tube_alnum_seg_10.png b/nixie_tubes/textures/nixie_tube_alnum_seg_10.png new file mode 100644 index 0000000..8b01a26 Binary files /dev/null and b/nixie_tubes/textures/nixie_tube_alnum_seg_10.png differ diff --git a/nixie_tubes/textures/nixie_tube_alnum_seg_11.png b/nixie_tubes/textures/nixie_tube_alnum_seg_11.png new file mode 100644 index 0000000..0664dcb Binary files /dev/null and b/nixie_tubes/textures/nixie_tube_alnum_seg_11.png differ diff --git a/nixie_tubes/textures/nixie_tube_alnum_seg_12.png b/nixie_tubes/textures/nixie_tube_alnum_seg_12.png new file mode 100644 index 0000000..4739711 Binary files /dev/null and b/nixie_tubes/textures/nixie_tube_alnum_seg_12.png differ diff --git a/nixie_tubes/textures/nixie_tube_alnum_seg_13.png b/nixie_tubes/textures/nixie_tube_alnum_seg_13.png new file mode 100644 index 0000000..92d4980 Binary files /dev/null and b/nixie_tubes/textures/nixie_tube_alnum_seg_13.png differ diff --git a/nixie_tubes/textures/nixie_tube_alnum_seg_14.png b/nixie_tubes/textures/nixie_tube_alnum_seg_14.png new file mode 100644 index 0000000..8cfccb1 Binary files /dev/null and b/nixie_tubes/textures/nixie_tube_alnum_seg_14.png differ diff --git a/nixie_tubes/textures/nixie_tube_alnum_seg_15.png b/nixie_tubes/textures/nixie_tube_alnum_seg_15.png new file mode 100644 index 0000000..61aeead Binary files /dev/null and b/nixie_tubes/textures/nixie_tube_alnum_seg_15.png differ diff --git a/nixie_tubes/textures/nixie_tube_alnum_seg_2.png b/nixie_tubes/textures/nixie_tube_alnum_seg_2.png new file mode 100644 index 0000000..34bd0a5 Binary files /dev/null and b/nixie_tubes/textures/nixie_tube_alnum_seg_2.png differ diff --git a/nixie_tubes/textures/nixie_tube_alnum_seg_3.png b/nixie_tubes/textures/nixie_tube_alnum_seg_3.png new file mode 100644 index 0000000..94f95f2 Binary files /dev/null and b/nixie_tubes/textures/nixie_tube_alnum_seg_3.png differ diff --git a/nixie_tubes/textures/nixie_tube_alnum_seg_4.png b/nixie_tubes/textures/nixie_tube_alnum_seg_4.png new file mode 100644 index 0000000..5b435d7 Binary files /dev/null and b/nixie_tubes/textures/nixie_tube_alnum_seg_4.png differ diff --git a/nixie_tubes/textures/nixie_tube_alnum_seg_5.png b/nixie_tubes/textures/nixie_tube_alnum_seg_5.png new file mode 100644 index 0000000..3abdd45 Binary files /dev/null and b/nixie_tubes/textures/nixie_tube_alnum_seg_5.png differ diff --git a/nixie_tubes/textures/nixie_tube_alnum_seg_6.png b/nixie_tubes/textures/nixie_tube_alnum_seg_6.png new file mode 100644 index 0000000..8d1f0a8 Binary files /dev/null and b/nixie_tubes/textures/nixie_tube_alnum_seg_6.png differ diff --git a/nixie_tubes/textures/nixie_tube_alnum_seg_7.png b/nixie_tubes/textures/nixie_tube_alnum_seg_7.png new file mode 100644 index 0000000..9bcdcb1 Binary files /dev/null and b/nixie_tubes/textures/nixie_tube_alnum_seg_7.png differ diff --git a/nixie_tubes/textures/nixie_tube_alnum_seg_8.png b/nixie_tubes/textures/nixie_tube_alnum_seg_8.png new file mode 100644 index 0000000..7668d42 Binary files /dev/null and b/nixie_tubes/textures/nixie_tube_alnum_seg_8.png differ diff --git a/nixie_tubes/textures/nixie_tube_alnum_seg_9.png b/nixie_tubes/textures/nixie_tube_alnum_seg_9.png new file mode 100644 index 0000000..30bf7db Binary files /dev/null and b/nixie_tubes/textures/nixie_tube_alnum_seg_9.png differ diff --git a/nixie_tubes/textures/nixie_tube_alnum_wires.png b/nixie_tubes/textures/nixie_tube_alnum_wires.png new file mode 100644 index 0000000..f993a8a Binary files /dev/null and b/nixie_tubes/textures/nixie_tube_alnum_wires.png differ diff --git a/nixie_tubes/textures/nixie_tube_anode.png b/nixie_tubes/textures/nixie_tube_anode.png new file mode 100644 index 0000000..4d7329e Binary files /dev/null and b/nixie_tubes/textures/nixie_tube_anode.png differ diff --git a/nixie_tubes/textures/nixie_tube_backing.png b/nixie_tubes/textures/nixie_tube_backing.png new file mode 100644 index 0000000..23874db Binary files /dev/null and b/nixie_tubes/textures/nixie_tube_backing.png differ diff --git a/nixie_tubes/textures/nixie_tube_base.png b/nixie_tubes/textures/nixie_tube_base.png new file mode 100644 index 0000000..9f6b13f Binary files /dev/null and b/nixie_tubes/textures/nixie_tube_base.png differ diff --git a/nixie_tubes/textures/nixie_tube_blank.png b/nixie_tubes/textures/nixie_tube_blank.png new file mode 100644 index 0000000..37c28e7 Binary files /dev/null and b/nixie_tubes/textures/nixie_tube_blank.png differ diff --git a/nixie_tubes/textures/nixie_tube_cathode_0.png b/nixie_tubes/textures/nixie_tube_cathode_0.png new file mode 100644 index 0000000..3b9032d Binary files /dev/null and b/nixie_tubes/textures/nixie_tube_cathode_0.png differ diff --git a/nixie_tubes/textures/nixie_tube_cathode_1.png b/nixie_tubes/textures/nixie_tube_cathode_1.png new file mode 100644 index 0000000..5a12a64 Binary files /dev/null and b/nixie_tubes/textures/nixie_tube_cathode_1.png differ diff --git a/nixie_tubes/textures/nixie_tube_cathode_2.png b/nixie_tubes/textures/nixie_tube_cathode_2.png new file mode 100644 index 0000000..d8cba25 Binary files /dev/null and b/nixie_tubes/textures/nixie_tube_cathode_2.png differ diff --git a/nixie_tubes/textures/nixie_tube_cathode_3.png b/nixie_tubes/textures/nixie_tube_cathode_3.png new file mode 100644 index 0000000..7e3c758 Binary files /dev/null and b/nixie_tubes/textures/nixie_tube_cathode_3.png differ diff --git a/nixie_tubes/textures/nixie_tube_cathode_4.png b/nixie_tubes/textures/nixie_tube_cathode_4.png new file mode 100644 index 0000000..c2b8e81 Binary files /dev/null and b/nixie_tubes/textures/nixie_tube_cathode_4.png differ diff --git a/nixie_tubes/textures/nixie_tube_cathode_5.png b/nixie_tubes/textures/nixie_tube_cathode_5.png new file mode 100644 index 0000000..67383d6 Binary files /dev/null and b/nixie_tubes/textures/nixie_tube_cathode_5.png differ diff --git a/nixie_tubes/textures/nixie_tube_cathode_6.png b/nixie_tubes/textures/nixie_tube_cathode_6.png new file mode 100644 index 0000000..3a56552 Binary files /dev/null and b/nixie_tubes/textures/nixie_tube_cathode_6.png differ diff --git a/nixie_tubes/textures/nixie_tube_cathode_7.png b/nixie_tubes/textures/nixie_tube_cathode_7.png new file mode 100644 index 0000000..07ceafb Binary files /dev/null and b/nixie_tubes/textures/nixie_tube_cathode_7.png differ diff --git a/nixie_tubes/textures/nixie_tube_cathode_8.png b/nixie_tubes/textures/nixie_tube_cathode_8.png new file mode 100644 index 0000000..95e2809 Binary files /dev/null and b/nixie_tubes/textures/nixie_tube_cathode_8.png differ diff --git a/nixie_tubes/textures/nixie_tube_cathode_9.png b/nixie_tubes/textures/nixie_tube_cathode_9.png new file mode 100644 index 0000000..8aaf82d Binary files /dev/null and b/nixie_tubes/textures/nixie_tube_cathode_9.png differ diff --git a/nixie_tubes/textures/nixie_tube_cathode_colon.png b/nixie_tubes/textures/nixie_tube_cathode_colon.png new file mode 100644 index 0000000..97fd6a6 Binary files /dev/null and b/nixie_tubes/textures/nixie_tube_cathode_colon.png differ diff --git a/nixie_tubes/textures/nixie_tube_cathode_off.png b/nixie_tubes/textures/nixie_tube_cathode_off.png new file mode 100644 index 0000000..97d5591 Binary files /dev/null and b/nixie_tubes/textures/nixie_tube_cathode_off.png differ diff --git a/nixie_tubes/textures/nixie_tube_cathode_period.png b/nixie_tubes/textures/nixie_tube_cathode_period.png new file mode 100644 index 0000000..f9b668f Binary files /dev/null and b/nixie_tubes/textures/nixie_tube_cathode_period.png differ diff --git a/nixie_tubes/textures/nixie_tube_glass.png b/nixie_tubes/textures/nixie_tube_glass.png new file mode 100644 index 0000000..a50754b Binary files /dev/null and b/nixie_tubes/textures/nixie_tube_glass.png differ diff --git a/nixie_tubes/textures/numitron_0.png b/nixie_tubes/textures/numitron_0.png new file mode 100644 index 0000000..2ff78c9 Binary files /dev/null and b/nixie_tubes/textures/numitron_0.png differ diff --git a/nixie_tubes/textures/numitron_1.png b/nixie_tubes/textures/numitron_1.png new file mode 100644 index 0000000..3da4764 Binary files /dev/null and b/nixie_tubes/textures/numitron_1.png differ diff --git a/nixie_tubes/textures/numitron_2.png b/nixie_tubes/textures/numitron_2.png new file mode 100644 index 0000000..6748af6 Binary files /dev/null and b/nixie_tubes/textures/numitron_2.png differ diff --git a/nixie_tubes/textures/numitron_3.png b/nixie_tubes/textures/numitron_3.png new file mode 100644 index 0000000..67744bc Binary files /dev/null and b/nixie_tubes/textures/numitron_3.png differ diff --git a/nixie_tubes/textures/numitron_4.png b/nixie_tubes/textures/numitron_4.png new file mode 100644 index 0000000..9cc27f7 Binary files /dev/null and b/nixie_tubes/textures/numitron_4.png differ diff --git a/nixie_tubes/textures/numitron_5.png b/nixie_tubes/textures/numitron_5.png new file mode 100644 index 0000000..56dfe82 Binary files /dev/null and b/nixie_tubes/textures/numitron_5.png differ diff --git a/nixie_tubes/textures/numitron_6.png b/nixie_tubes/textures/numitron_6.png new file mode 100644 index 0000000..4e147c8 Binary files /dev/null and b/nixie_tubes/textures/numitron_6.png differ diff --git a/nixie_tubes/textures/numitron_7.png b/nixie_tubes/textures/numitron_7.png new file mode 100644 index 0000000..b701433 Binary files /dev/null and b/nixie_tubes/textures/numitron_7.png differ diff --git a/nixie_tubes/textures/numitron_8.png b/nixie_tubes/textures/numitron_8.png new file mode 100644 index 0000000..bf9da7a Binary files /dev/null and b/nixie_tubes/textures/numitron_8.png differ diff --git a/nixie_tubes/textures/numitron_9.png b/nixie_tubes/textures/numitron_9.png new file mode 100644 index 0000000..65b138b Binary files /dev/null and b/nixie_tubes/textures/numitron_9.png differ diff --git a/nixie_tubes/textures/numitron_colon.png b/nixie_tubes/textures/numitron_colon.png new file mode 100644 index 0000000..ca097d8 Binary files /dev/null and b/nixie_tubes/textures/numitron_colon.png differ diff --git a/nixie_tubes/textures/numitron_filaments.png b/nixie_tubes/textures/numitron_filaments.png new file mode 100644 index 0000000..8f4d9b3 Binary files /dev/null and b/nixie_tubes/textures/numitron_filaments.png differ diff --git a/nixie_tubes/textures/numitron_period.png b/nixie_tubes/textures/numitron_period.png new file mode 100644 index 0000000..335d2a5 Binary files /dev/null and b/nixie_tubes/textures/numitron_period.png differ