Squeaky Duck
Squeaky Duck
- 22
- Posts
- 4
- Years
- Seen Mar 14, 2021
How do I install the Modular Title Screen?
I mean, I made everything that is in the site, but when I put the script above Main, this happens:
Script 'Main' line 274: ArgumentError ocurred.
wrong number of arguments(2 for 1)
This is my Main Script
If you know how to fix it, PLEASE, help me.
I mean, I made everything that is in the site, but when I put the script above Main, this happens:
Script 'Main' line 274: ArgumentError ocurred.
wrong number of arguments(2 for 1)
Code:
#=============================================================
class Scene_DebugIntro
def main
Graphics.transition(0)
sscene=PokemonLoadScene.new
sscreen=PokemonLoad.new(sscene)
sscreen.pbStartLoadScreen
Graphics.freeze
end
end
def pbCallTitle #:nodoc:
if $DEBUG
return Scene_DebugIntro.new
else
# First parameter is an array of images in the Titles
# directory without a file extension, to show before the
# actual title screen. Second parameter is the actual
# title screen filename, also in Titles with no extension.
return Scene_Intro.new(['intro1'], 'big_chartest')
end
end
def mainFunction #:nodoc:
if $DEBUG
pbCriticalCode { mainFunctionDebug }
else
mainFunctionDebug
end
return 1
end
def mainFunctionDebug #:nodoc:
begin
getCurrentProcess=Win32API.new("kernel32.dll","GetCurrentProcess","","l")
setPriorityClass=Win32API.new("kernel32.dll","SetPriorityClass",%w(l i),"")
setPriorityClass.call(getCurrentProcess.call(),32768) # "Above normal" priority class
$data_animations = pbLoadRxData("Data/Animations")
$data_tilesets = pbLoadRxData("Data/Tilesets")
$data_common_events = pbLoadRxData("Data/CommonEvents")
$data_system = pbLoadRxData("Data/System")
$game_system = Game_System.new
setScreenBorderName("border") # Sets image file for the border
Graphics.update
Graphics.freeze
$scene = pbCallTitle
while $scene != nil
$scene.main
end
Graphics.transition(20)
rescue Hangup
pbEmergencySave
raise
end
end
loop do
retval=mainFunction
if retval==0 # failed
loop do
Graphics.update
end
elsif retval==1 # ended successfully
break
end
end
If you know how to fix it, PLEASE, help me.
Last edited: