Create account / Log in

Roadmap for VASSAL 4

Discussion area for the development team.

Moderators: uckelman, Tim M

Re: [messages] Edit: [Developers] Re: Roadmap for VASSAL 4

Postby Tim M » April 19th, 2011, 1:12 am

No go here









-----Original Message-----
From: messages-bounces@vassalengine.org
[mailto:messages-bounces@vassalengine.org] On Behalf Of uckelman
Sent: Monday, April 18, 2011 4:12 PM
To: messages@vassalengine.org
Subject: [messages] Edit: [Developers] Re: Roadmap for VASSAL 4



[This message has been edited.]



I spent the week before last creating a demo program in Python, to see

what is possible there. You can see the result here:



http://www.vassalengine.org/~uckelman/pytest.tar.bz2[1]

http://www.vassalengine.org/~uckelman/p ... indows.zip[2]



To run the non-Windows version, you need Python, pygame, PyOpenGL, and

numpy installed. For the Windows version, everything is supposed to be

included, but I can't test it because OpenGL doesn't work on the Windows

XP virtual machine where I built the package. In either case, the way to

run the demo is from the command line.



For Windows: threedee.exe map.png



Everywhere else: threedee.py map.png



I was surprised by how little code it took to get this working. It's

only 601 lines, including a bunch of dead code I could remove. Please

give this a try, and let me know how it works for you.



On a related note, were we to use Python, how many of us already know

it? Are willing to learn it? Similarly, were we to use C++, how many of

us already know it? Are willing to learn it?



[1] http://www.vassalengine.org/~uckelman/pytest.tar.bz2

[2] http://www.vassalengine.org/~uckelman/p ... indows.zip





_______________________________________________

Read this topic online here:

viewtopic.php?p=22689#p22689

_______________________________________________

messages mailing list

messages@vassalengine.org

http://www.vassalengine.org/mailman/listinfo/messages
Tim,
Vassal Uber Geek/Guru

Problems? post your OS, Physical Mem, version of Vassal and Java plus the Module in question.
No developer can help with out that info, thx!
User avatar
Tim M
 
Posts: 1816
Joined: December 8th, 2007, 12:22 pm
Location: Earth

Re: Roadmap for VASSAL 4

Postby lancel » April 19th, 2011, 5:07 am

I got an error on my Ubuntu 10.10 VM. I am not sure if the missing soundcard is the cause.

"
there is no soundcard
Traceback (most recent call last):
File "./threedee.py", line 600, in <module>
main()
File "./threedee.py", line 361, in main
glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_MAX_ANISOTROPY_EXT, 8.0)
File "/usr/lib/pymodules/python2.6/OpenGL/error.py", line 208, in glCheckError
baseOperation = baseOperation,
OpenGL.error.GLError: GLError(
err = 1280,
description = 'invalid enumerant',
baseOperation = glTexParameterf,
cArguments = (
GL_TEXTURE_2D,
GL_TEXTURE_MAX_ANISOTROPY_EXT,
8.0,
)
)
"
lancel
 
Posts: 93
Joined: August 30th, 2010, 3:47 pm
Location: NY, NY

Re: [messages] [Developers] Re: Roadmap for VASSAL 4

Postby uckelman » April 19th, 2011, 8:20 am

Thus spake Michael Kiefte:
>
> > I was surprised by how little code it took to get this working. It's
> > only 601 lines, including a bunch of dead code I could remove. Please
> > give this a try, and let me know how it works for you.
> >
>
> Works for me. I have some questions though. You appear to be using
> pygame. Does that limit you in terms of what you can do with OpenGL? For
> example, it's obvious you can do textures (or whatever we're supposed to
> call them now), but can you actually do 3D rendering from pygame? My
> impression was that pygame is limited to 2D games.
>

