|
PR Time:
|
||||||
| Register | Forum Rules | Developer Blogs | Project Reality | Members List | Search | Today's Posts | Mark Forums Read |
| Modding Tutorials Information and tutorials related to modding BF2. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|
#12 |
|
Lead Beta Tester - US
![]() Join Date: Feb 2008
Location: California
Posts: 4,754
|
Here is a pretty good tut Non-Programmer's Tutorial for Python 2.0 - Wikibooks, collection of open-content textbooks
|
|
To view links or images in signatures your post count must be 1 or greater. You currently have 0 posts. You miss 100% of the shots you don't take.- Wayne Gretzky |
|
|
|
|
|
|
#13 |
![]() Join Date: Jun 2009
Posts: 38
|
is there some kind of tutorial for beginners ?
I mean, I could read thousands of python tutorials by not knowing wich modules etc. to import and what these methods and callbacks are returning etc. in order to let your script working FOR BATTLEFIELD 2 / Project Reality. Do i have to completely learn python itself if I'd like to do some coding in Bf2 ? or is there some kinda small library of knowledge wich would only be needed :P this wiki: Original python scripting reference documentation - BFEditor is really helpful, but I can't get started with this: Nice to know wich methods exist and how they're called but for me as a beginner I couldn't start of with a new script like this ... It's difficult to say "Okay, i see THIS => Code:
init():
bf2.registerHandler('PlayerRevived', onPlayerRevived)
print "MyScript is now listening for players being revived..."
But what if I'd like to have the script listen to players entering vehicles ?!?!" Yeah it's basic stuff, but imo all these python tutorials do not help beginners with scripting for BF2... Hope you'll understand thx for responses! |
|
To view links or images in signatures your post count must be 1 or greater. You currently have 0 posts. |
|
|
|
Last edited by j0g32; 01-24-2010 at 09:43 AM..
|
|
|
#14 |
![]() |
I am interested in learning python, however I have a question.
What version does BF" / PR use? 2 or 3? |
|
To view links or images in signatures your post count must be 1 or greater. You currently have 0 posts. |
|
|
|
|
|
|
#15 |
![]() Join Date: Mar 2009
Posts: 20
|
it uses version 2, but I'm not sure which subversion
some old info says it's 2.3.4, but maybe it was updated... |
|
|
|
|
|
|
|
|
|
|
|
#16 |
![]() |
thanks.
Im going to try and find a python interpertor of 2.3.4 THat would be better than a newever version, as I would be learning for BF2 EDIT: Can only find version 2.3.7 What should I install, the above, or the latest in 2 series? |
|
To view links or images in signatures your post count must be 1 or greater. You currently have 0 posts. |
|
|
|
|
|
|
#17 |
|
Programming Manager
![]() |
2.3.7 is fine, but bear in mind BF2 has its own set of modules, so not all of original python 2.3 modules are available.
|
|
To view links or images in signatures your post count must be 1 or greater. You currently have 0 posts. "There's always one more bug." - Lubarsky's Law of Cybernetic Entomology |
|
|
|
|
|
|
#18 |
![]() |
ok, so I should refer to online sources when I use particular modules.
I thought the BF2 engine is bad, it always gets worse the more you look into it :P |
|
To view links or images in signatures your post count must be 1 or greater. You currently have 0 posts. |
|
|
|
|
|
|
#19 |
![]() |
hey all,
i want to try out some stuff on our server "gis+ cobat zone PR9.x" and got some questions about it. first of all; is it legal to change things like "player amount", "sq sice" and "removing nametags" on a locked server. and; what files have to be modified to do so. |
|
To view links or images in signatures your post count must be 1 or greater. You currently have 0 posts. |
|
|
|
|
|
|
#20 |
|
Lead Support Technician
![]() |
Afaik nametags would require you to modify the clients files.
I strongly recommend you NOT to change any client files as this if you're not backing up correctly will kick you off the servers due to md5 mismatch. Player amount is really easy to change, just set the sv.maxPlayers 16 to whatever you want. More than 64 slots is hardcoded and requires assembly skills which is BY FAR more complex than python. Squadsize is also hardcoded and theres no way to change that without changing the bf2 binaries. All these question have nothing to do with python tho, would fit better in the server admins forum. |
|
To view links or images in signatures your post count must be 1 or greater. You currently have 0 posts. |
|
|
|
|
|
|
|
|
|
|
![]() |
| Tags |
| bf2, coding, python, tutorial |
| Thread Tools | |
| Display Modes | |
|
|