mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-06 06:01:46 +00:00
Fixes bug preventing game from downloading newest sprites
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.
@@ -59,8 +59,8 @@ module Settings
|
|||||||
HTTP_CONFIGS_FILE_URL = "https://raw.githubusercontent.com/infinitefusion/pif-downloadables/refs/heads/master/Settings.rb"
|
HTTP_CONFIGS_FILE_URL = "https://raw.githubusercontent.com/infinitefusion/pif-downloadables/refs/heads/master/Settings.rb"
|
||||||
HTTP_CONFIGS_FILE_PATH = "Data/Scripts/DownloadedSettings.rb"
|
HTTP_CONFIGS_FILE_PATH = "Data/Scripts/DownloadedSettings.rb"
|
||||||
|
|
||||||
SPRITES_FILE_URL = "https://raw.githubusercontent.com/infinitefusion/infinitefusion-e18/main/Data/CUSTOM_SPRITES"
|
SPRITES_FILE_URL = "https://raw.githubusercontent.com/infinitefusion/infinitefusion-e18/main/Data/sprites/CUSTOM_SPRITES"
|
||||||
BASE_SPRITES_FILE_URL = "https://raw.githubusercontent.com/infinitefusion/infinitefusion-e18/main/Data/BASE_SPRITES"
|
BASE_SPRITES_FILE_URL = "https://raw.githubusercontent.com/infinitefusion/infinitefusion-e18/main/Data/sprites/BASE_SPRITES"
|
||||||
|
|
||||||
|
|
||||||
STARTUP_MESSAGES = ""
|
STARTUP_MESSAGES = ""
|
||||||
|
|||||||
@@ -8,6 +8,7 @@ end
|
|||||||
|
|
||||||
def updateHttpSettingsFile
|
def updateHttpSettingsFile
|
||||||
return if !downloadAllowed?()
|
return if !downloadAllowed?()
|
||||||
|
echoln "UPDATING SETTINGS"
|
||||||
download_file(Settings::HTTP_CONFIGS_FILE_URL, Settings::HTTP_CONFIGS_FILE_PATH,)
|
download_file(Settings::HTTP_CONFIGS_FILE_URL, Settings::HTTP_CONFIGS_FILE_PATH,)
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -41,7 +42,7 @@ def download_file(url, saveLocation)
|
|||||||
echoln _INTL("\nDownloaded file {1} to {2}", url, saveLocation)
|
echoln _INTL("\nDownloaded file {1} to {2}", url, saveLocation)
|
||||||
return saveLocation
|
return saveLocation
|
||||||
else
|
else
|
||||||
echoln _INTL("Tried to download file {1}", url)
|
echoln _INTL("Failed to download file {1}", url)
|
||||||
end
|
end
|
||||||
return nil
|
return nil
|
||||||
rescue MKXPError, Errno::ENOENT => error
|
rescue MKXPError, Errno::ENOENT => error
|
||||||
@@ -363,6 +364,7 @@ end
|
|||||||
|
|
||||||
def updateOnlineCustomSpritesFile
|
def updateOnlineCustomSpritesFile
|
||||||
return if !downloadAllowed?()
|
return if !downloadAllowed?()
|
||||||
|
echoln "HERE"
|
||||||
download_file(Settings::SPRITES_FILE_URL, Settings::CUSTOM_SPRITES_FILE_PATH)
|
download_file(Settings::SPRITES_FILE_URL, Settings::CUSTOM_SPRITES_FILE_PATH)
|
||||||
download_file(Settings::BASE_SPRITES_FILE_URL, Settings::BASE_SPRITES_FILE_PATH)
|
download_file(Settings::BASE_SPRITES_FILE_URL, Settings::BASE_SPRITES_FILE_PATH)
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -416,6 +416,7 @@ class PokemonLoadScreen
|
|||||||
updateHttpSettingsFile
|
updateHttpSettingsFile
|
||||||
updateCreditsFile
|
updateCreditsFile
|
||||||
updateCustomDexFile
|
updateCustomDexFile
|
||||||
|
updateOnlineCustomSpritesFile
|
||||||
newer_version = find_newer_available_version
|
newer_version = find_newer_available_version
|
||||||
if newer_version
|
if newer_version
|
||||||
pbMessage(_INTL("Version {1} is now available! Please use the game's installer to download the newest version. Check the Discord for more information.", newer_version))
|
pbMessage(_INTL("Version {1} is now available! Please use the game's installer to download the newest version. Check the Discord for more information.", newer_version))
|
||||||
|
|||||||
@@ -8,8 +8,10 @@ module Settings
|
|||||||
STARTUP_MESSAGES = ""
|
STARTUP_MESSAGES = ""
|
||||||
|
|
||||||
CREDITS_FILE_URL = "https://infinitefusion.net/Sprite Credits.csv"
|
CREDITS_FILE_URL = "https://infinitefusion.net/Sprite Credits.csv"
|
||||||
SPRITES_FILE_URL = "https://raw.githubusercontent.com/infinitefusion/infinitefusion-e18/main/Data/CUSTOM_SPRITES"
|
|
||||||
BASE_SPRITES_FILE_URL = "https://raw.githubusercontent.com/infinitefusion/infinitefusion-e18/main/Data/BASE_SPRITES"
|
SPRITES_FILE_URL = "https://raw.githubusercontent.com/infinitefusion/pif-downloadables/refs/heads/master/CUSTOM_SPRITES"
|
||||||
|
BASE_SPRITES_FILE_URL = "https://raw.githubusercontent.com/infinitefusion/pif-downloadables/refs/heads/master/BASE_SPRITES"
|
||||||
|
|
||||||
|
|
||||||
VERSION_FILE_URL = "https://raw.githubusercontent.com/infinitefusion/infinitefusion-e18/main/Data/VERSION"
|
VERSION_FILE_URL = "https://raw.githubusercontent.com/infinitefusion/infinitefusion-e18/main/Data/VERSION"
|
||||||
CUSTOM_DEX_FILE_URL = "https://raw.githubusercontent.com/infinitefusion/infinitefusion-e18/main/Data/dex.json"
|
CUSTOM_DEX_FILE_URL = "https://raw.githubusercontent.com/infinitefusion/infinitefusion-e18/main/Data/dex.json"
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user