Jump to content
Sign in to follow this  
kutya

making a PBO

Recommended Posts

I'm really having trouble making a standalone PBO. Searched in many places, but nowhere found a tut on this. What I need is a step-by-step tutorial on, let's say, including a new sound to the game.

When I change an existing pbo (and it's config.cpp), everything works fine. But when I make my own PBO, the game doesn't register it. I've tried inserting the CfgPatches class but that either didn't help. I'm asking for a step-by-step creation of an addon.

Share this post


Link to post
Share on other sites

try asking on ofpec ... they once had all the info  confused_o.gif

yet maybe someone has still some files on his computer

Share this post


Link to post
Share on other sites

Thanks. I went through their tuts, but found none about this. But I didn't ask in the forums though.

Share this post


Link to post
Share on other sites

well post your config here, so that people can have a look smile_o.gif

Share this post


Link to post
Share on other sites

The config.cpp looks like this:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">#define TEast 0

#define TWest 1

#define TGuerrila 2

#define TCivilian 3

#define TSideUnknown 4

#define TEnemy 5

#define TFriendly 6

#define TLogic 7

#define true 1

#define false 0

#define private 0

#define protected 1

#define public 2

#define WeaponNoSlot 0

#define WeaponSlotPrimary 1

#define WeaponSlotSecondary 16

#define WeaponSlotItem 256

#define WeaponSlotBinocular 4096

#define WeaponHardMounted 65536

class CfgFaces

{

class C_some_face

{

name="some_face";

texture="\morefaces\some_face1.pac";

east=1;

west=1;

};

};

I'm using PBOX. If I insert this face texture config in a facestex config.cpp and repack the pbo, it works. But if I make my own folder (morefaces), put this config.cpp and the some_face1.pac also in this folder, pack the folder with PBOX (tried some other also), the face isn't available. This happens also with sounds, or anything I try to add in a separate PBO. Obviously I'm doing something wrong.

Also tried adding the CfgPatches in the cpp, which also didn't work:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">class CfgPatches

{

class some_head_textures

{

units[] = {};

weapons[] = {};

requiredVersion = 1.75;

        requiredaddons[] = {"BIS_Resistance"};

};

};

Is there something more, that should be added or I just make something wrong? With so many addons out there, I suppose almost everyone knows how to make a separate PBO.

Share this post


Link to post
Share on other sites

well you need to post the one which doesnt work smile_o.gif

Share this post


Link to post
Share on other sites

huh.gif

I'll check again and report back.

Share this post


Link to post
Share on other sites

sorry maybe i got you wrong. just upload both versions (working and not working) on yousendit.com and post the links here.

Share this post


Link to post
Share on other sites

Heh, I got you wrong too. Communication. Ok, I'll do it. BTW the above is the not working version.

Share this post


Link to post
Share on other sites

where do you want to show this up??

the cfg looks ok

cfgfaces

you dont get units with that..

so you cant find it in the editor..

place a unit on the map

and in its initline write : this setface "C_some_face"

there you go..

Share this post


Link to post
Share on other sites

I forgot to mention, that it's just a face and I'm doing what you said in the init of the mission. If I put it in an existing addon it works. But when I make it as a new addon, the game won't recognize it. I think there are 2 major possibilies of error:

1. do I need something else than the mentioned cfg and the actual face texture?

2. (most probably) I'm doing something wrong in the pbo making procedure. But what confuses me, when I open my pbo, it looks like other ones. I'm using PboX, but also using it for repacking the modified pbo's and in this case it works.

Just a check, maybe this is the case:

do I have to use

the face classname

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">this setface "C_some_face"

or

the face class' name attribute

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">this setface "some_face"

I tried the second version. Will try the first one and report.

Share this post


Link to post
Share on other sites

Got it! Works now.

I recalled, that I read somewhere all names in a config.cpp should be lowercase. Well, I forgot that whistle.gif

Obviously the cpp I put in this forum wasn't EXACTLY the same I used in practice. The difference was crucial. Sorry for bothering everyone for searching an error in a working code banghead.gif (at least who read it). But thanks for the support!

BTW the code init code should be<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">this setface "some_face"

Share this post


Link to post
Share on other sites

glad you got it to work smile_o.gif

Share this post


Link to post
Share on other sites

actually you have to set the classname if youre using setface..

anyway.

Share this post


Link to post
Share on other sites

It didn't work with the classname for me. Just with the name attribute. In many pbo's (not in mine) the names are the same as the name attribute, so maybe that's the reason that you can also use the classname.

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  

×