Started Coding

The land-based version of Allegiance, under construction.
fuzzylunkin1

Post by fuzzylunkin1 »

I just open them (the .py files) with notepad++, but you can open them with your own personal favorite text editor.

To test what Finn has, open the command prompt, and switch to the directory "Test" and then to "src." Then type

Code: Select all

python main.py
This is done because there's an environment variable associated with Panda3d's python.

Also, check out this link.
fuzzylunkin1

Post by fuzzylunkin1 »

Finn, what IDE are you using? Eclipse with the pydev extension?
finnbryant
Posts: 360
Joined: Sat Feb 17, 2007 11:18 am
Location: England

Post by finnbryant »

yes, eclipse + pydev, its not perfect, i might change to another one at some point.

I'm glad that you guys are jumping in!

Right now I'm slowly reading through the panda documentation so that I will know what is possible. Once I've done that, I'll try to decrypt the parts of the forest program I dont already understand, and test some theories on it, I'll try to comment everything for easy understanding on my way through. I think I'll then make a new project and copy things over as I get to them.

BTW: I made the perlin noise function 30x faster by judicious abuse of code (I will almost certainly convert it to c++ now I've seen how fast a simple hack to make just a little bit of it c++ goes) , check out the perlin package to see the result (theres a perlintestrun.py in there, run that) it happens to look cool while calculating too.
Last edited by finnbryant on Sun Feb 01, 2009 10:49 am, edited 1 time in total.
badpazzword
Posts: 3627
Joined: Thu Jan 12, 2006 8:00 am
Contact:

Post by badpazzword »

OMG PYTHON! :biggrin:

I'm going to assume you're using psyco, aren't you?
Have gaming questions? Get expert answers! Image Image
finnbryant
Posts: 360
Joined: Sat Feb 17, 2007 11:18 am
Location: England

Post by finnbryant »

*Finn claps his hands and laughs manically*

I'm not, but I plan to now :)
sambasti
Posts: 1054
Joined: Wed Mar 26, 2008 12:55 am
Location: the SF hiding in your home

Post by sambasti »

Hmm, I think I might have messed it up when I installed a seperate instance of python.

Time to uninstall.
finnbryant
Posts: 360
Joined: Sat Feb 17, 2007 11:18 am
Location: England

Post by finnbryant »

i found the least headaches were caused if i just installed panda and then setup the pythonpath manually (there were tutorials on google). point the pythonpath to pandas install of python.
Last edited by finnbryant on Sun Feb 01, 2009 8:22 pm, edited 1 time in total.
sambasti
Posts: 1054
Joined: Wed Mar 26, 2008 12:55 am
Location: the SF hiding in your home

Post by sambasti »

OK, I got it to work. Turns out you need to type ppython not python. (Must be something with my computer)
sambasti
Posts: 1054
Joined: Wed Mar 26, 2008 12:55 am
Location: the SF hiding in your home

Post by sambasti »

BTW, what version of python are you using?
finnbryant
Posts: 360
Joined: Sat Feb 17, 2007 11:18 am
Location: England

Post by finnbryant »

2.5 (.3) thats what comes with panda, panda wont like the newer versions, the python people changed too much.

as for ppython, im still not certain of how it works, but ppython is the one to use when running panda stuff and python for other things, but its different for linux, so im not sure whats going on there :)
Post Reply