Git Product home page Git Product logo

old-school-runescape-cache-tools's People

Contributors

lequietriot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

old-school-runescape-cache-tools's Issues

Loading 700+ cache freezes the application

When you load a 700+ revision cache, like the 727 cache downloaded from here, the application freezes and you will be unable to click or open anything. When looking in Terminal, there seem to be no Exception messages...or anything at all for that matter.

Music Player: Use Custom SoundFont doesn't work

Program version: v.0.3.0-beta (jar version)
OS: Windows 10 Education 21H2
Java version:

java version "1.8.0_333"
Java(TM) SE Runtime Environment (build 1.8.0_333-b02)
Java HotSpot(TM) 64-Bit Server VM (build 25.333-b02, mixed mode)

When trying to render a MIDI file using a custom soundfont (both using a custom soundfont and the decoded soundfont created using this program), it doesn't let me and puts out this error:

Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
        at osrs.MusicPatch.mapSoundFontSamples(MusicPatch.java:1207)
        at osrs.MidiPcmStream.loadSoundFont(MidiPcmStream.java:869)
        at application.GUI.renderSong(GUI.java:519)
        at application.GUI.lambda$chooseMusicTrack$18(GUI.java:204)
        at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
        at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
        at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
        at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
        at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
        at java.awt.Component.processMouseEvent(Unknown Source)
        at javax.swing.JComponent.processMouseEvent(Unknown Source)
        at java.awt.Component.processEvent(Unknown Source)
        at java.awt.Container.processEvent(Unknown Source)
        at java.awt.Component.dispatchEventImpl(Unknown Source)
        at java.awt.Container.dispatchEventImpl(Unknown Source)
        at java.awt.Component.dispatchEvent(Unknown Source)
        at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
        at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
        at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
        at java.awt.Container.dispatchEventImpl(Unknown Source)
        at java.awt.Window.dispatchEventImpl(Unknown Source)
        at java.awt.Component.dispatchEvent(Unknown Source)
        at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
        at java.awt.EventQueue.access$500(Unknown Source)
        at java.awt.EventQueue$3.run(Unknown Source)
        at java.awt.EventQueue$3.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
        at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
        at java.awt.EventQueue$4.run(Unknown Source)
        at java.awt.EventQueue$4.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
        at java.awt.EventQueue.dispatchEvent(Unknown Source)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.run(Unknown Source)

Music Player: Playing music from cache doesn't work?

Program version: v.0.3.1-beta (jar version)
OS: Windows 10 Education 21H2
Java version:

java version "1.8.0_333"
Java(TM) SE Runtime Environment (build 1.8.0_333-b02)
Java HotSpot(TM) 64-Bit Server VM (build 25.333-b02, mixed mode)

When not loading a custom MIDI file, i expect that the music player is loading a track from cache. Especially when you enable "Shuffle Music".

Instead, you get this error message:

Exception in thread "Thread-2" java.lang.NullPointerException
        at java.util.Objects.requireNonNull(Unknown Source)
        at osrs.MusicTrack.readTrackFromString(MusicTrack.java:453)
        at application.GUI.lambda$initSoundEngine$29(GUI.java:576)
        at java.lang.Thread.run(Unknown Source)

Selecting Index 6 or any file under the archives doesn't work either. Switching the index in the music player to 11 only plays a track similar to the cutscene after you completed the starter quest of 'Receipe for Disaster'. It doesn't shuffle to any other track after playing that track, it will only loop to that track.

This issue is perceived on any cache (Old School RuneScape and RSHD).

The only workaround for playing RuneScape tracks after each other or playing in shuffle mode is loading the custom MIDI files and load an another one. But it's not how it should work i think.

Changing Settings of the Music Player don't apply

Version: 0.2.0 (Jar file)

If you change a value like the volume or sample rate value, the setting doesn't apply when pressing Enter or leaving the input field.
I tested this by changing these values and then rendering a MIDI to a file. The sample rate is still the original and the volume has been unchanged.

It also seems the Music Player doesn't work sometimes after loading the cache with playing or exporting MIDI files to file, if iexport a MIDI file from the cache afterwards from example, then it will play the MIDI file and you can export it, although if you change a value, the changed value don't apply to the exported file when exporting again.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.