Need some help finding this THN bug
-
For most of the FW:ToW custom THNs (pretty much ported from 1.66), I get the following error in FL Server
C:\work\builds\dalibs\dalibs-build\build\Src\THORN\LuaScriptParser.cpp(1285) : WARNING:General:THORN: Failed to create event of type 8(START_PATH_MOTION). Secondary entity not found
Now there are two THNs that are attached to the base. I don’t know where to even look for it. Here’s one:
duration=1500 entities={ { entity_name="ambi_Layer_li_01_Day", type=SCENE, template_name="", lt_grp=0, srt_grp=0, usr_flg=0, spatialprops={ pos={ 0, 0, 0 }, orient={ { 1, 0, 0 }, { 0, 1, 0 }, { 0, 0, 1 } } }, up=Y_AXIS, front=Z_AXIS, ambient={ 0, 0, 0 } }, { entity_name="starsphere_Bw06", type=COMPOUND, template_name="starsphere_Li01", lt_grp=1, srt_grp=-100, usr_flg=1, flags=LIT_DYNAMIC, spatialprops={ pos={ 0, 0, 0 }, orient={ { 1, 0, 0 }, { 0, 1, 0 }, { 0, 0, 1 } } }, userprops={ category="Prop" } }, { entity_name="X/Marker_Weather", type=MARKER, template_name="", lt_grp=0, srt_grp=0, usr_flg=0, flags=REFERENCE, spatialprops={ pos={ -16.681742, 74.776398, 222.350891 }, orient={ { 0.999796, 0, 0.020214 }, { -0.000868, 0.999078, 0.042914 }, { -0.020195, -0.042923, 0.998874 } } } }, { entity_name="ambi_gf_rtc_shipcushion_5", type=PSYS, template_name="gf_rtc_shipcushion", lt_grp=0, srt_grp=0, usr_flg=0, flags=LIT_DYNAMIC + LIT_AMBIENT, spatialprops={ pos={ -8, 0, 10 }, orient={ { 1, 0, 0 }, { 0, 1, 0 }, { 0, 0, 1 } } }, psysprops={ sparam=0 } }, { entity_name="ambi_gf_rtc_shipcushion_MKR", type=MARKER, template_name="", lt_grp=0, srt_grp=0, usr_flg=0, spatialprops={ pos={ -8, 0, 10 }, orient={ { -0.772858, 0, -0.634579 }, { 0, 1, 0 }, { 0.634579, 0, -0.772858 } } } }, { entity_name="ambi_LtG23_Sky_Point", type=LIGHT, template_name="", lt_grp=23, srt_grp=0, usr_flg=0, spatialprops={ pos={ 7.155838, 0, 6.219789 }, orient={ { 1, 0, 0 }, { 0, 1, 0 }, { 0, 0, 1 } } }, lightprops={ on=Y, color={ 255, 255, 255 }, diffuse={ 0, 0, 0 }, specular={ 0, 0, 0 }, ambient={ 0.733333, 0.666667, 0.8 }, direction={ 0, 0, 1 }, range=100000, cutoff=98.999977, type=L_POINT, theta=90, atten={ 1, 0, 0 } } }, { entity_name="ambi_LtG22_Clouds_Point", type=LIGHT, template_name="", lt_grp=22, srt_grp=0, usr_flg=0, spatialprops={ pos={ 5.705816, 0, 6.228874 }, orient={ { 1, 0, 0 }, { 0, 1, 0 }, { 0, 0, 1 } } }, lightprops={ on=Y, color={ 255, 255, 255 }, diffuse={ 0, 0, 0 }, specular={ 0, 0, 0 }, ambient={ 0.968628, 0.8823530000000001, 0.756863 }, direction={ 0, 0, 1 }, range=100000, cutoff=98.999977, type=L_POINT, theta=90, atten={ 1, 0, 0 } } }, { entity_name="ambi_LtG11_Mntns_Inf", type=LIGHT, template_name="", lt_grp=11, srt_grp=0, usr_flg=0, spatialprops={ pos={ 4.158422, 0, 6.309568 }, orient={ { -0.999925, 0, 0.012243 }, { 0, 1, 0 }, { -0.012243, 0, -0.999925 } } }, lightprops={ on=Y, color={ 255, 255, 255 }, diffuse={ 0, 0, 0 }, specular={ 0, 0, 0 }, ambient={ 0.8549020000000001, 0.815686, 0.796079 }, direction={ 0, 0, 1 }, range=100000, cutoff=98.999977, type=L_DIRECT, theta=90, atten={ 1, 0, 0 } } }, { entity_name="ambi_LtG09_City", type=LIGHT, template_name="", lt_grp=9, srt_grp=0, usr_flg=0, spatialprops={ pos={ 0.420732, 0, 6.322092 }, orient={ { -0.183305, 0, 0.983056 }, { -0.302433, 0.951501, -0.056393 }, { -0.935379, -0.307646, -0.174415 } } }, lightprops={ on=Y, color={ 255, 255, 255 }, diffuse={ 0.62, 0.60, 0.50 }, specular={ 0, 0, 0 }, ambient={ 0.2, 0.2, 0.19 }, direction={ 0, 0, 1 }, range=100000, cutoff=98.999977, type=L_DIRECT, theta=90, atten={ 1, 0, 0 } } }, { entity_name="ambi_LtG00_Sun_Drt", type=LIGHT, template_name="", lt_grp=0, srt_grp=0, usr_flg=0, spatialprops={ pos={ -1.092775, 25, 6.4738 }, orient={ { 0.09723800000000001, 0, 0.995261 }, { -0.306188, 0.951501, 0.029915 }, { -0.9469919999999999, -0.307646, 0.09252199999999999 } } }, lightprops={ on=Y, color={ 255, 255, 255 }, diffuse={ 0.62, 0.60, 0.50 }, specular={ 0, 0, 0 }, ambient={ 0.286275, 0.27451, 0.258824 }, direction={ 0, 0, 1 }, range=100000, cutoff=98.999977, type=L_DIRECT, theta=90, atten={ 1, 0, 0 } } }, { entity_name="ambi_LtG03_Sun_Ships_Drt", type=LIGHT, template_name="", lt_grp=3, srt_grp=0, usr_flg=0, spatialprops={ pos={ 2.661321, 0, 6.428262 }, orient={ { 0.09723800000000001, 0, 0.995261 }, { -0.306188, 0.951501, 0.029915 }, { -0.9469919999999999, -0.307646, 0.09252199999999999 } } }, lightprops={ on=Y, color={ 255, 255, 255 }, diffuse={ 0.858824, 0.815686, 0.682353 }, specular={ 0, 0, 0 }, ambient={ 0.337255, 0.321569, 0.301961 }, direction={ 0, 0, 1 }, range=100000, cutoff=98.999977, type=L_DIRECT, theta=90, atten={ 1, 0, 0 } } }, { entity_name="ambi_LtG03_Sun_Ships_Rim_Drt", type=LIGHT, template_name="", lt_grp=3, srt_grp=0, usr_flg=0, spatialprops={ pos={ 10.492424, 25, 27.356623 }, orient={ { 0.92504, 0, 0.379871 }, { -0.184801, 0.87369, 0.450016 }, { -0.331889, -0.486483, 0.808198 } } }, lightprops={ on=Y, color={ 255, 255, 255 }, diffuse={ 0.486275, 0.486275, 0.486275 }, specular={ 0, 0, 0 }, ambient={ 0, 0, 0 }, direction={ 0, 0, 1 }, range=100000, cutoff=98.999977, type=L_DIRECT, theta=90, atten={ 1, 0, 0 } } }, { entity_name="ambi_LtG09_City_Boost", type=LIGHT, template_name="", lt_grp=9, srt_grp=0, usr_flg=0, spatialprops={ pos={ 0.204673, 0, 5.641644 }, orient={ { -0.242735, 0, 0.970093 }, { -0.298445, 0.951501, -0.07467600000000001 }, { -0.923044, -0.307646, -0.230962 } } }, lightprops={ on=Y, color={ 255, 255, 255 }, diffuse={ 0.62, 0.60, 0.50 }, specular={ 0, 0, 0 }, ambient={ 0, 0, 0 }, direction={ 0, 0, 1 }, range=100000, cutoff=98.999977, type=L_DIRECT, theta=90, atten={ 1, 0, 0 } } }, { entity_name="ambi_LtG03_Ship_Kick_Spt", type=LIGHT, template_name="", lt_grp=3, srt_grp=0, usr_flg=0, spatialprops={ pos={ 9.300878000000001, 53.879753, 30.272831 }, orient={ { -0.854023, 0, 0.520236 }, { -0.456611, 0.479212, -0.749575 }, { -0.249304, -0.877699, -0.409258 } } }, lightprops={ on=Y, color={ 255, 255, 255 }, diffuse={ 0.921569, 0.780392, 0.780392 }, specular={ 0, 0, 0 }, ambient={ 0, 0, 0 }, direction={ 0, 0, 1 }, range=50, cutoff=20, type=L_SPOT, theta=1, atten={ 1.25, 0, 0 } } } } events={ { 0, START_PSYS, { "ambi_gf_rtc_shipcushion_5" }, { duration=1500 } }, { 0, ATTACH_ENTITY, { "ambi_gf_rtc_shipcushion_5", "ambi_gf_rtc_shipcushion_MKR" }, { duration=1500, offset={ 0, 0, 0 }, up=Y_AXIS, front=NEG_Z_AXIS, target_part="", target_type=ROOT, flags=POSITION + ORIENTATION } }, { 0, START_FOG_PROP_ANIM, { "ambi_Layer_li_01_Day" }, { duration=0, fogprops={ fogon=Y, fogcolor={ 119, 102, 94 }, fogmode=F_LINEAR, fogstart=5000, fogend=70000 } } }, }
Here’s one of the two (tried to attach the second one but it won’t let me because it’s too long).
Has anyone seen this bug before or can point me in the right direction?
Thanks fellas.
-
looks like the error is in the 2nd THN. Error tells about a event (START_PATH_MOTION) Secondary entity not found
In first THN is no Path declared and no Enity attached to a Path and no Path Motion startedNormally you declare 2 Entiies in entities={}, the path and the one you want to attach to.
In events={} you attach than both enities together and start the path motion.
Look also if you close all open “{” with the “}”, most done error in THN´sIf you want you can PM me the files and i take a look.
-
Oh, that would be awesome, if you could. Thanks for the help mate. Will send the PM now.