Closed Lethrial closed 5 months ago
Importing works different in HScript, with "class path", not by module.
you need to import like
import funkin.play.character.CharacterDataParser;
not
import funkin.play.character.CharacterData.CharacterDataParser;
CharacterData
is the module, but it has to be skipped when importing in hscript.
I hope Eric finds some kind of fix for that, would be awesome
Ah I see, thank you so much for the help!
Please check for duplicates or similar issues, as well performing simple troubleshooting steps (such as clearing cookies, clearing AppData, trying another browser) before submitting an issue.
If you are playing the game in a browser, what site are you playing it from?
If you are playing the game in a browser, what browser are you using?
What version of the game are you using? Look in the bottom left corner of the main menu. (ex: 0.2.7, 0.2.1, shit like that)
0.3.3
Have you identified any steps to reproduce the bug? If so, please describe them below in as much detail as possible. Use images if possible.
Write a script importing any class or enum from
CharacterData
(e.g.import funkin.play.character.CharacterData.CharacterDataParser;
)Please describe your issue. Provide extensive detail and images if possible.
When attempting to import a class from
CharacterData
using HScript, an error message pops up saying that the class doesn't exist.Here's the script I've been working on for reference:
If there's any workaround for loading a character without importing CharacterData then please let me know! I'd appreciate any and all help.
If you're game is FROZEN and you're playing a web version, press F12 to open up browser dev window, and go to console, and copy-paste whatever red error you're getting