Dear forum users! In compliance with the new European GDPR regulations, we'd just like to inform you that if you have an account, your email address is stored in our database. We do not share your information with third parties, and your email address and password are encrypted for security reasons.

New to the forum? Say hello in this topic! Also make sure to read the rules.

NullReferenceException on map editor when welded together 3 FarBgTiles

Here you can find all solved gameplay problems and bugs (beginning from Pre-Alpha 1.8.8).
Forum rules
By using the forum you agree to the following rules. For this forum you also need to follow these additional rules.
Locked
User avatar
Motto73
Superfighter
Superfighter
Posts: 316
Joined: Mon May 09, 2016 7:35 am
Title: Lazy ass
SFD Account: Motto73
Started SFD: Multiplayer Test Demo
Location: Sunny City
Gender:
Age: 24

NullReferenceException on map editor when welded together 3 FarBgTiles

Post by Motto73 » Thu May 11, 2017 11:12 am

So I got this exception when I had welded together 3 farbg tiles:

Code: Select all

There was an error during the test.
Superfighters Deluxe Alpha v.1.3.0 - Unhandled Error
Status: EditorTestRun, False, EditorTestRun
GraphicsDeviceStatus: Normal

Map editor error
> Exception:
System.Exception: Error:
Error: GameWorld.Update.Step() 
System.IndexOutOfRangeException: Index was outside the bounds of the array.
   at Box2D.XNA.Island.Add(Body body)
   at Box2D.XNA.World.Solve(TimeStep& step)
   at Box2D.XNA.World.Step(Single dt, Int32 velocityIterations, Int32 positionIterations)
   at SFD.GameWorld.Step(Box2DSettings settings)
   at SFD.GameWorld.Update(Single chunkMs, Single totalMs, Boolean isLast, Boolean isFirst) 
> StackTrace:

> FullException:
System.Exception: System.Exception: Error:
Error: GameWorld.Update.Step() 
System.IndexOutOfRangeException: Index was outside the bounds of the array.
   at Box2D.XNA.Island.Add(Body body)
   at Box2D.XNA.World.Solve(TimeStep& step)
   at Box2D.XNA.World.Step(Single dt, Int32 velocityIterations, Int32 positionIterations)
   at SFD.GameWorld.Step(Box2DSettings settings)
   at SFD.GameWorld.Update(Single chunkMs, Single totalMs, Boolean isLast, Boolean isFirst)


Additional data
arch:x86, archWOW:AMD64
OS:Microsoft Windows NT 6.1.7601 Service Pack 1
UTD:False
What is strange, it does not give the exception when welded 2 farbgtiles:
Image
But when there are three of them, the exception occurs.
Image
I don't have any map examples here, you can see all the content on the pictures.

Also I don't know why does it show that my Os was Windows NT, since I am using Windows 7...
0 x
Image

User avatar
JakSparro98
Superfighter
Superfighter
Posts: 530
Joined: Fri Jul 15, 2016 7:56 pm
Started SFD: PreAlpha 1.0.5
Location: Rome, Italy
Gender:
Age: 25

Post by JakSparro98 » Thu May 11, 2017 1:51 pm

I would also add that this is some way related with the player collisions resolution because if I put a platform down the spawn point (world origin and not PlayerSpawn marker) this doesn't happen anymore, instead if i add one PlayerSpawn marker but I let the player to fall down the exception isn't thrown.

Anyway the Windows NT is the family of Microsoft operating systems.
0 x

User avatar
Gurt
Lead Programmer
Lead Programmer
Posts: 1884
Joined: Sun Feb 28, 2016 3:22 pm
Title: Lead programmer
Started SFD: Made it!
Location: Sweden
Gender:
Age: 34

Post by Gurt » Fri May 12, 2017 6:22 pm

FarBG tiles ain't physics enabled at all and what you're trying to do is not supported in SFD.
We will fix the crashes but you simply won't be able to weld FarBG tiles together (or using other joints on them).
0 x
Gurt

Locked