|
PR Time:
|
||||||
| Register | Forum Rules | Developer Blogs | Project Reality | Members List | Search | Today's Posts | Mark Forums Read |
| PR:BF2 Community Modding Making or wanting help making your own asset? Check in here |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|
#1 |
![]() |
Hey all.
Well, I decided to start coding for BF2 and PR. I've been coding for years now on the unreal engine where I worked on additions for a mod called Infiltration. Anyway, I'm looking for references concerning coding for BF2 and, possibly PR. A good start point for Unreal coding is the unreal wiki (a wiki covering about anything concerning coding in the unreal engine - describing base functions, classes and all). Does something like that exists for BF2? For PR, is there any existing documentation on the code? As a first experiment, I'd like to write a QM report script allowing commander and squad leaders to have an overview of issued kits and available kits. I'd also like to experiment a few Ideas I have on kit moderations systems. Anyway, I'll be around. |
|
To view links or images in signatures your post count must be 1 or greater. You currently have 0 posts. To view links or images in signatures your post count must be 1 or greater. You currently have 0 posts. |
|
|
|
|
|
|
#2 |
|
PR Coder Team
![]() Join Date: Mar 2006
Location: Cambridge, UK
Posts: 3,752
|
There are two types of scripting for BF2. There's server side python and then the .con file scripting - which are basically just a huge load of console commands. For a QM script, you'd need the python side of it. The best documentation there is can be found at bf2tech.org
|
|
|
|
|
|
#3 |
![]() |
I was indeed looking for server side scripting. Thank you for the info! I will look into the bf2tech.org site.
It's always nice to have a few good starting points |
|
To view links or images in signatures your post count must be 1 or greater. You currently have 0 posts. To view links or images in signatures your post count must be 1 or greater. You currently have 0 posts. |
|
|
|
|
|
|
#4 |
![]() |
I'm still trying to figure things out. The wiki is a good start, but lacking some basic information.
I see that in PR, all scripts are compiled python scripts on ...\mods\pr\python\game (except the config files) Of course, there isn't much I can do with a compiled script I guess. The variables I need to access are variables only related to PR (kit system). Is there a way to get a list of them somehow. Or could someone tell me how to access them if I list those I need? (because I guess I can't count on the source code Or maybe I need the server files (I only looked at the client files). |
|
To view links or images in signatures your post count must be 1 or greater. You currently have 0 posts. To view links or images in signatures your post count must be 1 or greater. You currently have 0 posts. |
|
|
|
|
|
|
#5 |
|
PR Coder Team
![]() Join Date: Mar 2006
Location: Cambridge, UK
Posts: 3,752
|
Sorry, this thread fell off my radar somehow.
Yes, the python code is closed up... blame certain server admins for that. And we can't distribute the uncompiled python, as this could be used in place of the compiled ones on servers. The server has the same .pyc files as the client. This was done mainly to prevent server side modding, as we've had some bad experiences with that in the past and have decided to no longer support it. You should be able to add functionality, but changing PR functionality is not really possible. So the only way to get around this is to write your own QM script from scratch and replace the PR one with that, unfortunately. |
|
|
|
|
|
|
|
|
|
|
|
#6 | |
![]() |
Quote:
I do understand why you decided to make such things impossible. Sad, but understandable. If the code is unavailable, could it be possible to have a list of variables giving me information on kit distribution? Or would knowing those variables allow me to access and modify them, making SSM possible, which would go against the idea of not releasing them in the first place? | |
|
To view links or images in signatures your post count must be 1 or greater. You currently have 0 posts. To view links or images in signatures your post count must be 1 or greater. You currently have 0 posts. |
||
|
|
|
|
|
#8 |
![]() |
I'd like to work on a reporting system to give SL and CO an overview of the available and issued equipment, which squads has what, etc. That's the basic idea.
To that, there are many things I wanted to experiment with; for the sake of learning on how the BF2 engine works and how to code for it: - kit moderation (squad leaders need to approve kit selection) - kit allocation (CO allocates kits to SL or SL request kits for their squad) - kit info for players (players know which kits are available to their squads) - Vehicle inventory (for SL and CO to know what vehicles are available) First implementation would be text based. Eventually (and as possible) integrated in the BF2 command interface. For the command interface, I'd also like to work on a better information system for squad leaders to get feedback from actions done by other SL in the team and on a maker system for CO and SL to mark areas (other than using the infamous "boat spotted"). |
|
To view links or images in signatures your post count must be 1 or greater. You currently have 0 posts. To view links or images in signatures your post count must be 1 or greater. You currently have 0 posts. |
|
|
|
|
|
|
#9 |
|
Banned
![]() Join Date: Nov 2006
Location: NY
Posts: 800
|
I say give this talented man a chance to prove himself and we add to our coding genius Devs.
This can only mean better things in the future. |
|
|
|
|
|
#10 |
![]() |
Actually, my best talent so far is finding new exquisite ways to crash games engines
My night vision system in INF had ways to crash the engine while I experimented with it, it was unbelievable. |
|
To view links or images in signatures your post count must be 1 or greater. You currently have 0 posts. To view links or images in signatures your post count must be 1 or greater. You currently have 0 posts. |
|
|
|
|
|
|
|
|
|
|
![]() |
| Tags |
| question, references, scripting |
| Thread Tools | |
| Display Modes | |
|
|