SomeGuyWhoLovesCoding / Zenith-FNF-Public

This FNF was originally going to be a zenith-midi clone that'll only render a fnf song with the visual chart to video.
Other
7 stars 0 forks source link

Question #2

Closed cyklusiguess closed 5 months ago

cyklusiguess commented 5 months ago

Will you make it compatible with Linux someday? (I didn't even compile it yet but I still want to know.)

cyklusiguess commented 5 months ago

Also make a bash version of the chart converter batch file.

i'm lazy afff

Oh well, I can try to make my own

or just ask chatgeepeetee :fire:

SomeGuyWhoLovesCoding commented 5 months ago

Also make a bash version of the chart converter batch file.

i'm lazy afff

Oh well, I can try to make my own

or just ask chatgeepeetee 🔥

That's actually what I'm doing LMAO

cyklusiguess commented 5 months ago

Also make a bash version of the chart converter batch file.

i'm lazy afff

Oh well, I can try to make my own

or just ask chatgeepeetee 🔥

That's actually what I'm doing LMAO

damn, do you have discord?

SomeGuyWhoLovesCoding commented 5 months ago

Now test it!

#!/bin/bash

echo "What song would you like to play?"
read -r s

echo
echo "What song difficulty? (blank for none)"
read -r d

echo
echo "Starting..."
echo

Zenith-FNF "$s" "$d"
cyklusiguess commented 5 months ago

Now test it!

#!/bin/bash

echo "What song would you like to play?"
read -r s

echo
echo "What song difficulty? (blank for none)"
read -r d

echo
echo "Starting..."
echo

Zenith-FNF "$s" "$d"

it'll say that the command isn't found, that's why i included the build directory in my bash script

SomeGuyWhoLovesCoding commented 5 months ago

Now it gets the file directory

#!/bin/bash

# Get the directory of the script
script_dir=$(dirname "$0")

echo "What song would you like to play?"
read -r s

echo
echo "What song difficulty? (blank for none)"
read -r d

echo
echo "Starting..."
echo

# Execute the command using the full path
"${script_dir}/Zenith-FNF" "$s" "$d"
SomeGuyWhoLovesCoding commented 5 months ago

So now you don't have to include it manually by editing the script

cyklusiguess commented 5 months ago

tell the ai that the directory is "/home/cyklus/Zenith-FNF-Public/export/release/linux/bin/Zenith-FNF", the last 2 lines confused my brain for some reason

SomeGuyWhoLovesCoding commented 5 months ago

So now you don't have to include it manually by editing the script

Do keep in mind however, that I've never had a linux and only have a windows 10. Funny story: My dad was fixing a mac laptop that was high resolution for a guy while I was in the house for about 2 months back then

SomeGuyWhoLovesCoding commented 5 months ago

tell the ai that the directory is "/home/cyklus/Zenith-FNF-Public/export/release/linux/bin/Zenith-FNF", the last 2 lines confused my brain for some reason

If the last 2 lines confused you, just leave it amd test the scripts.

cyklusiguess commented 5 months ago

tell the ai that the directory is "/home/cyklus/Zenith-FNF-Public/export/release/linux/bin/Zenith-FNF", the last 2 lines confused my brain for some reason

If the last 2 lines confused you, just leave it amd test the scripts.

you could make a vm and try Zenith FNF on there

cyklusiguess commented 5 months ago

i recommend arch linux, it's a cool ass distro

SomeGuyWhoLovesCoding commented 5 months ago

tell the ai that the directory is "/home/cyklus/Zenith-FNF-Public/export/release/linux/bin/Zenith-FNF", the last 2 lines confused my brain for some reason

If the last 2 lines confused you, just leave it amd test the scripts.

you could make a vm and try Zenith FNF on there

You know that pre-built vm's are discontinued right? They're not downloadable anymore. Plus, I did use a windows virtual machine to try out corrupt's mayhem on there. It did take over 1.5 hours of preparation to do.

SomeGuyWhoLovesCoding commented 5 months ago

tell the ai that the directory is "/home/cyklus/Zenith-FNF-Public/export/release/linux/bin/Zenith-FNF", the last 2 lines confused my brain for some reason

If the last 2 lines confused you, just leave it amd test the scripts.

you could make a vm and try Zenith FNF on there

You know that pre-built vm's are discontinued right? They're not downloadable anymore. Plus, I did use a windows virtual machine to try out corrupt's mayhem on there. It did take over 1.5 hours of preparation to do.

And that was while back

cyklusiguess commented 5 months ago

tell the ai that the directory is "/home/cyklus/Zenith-FNF-Public/export/release/linux/bin/Zenith-FNF", the last 2 lines confused my brain for some reason

If the last 2 lines confused you, just leave it amd test the scripts.

you could make a vm and try Zenith FNF on there

You know that pre-built vm's are discontinued right? They're not downloadable anymore. Plus, I did use a windows virtual machine to try out corrupt's mayhem on there. It did take over 1.5 hours of preparation to do.

then just make your own vm :joy: (not trying to be rude)

SomeGuyWhoLovesCoding commented 5 months ago

tell the ai that the directory is "/home/cyklus/Zenith-FNF-Public/export/release/linux/bin/Zenith-FNF", the last 2 lines confused my brain for some reason

If the last 2 lines confused you, just leave it amd test the scripts.

you could make a vm and try Zenith FNF on there

You know that pre-built vm's are discontinued right? They're not downloadable anymore. Plus, I did use a windows virtual machine to try out corrupt's mayhem on there. It did take over 1.5 hours of preparation to do.

then just make your own vm 😂 (not trying to be rude)

No. Absolutely not.

cyklusiguess commented 5 months ago

Now it gets the file directory

#!/bin/bash

# Get the directory of the script
script_dir=$(dirname "$0")

echo "What song would you like to play?"
read -r s

echo
echo "What song difficulty? (blank for none)"
read -r d

echo
echo "Starting..."
echo

# Execute the command using the full path
"${script_dir}/Zenith-FNF" "$s" "$d"

./play_song.sh: line 18: ./Zenith-FNF: No such file or directory

SomeGuyWhoLovesCoding commented 5 months ago

Now

Now it gets the file directory

#!/bin/bash

# Get the directory of the script
script_dir=$(dirname "$0")

echo "What song would you like to play?"
read -r s

echo
echo "What song difficulty? (blank for none)"
read -r d

echo
echo "Starting..."
echo

# Execute the command using the full path
"${script_dir}/Zenith-FNF" "$s" "$d"

./play_song.sh: line 18: ./Zenith-FNF: No such file or directory

LOL

SomeGuyWhoLovesCoding commented 5 months ago

Idk then, I'll figure it out myself soon.

cyklusiguess commented 5 months ago

chatgeepeetee is dumbass

SomeGuyWhoLovesCoding commented 5 months ago

Yeah it clearly doesn't fuckin do its job right

SomeGuyWhoLovesCoding commented 5 months ago

Anyway, try to compile on mac.

cyklusiguess commented 5 months ago

also i finally understood the bash script, i changed the directory and still doesn't work /shrug

cyklusiguess commented 5 months ago

Anyway, try to compile on mac.

??? why??

SomeGuyWhoLovesCoding commented 5 months ago

Anyway, try to compile on mac.

??? why??

Incase mac users also want to play the engine

cyklusiguess commented 5 months ago

okay

cyklusiguess commented 5 months ago

same thing with the neko thing

cyklusiguess commented 5 months ago

You cannot access the cpp package while targeting neko (for cpp.vm.Gc)

cyklusiguess commented 5 months ago

https://gamebanana.com/questions/18477

seems like someone has the same issue

cyklusiguess commented 5 months ago

wait wrong link

cyklusiguess commented 5 months ago

fuck it is the right one

cyklusiguess commented 5 months ago

image

https://gamebanana.com/questions/38759

SomeGuyWhoLovesCoding commented 5 months ago

You cannot access the cpp package while targeting neko (for cpp.vm.Gc)

There's a neko gc but it's very limited so yeah it'll act differently from cpp's (the same goes with hl's), so here's a function to call gc in main.

#if neko
neko.vm.Gc.run(false);
#elseif hl
hl.Gc.enable(false);
hl.Gc.major();
#elseif cpp
cpp.vm.Gc.enable(false);
cpp.vm.Gc.compact();
#end
cyklusiguess commented 5 months ago

You cannot access the cpp package while targeting neko (for cpp.vm.Gc)

There's a neko gc but it's very limited so yeah it'll act differently from cpp's (the same goes with hl's), so here's a function to call gc in main.

#if neko
neko.vm.Gc.run(false);
#elseif hl
hl.Gc.enable(false);
hl.Gc.major();
#elseif cpp
cpp.vm.Gc.enable(false);
cpp.vm.Gc.compact();
#end

where do i put this?

SomeGuyWhoLovesCoding commented 5 months ago

Replace that line the error was thrown with that and compile.

SomeGuyWhoLovesCoding commented 5 months ago

You cannot access the cpp package while targeting neko (for cpp.vm.Gc)

I mean this

cyklusiguess commented 5 months ago

wait it is line 123

and line 123 is literally the fps :skull:

cyklusiguess commented 5 months ago

fpsTxt.text = 'FPS: ' + inline Std.int(fps) + ' (MAX: ' + inline Std.int(fpsMax) + ')\nMEM: ' + inline flixel.util.FlxStringUtil.formatBytes(cpp.vm.Gc.memInfo(3));

cyklusiguess commented 5 months ago

in Main.hx

SomeGuyWhoLovesCoding commented 5 months ago

Yeah, that's cpp exclusive so replace cpp.vm.Gc.memInfo(3) with:

#if neko neko.vm.Gc.stats().heap #elseif hl hl.Gc. stats().currentMemory #elseif cpp cpp.vm.Gc.memInfo(3) #end
cyklusiguess commented 5 months ago
source/zenith/gameplay/Gameplay.hx:891: characters 17-54 : Function indexOf cannot be inlined because of a not final return
source/zenith/gameplay/Gameplay.hx:915: characters 17-54 : Function indexOf cannot be inlined because of a not final return
source/zenith/gameplay/Gameplay.hx:363: characters 21-48 : Null<Int> should be Null<String>
source/zenith/gameplay/Gameplay.hx:402: characters 23-50 : Null<Int> should be Null<String>
source/zenith/gameplay/Gameplay.hx:431: characters 19-46 : Null<Int> should be Null<String>
SomeGuyWhoLovesCoding commented 5 months ago
source/zenith/gameplay/Gameplay.hx:891: characters 17-54 : Function indexOf cannot be inlined because of a not final return
source/zenith/gameplay/Gameplay.hx:915: characters 17-54 : Function indexOf cannot be inlined because of a not final return
source/zenith/gameplay/Gameplay.hx:363: characters 21-48 : Null<Int> should be Null<String>
source/zenith/gameplay/Gameplay.hx:402: characters 23-50 : Null<Int> should be Null<String>
source/zenith/gameplay/Gameplay.hx:431: characters 19-46 : Null<Int> should be Null<String>

Okay I'll patch that issue LOL

cyklusiguess commented 5 months ago

higyfujrntekwqdlmc,

SomeGuyWhoLovesCoding commented 5 months ago

Patched!

SomeGuyWhoLovesCoding commented 5 months ago

Now you can compile on mac

cyklusiguess commented 5 months ago

do i need to git clone again

SomeGuyWhoLovesCoding commented 5 months ago

do i need to git clone again

Yeah, I committed

cyklusiguess commented 5 months ago

tugvfbhyjnkml ok

JordanSantiagoYT commented 5 months ago

i return

cyklusiguess commented 5 months ago

i return

hey jrdodan