Jump to content

Recommended Posts

Hello, I've been working to get some guns in game for a friend; however, I've hit a roadblock with crashing errors. To be more specific, the game will crash whenever you preview or play a mission and you have one of these guns in your inventory. The crashes have a message saying "no entry .model", or I simply get a memory error crash. Due to it being a memory crash, I'd assume the crashing would be caused by a bad model.cfg, which shouldn't really be the case, since I am using the BI sample weapon model.cfg file, adjusted to my needs, of course.

 

Here are some pictures of the weapons in game:

 

https://steamuserimages-a.akamaihd.net/ugc/158032821958466197/0B998D220EF3D9E347AFEDA3DBEF3D5914805BC5/

 

https://steamuserimages-a.akamaihd.net/ugc/158032821958466084/5F271A78FC8C5BBCBD8F0641A68C4EC56E4A3D0C/

 

https://steamuserimages-a.akamaihd.net/ugc/158032821958465874/8029B0318F96F85565B24A92CC35C7F5DB350DC8/

 

Here is the model.cfg for one of the guns. The model.cfg for each weapon is the same, except for the p3d name change, of course.

 

https://pastebin.com/Nksb7xyz

 

Ammo.hpp

 

https://pastebin.com/GqW4jABC

 

Magazines.hpp

 

https://pastebin.com/U0ahBL83

 

Weapons.hpp

 

https://pastebin.com/KRDdmK8N

 

Config.cpp

 

https://pastebin.com/hdYuyS7P

 

Apologies if any of it is long, this config is going to be a base for many more weapons later on.

 

Share this post


Link to post
Share on other sites

have you tried packing it with pboProject? It ensures that there are no typos or similar in the configs.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×