FunkinCrew / Funkin

A rhythm game made with HaxeFlixel
https://www.newgrounds.com/portal/view/770371
Other
2.93k stars 2.29k forks source link

Bug Report: mod event getting unknown class errors #2510

Closed AcedGit closed 4 months ago

AcedGit commented 4 months ago

Whenever I try to open fnf with my mod event's file (.hxc), it always gives me unknown class errors even though the classes already exist in game source files Screenshot (133)

AcedGit commented 4 months ago

The imports in the code: "import flixel.tweens.FlxEase;

import funkin.play.PlayState; import funkin.play.event.SongEvent;

import funkin.modding.module.Module; import funkin.modding.module.ModuleHandler;

import funkin.data.song.SongData; import funkin.data.song.SongData.SongEventData;

import funkin.play.event.SongEvent; import funkin.data.event.SongEventSchema; import funkin.data.event.SongEventSchema.SongEventFieldType;

import funkin.play.notes.NoteSprite;"

AcedGit commented 4 months ago

FIGURED IT OUT Turns out you only need "import funkin.play.PlayState; import funkin.play.event.SongEvent;

import funkin.modding.module.Module; import funkin.modding.module.ModuleHandler;

import (whatever else you need from source files that is a class. Just not SongData)"

in your .hxc file quick note: the classes for your .hxc file can be located in FNF source files