• ✨ 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.52] New Shop Interface Bugged

J

jianmingyong

Guest
Describe the bug you experienced here.

What I expected to happen:
Able to buy and sell stuff correctly.

What actually happened:
Most probably crashes or simply the P3D fail math.

Steps to reproduce:
1. Game Crash if you attempt to sell the last item of that category.
=> For example, if I sell all the Pokéball I have and there isn't a single Ball in that Pokéball Category, game crashes.
Code:
Kolben Games Crash Log V 2.4
Pokémon 3D has crashed!
// Fire attacks might be super effective...

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

Game information:

Pokémon 3D Indev version: 0.52 (85)
Content Packs: {}
Active GameMode: Pokemon 3D
GameJolt Account: TRUE (116016)
Playing on Servers: FALSE
Game Environment: MainMenuScreen
Actionscript: No script running
File Validation: True
Sandboxmode: False

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

Screen state for the current screen (MainMenuScreen)

Screen state not implemented for screen class: MainMenuScreen

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

System specifications:

Operating system: Microsoft Windows 7 Home Premium  [6.1.7601.65536]
Core architecture: 64 Bit
System time: 22/12/2014 9:06:18 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 out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
InnerException: NOTHING
BaseException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
HelpLink: No helplink available.
Data: Items: 0
Source: mscorlib

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

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 System.ThrowHelper.ThrowArgumentOutOfRangeException()
   at System.Collections.Generic.List`1.get_Item(Int32 index)
   at net.Pokemon3D.Game.TradeScreen.UpdateSellItems()
   at net.Pokemon3D.Game.TradeScreen.Update()
   at net.Pokemon3D.Game.Core.Update(GameTime gameTime)
   at net.Pokemon3D.Game.GameController.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 net.Pokemon3D.Game.Program.Main(String[] args)

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

You should report this error.

Go to "http://pokemon3d.net/forum/forums/6/create-thread" to report this crash there.

2. New Mart interface fail at math.
In the last version, this line work properly.
@Screen.trade({5|<Math.int(99-<Inventory.countitem(5)>)>|-1}{18|99-<Inventory.countitem(18)>|-1}{9|99-<Inventory.countitem(9)>|-1}{13|99-<Inventory.countitem(13)>|-1}{12|99-<Inventory.countitem(12)>|-1}{19|99-<Inventory.countitem(19)>|-1}{20|99-<Inventory.countitem(20)>|-1}{52|99-<Inventory.countitem(52)>|-1}{49|99-<Inventory.countitem(49)>|-1}{51|99-<Inventory.countitem(51)>|-1}{307|99-<Inventory.countitem(307)>|-1},1,0)

Now it simply won't do math.
Code:
Kolben Games Crash Log V 2.4
Pokémon 3D has crashed!
// Missingno.

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

Game information:

Pokémon 3D Indev version: 0.52 (85)
Content Packs: {}
Active GameMode: Pokemon Universal 3D
GameJolt Account: FALSE
Playing on Servers: FALSE
Game Environment: OverworldScreen
Actionscript: Type: Script; Input: 12\PetalburgCity\PokeMart\002000002; Line: 9
File Validation: True
Sandboxmode: True

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

Screen state for the current screen (OverworldScreen)

IsSurfing=False
IsRiding=False
LevelFile=12\PetalburgCity\PetalburgCity.PokeMart.dat
UsedStrength=False
EntityCount=265

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

System specifications:

Operating system: Microsoft Windows 7 Home Premium  [6.1.7601.65536]
Core architecture: 64 Bit
System time: 22/12/2014 9:11:07 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: Conversion from string "99-1" to type 'Integer' is not valid.
InnerException: Input string was not in a correct format.
BaseException: Input string was not in a correct format.
HelpLink: No helplink available.
Data: Items: 0
Source: Microsoft.VisualBasic

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

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 Microsoft.VisualBasic.CompilerServices.Conversions.ToInteger(String Value)
   at net.Pokemon3D.Game.TradeScreen..ctor(Screen currentScreen, String storeString, Boolean canBuy, Boolean canSell, String currencyIndicator)
   at net.Pokemon3D.Game.ScriptCommander.DoScreen(String subClass)
   at net.Pokemon3D.Game.ScriptCommander.InizializeCommand(ScriptV2& ScriptV2, String inputString)
   at net.Pokemon3D.Game.ScriptV2.DoCommand()
   at net.Pokemon3D.Game.ScriptV2.Update()
   at net.Pokemon3D.Game.Script.Update()
   at net.Pokemon3D.Game.ActionScript.Update()
   at net.Pokemon3D.Game.OverworldScreen.Update()
   at net.Pokemon3D.Game.Core.Update(GameTime gameTime)
   at net.Pokemon3D.Game.GameController.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 net.Pokemon3D.Game.Program.Main(String[] args)

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

You should report this error.

Go to "http://pokemon3d.net/forum/forums/6/create-thread" to report this crash there.

3. Sell only shops.
Instead of going to the sell menu, it brings you to the shop interface instead and... again if the line is valid the last time.... it crashes.
@Screen.trade({0|0|0},0,1)

It worked in the older version but not this new version.
Code:
Kolben Games Crash Log V 2.4
Pokémon 3D has crashed!
// Wut?

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

Game information:

Pokémon 3D Indev version: 0.52 (85)
Content Packs: {}
Active GameMode: Pokemon Universal 3D
GameJolt Account: FALSE
Playing on Servers: FALSE
Game Environment: OverworldScreen
Actionscript: Type: Script; Input: 12\PetalburgCity\PokeMart\002000002; Line: 12
File Validation: True
Sandboxmode: True

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

Screen state for the current screen (OverworldScreen)

IsSurfing=False
IsRiding=False
LevelFile=12\PetalburgCity\PetalburgCity.PokeMart.dat
UsedStrength=False
EntityCount=265

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

System specifications:

Operating system: Microsoft Windows 7 Home Premium  [6.1.7601.65536]
Core architecture: 64 Bit
System time: 22/12/2014 9:00:58 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: Object reference not set to an instance of an object.
InnerException: NOTHING
BaseException: Object reference not set to an instance of an object.
HelpLink: No helplink available.
Data: Items: 0
Source: Pokemon

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

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 net.Pokemon3D.Game.TradeScreen.TradeItem..ctor(Int32 ItemID, Int32 Price, Int32 Amount, Currencies Currency)
   at net.Pokemon3D.Game.TradeScreen..ctor(Screen currentScreen, String storeString, Boolean canBuy, Boolean canSell, String currencyIndicator)
   at net.Pokemon3D.Game.ScriptCommander.DoScreen(String subClass)
   at net.Pokemon3D.Game.ScriptCommander.InizializeCommand(ScriptV2& ScriptV2, String inputString)
   at net.Pokemon3D.Game.ScriptV2.DoCommand()
   at net.Pokemon3D.Game.ScriptV2.Update()
   at net.Pokemon3D.Game.Script.Update()
   at net.Pokemon3D.Game.ActionScript.Update()
   at net.Pokemon3D.Game.OverworldScreen.Update()
   at net.Pokemon3D.Game.Core.Update(GameTime gameTime)
   at net.Pokemon3D.Game.GameController.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 net.Pokemon3D.Game.Program.Main(String[] args)

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

You should report this error.

Go to "http://pokemon3d.net/forum/forums/6/create-thread" to report this crash there.

4. HMs can sell?
I mean it let me sell HMs although it is not supposed to.

5. Shop Menu doesn't follow the game scale. Resulting it hidden menu below.
2014-12-22_21.29.22.png

6. Where is the item description? Removed? Why?
 
Last edited by a moderator:

Fanta

Content Developer
P3D Developer
Global Moderator
Also, when you try to sell items and scroll down to "battle items", "mail" opens instead and when you go back and try going to "mail", it will send you to "HM/TM" and so on.., and to fix it you have to scroll all the way up to the first category, but you still won't be able to sell your battle items.


Edit: Also, Why the heck there is no sell confirmation dialogue?!.
 

nilllzz

Original Developer
Administrator
P3D Developer
1. Fixed
2. Fixed
3. Fixed
4. Fixed
5. You mean the entire interface should scale down so that when the game window is smaller, you can see the lower buttons?
6. Click on the item preview / press Q on the keyboard / press Y on the XBOX controller.

@Fanta
Fixed, and I will add a confirmation dialogue later.
 
J

jianmingyong

Guest
5. You mean the entire interface should scale down so that when the game window is smaller, you can see the lower buttons?
Yap. Smaller screen couldn't see all the buttons but the arrow can still reach it.
 
Top