• ✨ ARCHIVE MODE ✨
    The forum has now been set to read-only mode, no new posts, resources, replies etc will not be possible.
    We recommend you join our Discord server to get real-time response: Discord Invite Link

Fixed [Indev 0.49.1] @Options.setcancelindex Not Working

Status
Not open for further replies.
J

jianmingyong

Guest
The above command @Options.setcancelindex(int) not working and generate a crash :p

I am not able to use a better example in the official game since it does not exist so I make a simple script to test it out.

What I expected to happen:
When press E to cancel, it should take the index I choose and run it.

What actually happened:
Crashed!

Steps to reproduce:
Script style:
Code:
version=2
@Text.show(welcome)
@Options.setcancelindex(1)
@Options.show(Text,Exit)
:when:Text
@Text.show(Hi)
:when:Exit
:end
:endwhen
:end
(Add a crash log here if available and enclose it in the code tag with this button:
)
Unfortunately, I am not on computer now. So to get a crash log, try a mini script above.
 
Last edited by a moderator:

nilllzz

Original Developer
Administrator
P3D Developer
I copied your script and run it.
  • Accepting the first item works
  • Accepting the second item works
  • Pressing E chooses the second item and ends the script -> works
I can't seem to be able to generate a crash log, so I need yours.
 
J

jianmingyong

Guest
Code:
Kolben Games Crash Log V 2.3
Pokémon 3D has crashed!
// Kernel PANIC

---------------------------------------------------------------------------------

A backup file was created here: 2014-06-16_15.50.29_backup.txt
Visit this page in order to get your save restored:
http://pokemon3d.net/forum/forums/backup_support/create-thread

---------------------------------------------------------------------------------

Game information:

Pokémon 3D Indev version: 0.49.1 (80)
Content Packs: {Anime Cries,Pokémon FireRed Universal 3D,HGSS Music Pack HD,Pokémon Models Pack New,Pokémon Models Pack}
Active GameMode: Pokemon FireRed Universal 3D
GameJolt Account: FALSE
Playing on Servers: FALSE
Game Environment: OverworldScreen
Actionscript: Type: Script; Input: 12\LittleRootTown\PlayerRoom.2\000000001; Line: 34
File Validation: True
Sandboxmode: True

---------------------------------------------------------------------------------

Screen state for the current screen (OverworldScreen)

IsSurfing=False
IsRiding=False
LevelFile=12\LittleRootTown\LittleRootTown.PlayerRoom.2.dat
UsedStrength=False
EntityCount=136

---------------------------------------------------------------------------------

System specifications:

Operating system: Microsoft Windows 7 Home Premium  [6.1.7601.65536]
Core architecture: 64 Bit
System time: 16/6/2014 3:50:29 PM
System language: English (Singapore)(ENE) / Loaded game language: en
Decimal separator: .
Available physical memory: 7.98 Gigabyte
Available logical processors: 4

---------------------------------------------------------------------------------

.Net installation information:

v2.0.50727  2.0.50727.5420  SP2
v3.0  3.0.30729.5420  SP2
v3.5  3.5.30729.5420  SP1
v4
  Client  4.5.50938
  Full  4.5.50938
v4.0
  Client  4.0.0.0

---------------------------------------------------------------------------------

Graphics Card information:

[CardName(s): "NVIDIA GeForce GT 520"]
[CardRAM(s) : "1073741824"]

---------------------------------------------------------------------------------

Error information:

Message: Index was outside the bounds of the array.
InnerException: NOTHING
BaseException: Index was outside the bounds of the array.
HelpLink: No helplink available.
Data: Items: 0
Source: 2.5DHero

---------------------------------------------------------------------------------

Error solution:
(The provided solution might not work for your problem)

Error ID: -1
Error Type: NaN
Error Description: The error is undocumented in the error handling system.
Error Solution: NaN

---------------------------------------------------------------------------------

CallStack:

   at _2._5DHero.ChooseBox.Update(Boolean RaiseClickEvent)
   at _2._5DHero.ChooseBox.Update()
   at _2._5DHero.OverworldScreen.Update()
   at _2._5DHero.Basic.Update(GameTime gameTime)
   at _2._5DHero.DGame.Update(GameTime gameTime)
   at Microsoft.Xna.Framework.Game.Tick()
   at Microsoft.Xna.Framework.Game.HostIdle(Object sender, EventArgs e)
   at Microsoft.Xna.Framework.GameHost.OnIdle()
   at Microsoft.Xna.Framework.WindowsGameHost.RunOneFrame()
   at Microsoft.Xna.Framework.WindowsGameHost.ApplicationIdle(Object sender, EventArgs e)
   at System.Windows.Forms.Application.ThreadContext.System.Windows.Forms.UnsafeNativeMethods.IMsoComponent.FDoIdle(Int32 grfidlef)
   at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
   at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
   at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
   at System.Windows.Forms.Application.Run(Form mainForm)
   at Microsoft.Xna.Framework.WindowsGameHost.Run()
   at Microsoft.Xna.Framework.Game.RunGame(Boolean useBlockingRun)
   at Microsoft.Xna.Framework.Game.Run()
   at _2._5DHero.Program.Main(String[] args)

---------------------------------------------------------------------------------

You should report this error.

Go to "http://pokemon3d.net/forum/forums/6/create-thread" to report this crash there.
With this script: ( With and without content pack activated )
Code:
version=2
@Text.show(<Player.name> booted up the PC.)
@Text.show(What would you like to do?)
@Options.setcancelindex(3)
@Options.show(ITEM STORAGE,MAILBOX,DECORATION,TURN OFF)
:when:ITEM STORAGE
@Text.show(There is no ITEM STORAGE at the moment.~Sorry for any inconvenience caused.)
:when:MAILBOX
@Screen.mailsystem
:when:DECORATION
@Text.show(There is no DECORATION at the moment.~Sorry for any inconvenience caused.)
:when:TURN OFF
:endwhen
:end
 
Last edited by a moderator:

Fanta

Content Developer
P3D Developer
Global Moderator
Code:
[CODE]
A backup file was created here: 2014-06-16_15.50.29_backup.txt
Visit this page in order to get your save restored:
http://pokemon3d.net/forum/forums/backup_support/create-thread
[/CODE]
Hmm.....what's this?
 

nilllzz

Original Developer
Administrator
P3D Developer
No, that script works for me. I might have fixed it unintentionally because I moved some code around in the Choosebox class.
 
J

jianmingyong

Guest
No, that script works for me. I might have fixed it unintentionally because I moved some code around in the Choosebox class.
So, I can presume it is fixed in the next version?
 
Status
Not open for further replies.
Top