There are two things in the demo which rely on pygame: image loading
and the event queue. We could do image loading with PIL (which is
what pygame uses anyhow) and whatever windowing toolkit we use will
provide an event queue. The only reason I used pygame was that I had
a broken version of GLUT when I started working on the demo. (It's
since been fixed.

--
J.
User avatar
uckelman
Site Admin
 
Posts: 8877
Joined: December 10th, 2007, 9:48 am
Location: Durham, England

Re: [messages] Edit: [Developers] Re: Roadmap for VASSAL 4

Postby uckelman » April 19th, 2011, 8:23 am

Thus spake "Tim McCarron":
>
> No go here
>

How did it fail? Was there any error output?

--
J.
User avatar
uckelman
Site Admin
 
Posts: 8877
Joined: December 10th, 2007, 9:48 am
Location: Durham, England

Re: [messages] [Developers] Re: Roadmap for VASSAL 4

Postby uckelman » April 19th, 2011, 8:26 am

Thus spake lancel:
> I got an error on my Ubuntu 10.10 VM. I am not sure if the missing
> soundcard is the cause.
>
> "
> there is no soundcard

No, I doubt that's the probelm.

> Traceback (most recent call last):
> File "./threedee.py", line 600, in
> main()
> File "./threedee.py", line 361, in main
> glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_MAX_ANISOTROPY_EXT, 8.0)
> File "/usr/lib/pymodules/python2.6/OpenGL/error.py", line 208, in
> glCheckError
> baseOperation = baseOperation,
> OpenGL.error.GLError: GLError(
> err = 1280,
> description = 'invalid enumerant',
> baseOperation = glTexParameterf,
> cArguments = (
> GL_TEXTURE_2D,
> GL_TEXTURE_MAX_ANISOTROPY_EXT,
> 8.0,
> )
> )
>

It appears that your graphics card doesn't support anisotropic
filtering. I wasn't checking for supported OpenGL extensions before
trying to use them. I'll have to do that.

--
J.
User avatar
uckelman
Site Admin
 
Posts: 8877
Joined: December 10th, 2007, 9:48 am
Location: Durham, England

Re: Roadmap for VASSAL 4

Postby bdgza » April 19th, 2011, 11:03 am

Got the python modules installed. It runs. When I maximized the window:
Fatal Python error: (pygame parachute) Segmentation Fault
Abort trap
bdgza
 
Posts: 329
Joined: February 26th, 2010, 10:51 am

Re: [messages] Edit: [Developers] Re: Roadmap for VASSAL 4

Postby Tim M » April 19th, 2011, 11:59 am

