ThatRozebudDude / FPS-Plus-Public

Other
102 stars 103 forks source link

Problems with compiling #56

Closed GhostBnuuy closed 11 months ago

GhostBnuuy commented 1 year ago

I tried to compile FPS Plus and I got this error C:/HaxeToolkit/haxe/lib/flixel/5,2,1/flixel/graphics/tile/FlxDrawBaseItem.hx:9: characters 8-32 : Type not found : openfl.display.Tilesheet

I've tried downgrading flixel but i keep getting the same error, am I doing something wrong here? These are the libraries I'm using:

image

ThatRozebudDude commented 1 year ago

This appears to be a similar issue to this. Take a look and see if it helps.

GhostBnuuy commented 12 months ago

Yeah it's not working, I added <haxedef name="FLX_DRAW_QUADS" /> in Project.xml but I get this error

C:/HaxeToolkit/haxe/lib/flixel/5,2,2/flixel/system/macros/FlxDefines.hx:121: characters 59-63 : FLX_DRAW_QUADS can only be defined by flixel.

SanicBTW commented 12 months ago

That means that only Flixel can change that FlxDefine and is not part of the user defines

SanicBTW commented 12 months ago

You can override https://github.com/HaxeFlixel/flixel/blob/dev/flixel/system/macros/FlxDefines.hx and in user defines add FLX_DRAW_QUADS so you can modify it but could lead to unwanted behaviour (although FLX_DRAW_QUADS should be defined by default)

private enum UserDefines
{
    FLX_NO_MOUSE_ADVANCED;
    FLX_NO_GAMEPAD;
    FLX_NO_NATIVE_CURSOR;
    FLX_NO_MOUSE;
    FLX_NO_TOUCH;
    FLX_NO_KEYBOARD;
    FLX_NO_SOUND_SYSTEM;
    FLX_NO_SOUND_TRAY;
    FLX_NO_FOCUS_LOST_SCREEN;
    FLX_NO_DEBUG;
    FLX_RECORD;
    FLX_UNIT_TEST;
    /* additional rendering define */
    FLX_RENDER_TRIANGLE;
    FLX_DRAW_QUADS;
    /* Uses flixel 4.0 legacy collision */
    FLX_4_LEGACY_COLLISION;
    /* Simplifies FlxPoint but can increase GC frequency */
    FLX_NO_POINT_POOL;
    FLX_NO_PITCH;
    FLX_NO_SAVE;
}