Thread: Gfx above 1299 make player/npc go invisible?

Results 1 to 3 of 3
  1. #1 Gfx above 1299 make player/npc go invisible? 
    Donator


    Join Date
    Jan 2010
    Age
    29
    Posts
    4,122
    Thanks given
    274
    Thanks received
    551
    Rep Power
    738
    Edit: fixed it had something to do with my readvalues, i used one from an old backup and it fixed it
    Last edited by Nighel; 06-06-2018 at 11:42 AM.
    Reply With Quote  
     

  2. #2  
    'Slutty McFur'

    Owain's Avatar
    Join Date
    Sep 2014
    Age
    26
    Posts
    2,894
    Thanks given
    2,360
    Thanks received
    2,200
    Rep Power
    5000
    I had a similar issue but sorted my read values and not having any issues now.
    What errors are you getting?


    Spoiler for wat:
    Attached image
    Attached image

    Attached image


    Reply With Quote  
     

  3. #3  
    Donator


    Join Date
    Jan 2010
    Age
    29
    Posts
    4,122
    Thanks given
    274
    Thanks received
    551
    Rep Power
    738
    Quote Originally Posted by A Mage View Post
    I had a similar issue but sorted my read values and not having any issues now.
    What errors are you getting?
    No errors thats the weird part

    current readvalues:
    Code:
    	private void decode(Stream buffer) {
    		while(true) {
    			final int opcode = buffer.readUnsignedByte();
    
    			if (opcode == 0) {
    				return;
    			} else if (opcode == 1) {
    				modelId = buffer.readUnsignedWord();
    			} else if (opcode == 2) {
    				animationId = buffer.readUnsignedWord();
    
    				if (Animation.anims != null)
    					animation = Animation.anims[animationId];
    			} else if (opcode == 4) {
    				resizeX = buffer.readUnsignedWord();
    			} else if (opcode == 5) {
    				resizeY = buffer.readUnsignedWord();
    			} else if (opcode == 6) {
    				rotation = buffer.readUnsignedWord();
    			} else if (opcode == 7) {
    				ambience = buffer.readUnsignedByte();
    			} else if (opcode == 8) {
    				contrast = buffer.readUnsignedByte();
    			} else if (opcode == 40) {
    				int len = buffer.readUnsignedByte();
    				colorToFind = new int[len];
    				colorToReplace = new int[len];
    				for (int i = 0; i < len; i++) {
    					colorToFind[i] = buffer.readUnsignedWord();
    					colorToReplace[i] = buffer.readUnsignedWord();
    				}
    			} else if (opcode == 41) { // re-texture
    				int len = buffer.readUnsignedByte();
    
    				for (int i = 0; i < len; i++) {
    					buffer.readUnsignedWord();
    					buffer.readUnsignedWord();
    				}
    			} else {
    				System.out.println("gfx invalid opcode: " + opcode);
    			}
    		}
    	}
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

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


User Tag List

Similar Threads

  1. [317] HP Above Heads of Players/NPCs
    By Classy Penguin in forum Help
    Replies: 2
    Last Post: 07-11-2014, 01:05 PM
  2. How do i make an npc talk above its head?
    By Runebay™ in forum Help
    Replies: 0
    Last Post: 10-25-2009, 04:10 AM
  3. Replies: 0
    Last Post: 03-18-2009, 09:11 PM
  4. Making NPCs not walk throught Players & NPCs
    By Nemmyz in forum Configuration
    Replies: 10
    Last Post: 03-11-2009, 12:20 PM
  5. how to make npc go to chosen location
    By JackFrost in forum Requests
    Replies: 0
    Last Post: 10-15-2008, 03:09 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •