ShadowMario / FNF-PsychEngine

Engine originally used on Mind Games mod
Apache License 2.0
1.15k stars 2.21k forks source link

Disabling base game songs. #15849

Closed NiftyAC closed 1 day ago

NiftyAC commented 1 day ago

What is your question?

How do I disable base game songs from psych engine 0.7.3 source code? I’ve tried a lot of things but they don’t work so I don’t know if there’s a specific way.

Lorekeeper49 commented 1 day ago

My original trick was to delete the week jsons, but the last time I did that, the engine kinda broke for some reason

NiftyAC commented 1 day ago

My original trick was to delete the week jsons, but the last time I did that, the engine kinda broke for some reason

Yeah I had to do that for my non compiled version. I just hope there's a way in the project.xml or something

DetectiveZ5 commented 1 day ago

My original trick was to delete the week jsons, but the last time I did that, the engine kinda broke for some reason

Yeah I had to do that for my non compiled version. I just hope there's a way in the project.xml or something

Did you actually check the full project.xml? There's a line there that you can delete so it can't include the whole base game files

<section if="officialBuild">
        <define name="TITLE_SCREEN_EASTER_EGG"/>
        <define name="BASE_GAME_FILES" /> <!-- The line that you're looking for and you want to delete -->
        <define name="VIDEOS_ALLOWED" if="windows || linux || android" unless="32bits"/>
</section>
NiftyAC commented 1 day ago

My original trick was to delete the week jsons, but the last time I did that, the engine kinda broke for some reason

Yeah I had to do that for my non compiled version. I just hope there's a way in the project.xml or something

Did you actually check the full project.xml?

There's a line there that you can delete so it can't include the whole base game files


<section if="officialBuild">

      <define name="TITLE_SCREEN_EASTER_EGG"/>

      <define name="BASE_GAME_FILES" /> <!-- The line that you're looking for and you want to delete -->

      <define name="VIDEOS_ALLOWED" if="windows || linux || android" unless="32bits"/>

</section>

I did delete the base game files thing but they still showed up in free play. I'll try again

DetectiveZ5 commented 1 day ago

If that still is the reason,

<section if="BASE_GAME_FILES">
    <assets path="assets/base_game" rename="assets" exclude="*.ogg" if="web"/>
    <assets path="assets/base_game" rename="assets" exclude="*.mp3"  unless="web"/>
    <haxelib name="grig.audio" if="BASE_GAME_FILES"/>
    <haxelib name="funkin.vis" if="BASE_GAME_FILES"/>
</section>

Delete the whole section that is above.

Also, what command do you type when you compile? Just asking

NiftyAC commented 1 day ago

If that still is the reason,


<section if="BASE_GAME_FILES">

  <assets path="assets/base_game" rename="assets" exclude="*.ogg" if="web"/>

  <assets path="assets/base_game" rename="assets" exclude="*.mp3"  unless="web"/>

  <haxelib name="grig.audio" if="BASE_GAME_FILES"/>

  <haxelib name="funkin.vis" if="BASE_GAME_FILES"/>

</section>

Delete the whole section that is above.

Also, what command do you type when you compile? Just asking

There's no mention of base game files in the project.xml but I use the "lime test windows" command.

DetectiveZ5 commented 1 day ago

If that still is the reason,

<section if="BASE_GAME_FILES">
  <assets path="assets/base_game" rename="assets" exclude="*.ogg" if="web"/>
  <assets path="assets/base_game" rename="assets" exclude="*.mp3"  unless="web"/>
  <haxelib name="grig.audio" if="BASE_GAME_FILES"/>
  <haxelib name="funkin.vis" if="BASE_GAME_FILES"/>
</section>

Delete the whole section that is above.

Also, what command do you type when you compile? Just asking

Well, found the reason. To just solve that, return the <define name="BASE_GAME_FILES" /> and just add <section if="BASE_GAME_FILES"> either below <section if="TITLE_SCREEN_EASTER_EGG"> or <section if="TRANSLATIONS_ALLOWED">. The reason is that the base game files mustn't add themselves to the game unless you used the lime test windows -D officialBuild command

DetectiveZ5 commented 1 day ago

Forgotten to mention is to also delete the bin folder since you will have to recompile the game again. It will be fast if you just deleted the bin file.

NiftyAC commented 1 day ago

Forgotten to mention is to also delete the bin folder since you will have to recompile the game again. It will be fast if you just deleted the bin file.

Where exactly do I add the base_game_files thing? I did it wrong and it says invalid xml data.

DetectiveZ5 commented 1 day ago

Can you share the project.xml file? I will just edit it myself

NiftyAC commented 1 day ago

Can you share the project.xml file? I will just edit it myself

it doesnt let me send the sml file itself so ill have to just paste the ocntents here

<?xml version="1.0" encoding="utf-8"?>

DetectiveZ5 commented 1 day ago
<app title="Friday Night Funkin': Psych Engine" file="PsychEngine"
    packageName="com.shadowmario.psychengine" package="com.shadowmario.psychengine" main="Main"
    version="0.2.8" company="ShadowMario" />

<!--Switch
Export with Unique ApplicationID and Icon-->
<set name="APP_ID" value="0x0100f6c013bbc000" />

<!-- NOTE TO SELF: DISABLE THIS IF ISSUES ARE FOUND -->
<haxedef name="LINC_LUA_RELATIVE_DYNAMIC_LIB" /> <!-- stable luas PUT AFTER FIRST LINE WITH APP NAME
AND ETC -->

<!--The
flixel preloader is not accurate in Chrome. You can use it regularly if you embed the swf into a
html file
    or you can set the actual size of your file manually at "FlxPreloaderBase-onUpdate-bytesTotal"-->
<!-- <app preloader="Preloader" resizable="true" /> -->
<app preloader="flixel.system.FlxPreloader" />

<!--Minimum
without FLX_NO_GAMEPAD: 11.8, without FLX_NO_NATIVE_CURSOR: 11.2-->
<set name="SWF_VERSION" value="11.8" />

<!-- ______________________ PSYCH ENGINE CUSTOMIZATION ______________________ -->

<define name="MODS_ALLOWED" if="desktop" />
<define name="HSCRIPT_ALLOWED" if="desktop" />
<define name="LUA_ALLOWED" if="desktop" />
<define name="ACHIEVEMENTS_ALLOWED" />
<define name="DISCORD_ALLOWED" />
<define name="PSYCH_WATERMARKS" /> <!-- DELETE THIS TO REMOVE WATERMARKS/DEV NAMES ON TITLE SCREEN -->

<section if="officialBuild">
    <define name="TITLE_SCREEN_EASTER_EGG" />
    <define name="BASE_GAME_FILES" />
    <define name="VIDEOS_ALLOWED" if="windows || linux || android" unless="32bits" /> <!-- IF YOU
    WANT TO USE VIDEOS ON YOUR SOURCE MOD, GET THIS LINE OUTSIDE OF THE SECTION -->
</section>

<!-- ____________________________ Window Settings ___________________________ -->

<!--These
window settings apply to all targets-->
<window width="1280" height="720" fps="" background="#000000" hardware="true" vsync="false" />

<!--HTML5-specific-->
<window if="html5" resizable="true" />

<!--Desktop-specific-->
<window if="desktop" orientation="landscape" fullscreen="false" resizable="true" vsync="false" />

<!--Mobile-specific-->
<window if="mobile" orientation="landscape" fullscreen="true" width="0" height="0" resizable="false" />

<!--Switch-specific-->
<window if="switch" orientation="landscape" fullscreen="true" width="0" height="0" resizable="true" />

<!-- _____________________________ Path Settings ____________________________ -->

<set name="BUILD_DIR" value="export/debug" if="debug" />
<set name="BUILD_DIR" value="export/release" unless="debug" />
<set name="BUILD_DIR" value="export/32bit" if="32bits" />

<classpath name="source" />

<!-- __________________________ Game Assets & Etc. __________________________ -->

<!-- Turn on Crash Handler -->
<define name="CRASH_HANDLER" if="desktop release" />

<!-- Assets -->
<assets path="assets/fonts" />
<assets path="assets/shared" exclude="*.ogg" if="web" />
<assets path="assets/shared" exclude="*.mp3" unless="web" />
<assets path="assets/videos" library="videos" if="VIDEOS_ALLOWED" />
<assets path="assets/songs" library="songs" exclude="*.ogg" if="web" />
<assets path="assets/songs" library="songs" exclude="*.mp3" unless="web" />
<assets path="assets/week_assets" library="week_assets" rename="assets" exclude="*.ogg" if="web" />
<assets path="assets/week_assets" library="week_assets" rename="assets" exclude="*.mp3" unless="web" />
<section if="TITLE_SCREEN_EASTER_EGG">
    <assets path="assets/secrets" rename="assets/shared" exclude="*.ogg" if="web" />
    <assets path="assets/secrets" rename="assets/shared" exclude="*.mp3" unless="web" />
</section>

<section if="BASE_GAME_FILES">
    <assets path="assets/base_game" rename="assets" exclude="*.ogg" if="web" />
    <assets path="assets/base_game" rename="assets" exclude="*.mp3" unless="web" />
</section>

<library name="videos" preload="true" if="VIDEOS_ALLOWED" />
<library name="songs" preload="true" />
<library name="week_assets" preload="true" />

<define name="CHECK_FOR_UPDATES" if="desktop officialBuild" />

<section if="MODS_ALLOWED">
    <assets path='example_mods' rename='mods' embed='false' />
</section>
<assets path='art/readme.txt' rename='do NOT readme.txt' />

<!-- _______________________________ Libraries ______________________________ -->

<haxelib name="flixel" />
<haxelib name="flixel-ui" />
<haxelib name="flixel-addons" />
<haxelib name="tjson" />

<!--Psych
stuff needed-->
<haxelib name="linc_luajit" if="LUA_ALLOWED" />
<haxelib name="SScript" if="HSCRIPT_ALLOWED" />
<haxelib name="hxCodec" if="VIDEOS_ALLOWED" />
<haxelib name="hxdiscord_rpc" if="DISCORD_ALLOWED" />
<haxelib name="flxanimate" />

<!-- Disable Discord IO Thread -->
<haxedef name="DISCORD_DISABLE_IO_THREAD" if="hxdiscord_rpc" />
<haxedef name="NO_PRECOMPILED_HEADERS" if="linux" />

<!-- Enables a terminal log prompt on debug builds -->
<haxelib name="hxcpp-debug-server" if="debug" />
<haxedef name="HXC_LIBVLC_LOGGING" if="VIDEOS_ALLOWED debug" />

<!-- ______________________________ Haxedefines _____________________________ -->

<!--Enable
the Flixel core recording system-->
<!--<haxedef
name="FLX_RECORD" />-->

<!--Disable
the right and middle mouse buttons-->
<!-- <haxedef name="FLX_NO_MOUSE_ADVANCED" /> -->

<!--Disable
the native cursor API on Flash-->
<!--<haxedef
name="FLX_NO_NATIVE_CURSOR" />-->

<!--Optimise
inputs, be careful you will get null errors if you don't use conditionals in your game-->
<!-- <haxedef name="FLX_NO_MOUSE" if="mobile" /> -->
<!-- <haxedef name="FLX_NO_KEYBOARD" if="mobile" /> -->
<!-- <haxedef name="FLX_NO_TOUCH" if="desktop" /> -->
<!--<haxedef
name="FLX_NO_GAMEPAD" />-->

<!--Disable
the Flixel core sound tray-->
<!--<haxedef
name="FLX_NO_SOUND_TRAY" />-->

<!--Disable
the Flixel sound management code-->
<!--<haxedef
name="FLX_NO_SOUND_SYSTEM" />-->

<!--Disable
the Flixel core focus lost screen-->
<haxedef name="FLX_NO_FOCUS_LOST_SCREEN" />

<!-- Show debug traces for hxCodec -->
<haxedef name="HXC_DEBUG_TRACE" if="debug" />

<!--Disable
the Flixel core debugger. Automatically gets set whenever you compile in release mode!-->
<haxedef name="FLX_NO_DEBUG" unless="debug" />

<!--Enable
this for Nape release builds for a serious peformance improvement-->
<haxedef name="NAPE_RELEASE_BUILD" unless="debug" />

<!--Used
for Izzy Engine's crash handler-->
<haxedef name="HXCPP_CHECK_POINTER" if="CRASH_HANDLER" />
<haxedef name="HXCPP_STACK_LINE" if="CRASH_HANDLER" />
<haxedef name="HXCPP_STACK_TRACE" if="CRASH_HANDLER" />

<!--Disable
deprecated warnings-->
<haxedef name='no-deprecation-warnings' />

<!--Macro
fixes-->
<haxeflag name="--macro" value="allowPackage('flash')" />
<haxeflag name="--macro" value="include('my.pack')" />

<!-- _________________________________ Custom _______________________________ -->

<!--Place
custom nodes like icons here (higher priority to override the HaxeFlixel icon)-->

<assets path='art/iconOG.png' rename='icon.png' if="linux" />

<icon path="art/icon16.png" size='16' />
<icon path="art/icon32.png" size='32' />
<icon path="art/icon64.png" size='64' />
<icon path="art/iconOG.png" />

Don't mind the spaces. I just have an auto-format extension installed in visual studio code.

NiftyAC commented 1 day ago
<app title="Friday Night Funkin': Psych Engine" file="PsychEngine"
  packageName="com.shadowmario.psychengine" package="com.shadowmario.psychengine" main="Main"
  version="0.2.8" company="ShadowMario" />

<!--Switch
Export with Unique ApplicationID and Icon-->
<set name="APP_ID" value="0x0100f6c013bbc000" />

<!-- NOTE TO SELF: DISABLE THIS IF ISSUES ARE FOUND -->
<haxedef name="LINC_LUA_RELATIVE_DYNAMIC_LIB" /> <!-- stable luas PUT AFTER FIRST LINE WITH APP NAME
AND ETC -->

<!--The
flixel preloader is not accurate in Chrome. You can use it regularly if you embed the swf into a
html file
  or you can set the actual size of your file manually at "FlxPreloaderBase-onUpdate-bytesTotal"-->
<!-- <app preloader="Preloader" resizable="true" /> -->
<app preloader="flixel.system.FlxPreloader" />

<!--Minimum
without FLX_NO_GAMEPAD: 11.8, without FLX_NO_NATIVE_CURSOR: 11.2-->
<set name="SWF_VERSION" value="11.8" />

<!-- ______________________ PSYCH ENGINE CUSTOMIZATION ______________________ -->

<define name="MODS_ALLOWED" if="desktop" />
<define name="HSCRIPT_ALLOWED" if="desktop" />
<define name="LUA_ALLOWED" if="desktop" />
<define name="ACHIEVEMENTS_ALLOWED" />
<define name="DISCORD_ALLOWED" />
<define name="PSYCH_WATERMARKS" /> <!-- DELETE THIS TO REMOVE WATERMARKS/DEV NAMES ON TITLE SCREEN -->

<section if="officialBuild">
  <define name="TITLE_SCREEN_EASTER_EGG" />
  <define name="BASE_GAME_FILES" />
  <define name="VIDEOS_ALLOWED" if="windows || linux || android" unless="32bits" /> <!-- IF YOU
  WANT TO USE VIDEOS ON YOUR SOURCE MOD, GET THIS LINE OUTSIDE OF THE SECTION -->
</section>

<!-- ____________________________ Window Settings ___________________________ -->

<!--These
window settings apply to all targets-->
<window width="1280" height="720" fps="" background="#000000" hardware="true" vsync="false" />

<!--HTML5-specific-->
<window if="html5" resizable="true" />

<!--Desktop-specific-->
<window if="desktop" orientation="landscape" fullscreen="false" resizable="true" vsync="false" />

<!--Mobile-specific-->
<window if="mobile" orientation="landscape" fullscreen="true" width="0" height="0" resizable="false" />

<!--Switch-specific-->
<window if="switch" orientation="landscape" fullscreen="true" width="0" height="0" resizable="true" />

<!-- _____________________________ Path Settings ____________________________ -->

<set name="BUILD_DIR" value="export/debug" if="debug" />
<set name="BUILD_DIR" value="export/release" unless="debug" />
<set name="BUILD_DIR" value="export/32bit" if="32bits" />

<classpath name="source" />

<!-- __________________________ Game Assets & Etc. __________________________ -->

<!-- Turn on Crash Handler -->
<define name="CRASH_HANDLER" if="desktop release" />

<!-- Assets -->
<assets path="assets/fonts" />
<assets path="assets/shared" exclude="*.ogg" if="web" />
<assets path="assets/shared" exclude="*.mp3" unless="web" />
<assets path="assets/videos" library="videos" if="VIDEOS_ALLOWED" />
<assets path="assets/songs" library="songs" exclude="*.ogg" if="web" />
<assets path="assets/songs" library="songs" exclude="*.mp3" unless="web" />
<assets path="assets/week_assets" library="week_assets" rename="assets" exclude="*.ogg" if="web" />
<assets path="assets/week_assets" library="week_assets" rename="assets" exclude="*.mp3" unless="web" />
<section if="TITLE_SCREEN_EASTER_EGG">
  <assets path="assets/secrets" rename="assets/shared" exclude="*.ogg" if="web" />
  <assets path="assets/secrets" rename="assets/shared" exclude="*.mp3" unless="web" />
</section>

<section if="BASE_GAME_FILES">
  <assets path="assets/base_game" rename="assets" exclude="*.ogg" if="web" />
  <assets path="assets/base_game" rename="assets" exclude="*.mp3" unless="web" />
</section>

<library name="videos" preload="true" if="VIDEOS_ALLOWED" />
<library name="songs" preload="true" />
<library name="week_assets" preload="true" />

<define name="CHECK_FOR_UPDATES" if="desktop officialBuild" />

<section if="MODS_ALLOWED">
  <assets path='example_mods' rename='mods' embed='false' />
</section>
<assets path='art/readme.txt' rename='do NOT readme.txt' />

<!-- _______________________________ Libraries ______________________________ -->

<haxelib name="flixel" />
<haxelib name="flixel-ui" />
<haxelib name="flixel-addons" />
<haxelib name="tjson" />

<!--Psych
stuff needed-->
<haxelib name="linc_luajit" if="LUA_ALLOWED" />
<haxelib name="SScript" if="HSCRIPT_ALLOWED" />
<haxelib name="hxCodec" if="VIDEOS_ALLOWED" />
<haxelib name="hxdiscord_rpc" if="DISCORD_ALLOWED" />
<haxelib name="flxanimate" />

<!-- Disable Discord IO Thread -->
<haxedef name="DISCORD_DISABLE_IO_THREAD" if="hxdiscord_rpc" />
<haxedef name="NO_PRECOMPILED_HEADERS" if="linux" />

<!-- Enables a terminal log prompt on debug builds -->
<haxelib name="hxcpp-debug-server" if="debug" />
<haxedef name="HXC_LIBVLC_LOGGING" if="VIDEOS_ALLOWED debug" />

<!-- ______________________________ Haxedefines _____________________________ -->

<!--Enable
the Flixel core recording system-->
<!--<haxedef
name="FLX_RECORD" />-->

<!--Disable
the right and middle mouse buttons-->
<!-- <haxedef name="FLX_NO_MOUSE_ADVANCED" /> -->

<!--Disable
the native cursor API on Flash-->
<!--<haxedef
name="FLX_NO_NATIVE_CURSOR" />-->

<!--Optimise
inputs, be careful you will get null errors if you don't use conditionals in your game-->
<!-- <haxedef name="FLX_NO_MOUSE" if="mobile" /> -->
<!-- <haxedef name="FLX_NO_KEYBOARD" if="mobile" /> -->
<!-- <haxedef name="FLX_NO_TOUCH" if="desktop" /> -->
<!--<haxedef
name="FLX_NO_GAMEPAD" />-->

<!--Disable
the Flixel core sound tray-->
<!--<haxedef
name="FLX_NO_SOUND_TRAY" />-->

<!--Disable
the Flixel sound management code-->
<!--<haxedef
name="FLX_NO_SOUND_SYSTEM" />-->

<!--Disable
the Flixel core focus lost screen-->
<haxedef name="FLX_NO_FOCUS_LOST_SCREEN" />

<!-- Show debug traces for hxCodec -->
<haxedef name="HXC_DEBUG_TRACE" if="debug" />

<!--Disable
the Flixel core debugger. Automatically gets set whenever you compile in release mode!-->
<haxedef name="FLX_NO_DEBUG" unless="debug" />

<!--Enable
this for Nape release builds for a serious peformance improvement-->
<haxedef name="NAPE_RELEASE_BUILD" unless="debug" />

<!--Used
for Izzy Engine's crash handler-->
<haxedef name="HXCPP_CHECK_POINTER" if="CRASH_HANDLER" />
<haxedef name="HXCPP_STACK_LINE" if="CRASH_HANDLER" />
<haxedef name="HXCPP_STACK_TRACE" if="CRASH_HANDLER" />

<!--Disable
deprecated warnings-->
<haxedef name='no-deprecation-warnings' />

<!--Macro
fixes-->
<haxeflag name="--macro" value="allowPackage('flash')" />
<haxeflag name="--macro" value="include('my.pack')" />

<!-- _________________________________ Custom _______________________________ -->

<!--Place
custom nodes like icons here (higher priority to override the HaxeFlixel icon)-->

<assets path='art/iconOG.png' rename='icon.png' if="linux" />

<icon path="art/icon16.png" size='16' />
<icon path="art/icon32.png" size='32' />
<icon path="art/icon64.png" size='64' />
<icon path="art/iconOG.png" />

Don't mind the spaces. I just have an auto-format extension installed in visual studio code.

Error: You must have a "project.xml" file or specify another valid project file when using the 'test' command

I probably added it wrong but I'm getting this now when that's in the project.xml

DetectiveZ5 commented 1 day ago

Can you show me the terminal prompts? And I MEAN ALL. Best if you also remove your username if you're compiling in your drive and if you want your identity to be safe

NiftyAC commented 1 day ago

Can you show me the terminal prompts? And I MEAN ALL. Best if you also remove your username if you're compiling in your drive and if you want your identity to be safe

PS C:\Users\beepl\Desktop\engines\fnf\Psych Engine\FNF-PsychEngine-0.7.3\FNF-PsychEngine-0.7.3> lime test windows Error: You must have a "project.xml" file or specify another valid project file when using the 'test' command PS C:\Users\beep\Desktop\engines\fnf\Psych Engine\FNF-PsychEngine-0.7.3\FNF-PsychEngine-0.7.3>

changed my user to beep

DetectiveZ5 commented 1 day ago

Can you type dir in there?

NiftyAC commented 1 day ago

Can you type dir in there?

where do I do that? is it dir and then the file path?

DetectiveZ5 commented 1 day ago

I mean in the terminal

NiftyAC commented 1 day ago

I mean in the terminal PS C:\Users\beep\Desktop\engines\fnf\Psych Engine\FNF-PsychEngine-0.7.3\FNF-PsychEngine-0.7.3> dir

Directory: C:\Users\beep\Desktop\engines\fnf\Psych Engine\FNF-PsychEngine-0.7.3\FNF-PsychEngine-0.7.3

Mode LastWriteTime Length Name


d----- 11/3/2024 1:08 AM .github d----- 11/3/2024 1:08 AM art d----- 11/3/2024 1:08 AM assets d----- 11/3/2024 1:08 AM docs d----- 11/3/2024 1:08 AM example_mods d----- 11/3/2024 1:09 AM export d----- 11/3/2024 1:08 AM setup d----- 11/3/2024 1:08 AM source -a---- 11/3/2024 1:08 AM 66 .gitattributes -a---- 11/3/2024 1:08 AM 638 .gitignore -a---- 11/3/2024 1:59 AM 1279 Build.py -a---- 11/3/2024 1:08 AM 3436 BUILDING.md -a---- 11/3/2024 1:34 AM 117 compile.bat -a---- 11/3/2024 1:08 AM 6 gitVersion.txt -a---- 11/3/2024 1:08 AM 1464 hmm.json -a---- 11/3/2024 1:08 AM 250 hxformat.json -a---- 11/3/2024 1:08 AM 11324 LICENSE -a---- 11/3/2024 11:20 AM 7021 Project.xml -a---- 11/3/2024 1:08 AM 5578 README.md

DetectiveZ5 commented 1 day ago

Yeah you probably didn't put the

<app title="Friday Night Funkin': Psych Engine" file="PsychEngine"
  packageName="com.shadowmario.psychengine" package="com.shadowmario.psychengine" main="Main"
  version="0.2.8" company="ShadowMario" />

<!--Switch
Export with Unique ApplicationID and Icon-->
<set name="APP_ID" value="0x0100f6c013bbc000" />

<!-- NOTE TO SELF: DISABLE THIS IF ISSUES ARE FOUND -->
<haxedef name="LINC_LUA_RELATIVE_DYNAMIC_LIB" /> <!-- stable luas PUT AFTER FIRST LINE WITH APP NAME
AND ETC -->

<!--The
flixel preloader is not accurate in Chrome. You can use it regularly if you embed the swf into a
html file
  or you can set the actual size of your file manually at "FlxPreloaderBase-onUpdate-bytesTotal"-->
<!-- <app preloader="Preloader" resizable="true" /> -->
<app preloader="flixel.system.FlxPreloader" />

<!--Minimum
without FLX_NO_GAMEPAD: 11.8, without FLX_NO_NATIVE_CURSOR: 11.2-->
<set name="SWF_VERSION" value="11.8" />

<!-- ______________________ PSYCH ENGINE CUSTOMIZATION ______________________ -->

<define name="MODS_ALLOWED" if="desktop" />
<define name="HSCRIPT_ALLOWED" if="desktop" />
<define name="LUA_ALLOWED" if="desktop" />
<define name="ACHIEVEMENTS_ALLOWED" />
<define name="DISCORD_ALLOWED" />
<define name="PSYCH_WATERMARKS" /> <!-- DELETE THIS TO REMOVE WATERMARKS/DEV NAMES ON TITLE SCREEN -->

<section if="officialBuild">
  <define name="TITLE_SCREEN_EASTER_EGG" />
  <define name="BASE_GAME_FILES" />
  <define name="VIDEOS_ALLOWED" if="windows || linux || android" unless="32bits" /> <!-- IF YOU
  WANT TO USE VIDEOS ON YOUR SOURCE MOD, GET THIS LINE OUTSIDE OF THE SECTION -->
</section>

<!-- ____________________________ Window Settings ___________________________ -->

<!--These
window settings apply to all targets-->
<window width="1280" height="720" fps="" background="#000000" hardware="true" vsync="false" />

<!--HTML5-specific-->
<window if="html5" resizable="true" />

<!--Desktop-specific-->
<window if="desktop" orientation="landscape" fullscreen="false" resizable="true" vsync="false" />

