So here's the thing. I'm making a destructible house that when you click on parts of it, chunks get removed and fly around. It works perfectly in the editor, it flys around and looks a bit like Age of Empire 3 (which is GOOD).
Problem is, every piece is set to isKinematic = true at startup and I give the isKinematic = false with a script to unlodge them and make them fly around. Like I said, in the editor it works, but the second I do that in an executable BAM it crashes and gives me this pretty little log :
Unity Player [version: Unity 4.3.0f4_e01000627d60]
GoC2.exe caused an Access Violation (0xc0000005)
in module GoC2.exe at 0033:80509e3c.
Error occurred at 2013-11-30_143026.
D:\Projets\God of Chaos 2\Exec\GoC2.exe, run by Fel.
20% memory in use.
16282 MB physical memory [12882 MB free].
18714 MB paging file [14299 MB free].
134217728 MB user address space [134217323 MB free].
Read from location ffffffff caused an access violation.
Context:
RDI: 0x02916520 RSI: 0x00000000 RAX: 0x00000002
RBX: 0x0f3247a8 RCX: 0x00000006 RDX: 0x00000009
RIP: 0x80509e3c RBP: 0x00000000 SegCs: 0x00000033
EFlags: 0x00010202 RSP: 0x00adefc0 SegSs: 0x0000002b
R8: 0x00000003 R9: 0x029318dc R10: 0xe0000000
R11: 0x00adef80 R12: 0x00000008 R13: 0x00000000
R14: 0x02a0e718 R15: 0x029c7460
Bytes at CS:EIP:
0f 54 8c 24 88 01 00 00 44 0f 54 9c 24 88 01 00 Module 1
C:\WINDOWS\SYSTEM32\xinput1_3.dll
Image Base: 0x00400000 Image Size: 0x0001e000
File Size: 107368 File Time: 2007-04-04_185422
Version:
Company: Microsoft Corporation
Product: Microsoft® DirectX for Windows®
FileDesc: Microsoft Common Controller API
FileVer: 9.18.944.0
ProdVer: 9.18.944.0
== [end of error.log] ==
So, I have Unity free and no plugins whatsoever, just pure javascript and 3ds max models with textures and a terrain. When I remove that kinematic line from my code it works in the executable but well, the chunks don't get removed which is pretty dumb and not what I want at all.
Should I file an error report directly to Unity or am I doing something wrong here?
↧