Jump to content


xuma202's Content

There have been 115 items by xuma202 (Search limited from 29-March 23)


By content type

See this member's


Sort by                Order  

#136528 Post Your Internet Speed!

Posted by xuma202 on 28 July 2013 - 11:00 AM in General

Posted Image
Well, already had better Test results.



#120121 [1.4.7] [CC 1.481] CCRedbus - control Redbus devices (like Sortron) with Comp...

Posted by xuma202 on 23 May 2013 - 11:00 AM in Peripherals and Turtle Upgrades

Yeah awesome



#117267 [mc 1.6.2] [cc 1.56] Applied Energistics Peripheral

Posted by xuma202 on 12 May 2013 - 11:38 AM in Peripherals and Turtle Upgrades

Would it be possible to port this to MC 1.4.7? Redpower and some other mods are not available for 1.5.1 and I'd like to use them too.



#117110 [MC 1.2.5/1.3.2 ] [CC 1.4x] Easy Signalling

Posted by xuma202 on 11 May 2013 - 04:08 PM in Peripherals and Turtle Upgrades

Any chance this will be updated? Since I like using Railcraft Signals but also want to keep things CC controlled

EDIT: Sorry just saw this is already a feature of MiscPeripherals



#116971 [1.4.7] [CC 1.481] CCNoise - generate custom sounds

Posted by xuma202 on 11 May 2013 - 06:38 AM in Peripherals and Turtle Upgrades

View PostTomyLobo, on 10 May 2013 - 07:45 PM, said:

View Postxuma202, on 09 May 2013 - 04:48 PM, said:

The link is down.
The link is back up

Sorry for not replying earlier. I only just found out that email notifications are off by default.

No problem, I was able to build it myself but I thought of the others too.



#116673 [1.4.7] [CC 1.481] CCNoise - generate custom sounds

Posted by xuma202 on 09 May 2013 - 04:48 PM in Peripherals and Turtle Upgrades

The link is down.



#116496 Rate the Above User's Avatar!

Posted by xuma202 on 09 May 2013 - 05:33 AM in Forum Games

9/10
Professor Doc sweet idea ;-)



#116375 Rate the Above User's Avatar!

Posted by xuma202 on 08 May 2013 - 02:36 PM in Forum Games

Well soldered, 8/10

[EDIT]

argh too late...

That human is a 7/10



#114149 [MC 1.6.4] CCLights2 v0.4.1

Posted by xuma202 on 01 May 2013 - 11:47 AM in Peripherals and Turtle Upgrades

Can you plese make it so we can set the memory in a config 8192 Bytes is too less for me.



#114073 [MC 1.6.4] CCLights2 v0.4.1

Posted by xuma202 on 01 May 2013 - 06:40 AM in Peripherals and Turtle Upgrades

View PostSariaz, on 18 April 2013 - 07:03 PM, said:

I have only two questions. First what version of minecraft is it for. Second which folder does it go in, coremods or mods?

You can find instructions and more on this mod here: http://www.minecraft...rs-gpus-eau-my/



#96106 [CC 1.481][MC 1.4.7] Turtle NBT Editor 1.1

Posted by xuma202 on 12 March 2013 - 01:30 AM in Peripherals and Turtle Upgrades

View Postgamax92, on 11 March 2013 - 04:29 AM, said:

I've also noticed that you don't have a texture for you peripheral. I was going for a golden ender pearl, I can send you the files if you want.

Thanks for your feedback. Sure you send me the texture if you want.


View PostSimon, on 01 March 2013 - 01:22 PM, said:

you could make it go up to players and invert their screen be turning their speed to 3... trolol

Hello Simon, unfortunately it's currently not possible to change the NBT Data of Mobs.



#91609 [CCGPU] Analog Clock [v1.0.3]

Posted by xuma202 on 27 February 2013 - 05:17 AM in Programs

 maximouli, on 26 February 2013 - 09:43 AM, said:

You program is awesome ! Somebody nows how to modify the code to have the time of the real world (on earth :D) thanks

The important line is line 158
time = os.time()

When it's for example 8:37 the function will os.time() will return 8.6166666...
If you can manage to get the real world time into a variable you'll just have to manipulate this line or these lines: (160&161)

hours = math.floor(time)
minutes = math.floor((time-hours)*60)

hours must contain the hours [0-11] and minutes must contain the minutes [0-59] so you can modify lines 158-161.

However afaik you can't read the real wolrd time with a CC function so you maybe have to use the http api or something else.



#86945 [CC 1.48 - 1.5] ccDB - Connect With Real Databases

