Thread: [Azure]Gemini problem

Results 1 to 10 of 10
  1. #1 [Azure]Gemini problem 
    I'm you..


    Join Date
    Dec 2011
    Posts
    307
    Thanks given
    25
    Thanks received
    16
    Rep Power
    183
    Hello,
    I downloaded [Azure]Gemini today and put the server on but my client wont connect. Server is on but client says its offline and i tried to search for place where to change the ip with keywords "ip" and "server" but nothing showed up. Any help please?
    Reply With Quote  
     

  2. #2  
    Registered Member

    Join Date
    Sep 2008
    Posts
    4,833
    Thanks given
    894
    Thanks received
    1,439
    Rep Power
    2924
    Quote Originally Posted by Interim View Post
    Hello,
    I downloaded [Azure]Gemini today and put the server on but my client wont connect. Server is on but client says its offline and i tried to search for place where to change the ip with keywords "ip" and "server" but nothing showed up. Any help please?
    Your port... Azure uses 43595, Most clients are set to 43594, just change that u should be good to go.
    "Know thy self, know thy enemy. A thousand battles, a thousand victories." - Sun Tzu
    GitHub: https://github.com/Faris-Mckay
    Reply With Quote  
     

  3. #3  
    I'm you..


    Join Date
    Dec 2011
    Posts
    307
    Thanks given
    25
    Thanks received
    16
    Rep Power
    183
    Code:
    Gemini Client
    Exception in thread "Java Sound Sequencer" java.lang.IllegalStateException: Rece
    iver is not open
            at com.sun.media.sound.SoftReceiver.send(SoftReceiver.java:63)
            at com.sun.media.sound.AbstractMidiDevice$TransmitterList.sendMessage(Ab
    stractMidiDevice.java:676)
            at com.sun.media.sound.RealTimeSequencer$DataPump.notesOff(RealTimeSeque
    ncer.java:1551)
            at com.sun.media.sound.RealTimeSequencer$PlayThread.run(RealTimeSequence
    r.java:1377)
            at java.lang.Thread.run(Thread.java:722)
    That's what i get now when i'm logging in.
    Reply With Quote  
     

  4. #4  
    Registered Member

    Join Date
    Sep 2008
    Posts
    4,833
    Thanks given
    894
    Thanks received
    1,439
    Rep Power
    2924
    Quote Originally Posted by Interim View Post
    Code:
    Gemini Client
    Exception in thread "Java Sound Sequencer" java.lang.IllegalStateException: Rece
    iver is not open
            at com.sun.media.sound.SoftReceiver.send(SoftReceiver.java:63)
            at com.sun.media.sound.AbstractMidiDevice$TransmitterList.sendMessage(Ab
    stractMidiDevice.java:676)
            at com.sun.media.sound.RealTimeSequencer$DataPump.notesOff(RealTimeSeque
    ncer.java:1551)
            at com.sun.media.sound.RealTimeSequencer$PlayThread.run(RealTimeSequence
    r.java:1377)
            at java.lang.Thread.run(Thread.java:722)
    That's what i get now when i'm logging in.
    Disable the sounds.
    "Know thy self, know thy enemy. A thousand battles, a thousand victories." - Sun Tzu
    GitHub: https://github.com/Faris-Mckay
    Reply With Quote  
     

  5. #5  
    I'm you..


    Join Date
    Dec 2011
    Posts
    307
    Thanks given
    25
    Thanks received
    16
    Rep Power
    183
    And how i can do that? Lol.
    Reply With Quote  
     

  6. #6  
    Registered Member

    Join Date
    Sep 2008
    Posts
    4,833
    Thanks given
    894
    Thanks received
    1,439
    Rep Power
    2924
    Quote Originally Posted by Interim View Post
    And how i can do that? Lol.
    post the line the error is on.
    "Know thy self, know thy enemy. A thousand battles, a thousand victories." - Sun Tzu
    GitHub: https://github.com/Faris-Mckay
    Reply With Quote  
     

  7. #7  
    I'm you..


    Join Date
    Dec 2011
    Posts
    307
    Thanks given
    25
    Thanks received
    16
    Rep Power
    183
    Code:
    package sign;
    
    import java.io.File;
    import javax.sound.midi.MidiSystem;
    import javax.sound.midi.Receiver;
    import javax.sound.midi.Sequence;
    import javax.sound.midi.Sequencer;
    import javax.sound.midi.ShortMessage;
    import javax.sound.midi.Synthesizer;
    
    /**
     * Midi file playing.
     * @author Primadude.
     */
    public class Midi {
    
            /**
             * The name of the midi file.
             */
            String midiFileName;
    
            /**
             * The dir of the midi file.
             */
            String midiSaveDir;
    
            /**
             * The Sequence object.
             */
            Sequence sequence;
    
            /**
             * The Sequencer object.
             */
            Sequencer sequencer;
    
            /**
             * The Synthesizer object.
             */
            Synthesizer synthesizer;
    
            /**
             * Gets the name of the midi file.
             * @return The midiFileName variable.
             */
            public String getMidiFileName() {
                    return midiFileName;
            }
    
            /**
             * Gets the midi file directory.
             * @return The midiSaveDir variable.
             */
            public String getMidiSaveDir() {
                    return midiSaveDir;
            }
    
            /**
             * Sets the midi file name.
             * @param midiFileName The String to set the file name to.
             */
            public void setMidiFileName(String midiFileName) {
                    this.midiFileName = midiFileName;
            }
    
            /**
             * Sets the midi directory.
             * @param midiFileName The String to set the file directory to.
             */
            public void setMidiSaveDir(String midiSaveDir) {
                    this.midiSaveDir = midiSaveDir;
            }
    
            /**
             * Sets the volume of the midi that is playing.
             * @param volume The volume of the midi sound.
             * @return True or false.
             */
            public boolean setVolume(double value) {
                    try {
                            Receiver receiver = MidiSystem.getReceiver();
                            ShortMessage volumeMessage= new ShortMessage();
    
                            for (int i = 0; i < 16; i++) {
                                    volumeMessage.setMessage(ShortMessage.CONTROL_CHANGE, i, 7, (int)(value * 127.0));
                                    receiver.send(volumeMessage, -1);
                            }
                            return true;
                    } catch (Exception e) {
                            e.printStackTrace();
                            return false;
                    }
            }
    
            /**
             * Fades the volume of the midi out.
             * Stops the current midi playing.
             */
            public void fadeOut() {
                    double volume = 0.6;
    
                    for (;;) {
                            if (((volume - 0.05) < 0) || !setVolume(volume)) {
                                    break;
                            }
                            try {
                                    Thread.sleep(150);
                            } catch (Exception exception) {
                            }
                            volume -= 0.025;
                    }
                    if (synthesizer != null) {
                            synthesizer.close();
                            synthesizer = null;
                    }
                    if (sequencer != null) {
                            if (sequencer.isOpen()) {
                                    sequencer.stop();
                            }
                            sequencer.close();
                    }
            }
    
            /**
             * Starts playing the midi.
             */
            public void startMidi() {
                    String midiDir = getMidiFileName() + getMidiSaveDir();
    
                    try {
                            if (sequencer != null) {
                                    fadeOut();
                            }
                            sequencer = null;
                            sequence = null;
                            File file = new File(midiDir);
    
                            if (file.exists()) {
                                    sequence = MidiSystem.getSequence(file);
                            }
                            sequencer = MidiSystem.getSequencer();
                            sequencer.setSequence(sequence);
                            synthesizer = MidiSystem.getSynthesizer();
                            synthesizer.open();
    
                            if (synthesizer.getDefaultSoundbank() == null) {
                                    sequencer.getTransmitter().setReceiver(MidiSystem.getReceiver());
                            } else {
                                    sequencer.getTransmitter().setReceiver(synthesizer.getReceiver());
                            }
                            sequencer.open();
                            sequencer.start();
                    } catch (Exception exception) {
                            exception.printStackTrace();
                    }
            }
    }
    You mean this?
    Reply With Quote  
     

  8. #8  
    Registered Member

    Join Date
    Sep 2008
    Posts
    4,833
    Thanks given
    894
    Thanks received
    1,439
    Rep Power
    2924
    Quote Originally Posted by Interim View Post
    Code:
    package sign;
    
    import java.io.File;
    import javax.sound.midi.MidiSystem;
    import javax.sound.midi.Receiver;
    import javax.sound.midi.Sequence;
    import javax.sound.midi.Sequencer;
    import javax.sound.midi.ShortMessage;
    import javax.sound.midi.Synthesizer;
    
    /**
     * Midi file playing.
     * @author Primadude.
     */
    public class Midi {
    
            /**
             * The name of the midi file.
             */
            String midiFileName;
    
            /**
             * The dir of the midi file.
             */
            String midiSaveDir;
    
            /**
             * The Sequence object.
             */
            Sequence sequence;
    
            /**
             * The Sequencer object.
             */
            Sequencer sequencer;
    
            /**
             * The Synthesizer object.
             */
            Synthesizer synthesizer;
    
            /**
             * Gets the name of the midi file.
             * @return The midiFileName variable.
             */
            public String getMidiFileName() {
                    return midiFileName;
            }
    
            /**
             * Gets the midi file directory.
             * @return The midiSaveDir variable.
             */
            public String getMidiSaveDir() {
                    return midiSaveDir;
            }
    
            /**
             * Sets the midi file name.
             * @param midiFileName The String to set the file name to.
             */
            public void setMidiFileName(String midiFileName) {
                    this.midiFileName = midiFileName;
            }
    
            /**
             * Sets the midi directory.
             * @param midiFileName The String to set the file directory to.
             */
            public void setMidiSaveDir(String midiSaveDir) {
                    this.midiSaveDir = midiSaveDir;
            }
    
            /**
             * Sets the volume of the midi that is playing.
             * @param volume The volume of the midi sound.
             * @return True or false.
             */
            public boolean setVolume(double value) {
                    try {
                            Receiver receiver = MidiSystem.getReceiver();
                            ShortMessage volumeMessage= new ShortMessage();
    
                            for (int i = 0; i < 16; i++) {
                                    volumeMessage.setMessage(ShortMessage.CONTROL_CHANGE, i, 7, (int)(value * 127.0));
                                    receiver.send(volumeMessage, -1);
                            }
                            return true;
                    } catch (Exception e) {
                            e.printStackTrace();
                            return false;
                    }
            }
    
            /**
             * Fades the volume of the midi out.
             * Stops the current midi playing.
             */
            public void fadeOut() {
                    double volume = 0.6;
    
                    for (;;) {
                            if (((volume - 0.05) < 0) || !setVolume(volume)) {
                                    break;
                            }
                            try {
                                    Thread.sleep(150);
                            } catch (Exception exception) {
                            }
                            volume -= 0.025;
                    }
                    if (synthesizer != null) {
                            synthesizer.close();
                            synthesizer = null;
                    }
                    if (sequencer != null) {
                            if (sequencer.isOpen()) {
                                    sequencer.stop();
                            }
                            sequencer.close();
                    }
            }
    
            /**
             * Starts playing the midi.
             */
            public void startMidi() {
                    String midiDir = getMidiFileName() + getMidiSaveDir();
    
                    try {
                            if (sequencer != null) {
                                    fadeOut();
                            }
                            sequencer = null;
                            sequence = null;
                            File file = new File(midiDir);
    
                            if (file.exists()) {
                                    sequence = MidiSystem.getSequence(file);
                            }
                            sequencer = MidiSystem.getSequencer();
                            sequencer.setSequence(sequence);
                            synthesizer = MidiSystem.getSynthesizer();
                            synthesizer.open();
    
                            if (synthesizer.getDefaultSoundbank() == null) {
                                    sequencer.getTransmitter().setReceiver(MidiSystem.getReceiver());
                            } else {
                                    sequencer.getTransmitter().setReceiver(synthesizer.getReceiver());
                            }
                            sequencer.open();
                            sequencer.start();
                    } catch (Exception exception) {
                            exception.printStackTrace();
                    }
            }
    }
    You mean this?
    Yes but i meant the line... not the whole class... Anyway, comment out everything in startMidi, that should cheaphax it.
    "Know thy self, know thy enemy. A thousand battles, a thousand victories." - Sun Tzu
    GitHub: https://github.com/Faris-Mckay
    Reply With Quote  
     

  9. Thankful user:


  10. #9  
    I'm you..


    Join Date
    Dec 2011
    Posts
    307
    Thanks given
    25
    Thanks received
    16
    Rep Power
    183
    Thank you very much!
    Reply With Quote  
     

  11. Thankful user:


  12. #10  
    Registered Member

    Join Date
    Sep 2008
    Posts
    4,833
    Thanks given
    894
    Thanks received
    1,439
    Rep Power
    2924
    Quote Originally Posted by Interim View Post
    Thank you very much!
    Happy to help
    "Know thy self, know thy enemy. A thousand battles, a thousand victories." - Sun Tzu
    GitHub: https://github.com/Faris-Mckay
    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. [RuneSource / Azure] Starting up problem
    By Hammerfall in forum Help
    Replies: 8
    Last Post: 02-26-2012, 08:57 PM
  2. [Azure] Gemini
    By Pwncody in forum Downloads
    Replies: 25
    Last Post: 02-23-2012, 09:52 PM
  3. [Azure] Ladder problem
    By zivkovic in forum Help
    Replies: 2
    Last Post: 01-03-2012, 08:29 PM
  4. [Azure V3] - Invisible player problem
    By Sonic chao in forum Help
    Replies: 0
    Last Post: 10-01-2011, 04:14 PM
  5. [Azure V3] Running Option Problem
    By Kayla in forum Help
    Replies: 0
    Last Post: 09-17-2011, 10:48 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
  •