[Question] Process to limit vehicle to certain kits?

Making or wanting help making your own asset? Check in here
Post Reply
coyote39
Posts: 8
Joined: 2008-02-21 21:03

[Question] Process to limit vehicle to certain kits?

Post by coyote39 »

This is my first post here, and I'm just beginning to try to understand how PR modding works. One of the questions I have is how the vehicles (tanks, apcs, transport trucks, etc) are done so that only certain kits can pilot them? Is it a python thing, or is it contained within the .tweak files for the vehicle itself? For instance, the M35 truck only allows the engineer or officer kit to pilot it ingame. How is this accomplished? Any help would be greatly appreciated.
e-Gor
Retired PR Developer
Posts: 3752
Joined: 2006-03-06 22:40

Post by e-Gor »

It's all done with some rather clever python stuff, which is locked away in those .pyc files... basically whenever anyone enters a limited vehicle, the player kit is checked and if it's wrong, the vehicle gets disabled.
coyote39
Posts: 8
Joined: 2008-02-21 21:03

Post by coyote39 »

How do you edit them? I've tried opening them with python, but don't get anything. It seems that they're compiled. If so, is there any way to get the uncompiled versions? I'm just starting to create a mod based on PR, and am curious if the uncompiled versions are available. Thanks in advance for your time and patience.
motherdear
Retired PR Developer
Posts: 2637
Joined: 2007-03-20 14:09

Post by motherdear »

coyote39 wrote:How do you edit them? I've tried opening them with python, but don't get anything. It seems that they're compiled. If so, is there any way to get the uncompiled versions? I'm just starting to create a mod based on PR, and am curious if the uncompiled versions are available. Thanks in advance for your time and patience.
i understand what you want to do, but for your own sake you should properly ask the devs before you "steal" the work of the devs and built your own mod on their stuff without their permission.
coyote39
Posts: 8
Joined: 2008-02-21 21:03

Post by coyote39 »

I wasn't asking to "steal" anything, and I feel pretty offended by that remark.

The reason for posting my query on the forum was two-fold; so that it was public, and able to be viewed by the forum admins and devs. I wouldn't feel comfortable pm'ing someone who is not a dev/admin and asking them the same thing. If there is someone I should be directing this line of questioning to, I'm more than willing to take my query in that direction, rather than posting it in public to be falsely accused of trying to "steal" anyone else's ideas/creative license.

Thank you for attempting to make me look surreptitious, when there was absolutely no need to. I'd ask you to keep in mind that not everyone posting in online forums are 14 years old. Even though my question might seem simple to someone who has been modding for a while doesn't mean that it's not valid, or that I'm some immature punk-kid who seeks to "steal" and re-package PR for my own benefit. Please give everyone the benefit of the doubt before you go and slander them. Thank you for your time and patience.
Maxfragg
Posts: 2122
Joined: 2007-01-02 22:10

Post by Maxfragg »

the current PR builds contain compiled pyton code, which can't be viewed / edited
motherdear
Retired PR Developer
Posts: 2637
Joined: 2007-03-20 14:09

Post by motherdear »

i did in no way mean to offend you m8, i really understand you question (sadly i can't answer it myself)but it sounded like some of the coding etc used for the mod was going to be used.
i'm very sorry for implying that you would "steal", but since you are new to the forums and modding (as you said in your post) i did not mean to offend you i just wanted to make sure that you were clear with the devs before you used any of their work (as i wrongly assumed that you were going to do) i'm sorry for the remark but no need to make enemies of me or the dev team.
coyote39
Posts: 8
Joined: 2008-02-21 21:03

Post by coyote39 »

Thank you for having the maturity to apologize. It is greatly appreciated. I also have to say that I probably over-reacted to your post, and I hope that there are no ill feelings because of this minor issue. I'm sorry that I made a mountain out of what is, in reality, a mole-hill. I understand your point of view on the creative license, and that you are just looking out for PR's best interests. There have certainly been no enemies made in my point of view, and I hope that yours is the same. Again, I appreciate your candor and maturity in your reply.

With that said, is there a dev in particular that I should be directing this to?

Any help on this matter would be greatly appreciated.
e-Gor
Retired PR Developer
Posts: 3752
Joined: 2006-03-06 22:40

Post by e-Gor »

Currently the python code is not freely available, as a counter to various sorts of server side modding which went against the aims of the mod. If you want access to some of it, dbzao is the person to talk to. I don't know what the current policy about it is though.
coyote39
Posts: 8
Joined: 2008-02-21 21:03

Post by coyote39 »

Thank you for pointing me in the right direction - it's much appreciated.
Post Reply

Return to “PR:BF2 Community Modding”