Jump to content
tofarley

Arma Tools Sample files, "Cannot open object a3_headgear_example.p3d"

Recommended Posts

Hey all. I hope this is the right place to post something like this. I'm trying to get started in Arma 3 Modding. I've downloaded the Arma Tools through Steam and configured my P: drive with DevP. I've installed Al's Blender tools and all that good stuff...

I decided to try building some of the sample files included with Arma Tools just so that I could see something working in game. Unfortunately that is not happening for me. When I load a mission with the objects from the sample files, it says "Cannot open <modelname>". I'm really new to this, so I'm not sure if I'm doing something wrong, or if there's something funky with the sample files...

Steps to reproduce:

Run Addon Builder.

  • Source directory - P:\Samples_F\Test_Character_01
  • Destination directory - P:\A3_Retail\@test\addons

Clear Temp folder checked.

Not binarized (I have tried it both ways).

I generate the file successfully and load the mod.

I know the mod is loading because when I launch arma it complains "No entry for 'config.bin/CfgWeapons.Test_Weapon_01_holo_pointer_F'".

This is okay because I haven't tried to use the holo pointer yet, and at least this error tells me that the mod has loaded.

I go to the Editor. I choose Stratis for a map.

I drop a "player" on the map.

I drop an "Empty" backpack item in front of the player.

In the initialization parameters for the backpack I put: this additemcargo ["H_Test_Headgear", 2];

H_Test_Headgear is the class name defined in cfgHeadgear.hpp.

I click "Preview" for the mission. When the mission loads, it complains: "Cannot open object samples_f\test_character_01\a3_headgear_example.p3d"

Well that sort of makes sense... When I decompress the pbo I built, that directory structure doesn't exist... The pbo is a flat structure with all files in one directory.

So I tried creating that directory structure inside the pbo... But got the same result.

I tried modifying cfgHeadgear.hpp to reference "\a3_headgear_example.p3d" rather than "\samples_f\test_character_01\a3_headgear_example.p3d" and I get the slightly different error, "Cannot open object a3_headgear_example.p3d" which at least tells me that it's actually recognizing my changes to the hpp file.

Troubleshooting steps done:

  • I tried binarizing the pbo.
  • I tried *not* binarizing the pbo.
  • I tried using PBO Manager instead of Addon Manager to pack the files.
  • I tried creating my own simple object in Blender and exporting it as a3_headgear_example.p3d in case the included example model was corrupt.
  • I tried creating the directory structure referenced in cfgHeadgear.hpp (samples_f\test_character_01\) inside the pbo and putting a3_headgear_example.p3d in that directory.
  • I tried changing the directory referenced in the hpp file replacing samples_f\test_character_01\a3_headgear_example.p3d with \a3_headgear_example.p3d.
  • I tried verifying my steam cache.

Can someone see any obvious errors I'm making, or try to recreate my steps to see if I'm missing something? Any help is *greatly* appreciated!

Thanks for reading!

Tim

Share this post


Link to post
Share on other sites

So, I used the config.cpp and model.cfg files from this post by Davids: http://forums.bistudio.com/archive/index.php/t-152649.html

I left his files entirely untouched and made my own "\my_helmet\headgear_b_myhelmet" in Blender (Right now it's really just a blue cube).

It totally worked. I still have no idea why the default examples didn't work, or what black magics of config.cpp made this new one work, but I am pleased to have imported *something* into a running instance of Arma 3. If anyone can point out what I'm doing wrong in the first post, I'm sure it would still be very useful for me, but I can move forward with what I have now.

Thanks again!

Share this post


Link to post
Share on other sites

From the looks of it what you "are doing wrong in the first post", was PBO'ing the entire samples folder... You've partly overcome that issue by creating a new folder. The sample models are there as a reference guide, not as a "pack this folder into a PBO and it will magically work". They're main use is to gain knowledge as to the necessary LODs and named selections and such each model type requires (be it a weapon, vest or headgear).

Edited by Jackal326

Share this post


Link to post
Share on other sites

ive had the same problem tim i spent 2 days trying diffrent things the answer is simple in your arma 3 files create a file called samples_f and copy and paste the test sample into this folder then pack the pbo i have a video on youtube my channel name is thrifty under arma 3 samples sorry its nealy 6 years later

Share this post


Link to post
Share on other sites
37 minutes ago, Gardjinn said:

ive had the same problem tim i spent 2 days trying diffrent things the answer is simple in your arma 3 files create a file called samples_f and copy and paste the test sample into this folder then pack the pbo i have a video on youtube my channel name is thrifty under arma 3 samples sorry its nealy 6 years later

Or, read my post above and don't pack the Samples_F folder at all as....read my previous reply...

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

×