The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Fan Games > Binary ROM Hacking
Reload this Page Script Hello There. Please Help

Notices
For all updates, view the main page.

Binary ROM Hacking Need a helping hand or just want to talk about binary ROM hacks? Get comments and answers to any ROM Hacking-related problems, questions or thoughts you have here.

Ad Content
Reply
 
Thread Tools
  #1   Link to this post, but load the entire thread.  
Old May 27th, 2020 (11:59 AM).
076mrayquaza's Avatar
076mrayquaza 076mrayquaza is offline
 
Join Date: May 2020
Location: La Paz, Bolivia
Gender: Male
Nature: Careful
Posts: 5
Hi everyone, I am new at this and I get this error every time I want to configure de options of the game...

The Error says: Script 'PokemonOptions' line 406 NoMethodError occurred
Undefined method ´autosave' for nil: NilClass

LINE 406: if $PokemonGlobal.autosave==false

The script in the game is:
Lines:
}
),
EnumOption.new(_INTL("Autosave"),[_INTL("On"),_INTL("False")],
proc { $PokemonSystem.autosave },
proc {|value|
$PokemonSystem.autosave=value
if value==0
if $PokemonGlobal.autosave==false
params=ChooseNumberParams.new
params.setRange(1,60)
params.setInitialValue(5)
params.setCancelValue(5)
savetime=Kernel.pbMessageChooseNumber(
_INTL("How many minutes between autosaves? (1-60)"),params
)
$PokemonGlobal.autosavetimer=savetime*60 #converts choice to seconds
end
$PokemonGlobal.autosave=true
else
$PokemonGlobal.autosave=false
end
}
),

Any ideas?
Attached Images
File Type: png error.PNG‎ (35.0 KB, 2 views) (Save to Dropbox)
Reply With Quote
Reply

Quick Reply

Join the conversation!

Create an account to post a reply in this thread, participate in other discussions, and more!

Create a PokéCommunity Account
Ad Content

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 9:15 AM.