OFPEC Forum
Addons & Mods Depot => OFP - Addons & Mods General => Topic started by: Assassinator on 03 Sep 2003, 00:00:52
-
I made a tank in oxygen, and configured as like m113/bmp (it is a Tank with a gun like bmp but has just 2 crew members).
I wrote the config for it (IÂ'm Coder of Great Assault-Mod). Everything wents fine, I start OFP, it loads the tanks, I get no errors. I can also place it in the editor, but when I start the game, the screens turns shortly black and then IÂ'm back on the Desktop and OFP has ended itself.
Did anybody have the same problems? Maybe suggestions what could be the error? My Tank consists (at the moment) of following Lods:
0.0
FireGeometry
Geometry
Hit-Points
LandContact
Memory
View-Gunner
View-Gunner-Geometry
View-Cargo
View-Cargo-Geometry
I donÂ't have any addons in my addon-folder, except the Great Assault-Files, which are at all 700 kb (no models, sounds etc. ingame yet). So it canÂ't be that I have to few memory (i got 768 MB 333 Mhz Memory).
-
That sounds like a cpp file problem, try placing the tank empty in the editor and than choose a normal soldier as the player and see if it crashes.
In this case it shouldn't be the lods :-\
-
Jep, it was. I just added the RPM and so on-classes with just opening and closing {}. After I put "axis=""" and so on in it, it worked.
-
hmmm ive got the same prob....... even if its empty ......... annoyiing ahey ?? :-\
-
swift88 there is an easy way to check if the problem is of the model or of the cpp file, do this:
Download an existing tank, than replace your model with the original model, rename it to the same name as the original one ***.p3d, than stuff the pbo, try it in game as an empty vehicle and see if it works, if it does than you know it, cpp problem, if it doesn't than it's a model problem (selections,lods,propreties...).
-
well its the m113 ambulance cpp i want, but i cant find it...................
-
:-\ that might be a problem :-\
But is it's the M113 Ambulance than the cpp files is very easy, I could help you but not from here (office) :-\
You made the model from scratch or you used the BIS one?
If it was from scratch than I say it's probably a model problem, if you used the BIS one, than it's probably a cpp file problem, there is a nice cpp file tutorial in the Editors Depot, it was wrighten from Snypir, I sugest you to read it, it's a little bit long, but at least as soon as you finnesh it you won't have more problems with cpp files :-\ I can't do much more for you :-\
-
the model is from scratch but as Assassinator has described, i have done all those plus my config abillity is ok from my eyes,............ so i think its just that im using the wrong names......
-
Sorry for using your thread Assassinator :-\
DeadMeat just sent me a working cpp file for you to try swift88 ;)
Change the necessary lines as:
class M113Ambul: M113
model=M113_ambulance;
HERE IT GOES: :o
class AllVehicles: All {};
   class Land: AllVehicles {};
   class LandVehicle: Land {};
   class Tank: LandVehicle {};
   class APC: Tank {};
   class M113: APC {};
   class M113Ambul: M113
   {
      //--
      accuracy=1000; // never recognized
      vehicleClass="Support";
      icon="Ambulance_move";
      picture=im113_ambu;
      nameSound="ambulance";
      scope=public;
      displayName=$STR_DN_M113_AMB;
DefaultWestMagazines(0);
      attendant = true;
      model=M113_ambulance;
      weapons[]={};
      magazines[]={};
      hasGunner = false;
      transportSoldier = 3;
      type=VArmor;
      //threat[] VSoft, VArmor, VAir
      threat[]={0.0, 0.0, 0.0};
      typicalCargo[]={};
cargoAction[] ={ManActM113Medic,ManActM113Medic, ManActM113Injured};
      cargoIsCoDriver[] = {false, false, false};
      transportMaxMagazines = 0;
      transportMaxWeapons = 0;
   };
-
Oh, no problem, my problem is solved, so do what you want :D
-
say thanks from deadmeat.................. and thanks for your help skaven sorry assassinator
-
Yepyep, have the same problem...only this time its a boat.
Stripped the cfg of all but the basics( ie no turrets, no unecessary proxys)
still the game crashes when I try to load it up in the editor.
But if the procedure described above with placing an empty veh and then starting should make sure wether its a model or config problem, then I do have a config problem...weird...