miksel1 / FNF-ScrewedEngine

A Dave and Bambi Engine
Apache License 2.0
15 stars 9 forks source link

Upgrade on Freeplay Categories #20

Open PHGaming121 opened 1 year ago

PHGaming121 commented 1 year ago

What feature do you want to get added on the base engine?

like strident crisis:

loads all songs that are on the txt file

Example: all songs on SongsMain will be added on the main category

what do you think?

Edit: how the songs will be on the txt file Song Name - Difficulty - Freeplay Color (IN RGB) - icon name

Example Test - Easy,Normal,Hard - 0,0,255 - bf

To test your sight, and reliability, please select the option of what should NOT be requested.

Proper credit that was forgotten

PHGaming121 commented 1 year ago

@Wither362 i think i found something that can help for now

https://drive.google.com/file/d/1H7PEYT8hQ3_0zcaCUR5YHlGSU540BoQK/view?usp=share_link

https://drive.google.com/file/d/1xn6s8n0wtxlKSUiVcpFCG5aonKi0NmZS/view?usp=share_link

https://drive.google.com/file/d/1zmEI-UnvftHreNJOw6xFDODHtU_rvDc0/view?usp=sharing

Here is the tutorial: https://gamebanana.com/questions/2933

Wither362 commented 1 year ago

@Wither362 i think i found something that can help for now

https://drive.google.com/file/d/1H7PEYT8hQ3_0zcaCUR5YHlGSU540BoQK/view?usp=share_link

https://drive.google.com/file/d/1xn6s8n0wtxlKSUiVcpFCG5aonKi0NmZS/view?usp=share_link

https://drive.google.com/file/d/1zmEI-UnvftHreNJOw6xFDODHtU_rvDc0/view?usp=sharing

Here is the tutorial: https://gamebanana.com/questions/2933

That is by source. I’m thinking about creating a grid with all the sections, what do you think about it?

PHGaming121 commented 1 year ago

@Wither362 i think i found something that can help for now https://drive.google.com/file/d/1H7PEYT8hQ3_0zcaCUR5YHlGSU540BoQK/view?usp=share_link https://drive.google.com/file/d/1xn6s8n0wtxlKSUiVcpFCG5aonKi0NmZS/view?usp=share_link https://drive.google.com/file/d/1zmEI-UnvftHreNJOw6xFDODHtU_rvDc0/view?usp=sharing Here is the tutorial: https://gamebanana.com/questions/2933

That is by source. I’m thinking about creating a grid with all the sections, what do you think about it?

thats really good, but until it gets done, lets do the thing i suggested

Wither362 commented 1 year ago

@Wither362 i think i found something that can help for now

https://drive.google.com/file/d/1H7PEYT8hQ3_0zcaCUR5YHlGSU540BoQK/view?usp=share_link

https://drive.google.com/file/d/1xn6s8n0wtxlKSUiVcpFCG5aonKi0NmZS/view?usp=share_link

https://drive.google.com/file/d/1zmEI-UnvftHreNJOw6xFDODHtU_rvDc0/view?usp=sharing

Here is the tutorial: https://gamebanana.com/questions/2933

the gamebanana link is for animalCross*ng (copyright, just in case)

Wither362 commented 1 year ago

From where did you copied that code?

PHGaming121 commented 1 year ago

Just searched freeplay categories on Psych Engine

PHGaming121 commented 1 year ago

Just add a 4 on the end of the link

PHGaming121 commented 1 year ago

https://gamebanana.com/questions/29334

Wither362 commented 1 year ago

dude, I wanted to do it by myself... Btw, do you know how to make shaders? Because I don't...

Wither362 commented 1 year ago

Maybe it could be like this:

freeplaySongs.txt:

Dad Battle::Easy,Normal,Hard::Normal::255,255,255::icon-dad

So, documentation like this:

SongName::Difficulties::Default difficulty::Freeplay color (RGB)::Icon
PHGaming121 commented 1 year ago

just a fix:

add a trigger for opening a new category, like this:

--Main--, category-Main Tutorial::Easy,Normal,Hard::Normal::255,255,255::icon-gf

--Extra--, category-Extra Test::Easy,Normal,Hard::Normal::255,255,255::icon-bf-pixel

so...

--Category--, image of the category SongName::Difficulties::Default difficulty::Freeplay color (RGB)::Icon

Wither362 commented 1 year ago

just a fix:

add a trigger for opening a new category, like this:

--Main--, category-Main Tutorial::Easy,Normal,Hard::Normal::255,255,255::icon-gf

--Extra--, category-Extra Test::Easy,Normal,Hard::Normal::255,255,255::icon-bf-pixel

so...

--Category--, image of the category SongName::Difficulties::Default difficulty::Freeplay color (RGB)::Icon

Nope, I’m adding more txt files, using this code I just created: (it’s just a sketch, not really in function)

var newSections:Map<String, Array<SongMetaData>> = [
  'MAIN' => sections.get('MAIN')
]; // bla bla