<!--Mobile-specific-->
<window if="mobile" orientation="landscape" fullscreen="true" width="0" height="0" resizable="false" />

<!--Switch-specific-->
<window if="switch" orientation="landscape" fullscreen="true" width="0" height="0" resizable="true" />

<!-- _____________________________ Path Settings ____________________________ -->

<set name="BUILD_DIR" value="export/debug" if="debug" />
<set name="BUILD_DIR" value="export/release" unless="debug" />
<set name="BUILD_DIR" value="export/32bit" if="32bits" />

<classpath name="source" />

<!-- __________________________ Game Assets & Etc. __________________________ -->

<!-- Turn on Crash Handler -->
<define name="CRASH_HANDLER" if="desktop release" />

<!-- Assets -->
<assets path="assets/fonts" />
<assets path="assets/shared" exclude="*.ogg" if="web" />
<assets path="assets/shared" exclude="*.mp3" unless="web" />
<assets path="assets/videos" library="videos" if="VIDEOS_ALLOWED" />
<assets path="assets/songs" library="songs" exclude="*.ogg" if="web" />
<assets path="assets/songs" library="songs" exclude="*.mp3" unless="web" />
<assets path="assets/week_assets" library="week_assets" rename="assets" exclude="*.ogg" if="web" />
<assets path="assets/week_assets" library="week_assets" rename="assets" exclude="*.mp3" unless="web" />
<section if="TITLE_SCREEN_EASTER_EGG">
  <assets path="assets/secrets" rename="assets/shared" exclude="*.ogg" if="web" />
  <assets path="assets/secrets" rename="assets/shared" exclude="*.mp3" unless="web" />
</section>

<section if="BASE_GAME_FILES">
  <assets path="assets/base_game" rename="assets" exclude="*.ogg" if="web" />
  <assets path="assets/base_game" rename="assets" exclude="*.mp3" unless="web" />
</section>

<library name="videos" preload="true" if="VIDEOS_ALLOWED" />
<library name="songs" preload="true" />
<library name="week_assets" preload="true" />

<define name="CHECK_FOR_UPDATES" if="desktop officialBuild" />

<section if="MODS_ALLOWED">
  <assets path='example_mods' rename='mods' embed='false' />
</section>
<assets path='art/readme.txt' rename='do NOT readme.txt' />

<!-- _______________________________ Libraries ______________________________ -->

<haxelib name="flixel" />
<haxelib name="flixel-ui" />
<haxelib name="flixel-addons" />
<haxelib name="tjson" />

<!--Psych
stuff needed-->
<haxelib name="linc_luajit" if="LUA_ALLOWED" />
<haxelib name="SScript" if="HSCRIPT_ALLOWED" />
<haxelib name="hxCodec" if="VIDEOS_ALLOWED" />
<haxelib name="hxdiscord_rpc" if="DISCORD_ALLOWED" />
<haxelib name="flxanimate" />

<!-- Disable Discord IO Thread -->
<haxedef name="DISCORD_DISABLE_IO_THREAD" if="hxdiscord_rpc" />
<haxedef name="NO_PRECOMPILED_HEADERS" if="linux" />

<!-- Enables a terminal log prompt on debug builds -->
<haxelib name="hxcpp-debug-server" if="debug" />
<haxedef name="HXC_LIBVLC_LOGGING" if="VIDEOS_ALLOWED debug" />

<!-- ______________________________ Haxedefines _____________________________ -->

<!--Enable
the Flixel core recording system-->
<!--<haxedef
name="FLX_RECORD" />-->

<!--Disable
the right and middle mouse buttons-->
<!-- <haxedef name="FLX_NO_MOUSE_ADVANCED" /> -->

<!--Disable
the native cursor API on Flash-->
<!--<haxedef
name="FLX_NO_NATIVE_CURSOR" />-->

<!--Optimise
inputs, be careful you will get null errors if you don't use conditionals in your game-->
<!-- <haxedef name="FLX_NO_MOUSE" if="mobile" /> -->
<!-- <haxedef name="FLX_NO_KEYBOARD" if="mobile" /> -->
<!-- <haxedef name="FLX_NO_TOUCH" if="desktop" /> -->
<!--<haxedef
name="FLX_NO_GAMEPAD" />-->

<!--Disable
the Flixel core sound tray-->
<!--<haxedef
name="FLX_NO_SOUND_TRAY" />-->

<!--Disable
the Flixel sound management code-->
<!--<haxedef
name="FLX_NO_SOUND_SYSTEM" />-->

<!--Disable
the Flixel core focus lost screen-->
<haxedef name="FLX_NO_FOCUS_LOST_SCREEN" />

<!-- Show debug traces for hxCodec -->
<haxedef name="HXC_DEBUG_TRACE" if="debug" />

<!--Disable
the Flixel core debugger. Automatically gets set whenever you compile in release mode!-->
<haxedef name="FLX_NO_DEBUG" unless="debug" />

<!--Enable
this for Nape release builds for a serious peformance improvement-->
<haxedef name="NAPE_RELEASE_BUILD" unless="debug" />

<!--Used
for Izzy Engine's crash handler-->
<haxedef name="HXCPP_CHECK_POINTER" if="CRASH_HANDLER" />
<haxedef name="HXCPP_STACK_LINE" if="CRASH_HANDLER" />
<haxedef name="HXCPP_STACK_TRACE" if="CRASH_HANDLER" />

<!--Disable
deprecated warnings-->
<haxedef name='no-deprecation-warnings' />

