savegames for devel testing

Web version of freeciv at play.freeciv.org
madmax
Veteran
Posts: 56
Joined: Sun Mar 26, 2017 5:34 pm

savegames for devel testing

Postby madmax » Sun Mar 26, 2017 5:46 pm

Is there a pack anywhere? Specially some with lots of cities, lots of nations, nearing a nation split, just before other interesting events, etc. Or a way to get them from one's own games in play.freciv.org?

User avatar
AndreasR
Elite
Posts: 701
Joined: Thu May 02, 2013 10:26 pm
Location: Norway

Re: savegames for devel testing

Postby AndreasR » Sun Mar 26, 2017 7:21 pm

If you tell me your username and a savegame name, then I can e-mail you some savegames from play.freeciv.org.

There are some scenarios here: http://freeciv.wikia.com/wiki/Scenarios.

Andreas

madmax
Veteran
Posts: 56
Joined: Sun Mar 26, 2017 5:34 pm

Re: savegames for devel testing

Postby madmax » Mon Mar 27, 2017 9:14 am

My username there is also madmax, and I have just one game, but a lot of savegames, and I'd have to find out which would be useful (and finish setting up the development environment, and start making changes, and...), so don't bother yet. When I get to it, I'll try the scenarios first, and take your offer if I can't manage to edit them to take them to the point I need.

Thank you.

User avatar
AndreasR
Elite
Posts: 701
Joined: Thu May 02, 2013 10:26 pm
Location: Norway

Re: savegames for devel testing

Postby AndreasR » Mon Mar 27, 2017 8:10 pm

> I'd have to find out which would be useful (and finish setting up the development environment,

Please let me know if you need any help setting up the development environment. Setting up Freeciv-web with Vagrant is probably
the easiest. There is a description here about how to do it: https://github.com/freeciv/freeciv-web
Good luck!

madmax
Veteran
Posts: 56
Joined: Sun Mar 26, 2017 5:34 pm

Re: savegames for devel testing

Postby madmax » Thu Mar 30, 2017 6:19 pm

I think it's all sorted out now, thank you (at least enough to start a game, play a few turns and test a patch).

For someone like me who doesn't know about servers and webapps, the Vagrant way certainly sounds simpler. I prefer to use my provider's packages if possible, so it took me a few tries until I noticed I had to explicitly tell Vagrant (at least the first time) to use VirtualBox instead of the default (here) libvirt.

The next problem was memory. With my 4GB, giving 2/3 to the VM made the host thrash. My sweet spot seems to be in 2GB with less workers. And I have to remember to stop freeciv-web with the handy script before compiling/installing changes. All in all, it seems to be enough for what I may do.

User avatar
AndreasR
Elite
Posts: 701
Joined: Thu May 02, 2013 10:26 pm
Location: Norway

Re: savegames for devel testing

Postby AndreasR » Thu Mar 30, 2017 6:53 pm

Great! Can you please share some comments here about what you had to do to get Vagrant up and running?
What did you do to use VirtualBox instead of libvirt? Which Linux distribution are you using?
Is there anything we should change in Freeciv-web to make it easier for new users to get it running?

madmax
Veteran
Posts: 56
Joined: Sun Mar 26, 2017 5:34 pm

Re: savegames for devel testing

Postby madmax » Sat Apr 01, 2017 4:42 pm

Nothing fancy, biggest problem being memory.

Regarding installation, I followed instructions, just using one of Fedora's package managers instead of apt-get or directly installing from the sites. Then, when running vagrant up, it downloads the image and then spits out an error saying something like I have a virtualbox image and libvirt is not a usable provider. The knowledge of the net told me I had to use vagrant up --provider=virtualbox the first time I ran it.

It may be only with Fedora 24 packages. From what I've been reading (not that I understand any of it), libvirt supports virtualbox itself, but not the vb version used in the image with the libvirt version I have.

From https://www.vagrantup.com/docs/providers/basic_usage.html, it seems that adding

Code: Select all

config.vm.provider "virtualbox"
(without configuration section) to Vagrantfile would make telling it in the command line unnecessary.

Re memory, in my system the host becomes highly unresponsive with just 1/3 kept. I set mem = 2048 in Vagrantfile and both host and guest flow nicely.

User avatar
AndreasR
Elite
Posts: 701
Joined: Thu May 02, 2013 10:26 pm
Location: Norway

Re: savegames for devel testing

Postby AndreasR » Sat Apr 01, 2017 6:32 pm

I have made some improvements to the Vagrantfile based on your feedback. Thanks!