sunski34 Posted January 1, 2020 Share Posted January 1, 2020 Hi, Happy new year folks. I have a problem with SceneryObject type. The result of world.searchObjects using Object.Category.SCENERY is ok, I have the objects. But when using getDesc and getLife functions script is stopped during the call of those functions. When I use SceneryObject.getDescByName on the same objects (using getName) then its ok I have the description datas. But in log, during the call of that function I have 2020-01-01 06:42:03.291 ERROR wInfo: can't open Objects[82510332] table 2020-01-01 06:42:03.291 ERROR GRAPHICSVISTA: Can't open model 82510332. 82510332 is the name of current object, ok. The detail of the returned table is : 2020-01-01 06:42:03.291 INFO SCRIPTING: key 'life' - Type number : 0 2020-01-01 06:42:03.291 INFO SCRIPTING: table 'attributes' listing 2020-01-01 06:42:03.291 INFO SCRIPTING: key 'Buildings' - Type boolean : True 2020-01-01 06:42:03.291 INFO SCRIPTING: key '_origin' - Type string : 2020-01-01 06:42:03.291 INFO SCRIPTING: key 'category' - Type number : 4 2020-01-01 06:42:03.291 INFO SCRIPTING: key 'typeName' - Type string : 82510332 2020-01-01 06:42:03.291 INFO SCRIPTING: key 'displayName' - Type string : desc.life is strange... value = 0 but building ok. Finaly, destroy function doesn't work, buildings are still visible. An idea? Thanks Link to comment Share on other sites More sharing options...
sunski34 Posted January 1, 2020 Author Share Posted January 1, 2020 After more tests, all returned objects have attributes set to "Buildings". No Bridge returned or other !!!! Seems that 's not working :( Link to comment Share on other sites More sharing options...
Coupon4Coffin Posted October 18, 2022 Share Posted October 18, 2022 (edited) Does anyone know whether this is a bug or perhaps this is not the correct way to query scenery objects? I encountered exactly the same issue, map is Syria if that matters. Edited October 18, 2022 by Coupon4Coffin Link to comment Share on other sites More sharing options...
toutenglisse Posted October 18, 2022 Share Posted October 18, 2022 10 minutes ago, Coupon4Coffin said: Does anyone know whether this is a bug or perhaps this is not the correct way to query scenery objects? I encountered exactly the same issue, map is Syria if that matters. Here is another thread on same topic : 1 Link to comment Share on other sites More sharing options...
Glloq Posted October 19, 2022 Share Posted October 19, 2022 Check the topic linked by toutenglisse. I'm planning soon to release something that allow me to strike some sceneryObjects on Caucasus ( and have been starting work for Syria too ). I need some time to tune / clean the first version Link to comment Share on other sites More sharing options...
Recommended Posts