Some people may want to add some functionality in their shells via Python coding; that is something we haven't talked about yet, and which may be important.
Python can be a source of fun but it can also be a source of bugs.
Given our model of community Age and the way shells are created and exported separately, how would Python integrate into that?
(I'm not versed at all in this subject I must confess, so I have no idea.)
What files would people need to send?
Would we need a naming convention for files, variables and functions to avoid any conflicts?
Would we need to do some work ourselve to implement everything together (dabble into files like the SDL or others) or could everything be done separately like the shells?
etc.
As always the goal would be to require minimal intervention from us, so anyone can do their stuff and almost all we have to do is to upload that to the UAM servers.
If it is too much of a headache should we simply disallow it? Or disallow it for now (since few people use it right now) and see later?
Python in the shells?
Moderator: Aloys
For python I imagine the follwing setup:
Everyone who wants Python, writes a script for their shell. All of the scripts would be collected on an FTP server or SVN, and compiled to a .pak file before release. Then it would just be distributed with the prp and age files.
About variable naming, someone suggested a naming convention for the Shell objects.
Ex. D'niSpitoon145 = A D'ni Spitoon in Shell 145
For python, just suffix the variables with the shell number.
Everyone who wants Python, writes a script for their shell. All of the scripts would be collected on an FTP server or SVN, and compiled to a .pak file before release. Then it would just be distributed with the prp and age files.
About variable naming, someone suggested a naming convention for the Shell objects.
Ex. D'niSpitoon145 = A D'ni Spitoon in Shell 145
For python, just suffix the variables with the shell number.
- Robert The Rebuilder
- Posts: 1383
- Joined: Sat Sep 29, 2007 7:24 am
- MOULa KI#: 1299
- Location: Virginia, US
I agree. The python scripts for your shell/page should have the shell number in the filename, e.g. shell145Clickables.py. And like Paradox said, all these .py files from all shells should be compiled and added to the PAK file by the person managing the age files.
Can we rebuild it? Yes, we can - here's how.
MOULagain KI# 1299
Myst Movie coming soon - spread the word!
MOULagain KI# 1299
Myst Movie coming soon - spread the word!
-
- Councilor of Technical Direction
- Posts: 2180
- Joined: Fri Nov 16, 2007 9:45 pm
- MOULa KI#: 23335
- Location: South Georgia
- Contact:
- zib_redlektab
- Posts: 240
- Joined: Sat Sep 29, 2007 6:24 am
- MOULa KI#: 0
- Location: Avoiding Direct Sunlight
- Contact:
technically it shouldn't matter, if they are all shell#.py, then if you do sort by name then they will still all sort in order, as long as all the filenames start with the same letters.
about the variables, the same thing. just have all the variables start with shell# and then the variable name. shell#[varname] like that. :unsure:
about the variables, the same thing. just have all the variables start with shell# and then the variable name. shell#[varname] like that. :unsure:
Lurker extraordinaire!
http://www.zibland.com
http://www.zibland.com
-
- Councilor of Technical Direction
- Posts: 2180
- Joined: Fri Nov 16, 2007 9:45 pm
- MOULa KI#: 23335
- Location: South Georgia
- Contact:
Umm...isn't that what Zib is saying? Instead of starting it with just " #_____", start it with "shell#______". Then you're not starting it with a number (you're starting it with the word "shell") but you can still sort it by number. If everyone started with "shell", then it would look at the next characters after "shell", which would be the numbers.