Jump to content
  • Sky
  • Blueberry
  • Slate
  • Blackcurrant
  • Watermelon
  • Strawberry
  • Orange
  • Banana
  • Apple
  • Emerald
  • Chocolate
  • Charcoal

PixelPi

Members
  • Content Count

    18
  • Joined

  • Last visited

Posts posted by PixelPi

  1. On 28.3.2015 at 10:05 AM, Krutoy242 said:

    Sangar and team make magnificent work on mod! You impress me, guys.

    OC mod already overpower СС mod, and so fast developing. Robots are like kings in comparsion with Turtles. So, i always see them like this:

    Like this drawing. :)

    Do you have it in a higher resolution (1920x1280)?

  2. Hi jhagrid!

     

    There are a lot good introductions in Lua: https://www.lua.org/pil/p1.html

     

    But is this really fun? :)

     

    What do you think about an OpenComputers/Lua based live stream at Twitch programming:

     

      https://www.twitch.tv/directory/game/Creative/programming

     

    We could use my Linux streaming infrastructure. I can synchronously stream to YouTube or record the stream. If things go well, we have automatically a video tutorial or can cut one.

     

    We have to try it first and gain experience. It will certainly take time until we are good. But it would be fun, I think. :)

     

     

    EDIT: Nevertheless, writing your own tutorial is a great idea. Go on with it! 

  3. It's in Beta at the moment, there was a lot of breaking changes with it so Sangar isn't rushing to get it out (also Sangar has real life stuff to do so that's slowing development down)

     

    You can always checkout the dev builds at http://ci.cil.li

     

    Slighty OT: Do you know if 1.5 will appear for MInecraft 1.9?

  4. Oh, im glad you succes and my program was useful.

    There is bug with standart palette in my converter. Simpliest way to avoid it - add custom color in standart MagicaVoxel's palette. This will force MV to rewrite whole palette in file, and it will work fine.

     

    Thank you. That seems to work. Your program is great.  

     

    A note on the screens in general:  It is tricky to place them with the desired alignment. A screen can facing north, south, west, east, bottom or up. North should be alignment number 8 for example. So I think your idea to use different colors should work. But what I want to say: Screens are a burden on the client site even if they are turned off. I personally create them, therefore, only by hand and when I need them. Align the screens correctly goes very quickly. Much more important for me is that you have implemented a structured cabling. This is really time consuming when you have to do it by hand. And the time I need to completely illuminate the data center. ;)

     

    Maybe some placeholder blocks for the lamps would be nice. 

     

    But I do not want to hold you back to find a solution for the screens. If I have an idea, I let you know.

  5. Thanks, i don't know what your program does but mine is almost finished. Going to publish it the next days. was just working on a way to add a way to build the screens with the correct orientation. Actually the code for that part is also almost complete. I just have to fix the screens and run a scan on them, save it as an additional file and modify the original building script. After that the building should have perfectly oriented screens in it. the same method did not work with cases or server racks.. the building is missing keyboards btw...

    So probably I'll post the code in the next days.

     

    To the question which ids are wrong: in the modpack i use all OC-ids are different. and many people will have that problem too. fences were skystone etc...

     

    I've posted my script above. I use two simple hashes (block_val2id and opencomputers_val2id) to map everything to block IDs. Krutoy is using the block values instead of the block IDs. That's all so far as I understand it. Or do I miss something? 

     

    With the mapped IDs I can simply use Minecrafts fill command. You need Minecraft 1.8 or later in order to use it. But it works under vanilla. I had some stability problems with Forge. Also on my internet server I can't use OpenComputers at the moment, because of an outdated remote Mac OS/Java Client which must be updated first. In the script you can see my substitutions for OpenComputers. 

     

    Okay, I have a special situation. But maybe it's also useful to others.

  6. I'm not sure how yall are building it I have a stock Toshiba Satellite L755-S5112 (http://gadgetaz.com/Laptop/Toshiba_Satellite_L755-S5112--5771) its running Ubuntu 14.04. I just can't seem to be able to build it sadly.

     

    I'm using Ubuntu 14.04 too. Open a terminal.

     

    1. sudo apt-get install dh-make-perl

    2. dh-make-perl --cpan Minecraft::RCON

    3. sudo dpkg -i libminecraft-rcon-perl_0.1.4-1_all.deb

    4. Fetch Krutoy's data center lua table and save it to a file.

    5. Set up a local minecraft server (with rcon turned on) on your local machine (localhost).

    6. Start your minecraft client and connect to your local server.

    7. Save the following script to a file, customize it and run it:

    #!/usr/bin/perl -w
    
    use strict;
    use Minecraft::RCON;
    
    # Your credentials here:
    my $mc_server = 'YourServer';
    my $mc_rcon_port = 'YourPort';
    my $mc_rcon_password = 'YourPassword';
    
    # Mapping value => block id
    my %block_val2id = (0 => 'air', 1 => 'stone', 2 => 'grass', 3 => 'dirt', 4 => 'cobblestone', 5 => 'planks', 6 => 'sapling', 7 => 'bedrock', 8 => 'flowing_water', 9 => 'water', 10 => 'flowing_lava', 11 => 'lava', 12 => 'sand', 13 => 'gravel', 14 => 'gold_ore', 15 => 'iron_ore', 16 => 'coal_ore', 11 => 'log', 12 => 'leaves', 19 => 'sponge', 20 => 'glass', 21 => 'lapis_ore', 22 => 'lapis_block', 23 => 'dispenser', 24 => 'sandstone', 25 => 'noteblock', 26 => 'bed', 27 => 'golden_rail', 28 => 'detector_rail', 29 => 'sticky_piston', 30 => 'web', 31 => 'tallgrass', 32 => 'deadbush', 33 => 'piston', 34 => 'piston_head', 35 => 'wool', 36 => 'piston_extension', 37 => 'yellow_flower', 38 => 'red_flower', 39 => 'brown_mushroom', 40 => 'red_mushroom', 41 => 'gold_block', 42 => 'iron_block', 43 => 'double_stone_slab', 44 => 'stone_slab', 45 => 'brick_block', 46 => 'tnt', 47 => 'bookshelf', 48 => 'mossy_cobblestone', 49 => 'obsidian', 50 => 'torch', 51 => 'fire', 52 => 'mob_spawner', 53 => 'oak_stairs', 54 => 'chest', 55 => 'redstone_wire', 56 => 'diamond_ore', 57 => 'diamond_block', 58 => 'crafting_table', 59 => 'wheat', 60 => 'farmland', 61 => 'furnace', 62 => 'lit_furnace', 63 => 'standing_sign', 64 => 'wooden_door', 65 => 'ladder', 66 => 'rail', 67 => 'stone_stairs', 68 => 'wall_sign', 69 => 'lever', 70 => 'stone_pressure_plate', 71 => 'iron_door', 72 => 'wooden_pressure_plate', 73 => 'redstone_ore', 74 => 'lit_redstone_ore', 75 => 'unlit_redstone_torch', 76 => 'redstone_torch', 77 => 'stone_button', 78 => 'snow_layer', 79 => 'ice', 80 => 'snow', 81 => 'cactus', 82 => 'clay', 83 => 'reeds', 84 => 'jukebox', 85 => 'fence', 86 => 'pumpkin', 87 => 'netherrack', 88 => 'soul_sand', 89 => 'glowstone', 90 => 'portal', 91 => 'lit_pumpkin', 92 => 'cake', 93 => 'unpowered_repeater', 94 => 'powered_repeater', 95 => 'stained_glass', 96 => 'trapdoor', 97 => 'monster_egg', 98 => 'stonebrick', 99 => 'brown_mushroom_block', 100 => 'red_mushroom_block', 101 => 'iron_bars', 102 => 'glass_pane', 103 => 'melon_block', 104 => 'pumpkin_stem', 105 => 'melon_stem', 106 => 'vine', 107 => 'fence_gate', 108 => 'brick_stairs', 109 => 'stone_brick_stairs', 110 => 'mycelium', 111 => 'waterlily', 112 => 'nether_brick', 113 => 'nether_brick_fence', 114 => 'nether_brick_stairs', 115 => 'nether_wart', 116 => 'enchanting_table', 117 => 'brewing_stand', 118 => 'cauldron', 119 => 'end_portal', 120 => 'end_portal_frame', 121 => 'end_stone', 122 => 'dragon_egg', 123 => 'redstone_lamp', 124 => 'lit_redstone_lamp', 125 => 'double_wooden_slab', 126 => 'wooden_slab', 127 => 'cocoa', 128 => 'sandstone_stairs', 129 => 'emerald_ore', 130 => 'ender_chest', 131 => 'tripwire_hook', 132 => 'tripwire', 133 => 'emerald_block', 134 => 'spruce_stairs', 135 => 'birch_stairs', 136 => 'jungle_stairs', 137 => 'command_block', 138 => 'beacon', 139 => 'cobblestone_wall', 140 => 'flower_pot', 141 => 'carrots', 142 => 'potatoes', 143 => 'wooden_button', 144 => 'skull', 145 => 'anvil', 146 => 'trapped_chest', 147 => 'light_weighted_pressure_plate', 148 => 'heavy_weighted_pressure_plate', 149 => 'unpowered_comparator', 150 => 'powered_comparator', 151 => 'daylight_detector', 152 => 'redstone_block', 153 => 'quartz_ore', 154 => 'hopper', 155 => 'quartz_block', 156 => 'quartz_stairs', 157 => 'activator_rail', 158 => 'dropper', 159 => 'stained_hardened_clay', 160 => 'stained_glass_pane', 161 => 'leaves2', 162 => 'log2', 163 => 'acacia_stairs', 164 => 'dark_oak_stairs', 165 => 'slime', 166 => 'barrier', 167 => 'iron_trapdoor', 168 => 'prismarine', 169 => 'sea_lantern', 170 => 'hay_block', 171 => 'carpet', 172 => 'hardened_clay', 173 => 'coal_block', 174 => 'packed_ice', 175 => 'double_plant', 176 => 'standing_banner', 177 => 'wall_banner', 178 => 'daylight_detector_inverted', 179 => 'red_sandstone', 180 => 'red_sandstone_stairs', 181 => 'double_stone_slab2', 182 => 'stone_slab2', 183 => 'spruce_fence_gate', 184 => 'birch_fence_gate', 185 => 'jungle_fence_gate', 186 => 'dark_oak_fence_gate', 187 => 'acacia_fence_gate', 188 => 'spruce_fence', 189 => 'birch_fence', 190 => 'jungle_fence', 191 => 'dark_oak_fence', 192 => 'acacia_fence', 193 => 'spruce_door', 194 => 'birch_door', 195 => 'jungle_door', 196 => 'acacia_door', 197 => 'dark_oak_door', 198 => 'end_rod', 199 => 'chorus_plant', 200 => 'chorus_flower', 201 => 'purpur_block', 202 => 'purpur_pillar', 203 => 'purpur_stairs', 204 => 'purpur_double_slab', 205 => 'purpur_slab', 206 => 'end_bricks', 207 => 'beetroots', 208 => 'grass_path', 209 => 'end_gateway', 210 => 'repeating_command_block', 211 => 'chain_command_block', 212 => 'frosted_ice', 255 => 'structure_block');
    
    # OpenComputers Components
    #
    # Mod:
    # my %opencomputers_val2id = (533 => 'opencomputers:case3', 531 => 'opencomputers:screen3', 513 => 'opencomputers:cable', 4229 => 'air');
    # Vanilla:
    my %opencomputers_val2id = (533 => 'redstone_block', 531 => 'redstone_block', 513 => 'nether_brick_fence', 4229 => 'air');
    
    # Join all block IDs
    my %all_val2id = (%block_val2id, %opencomputers_val2id);
    
    # Corner coords
    my $x = 0;
    my $y = 0;
    my $z = 0;
    
    my $prepress_file = shift;
    die "Missing prepress file!\n" if(!$prepress_file);
    open (PREPRESS,"<$prepress_file") or die "Can't open $prepress_file\n";   
    
    my $i;
    while(<PREPRESS>)
    {
      chomp();
      my $line = $_;
      if ($line !~/^\{ \d+,\d+,\d+,\d+,\d+,\d+, (\d+|\d+,\d+) \},$/)
      {
        print "Skipping: $line\n";
        next;
      }
      $line =~ s/[{}\s]//g;
      $line =~ s/,$//;
      my @data = split(',', $line);
      $data[7] = "0" if(!$data[7]);
      
      # Set coordinates
      $data[0]+=$x; $data[1]+=$y; $data[2]+=$z;
      $data[3]+=$x; $data[4]+=$y; $data[5]+=$z;
    
      # Set block ID
      my $blockid = $all_val2id{$data[6]};
    
      # COMMENT IN for setting everything to air
      # my $blockid = 'air';
      
      next if (!$blockid); 
      $i++;
      my $fill = "fill $data[0] $data[1] $data[2] $data[3] $data[4] $data[5] $blockid $data[7] replace";
    
      # COMMENT IN for set only Mod blocks
      # next if($data[6]<255);
    
      # Print next fill command to execute
      print "$i\t$fill\n";
      
      # COMMENT OUT for disable DRY RUN
      next;  
      #
    
      my $rcon = Minecraft::RCON->new( { address  => $mc_server, port => $mc_rcon_port, password => $mc_rcon_password, strip_color => 1, convert_color => 1} );
    
      if ($rcon->connect) 
      {
          print $rcon->command($fill)."\n";
          $rcon->disconnect;
      }
      else 
      {
         print "Connection to $mc_server failed!\n";
         sleep 1;
         # COMMENT IN to capitulate ...
         # last;
      } 
    }
    
  7. Any chance you will create a new table of the complete area you have in your screenshots? it looks awesome and i just built it in SP but it's just the main building and a few ids are wrong. i'm writing a simple program to replace ids.

     

    Which IDs are wrong? I've wrote a little convert perl-script for vanilla minecraft. Should I share it with you?

     

    And yes. Another file for the smaller building would be cool. 

  8. Hi Krutoy,

     

    I've tested your converter with this set of skeleton characters:

     

      https://voxeltiles.wordpress.com/2015/02/25/voxel-skeleton-set-v-1/

     

    It works, but the colors are mapped almost wrong and the figures appear in Minecraft flipped on the X-axis. I have not had time to look at your code in more detail. Maybe there is also a problem with the VOX-files. Perhaps you have an idea.

     

    By the way: With the right mappings this skeletons looks pretty cool in Minecraft. :)

  9. As i understand, some block IDs are generated when server created. So, this is OC blicks, like, monitors and server racks.

      

    Thank you! The IDs come from your MagicaVoxels converter script.

    For the MC 1.8 fill command I have to map the magical numbers 513, 533, 531 and 4229 to their proper Block-IDs. I think I will find the IDs somewhere into the Java Code of OC. But maybe it does not work. Perhaps the fill command only works with vanilla blocks. I've testes it. It works. :)

    For example this code sets an accessPoint at position 196 75 220:

    /setblock 196 75 220 opencomputers:accessPoint 1 replace

    For the vanilla blocks I've made already this hash (perl style):

    my %block_val2id = (0 => 'air', 1 => 'stone', 2 => 'grass', 3 => 'dirt', 4 => 'cobblestone', 5 => 'planks', 6 => 'sapling', 7 => 'bedrock', 8 => 'flowing_water', 9 => 'water', 10 => 'flowing_lava', 11 => 'lava', 12 => 'sand', 13 => 'gravel', 14 => 'gold_ore', 15 => 'iron_ore', 16 => 'coal_ore', 11 => 'log', 12 => 'leaves', 19 => 'sponge', 20 => 'glass', 21 => 'lapis_ore', 22 => 'lapis_block', 23 => 'dispenser', 24 => 'sandstone', 25 => 'noteblock', 26 => 'bed', 27 => 'golden_rail', 28 => 'detector_rail', 29 => 'sticky_piston', 30 => 'web', 31 => 'tallgrass', 32 => 'deadbush', 33 => 'piston', 34 => 'piston_head', 35 => 'wool', 36 => 'piston_extension', 37 => 'yellow_flower', 38 => 'red_flower', 39 => 'brown_mushroom', 40 => 'red_mushroom', 41 => 'gold_block', 42 => 'iron_block', 43 => 'double_stone_slab', 44 => 'stone_slab', 45 => 'brick_block', 46 => 'tnt', 47 => 'bookshelf', 48 => 'mossy_cobblestone', 49 => 'obsidian', 50 => 'torch', 51 => 'fire', 52 => 'mob_spawner', 53 => 'oak_stairs', 54 => 'chest', 55 => 'redstone_wire', 56 => 'diamond_ore', 57 => 'diamond_block', 58 => 'crafting_table', 59 => 'wheat', 60 => 'farmland', 61 => 'furnace', 62 => 'lit_furnace', 63 => 'standing_sign', 64 => 'wooden_door', 65 => 'ladder', 66 => 'rail', 67 => 'stone_stairs', 68 => 'wall_sign', 69 => 'lever', 70 => 'stone_pressure_plate', 71 => 'iron_door', 72 => 'wooden_pressure_plate', 73 => 'redstone_ore', 74 => 'lit_redstone_ore', 75 => 'unlit_redstone_torch', 76 => 'redstone_torch', 77 => 'stone_button', 78 => 'snow_layer', 79 => 'ice', 80 => 'snow', 81 => 'cactus', 82 => 'clay', 83 => 'reeds', 84 => 'jukebox', 85 => 'fence', 86 => 'pumpkin', 87 => 'netherrack', 88 => 'soul_sand', 89 => 'glowstone', 90 => 'portal', 91 => 'lit_pumpkin', 92 => 'cake', 93 => 'unpowered_repeater', 94 => 'powered_repeater', 95 => 'stained_glass', 96 => 'trapdoor', 97 => 'monster_egg', 98 => 'stonebrick', 99 => 'brown_mushroom_block', 100 => 'red_mushroom_block', 101 => 'iron_bars', 102 => 'glass_pane', 103 => 'melon_block', 104 => 'pumpkin_stem', 105 => 'melon_stem', 106 => 'vine', 107 => 'fence_gate', 108 => 'brick_stairs', 109 => 'stone_brick_stairs', 110 => 'mycelium', 111 => 'waterlily', 112 => 'nether_brick', 113 => 'nether_brick_fence', 114 => 'nether_brick_stairs', 115 => 'nether_wart', 116 => 'enchanting_table', 117 => 'brewing_stand', 118 => 'cauldron', 119 => 'end_portal', 120 => 'end_portal_frame', 121 => 'end_stone', 122 => 'dragon_egg', 123 => 'redstone_lamp', 124 => 'lit_redstone_lamp', 125 => 'double_wooden_slab', 126 => 'wooden_slab', 127 => 'cocoa', 128 => 'sandstone_stairs', 129 => 'emerald_ore', 130 => 'ender_chest', 131 => 'tripwire_hook', 132 => 'tripwire', 133 => 'emerald_block', 134 => 'spruce_stairs', 135 => 'birch_stairs', 136 => 'jungle_stairs', 137 => 'command_block', 138 => 'beacon', 139 => 'cobblestone_wall', 140 => 'flower_pot', 141 => 'carrots', 142 => 'potatoes', 143 => 'wooden_button', 144 => 'skull', 145 => 'anvil', 146 => 'trapped_chest', 147 => 'light_weighted_pressure_plate', 148 => 'heavy_weighted_pressure_plate', 149 => 'unpowered_comparator', 150 => 'powered_comparator', 151 => 'daylight_detector', 152 => 'redstone_block', 153 => 'quartz_ore', 154 => 'hopper', 155 => 'quartz_block', 156 => 'quartz_stairs', 157 => 'activator_rail', 158 => 'dropper', 159 => 'stained_hardened_clay', 160 => 'stained_glass_pane', 161 => 'leaves2', 162 => 'log2', 163 => 'acacia_stairs', 164 => 'dark_oak_stairs', 165 => 'slime', 166 => 'barrier', 167 => 'iron_trapdoor', 168 => 'prismarine', 169 => 'sea_lantern', 170 => 'hay_block', 171 => 'carpet', 172 => 'hardened_clay', 173 => 'coal_block', 174 => 'packed_ice', 175 => 'double_plant', 176 => 'standing_banner', 177 => 'wall_banner', 178 => 'daylight_detector_inverted', 179 => 'red_sandstone', 180 => 'red_sandstone_stairs', 181 => 'double_stone_slab2', 182 => 'stone_slab2', 183 => 'spruce_fence_gate', 184 => 'birch_fence_gate', 185 => 'jungle_fence_gate', 186 => 'dark_oak_fence_gate', 187 => 'acacia_fence_gate', 188 => 'spruce_fence', 189 => 'birch_fence', 190 => 'jungle_fence', 191 => 'dark_oak_fence', 192 => 'acacia_fence', 193 => 'spruce_door', 194 => 'birch_door', 195 => 'jungle_door', 196 => 'acacia_door', 197 => 'dark_oak_door', 198 => 'end_rod', 199 => 'chorus_plant', 200 => 'chorus_flower', 201 => 'purpur_block', 202 => 'purpur_pillar', 203 => 'purpur_stairs', 204 => 'purpur_double_slab', 205 => 'purpur_slab', 206 => 'end_bricks', 207 => 'beetroots', 208 => 'grass_path', 209 => 'end_gateway', 210 => 'repeating_command_block', 211 => 'chain_command_block', 212 => 'frosted_ice', 255 => 'structure_block');
    

    Block-IDs > 255 I've set to air at the moment. Nevertheless, your building is pretty impressing. Even without the computer stuff.  :)

     

    Update:

     

    I guessed a bit:

     

    533 => 'opencomputers:case1' (or case2..3)    

    531 => 'opencomputers:screen1' (or screen2..3)    
    513 => 'opencomputers:cable'
    4229 => An elevator?
     
    Okay, only the ID for the number 4229 I can not guess. I bet on a lift, because you otherwise not even reach the floors without flying (Creative Mode).
  10. I love the design. Thank you for sharing. I've written a converter script for RCON on the basis of the new fill command which is available in 1.8. There I have to work with the block IDs also stone for data value 0 or stained_hardened_clay for data value 159 e.g.. But no problem. I just mapped it via a table.

     

    However, I wonder to what  block IDs I should map the following data values:

     

    513, 533, 531, 4229

     

    Do they come from a mod? Maybe OpenComputers? 

  11. Java 6 is a very old Java version, and supporting it is no longer practical for most mods. If your version of OS X is 10.7 (Lion) or newer, then you can go to http://java.com/en/download/manual.jsp and install the latest version of Java 8. If you're still on OS X 10.6 (Snow Leopard) or older, then you're out of luck, sorry.

     

    The kid have made more screenshots for me. It is a Mac OS 10.6.8 with the suspected Java 1.6.0_65. I was looking for other solutions but it's exactly as you say. Fortunately the Macbook is compatible  to Mac OS version 10.75. So we need to update. Thank you for the quick help.

  12. I like to use OpenComputers on a server to teach my nephew. He is using an older Macbook. After installing Forge/OpenComputers he gets an error message:

     

    "You're using a broken Java version! Please update now, or remove OpenComputers. DO NOT REPORT THIS! UPDATE YOUR JAVA!"

     

    So, sorry for reporting this but I have a question. I am not on-site and I only have a screenshot but I think it is probably likely that the exception was thrown here:

     

     

    https://github.com/MightyPirates/OpenComputers/blob/OC1.5-MC1.8/src/main/scala/li/cil/oc/common/Proxy.scala

     

    Question: Do I see it right that only the version "1.6.0_65, Apple Inc." is affected? If not, where I can find the affected versions? 

     

    Background: I want to prevent that the boy must update his entire operating system. Thus, we have to take probably a slightly older version of Java. If  only version 1.6.0_65 is affected, I think the child can fix this with my help from remote. 

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.