[Freeciv-Dev] [patch #4390] Map latitude requirement for effects

2015-08-11 Thread Jacob Nevins
Follow-up Comment #3, patch #4390 (project freeciv):

> Wrinkle: would need some way to control what happens when 
> there's no defined latitude
The Topology requirement added in patch #6193 probably fixes this. e.g. a
Solar Plant maximum latitude rule could have an exception for flat topologies
that allows a solar plant to work anywhere. Then we can just hardcode a fixed
'latitude' for flat maps in the game engine.

___

Reply to this item at:

  

___
  Message sent via/by Gna!
  http://gna.org/


___
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev


[Freeciv-Dev] [patch #4390] Map latitude requirement for effects

2014-08-25 Thread Jacob Nevins
Follow-up Comment #2, patch #4390 (project freeciv):

> This does mean that scenario authors can't specify how latitude 
> is to be evaluated for their scenarios. A fully general
> solution would be to allow latitude to be specified per-tile, 
> but that's probably not worth the hassle.
A simple solution would be to have a scenario property 'latitude', which
defaults to the sentinel value used by map generation without latitude, but
can be manually set to a single value by scenario authors (so a Scandinavian
scenario might be devoid of Solar Plants).

Might want some UI for latitude if ruleset effects depend on it, maybe in the
middle-click popup (plus perhaps a way to hide it for rulesets where it
doesn't matter, to avoid clutter).

(I'm ignoring the possibility of a longitude requirement. About the only use
for it I can think of would be a Ragged Astronauts
 scenario.)

___

Reply to this item at:

  

___
  Message sent via/by Gna!
  http://gna.org/


___
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev


[Freeciv-Dev] [patch #4390] Map latitude requirement for effects

2014-01-02 Thread Marko Lindqvist
Follow-up Comment #1, patch #4390 (project freeciv):

> A fully general solution would be to allow latitude to be
> specified per-tile,

I were thinking a bit similar idea (scenario map "area id") just today, but at
the moment decided that we shouldn't be adding more only rarely used fields to
tile structure as there can be a lot of tiles eating memory. Though this could
use information from master tile directly - no need to define it separately
for player tiles (map size x number of players tiles)

___

Reply to this item at:

  

___
  Message sent via/by Gna!
  http://gna.org/


___
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev


[Freeciv-Dev] [patch #4390] Map latitude requirement for effects

2014-01-02 Thread Jacob Nevins
URL:
  

 Summary: Map latitude requirement for effects
 Project: Freeciv
Submitted by: jtn
Submitted on: Thu Jan  2 15:12:04 2014
Category: None
Priority: 5 - Normal
  Status: None
 Privacy: Public
 Assigned to: None
Originator Email: 
 Open/Closed: Open
 Discussion Lock: Any
 Planned Release: 

___

Details:

It would probably be fairly easy to add a new requirement type of
"MaxLatitude", such that the requirement is only met for tiles/cities/etc
below a certain latitude.

For instance, Solar Plants might only be buildable below 45° latitude, not in
polar regions.
(If I get round to this, would anyone object to me adding this to the
experimental ruleset?)
Similarly if something is only appropriate in the polar regions, could use
present=FALSE in requirement to negate it.

Latitude would be defined as the map generator defines it (so generalised
appropriately for torus worlds, etc).

Not sure whether latitude should be unsigned (easier for ruleset authors but
less expressive) or signed (requires more clauses in rulesets, but allows
things to only happen at the north pole, should you wish -- polar bear special
at north pole, penguin special at south? ;)

Wrinkle: would need some way to control what happens when there's no defined
latitude (flat maps, scenarios, alltemperate?). Can't just defined latitude=0
or =90, as that may make e.g. Solar Plants completely unusable in a given
scenario.
Probably arrange that latitude evaluates to something outside the normal range
(say -91) for such maps, and document this so that ruleset authors decide what
the "default" behaviour is by specifying the behaviour in that range.

This does mean that scenario authors can't specify how latitude is to be
evaluated for their scenarios. A fully general solution would be to allow
latitude to be specified per-tile, but that's probably not worth the hassle.
More likely is probably a scenario option to specify how latitude should be
calculated.
(Need to check what the default behaviour would be -- would it just depend on
WRAPX and WRAPY? If so, that's probably good enough to start with, as it'll do
the right thing for world-map scenarios.)




___

Reply to this item at:

  

___
  Message sent via/by Gna!
  http://gna.org/


___
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev