Home   Help Search Login Register  

Author Topic: Laptop  (Read 5973 times)

0 Members and 1 Guest are viewing this topic.

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:Laptop
« Reply #15 on: 21 Sep 2005, 00:06:55 »
You don't need the model file and the textures in your pbo.

They already exist in the game file.

All you really need is the config and your Laptop.pac.

Try this one:

Code: [Select]
//Defines common to ALL addons:


#define TEast    0
#define TWest    1
#define TGuerrila    2
#define TCivilian    3
#define TSideUnknown    4
#define TEnemy    5
#define TFriendly    6
#define TLogic    7

#define true       1
#define false    0

//type scope
#define private    0
#define protected    1
#define public    2

//Defines specifically for weapon addons:

#define WeaponNoSlot          0// dummy weapons
#define WeaponSlotPrimary      1// primary weapons
#define WeaponSlotSecondary            16// secondary weapons
#define WeaponSlotItem              256// items
#define WeaponSlotBinocular        4096// binocular
#define WeaponHardMounted        65536



class CfgWeapons
{
   class default  {};
   class ArchLapTop : Default
   {
      scopeWeapon = public;
      scopeMagazine = protected;

      picture="\ArchLaptop\Laptop.pac";
      model="notebook.p3d";
      modelOptics="";

      valueWeapon = 5;

      weaponType = WeaponSlotBinocular;
      magazineType = WeaponNoSlot;
      ammo=; // no ammo
      displayName = "Laptop Computer";
      reloadTime=0.0;
      sound[]={,0,1};
      canLock=LockNo;

      optics = false;
      forceOptics = false;

      primary = false;

      magazines[] = {};
   };
};

Although I am unsure if you need a cfgPatches section or not.


Planck
I know a little about a lot, and a lot about a little.

Offline The-Architect

  • Former Staff
  • ****
  • Bite my shiny metal...
    • Bob's Un-official Flashpoint Page
Re:Laptop
« Reply #16 on: 21 Sep 2005, 00:19:01 »
I changed the config for what you just posted. I removed all the stuff apart from the .PAC.

I opened the editor and placed a west unit.

I put this in the init line,

removeallweapons this; this addweapon "ArchLaptop"

I got a "No Entry 'configbin/CFGWeapons.ArchLaptop'" error.

I tried it with magazine and got the same.
James Andrew Wilkinson 1977 - 2005 R.I.P.
"If it ain't the friggin' incoming it's the friggin' outgoing. Only difference is who gets the friggin' grease, and that ain't no friggin' difference at all."

Kyle Sarnik

  • Guest
Re:Laptop
« Reply #17 on: 21 Sep 2005, 00:21:33 »
Although I am unsure if you need a cfgPatches section or not.

Nope, your config there is perfect Planck. CfgPatches is only usefull when you have different versions of the same addon, CfgPatches will define the version, which will tell OFP which versions to override, and they are also involved with those frustrating "cannot load mission, missing addons" errors that tick us all off.

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:Laptop
« Reply #18 on: 21 Sep 2005, 00:30:36 »
What about a cfgModels section?


Planck
I know a little about a lot, and a lot about a little.

Offline Pilot

  • Contributing Member
  • **
Re:Laptop
« Reply #19 on: 21 Sep 2005, 00:32:34 »
Wait, you're saying a CfgPatches section is what causes those errors?

-Student Pilot

Offline The-Architect

  • Former Staff
  • ****
  • Bite my shiny metal...
    • Bob's Un-official Flashpoint Page
Re:Laptop
« Reply #20 on: 21 Sep 2005, 00:34:43 »
Yeah, what about a CFG Models section?
James Andrew Wilkinson 1977 - 2005 R.I.P.
"If it ain't the friggin' incoming it's the friggin' outgoing. Only difference is who gets the friggin' grease, and that ain't no friggin' difference at all."

Kyle Sarnik

  • Guest
Re:Laptop
« Reply #21 on: 21 Sep 2005, 00:38:10 »
Yeah, what about a CFG Models section?

Definatly not, CfgModels is only needed to register new models with proper selections and etc... You don't need it cause your using a model thats allready in the game. And you wouldn't need it anyways because CfgModels is only needed for models with hiddenselctions, or selections that are subject to texture change by the OFP engine, things like faces, muzzle flash, lights, etc...

Offline The-Architect

  • Former Staff
  • ****
  • Bite my shiny metal...
    • Bob's Un-official Flashpoint Page
Re:Laptop
« Reply #22 on: 21 Sep 2005, 00:41:08 »
So why isn't it working?

Please can someone download it and run it through their Flashpoint to maybe get some idea?
James Andrew Wilkinson 1977 - 2005 R.I.P.
"If it ain't the friggin' incoming it's the friggin' outgoing. Only difference is who gets the friggin' grease, and that ain't no friggin' difference at all."

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:Laptop
« Reply #23 on: 21 Sep 2005, 00:45:12 »
Hmmmmm.......this model might already be in the game, but it is not configged anywhere in any of the game configs.

It is one of those many model files that has no config entry.


Planck
I know a little about a lot, and a lot about a little.

Kyle Sarnik

  • Guest
Re:Laptop
« Reply #24 on: 21 Sep 2005, 00:45:23 »
So why isn't it working?

Please can someone download it and run it through their Flashpoint to maybe get some idea?

Did you "PBO it"? All addons need to be in .pbo format, which is basicaly a way of compressing everything in that folder into one nice, small, convenient file. There are a ton of PBO encrypters out there, personally, I use MakePBO, just because its so simple and hasn't failed me yet.

Offline Pilot

  • Contributing Member
  • **
Re:Laptop
« Reply #25 on: 21 Sep 2005, 00:45:33 »
What tool did you use to compile the PBO?

Also, you did name the PBO ArchLaptop.pbo, right?  Make sure the ".pbo" is a part of the file name.  PBOTool will not make the file a .pbo unless you type .pbo at the end of the name.

-Student Pilot

Kyle Sarnik

  • Guest
Re:Laptop
« Reply #26 on: 21 Sep 2005, 00:46:13 »
What tool did you use to compile the PBO?

Also, you did name the PBO ArchLaptop.pbo, right?  Make sure the ".pbo" is a part of the file name.  PBOTool will not make the file a .pbo unless you type .pbo at the end of the name.

-Student Pilot

You're a quick one Mr. Student Pilot, but not quick enough  ;)

Offline The-Architect

  • Former Staff
  • ****
  • Bite my shiny metal...
    • Bob's Un-official Flashpoint Page
Re:Laptop
« Reply #27 on: 21 Sep 2005, 00:48:57 »
Yeah I did that. I used JaZzBrE's tool. It's always worked for me in the past.

I have the file posted on a previous post. Maybe one of you guys could take a look.

I'd appreciate it. I'm not an addon maker.
James Andrew Wilkinson 1977 - 2005 R.I.P.
"If it ain't the friggin' incoming it's the friggin' outgoing. Only difference is who gets the friggin' grease, and that ain't no friggin' difference at all."

Offline Pilot

  • Contributing Member
  • **
Re:Laptop
« Reply #28 on: 21 Sep 2005, 00:52:24 »
Lol, hey, I'm on dial-up here, give me a break. ;D

-Student Pilot


Kyle Sarnik

  • Guest
Re:Laptop
« Reply #29 on: 21 Sep 2005, 00:53:58 »
Its times like this that it's clear that cable is worth the extra cost.  ;)