Author Topic: Python ?  (Read 1344 times)

Offline Worf359Alpha

  • Master HardPointer, Novice Scripter!
  • Posts: 131
  • Cookies: 14
  • Peace Thru Superior Firepower
Python ?
« 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.
500+ HardPointed Ships and counting! Man where do i find the time!

Offline King Class Scout

  • Posts: 1775
  • Cookies: 893
  • the other half of SFRD
Re: Python ?
« Reply #1 on: August 06, 2009, 03:58:15 PM »
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.
OS novel fan

Coming Soon: King's Mod Tuning Shop

best line I've ever read
Me: mine [my bridges] would probably be simple to get the characters to use.  the only person that sits is the captian.
Baz: space is vast there[sic] legs will be tired by the time they get to the next planet

Offline ACES_HIGH

  • BCC Roleplay Game Narrator
  • Moderator
  • Posts: 1678
  • Cookies: 54
  • while(!(succeed=try()));
    • BCC Roleplay Games
Re: Python ?
« Reply #2 on: August 06, 2009, 04:01:40 PM »
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.

Offline MLeo

  • Retired Staff
  • Posts: 3636
  • Cookies: 833
  • Software Simian
    • the Programming Pantheon
Re: Python ?
« Reply #3 on: August 06, 2009, 05:04:11 PM »
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.
I still can't read peoples minds, nor can I read peoples computers, even worse, I can't combine the two to read what is going wrong with your BC install...

"It was filed under 'B' for blackmail." - Morse, Inspector Morse - The dead of Jericho.

Offline Worf359Alpha

  • Master HardPointer, Novice Scripter!
  • Posts: 131
  • Cookies: 14
  • Peace Thru Superior Firepower
Re: Python ?
« Reply #4 on: August 06, 2009, 05:05:45 PM »
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.
500+ HardPointed Ships and counting! Man where do i find the time!

Offline Worf359Alpha

  • Master HardPointer, Novice Scripter!
  • Posts: 131
  • Cookies: 14
  • Peace Thru Superior Firepower
Re: Python ?
« Reply #5 on: August 06, 2009, 05:08:28 PM »
Thx Mleo, as usual your the goto guy for scriping info.
500+ HardPointed Ships and counting! Man where do i find the time!

Offline MLeo

  • Retired Staff
  • Posts: 3636
  • Cookies: 833
  • Software Simian
    • the Programming Pantheon
Re: Python ?
« Reply #6 on: August 06, 2009, 05:09:03 PM »
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.
I still can't read peoples minds, nor can I read peoples computers, even worse, I can't combine the two to read what is going wrong with your BC install...

"It was filed under 'B' for blackmail." - Morse, Inspector Morse - The dead of Jericho.

Offline Worf359Alpha

  • Master HardPointer, Novice Scripter!
  • Posts: 131
  • Cookies: 14
  • Peace Thru Superior Firepower
Re: Python ?
« Reply #7 on: August 06, 2009, 05:15:35 PM »
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.
500+ HardPointed Ships and counting! Man where do i find the time!

Offline ACES_HIGH

  • BCC Roleplay Game Narrator
  • Moderator
  • Posts: 1678
  • Cookies: 54
  • while(!(succeed=try()));
    • BCC Roleplay Games
Re: Python ?
« Reply #8 on: August 07, 2009, 07:53:16 PM »
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.

Offline Worf359Alpha

  • Master HardPointer, Novice Scripter!
  • Posts: 131
  • Cookies: 14
  • Peace Thru Superior Firepower
Re: Python ?
« Reply #9 on: August 08, 2009, 12:41:02 AM »
Thx Aces, i really appreciate all the feedback. Im gonna chk that out.
500+ HardPointed Ships and counting! Man where do i find the time!