Giter VIP home page Giter VIP logo

openrct2-parkratinginspector's People

Contributors

basssiiie avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

openrct2-parkratinginspector's Issues

[ParkRatingInspector] TypeError: undefined not callable (property 'parseInt' of [object Function])

Describe the bug
On the latest stable version (0.3.5.1) the plugin does not work, and throws an error in the console.

To reproduce
Steps to reproduce the behavior:

  1. Download the latest Linux .AppImage (version 0.3.5.1)
  2. Install the plugin
  3. Start a new scenario or load a save game
  4. Try to open the plugin
  5. Plugin does not open

Expected behavior
The plugin should open and work

Screenshots
Rather than screenshots, have this console output. I compiled my own version so it shows a stack trace, but normally it only shows the first line:

[ParkRatingInspector] TypeError: undefined not callable (property 'parseInt' of [object Function])
   -> i(): line 58
   -> <anonymous>: line 31
   -> <anonymous>: line 39
   -> <anonymous>: line 364
   -> W(): line 501
   -> <anonymous>: line 520
   -> <anonymous>: line 531
   -> window(): line 801
   -> <anonymous>: line 802

The (non-minified) relevant code is:

    function i(s, c, h) {
        if (void 0 === c && (c = 0), void 0 === h && (h = 0), void 0 === s) return [ c, h ];
        if ('number' == typeof s) return [ s, 2 ];
        var l = s.trim(), f = l.length;
        if (f > 1) {
            var v = f - 1, y = void 0, x = l[v];
            if ('w' === x ? y = 2 : '%' === x ? y = 1 : f > 2 && (v = f - 2, 'x' === x && 'p' === l[v] && (y = 0)),
            void 0 !== y) return [ Number.parseInt(l.substring(0, v)), y ];
        }
        throw new Error('Value \'' + s + '\' is not a valid scale.');
    }

The Number.parseInt statement is what causes the error. This seems to originate from "openrct2-fluentui", and the line in question was very recently touched by you in Basssiiie/OpenRCT2-FlexUI@524d9ab .

Are we missing some kind of bugfix, or update for this dependency?

Failed to load plug-in script: Error: Invalid entity type.

Describe the bug
Upon loading a park, OpenRCT2 outputs this error message:

Failed to load plug-in script: Error: Invalid entity type.

To reproduce

  1. Install the latest OpenRCT2 (0.3.4.1)
  2. Install ParkRatingInspector
  3. Run openrct2.com
  4. Start a new scenario
  5. ParkRatingInspector is not loaded
  6. See the output from openrct2.com

Expected behavior
The plugin should load and work.

Notes
I suspect this is due to changes to the "peep", "guest", and "staff" entity types.

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.