Bridge Commander Central
BC Forums => BC Scripting => Topic started by: Worf359Alpha on August 06, 2009, 03:35:23 PM
-
I tried to DL Python that BC uses, 156, i think, and i got it but it wont run on my 64bit Gaming Laptop, will newer Python programs run on 64 bit? and will they work for BC? Im a highly experianced Hardpointer, and i know enough about scripting to alter scripts the way i want them, but i would like to learn more about scripting.
-
I just grabbed the latest for my desktopper. i use notepad/wordpad more to do the editing.
I get my physical models started, talk to me about giving me a hand.
-
All versions of Python should basically work in BC, although for more advanced scripting you can't use the 3.0 and later versions. I like to use the python shell editor rather than notepad, it color coordinates the code to make it easier to find things.
-
BC uses 1.5.2 and I don't really remember python.org offering binary builds for 64bits in those days (Python 1.5.2 was already kinda old, even for then).
A lot of newer features aren't possible in BC, and nevermind trying to use 3.0, for example, for-comprehensions aren't possible in 1.5.2, nor generators/co-routines. Then there are a lot of unicode/text handling that are different.
TBH, there isn't really a reason to have a Python installation for BC modding, unless you want to do AI scripting, then the AIEditor might be nice to use.
Personally I use notepad2, which offers some colouring, but I've also programmed in PFE, which is better than notepad, but didn't offer colouring.
-
Thx, i though about getting a newer version of python but i wanted to chk and see if they would work with BC. I use notpad for all my script edditing, but ive never heard of the python shell editer, il have to give that a look see. And King scout id be happy to give you a hand on anything i can help you with.
-
Thx Mleo, as usual your the goto guy for scriping info.
-
Like I said, you don't need Python installed to edit py files.
If you are expecting some type of intellisense that you might get in other language IDE's, then I'm afraid I have to disappoint you, for all effects and purposes you can't do that in a language like Python. Python is a so called dynamically typed language. And for intellisense you need some basic static typing, to ensure some form of interface/contract for objects.
-
no, i was just lookin to expand my scripting abilities a lil bit, il just stick with Notepad, although what you mentioned about AIediting might be somthing id be interested somtime down the road.
-
Thx, i though about getting a newer version of python but i wanted to chk and see if they would work with BC. I use notpad for all my script edditing, but ive never heard of the python shell editer, il have to give that a look see. And King scout id be happy to give you a hand on anything i can help you with.
actually it's called Idle. I use python 3.0 just fine with BC, it works as long as you stick to the 1.5.2 commands. It does offer coloring. it's your average code editor, nothing fancy, but it's nice to have around, for one thing, it assigns different icons to .py and .pyc, so it's easier to tell them apart, whereas notepad gives them both the notepad icon. It's all up to personal preference, if you are learning python, most books refer to IDLE, so it's harder to locate features with other programs, although it's not like C++ where there are a dozen different shells and editors available.
-
Thx Aces, i really appreciate all the feedback. Im gonna chk that out.