JrFF34 Posted March 15, 2014 Report Share Posted March 15, 2014 All day I have been trying to find the cause of two problems. I added additional fire engines and for some reason am unable to get the sirens working and unable to connect hoses. I have edited the LASiren script and added the appropriate lines for the new unit and also compared everything in the editor with fireengine1. No luck. Any help? Quote Link to comment Share on other sites More sharing options...
Xplorer4x4 Posted March 16, 2014 Report Share Posted March 16, 2014 With out seeing the scripts we would be guessing forever. Quote Link to comment Share on other sites More sharing options...
JrFF34 Posted March 16, 2014 Author Report Share Posted March 16, 2014 const char PROTO_LAX02[] = "mod:Prototypes/Vehicles/11 LAX/fire_engine3.e4p"; int soundID; Vector CarPos = v.GetPosition(); if (StrCompare(v.GetPrototypeFileName(), PROTO_ENGINE01) == 0 || StrCompare(v.GetPrototypeFileName(), PROTO_ENGINE02) == 0 || StrCompare(v.GetPrototypeFileName(), PROTO_WATERTENDER) == 0 || StrCompare(v.GetPrototypeFileName(), PROTO_LADDER) == 0 || StrCompare(v.GetPrototypeFileName(), PROTO_TILLER) == 0 || StrCompare(v.GetPrototypeFileName(), PROTO_HAZMAT) == 0 || StrCompare(v.GetPrototypeFileName(), PROTO_MOTORBOAT) == 0 || StrCompare(v.GetPrototypeFileName(), PROTO_CRASHTENDER) == 0 || StrCompare(v.GetPrototypeFileName(), PROTO_USAR) == 0 || StrCompare(v.GetPrototypeFileName(), PROTO_MCU01) == 0 || StrCompare(v.GetPrototypeFileName(), PROTO_USFS02) == 0 || StrCompare(v.GetPrototypeFileName(), PROTO_USFS04) == 0 || StrCompare(v.GetPrototypeFileName(), PROTO_SWAT_TRUCK) == 0 || StrCompare(v.GetPrototypeFileName(), PROTO_HEAVY_RESCUE) == 0 || StrCompare(v.GetPrototypeFileName(), PROTO_FBI_COMMAND) == 0) StrCompare(v.GetPrototypeFileName(), PROTO_LAX02) == 0 || { int random = Math::rand()%2; if (random == 0) { soundID = Audio::PlaySample3D("mod:Audio/FX/Sirens/Siren01.wav", CarPos, true); } else { soundID = Audio::PlaySample3D("mod:Audio/FX/Sirens/Siren02.wav", CarPos, true); } } else if (StrCompare(v.GetPrototypeFileName(), PROTO_NPS01) == 0 || StrCompare(v.GetPrototypeFileName(), PROTO_LAC01) == 0 || StrCompare(v.GetPrototypeFileName(), PROTO_BML02) == 0 || StrCompare(v.GetPrototypeFileName(), PROTO_NPS02) == 0) StrCompare(v.GetPrototypeFileName(), PROTO_LAX02) == 0 || { Quote Link to comment Share on other sites More sharing options...
squamishfire Posted March 16, 2014 Report Share Posted March 16, 2014 Okay... I am not a script er by any means so MAKE SURE YOU BACK THIS UP... I however may see a problem. This is what you put. int soundID;Vector CarPos = v.GetPosition(); if (StrCompare(v.GetPrototypeFileName(), PROTO_ENGINE01) == 0 || StrCompare(v.GetPrototypeFileName(), PROTO_ENGINE02) == 0 || StrCompare(v.GetPrototypeFileName(), PROTO_WATERTENDER) == 0 || StrCompare(v.GetPrototypeFileName(), PROTO_LADDER) == 0 ||StrCompare(v.GetPrototypeFileName(), PROTO_TILLER) == 0 || StrCompare(v.GetPrototypeFileName(), PROTO_HAZMAT) == 0 ||StrCompare(v.GetPrototypeFileName(), PROTO_MOTORBOAT) == 0 || StrCompare(v.GetPrototypeFileName(), PROTO_CRASHTENDER) == 0 || StrCompare(v.GetPrototypeFileName(), PROTO_USAR) == 0 ||StrCompare(v.GetPrototypeFileName(), PROTO_MCU01) == 0 || StrCompare(v.GetPrototypeFileName(), PROTO_USFS02) == 0 || StrCompare(v.GetPrototypeFileName(), PROTO_USFS04) == 0 || StrCompare(v.GetPrototypeFileName(), PROTO_SWAT_TRUCK) == 0 || StrCompare(v.GetPrototypeFileName(), PROTO_HEAVY_RESCUE) == 0 || StrCompare(v.GetPrototypeFileName(), PROTO_FBI_COMMAND) == 0) StrCompare(v.GetPrototypeFileName(), PROTO_LAX02) == 0 || {int random = Math::rand()%2;if (random == 0){ soundID = Audio::PlaySample3D("mod:Audio/FX/Sirens/Siren01.wav", CarPos, true);} else{ soundID = Audio::PlaySample3D("mod:Audio/FX/Sirens/Siren02.wav", CarPos, true);} } else if (StrCompare(v.GetPrototypeFileName(), PROTO_NPS01) == 0 || StrCompare(v.GetPrototypeFileName(), PROTO_LAC01) == 0 || StrCompare(v.GetPrototypeFileName(), PROTO_BML02) == 0 || StrCompare(v.GetPrototypeFileName(), PROTO_NPS02) == 0) StrCompare(v.GetPrototypeFileName(), PROTO_LAX02) == 0 || I believe your problem is right here int soundID;Vector CarPos = v.GetPosition(); if (StrCompare(v.GetPrototypeFileName(), PROTO_ENGINE01) == 0 || StrCompare(v.GetPrototypeFileName(), PROTO_ENGINE02) == 0 || StrCompare(v.GetPrototypeFileName(), PROTO_WATERTENDER) == 0 || StrCompare(v.GetPrototypeFileName(), PROTO_LADDER) == 0 ||StrCompare(v.GetPrototypeFileName(), PROTO_TILLER) == 0 || StrCompare(v.GetPrototypeFileName(), PROTO_HAZMAT) == 0 ||StrCompare(v.GetPrototypeFileName(), PROTO_MOTORBOAT) == 0 || StrCompare(v.GetPrototypeFileName(), PROTO_CRASHTENDER) == 0 || StrCompare(v.GetPrototypeFileName(), PROTO_USAR) == 0 ||StrCompare(v.GetPrototypeFileName(), PROTO_MCU01) == 0 || StrCompare(v.GetPrototypeFileName(), PROTO_USFS02) == 0 || StrCompare(v.GetPrototypeFileName(), PROTO_USFS04) == 0 || StrCompare(v.GetPrototypeFileName(), PROTO_SWAT_TRUCK) == 0 || StrCompare(v.GetPrototypeFileName(), PROTO_HEAVY_RESCUE) == 0 || StrCompare(v.GetPrototypeFileName(), PROTO_FBI_COMMAND) == 0) StrCompare(v.GetPrototypeFileName(), PROTO_LAX02) == 0 || {int random = Math::rand()%2;if (random == 0){ soundID = Audio::PlaySample3D("mod:Audio/FX/Sirens/Siren01.wav", CarPos, true);} else{ soundID = Audio::PlaySample3D("mod:Audio/FX/Sirens/Siren02.wav", CarPos, true);} } else if (StrCompare(v.GetPrototypeFileName(), PROTO_NPS01) == 0 || StrCompare(v.GetPrototypeFileName(), PROTO_LAC01) == 0 || StrCompare(v.GetPrototypeFileName(), PROTO_BML02) == 0 || StrCompare(v.GetPrototypeFileName(), PROTO_NPS02) == 0) StrCompare(v.GetPrototypeFileName(), PROTO_LAX02) == 0 || From what I can tell just by looking at what is above and below the items it looks like || acts like there will be another line with the ) acts like a end. REMEMBERING TO BACK UP YOUR FILES... I would try putting the || behind the FBI Command and then the ) behind your LAX engine and then do the same with the NPS02 and the LAX02. Good luck. Quote Link to comment Share on other sites More sharing options...
JrFF34 Posted March 16, 2014 Author Report Share Posted March 16, 2014 Okay... I am not a script er by any means so MAKE SURE YOU BACK THIS UP... I however may see a problem. This is what you put. I believe your problem is right here From what I can tell just by looking at what is above and below the items it looks like || acts like there will be another line with the ) acts like a end. REMEMBERING TO BACK UP YOUR FILES... I would try putting the || behind the FBI Command and then the ) behind your LAX engine and then do the same with the NPS02 and the LAX02. Good luck. Are you positive youre no a scripter? It worked! Now I just need to get the hoselines working where they will contact. Quote Link to comment Share on other sites More sharing options...
squamishfire Posted March 16, 2014 Report Share Posted March 16, 2014 Oh trust me I am no scripter lol... I can edit files if I want to add or remove a unit but that is pretty much what I am limited to. I just looked at what you had and saw something that didn't add up :-) I am glad that it worked! Quote Link to comment Share on other sites More sharing options...
JrFF34 Posted March 16, 2014 Author Report Share Posted March 16, 2014 Saved me a headache from having to figure that out. Now I just gotta figure out this connection issue with the hoses and ill be set. Quote Link to comment Share on other sites More sharing options...
JrFF34 Posted March 17, 2014 Author Report Share Posted March 17, 2014 Sorry, dont need to double post but can someone give me some help with this issue? It only happens when I create a new unit. For example. I took the usfs_engine files and created a new folder "11 CalFire"... Everything points towards the new .ep4 which is located in the new folder, but these doors keep coming up with the old scheme... But on the otherhand, if I take the new usfs_engine.dds and replace the original file in LA Fire Department, I do not have this problem. Quote Link to comment Share on other sites More sharing options...
Xplorer4x4 Posted March 18, 2014 Report Share Posted March 18, 2014 Doors have there own prototypes and model/.v30 files. You need to edit the v3o files for those and then you can find the prototypes for the doors in the Objects section I believe. Quote Link to comment Share on other sites More sharing options...