1 Commits

Author SHA1 Message Date
chardub
47ea64728a gitkeep 2025-06-07 11:20:04 -04:00
733 changed files with 198464 additions and 321781 deletions

2
.gitignore vendored
View File

@@ -1,4 +1,5 @@
Graphics/CustomBattlers/local_sprites/* Graphics/CustomBattlers/local_sprites/*
Graphics/Pokemon/FusionIcons/*
Graphics/Battlers/Shiny/* Graphics/Battlers/Shiny/*
Graphics/CustomBattlers/spritesheets/* Graphics/CustomBattlers/spritesheets/*
@@ -14,4 +15,5 @@ Data/sprites/sprites_rate_limit.log
Game.rxproj Game.rxproj
.DS_Store .DS_Store
PBS/* PBS/*
Game.exe
rpgmaker.sh rpgmaker.sh

Binary file not shown.

Binary file not shown.

View File

@@ -107,9 +107,9 @@ casinoluck<s>ymirbot
################################### ###################################
### Custom Pokedex entries ### ### Custom Pok?dex entries ###
################################### ###################################
### Pokedex entries quality control (Unown) ### Pok?dex entries quality control (Unown)
luvischlo<s>char_latte3412<s>strawbearycandy luvischlo<s>char_latte3412<s>strawbearycandy
bobosmith01<s>griddle<s>.izik bobosmith01<s>griddle<s>.izik
knilk<s>lordjoostmeister<s>.realthree knilk<s>lordjoostmeister<s>.realthree
@@ -127,10 +127,6 @@ Maruno (http://pokemonessentials.wikia.com/wiki/Pok%C3%A9mon_Essentials_Wiki)
########################################################### ###########################################################
Playtesting was done by various members of the Discord channel. Playtesting was done by various members of the Discord channel.
Special thanks to all of you! Special thanks to all of you!
Elite 4 rematch teams
duskrd<s>anaconja
########################################################### ###########################################################
### Graphics # ### Graphics #
########################################################### ###########################################################
@@ -144,14 +140,6 @@ Nintendo
GameFreak GameFreak
########################
### Translations #
########################
French translation:
anthonygourmand
locpic_
blood.wolf58 (Willi)
####################################################################### #######################################################################
The following ressources were also used The following ressources were also used
with their respective authors' consent with their respective authors' consent

BIN
Data/.DS_Store vendored

Binary file not shown.

8
Data/.idea/.gitignore generated vendored Normal file
View File

@@ -0,0 +1,8 @@
# Default ignored files
/shelf/
/workspace.xml
# Datasource local storage ignored files
/../../../../../../../../../../../:\Users\charl\Documents\Jeux\rpgmaker\infinitefusion\dev\infinitefusion-e18\Data\.idea/dataSources/
/dataSources.local.xml
# Editor-based HTTP Client requests
/httpRequests/

1
Data/.idea/vcs.xml generated
View File

@@ -2,6 +2,5 @@
<project version="4"> <project version="4">
<component name="VcsDirectoryMappings"> <component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$/.." vcs="Git" /> <mapping directory="$PROJECT_DIR$/.." vcs="Git" />
<mapping directory="$PROJECT_DIR$/Scripts" vcs="Git" />
</component> </component>
</project> </project>

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.

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.

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.

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.

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

@@ -5,13 +5,10 @@
#==============================================================================# #==============================================================================#
module Settings module Settings
# The version of your game. It has to adhere to the MAJOR.MINOR.PATCH format. # The version of your game. It has to adhere to the MAJOR.MINOR.PATCH format.
GAME_VERSION = '6.7.0' GAME_VERSION = '6.6.0'
GAME_VERSION_NUMBER = "6.7.0" GAME_VERSION_NUMBER = "6.6.0"
LATEST_GAME_RELEASE = "6.6" LATEST_GAME_RELEASE = "6.6"
KANTO = GAME_ID == :IF_KANTO
HOENN = GAME_ID == :IF_HOENN
POKERADAR_LIGHT_ANIMATION_RED_ID = 17 POKERADAR_LIGHT_ANIMATION_RED_ID = 17
POKERADAR_LIGHT_ANIMATION_GREEN_ID = 18 POKERADAR_LIGHT_ANIMATION_GREEN_ID = 18
POKERADAR_HIDDEN_ABILITY_POKE_CHANCE = 32 POKERADAR_HIDDEN_ABILITY_POKE_CHANCE = 32
@@ -36,7 +33,7 @@ module Settings
BATTLERS_FOLDER = "Graphics/Battlers/Autogens/" BATTLERS_FOLDER = "Graphics/Battlers/Autogens/"
DOWNLOADED_SPRITES_FOLDER = "Graphics/temp/" DOWNLOADED_SPRITES_FOLDER = "Graphics/temp/"
DEFAULT_SPRITE_PATH = "Graphics/Battlers/Special/000.png" DEFAULT_SPRITE_PATH = "Graphics/Battlers/Special/000.png"
CREDITS_FILE_PATH = "Data/sprites/Sprite_Credits.csv" CREDITS_FILE_PATH = "Data/sprites/Sprite Credits.csv"
VERSION_FILE_PATH = "Data/VERSION" VERSION_FILE_PATH = "Data/VERSION"
CUSTOM_SPRITES_FILE_PATH = "Data/sprites/CUSTOM_SPRITES" CUSTOM_SPRITES_FILE_PATH = "Data/sprites/CUSTOM_SPRITES"
BASE_SPRITES_FILE_PATH = "Data/sprites/BASE_SPRITES" BASE_SPRITES_FILE_PATH = "Data/sprites/BASE_SPRITES"
@@ -69,13 +66,9 @@ module Settings
SPRITES_FILE_URL = "https://raw.githubusercontent.com/infinitefusion/infinitefusion-e18/main/Data/sprites/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/sprites/BASE_SPRITES" BASE_SPRITES_FILE_URL = "https://raw.githubusercontent.com/infinitefusion/infinitefusion-e18/main/Data/sprites/BASE_SPRITES"
CREDITS_FILE_URL = "https://infinitefusion.net/customsprites/Sprite_Credits.csv" CREDITS_FILE_URL = "https://infinitefusion.net/Sprite Credits.csv"
CUSTOM_DEX_FILE_URL = "https://raw.githubusercontent.com/infinitefusion/pif-downloadables/refs/heads/master/dex.json" CUSTOM_DEX_FILE_URL = "https://raw.githubusercontent.com/infinitefusion/pif-downloadables/refs/heads/master/dex.json"
SECRETBASE_UPLOAD_URL = "http://secretbases-upload.pkmninfinitefusion.workers.dev"
SECRETBASE_DOWNLOAD_URL = "https://secretbase-download.pkmninfinitefusion.workers.dev"
STARTUP_MESSAGES = "" STARTUP_MESSAGES = ""
LEVEL_CAPS=[12,22,26,35,38,45,51,54,62,62,63,64,64,65,67,68] LEVEL_CAPS=[12,22,26,35,38,45,51,54,62,62,63,64,64,65,67,68]
@@ -182,19 +175,12 @@ module Settings
# always inherit egg moves from its father. # always inherit egg moves from its father.
BREEDING_CAN_INHERIT_EGG_MOVES_FROM_MOTHER = (MECHANICS_GENERATION >= 6) BREEDING_CAN_INHERIT_EGG_MOVES_FROM_MOTHER = (MECHANICS_GENERATION >= 6)
KANTO_STARTERS = [:BULBASAUR, :CHARMANDER, :SQUIRTLE] KANTO_STARTERS = [:BULBASAUR, :CHARMANDER, :SQUIRTLE]
JOHTO_STARTERS = [:CHIKORITA, :CYNDAQUIL, :TOTODILE] JOHTO_STARTERS = [:CHIKORITA, :CYNDAQUIL, :TOTODILE]
HOENN_STARTERS = [:TREECKO, :TORCHIC, :MUDKIP] HOENN_STARTERS = [:TREECKO, :TORCHIC, :MUDKIP]
SINNOH_STARTERS = [:TURTWIG, :CHIMCHAR, :PIPLUP] SINNOH_STARTERS = [:TURTWIG, :CHIMCHAR, :PIPLUP]
KALOS_STARTERS = [:CHESPIN, :FENNEKIN, :FROAKIE] KALOS_STARTERS = [:CHESPIN, :FENNEKIN, :FROAKIE]
DEFAULT_STARTERS = Settings::GAME_ID == :IF_KANTO ? KANTO_STARTERS : HOENN_STARTERS
GRASS_STARTERS = [:BULBASAUR,:CHIKORITA,:TREECKO,:TURTWIG,:CHESPIN]
FIRE_STARTERS = [:CHARMANDER,:CYNDAQUIL, :TORCHIC, :CHIMCHAR, :FENNEKIN]
WATER_STARTERS = [:SQUIRTLE, :TOTODILE, :MUDKIP, :PIPLUP, :FROAKIE]
#============================================================================= #=============================================================================
@@ -359,7 +345,7 @@ module Settings
# Dex list, no matter which region the player is currently in. # Dex list, no matter which region the player is currently in.
def self.pokedex_names def self.pokedex_names
return [ return [
# ["Kanto Pokédex", 0] # [_INTL("Kanto Pokédex"), 0]
] ]
end end
@@ -557,15 +543,11 @@ module Settings
# file in the Data folder. Edit only if you have 2 or more languages to choose # file in the Data folder. Edit only if you have 2 or more languages to choose
# from. # from.
LANGUAGES = [ LANGUAGES = [
["English", "english.dat"], # ["English", "english.dat"],
["Français", "french.dat"] # ["Deutsch", "deutsch.dat"]
] ]
#Experimental
REMOTE_BATTLES_CONTROL = false
REMOTE_NPC_DIALOG = false
REMOTE_BATTLE_CONTROL_SERVER_URL = "http://127.0.0.1:5000/choose_move"
REMOTE_NPC_DIALOG_SERVER_URL = "http://127.0.0.1:5000"
#Technical #Technical
SPRITE_CACHE_MAX_NB=100 SPRITE_CACHE_MAX_NB=100
NEWEST_SPRITEPACK_MONTH = 12 NEWEST_SPRITEPACK_MONTH = 12
@@ -594,7 +576,7 @@ module Settings
"speech hgss 18", "speech hgss 18",
"speech hgss 19", "speech hgss 19",
"speech hgss 20", "speech hgss 20",
"speech pl 18", "speech pl 18"
] ]
# Available menu frames. These are graphic files in "Graphics/Windowskins/". # Available menu frames. These are graphic files in "Graphics/Windowskins/".

View File

@@ -3,42 +3,42 @@
# HTTP utility functions # HTTP utility functions
# #
############################# #############################
#
def pbPostData(url, postdata, filename=nil, depth=0) def pbPostData(url, postdata, filename=nil, depth=0)
return "" unless url =~ /^https?:\/\/([^\/]+)(.*)$/ if url[/^http:\/\/([^\/]+)(.*)$/]
host = $1 host = $1
path = $2 path = $2
path = "/" if path.empty? path = "/" if path.length==0
userAgent = "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.14) Gecko/2009082707 Firefox/3.0.14"
userAgent = "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.14) Gecko/2009082707 Firefox/3.0.14" body = postdata.map { |key, value|
keyString = key.to_s
# Serialize as JSON valueString = value.to_s
body = serialize_json(postdata) keyString.gsub!(/[^a-zA-Z0-9_\.\-]/n) { |s| sprintf('%%%02x', s[0]) }
valueString.gsub!(/[^a-zA-Z0-9_\.\-]/n) { |s| sprintf('%%%02x', s[0]) }
ret = HTTPLite.post_body( next "#{keyString}=#{valueString}"
url, }.join('&')
body, ret = HTTPLite.post_body(
"application/json", url,
{ body,
"Host" => host, "application/x-www-form-urlencoded",
"Proxy-Connection" => "Close", {
"Content-Length" => body.bytesize.to_s, "Host" => host, # might not be necessary
"Pragma" => "no-cache", "Proxy-Connection" => "Close",
"User-Agent" => userAgent "Content-Length" => body.bytesize.to_s,
} "Pragma" => "no-cache",
) rescue "" "User-Agent" => userAgent
}
return "" if !ret.is_a?(Hash) ) rescue ""
return "" if ret[:status] != 200 return ret if !ret.is_a?(Hash)
if filename return "" if ret[:status] != 200
File.open(filename, "wb") { |f| f.write(ret[:body]) } return ret[:body] if !filename
File.open(filename, "wb"){|f|f.write(ret[:body])}
return "" return ""
end end
ret[:body] return ""
end end
def pbDownloadData(url, filename = nil, authorization = nil, depth = 0, &block) def pbDownloadData(url, filename = nil, authorization = nil, depth = 0, &block)
return nil if !downloadAllowed?() return nil if !downloadAllowed?()
echoln "downloading data from #{url}" echoln "downloading data from #{url}"
@@ -73,21 +73,15 @@ def pbDownloadToFile(url, file)
end end
end end
def pbPostToString(url, postdata, timeout = 30) def pbPostToString(url, postdata)
safe_postdata = postdata.transform_values(&:to_s)
begin begin
data = pbPostData(url, safe_postdata) data = pbPostData(url, postdata)
return data || "" return data
rescue MKXPError => e rescue
echoln("[Remote AI] Exception: #{e.message}")
return "" return ""
end end
end end
def pbPostToFile(url, postdata, file) def pbPostToFile(url, postdata, file)
begin begin
pbPostData(url, postdata,file) pbPostData(url, postdata,file)
@@ -95,7 +89,7 @@ def pbPostToFile(url, postdata, file)
end end
end end
def serialize_value_legacy(value) def serialize_value(value)
if value.is_a?(Hash) if value.is_a?(Hash)
serialize_json(value) serialize_json(value)
elsif value.is_a?(String) elsif value.is_a?(String)
@@ -108,47 +102,17 @@ end
def serialize_json(data) def serialize_json(data)
if data.is_a?(Hash) #echoln data
parts = ["{"] # Manually serialize the JSON data into a string
data.each_with_index do |(key, value), index| parts = ["{"]
parts << "\"#{key}\":#{serialize_value(value)}" data.each_with_index do |(key, value), index|
parts << "," unless index == data.size - 1 parts << "\"#{key}\":#{serialize_value(value)}"
end parts << "," unless index == data.size - 1
parts << "}"
return parts.join
else
return serialize_value(data)
end end
parts << "}"
return parts.join
end end
def serialize_value(value)
case value
when String
"\"#{escape_json_string(value)}\""
when Numeric
value.to_s
when TrueClass, FalseClass
value.to_s
when NilClass
"null"
when Array
"[" + value.map { |v| serialize_value(v) }.join(",") + "]"
when Hash
serialize_json(value)
else
raise "Unsupported type: #{value.class}"
end
end
def escape_json_string(str)
# Minimal escape handling
str.gsub(/["\\]/) { |m| "\\#{m}" }
.gsub("\n", "\\n")
.gsub("\t", "\\t")
.gsub("\r", "\\r")
end
def downloadAllowed?() def downloadAllowed?()
return $PokemonSystem.download_sprites==0 return $PokemonSystem.download_sprites==0
@@ -177,42 +141,6 @@ def clean_json_string(str)
end end
# json.rb - lightweight JSON parser for MKXP/RGSS XP
# Lightweight JSON for MKXP/RGSS XP
module JSON
module_function
# Convert Ruby object (hash/array/etc) into JSON string
def generate(obj)
case obj
when Hash
"{" + obj.map { |k, v| "\"#{k}\":#{generate(v)}" }.join(",") + "}"
when Array
"[" + obj.map { |v| generate(v) }.join(",") + "]"
when String, Symbol
"\"#{obj.to_s}\""
when TrueClass, FalseClass
obj.to_s
when NilClass
"null"
when Numeric
obj.to_s
else
raise "Unsupported type #{obj.class}"
end
end
# Simple parser (not full JSON) — optional
def parse(str)
return nil if str.nil? || str.strip.empty?
eval(str)
end
end

File diff suppressed because it is too large Load Diff

View File

@@ -202,7 +202,6 @@ module Game
$PokemonMap.updateMap $PokemonMap.updateMap
$scene = Scene_Map.new $scene = Scene_Map.new
onLoadExistingGame() onLoadExistingGame()
end end
# Loads and validates the map. Called when loading a saved game. # Loads and validates the map. Called when loading a saved game.
@@ -235,15 +234,9 @@ module Game
end end
$PokemonEncounters = PokemonEncounters.new $PokemonEncounters = PokemonEncounters.new
$PokemonEncounters.setup($game_map.map_id) $PokemonEncounters.setup($game_map.map_id)
self.load_secret_bases if Settings::HOENN
pbUpdateVehicle pbUpdateVehicle
end end
def self.load_secret_bases
loader = SecretBaseLoader.new
loader.load_visitor_bases
end
# Saves the game. Returns whether the operation was successful. # Saves the game. Returns whether the operation was successful.
# @param save_file [String] the save file path # @param save_file [String] the save file path
# @param safe [Boolean] whether $PokemonGlobal.safesave should be set to true # @param safe [Boolean] whether $PokemonGlobal.safesave should be set to true

View File

@@ -218,12 +218,6 @@ class Scene_Map
end end
return if $game_temp.message_window_showing return if $game_temp.message_window_showing
if !pbMapInterpreterRunning? if !pbMapInterpreterRunning?
if $game_temp.moving_furniture
placeFurnitureMenu() if Input.trigger?(Input::USE)
rotate__held_furniture_left if Input.trigger?(Input::JUMPDOWN)
rotate_held_furniture_right if Input.trigger?(Input::JUMPUP)
end
if Input.trigger?(Input::USE) if Input.trigger?(Input::USE)
$PokemonTemp.hiddenMoveEventCalling = true $PokemonTemp.hiddenMoveEventCalling = true
elsif Input.trigger?(Input::BACK) elsif Input.trigger?(Input::BACK)
@@ -231,7 +225,7 @@ class Scene_Map
$game_temp.menu_calling = true $game_temp.menu_calling = true
$game_temp.menu_beep = true $game_temp.menu_beep = true
dayOfWeek = getDayOfTheWeek().to_s dayOfWeek = getDayOfTheWeek().to_s
$scene.spriteset.addUserSprite(LocationWindow.new($game_map.name+ "\n"+ pbGetTimeNow.strftime(_INTL("%I:%M %p")) + "\n" + dayOfWeek)) $scene.spriteset.addUserSprite(LocationWindow.new($game_map.name+ "\n"+ pbGetTimeNow.strftime("%I:%M %p") + "\n" + dayOfWeek))
end end
elsif Input.trigger?(Input::SPECIAL) elsif Input.trigger?(Input::SPECIAL)
unless $game_system.menu_disabled || $game_player.moving? unless $game_system.menu_disabled || $game_player.moving?

Some files were not shown because too many files have changed in this diff Show More