<!--Macro
fixes-->
<haxeflag name="--macro" value="allowPackage('flash')" />
<haxeflag name="--macro" value="include('my.pack')" />

<!-- _________________________________ Custom _______________________________ -->

<!--Place
custom nodes like icons here (higher priority to override the HaxeFlixel icon)-->

<assets path='art/iconOG.png' rename='icon.png' if="linux" />

<icon path="art/icon16.png" size='16' />
<icon path="art/icon32.png" size='32' />
<icon path="art/icon64.png" size='64' />
<icon path="art/iconOG.png" />

Don't mind the spaces. I just have an auto-format extension installed in visual studio code.

Yeah you probably need to paste it again. Check back to me again if it still doesn't

NiftyAC commented 1 day ago

Yeah you probably didn't put the

<app title="Friday Night Funkin': Psych Engine" file="PsychEngine"
    packageName="com.shadowmario.psychengine" package="com.shadowmario.psychengine" main="Main"
    version="0.2.8" company="ShadowMario" />

<!--Switch
Export with Unique ApplicationID and Icon-->
<set name="APP_ID" value="0x0100f6c013bbc000" />

<!-- NOTE TO SELF: DISABLE THIS IF ISSUES ARE FOUND -->
<haxedef name="LINC_LUA_RELATIVE_DYNAMIC_LIB" /> <!-- stable luas PUT AFTER FIRST LINE WITH APP NAME
AND ETC -->

<!--The
flixel preloader is not accurate in Chrome. You can use it regularly if you embed the swf into a
html file
    or you can set the actual size of your file manually at "FlxPreloaderBase-onUpdate-bytesTotal"-->
<!-- <app preloader="Preloader" resizable="true" /> -->
<app preloader="flixel.system.FlxPreloader" />

<!--Minimum
without FLX_NO_GAMEPAD: 11.8, without FLX_NO_NATIVE_CURSOR: 11.2-->
<set name="SWF_VERSION" value="11.8" />

<!-- ______________________ PSYCH ENGINE CUSTOMIZATION ______________________ -->

<define name="MODS_ALLOWED" if="desktop" />
<define name="HSCRIPT_ALLOWED" if="desktop" />
<define name="LUA_ALLOWED" if="desktop" />
<define name="ACHIEVEMENTS_ALLOWED" />
<define name="DISCORD_ALLOWED" />
<define name="PSYCH_WATERMARKS" /> <!-- DELETE THIS TO REMOVE WATERMARKS/DEV NAMES ON TITLE SCREEN -->

<section if="officialBuild">
    <define name="TITLE_SCREEN_EASTER_EGG" />
    <define name="BASE_GAME_FILES" />
    <define name="VIDEOS_ALLOWED" if="windows || linux || android" unless="32bits" /> <!-- IF YOU
    WANT TO USE VIDEOS ON YOUR SOURCE MOD, GET THIS LINE OUTSIDE OF THE SECTION -->
</section>

<!-- ____________________________ Window Settings ___________________________ -->

<!--These
window settings apply to all targets-->
<window width="1280" height="720" fps="" background="#000000" hardware="true" vsync="false" />

<!--HTML5-specific-->
<window if="html5" resizable="true" />

<!--Desktop-specific-->
<window if="desktop" orientation="landscape" fullscreen="false" resizable="true" vsync="false" />

<!--Mobile-specific-->
<window if="mobile" orientation="landscape" fullscreen="true" width="0" height="0" resizable="false" />

<!--Switch-specific-->
<window if="switch" orientation="landscape" fullscreen="true" width="0" height="0" resizable="true" />

<!-- _____________________________ Path Settings ____________________________ -->

<set name="BUILD_DIR" value="export/debug" if="debug" />
<set name="BUILD_DIR" value="export/release" unless="debug" />
<set name="BUILD_DIR" value="export/32bit" if="32bits" />

<classpath name="source" />

<!-- __________________________ Game Assets & Etc. __________________________ -->

<!-- Turn on Crash Handler -->
<define name="CRASH_HANDLER" if="desktop release" />

<!-- Assets -->
<assets path="assets/fonts" />
<assets path="assets/shared" exclude="*.ogg" if="web" />
<assets path="assets/shared" exclude="*.mp3" unless="web" />
<assets path="assets/videos" library="videos" if="VIDEOS_ALLOWED" />
<assets path="assets/songs" library="songs" exclude="*.ogg" if="web" />
<assets path="assets/songs" library="songs" exclude="*.mp3" unless="web" />
<assets path="assets/week_assets" library="week_assets" rename="assets" exclude="*.ogg" if="web" />
<assets path="assets/week_assets" library="week_assets" rename="assets" exclude="*.mp3" unless="web" />
<section if="TITLE_SCREEN_EASTER_EGG">
    <assets path="assets/secrets" rename="assets/shared" exclude="*.ogg" if="web" />
    <assets path="assets/secrets" rename="assets/shared" exclude="*.mp3" unless="web" />
</section>

<section if="BASE_GAME_FILES">
    <assets path="assets/base_game" rename="assets" exclude="*.ogg" if="web" />
    <assets path="assets/base_game" rename="assets" exclude="*.mp3" unless="web" />
</section>

<library name="videos" preload="true" if="VIDEOS_ALLOWED" />
<library name="songs" preload="true" />
<library name="week_assets" preload="true" />

<define name="CHECK_FOR_UPDATES" if="desktop officialBuild" />

<section if="MODS_ALLOWED">
    <assets path='example_mods' rename='mods' embed='false' />
