Skip Menu |

This queue is for tickets about the Games-Risk CPAN distribution.

Report information
The Basics
Id: 71214
Status: resolved
Priority: 0/
Queue: Games-Risk

People
Owner: Nobody in particular
Requestors: DUFFEE [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 3.112590
Fixed in: (no value)



Subject: Games::Risk::App::Command::import requires perl 5.14 - why?
Why does Games/Risk/App/Command/import.pm have "use 5.014;" when everything else is "use 5.010;"? It's the only reason that I couldn't install directly from CPAN. I was just curious if you had documentation for writing my own map, but really I should be writing my thesis and not having fun.
On Sun Sep 25 06:50:37 2011, DUFFEE wrote: Show quoted text
> Why does Games/Risk/App/Command/import.pm have > "use 5.014;" when everything else is "use 5.010;"? It's the only reason > that I couldn't install directly from CPAN.
import is using the /r regex modifier, new in perl 5.14 i really wondered whether to use it or sticking with 5.10... note however that you don't need Games/Risk/App/Command/import.pm to play - it's only used to convert a map from jrisk to prisk format. Show quoted text
> I was just curious if you had documentation for writing my own map, but > really I should be writing my thesis and not having fun.
it's not that difficult: 1. create a lib/Games/Risk/Map/FooMap.pm, following an existing example 2. create a jpg/png background 3. create a gif black&white picture, with countries being paint by a given grey value. eg: 1st country is painted by rgb(1,1,1), 2nd one by rgb(2,2,2), etc. or you can create a jrisk map (cf http://domination.sourceforge.net/makemaps.shtml for instructions) and convert it to prisk using "prisk import". note that i intend to provide all jrisk maps (http://domination.sourceforge.net/getmaps.shtml) in additional distributions. i already started, but it requries some change in the sharedir / i18n handling. oh - and get back to work! :-)
On Sun Sep 25 09:47:57 2011, JQUELIN wrote: Show quoted text
> import is using the /r regex modifier, new in perl 5.14 > i really wondered whether to use it or sticking with 5.10... note > however that you don't need Games/Risk/App/Command/import.pm to play - > it's only used to convert a map from jrisk to prisk format.
i'm going to require 5.14 at runtime throught an eval. this way, it'll revert to 5.10 as require. this will have to wait the update to split maps, though (this week).
Subject: Re: [rt.cpan.org #71214] Games::Risk::App::Command::import requires perl 5.14 - why?
Date: Sun, 25 Sep 2011 15:49:08 +0100
To: bug-Games-Risk [...] rt.cpan.org
From: Boyd Duffee <b.duffee [...] isc.keele.ac.uk>
On 09/25/2011 03:33 PM, Jerome Quelin via RT wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=71214 > > > On Sun Sep 25 09:47:57 2011, JQUELIN wrote:
>> import is using the /r regex modifier, new in perl 5.14 >> i really wondered whether to use it or sticking with 5.10... note >> however that you don't need Games/Risk/App/Command/import.pm to play - >> it's only used to convert a map from jrisk to prisk format.
> > i'm going to require 5.14 at runtime throught an eval. this way, it'll > revert to 5.10 as require. this will have to wait the update to split > maps, though (this week).
You are determined to ruin my productivity :) Thanks, I've been reading up on the /r modifier as well -- Boyd Duffee Keele University (01782) 734225 Student Facing Systems I only eat free-range chocolate.
fixed in games-risk-3.112690 note that extra maps have been put in new dists: games-risk-extramaps-countries, games-risk-extramaps-imaginary, games-risk-extramaps-history those dists will be completed with more maps, and will be joined by others dists as well.