[Freeciv-Dev] (PR#38363) freecive: failure to use SDL.

2007-03-18 Thread James Supancic
http://bugs.freeciv.org/Ticket/Display.html?id=38363 > Version: freeciv-2.0.9. Output: 1: Error calling Mix_OpenAudio 1: Plugin sdl found but can't be initialized. 1: Plugin esd found but can't be initialized. 1: Plugin alsa found but can't be initialized. 1: No real audio subsystem managed to in

[Freeciv-Dev] Ogre3D UI?

2007-05-15 Thread James Supancic
I am thinking about working on an Ogre3D GUI for freeciv. I've been looking over the code in freeciv/freeciv/client/gui-* and think I might be able to develop something nice. My question is, if I develop it, will it be accepted? I noted that freeciv has been written in mostly pure C. This is no pr

Re: [Freeciv-Dev] Ogre3D UI?

2007-06-01 Thread James Supancic
All right, I finished my semester finals now, and can start to focus in on this project. > What do you plan on using for GUI? I was thinking about Ogre3D and perhaps CEGUI for a 2d windowing system. Now, I was talking about creating a new UI, not a new client. Note that in freeciv/client/ there a

[Freeciv-Dev] Permission to make freeciv headers standard C/C++ compatible.

2007-06-03 Thread James Supancic
I'm working on a C++ GUI for freeciv. I need to make some calls into the C component of client. The problem I'm running into is that the freeciv header files are neither standard C or C++ compatible. For example: typedef enum a b; enum a { A, B }; When this is compiled with g++ or 'gcc -pedantic'

Re: [Freeciv-Dev] Permission to make freeciv headers standard C/C++ compatible.

2007-06-04 Thread James Supancic
Even with -fpermissive g++ rejects it. I moved the enum typedef from fc_types.h to unit.h (after the enum declaration) and did 'make clean && make' and everything builds fine. It looks like the attached patch does what I need (as far as I know at this point). Basically I use an #ifdef __cplusplus

[Freeciv-Dev] UI->client protocol?

2007-06-04 Thread James Supancic
It looks like that (to implement a new UI) I'm going to have to make a lot of calls to the client code. I had initially expected that my UI code would be called by the client to do certain tasks (client->UI protocol, which is well documented in gui-stub) more than the inverse. Will someone explain

[Freeciv-Dev] You can't alter const objects?

2007-06-07 Thread James Supancic
In resource_name_translation, in terrain.c you are altering the value of a const parameter. This is not allowed, and gcc 4.1 tells us this with: terrain.c: In function 'resource_name_translation': terrain.c:244: error: assignment of read-only location I'm not sure how this should be fixed? Maybe j

[Freeciv-Dev] How should the GUI determine when the client data has changed?

2007-06-24 Thread James Supancic
I'm working on a GUI for freeciv. In my main loop I call input_from_server to allow the main client code to receive data from the server and update the game state data accordingly. How can I determine when the data has changed? Can I set callbacks for this? Should I switch() on the incoming packet

[Freeciv-Dev] You must #define preprocessor constants before using them.

2009-04-12 Thread James Supancic
I have recently updated my local copy of the freeciv trunk. I have noticed that the following: GAME_DEFAULT_GOLD_UPKEEP_STYLE GAME_MAX_GOLD_UPKEEP_STYLE GAME_MIN_GOLD_UPKEEP_STYLE Are used in ruleset.c but not #defined anywhere. I suspect someone commited ruelset.c but failed to commit ruleset.h?

Re: [Freeciv-Dev] You must #define preprocessor constants before using them.

2009-04-12 Thread James Supancic
I removed game.h and then did svn up again and now it is working. I guess I should have double checked before posting here... sorry for the confusion. Thank you for your time, James Steven Supancic III ___ Freeciv-dev mailing list Freeciv-dev@gna.org ht