OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Daemoria on 14 Aug 2006, 09:46:57

Title: no entry config.bin -newbie-
Post by: Daemoria on 14 Aug 2006, 09:46:57
I just started playing operation flashpoint a week ago, and just started modding it two days ago.

I downloaded quite a bit of files, and was messing with them in the editor. The objects (trees,houses,artic tanks,etc) all place fine. I even added a weapon (ssv_documents) successfully to a civilian.
The problems start when I attempt add to add another downloaded weapon, the M40A1 sniper rifle.

Here is my int field for the civilian carrying the documents.
Code: [Select]
this addWeapon "ssv_documents";this addMagazine "M40A1"; this addWeapon "M40A1"
The weapon name in the readme that was included in the download is M40A1, and the mag name is M40A1mag. Simple enough, but apparently not.

When hitting preview, I get this nice error.
Code: [Select]
No entry 'config.bin/CfgWeapons.M40A1'.The M40A1.pbo is in the hiearchy 'Operation Flashpoint/Addons'.


I'm hoping that you people will be able to help me figure out this one little problem. I've searched these forums for a possible answer, but it appears that no one else has this problem, or knew how to fix it on their own.
Title: Re: no entry config.bin -newbie-
Post by: macguba on 14 Aug 2006, 09:56:31
Welcome to the forum!
Title: Re: no entry config.bin -newbie-
Post by: Daemoria on 14 Aug 2006, 09:58:12
Um, thank you. But perhaps some help would be better recieved?
Title: Re: no entry config.bin -newbie-
Post by: bedges on 14 Aug 2006, 10:02:31
Quote
Here is my int field for the civilian carrying the documents.

Code: [Select]
this addWeapon "ssv_documents";this addMagazine "M40A1"; this addWeapon "M40A1"


Quote
The weapon name in the readme that was included in the download is M40A1, and the mag name is M40A1mag.

in which case the code should read

Code: [Select]
this addWeapon "ssv_documents";this addMagazine "M40A1mag"; this addWeapon "M40A1"
and welcome to OFPEC ;)
Title: Re: no entry config.bin -newbie-
Post by: Daemoria on 14 Aug 2006, 10:08:19
Yeah, stupid error on my part. I fixed that, tho, and the error message now reads "...Weapons.M40A1mag'. "

I took a peek at the config.bin file with notepad, and it's full of names, and charachters that my computer can not read. I didn't mess with it, simply because I don't want it to be completly messed up.

If there is no way around the 'no entry' in the config file, I guess I'll just not use that custom weapon?
Title: Re: no entry config.bin -newbie-
Post by: bedges on 14 Aug 2006, 10:20:00
try opening the config in wordpad instead, and failing that, post it here.
Title: Re: no entry config.bin -newbie-
Post by: XCess on 14 Aug 2006, 10:33:29
Try BinView (http://www.ofpec.com/ed_depot/the_files/OFPResources/tools/BinView.zip) from the editor's depot, tools area.
I've never used the program before, as I've never needed it, but the name would suggest it will allow you to view binarized files
Title: Re: no entry config.bin -newbie-
Post by: Daemoria on 14 Aug 2006, 18:06:55
To those why helped me, thank you. Apparantly modding at 4 in the morning is not the best thing to do...the problem automaticly fixed itself on restart.

I think the problem was that I was alt-tabbing out of the application and dumping in more pbos, without giving the application a chance to add it to the config.bin .

But the problem is now fixed, the sekrit document civilian is now running around with a massive anti-material rifle. Lock this thread or whatever.
Title: Re: no entry config.bin -newbie-
Post by: JasonO on 14 Aug 2006, 19:35:57
Adding an addon without restarting will mean the addon wont be loaded into the game.

After putting in an addon into the addon or mod folder means you need to restart ofp. Thats how it works :P

Also, you can lock your own post. When typing a message you can click Additional Options..  and tick lock topic ;)