Home   Help Search Login Register  

Author Topic: Unable to bring tank ingame  (Read 2038 times)

0 Members and 1 Guest are viewing this topic.

Assassinator

  • Guest
Unable to bring tank ingame
« 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).

Skaven

  • Guest
Re:Unable to bring tank ingame
« Reply #1 on: 03 Sep 2003, 10:10:54 »
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  :-\

Assassinator

  • Guest
Re:Unable to bring tank ingame
« Reply #2 on: 03 Sep 2003, 11:39:29 »
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.

swift88

  • Guest
Re:Unable to bring tank ingame
« Reply #3 on: 03 Sep 2003, 11:40:41 »
hmmm ive got the same prob....... even if its empty ......... annoyiing ahey ??  :-\

Skaven

  • Guest
Re:Unable to bring tank ingame
« Reply #4 on: 03 Sep 2003, 11:46:51 »
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...).

swift88

  • Guest
Re:Unable to bring tank ingame
« Reply #5 on: 03 Sep 2003, 11:51:43 »
well its the m113 ambulance cpp i want, but i cant find it...................

Skaven

  • Guest
Re:Unable to bring tank ingame
« Reply #6 on: 03 Sep 2003, 12:07:42 »
 :-\ 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  :-\

swift88

  • Guest
Re:Unable to bring tank ingame
« Reply #7 on: 03 Sep 2003, 12:10:58 »
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......

Skaven

  • Guest
Re:Unable to bring tank ingame
« Reply #8 on: 03 Sep 2003, 12:49:18 »
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;
   };
« Last Edit: 03 Sep 2003, 12:54:31 by Skaven »

Assassinator

  • Guest
Re:Unable to bring tank ingame
« Reply #9 on: 03 Sep 2003, 13:08:25 »
Oh, no problem, my problem is solved, so do what you want :D

swift88

  • Guest
Re:Unable to bring tank ingame
« Reply #10 on: 03 Sep 2003, 13:20:45 »
say thanks from deadmeat.................. and thanks for your help skaven sorry assassinator

Sibylla

  • Guest
Re:Unable to bring tank ingame
« Reply #11 on: 22 Apr 2004, 11:58:39 »
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...