Forum Jump :

Author Message

JeyR  



Posts: 8
Rank:


Level: Member

Country: hu
Location:
Occupation:
Age:
In-game name:

 
#1 Posted at 2017-01-28 15:12        
     
Helo. I'm new on this site, but currently I am so desperate that I realized I must post my problem, so that maybe the more experienced people can help me. So, I am trying to change the picture of a weapon (RPG7V) so it would look different in the inventory/crates. This is my config right now :

class CfgPatches
{
	class better_rpg
	{
		units[] = {};
		weapons[] = {"RPG7V_Gold"};
		requiredAddons[] = {"CAWeapons"};
	};
};
class CfgWeapons
{
	class Launcher;
	class LauncherCore;
	class Default;
	class RPG7V : Launcher{};
	class RPG7V_Gold : RPG7V
	{
		displayName = "RPG7 Gold";
		picture = "x\jey\addons\better_rpg\w_rpg7_ca.paa";
		descriptionShort = "Gold RPG7";
	};
};

So as you can see this is a very basic config. The problem is , when I spawn down the item an error appears : "Picture x\jey\addons\better_rpg\w_rpg7_ca.paa not found"
What I tried is :
-Changing the picture route / Didn't work
-Changing the addon name / Didn't work
-Using $pboprefix$ / Didn't work
-Adding/removing "\" / Didn't work

If anyone has any idea I'd be MOST Thankful!


Author Message


Posts: 1189
Rank:


Level: Member

Country: tr
Location:
Occupation: Computer Science student
Age: 20
In-game name: Wak

 
#2 Posted at 2017-01-29 17:08        
     
For the path you have (x\jey\addons\better_rpg\w_rpg7_ca.pa), this would be the ideal configuration:

PREFIX: x\jey\addons\better_rpg
pbo name: better_rpg.pbo
paa path: better_rpg\w_rpg7_ca.paa

Also you don't need all those class imports, this much should be enough:
class RPG7V;
class RPG7V_Gold : RPG7V
{
...

Here is an example pbo with a mock paa file.

This post was edited by 654wak654 (2017-03-25 11:05, 265 days ago)

Sometimes I like to think as I started the whole "earplugs" thing.

W0lle: The only advice I can give you is: Do not try to understand BI. You will not succeed and it only makes your brain go boom. I would even go so far and say that not even they understand their own actions :-D.

#define getDamage getDammage

Advertisement


Author Message

JeyR  



Posts: 8
Rank:


Level: Member

Country: hu
Location:
Occupation:
Age:
In-game name:

 
#3 Posted at 2017-01-30 14:47        
     
This is wrong I must say, I put the mod in use (the one that you sent me), and this error message appears, even before the game starts.
Picture

Edit: I recreated the pbo with your config, didn't change anything except creating a $pboprefix$ with "prefix = x\jey\addons\better_rpg". With this the mod runs, and when I spawn the item inside the crate, and open the crate afterwards this error appears :
"Picture equip\w\w_x\jey\addons\better_rpg\w_rpg7_ca.paa.paa not found"

This post was edited by JeyR (2017-01-30 15:12, 318 days ago)


Author Message


Posts: 1189
Rank:


Level: Member

Country: tr
Location:
Occupation: Computer Science student
Age: 20
In-game name: Wak

 
#4 Posted at 2017-02-01 22:09        
     
You don't put `prefix = x\jey\addons\better_rpg` inside the pboprefix, you literally just have the path, like this:
x\jey\addons\better_rpg

The error should just be "Picture x\jey\addons\better_rpg\w_rpg7_ca.paa not found", weird.

Could you send the pbo you used?

Sometimes I like to think as I started the whole "earplugs" thing.

W0lle: The only advice I can give you is: Do not try to understand BI. You will not succeed and it only makes your brain go boom. I would even go so far and say that not even they understand their own actions :-D.

#define getDamage getDammage

Author Message

JeyR  



Posts: 8
Rank:


Level: Member

Country: hu
Location:
Occupation:
Age:
In-game name:

 
#5 Posted at 2017-02-02 19:30        
     
I Literally used yours, except changing the $pboprefix$.


Author Message


Posts: 1189
Rank:


Level: Member

Country: tr
Location:
Occupation: Computer Science student
Age: 20
In-game name: Wak

 
#6 Posted at 2017-02-02 20:12        
     
What did you change it to?

Sometimes I like to think as I started the whole "earplugs" thing.

W0lle: The only advice I can give you is: Do not try to understand BI. You will not succeed and it only makes your brain go boom. I would even go so far and say that not even they understand their own actions :-D.

#define getDamage getDammage

Author Message

JeyR  



Posts: 8
Rank:


Level: Member

Country: hu
Location:
Occupation:
Age:
In-game name:

 
#7 Posted at 2017-02-02 20:15        
     
prefix = x\jey\addons\better_rpg


Author Message


Posts: 1189
Rank:


Level: Member

Country: tr
Location:
Occupation: Computer Science student
Age: 20
In-game name: Wak

 
#8 Posted at 2017-02-02 20:19        
     
You're supposed to have just the path! The file should be x\jey\addons\better_rpg. Unpack some of BI's or other mods' pbos, they have it the same.

Sometimes I like to think as I started the whole "earplugs" thing.

W0lle: The only advice I can give you is: Do not try to understand BI. You will not succeed and it only makes your brain go boom. I would even go so far and say that not even they understand their own actions :-D.

#define getDamage getDammage

Author Message

JeyR  



Posts: 8
Rank:


Level: Member

Country: hu
Location:
Occupation:
Age:
In-game name:

 
#9 Posted at 2017-02-03 15:01        
     
Believe me or not that was the first i tried. Didn't work, error was : "Picture equip\w\w_x\jey\addons\better_rpg\w_rpg7_ca.paa.paa not found"


Author Message

W0lle  

call me evil


Posts: 1944
Rank:


Country: de
Location:
Occupation: CWR² Project Lead
Age: 101
In-game name:

 
#10 Posted at 2017-02-03 17:45        
     
My god. Now share this damn addon already so the people trying to help you fix the problem can have a look at the stuff. By now the problem most probably would have been fixed already if you shared the files. I highly doubt it's that top secret stuff. %)


Author Message

JeyR  



Posts: 8
Rank:


Level: Member

Country: hu
Location:
Occupation:
Age:
In-game name:

 
#11 Posted at 2017-02-03 20:24        
     
I shared it, exactly, xDD that's everything what is inside the configs,changed nothing, it is only one config.cpp.

