Reply To Thread
Page 12 of 15 FirstFirst ... 21011121314 ... LastLast
Results 331 to 360 of 1105

Hybrid View

  1. Collapse Details
     
    #1
    Unregistered
    king steveyos
    put a ring on bev already
    Reply With Quote
     

  2. Collapse Details
     
    #2
    my weapons turn me into a m0nde's Avatar
    Join Date
    Dec 2011
    Location
    every once in a while
    Posts
    30,078
    maybe bev will play openslim with stevery. wwould you like that? if he won't play with me, maybe he'll add bev to his list of slimeworld female friends who he treats decently and doesn't get mad at

    bev, get lisa to show you how to play openslime with stevery, he's a really nice guy

    Reply With Quote
     

  3. Collapse Details
     
    #3
    Unregistered
    king steveyos
    I'm setting up a wedding sim for you two I have a friend with a wedding spot set up already they'll give me the stuff and I'll make a more brown setup
    Reply With Quote
     

  4. Collapse Details
     
    #4
    my weapons turn me into a m0nde's Avatar
    Join Date
    Dec 2011
    Location
    every once in a while
    Posts
    30,078
    well i had some luc following this guy's project for building my minecrafts in the slimeworld overland, but it's unfinished. we'll see how it goes
    steverey can probably give me some tips if he'll deign to talk to me in the slimeworld, maybe his friendgirls can help me instad




    Code:
    import java.io.*;
    import java.nio.ByteBuffer;
    import java.nio.channels.FileChannel;
    import java.nio.charset.Charset;
    
    import com.mojang.nbt.*;
    import net.minecraft.world.level.chunk.storage.RegionFile;
    
    /**
     * Minecraft to OpenSim
     * - Linking Virtual Worlds
     * VRA 2012 Project
     * @author Michael Craft <mcraft@peak15.org>
     */
    public class Mc2os {
    	// Minecraft region file to read from
    	public static final RegionFile REGION_FILE = new RegionFile(new File("/home/minecraft/minecraft_server/world/region/r.0.0.mca"));
    	
    	// Chunk we want from this region (chunk numbers are local to each region)
    	public static final int[] CHUNK_POS = {0, 0};
    	
    	// Section we want from this chunk (sections are 16 high and count from bedrock at 0)
    	public static final int SECTION_NUMBER = 4; // 4 corresponds to the 5th chunk up, starting with y:65
    	
    	// File to save output to
    	public static final File output = new File("/home/michael/public_html/mc2os/output.txt");
    
    	// Block IDs
    	public static final byte AIR = 0;
    	public static final byte STONE = 1;
    	public static final byte GRASS = 2;
    	public static final byte DIRT = 3;
    	public static final byte COBBLESTONE = 4;
    	public static final byte WOOD = 5;
    	public static final byte SAND = 12;
    	public static final byte GRAVEL = 13;
    	
    	// Main
    	public static void main(String[] args) {
    		// Open the file at the chunk we want
    		DataInputStream is = REGION_FILE.getChunkDataInputStream(CHUNK_POS[0], CHUNK_POS[1]);
    		
    		// Read the chunk into memory.
    		CompoundTag chunkData = null;
    		try {
    			chunkData = NbtIo.read(is);
    			
    			// Close the file.
    			is.close();
    		} catch (IOException e) {
    			e.printStackTrace();
    			System.exit(1);
    		}
    
    
    		/* This object is the chunk we are working with
    		 * Chunks contain the following tags:
    		 * Biomes
    		 * Entities
    		 * xPos
    		 * LastUpdate
    		 * zPos
    		 * TerrainPopulated
    		 * TileEntities
    		 * HeightMap
    		 * Sections*/
    		CompoundTag chunk = chunkData.getCompound("Level");
    		
    		// Get a list of all vertical sections in this chunk.
    		ListTag<? extends Tag> sections = chunk.getList("Sections");
    		
    		/* This object is a vertical slice of the chunk, a section.
    		 * Sections contain the following tags:
    		 * Data
    		 * SkyLight
    		 * BlockLight
    		 * Y
    		 * Blocks
    		 */
    		CompoundTag section = (CompoundTag) sections.get(SECTION_NUMBER);
    		
    		// And here's what we've been looking for, the actual block data! :D
    		byte[] blocks = section.getByteArray("Blocks");
    		
    		// Now we'll iterate through to find block types that we want and then add them to a big string
    		// Each line of the string will be of the form "x z y blockId"
    		// y and z are flipped since opensim and minecraft don't agree on which is the vertical axis
    		String outputString = "";
    		for(int x=0; x < 10; x++) {
    			for(int z=0; z < 10; z++) {
    				for(int y=0; y < 8; y++) {
    					// Get the block id at this address
    					byte blockId = blocks[x + z*16 + y*256];
    					// Add block types we want to the string
    					if(blockId == AIR || blockId == STONE || blockId == GRASS || blockId == DIRT
    							|| blockId == COBBLESTONE || blockId == WOOD
    							|| blockId == SAND || blockId == GRAVEL) {
    						outputString += Integer.toString(x);
    						outputString += " " + Integer.toString(z);
    						outputString += " " + Integer.toString(y);
    						outputString += " " + Integer.toString(blockId) + "\n";
    					}
    				}
    			}
    		}
    		
    		// Now write the string out to a file
    		try {
    			FileOutputStream stream = new FileOutputStream(output);
    			FileChannel fc = stream.getChannel();
    			ByteBuffer bb = Charset.forName("UTF-8").encode(outputString);
    			fc.write(bb);
    			stream.close();
    		}
    		catch(IOException e) {
    			e.printStackTrace();
    		}
    	}
    }
    HTML Code:
    <?php
    	`java Mc2os`;
    	echo `cat output.txt`;
    ?>
    Code:
    // ------------------------
    // Constants and Globals
    // ------------------------
    
    // Block IDs
    integer AIR = 0;
    integer STONE = 1;
    integer GRASS = 2;
    integer DIRT = 3;
    integer COBBLESTONE = 4;
    integer WOOD = 5;
    integer SAND = 12;
    integer GRAVEL = 13;
    
    // Buttons
    integer pwrBtn;
    integer resetBtn;
    
    // Lookup table for blocks
    list blockPos;
    list blockNum;
    
    // is an operation currently in place?
    integer busy;
    
    // http key
    key http_request_id;
    
    // ------------------------
    // Utility Functions
    // ------------------------
    
    // gets a link number from a position
    integer getBlockNum(vector pos) {
        integer index = llListFindList(blockPos, [pos]);
        return llList2Integer(blockNum, index);
    }
    
    // set the blockid by position
    setBlockId(vector block, integer id) {
        integer bNum = getBlockNum(block);
        setBlockNumId(bNum, id);
    }
    
    // set the blockid by link number
    setBlockNumId(integer num, integer id) {
        if(id == AIR) {
            llSetLinkPrimitiveParamsFast(num, [PRIM_TEXTURE, ALL_SIDES, "00000000-0000-2222-3333-100000001007", <1,1,1>, ZERO_VECTOR, 0]);
        }
        else if(id == STONE) {
            llSetLinkPrimitiveParamsFast(num, [PRIM_TEXTURE, ALL_SIDES, "00000000-0000-2222-3333-100000001012", <1,1,1>, ZERO_VECTOR, 0]);
        }
        else if(id == GRASS) {
            llSetLinkPrimitiveParamsFast(num, [PRIM_TEXTURE, ALL_SIDES, "00000000-0000-2222-3333-100000001013", <1,1,1>, ZERO_VECTOR, 0]);
        }
        else if(id == DIRT) {
            llSetLinkPrimitiveParamsFast(num, [PRIM_TEXTURE, ALL_SIDES, "b8d3965a-ad78-bf43-699b-bff8eca6c975", <1,1,1>, ZERO_VECTOR, 0]);
        }
        else if(id == COBBLESTONE) {
            llSetLinkPrimitiveParamsFast(num, [PRIM_TEXTURE, ALL_SIDES, "00000000-0000-1111-9999-000000000003", <1,1,1>, ZERO_VECTOR, 0]);
        }
        else if(id == WOOD) {
            llSetLinkPrimitiveParamsFast(num, [PRIM_TEXTURE, ALL_SIDES, "00000000-0000-2222-3333-100000001018", <1,1,1>, ZERO_VECTOR, 0]);
        }
        else if(id == SAND) {
            llSetLinkPrimitiveParamsFast(num, [PRIM_TEXTURE, ALL_SIDES, "sand", <1,1,1>, ZERO_VECTOR, 0]);
        }
        else if(id == GRAVEL) {
            llSetLinkPrimitiveParamsFast(num, [PRIM_TEXTURE, ALL_SIDES, "00000000-0000-2222-3333-100000001014", <1,1,1>, ZERO_VECTOR, 0]);
        }
    }
    
    // sets all blocks to air
    clearBlocks() {
        integer len = llGetListLength(blockNum);
        integer n;
        for(n=0; n<len; n++) {
            setBlockNumId(llList2Integer(blockNum, n), AIR);
        }
    }
    
    // Set the busy state
    setBusy() {
        busy = 1;
        llSetLinkColor(pwrBtn, <1.0, 1.0, 0.0>, ALL_SIDES);
    }
    
    // clear the busy state
    clearBusyOn() {
        busy = 0;
        llSetLinkColor(pwrBtn, <0.0, 1.0, 0.0>, ALL_SIDES);
    }
    
    // clear the busy state to off
    clearBusyOff() {
        busy = 0;
        llSetLinkColor(pwrBtn, <1.0, 0.0, 0.0>, ALL_SIDES);
    }
    
    // ------------------------
    // Main
    // ------------------------
    
    default {
        state_entry() {
            llSay(0, "Initializing...");
            
            // Add the root prim
            blockPos += ZERO_VECTOR;
            blockNum += LINK_ROOT;
            
            llSetAlpha(1.0, ALL_SIDES);
            
            // Parse all linked prims
            integer num = llGetNumberOfPrims();
            integer n;
            for(n=2; n<=num; n++) {
                string name = llGetLinkName(n);
                
                if(name == "block") {
                    // Find offset from the root block, this also happens to be the minecraft block position.
                    vector pos = llList2Vector(llGetLinkPrimitiveParams(n, [PRIM_POSITION]), 0) - llGetPos();
                    blockPos += pos;
                    blockNum += n;
                }
                else if(name == "Power Button") {
                    pwrBtn = n;
                    llSetLinkColor(pwrBtn, <1.0, 1.0, 0.0>, ALL_SIDES);
                }
                else if(name == "Reset Button") {
                    resetBtn = n;
                }
            }
            
            state off;
        }
    }
    
    state on {
        state_entry() {
            llSay(0, "On.");
            
            llSetLinkColor(pwrBtn, <0.0, 1.0, 0.0>, ALL_SIDES);
            
            llSetTimerEvent(20);
            if(!busy) {
                http_request_id = llHTTPRequest("http://home.peak15.org/~michael/mc2os/output.php", [], "");
            }
        }
        
        timer() {
            if(!busy) {
                http_request_id = llHTTPRequest("http://home.peak15.org/~michael/mc2os/output.php", [], "");
            }
        }
        
        http_response(key request_id, integer status, list metadata, string body) {
            if (request_id == http_request_id) {
                setBusy();
                llSay(0, "Refreshing...");
                
                list lines = llParseString2List(body, ["\n"], [""]);
                integer len = llGetListLength(lines);
                integer n;
                for(n=0; n<len; n++) {
                    string line = llList2String(lines, n);
                    list parts = llParseString2List(line, [" "], [""]);
                    vector target = ZERO_VECTOR;
                    target.x = (float) llList2String(parts, 0);
                    target.y = (float) llList2String(parts, 1);
                    target.z = (float) llList2String(parts, 2);
                    setBlockId(target, (integer) llList2String(parts, 3));
                }
                
                clearBusyOn();
            }
        }
        
        touch_start(integer total) {
            integer link = llDetectedLinkNumber(0);
            
            // Power button, toggle off.
            if(link == pwrBtn) {
                state off;
            }
            // Reset button, clear blocks.
            else if(link == resetBtn && !busy) {
                setBusy();
                clearBlocks();
                clearBusyOn();
            }
        }
    }
    
    state off {
        state_entry() {
            llSay(0, "Off.");
            
            llSetLinkColor(pwrBtn, <1.0, 0.0, 0.0>, ALL_SIDES);
        }
        
        touch_start(integer total) {
            integer link = llDetectedLinkNumber(0);
            
            // Power button, toggle on.
            if(link == pwrBtn) {
                state on;
            }
            // Reset button, clear blocks.
            else if(link == resetBtn && !busy) {
                setBusy();
                clearBlocks();
                clearBusyOff();
            }
        }
    }

    Reply With Quote
     

  5. Collapse Details
     
    #5
    Unregistered
    king steveyos
    have you made bev an account yet
    Reply With Quote
     

  6. Collapse Details
     
    #6
    my weapons turn me into a m0nde's Avatar
    Join Date
    Dec 2011
    Location
    every once in a while
    Posts
    30,078
    no, Lisa has to do that for Bev. May e you can help her
    Last edited by m0nde; 12-15-2019 at 08:52 AM.

    Reply With Quote
     

  7. Collapse Details
     
    #7
    my weapons turn me into a m0nde's Avatar
    Join Date
    Dec 2011
    Location
    every once in a while
    Posts
    30,078
    this place is so negative, the only threads that arent like that are these casual pink forum threads. here we are, best buds sterey and mondr talking about a nonfirum technology and being civil to each other, even talking about inviting forum people to share in the joy of slime assembly and minecrafting

    thanks for being such a great guy, stevery

    Reply With Quote
     

  8. Collapse Details
     
    #8
    Unregistered
    king steveyos
    yes I would love to see you all start being nice to females being in love is the greatest shit ever I got called kitty girl last night lmao ^_^
    Reply With Quote
     

  9. Collapse Details
     
    #9
    Breathe 🌊 Desolation's Avatar
    Join Date
    Dec 2011
    Posts
    10,085
    pathetic
    Reply With Quote
     

  10. Collapse Details
     
    #10
    Muscle Furry 12 inch Dick juji's Avatar
    Join Date
    Dec 2011
    Posts
    18,000
    Quote Originally Posted by Desolation View Post
    pathetic
    I'm afraid steveyos is becoming future sex offender and may have unstable mental health


    Quote Originally Posted by Steffies Yelle View Post
    I'll kill myself live on cam as soon as there's proof I literlaly promise, I will sincerely kill myself as soon as I see elz's computer playing arma 3 maxed with all nvidia exclusive graphics
    Reply With Quote
     

  11. Collapse Details
     
    #11
    Unregistered
    king steveyos
    Quote Originally Posted by juji View Post
    I'm afraid steveyos is becoming future sex offender and may have unstable mental health


    too late
    Reply With Quote
     

  12. Collapse Details
     
    #12
    #metoo Wendy <3's Avatar
    Join Date
    Jul 2015
    Posts
    17,121
    He's gonna end up in jail one way or another
    Reply With Quote
     

  13. Collapse Details
     
    #13
    my weapons turn me into a m0nde's Avatar
    Join Date
    Dec 2011
    Location
    every once in a while
    Posts
    30,078
    this is my favorite thread on the whole forum

    Reply With Quote
     

  14. Collapse Details
     
    #14
    DogManz maks's Avatar
    Join Date
    Dec 2011
    Location
    Lud, Midworld
    Posts
    99,312
    stevey's legs are pretty fucked up
    Reply With Quote
     

  15. Collapse Details
     
    #15
    my weapons turn me into a m0nde's Avatar
    Join Date
    Dec 2011
    Location
    every once in a while
    Posts
    30,078
    I love his legs, they reflect the tough life he's led

    I'm there for you, syevery's legs <3

    Reply With Quote
     

  16. Collapse Details
     
    #16
    DogManz maks's Avatar
    Join Date
    Dec 2011
    Location
    Lud, Midworld
    Posts
    99,312
    does stevey cut himself? his legs are mutilated
    Reply With Quote
     

  17. Collapse Details
     
    #17
    #metoo Wendy <3's Avatar
    Join Date
    Jul 2015
    Posts
    17,121
    Those holes and chunks of missing flesh aren't anything a cool pair of toe socks won't take care of
    Reply With Quote
     

  18. Collapse Details
     
    #18
    DogManz maks's Avatar
    Join Date
    Dec 2011
    Location
    Lud, Midworld
    Posts
    99,312
    hos legs are really fucked up though
    Reply With Quote
     

  19. Collapse Details
     
    #19
    #metoo Wendy <3's Avatar
    Join Date
    Jul 2015
    Posts
    17,121
    I hate him so much
    Reply With Quote
     

  20. Collapse Details
     
    #20
    Unregistered
    king steveyos
    :3
    Reply With Quote
     

  21. Collapse Details
     
    #21
    Unregistered
    king steveyos
    btw idk why ruby didn't let me pay him back but he needs to tell the truth already
    Reply With Quote
     

  22. Collapse Details
     
    #22
    my weapons turn me into a m0nde's Avatar
    Join Date
    Dec 2011
    Location
    every once in a while
    Posts
    30,078
    Quote Originally Posted by Unregistered View Post
    btw idk why ruby didn't let me pay him back but he needs to tell the truth already
    if you want to pay him back, find out which email he used to send you the PayPal payment and send $5000 to it

    you don't need his permisdsion from him to pay him bavk

    Reply With Quote
     

  23. Collapse Details
     
    #23
    Unregistered
    king steveyos
    paypal sent me the money back after 30 days somebody has to actually accept the money for him
    Reply With Quote
     

  24. Collapse Details
     
    #24
    #metoo Wendy <3's Avatar
    Join Date
    Jul 2015
    Posts
    17,121
    He probably just wants you gone like everyone else does
    Reply With Quote
     

  25. Collapse Details
     
    #25
    Unregistered
    king steveyos
    shhhhh, don't talk to me, talk about me
    Reply With Quote
     

  26. Collapse Details
     
    #26
    DogManz maks's Avatar
    Join Date
    Dec 2011
    Location
    Lud, Midworld
    Posts
    99,312
    I'm 100% positive this story is true, that stevey had 5k and tried to send it to ruby. knowing what I do about stevey's financial situation that seems realistic.
    Reply With Quote
     

  27. Collapse Details
     
    #27
    #metoo Wendy <3's Avatar
    Join Date
    Jul 2015
    Posts
    17,121
    Stovey is the most honest and reliable person here
    Reply With Quote
     

  28. Collapse Details
     
    #28
    #metoo Wendy <3's Avatar
    Join Date
    Jul 2015
    Posts
    17,121
    I guess the paypal transaction to pay monde back was declined as well
    Reply With Quote
     

  29. Collapse Details
     
    #29
    Unregistered
    king steveyos
    I never sent him anything does he want it back
    Reply With Quote
     

  30. Collapse Details
     
    #30
    my weapons turn me into a m0nde's Avatar
    Join Date
    Dec 2011
    Location
    every once in a while
    Posts
    30,078
    Quote Originally Posted by Unregistered View Post
    I never sent him anything does he want it back
    no, I dont

    Reply With Quote
     

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may post new threads
  • You may post replies
  • You may not post attachments
  • You may edit your posts
  •