basssiiie / openrct2-parkratinginspector Goto Github PK
View Code? Open in Web Editor NEWAn OpenRCT2 plugin that helps you break down your park rating.
License: MIT License
An OpenRCT2 plugin that helps you break down your park rating.
License: MIT License
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:
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?
Describe the bug
Upon loading a park, OpenRCT2 outputs this error message:
Failed to load plug-in script: Error: Invalid entity type.
To reproduce
Expected behavior
The plugin should load and work.
Notes
I suspect this is due to changes to the "peep", "guest", and "staff" entity types.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.