Thread: Sounds & Music

Page 17 of 19 FirstFirst ... 71516171819 LastLast
Results 161 to 170 of 182
  1. #161  
    Registered Member
    Join Date
    Jan 2010
    Posts
    11
    Thanks given
    0
    Thanks received
    0
    Rep Power
    1
    Thanks for this. It has been very helpful.

    Edit: I was struggling with packet 174 but have since resolved the issue (initially I was doing what Galkon also did at first; using soundType as a volume control). Fortunately I managed to resolve the packet sizing issue and am able to correctly send the packet with volume attached.
    Reply With Quote  
     

  2. #162  
    Registered Member Rememberm3's Avatar
    Join Date
    Aug 2013
    Posts
    1,714
    Thanks given
    56
    Thanks received
    91
    Rep Power
    95
    Sorry for the bump, but where do i have to add:
    Code:
    public void sendSound(int id, int type, int delay, int volume) {
    		if(c.getOut() != null && c != null && id != -1) {
    			c.getOut().putOpCode(174);
    			c.getOut().writeShort(id);
    			c.getOut().writeByte(type);
    			c.getOut().writeShort(delay);
    			c.getOut().writeShort(volume);
    			c.flushOutStream();
    		}
    	}
    Code:
    public void sendSong(int id) {
    		if (c.getOut() != null && c != null && id != -1) {
    			c.getOut().putOpCode(74);
    			c.getOut().writeWordBigEndian(id);
    		}
    	}
    
    	public void sendQuickSong(int id, int songDelay) {
    		if (c.getOut() != null && c != null) {
    			c.getOut().putOpCode(121);
    			c.getOut().writeWordBigEndian(id);
    			c.getOut().writeWordBigEndian(songDelay);
    			c.flushOutStream();
    		}
    	}
    -FIXED-
    Reply With Quote  
     

  3. #163  
    Extreme Donator

    Join Date
    Feb 2014
    Posts
    305
    Thanks given
    23
    Thanks received
    19
    Rep Power
    0
    Anyone know if this would work for a winterLove source and SrcAllDummysRemoved client?
    Reply With Quote  
     

  4. #164  
    what the dog doin

    mikan's Avatar
    Join Date
    Aug 2017
    Posts
    917
    Thanks given
    698
    Thanks received
    731
    Discord
    View profile
    Rep Power
    4898
    Quote Originally Posted by Excavation View Post
    Anyone know if this would work for a winterLove source and SrcAllDummysRemoved client?
    yes.
    Reply With Quote  
     

  5. #165  
    Extreme Donator

    Join Date
    Feb 2014
    Posts
    305
    Thanks given
    23
    Thanks received
    19
    Rep Power
    0
    Quote Originally Posted by Galkon View Post
    -snip
    If you're going to go through THIS MUCH WORK, could you atleast document it a little such as including or mentioning which/what Java version and/or JDK version you used and/or what version and/or versions it should work for?

    It's very frustrating dealing with a huge complex single block of code that doesn't work, only to find that it actually does, after sitting there for hours trying to think of every possible syntax error in the book, feeling like a complete fucking idiot, only to find out the reason why it doesn't work, is because of the version of Java you're using.
    Reply With Quote  
     

  6. #166  




    Scu11's Avatar
    Join Date
    Aug 2007
    Age
    27
    Posts
    16,200
    Thanks given
    7,190
    Thanks received
    12,174
    Discord
    View profile
    Rep Power
    5000
    Quote Originally Posted by Excavation View Post
    If you're going to go through THIS MUCH WORK, could you atleast document it a little such as including or mentioning which/what Java version and/or JDK version you used and/or what version and/or versions it should work for?
    why don't you work backwards from figuring out what Java version was current when this was written over 8 years ago

    It's very frustrating dealing with a huge complex single block of code that doesn't work, only to find that it actually does, after sitting there for hours trying to think of every possible syntax error in the book, feeling like a complete fucking idiot,
    why wouldn't you google the error or something that would immediately tell you what the problem was

    [Only registered and activated users can see links. ]



    Reply With Quote  
     

  7. Thankful user:


  8. #167  
    Extreme Donator

    Join Date
    Feb 2014
    Posts
    305
    Thanks given
    23
    Thanks received
    19
    Rep Power
    0
    Quote Originally Posted by Scu11 View Post
    why don't you work backwards from figuring out what Java version was current when this was wrote over 8 years ago
    That doesn't sound like a very viable response.

    Quote Originally Posted by Scu11 View Post
    why wouldn't you google the error or something that would immediately tell you what the problem was
    It was the type of syntax error. I don't know every error out there, and what it means by that.
    Reply With Quote  
     

  9. #168  




    Scu11's Avatar
    Join Date
    Aug 2007
    Age
    27
    Posts
    16,200
    Thanks given
    7,190
    Thanks received
    12,174
    Discord
    View profile
    Rep Power
    5000
    Quote Originally Posted by Excavation View Post
    That doesn't sound like a very viable response.
    why???


    Quote Originally Posted by Excavation View Post
    It was the type of syntax error. I don't know every error out there, and what it means by that.
    paste the error into google and you'll find out

    [Only registered and activated users can see links. ]



    Reply With Quote  
     

  10. #169  
    Extreme Donator

    Join Date
    Feb 2014
    Posts
    305
    Thanks given
    23
    Thanks received
    19
    Rep Power
    0
    Quote Originally Posted by Scu11 View Post
    why???
    Because it would have been a good idea to have it documented to begin with?
    Reply With Quote  
     

  11. #170  
    Administrator

    Kevy's Avatar
    Join Date
    Jul 2006
    Posts
    1,338
    Thanks given
    158
    Thanks received
    1,724
    Discord
    View profile
    Rep Power
    5000
    Get a proper IDE like IntelliJ. It suggests to change your language level automatically if you encounter such problem.
    + you truly like to excavate this old stuff

    Quote Originally Posted by Excavation View Post
    If you're going to go through THIS MUCH WORK, could you atleast document it a little such as including or mentioning which/what Java version and/or JDK version you used and/or what version and/or versions it should work for?

    It's very frustrating dealing with a huge complex single block of code that doesn't work, only to find that it actually does, after sitting there for hours trying to think of every possible syntax error in the book, feeling like a complete fucking idiot, only to find out the reason why it doesn't work, is because of the version of Java you're using.
    Thanks, Kevin.
    Reply With Quote  
     

Page 17 of 19 FirstFirst ... 71516171819 LastLast

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. Replies: 7
    Last Post: 03-14-2012, 02:54 PM
  2. Sounds and Music
    By Dennis in forum Help
    Replies: 2
    Last Post: 06-01-2010, 01:31 AM
  3. Music and Sounds
    By Viii in forum Tutorials
    Replies: 43
    Last Post: 07-05-2009, 01:12 PM
  4. Sounds, music and more.
    By Inside Sin in forum Requests
    Replies: 0
    Last Post: 10-05-2008, 06:40 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •