FSIC Messageboard
  Tech Talk
  obModel

Post New Topic  Post A Reply
profile | register | preferences | faq | search

UBBFriend: Email This Page to Someone! next newest topic | next oldest topic
Author Topic:   obModel
bjorn
Pilot
posted 03-30- 02:22 PM     Click Here to See the Profile for bjorn     Edit/Delete Message   Reply w/Quote
I was never a very good friend of obModel, or at least it's not a very good friend of me.

What's the trick here?

Just for experimentation, I made a copy of a LOD, to use for a damage LOD. The only difference between it at the original, is that the damage LOD is blue.

In .asc style, I added this:

[NameList...]
...
119 ; Name number
P47DFuselageBellyDmg

...

[Group:0:0]
155 ; Group number
[LOD:0:0] ; lod118.fsd / .lod
118 ; LOD number
[Model:0:28]
119 ; modelname P47DFuselageBellyDmg
118 ; LOD number
-1 ; no LOD specified
-1 ; no LOD specified
-1 ; no LOD specified
-1 ; no LOD specified
-1 ; no Parts specified
[ENDGroup]
155 ; Group number

...

onDmg 1 (obModel 'P47DFuselageBellyDmg)

This works. Sorta. When the damage level is met, the model is replaced. The only problem is that I get two for the price of one. One blue fuselage exactly where the original was, and yet one about 2 feet above and behind the original. Why the latter one? Where did it come from? What can I do get get rid of it?

It's unfortunately not so simple that the LOD is weird.
_
/Bjorn.

IP: Logged

Raider
Pilot
posted 03-30- 03:15 PM     Click Here to See the Profile for Raider   Click Here to Email Raider     Edit/Delete Message   Reply w/Quote
bjorn,

I hope this is easier, Open your plane in OPS. Delete all the properties and Dof's, just leave the lods. Now save the plane as P47dDmg.sm

Use Names to rename any parts you want to swap in when damaged like (p47LeftWingDmg)

Be sure you specify p47LeftWingDmg and not just LeftWingDmg.

Delete any parts you do not want to use for damage. I suggest just using the big parts. Fuselage, Wings, Hstabs, Elevators, Vstab and rudder.

Also use Names to rename your texture references. Change Main.tif to MainDmg.tif and wings.tif to wingsDmg.tif.

Now make a back up copy of your two textures Main.tif and wings.tif. Rename them to MainDmg.tif and wingsDmg.tif. You can now paint them to show damage.

Once you have renamed all the parts to p47....Dmg and the textures then save the plane as p47dDmg. Open your original P47.sm, now use Object / Insert Model / File Reference, and select p47Dmg.sm. This will make the p47Dmg lods load into memory when your plane is used in a game.

You can now use the obmodel to call for the DMG parts when reaching a level of damage.

Please use the FokkerDVII as a reference. You will notice We have two levels of damage. On the second we actually modified the lods so to have real holes in the wings and the rudder is shot up real good.

If you have any questions, or if Zoycite or I may help let us know. I really love that P-47. I can't wait to see what you will do to it next.

------------------
Raider 33rd~GS
Raiders Site

[This message has been edited by Raider (edited 03-30-2000).]

IP: Logged

bjorn
Pilot
posted 03-30- 03:33 PM     Click Here to See the Profile for bjorn     Edit/Delete Message   Reply w/Quote
Raider,

Thanks. I feel that I've done that, only the model is in the same .sm as the original. I'll try to go by the letter of your advice, and look carefully into that DVII of yours (you'll have my vote, for sure.)

If things do work out, I do indeed have an ace up my sleeve for ya :-)

If all else fails, can I mail you an experimental .sm?
_
/Bjorn.

IP: Logged

Raider
Pilot
posted 03-30- 04:23 PM     Click Here to See the Profile for Raider   Click Here to Email Raider     Edit/Delete Message   Reply w/Quote
bjorn,

I really like surprises. Good luck.

Yes by all means If I can help you in any way just let me know.

You continue to amaze me.

------------------
Raider 33rd~GS
Raiders Site

IP: Logged

Sv
Pilot
posted 03-31- 08:02 AM     Click Here to See the Profile for Sv   Click Here to Email Sv     Edit/Delete Message   Reply w/Quote
bjorn,

What does it look like in OPS? The damage models MUST be in the closet. Make sure the file reference Raider talked about is ABOVE the top level of your aircraft.

------------------
-Sv =FC=

WWI in SDOE!


IP: Logged

bjorn
Pilot
posted 03-31- 01:13 PM     Click Here to See the Profile for bjorn     Edit/Delete Message   Reply w/Quote
More and more confused.

I have two replacement models for the same object. One is activated by an obModel when damaged. It works fine, only I get *two* copies of it, for whatever reason. The other is activated by an obModel in an onChildDetach property, and that one freezes SDOE. It is the obModel that causes the freeze, not the replacement object (I've tried to change to the other one that works, still freezes,) and it's not the onChildDetach property itself, as I've successfully spewed out red smoke instead of replacing the model. Confused...
_
/Bjorn.

IP: Logged

Raider
Pilot
posted 03-31- 03:34 PM     Click Here to See the Profile for Raider   Click Here to Email Raider     Edit/Delete Message   Reply w/Quote
That does sound strange. Are you saying that the original is replaced with the new model plus an extra new model.

The child model should not be sending an extra model. The wing should be able to swap in a new wing and not effect the aileron.

bjorn, If you send me the .sm I will look it over and not tell anyone what you are up to.

I would really like to help you if I can.

------------------
Raider 33rd~GS
Raiders Site

IP: Logged

All times are CT (US)

next newest topic | next oldest topic

Administrative Options: Close Topic | Archive/Move | Delete Topic
Post New Topic  Post A Reply
Hop to:

Contact Us | Fighter Squadron Information Center

(This site Copyright (c) 1999 Inertia LLC)

Powered by Infopop www.infopop.com © 2000
Ultimate Bulletin Board 5.45c