Forum seems to have eaten my picture of the command prompt window with the error
output :(

Have to get it later




________________________________
From: Joel Uckelman
To: messages@vassalengine.org
Sent: Tue, April 19, 2011 3:23:30 AM
Subject: Re: [messages] Edit: [Developers] Re: Roadmap for VASSAL 4

Thus spake "Tim McCarron":
>
> No go here
>

How did it fail? Was there any error output?

--
J.
Tim,
Vassal Uber Geek/Guru

Problems? post your OS, Physical Mem, version of Vassal and Java plus the Module in question.
No developer can help with out that info, thx!
User avatar
Tim M
 
Posts: 1816
Joined: December 8th, 2007, 12:22 pm
Location: Earth

Re: [messages] [Developers] Re: Roadmap for VASSAL 4

Postby mkiefte » April 19th, 2011, 12:06 pm

I do appreciate Python and I do think it's a great platform, but I think, in the long run, it might be a hassle to support across multiple platforms.

At least in C++, we can potentially port to iPad at some future point. That's never going to happen with Python.

I'm voting in favour of freeglut or openglut with C++. If I manage to catch up in the next few weeks, I'll take a look at my old JOGL program and port it to OpenGL + openglut.

- M.


On 2011-04-19, at 8:03 AM, bdgza wrote:

> Got the python modules installed. It runs. When I maximized the window:
> Fatal Python error: (pygame parachute) Segmentation Fault
> Abort trap
>
> _______________________________________________
> Read this topic online here:
> viewtopic.php?p=22702#p22702
> _______________________________________________
> messages mailing list
> messages@vassalengine.org
> http://www.vassalengine.org/mailman/listinfo/messages
>
User avatar
mkiefte
 
Posts: 1144
Joined: January 5th, 2008, 1:29 am
Location: Halifax, Nova Scotia, Canada

Re: [messages] [Developers] Re: Roadmap for VASSAL 4

Postby uckelman » April 19th, 2011, 12:26 pm

Thus spake bdgza:
> Got the python modules installed. It runs. When I maximized the window:
> Fatal Python error: (pygame parachute) Segmentation Fault
> Abort trap
>

That's new. On what OS?

--
J.
User avatar
uckelman
Site Admin
 
Posts: 8877
Joined: December 10th, 2007, 9:48 am
Location: Durham, England

Re: [messages] [Developers] Re: Roadmap for VASSAL 4

Postby uckelman » April 19th, 2011, 12:28 pm

Thus spake Michael Kiefte:
> I do appreciate Python and I do think it's a great platform, but I think, in
> the long run, it might be a hassle to support across multiple platforms.
>
> At least in C++, we can potentially port to iPad at some future point. That's
> never going to happen with Python.
>
> I'm voting in favour of freeglut or openglut with C++. If I manage to catch u
> p in the next few weeks, I'll take a look at my old JOGL program and port it
> to OpenGL + openglut.

You don't need to do that---porting my Python demo to C++ would take
about an hour, in my estimation. I was planning to do it myself next
week.

--
J.
User avatar
uckelman
Site Admin
 
Posts: 8877
Joined: December 10th, 2007, 9:48 am
Location: Durham, England

Re: [messages] [Developers] Re: Roadmap for VASSAL 4

Postby bdgza » April 19th, 2011, 3:17 pm

uckelman wrote:Thus spake bdgza:
> Got the python modules installed. It runs. When I maximized the window:
> Fatal Python error: (pygame parachute) Segmentation Fault
> Abort trap
>

That's new. On what OS?

--
J.


MacOS X 10.6.5.
bdgza
 
Posts: 329
Joined: February 26th, 2010, 10:51 am

Re: [messages] [Developers] Re: [Developers] Re: Roadmap for

Postby uckelman » April 19th, 2011, 4:54 pm

Thus spake bdgza:
>
> "uckelman" wrote:
> > Thus spake bdgza:
> > > Got the python modules installed. It runs. When I maximized the
> > window:
> > > Fatal Python error: (pygame parachute) Segmentation Fault
> > > Abort trap
> > >
> >
> > That's new. On what OS?
> >
> > --
> > J.
>
>
> MacOS X 10.6.5.
>

No idea, then. I don't have a VM of MacOS to play with, so I can't
even start troubleshooting.

--
J.
User avatar
uckelman
Site Admin
 
Posts: 8877
Joined: December 10th, 2007, 9:48 am
Location: Durham, England

Re: Roadmap for VASSAL 4

Postby Tim M » April 19th, 2011, 10:15 pm

Here is my error from command line

cline.png
cline.png (56.75 KiB) Viewed 18898 times
Tim,
Vassal Uber Geek/Guru

Problems? post your OS, Physical Mem, version of Vassal and Java plus the Module in question.
No developer can help with out that info, thx!
User avatar
Tim M
 
Posts: 1816
Joined: December 8th, 2007, 12:22 pm
Location: Earth

Re: [messages] [Developers] Re: Roadmap for VASSAL 4

Postby mkiefte » April 19th, 2011, 10:30 pm

Hmmm.... website seems to be down.

- M.

On 18 April 2011 18:11, uckelman wrote:

> I spent the week before last creating a demo program in Python, to see
> what is possible there. You can see the result here:
>
> http://www.vassalengine.org/~uckelman/pytest.tar.bz2[1]
> http://www.vassalengine.org/~uckelman/p ... indows.zip[2]
>
> To run the non-Windows version, you need Python, pygame, PyOpenGL, and
> numpy installed. For the Windows version, everything I supposed to be
> included, but I can't test it because OpenGL doesn't work on the Windows
> XP virtual machine where I built the package. In either case, the way to
> run the demo is from the command line.
>
> For Windows: threedee.exe map.png
>
> Everywhere else: threedee.py map.png
>
> I was surprised by how little code it took to get this working. It's
> only 601 lines, including a bunch of dead code I could remove. Please
> give this a try, and let me know how it works for you.
>
> On a related note, were we to use Python, how many of us already know
> it? Are willing to learn it? Similarly, were we to use C++, how many of
> us already know it? Are willing to learn it?
>
> [1] http://www.vassalengine.org/~uckelman/pytest.tar.bz2
> [2] http://www.vassalengine.org/~uckelman/p ... indows.zip
>
>
>
> _______________________________________________
> Read this topic online here:
> viewtopic.php?p=22689#p22689
>
> _______________________________________________
> messages mailing list
> messages@vassalengine.org
> http://www.vassalengine.org/mailman/listinfo/messages
>
>
User avatar
mkiefte
 
Posts: 1144
Joined: January 5th, 2008, 1:29 am
Location: Halifax, Nova Scotia, Canada

Re: [messages] [Developers] Re: Roadmap for VASSAL 4

Postby uckelman » April 20th, 2011, 7:54 am

Thus spake Michael Kiefte:
>
> Hmmm.... website seems to be down.
>

It's working for me.

--
J.
User avatar
uckelman
Site Admin
 
Posts: 8877
Joined: December 10th, 2007, 9:48 am
Location: Durham, England

PreviousNext

Return to Developers

Who is online

Users browsing this forum: No registered users and 2 guests