Posted by xuma202 on 14 February 2013 - 07:07 AM in Peripherals and Turtle Upgrades

View PostEspen, on 13 February 2013 - 11:47 PM, said:

View Postxuma202, on 10 February 2013 - 11:33 AM, said:

Hello.

I've found a bug. When you connect the ccDB to a computer via Xfels peripheral cables it'll crash minecraft and break your world.

Here is the log:
Spoiler
Hmm, that's strange. Have to test this and find the bug. Thanks for the report!

Edit:
This doesn't look like a conflict with CCCable, but it seems that ccDB didn't find its Lua-API.
May I ask how you installed the peripheral? Have you put the archive into the mods folder, or have you extracted it?
Also can you check if the archive contains the folder 'lua' ?

I've just created a new MC with only forge, CC, CCCable and ccDB. I got the same error again. I've placed the unzipped file into the mods folder and it created a directory named ccDB with another directory named lua with file called ccDB on its own.



#86498 [HOW TO] How to call a peripheral method with a list

Posted by xuma202 on 12 February 2013 - 09:54 AM in Peripheral Help and Discussion

Oh I didn't know about the JSON parser in minecraftforge. And about passing the string to java without a temp file: I've tried that. I've also made a method that gave me the encoded hashmap and i passed this directly into the decoder. It worked but when I just passed the string to lua and back it didn't. So I don't know it should be working sure but it didn't so I went with the temp file for now.



#85934 [CC 1.48 - 1.5] ccDB - Connect With Real Databases

Posted by xuma202 on 10 February 2013 - 11:33 AM in Peripherals and Turtle Upgrades

Hello.

I've found a bug. When you connect the ccDB to a computer via Xfels peripheral cables it'll crash minecraft and break your world.

Here is the log:
Spoiler



#85802 [MC 1.6.4] CCLights2 v0.4.1

Posted by xuma202 on 10 February 2013 - 03:38 AM in Peripherals and Turtle Upgrades

View Postds84182, on 07 February 2013 - 02:00 PM, said:

View PostCoolisTheName007, on 07 February 2013 - 08:02 AM, said:

1-up for mouse_up/mouse_down
Feature-request:
what I talk about here: basically many drawPixel calls in one call using Lua varargs since tables can't be passed around.
Textures are an improvement, though.
This could be possible.
My proposed function name would probably be drawPixelBatch(x,y,(r,g, B) <- repeated hundreds of times.)

I have tried this for my mod but I had a multidimensional array and therefore wrote my own onpack() which called itself recursively. It worked but once I ran into trouble because lua was not able to handle my function as a function. So I guess there is a limit with parameters.

2nd:

Can you please allow placing the Light Grids facing upwards/downwards?
People have asked for this with CC Monitors many times. And it would enable creating a DISCO or holodeck thingy.



#85595 [HOW TO] How to call a peripheral method with a list

Posted by xuma202 on 09 February 2013 - 01:48 PM in Peripheral Help and Discussion

Hello,

here I want to tell you about a concept I came up with about how to send a list from lua to Java.
As you know you can't call a peripherals function with a list as a parameter.

But for my peripheral http://www.computerc...-nbt-editor-10/ I wanted to do this.
I've tried many ways but none did really work well.
The concept I ended up which was working and an ok solution was this:

I used a JSON library for lua http://regex.info/blog/lua/json and an api function turned my table into a JSON string.
Because sending this String to Java didn't work for some reason. I had to make my api saving it into a file. Next I called the peripherals function with the filename. In java I opened the file and parsed it using this JSON parser http://wiki.fasterxm...JacksonDownload into a HashMap. Back in lua I deleted the temporary file.
That's it.

So hope this helps you if you have to pass a multidimensional array to a peripheral.



#85573 [Question] Monitor [SOLVED]

Posted by xuma202 on 09 February 2013 - 01:03 PM in Ask a Pro

This is impossible by changing the position of the computer only. I've just tried it. Is it possible that you changed the monitors Text Scale?

call monitor.setTextScale(1)
to set the monitors TextScale to 1 you can use anything from 0.5 to 5



#85523 [1.32] CCGPU - A GPU addon for ComputerCraft

Posted by xuma202 on 09 February 2013 - 10:50 AM in Peripherals and Turtle Upgrades

This project has been stopped though Cloudy did a port to MC 1.2.5.
I don't know if he or someone else will do another one but because of the heavy changes in MC since then it would probably make more sense recoding the whole project.



#85424 Turtle NBT editor Peripheral [Suggestion][WIP]

