Jump to content

Recommended Posts

Posted

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

  • 2 years later...
Posted (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 by Coupon4Coffin
Posted
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 :

 

 

  • Thanks 1
Posted

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

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...