DeleteObject(id)

Modders can post their questions on scripting and more.

Moderators: Slitherine Core, BA Moderators

Post Reply
enric
Brigadier-General - 8.8 cm Pak 43/41
Brigadier-General - 8.8 cm Pak 43/41
Posts: 1855
Joined: Sun May 15, 2011 8:47 am

DeleteObject(id)

Post by enric »

Something I'm not understanding, the following code crashes BA without any explanation.
Can someone help me, as I see Pip is not around.

id = GetTileObject(18, 18, 0) ;
Log ("GetTileObject: ", id); // I get a value here
if (id == -1)
{
// do nothing
}
else
{
DeleteObject(id);
}
pipfromslitherine
Site Admin
Site Admin
Posts: 9937
Joined: Wed Mar 23, 2005 10:35 pm

Re: DeleteObject(id)

Post by pipfromslitherine »

Can you post the error.log file after the crash to give some more info.

Thanks!

Cheers

Pip
enric
Brigadier-General - 8.8 cm Pak 43/41
Brigadier-General - 8.8 cm Pak 43/41
Posts: 1855
Joined: Sun May 15, 2011 8:47 am

Re: DeleteObject(id)

Post by enric »

Error.log


UNKNOWN TAGS IN: CONFIG/SYSTEM.TXT
Unknown Tag: MOVIEMODE
Unknown Tag: DYNAMICENV
Unknown Tag: LAYOUTKILLSENEMYX,
END: CONFIG/SYSTEM.TXT
Creating Device.....
MonkeyInitStart
MIS: Found DD
MIS: IsHW
MIS: SetCoop
MIS: Setting Disp Mode
MIS: Done Init 3D Device
MIS: Tex Enum
MIS: SDRS
MIS: Init Decal Render
INITIAL LOAD 3170
Playing as: 0
WARNING: Trigger frame is outside the actual frames of the animation in DATA/BATTLE/UNITS/SDKFZ251_2_MORTAR.TXT (21, BOMBARD00)
SIDE 0
Still refed: /Applications/BA.app/Contents/Resources/Data/UI/UnitInfoPopup.bsf
Playing as: 0
SIDE 0
pipfromslitherine
Site Admin
Site Admin
Posts: 9937
Joined: Wed Mar 23, 2005 10:35 pm

Re: DeleteObject(id)

Post by pipfromslitherine »

OK - found the bug. Nasty - caused by some optimisations added for the iPad. It is fixed at this end, but we won't be doing an update for a while.

Cheers

Pip
enric
Brigadier-General - 8.8 cm Pak 43/41
Brigadier-General - 8.8 cm Pak 43/41
Posts: 1855
Joined: Sun May 15, 2011 8:47 am

Re: DeleteObject(id)

Post by enric »

So, is there no way to delete a object until you make an update?
pipfromslitherine
Site Admin
Site Admin
Posts: 9937
Joined: Wed Mar 23, 2005 10:35 pm

Re: DeleteObject(id)

Post by pipfromslitherine »

Correct. Sorry about that. You could potentially move the object off the map or scale it to invisible (I checked the code and these should work fine).

Cheers

Pip
Post Reply

Return to “Battle Academy : Modders Corner ”