mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-06 06:01:46 +00:00
climbing gear + autosave fix
This commit is contained in:
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.
@@ -22,6 +22,7 @@ module Settings
|
|||||||
#Infinite fusion settings
|
#Infinite fusion settings
|
||||||
NB_POKEMON = 420
|
NB_POKEMON = 420
|
||||||
CUSTOM_BATTLERS_FOLDER = "Graphics/CustomBattlers/"
|
CUSTOM_BATTLERS_FOLDER = "Graphics/CustomBattlers/"
|
||||||
|
CUSTOM_BATTLERS_FOLDER_INDEXED = "Graphics/CustomBattlers/indexed"
|
||||||
BATTLERS_FOLDER = "Graphics/Battlers/"
|
BATTLERS_FOLDER = "Graphics/Battlers/"
|
||||||
FRONTSPRITE_POSITION_OFFSET = 20
|
FRONTSPRITE_POSITION_OFFSET = 20
|
||||||
FRONTSPRITE_SCALE = 0.6666666
|
FRONTSPRITE_SCALE = 0.6666666
|
||||||
|
|||||||
@@ -97,20 +97,20 @@ class PokeBattle_Scene
|
|||||||
when 2 then time = "night"
|
when 2 then time = "night"
|
||||||
end
|
end
|
||||||
# Put everything together into backdrop, bases and message bar filenames
|
# Put everything together into backdrop, bases and message bar filenames
|
||||||
backdropFilename = @battle.backdrop
|
backdropFilename = @battle.backdrop.downcase
|
||||||
baseFilename = @battle.backdrop
|
baseFilename = @battle.backdrop.downcase
|
||||||
baseFilename = sprintf("%s_%s",baseFilename,@battle.backdropBase) if @battle.backdropBase
|
baseFilename = sprintf("%s_%s",baseFilename,@battle.backdropBase).downcase if @battle.backdropBase
|
||||||
messageFilename = @battle.backdrop
|
messageFilename = @battle.backdrop.downcase
|
||||||
if time
|
if time
|
||||||
trialName = sprintf("%s_%s",backdropFilename,time)
|
trialName = sprintf("%s_%s",backdropFilename,time).downcase
|
||||||
if pbResolveBitmap(sprintf("Graphics/Battlebacks/"+trialName+"_bg"))
|
if pbResolveBitmap(sprintf("Graphics/Battlebacks/"+trialName+"_bg"))
|
||||||
backdropFilename = trialName
|
backdropFilename = trialName
|
||||||
end
|
end
|
||||||
trialName = sprintf("%s_%s",baseFilename,time)
|
trialName = sprintf("%s_%s",baseFilename,time).downcase
|
||||||
if pbResolveBitmap(sprintf("Graphics/Battlebacks/"+trialName+"_base0"))
|
if pbResolveBitmap(sprintf("Graphics/Battlebacks/"+trialName+"_base0"))
|
||||||
baseFilename = trialName
|
baseFilename = trialName
|
||||||
end
|
end
|
||||||
trialName = sprintf("%s_%s",messageFilename,time)
|
trialName = sprintf("%s_%s",messageFilename,time).downcase
|
||||||
if pbResolveBitmap(sprintf("Graphics/Battlebacks/"+trialName+"_message"))
|
if pbResolveBitmap(sprintf("Graphics/Battlebacks/"+trialName+"_message"))
|
||||||
messageFilename = trialName
|
messageFilename = trialName
|
||||||
end
|
end
|
||||||
@@ -119,7 +119,7 @@ class PokeBattle_Scene
|
|||||||
@battle.backdropBase
|
@battle.backdropBase
|
||||||
baseFilename = @battle.backdropBase
|
baseFilename = @battle.backdropBase
|
||||||
if time
|
if time
|
||||||
trialName = sprintf("%s_%s",baseFilename,time)
|
trialName = sprintf("%s_%s",baseFilename,time).downcase
|
||||||
if pbResolveBitmap(sprintf("Graphics/Battlebacks/"+trialName+"_base0"))
|
if pbResolveBitmap(sprintf("Graphics/Battlebacks/"+trialName+"_base0"))
|
||||||
baseFilename = trialName
|
baseFilename = trialName
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -27,6 +27,7 @@ end
|
|||||||
|
|
||||||
|
|
||||||
def Kernel.tryAutosave()
|
def Kernel.tryAutosave()
|
||||||
|
return if !$Trainer.save_slot
|
||||||
Kernel.Autosave if $game_switches[AUTOSAVE_ENABLED_SWITCH]
|
Kernel.Autosave if $game_switches[AUTOSAVE_ENABLED_SWITCH]
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -176,7 +176,7 @@ module GameData
|
|||||||
filename = sprintf("%s.%s.png", head_id, body_id)
|
filename = sprintf("%s.%s.png", head_id, body_id)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
customPath = pbResolveBitmap(Settings::CUSTOM_BATTLERS_FOLDER + "/" + head_id.to_s + "/" +filename)
|
customPath = pbResolveBitmap(Settings::CUSTOM_BATTLERS_FOLDER_INDEXED + "/" + head_id.to_s + "/" +filename)
|
||||||
species = getSpecies(dex_number)
|
species = getSpecies(dex_number)
|
||||||
use_custom = customPath && !species.always_use_generated
|
use_custom = customPath && !species.always_use_generated
|
||||||
if use_custom
|
if use_custom
|
||||||
|
|||||||
@@ -106,7 +106,7 @@ BATTLERSPATH = "Battlers"
|
|||||||
def GetSpritePath(poke1, poke2, isFused)
|
def GetSpritePath(poke1, poke2, isFused)
|
||||||
#Check if custom exists
|
#Check if custom exists
|
||||||
spritename = GetSpriteName(poke1, poke2, isFused)
|
spritename = GetSpriteName(poke1, poke2, isFused)
|
||||||
pathCustom = sprintf("Graphics/%s/%s/%s.png", DOSSIERCUSTOMSPRITES,poke2, spritename)
|
pathCustom = sprintf("Graphics/%s/indexed/%s/%s.png", DOSSIERCUSTOMSPRITES,poke2, spritename)
|
||||||
pathReg = sprintf("Graphics/%s/%s/%s.png", BATTLERSPATH, poke2, spritename)
|
pathReg = sprintf("Graphics/%s/%s/%s.png", BATTLERSPATH, poke2, spritename)
|
||||||
path = pbResolveBitmap(pathCustom) && $game_variables[196] == 0 ? pathCustom : pathReg
|
path = pbResolveBitmap(pathCustom) && $game_variables[196] == 0 ? pathCustom : pathReg
|
||||||
return path
|
return path
|
||||||
@@ -116,7 +116,7 @@ end
|
|||||||
def GetSpritePathForced(poke1, poke2, isFused)
|
def GetSpritePathForced(poke1, poke2, isFused)
|
||||||
#Check if custom exists
|
#Check if custom exists
|
||||||
spritename = GetSpriteName(poke1, poke2, isFused)
|
spritename = GetSpriteName(poke1, poke2, isFused)
|
||||||
pathCustom = sprintf("Graphics/%s/%s.png", DOSSIERCUSTOMSPRITES, spritename)
|
pathCustom = sprintf("Graphics/%s/indexed/%s/%s.png", DOSSIERCUSTOMSPRITES, poke2, spritename)
|
||||||
pathReg = sprintf("Graphics/%s/%s/%s.png", BATTLERSPATH, poke2, spritename)
|
pathReg = sprintf("Graphics/%s/%s/%s.png", BATTLERSPATH, poke2, spritename)
|
||||||
path = pbResolveBitmap(pathCustom) ? pathCustom : pathReg
|
path = pbResolveBitmap(pathCustom) ? pathCustom : pathReg
|
||||||
return path
|
return path
|
||||||
|
|||||||
@@ -23,22 +23,21 @@ def mainFunction
|
|||||||
end
|
end
|
||||||
|
|
||||||
def sortCustomBattlers()
|
def sortCustomBattlers()
|
||||||
customBattlersFolder = 'Graphics/CustomBattlers'
|
|
||||||
echo "Sorting CustomBattlers files..."
|
echo "Sorting CustomBattlers files..."
|
||||||
Dir.foreach(customBattlersFolder) do |filename|
|
Dir.foreach(Settings::CUSTOM_BATTLERS_FOLDER) do |filename|
|
||||||
next if filename == '.' or filename == '..'
|
next if filename == '.' or filename == '..'
|
||||||
next if !filename.end_with?(".png")
|
next if !filename.end_with?(".png")
|
||||||
headNum = filename.split('.')[0]
|
headNum = filename.split('.')[0]
|
||||||
oldPath = customBattlersFolder + "/" + filename
|
oldPath = Settings::CUSTOM_BATTLERS_FOLDER + "/" + filename
|
||||||
newPath = customBattlersFolder + "/" + headNum.to_s + "/" +filename
|
newPath = Settings::CUSTOM_BATTLERS_FOLDER_INDEXED + "/" + headNum.to_s + "/" +filename
|
||||||
echo "\n"
|
|
||||||
echo "Sorted " + filename + " into " + newPath
|
|
||||||
begin
|
begin
|
||||||
File.rename(oldPath, newPath)
|
File.rename(oldPath, newPath)
|
||||||
|
echo "\nSorted " + filename + " into " + newPath
|
||||||
rescue
|
rescue
|
||||||
echo "Could not sort "+ filename
|
echo "\nCould not sort "+ filename
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
echo "\nFinished sorting"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Binary file not shown.
BIN
Graphics/Battlebacks/unused_message.png
Normal file
BIN
Graphics/Battlebacks/unused_message.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 578 B |
Reference in New Issue
Block a user