openprograms / sangar-programs Goto Github PK
View Code? Open in Web Editor NEWExperiments and stuffs.
Experiments and stuffs.
I was designing a sign for my complex and have been running into this error occasionally. These errors pop up for 3dm files with more than 20 shapes defined in each file. I never saw a limit on what could be done with print3d or the 3D printer in OpenComputers, so what could be causing this?
I found an error in example.3dm on line 45
collidable = {true, true}
it should be
collidable = {true, true},
The noise api is defined as:
noise.fbm(x, y, z, octaves, lacunarity, gain)
But in the holo-flow app its being called without the x, y and z params
I tried changing 0,0,0,16,8,16
to 16,8,16,0,0,0
but it still created a normal slab, I'm trying to make concrete slabs.. and I have no idea how to do this.
invalid side:
stack traceback:
[C]: in function 'error'
machine:986: in function <machine:983>
(...tail calls...)
/home/miner.lua:564: in upvalue 'digVein'
/home/miner.lua:583: in upvalue 'digVeins'
/home/miner.lua:598: in upvalue 'dig1x2'
/home/miner.lua:678: in upvalue 'digShafts'
/home/miner.lua:761: in local 'main'
/home/miner.lua:817: in main chunk
(...tail calls...)
[C]: in function 'xpcall'
machine:751: in global 'xpcall'
/lib/process.lua:63: in function </lib/process.lua:59>
started with miner 30 3 2> out
(for error logging, otherwise miner 30 3
)
Minecraft 1.12.2
OpenComputers 1.7.2.67
Using Lua 5.3
So yeah, if you call print3d mymodel.3dm klfjdafljkaslkjf
it just crashes going "number expected, got nil". Imo it should check for that and output a proper error :3
[Server thread/WARN] [opencomputers]: Unexpected error in Lua callback.
java.lang.NullPointerException: null
at net.minecraft.item.ItemStack.func_77989_b(ItemStack.java:432) ~[aip.class:?]
at li.cil.oc.server.agent.Player.callUsingItemInSlot(Player.scala:507) ~[Player.class:?]
at li.cil.oc.server.agent.Player.clickBlock(Player.scala:360) ~[Player.class:?]
at li.cil.oc.server.component.Agent$class.click$1(Agent.scala:113) ~[Agent$class.class:?]
at li.cil.oc.server.component.Agent$$anonfun$swing$1.apply(Agent.scala:135) ~[Agent$$anonfun$swing$1.class:?]
at li.cil.oc.server.component.Agent$$anonfun$swing$1.apply(Agent.scala:122) ~[Agent$$anonfun$swing$1.class:?]
at scala.collection.immutable.List.foreach(List.scala:383) ~[List.class:?]
at li.cil.oc.server.component.Agent$class.swing(Agent.scala:122) ~[Agent$class.class:?]
at li.cil.oc.server.component.Robot.swing(Robot.scala:32) ~[Robot.class:?]
at generated.li.cil.oc.CallWrapper_li_cil_oc_server_component_Robot_swing.call(Unknown Source) ~[?:?]
at li.cil.oc.server.machine.Callbacks$ComponentCallback.apply(Callbacks.scala:123) ~[Callbacks$ComponentCallback.class:?]
at li.cil.oc.server.network.Component$class.invoke(Component.scala:112) ~[Component$class.class:?]
at li.cil.oc.server.network.Network$ComponentConnectorBuilder$$anon$1.invoke(Network.scala:631) ~[Network$ComponentConnectorBuilder$$anon$1.class:?]
at li.cil.oc.server.machine.Machine.invoke(Machine.scala:360) ~[Machine.class:?]
at li.cil.oc.server.machine.luac.ComponentAPI$$anonfun$initialize$5$$anonfun$apply$6.apply(ComponentAPI.scala:78) ~[ComponentAPI$$anonfun$initialize$5$$anonfun$apply$6.class:?]
at li.cil.oc.server.machine.luac.ComponentAPI$$anonfun$initialize$5$$anonfun$apply$6.apply(ComponentAPI.scala:78) ~[ComponentAPI$$anonfun$initialize$5$$anonfun$apply$6.class:?]
at li.cil.oc.server.machine.luac.NativeLuaArchitecture.invoke(NativeLuaArchitecture.scala:55) [NativeLuaArchitecture.class:?]
at li.cil.oc.server.machine.luac.ComponentAPI$$anonfun$initialize$5.apply(ComponentAPI.scala:78) [ComponentAPI$$anonfun$initialize$5.class:?]
at li.cil.oc.server.machine.luac.ComponentAPI$$anonfun$initialize$5.apply(ComponentAPI.scala:74) [ComponentAPI$$anonfun$initialize$5.class:?]
at li.cil.oc.util.ExtendedLuaState$ExtendedLuaState$$anon$1.invoke(ExtendedLuaState.scala:24) [ExtendedLuaState$ExtendedLuaState$$anon$1.class:?]
at li.cil.repack.com.naef.jnlua.LuaStateFiveThree.lua_pcall(Native Method) ~[LuaStateFiveThree.class:?]
at li.cil.repack.com.naef.jnlua.LuaState.call(LuaState.java:681) [LuaState.class:?]
at li.cil.oc.server.machine.luac.NativeLuaArchitecture.runSynchronized(NativeLuaArchitecture.scala:177) [NativeLuaArchitecture.class:?]
at li.cil.oc.server.machine.Machine.update(Machine.scala:564) [Machine.class:?]
at li.cil.oc.common.EventHandler$$anonfun$onServerTick$2.apply(EventHandler.scala:168) [EventHandler$$anonfun$onServerTick$2.class:?]
at li.cil.oc.common.EventHandler$$anonfun$onServerTick$2.apply(EventHandler.scala:166) [EventHandler$$anonfun$onServerTick$2.class:?]
at scala.collection.mutable.HashSet.foreach(HashSet.scala:78) [scala-library-2.11.1.jar:?]
at li.cil.oc.common.EventHandler$.onServerTick(EventHandler.scala:166) [EventHandler$.class:?]
at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_1225_EventHandler$_onServerTick_ServerTickEvent.invoke(.dynamic) [?:?]
at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) [ASMEventHandler.class:?]
at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:182) [EventBus.class:?]
at net.minecraftforge.fml.common.FMLCommonHandler.onPreServerTick(FMLCommonHandler.java:279) [FMLCommonHandler.class:?]
at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:657) [MinecraftServer.class:?]
at net.minecraft.server.integrated.IntegratedServer.func_71217_p(IntegratedServer.java:252) [chd.class:?]
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:526) [MinecraftServer.class:?]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_161]
this error is throw regualry while the miner is active
Minecraft 1.12.2
OpenComputers 1.7.2.67
Using Lua 5.3
The program only run once, it digs one trench, the go back, says "Waiting for full batery" and then ends
I'm on OC 1.7 and would like to use a robot with your miner.lua, but the required "geolyzer upgrade" doesn't exist according to both NEI and google. am I missing something really obvious here (like just putting a geolyzer block in its inventory/etc) or what do I have to do?
midi.lua - great code. Where can I get the dependent requires "component", "computer", "shell"
Thanks, Thomas
Even with 2 Tier 3.5 Sticks of ram, it still BSODs. Is it just that I need to not try to do it under a volcano? is it just too many blocks?
Hi there!
I was able to get this working in 1.12.2 Open computers with applying these changes here:
https://github.com/OpenPrograms/Sangar-Programs/pull/19/files
However, the sound is very choppy no matter what file is played. Is this as expected or is there a way to improve the sound fidelity? (Namely, the notes and stuff are all correct but it plays them too slowly or badly timed)
See title. Just making sure the example keeps up to date =)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.