    class CfgPatches
    {
        class better_rpg
        {
            units[] = {};
            weapons[] = {"RPG7V_Gold"};
            requiredAddons[] = {"CAWeapons"};
        };
    };
    class CfgWeapons
    {
        class Launcher;
        class RPG7V : Launcher{};
        class RPG7V_Gold : RPG7V
        {
            displayName = "RPG7 Gold";
            picture = "x\jey\addons\better_rpg\w_rpg7_ca.paa";
            descriptionShort = "Gold RPG7";
        };
    };
And there is also the $pboprefix$ with "x\jey\addons\better_rpg" right now. But the error is the same.


Author Message

W0lle  

call me evil


Posts: 1944
Rank:


Country: de
Location:
Occupation: CWR² Project Lead
Age: 101
In-game name:

 
#12 Posted at 2017-02-04 00:43        
     
Really odd issue. Tried it myself with your config and paths. The packing went fine but the stupid picture is not shown.

First I thought it has something to do with the 'addons' in the path, with the Bohemians you never know, but that's not the case. Having a pboprefix or not doesn't matter either. The most weird thing is the double .paa in the warning message.

But, after several attempts I found the problem: no \ in the picture line.

Here's the current config:
class CfgPatches
{
  class better_rpg
  {
    units[] = {};
    weapons[] = {"RPG7V_Gold"};
    requiredAddons[] = {"CAWeapons"};
  };
};

class CfgWeapons
{
  class RPG7V;
  class RPG7V_Gold : RPG7V
  {
    descriptionShort = "Gold RPG7";
    displayName = "RPG7 Gold";
    picture = "\x\jey\addons\better_rpg\w_rpg7_ca.paa";
  };
};

Link to the pbo and source files


Author Message

JeyR  



Posts: 8
Rank:


Level: Member

Country: hu
Location:
Occupation:
Age:
In-game name:

 
#13 Posted at 2017-02-04 08:19        
     
So this actually works to you?


Author Message

W0lle  

call me evil


Posts: 1944
Rank:


Country: de
Location:
Occupation: CWR² Project Lead
Age: 101
In-game name:

 
#14 Posted at 2017-02-04 10:51        
     
Else I wouldn't have posted it. ;-)


Author Message

JeyR  



Posts: 8
Rank:


Level: Member

Country: hu
Location:
Occupation:
Age:
In-game name:

 
#15 Posted at 2017-02-04 11:57        
     
Well I just tested it, but the picture remained the original, not the modified .






Tags: Picture