|
Re: Stars 3 |
Thu, 05 June 2014 08:12 |
|
theval | | Petty Officer 3rd Class | Messages: 43
Registered: May 2014 | |
|
m.a@stars wrote on Thu, 05 June 2014 13:55Cool. Does that mean you have a clear idea which parts of Freestars are more geared towards the client-side or the server-side of things?
Absolutely. 95% of FreeStars is a set of classes that allow you to pull various functions of the game, load structures, etc. A server is just a CLI executable that takes a file or a set of files as an input and produces another file or a set of files as output.
As far as GUI is concerned, I just grab a .m file with FreeStars API (basically the same set of classes), load it into the memory and show stuff in various widgets. The GUI will eventually use REST API, similar to what you're proposing to submit race files to starting games, pull game files from a running game and submit your orders.
It would be trivial then to use a language of your choice to create a set of scripts that implement this REST API to feed these files into freestars executable, inform the client about turn completion, etc.
m.a@stars wrote on Thu, 05 June 2014 13:55Will it also perchance mean your "Qt GUI" could be a client for some other server?
As long as the other server supports FreeStars file data format.
Report message to a moderator
|
|
|
|
|
|
|
|
|
|
|
Re: Stars 3 |
Thu, 05 June 2014 14:36 |
|
theval | | Petty Officer 3rd Class | Messages: 43
Registered: May 2014 | |
|
mrvan wrote on Thu, 05 June 2014 18:17@theval: I know the GPL only dictates releasing the code as soon as you publish your binary, but I would like to encourage you to put your client code up on github immediately. You shouldn't worry about code not being "ready", 99% of projects on github aren't ready by any definition. The worst that can happen is that everyone ignores it, but if you don't publish it that will happen as well...
Pushed, please have a look:
https://github.com/vkholodkov/freestars
Event though cmake easily generates make files for Windows I'm not going to release any binaries, because I don't want to build them using MSVC. Instead, I want to setup MinGW and it takes time and effort. But it's my priority at the moment, so if you really want, please do it. I'll be happy to incorporate build system fixes that makes it compile on Windows.
If you have no patience to get your head around it, here are couple of screen shots:
Game view:
[img]http://www.grid.net.ru/freestars/ss/freestars_june5.png[/img]
Advanced New Game Wizard victory conditions page:
[img]http://www.grid.net.ru/freestars/ss/angw_june5.png[/img]
So what is the state of things now?
Done:
* player file loading
* messages view
* planet status tiles
* basic map view
* planet habitability and minerals report
Challenges:
* there is no one yet to populate messages file (messages.ts). FreeStars is supposed to produce a lot of messages as tags. Would be great if some could grep lines such as "AddMessage(" and add the text to the messages.ts. After translating messages.ts messages will appear in full in the message view.
* lot's of graphics is not available, such as planet icons, tool bar buttons, as well as symbolic images that stars! is full of.
* various important tit bits are not implemented, such as text colouring (e.g. planet value), thousand separator, etc
* need to write stories, such as "If you colonize this your population will grow by that. You posses technology to terraform to that". There are myriads of them and they all depend on various factors --> requires experienced player so as not miss anything
This is it so far. Apart from that, I'm having fun working on it in my spare time...
Report message to a moderator
|
|
|
|
|
|
|
Re: Stars 3 |
Thu, 05 June 2014 15:26 |
|
LittleEddie | | | Messages: 517
Registered: February 2011 Location: Delaware | |
|
Just to get things up to date in my mind (that's a good one)
Edit: And this thread is moving fast....
There's no use reinventing the wheel, as in the logic mostly works and it's something to get ideas from.
Stars! Nova code can be found here:
https://sourceforge.net/p/stars-nova/code/ci/master/tree/
// ============================================================================
// Copyright (C) 2008 Ken Reed
// Copyright (C) 2009, 2010 The Stars-Nova Project
//
// This file is part of Stars! Nova.
// See <http://sourceforge.net/projects/stars-nova/>.
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License version 2 as
// published by the Free Software Foundation.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>
// ===========================================================================
FreeStars
https://sourceforge.net/p/freestars/code/HEAD/tree/
Copyright 2003 - 2005 Elliott Kleinrock, Dan Neely, Kurt W. Over, Damon Domjan
This file is part of FreeStars, a free clone of the Stars! game.
FreeStars is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
FreeStars is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with FreeStars; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
The full GPL Copyright notice should be in the file COPYING.txt
Contact:
[Updated on: Thu, 05 June 2014 15:32] Report message to a moderator
|
|
|
|
|
|
|
|
|
|
|
|