Posted by xuma202 on 09 February 2013 - 06:27 AM in Suggestions

Ok it's released http://www.computerc...__fromsearch__1



#85419 [CC 1.481][MC 1.4.7] Turtle NBT Editor 1.1

Posted by xuma202 on 09 February 2013 - 06:18 AM in Peripherals and Turtle Upgrades

Description:

This peripheral allows you to edit and read the NBT Data of TileEntitys.

Because I had no of how to make texture looking there currently is no texture. But I'm open for suggestions.

How to use:

Craft a NBT Editor Turtle with a Bottle o' Enchanting
Posted Image

Place down the Turtle.
You can now use
  • nbtEditor.getNBTData()
  • nbtEditor.getNBTDataUp()
  • nbtEditor.getNBTDataDown()
to get a table representing the Tile Entity's NBT Data.

Example of a table retured by nbtEditor.getNBTData() (in JSON format):

http://pastebin.com/4a65FGC5

You can now modify this table. (Delete tags, edit tags or add tags)
When you're done you can write the table to a Tile Entity's NBT Data.
  • nbtEditor.setNBTData(table)
  • nbtEditor.setNBTDataUp(table)
  • nbtEditor.setNBTDataDown(table)
NOTE: The API will create a temporary file in the computers home directory. Which will be delete automatically.

Screenshots:

Spoiler

Warning:

YOU CAN BREAK YOUR MINECRAFT WORLD WHIT THIS!
I AM NOT RESPONSIBLE FOR ANY DAMAGES. USE THIS AT YOUR OWN RISK.
YOU CAN USE THIS ON THIS ON MULTIPLAYER SERVER.
HOWEVER, IT IS NOT RECOMMENDED USING THIS MOD ON A PUBLIC SERVER.

Note:
  • Sometimes you modification won't show an effect and the NBT Data will be automatically restored. This is out of my influence and caused by the Tile Entity itself.
Download:

Turtle NBT Editor v 1.1

How to install:

Unzip the mod into your mods directory.

The zip contains the jackson-all-1.9.11.jar and a slightly modified version of http://regex.info/blog/lua/json



#85370 Turtle NBT editor Peripheral [Suggestion][WIP]

Posted by xuma202 on 09 February 2013 - 03:05 AM in Suggestions

UPDATE: Ok this was a real lot of work. I've created a concept to send the array to the Peripheral and it worked, until I ran into problems because lua was not able to handle all the parameters.
I've tried different stuff some of which I didn't liked from the beginning on. I tried a JSON String but it didn't work for some reason. What I ended up with is not the prettiest and best solution but it works and is an ok compromise.

How it works (may be interesting for other modders as well:

I use a lua JSON api to convert my table into a JSON string. (http://regex.info/blog/lua/json)
Next I save the table to a file and call my peripheral function with the name of that file.
In Java I load the file and convert it to a HashMap (http://wiki.fasterxm...onInFiveMinutes)

String p = ModLoader.getMinecraftInstance().getMinecraftDir() + "\\saves\\" + myTurtle.getWorld().getWorldInfo().getWorldName() + "\\computer\\" + (String) arguments[0];

  File f = new File(p);
  Map m1 = new ObjectMapper().readValue(f, HashMap.class);

Now I recursively turn this HashMap into an NBTTag which I then write to the TileEntity.
In lua I now delete the temporary file.

For the non-developers:

You can now simply manipulate the table and call a function from the api :D

Now I'll quickly write an api and make a separate thread in the peripheral section.



#85234 Please?!

Posted by xuma202 on 08 February 2013 - 03:02 PM in General

"Please" - give your threads names that describe the content!



#85232 http api post

Posted by xuma202 on 08 February 2013 - 02:59 PM in Ask a Pro

View PostPixelToast, on 08 February 2013 - 02:49 PM, said:

normally i dont use post, i usually use get because you can debug it through a standard browser
http://www.computerc.../HTTP_%28API%29

To debug POST requests you can use Postman for Google Chrome. (https://chrome.googl...chrome-ntp-icon)

However sometimes you're forced to use POST parameters.

Back to topic:

Use this function http://computercraft.../wiki/Http.post and layout the content of the postdata like so: "key=value&key2=value2" ...



#85231 How to Make a Computer print to a monitor

Posted by xuma202 on 08 February 2013 - 02:54 PM in Ask a Pro

Just wrap the monitor

monitor = peripheral.wrap("top")
assuming the monitor is placed above the computer. You can use left,right back,front and bottom instead too.

now call monitor.write("Hello")
to find out about the other methods read this:
http://computercraft...heral_Functions