Page 1 of 1

[FTEQW] rev 5041Traceline MOVE_HITMODEL crash with non-bones

Posted: Fri Jan 20, 2017 9:48 am
by toneddu2000
Hi guys, I append here a bug trace that makes FTE crashes when you make a traceline in FTE v 5041 using MOVE_HITMODEL and pointing to a IQM model with no bones (a static mesh for example)
This is the file responsible for the crash, line 6978 and 7211 (I tested every other file and this is the one who, reverted to 5040, makes FTE not crash anymore). In my very very humble opinion, here it should be put a if block that says: "if IQM is static mesh, then jump all the events block" and then add a qc.field like "modelType", which gamedevs need to set to MODEL_IQM_TYPE_SKELETAL or MODEL_IQM_TYPE_STATIC, to speed up the process. This could be also useful because this will led to something I always loved to see: a system to manage 2 types of static mesh: 1 for appeareance (the model players see) and 1 for collision (very very low poly that's used by traceboxes for ramps, stairs, etc) and engine managing totally by itself.

I tried to contact Spike but with no success, and now we're at revision 5044, so I thought it was better to repair it now before revisions become newer and newer with a lot of efforts on IQM events(which they're great, by the way).
At the present time any of the new releases (until 5044) doesn't solve the crash

Re: [FTEQW] rev 5041Traceline MOVE_HITMODEL crash with non-b

Posted: Thu Mar 02, 2017 1:25 pm
by Nahuel
hello toneddu :) i has some issues using iqm, even in darkplaces -some crashes-. But i did notice that the iqm's was done using neosis instead iqm compiler, what kind of iqm are you using??

did you try the same model but converted with neosis or official compiler?

have a nice day

Re: [FTEQW] rev 5041Traceline MOVE_HITMODEL crash with non-b

Posted: Thu Mar 02, 2017 6:34 pm
by toneddu2000
Hello Nahuel! :) so long not hearing you! Thank you for your feedback, I use blender -> iqm exporter directly. But the problem is code-side. Infact, if you use v5040, fte doesn't crash. Sad thing was that Spike completely ignored my bug report and now fte is carrying on this bug on newer releases. :confused: Plus the bug is difficult to test, because it's involved project() function, which converts 3d space to 2d space so, if you simply make a traceline directly, for example, from player view, fte won't crash. Anyway in these months I'm so busy I can't update crafter and track fte bugs so it's all postponed to summer, which it's a shame because it was my intention to upload first release in late January :mad:

Re: [FTEQW] rev 5041Traceline MOVE_HITMODEL crash with non-b

Posted: Thu Mar 02, 2017 6:39 pm
by toneddu2000
By the way, this is the crash stack trace with FTE v5066 debug version uploaded by Spike on moodles (thanks A LOT man to have included debug version, so now we can send to you stack traces!)

Code: Select all

---------------------------
KABOOM!
---------------------------
FTE QuakeWorld or dependancy has crashed. The following stack dump been copied to your windows clipboard.

Build: Debug Win GL: FTE SVN 5066

0x0050FC9B (C:\game\fte\crafter\fteglqw_5066_debug.exe)

0x00597FC3 (C:\game\fte\crafter\fteglqw_5066_debug.exe)

0x00598591 (C:\game\fte\crafter\fteglqw_5066_debug.exe)

0x0059A314 (C:\game\fte\crafter\fteglqw_5066_debug.exe)

0x0059B577 (C:\game\fte\crafter\fteglqw_5066_debug.exe)

0x0063CDCF (C:\game\fte\crafter\fteglqw_5066_debug.exe)

0x0076CA2D (C:\game\fte\crafter\fteglqw_5066_debug.exe)

0x0077DB93 (C:\game\fte\crafter\fteglqw_5066_debug.exe)

0x0077DDE9 (C:\game\fte\crafter\fteglqw_5066_debug.exe)

0x006494DB (C:\game\fte\crafter\fteglqw_5066_debug.exe)

0x006641F9 (C:\game\fte\crafter\fteglqw_5066_debug.exe)

0x005ED66C (C:\game\fte\crafter\fteglqw_5066_debug.exe)

0x005F9BE7 (C:\game\fte\crafter\fteglqw_5066_debug.exe)

0x004D3319 (C:\game\fte\crafter\fteglqw_5066_debug.exe)

0x0089B9CD (C:\game\fte\crafter\fteglqw_5066_debug.exe)

0x004013E2 (C:\game\fte\crafter\fteglqw_5066_debug.exe)

BaseThreadInitThunk +0x24 (C:\WINDOWS\System32\KERNEL32.DLL)

RtlSubscribeWnfStateChangeNotification+0x439 (C:\WINDOWS\SYSTEM32\ntdll.dll)

RtlSubscribeWnfStateChangeNotification+0x404 (C:\WINDOWS\SYSTEM32\ntdll.dll)


---------------------------
OK   
---------------------------


Re: [FTEQW] rev 5041Traceline MOVE_HITMODEL crash with non-b

Posted: Sat Mar 04, 2017 9:52 pm
by toneddu2000
it seems that v5067 fixed crash bug. I'll test it deeply in the next days, but for now, huge thanks Spike! :biggrin: