- Joined
- Feb 22, 2014
- Messages
- 385
- Reaction score
- 616
- First Language
- English
- Primarily Uses
- RMMV
Hi guys,
Thought I'd throw up a topic for this and see if anyone has the knowledge to help with what's likely and hopefully a simple solution..
I'm using the below script, it's a short one.
I have everything in place and the script works fine, until i encrypt the game.
I receive an error to say
"Unable to find file"
Then lists the transition number it was trying to find.
I thought it might be because the it uses File or FileTest to check for the existence of a file and due to encryption it can't find it, but I don't see any references to check for existence.
Then again, I'm no scripter, any advice or help would be amazing!
Thanks
Thought I'd throw up a topic for this and see if anyone has the knowledge to help with what's likely and hopefully a simple solution..
I'm using the below script, it's a short one.
-----------------------------------------------------
-----------------------------------------------------
#==============================================================================
# ** NAMKCOR's Random Battle Transition
#------------------------------------------------------------------------------
# Override to the standard Scene_Map to allow for random selection of
# multiple battle transition graphics.
#
# Configuration:
# > Ensure that all of your BattleStart graphics are named as follows:
# BattleStart_X.png, where X is the number.
#
# > Example: if we had 3 BattleStart graphics, I would name them:
# BattleStart_1.png, BattleStart_2.png, and BattleStart_3.png
#
# > At Configuration Point A, set the 'return' value to the number
# of BattleStart graphics in your System folder.
#==============================================================================
module NAMKCOR
#============================================================================
# Configuration Point A
#============================================================================
def self.battle_transition_count
return 13
end
#==============================================================================
# DO NOT EDIT BELOW THIS LINE UNLESS YOU KNOW WHAT YOU ARE DOING!
# YOU HAVE BEEN WARNED!
#==============================================================================
def self.battle_transition_graphic
return "Graphics/System/BattleStart_" +
(rand(battle_transition_count) + 1).to_s
end
end
class Scene_Map < Scene_Base
def perform_battle_transition
Graphics.transition(60, NAMKCOR.battle_transition_graphic, 100)
Graphics.freeze
end
end
----------------------------------------
----------------------------------------
-----------------------------------------------------
#==============================================================================
# ** NAMKCOR's Random Battle Transition
#------------------------------------------------------------------------------
# Override to the standard Scene_Map to allow for random selection of
# multiple battle transition graphics.
#
# Configuration:
# > Ensure that all of your BattleStart graphics are named as follows:
# BattleStart_X.png, where X is the number.
#
# > Example: if we had 3 BattleStart graphics, I would name them:
# BattleStart_1.png, BattleStart_2.png, and BattleStart_3.png
#
# > At Configuration Point A, set the 'return' value to the number
# of BattleStart graphics in your System folder.
#==============================================================================
module NAMKCOR
#============================================================================
# Configuration Point A
#============================================================================
def self.battle_transition_count
return 13
end
#==============================================================================
# DO NOT EDIT BELOW THIS LINE UNLESS YOU KNOW WHAT YOU ARE DOING!
# YOU HAVE BEEN WARNED!
#==============================================================================
def self.battle_transition_graphic
return "Graphics/System/BattleStart_" +
(rand(battle_transition_count) + 1).to_s
end
end
class Scene_Map < Scene_Base
def perform_battle_transition
Graphics.transition(60, NAMKCOR.battle_transition_graphic, 100)
Graphics.freeze
end
end
----------------------------------------
----------------------------------------
I receive an error to say
"Unable to find file"
Then lists the transition number it was trying to find.
I thought it might be because the it uses File or FileTest to check for the existence of a file and due to encryption it can't find it, but I don't see any references to check for existence.
Then again, I'm no scripter, any advice or help would be amazing!
Thanks
Last edited by a moderator:


