|
Author
|
Topic: SM file reference question - help!
|
Sv Pilot
|
posted 01-18- 09:22 AM
What is the real deal with referenced files? I have this strange bug now: My SE5a has a referenced file called SE5aDmg.sm - just like Parsoft's fokker. Basicaly the models are replaced upon certain damage levels using the "model" property. I replaced the LODS in this SE5aDmg.sm file with new ones - it worked for a long time (a month now)! But now I see this strange bug: When these new damage LODS are shown, it takes parts from the Fokker SM file! I has worked for quite a while, and now it doesn't. I removed the Fokker from the aircraft directory AND removed both SDOE casche files. It still shows Fokker upon damaging! Also my mainShadow object looks like a Fokker even though I triple checked everything and it should be my SE5a shadow that used to work fine. I checked the paths to the SM file ref, and even to each texture - from OPS and the .asc file. This is so strange.Another instance of this bug was reported: Zoycite reported that his Fokker (based on the Fokker DR1a) was showing parts of my SE5a when it switched to the damage models!!! I thought it must be an issue with his plane (blame the other guy LOL) but now I have this issue too. About model names - what is the scope of a model name (like 'ULWing, or 'SE5a)? - is it local the the SM file, or local to the entire plane? Is there any chance that two models from seperate planes that have the same name can get confused? Also, Bryan: How do I add a LOD to an SM file that is opened as "assume all top level" file? I can not even copy and paste objects in this mode because there is no parent to paste under! Even when I open the full SE5a NOT in the top-level mode, when I go to copy and paste under the SE5aDmg SM file ref it ignores me  Also, I open my SE5a.sm file. What is the deal with models that are "above" the main aircraft model level. What is the parent of these objects, like manShadow, and propFast? How are the coord systems of these "super" objects related to the main aircraft's coord system??? I notice that if make the damge LODS viewable (click on LOD and set active) the entire damage version of the Fokker is about 3 feet higher than the normal LODS. Why? Thanks for any help here, this is a temporary show-stopper for me  ------------------ -Sv =FC= WWI in SDOE! IP: Logged |
Sv Pilot
|
posted 01-18- 10:36 AM
This just in:Werner Molders also reports this same bug, but with version 7 of my SE5a. He says he sees Fokker damage parts on my SE5a, and SE5a damage parts on the Fokker DR1. Ahhhhhh! This one is killing me. -Sv IP: Logged |
Raider Pilot
|
posted 01-18- 11:07 AM
SV, do you have copies of those planes saved in other directories (like back ups)? Could it be loading stuff from them?I tried to help Poodle a long time ago with a Dutch Fokker Dr1a and had the same problem. I never did find a fix. IP: Logged |
Sv Pilot
|
posted 01-18- 11:57 AM
No, I use Microsoft Visual Source Safe for version control - I do not keep seperate back-up files. I keep thinking that something like this must be the problem, but it is happening to many people...-Sv IP: Logged |
Bryan Russell Pilot
|
posted 01-18- 01:19 PM
quote:
About model names - what is the scope of a model name (like 'ULWing, or 'SE5a)? - is it local the the SM file, or local to the entire plane? Is there any chance that two models from seperate planes that have the same name can get confused?
I think that in theory it is local to the smObject loaded from the SM file. The smObject is then used to create instances of a particular aircraft. I seem to remember a bug or a fix mentioned by MH that had to do with the scope of objects, I'm not sure about that though. One thing to make sure that model scope is not your problem is just to change the name slightly of you damage sections to make them unique. I guess this might also cause problems for aircraft that have been derived from a shipped plane, although maybe more subtle. quote:
Also, Bryan: How do I add a LOD to an SM file that is opened as "assume all top level" file? I can not even copy and paste objects in this mode because there is no parent to paste under! Even when I open the full SE5a NOT in the top-level mode, when I go to copy and paste under the SE5aDmg SM file ref it ignores me.
I you click off the model in the 3D window, so that nothing is selected and then paste it should paste on the root level quote:
Also, I open my SE5a.sm file. What is the deal with models that are "above" the main aircraft model level. What is the parent of these objects, like manShadow, and propFast? How are the coord systems of these "super" objects related to the main aircraft's coord system??? I notice that if make the damge LODS viewable (click on LOD and set active) the entire damage version of the Fokker is about 3 feet higher than the normal LODS. Why?
These items are designed to either replace an existing model, i.e. the fastProps etc, or things like the shadows that are placed using a property list. For the props and other models that replace another model, they use the matrix and co-ordinate systems of the models they replace. I'm not sure about the shadows co-ordinate system as I haven't done much with these, but their 'matrix' is explicitly supplied via the proplist. The position they appear in OPS is probably irrelevant.Bryan IP: Logged |
Sv Pilot
|
posted 01-18- 01:37 PM
Great, great, GREAT Bryan - thanks! This is perfect!I am glad to understand the model replacement coord sytem - that makes sense to me now - relevant to the model it replaces - that explains why mine seemed to magicaly line up the first try - and I though I just got lucky!  I will test the model name theory... -Sv IP: Logged |
Zoycite JAG
|
posted 01-18- 05:20 PM
Heya,Here is the bug in action....... Lol, looks kinda funny But its a big problem. Hopefully with an easy fix. When I first saw this I though that my plane was screwed up. So checked all my files they were fine. So I thought it was SV's plane. So I had a closer look at his plane and saw nothing wrong. I havnt seen this with the DRIa. The only thing that appears the same in both DMG Sm's are the names of the Dmg Lods. Will changing these fix this? Aslo, my DVII only shows dmg lods with the SE5a, I havnt seen them swicth to the DR1A. Red or Blue. And atleast for me, this only appears to happen when the SE5a is in the same mission with the DVII. Hmmm, I dont have any missions with the Dr1 vs DVII, I'll go have a look at that. So when its just one plane type in the mission the lods switch fine. Add another plane type and the above occurs. Not every time but enough to be a problem  ------------------ Zoycite {GS} GUNSLINGERS visit The War Paint Factory IP: Logged | |