Dynamic spriter credits lust

This commit is contained in:
infinitefusion
2023-05-01 20:16:29 -04:00
parent e64df61a43
commit 11a6f7e6cc
32 changed files with 82 additions and 32 deletions

BIN
Audio/BGM/BW2_K_leader.mp3 Normal file

Binary file not shown.

Binary file not shown.

BIN
Audio/BGM/BattleWildK.ogg Normal file

Binary file not shown.

BIN
Audio/BGM/ancientbattle.mp3 Normal file

Binary file not shown.

BIN
Audio/BGM/champion_blue.mp3 Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -83,37 +83,8 @@ Pokémon Infinite Fusion Discord
Including massive contributions from these users: Including massive contributions from these users:
Toad 900#1617<s>Kiwi#4199 {SPRITER_CREDITS}
Aquatic#7954<s>Knuckles3&Knuckles#7559
Katten#7455<s>Blaquaza#1347
Blackboots#7369<s>Milchik#6233
Gdei#2810<s>Universez#0767
Scarecrow_924#8531<s>mammuth use ursaluna#3114
Kulgun#3323<s>Retrogamer#9934
Scrapi#6319<s>PinkYoshi#2350
Tomate#6670<s>Stan#3932
Xiapher#4244<s>Howls#4468
xoto#0766<s>xigzagoon#9354
Beespoon#2222<s>NeoSoup#6526
Sjoba_sheep#1111<s>Maelmc#9965
Thornsoflight#3245<s>Xillo#5236
pengu#6874<s>Mope7#1139
Gorky#1761<s>All-Seeing#9253
IGot50lbsOfTanneritelnMyAnus#4093<s>Emisys#4024
JamoJauhis#4971<s>Cheepoof#8815
Moon_Tah#2688<s>BButton#8097
Punko#1235<s>NakaMagic#0774
Tabarnak#2210<s>M4rcus#0928
Bubba-Rottweiler#7322<s>Keksgesicht#7133
Teamama#4369<s>BTT#3408
calicorn#6994<s>Pain T#3334
Taylor Mai#0134<s>Underuser#5401
AkumaDelta#2364<s>Scotsman#6299
GenoRhye#3335<s>(✿◠‿◠)Kanger#3997
JoshuLips#5010<s>GREEN#2016
SpiDrone#6590<s>Bizmythe#4062
Silver#4784<s>gnose_#6945
D'Octobre#2420<s>Tenedranox#5660
Other custom graphics: Other custom graphics:
@@ -250,7 +221,10 @@ _END_
plugin_credits << "\n" plugin_credits << "\n"
end end
CREDIT.gsub!(/\{INSERTS_PLUGIN_CREDITS_DO_NOT_REMOVE\}/, plugin_credits) CREDIT.gsub!(/\{INSERTS_PLUGIN_CREDITS_DO_NOT_REMOVE\}/, plugin_credits)
CREDIT.gsub!(/{SPRITER_CREDITS}/, format_names_for_game_credits())
credit_lines = CREDIT.split(/\n/) credit_lines = CREDIT.split(/\n/)
#------------------------------- #-------------------------------
# Make background and text sprites # Make background and text sprites
#------------------------------- #-------------------------------

View File

@@ -0,0 +1,38 @@
def export_music_use_map()
music_hash = Hash.new
for map_id in 1..796
mapInfos = load_data(sprintf("Data/Map%03d.rxdata", map_id))
bgm_name = mapInfos.bgm.name
map_name = Kernel.getMapName(map_id)
formatted_value = map_name + " [" + map_id.to_s + "]"
if music_hash.has_key?(bgm_name)
music_hash[bgm_name] << formatted_value
else
music_hash[bgm_name] = Array.new(1, formatted_value)
end
end
export_hash_to_csv(music_hash,"music_export.csv")
end
def export_hash_to_csv(hash, file_path)
# Open the file for writing
file = File.open(file_path, "w")
# Write the CSV header
file.puts "Key,Value"
# Write each key-value pair as a new line in the CSV file
hash.each do |key, values|
if key == ""
key = "(No value)"
end
# Join the values into a single string with newline characters
values_str = values.join("\n,")
file.puts "#{key},#{values_str}"
end
# Close the file
file.close
end

View File

@@ -11,6 +11,22 @@ def map_sprites_by_artist
return creditsMap return creditsMap
end end
def get_top_artists(nb_names=100)
filename = Settings::CREDITS_FILE_PATH
name_counts = Hash.new(0)
File.readlines(filename).each do |line|
name = line.strip.split(',')[1]
name_counts[name] += 1
end
name_counts.sort_by { |name, count| -count }.to_h
.first(nb_names)
.to_h
end
def analyzeSpritesList(spritesList, mostPopularCallbackVariable=1) def analyzeSpritesList(spritesList, mostPopularCallbackVariable=1)
pokemon_map = Hash.new pokemon_map = Hash.new
for spritename in spritesList for spritename in spritesList
@@ -94,3 +110,25 @@ def getSpriteCredits(spriteName)
end end
return nil return nil
end end
def formatList(list,separator)
formatted = ""
i =0
for element in list
formatted << element
formatted << separator if i < list.length
i+=1
end
end
def format_names_for_game_credits()
spriters_map = get_top_artists(50)
formatted = ""
for spriter in spriters_map.keys
line = spriter + "<s>" + spriters_map[spriter].to_s + " sprites\n"
formatted << line
end
return formatted
end

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.