If the libraries are available for your type of system it'll "just work", except for Windows where you need the VC2012 runtime as mentioned in the OP, which may not already be installed. The shared libraries for the supported systems are in the mod's ZIP file (assets/opencomputers/lib) and are extracted to the temp folder before being loaded. What else do you want to know?
I need to know the libraries that need to be available, so I can ask the host if they include them in the VM.
I need to know the libraries that need to be available, so I can ask the host if they include them in the VM.
As I said, if it's running Windows the only dependency is the VC2012 runtime. For Linux it's just the standard C (libc.so.6) and dynamic linking library (ld-linux.so.2) which I can't imagine isn't there already.
no error in the server log but,when I shift right click it with the analyser,it says that the lastest error is "too long without yielding",there is no program yet on this computer,it's the first computer of this server,so it's not a program that have crashed it
Hmmm, could it be the server is very, very busy? The threads running the computers have lowest priority, so it could be they just take too long, even when idling. Try increasing the time Lua has to yield before that error is raised in the config, computer.timeout, which is pretty strict per default. I may have to relax that value a little in the default config.
4th edit : it's me or Lua is different in this mod than in computercraft,a lot of things no longer works such as shell.run or read(),why those things no longer work?
also,is there a way to label peripheral such as disk drive?
It's different from CC's lua. You can read up on the api on the wiki.
edit : just a question,how to change text size on screens? I hate reading tiny text
edit edit : damn,the problem happened again,but there is nothing in both client and server log,but this problem seems to only happen in MP
edit edit edit : I got another problem : my computers loose their power when I quit the world and go back,and the power converter seems to no longer accept power,I have to break it and replace it each time,is it your mod that cause that problem or the mod that generate power?
4th edit : it's me or Lua is different in this mod than in computercraft,a lot of things no longer works such as shell.run or read(),why those things no longer work?
also,is there a way to label peripheral such as disk drive?
1. To change the size of the text, change the screen's resolution. From the shell, using the 'resolution' program, for example.
2. Sounds like your server is so busy that the low priority of the worker threads running the Lua states just get starved. Does the kernel panic message say something about it happening during garbage collection? Then that's the same cause - the supervisor just kicks in with the 'too long without yielding' error while something is being garbage collected. I might make the priority of those threads configurable, but that'd be pretty much fighting the symptoms, when it'd probably be better to work on the cause (your server being overloaded). If it's another kind of panic there ought to be something in the log.
3. You could try to increase the time computers way before resuming when they are reloaded (computer.startupDelay). This gives the component network more time to re-initialize. Considering that threads even get killed because they get no CPU time to finish, it might well be that that's the cause.
thanks and... damn,it took me a loooooong time to understand CC lua,and now,I can't use it???
I'll try to learn this one now,I hope I'll be able to make a program in 2 or 3 years
Well, look at it in a positive light: learning new things is good for the brain I couldn't just go ahead and copy the CC APIs... but it should be possible - for the most part - to write some kind of abstraction layer. One of the things were simple "redirects" won't work is peripherals, since OC has no concept of sidedness when it comes to components (its always just addresses, regardless of how the component is connected to the computer).
Sangar, I have started the Abstract Bus. we should be able to integrate and do fun stuff soon... I'll probably need no more than this weekend to get it solid.
Sounds great! I'm trying to figure out some more bug/issue reports and am wrapping up things for 1.1 now, so I'll get back to server/terminal stuff after that. I started with some rough drafting, but took a break when I got to the point where I need to rework (real) client/server communication a bit since I now need the ability to address multiple computers in one block.
thanks for all your help,if the kernel panic problem can be caused because the server is overloaded,then,it's the problem I have (even if I don't know why,my server use only 5% of RAM I'm asking it to use),my server is overloaded,the startup itself overload it...
and thank you,you saved my eyes,reading tiny text was about to kill them
Too many things vying for tick time. You can have all the RAM in the world, but if your mods combined are trying to do a million things per tick, you're SOL. MC isn't the best at multi-threading. Heck, Java isn't the best at multi-threading.
I had a very similar issue and spent hours looking for a mod conflict. I'm still not even 100% sure one doesn't exist, but it SEEMS like OC just doesn't want me to have 105 mods. 104 is fine. But 105? That's just one mod too many.
damn,this happen for me even without mods,even a vanilla server start with a
[WARNING] Can't keep up! Did the system time change, or is the server overloaded?
this is usualy the first message that appear in the server's console
Oh, pffft. I get that running a vanilla server with no mods installed. That's just MC derpiness and doesn't actually mean anything. Now, if it translates into actual TPS lag or crashes while playing, then it's a problem.
I have testing now the 1.05 ( not time for testing 1.04 ).
Good new, i can put a keyboard on computer without crach on my server but i have now :
"Native Libraries not available".
Always the same server :
Operating System: Linux (amd64) version 2.6.38.3-mc
Java Version: 1.7.0_03, Oracle Corporation
Java VM Version: OpenJDK 64-Bit Server VM (mixed mode), Oracle Corporation
My hoster have see your mod and write nothing is needed for this mod, it can run.
For information it is Verygames.
Edit : I don't have looking at the first time for conflict. Good new, no conflict with all other strange mod ( not classical ). With 1.03 i need changed some IDs, not this time ...
Edit2 : can you add a test when mod is installed for check if libraries is present or not. But, i don't found no "bad" message in forge log when server start.
Always the same server :
Operating System: Linux (amd64) version 2.6.38.3-mc
Java Version: 1.7.0_03, Oracle Corporation
Java VM Version: OpenJDK 64-Bit Server VM (mixed mode), Oracle Corporation
My hoster have see your mod and write nothing is needed for this mod, it can run.
For information it is Verygames.
Edit2 : can you add a test when mod is installed for check if libraries is present or not. But, i don't found no "bad" message in forge log when server start.
1. Errrr. OK. That's interesting. I can only guess that the libraries on that server are too old (my laptop is on kernel 3.5), so I'll try to set up an older Linux in a VM later and compile the libs there, hopefully getting the dependencies down a few versions...
2. The message is only logged when a computer actually tries to start. I may look into adding a check on game startup.
Also, will you be adding a gui to the capacitor in the future?
1. Either wrench the charger to make it run if it has no redstone signal, or give it a redstone signal (place lever on it and flip it, e.g.)
2. What for?
Edit: oh, also: hotfix 1.0.5a is now available with the following changes:
Fixes ignorePower setting not working when turning on computers due to check added for direct error printing introduced in 1.0.5.
Added validation to loading methods for a bunch of stuff to avoid tampered with NBT data leading to crashing tile entities.
Would it be possible to get an optional (nobody freak out) mode for use with gregtech hardmode? Specifically needing a diamond drill in order to use a robot to automine (though requiring steel in order to make the robot in the first place wouldn't be amiss either). Gregtech is supposed to make it very very difficult to automine, but only deliberately does so for very popular mods (and he won't work with CC because of a lag bug or something).
(also, and this is probably way to much to ask for but I need to anyway, can I have LISP?)
1. Errrr. OK. That's interesting. I can only guess that the libraries on that server are too old (my laptop is on kernel 3.5), so I'll try to set up an older Linux in a VM later and compile the libs there, hopefully getting the dependencies down a few versions...
Hi,
My hoster probably can add libraries, but it need the list of libraries you use.
For my hoster best soluce is you adapte your mod for old Linux version but many other hoster use same ( old ) version of Linux.
(also, and this is probably way to much to ask for but I need to anyway, can I have LISP?)
Have a look at lualisp. I had a quick go at it, amalgamating it into one file and patching it up to work in Lua 5.2, seems to work rather fine: get it here. It's very basic, but seems to work. You'll need 128KB of RAM, at least.
Had a hunt but cant find the api, when i plan to update to 1.7.2 i want to make my peripheral work with this as well as cc but cant do that with out an api
Guess I was too slow in adding the readme The API can be found here.
Please add a support for. telecrapht mod. The possibility of use Twitter with a computer in minecraft is amazing.
This sounds like something that could very well be implemented as an add-on via the API. I don't twitter, so there's very little incentive for me to have a go at that myself, sorry :/
My hoster probably can add libraries, but it need the list of libraries you use.
For my hoster best soluce is you adapte your mod for old Linux version but many other hoster use same ( old ) version of Linux.
It's the ones I listed. You can check yourself running ldd on the lib. As I said, I'll have a go at it with an older Linux, can't give you an ETA, though.
Have a look at lualisp. I had a quick go at it, amalgamating it into one file and patching it up to work in Lua 5.2, seems to work rather fine: get it here. It's very basic, but seems to work. You'll need 128KB of RAM, at least.
Hello guys, i have small question.
Does/will this mod allow to make touchscreen like in CC? thanks
Tier two and three screens allow touch/mouse input, yes. Basically: if the screen has a keyboard there'll be a GUI with mouse support when you right-click/activate it, if it doesn't that'll trigger a click event directly where you right-clicked/activated the screen (and thus act like a touchscreen).
I cannot find the option to enable harder recipes. Is this not a config option?
As mentioned by lordjoda above, in 1.1 there's a new subfolder in the config folder named 'opencomputers', that contains the recipe definitions. As mentioned in the default and GT recipe files, don't edit those, they are overwritten each time the game starts (in case we have to update stuff). Instead, have a look at the user.recipes file. Uncomment the GregTech line by removing the '#' in front of it to enable the GregTech recipes. I.e. change
#snip
include file("default.recipes")
#include file("gregtech.recipes")
#snip
to
#snip
include file("default.recipes")
include file("gregtech.recipes")
#snip
I need to know the libraries that need to be available, so I can ask the host if they include them in the VM.
As I said, if it's running Windows the only dependency is the VC2012 runtime. For Linux it's just the standard C (libc.so.6) and dynamic linking library (ld-linux.so.2) which I can't imagine isn't there already.
Hmmm, could it be the server is very, very busy? The threads running the computers have lowest priority, so it could be they just take too long, even when idling. Try increasing the time Lua has to yield before that error is raised in the config, computer.timeout, which is pretty strict per default. I may have to relax that value a little in the default config.
Creator of OpenComputers. My Twitter. My Patreon.
Could you please post the server log, it should contain more info on what caused it.
Creator of OpenComputers. My Twitter. My Patreon.
It's different from CC's lua. You can read up on the api on the wiki.
1. To change the size of the text, change the screen's resolution. From the shell, using the 'resolution' program, for example.
2. Sounds like your server is so busy that the low priority of the worker threads running the Lua states just get starved. Does the kernel panic message say something about it happening during garbage collection? Then that's the same cause - the supervisor just kicks in with the 'too long without yielding' error while something is being garbage collected. I might make the priority of those threads configurable, but that'd be pretty much fighting the symptoms, when it'd probably be better to work on the cause (your server being overloaded). If it's another kind of panic there ought to be something in the log.
3. You could try to increase the time computers way before resuming when they are reloaded (computer.startupDelay). This gives the component network more time to re-initialize. Considering that threads even get killed because they get no CPU time to finish, it might well be that that's the cause.
Well, look at it in a positive light: learning new things is good for the brain I couldn't just go ahead and copy the CC APIs... but it should be possible - for the most part - to write some kind of abstraction layer. One of the things were simple "redirects" won't work is peripherals, since OC has no concept of sidedness when it comes to components (its always just addresses, regardless of how the component is connected to the computer).
Sounds great! I'm trying to figure out some more bug/issue reports and am wrapping up things for 1.1 now, so I'll get back to server/terminal stuff after that. I started with some rough drafting, but took a break when I got to the point where I need to rework (real) client/server communication a bit since I now need the ability to address multiple computers in one block.
Creator of OpenComputers. My Twitter. My Patreon.
Too many things vying for tick time. You can have all the RAM in the world, but if your mods combined are trying to do a million things per tick, you're SOL. MC isn't the best at multi-threading. Heck, Java isn't the best at multi-threading.
I had a very similar issue and spent hours looking for a mod conflict. I'm still not even 100% sure one doesn't exist, but it SEEMS like OC just doesn't want me to have 105 mods. 104 is fine. But 105? That's just one mod too many.
Oh, pffft. I get that running a vanilla server with no mods installed. That's just MC derpiness and doesn't actually mean anything. Now, if it translates into actual TPS lag or crashes while playing, then it's a problem.
Creator of OpenComputers. My Twitter. My Patreon.
Thanks for your reponse.
I have testing now the 1.05 ( not time for testing 1.04 ).
Good new, i can put a keyboard on computer without crach on my server but i have now :
"Native Libraries not available".
Always the same server :
Operating System: Linux (amd64) version 2.6.38.3-mc
Java Version: 1.7.0_03, Oracle Corporation
Java VM Version: OpenJDK 64-Bit Server VM (mixed mode), Oracle Corporation
My hoster have see your mod and write nothing is needed for this mod, it can run.
For information it is Verygames.
Edit : I don't have looking at the first time for conflict. Good new, no conflict with all other strange mod ( not classical ). With 1.03 i need changed some IDs, not this time ...
Edit2 : can you add a test when mod is installed for check if libraries is present or not. But, i don't found no "bad" message in forge log when server start.
Have I set this up right?
MV solar array, Power Converter, Capacitor, Power Distributor, Charger, Robot.
But the robot isn't charging.
Also, will you be adding a gui to the capacitor in the future?
1. Errrr. OK. That's interesting. I can only guess that the libraries on that server are too old (my laptop is on kernel 3.5), so I'll try to set up an older Linux in a VM later and compile the libs there, hopefully getting the dependencies down a few versions...
2. The message is only logged when a computer actually tries to start. I may look into adding a check on game startup.
1. Either wrench the charger to make it run if it has no redstone signal, or give it a redstone signal (place lever on it and flip it, e.g.)
2. What for?
Edit: oh, also: hotfix 1.0.5a is now available with the following changes:
Creator of OpenComputers. My Twitter. My Patreon.
(also, and this is probably way to much to ask for but I need to anyway, can I have LISP?)
It could send me a text when the quarry is done!
Hi,
My hoster probably can add libraries, but it need the list of libraries you use.
For my hoster best soluce is you adapte your mod for old Linux version but many other hoster use same ( old ) version of Linux.
Have a look at lualisp. I had a quick go at it, amalgamating it into one file and patching it up to work in Lua 5.2, seems to work rather fine: get it here. It's very basic, but seems to work. You'll need 128KB of RAM, at least.
Guess I was too slow in adding the readme The API can be found here.
This sounds like something that could very well be implemented as an add-on via the API. I don't twitter, so there's very little incentive for me to have a go at that myself, sorry :/
It's the ones I listed. You can check yourself running ldd on the lib. As I said, I'll have a go at it with an older Linux, can't give you an ETA, though.
Creator of OpenComputers. My Twitter. My Patreon.
You are too awesome to be real.
Tier two and three screens allow touch/mouse input, yes. Basically: if the screen has a keyboard there'll be a GUI with mouse support when you right-click/activate it, if it doesn't that'll trigger a click event directly where you right-clicked/activated the screen (and thus act like a touchscreen).
Creator of OpenComputers. My Twitter. My Patreon.
Railcraft Boiler Calculator
As mentioned by lordjoda above, in 1.1 there's a new subfolder in the config folder named 'opencomputers', that contains the recipe definitions. As mentioned in the default and GT recipe files, don't edit those, they are overwritten each time the game starts (in case we have to update stuff). Instead, have a look at the user.recipes file. Uncomment the GregTech line by removing the '#' in front of it to enable the GregTech recipes. I.e. change
to
Creator of OpenComputers. My Twitter. My Patreon.