for (modDataDirectory in FileSystem.directories(Paths.directories(Paths.allMods('data/'))))) {
  for (dynamics in modDataDirectory) {
    if(dynamics is Array<Dynamic>) { // it’s a directory
      continue;
    } else { // is a file
      if(dynamics.endsWith('.txt') && dynamics.contains('Songs')) {
      var sectionName:String = 'MAIN';
      sectionName = dynamics.replace('Songs.txt');
      if(newSections.exists(sectionName)) {
        for (songThing in Assets.getText(Paths.directories(Paths.currentModName))) {
          var songs = songThing.split('\n');
          for (song in songs) {
            addSong(bla la blah…);
          }
        }
      }
    }
  }
}
          //newSections.get(sectionName).push(

It isn’t finished, it’s just a sketch, I will add it to the main code at the weekend, for now, I will try to make it viable.

Wither362 commented 1 year ago

just a fix:

add a trigger for opening a new category, like this:

--Main--, category-Main Tutorial::Easy,Normal,Hard::Normal::255,255,255::icon-gf

--Extra--, category-Extra Test::Easy,Normal,Hard::Normal::255,255,255::icon-bf-pixel

so...

--Category--, image of the category SongName::Difficulties::Default difficulty::Freeplay color (RGB)::Icon

But that could also work

PHGaming121 commented 1 year ago

found a bug on FP: it shows only the main category with all the songs of the mod(including the extra and hidden songs)

can u fix that?

Wither362 commented 1 year ago

found a bug on FP: it shows only the main category with all the songs of the mod(including the extra and hidden songs)

can u fix that?

What what what what hwtahatw?

Wither362 commented 1 year ago

Any screenshots?

PHGaming121 commented 1 year ago

i already send them on discord, but i will send them there Captura de Tela (160) Captura de Tela (161) Captura de Tela (162)

Wither362 commented 1 year ago

i already send them on discord, but i will send them there Captura de Tela (160) Captura de Tela (161) Captura de Tela (162)

So the problem is when selecting the section, it doesn’t show up?

Wither362 commented 1 year ago

found a bug on FP: it shows only the main category with all the songs of the mod(including the extra and hidden songs)

can u fix that?

I could see what is the problem…

Imma fix that soon

Wither362 commented 1 year ago

FIXED

PHGaming121 commented 1 year ago

and now.... another bug i found: the video is on discord

basically, all the sections shows all the songs(example: main category shows all the songs in the mod)

idk what is happening lol

Wither362 commented 1 year ago

and now.... another bug i found: the video is on discord

basically, all the sections shows all the songs(example: main category shows all the songs in the mod)

idk what is happening lol

that is because: no one told me i had to do that!

PHGaming121 commented 1 year ago

@MemeHovy how do i fix null object reference on freeplay categories????????

moxie-coder commented 1 year ago

@MemeHovy how do i fix null object reference on freeplay categories????????

I thought I already fixed it?? you sure you're using the latest commit

PHGaming121 commented 1 year ago

ye.. i downloaded the latest commit and its not working

moxie-coder commented 1 year ago

hm, show the error (not the old one) @PHGaming121

PHGaming121 commented 1 year ago

Bruh, thats the same error

moxie-coder commented 1 year ago

oh...well let me see

moxie-coder commented 1 year ago

okay, I added a commit that should make the error less vague @PHGaming121

PHGaming121 commented 1 year ago

ok the sections are working again,but.... WHERE IS THE SONGS Captura de Tela (239)

moxie-coder commented 1 year ago

ok the sections are working again,but.... WHERE IS THE SONGS Captura de Tela (239)

hmm, here send me the mod so I can actually further examine this (it'd really help debug this issue)

PHGaming121 commented 1 year ago

i will send only the sections

MAIN

{ "name": "main", "image": "main", "songs": [ "sussus-moogus", "sabotage", "meltdown", "sussus-toogus", "lights-down", "reactor", "ejected", "mando", "dlow", "oversight", "danger", "double-kill", "defeat", "ashes", "magmatic", "boiling-point", "delusion", "blackout", "neurotic", "heartbeat", "pinkwave", "pretender", "identity-crisis", "finale" ], "position": 1 }

EXTRA

{ "name": "extra", "image": "extra", "songs": [ "sauces-moogus", "idk", "insane-streamer", "ow" ], "position": 2 }

HIDDEN

{ "name": "hidden", "image": "hidden", "songs": [ "top 10", "maxwell", "reality-breaking", "opposition", "thearchy" ], "position": 3 }

PHGaming121 commented 1 year ago

I COULD NOT ADD THE .json FILE

PHGaming121 commented 1 year ago

Captura de Tela (241) Captura de Tela (242) Captura de Tela (240)

so... here are the screenshots of the files in notepad

moxie-coder commented 1 year ago

okay

moxie-coder commented 1 year ago

I'll see what I can do with this

moxie-coder commented 1 year ago

just forgot about this, whoops