</section>
<assets path='art/readme.txt' rename='do NOT readme.txt' />

<!-- _______________________________ Libraries ______________________________ -->

<haxelib name="flixel" />
<haxelib name="flixel-ui" />
<haxelib name="flixel-addons" />
<haxelib name="tjson" />

<!--Psych
stuff needed-->
<haxelib name="linc_luajit" if="LUA_ALLOWED" />
<haxelib name="SScript" if="HSCRIPT_ALLOWED" />
<haxelib name="hxCodec" if="VIDEOS_ALLOWED" />
<haxelib name="hxdiscord_rpc" if="DISCORD_ALLOWED" />
<haxelib name="flxanimate" />

<!-- Disable Discord IO Thread -->
<haxedef name="DISCORD_DISABLE_IO_THREAD" if="hxdiscord_rpc" />
<haxedef name="NO_PRECOMPILED_HEADERS" if="linux" />

<!-- Enables a terminal log prompt on debug builds -->
<haxelib name="hxcpp-debug-server" if="debug" />
<haxedef name="HXC_LIBVLC_LOGGING" if="VIDEOS_ALLOWED debug" />

<!-- ______________________________ Haxedefines _____________________________ -->

<!--Enable
the Flixel core recording system-->
<!--<haxedef
name="FLX_RECORD" />-->

<!--Disable
the right and middle mouse buttons-->
<!-- <haxedef name="FLX_NO_MOUSE_ADVANCED" /> -->

<!--Disable
the native cursor API on Flash-->
<!--<haxedef
name="FLX_NO_NATIVE_CURSOR" />-->

<!--Optimise
inputs, be careful you will get null errors if you don't use conditionals in your game-->
<!-- <haxedef name="FLX_NO_MOUSE" if="mobile" /> -->
<!-- <haxedef name="FLX_NO_KEYBOARD" if="mobile" /> -->
<!-- <haxedef name="FLX_NO_TOUCH" if="desktop" /> -->
<!--<haxedef
name="FLX_NO_GAMEPAD" />-->

<!--Disable
the Flixel core sound tray-->
<!--<haxedef
name="FLX_NO_SOUND_TRAY" />-->

<!--Disable
the Flixel sound management code-->
<!--<haxedef
name="FLX_NO_SOUND_SYSTEM" />-->

<!--Disable
the Flixel core focus lost screen-->
<haxedef name="FLX_NO_FOCUS_LOST_SCREEN" />

<!-- Show debug traces for hxCodec -->
<haxedef name="HXC_DEBUG_TRACE" if="debug" />

<!--Disable
the Flixel core debugger. Automatically gets set whenever you compile in release mode!-->
<haxedef name="FLX_NO_DEBUG" unless="debug" />

<!--Enable
this for Nape release builds for a serious peformance improvement-->
<haxedef name="NAPE_RELEASE_BUILD" unless="debug" />

<!--Used
for Izzy Engine's crash handler-->
<haxedef name="HXCPP_CHECK_POINTER" if="CRASH_HANDLER" />
<haxedef name="HXCPP_STACK_LINE" if="CRASH_HANDLER" />
<haxedef name="HXCPP_STACK_TRACE" if="CRASH_HANDLER" />

<!--Disable
deprecated warnings-->
<haxedef name='no-deprecation-warnings' />

<!--Macro
fixes-->
<haxeflag name="--macro" value="allowPackage('flash')" />
<haxeflag name="--macro" value="include('my.pack')" />

<!-- _________________________________ Custom _______________________________ -->

<!--Place
custom nodes like icons here (higher priority to override the HaxeFlixel icon)-->

<assets path='art/iconOG.png' rename='icon.png' if="linux" />

<icon path="art/icon16.png" size='16' />
<icon path="art/icon32.png" size='32' />
<icon path="art/icon64.png" size='64' />
<icon path="art/iconOG.png" />

Don't mind the spaces. I just have an auto-format extension installed in visual studio code.

Yeah you probably need to paste it again. Check back to me again if it still doesn't

just put this code into the project.xml or do I need to edit something?

DetectiveZ5 commented 1 day ago

Yeah nothing else

NiftyAC commented 1 day ago

Yeah nothing else

i still got the same error when i pasted that there.

DetectiveZ5 commented 1 day ago

Weird, are you actually compiling in that directory?

NiftyAC commented 1 day ago

Weird, are you actually compiling in that directory?

yeah. I'm opening a terminal directly from the directory and doing it there. i made sure it was the folder with the project.xml and everything.

DetectiveZ5 commented 1 day ago

This is weird. The best option that I can think of is that you re-install haxe and the libraries again. But I will have to research further if that doesn't work and you'll have to close this and make a new issue for this since this issue will already be closed for being out of topic on the question asked above and also of being too heated (meaning that the conversation is already too long for a simple issue)

NiftyAC commented 1 day ago

This is weird. The best option that I can think of is that you re-install haxe and the libraries again. But I will have to research further if that doesn't work and you'll have to close this and make a new issue for this since this issue will already be closed for being out of topic on the question asked above.

Okay. Thank you for your help though.

DetectiveZ5 commented 1 day ago

Hi there @NiftyAC! If you still have this issue unsolved, can you check #15856? I posted my help there to another person who has another issue like this. Also welcome for helping you again!

NiftyAC commented 1 day ago

Hi there @NiftyAC! If you still have this issue unsolved, can you check #15856? I posted my help there to another person who has another issue like this. Also welcome for helping you again!

I screenshotted the terminal prompt and will try tomorrow. Thank you very much.