Jump to content

Sign in to follow this  
paranoid_giraffe

First Time Modding, Item Not Appearing

Recommended Posts

I am completely new to the Arma series since Arma 3, and this is my first time modding anything. For some reason, this won't show up. And I have checked the tutorials and looked all over the web for help, but nothing I do seems to work! My PBO maker doesn't say I am getting errors, so I don't know what's up. I don't see my texture in the VAS or when I use

 removeVest this; this addVest "example_vest";[/Code]

Nothing shows up, so I have no idea what is wrong. The pre-PBO path to the texture is "...\@jtf2\addon\[b]jtf2[/b]\jtf2\data\test.paa". The bold directory is the one I click to pack.

Here is my config.cpp

  Reveal hidden contents

Share this post


Link to post
Share on other sites

I think your texture path may be wrong, try.

hiddenSelectionsTextures[] = {"\jtf2\jtf2\data\test.paa"};

Share this post


Link to post
Share on other sites
  Quote
The pre-PBO path to the texture is "...\@jtf2\addon\jtf2\jtf2\data\test.paa".

Hopefuly you mean Post (after pbo)

if you really mean pre pbo then it should be as follows or wont work ,open binpo click change and direct to whichever is correct

if it is p:\jtf2\data\test.paa

the when PBO select option use folder as source

if it is p:\jtf2\jtf2\data\test.paa

then untick in option use source folder and type \jtf2\

Share this post


Link to post
Share on other sites

That didn't work. I should clarify: it is not that the object doesn't "show up" or turn invisible, it is the fact that it does not even spawn, like its class was never created.

---------- Post added at 14:28 ---------- Previous post was at 14:27 ----------

I am not sure I understand you, Sealife.

---------- Post added at 14:29 ---------- Previous post was at 14:28 ----------

Oh, and when I pack, it sends the PBO to the addons folder.

Share this post


Link to post
Share on other sites

yeah packing to your shown path is good but it doesnt match the path to your cpp texture :)

so keep the packed pbo destination but its not correct should be addons inside jtf2 not addon

  Quote
\@jtf2\addons\jtf2\data\test.paa

thats if you choose the seected folder on p drive for which you will pack as

  Quote
p:\jtf2\data\test.paa

however if it is

  Quote
\jtf2\jtf2\data\test.paa

then change the path in the cpp hidden selection texture and also in binpbo in options

then untick in option use source folder and type \jtf2\

Edited by Sealife

Share this post


Link to post
Share on other sites

Is your mod folder (@jtf2) enabled, or you have it in a start-up parameter (-mod=@jtf2)?

I tested your config in game with a procedural texture and the default texture was shown, this config works.

enum {
   DESTRUCTENGINE = 2,
   DESTRUCTDEFAULT = 6,
   DESTRUCTWRECK = 7,
   DESTRUCTTREE = 3,
   DESTRUCTTENT = 4,
   STABILIZEDINAXISX = 1,
   STABILIZEDINAXESXYZ = 4,
   STABILIZEDINAXISY = 2,
   STABILIZEDINAXESBOTH = 3,
   DESTRUCTNO = 0,
   STABILIZEDINAXESNONE = 0,
   DESTRUCTMAN = 5,
   DESTRUCTBUILDING = 1,
};

class CfgPatches {
   class example_vest_config {
       units[] = {};
       weapons[] = {};
       requiredVersion = 0.1;
       requiredAddons[] = {"A3_Characters_F_BLUFOR"};
   };
};

class cfgWeapons {
   class Vest_Camo_Base;
   class VestItem;

   class example_vest : Vest_Camo_Base {
       scope = 2;
       displayName = "Example vest";
       picture = "\A3\characters_f\Data\UI\icon_V_plate_carrier_1_CA.paa";
       model = "\A3\Characters_F\Common\equip_tacticalvest";
	hiddenSelections[] = {"camo"}; // Added this
       hiddenSelectionsTextures[] = {"#(rgb,8,8,3)color(1,0,0,1)"}; // Test this first should be all red, then replace with your texture.

       class ItemInfo : VestItem {
           uniformModel = "\A3\Characters_F\Common\equip_tacticalvest";
           containerClass = "Supply100";
           mass = 50;
           armor = 5*0.5;
           passThrough = 0.7;
		hiddenSelections[] = {"camo"}; // Added this
       };
   };
}; 

Share this post


Link to post
Share on other sites

Okay, I unticked the option of using the source file. So you're saying to get rid of the dublicate "jtf2" directory? And I can't just type \jtf2\ ... I am very grateful you are helping but I am having a difficult time understanding you

PBO options:

Addon source directory

c:\program files (x86)\steam\steamapps\common\arma 3\@jtf2\addon\jtf2

destination directory

C:\Program Files (x86)\Steam\SteamApps\common\Arma 3\@jtf2\addon

path to signature file

C:\Program Files (x86)\Steam\SteamApps\common\Arma 3\! private files\jtf2.biprivatekey

path to temp folder

C:\Users\<my name>\AppData\Local\Temp\ARMAaddons

path to project folder

c:\program files (x86)\steam\steamapps\common\arma 3\@jtf2\addon

here is the architecture of my @jtf2 folder:

\@jtf2
    ..\addon
         ..\<this is the location of pbo files>
         ..\jtf2 <this is the folder that gets packed>
              ..\jtf2
                   ..\config.cpp
                   ..\data
                        ..\test.paa

---------- Post added at 15:15 ---------- Previous post was at 15:15 ----------

Steam launch options:

-window -x=1905 -y=1001 -noPause -nosplash -skipintro -mod=@jtf2

---------- Post added at 15:16 ---------- Previous post was at 15:15 ----------

If everything seems a-okay, then what do I do to get to use my vest? Its just a vest with red scribbles on it to see if I could get it to work :/

Share this post


Link to post
Share on other sites

Hmm

firstly its addons not addon inside @jtf2

second where is the folder you are packing ? and i dont mean the destination of the pbo after packing , i mean the original folder you work on to be packed.

if its not on P:drive i cant help you

Share this post


Link to post
Share on other sites

Aha!! Thank you! I didn't realize I had typed "addon" and not "addons". That was my problem all along! Pheww well that was a headache and a half. Thank you so much:D:yay:

---------- Post added at 15:49 ---------- Previous post was at 15:47 ----------

One last question, do I seriously have to repack a pbo every time I want to test it?

Share this post


Link to post
Share on other sites

you can put a texture in mission folder and simply use setobject texture to test

probably something like MV= "example_vest" createvehicle getpos player ; MV setobjecttexture ["namoftextureinmissionfolder.paa",0];

untested

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
Sign in to follow this  

×