Home   Help Search Login Register  

Author Topic: Core Data - Where in BI's name is it?  (Read 2026 times)

0 Members and 1 Guest are viewing this topic.

Offline Callaghan

  • Members
  • *
Core Data - Where in BI's name is it?
« on: 14 Mar 2008, 17:24:31 »
What is the config of the "core" weapons and/or where can I find them?
Essential information for the project I am currently working on.
It will benefit the entire community so please do help if you can.

Offline Wolfrug

  • Addons Depot
  • Former Staff
  • ****
  • Official OFPEC Old Timer
Re: Core Data - Where in BI's name is it?
« Reply #1 on: 14 Mar 2008, 18:00:41 »
What's a "core" weapon? :) All the weapon configs should be in the relevant weapons.pbo files AFAIK, but thanks to the -extensive- inheriting system, you'll often have to zoom around quite a bit to find the actual entries. I suggest copying the configs into a program that supports ctrl-f search, and use that to skip between the weapons. For instance, most recoils are defined at the (if I remember correctly) top of the config, from which they are then inherited as you go lower down. If a weapon is missing some information, see if that weapon inherits from something and, and if so, just find the original. :)

Good luck!

Wolfrug out.
"When 900 years YOU reach, look as good you will not!"

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re: Core Data - Where in BI's name is it?
« Reply #2 on: 14 Mar 2008, 20:59:09 »
cfgWeapons sections can be found in the configs of the following PBOs:

A10
bin
weapons
weapons3
aks74pso
ksvk
m107
m16a4
m16a4_acg
m16a4_acg_gl
m16a4_gl

And if you have QG

dbe1
6g30


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

Offline Callaghan

  • Members
  • *
Re: Core Data - Where in BI's name is it?
« Reply #3 on: 17 Mar 2008, 14:01:11 »
ok I shall explain- Arma configs use the 'inheritance' system you described. If you look at the main weapons configs, and follow this tree of inheretance back far enough, you will find that large amounts of default data are in the classes - riflecore, and bulletcore, including the default recoils amongst other things. Obviously in order to complete my database I need this default data. addon configs only specify ways in which their gun is 'different' from the class - rifle. i.e. ak47 = rifle, rifle = riflecore.

Code: [Select]
class cfgWeapons {
class Default; // External class reference
class PistolCore; // External class reference
class RifleCore; // External class reference
class MGunCore; // External class reference
class LauncherCore; // External class reference
class GrenadeCore; // External class reference
class CannonCore; // External class reference
external yes... but where?!

Offline h-

  • OFPEC Site
  • Administrator
  • *****
  • Formerly HateR_Kint
    • OFPEC
Re: Core Data - Where in BI's name is it?
« Reply #4 on: 17 Mar 2008, 17:17:05 »
gamefolder\Dta\Bin\
Project MCAR   ---   Northern Fronts   ---   Emitter 3Ditor
INFORMATIVE THREAD TITLES PLEASE. "PLEASE HELP" IS NOT ONE..
Chuck Norris can divide by zero.

Offline Callaghan

  • Members
  • *
Re: Core Data - Where in BI's name is it?
« Reply #5 on: 19 Mar 2008, 11:30:42 »
ah thanks, could someone post the file it contains pls? am at work and no arma here!

Offline Wolfrug

  • Addons Depot
  • Former Staff
  • ****
  • Official OFPEC Old Timer
Re: Core Data - Where in BI's name is it?
« Reply #6 on: 19 Mar 2008, 15:06:25 »
I copy-pasted the CfgAmmo part out of the bin.pbo, has a bunch of cores in it that might be what you're looking for. :) Attached to this post. Hope it helps!

Wolfrug out.
« Last Edit: 21 Aug 2009, 15:44:08 by hoz »
"When 900 years YOU reach, look as good you will not!"

Offline Callaghan

  • Members
  • *
Re: Core Data - Where in BI's name is it?
« Reply #7 on: 19 Mar 2008, 16:43:37 »
 :D you're my hero!
many thanks, callaghan