[Freeciv-Dev] [patch #1803] Tool: Map Importer (from Civ4 to Freeciv)

2010-08-07 Thread Daniel Markstedt

Update of patch #1803 (project freeciv):

  Status:None => Done   
 Assigned to:None => dmarks 
 Open/Closed:Open => Closed 

___

Follow-up Comment #6:

David, I just uploaded your package to
http://download.gna.org/freeciv/contrib/utils/FreecivMapImporter/

___

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 #1803] Tool: Map Importer (from Civ4 to Freeciv)

2010-08-04 Thread David Fernandez

Follow-up Comment #5, patch #1803 (project freeciv):

I suggested to syntron the possibility to add this "import" feature into
freeciv map editor, but he said it is complicated because the map is
generated in the server and the editor moddifies it in the client (if I
understood).
He suggested to create some kind of lua script. But I do not know lua
programing, only c and java. I chose java due to multiplataform support.
My intencion when I upload it here was that maybe people here could upload it
to the /freeciv/contrib/utils/ section, where I already found another java
tool. Or you can import my code to freeciv or lua script, whatever you find
better.

I asked in the forum about possible legality issues before sharing it.
Thinking about it, it is the same than OpenOffice can import MSOffice files.
I guess it should be legal. Note I did not cracked any Civ4 map info, they
are plain txt files with similar information than freeciv files.

I already took some few compromise decisions to create the current importer,
and I think the result is very playable. In fact, I find some imported maps
better than some default freeciv maps.

About rivers, I understand the effect over gameplay, and I see it could be an
issue for some people. I mean that the imported freeciv map includes the same
ammount of rivers than the original civ4 map, and the difference is only
visual.
As I said, I enjoy playing maps with lots of rivers, and people who do not
like them still can try to import civ4 maps where there are less rivers.

Topic in the forums: http://forum.freeciv.org/viewtopic.php?t=6335

___

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 #1803] Tool: Map Importer (from Civ4 to Freeciv)

2010-08-04 Thread anonymous

Follow-up Comment #4, patch #1803 (project freeciv):

I feel it would be better to program this as a plugin for freeciv itself -
basically a replacement for savegame.c, which could be refactored to be
modular - that would load the scenario directly into freeciv-server rather
than try to translate it.

Also however, the different rulesets of freeciv and civ4 will give issues,
unless that has been dealt with already.  A specialized ruleset may be
desired for this.  Graphics limitations on freeciv won't allow the exact same
terrain types but some compromises would probably let it work.

-jason


___

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 #1803] Tool: Map Importer (from Civ4 to Freeciv)

2010-08-04 Thread kinetic

Follow-up Comment #3, patch #1803 (project freeciv):

About the rivers, they are not just a visual issue. Rivers cut movement cost,
add trade, and with a certain option triremes can travel on them.

Also, I'm no lawyer, but the legality of this seems ambigious. Civ 4 is a
commercial game with many copyrights. Freeciv cannot ship code as GPLv2 if it
contains proprietary info (civ4 map definition?).

Its also written in Java, and freeciv is C99 or lua.

___

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 #1803] Tool: Map Importer (from Civ4 to Freeciv)

2010-08-02 Thread David Fernandez

Follow-up Comment #2, patch #1803 (project freeciv):

True. I didn't know how to add gzip capabilities to my program, I'll try to
add it for future versions if people interested.
At least, I have verified that non-compressed scenarios do work in Freeciv,
so compression is only an improvement.

Wrap: I forgot to import the [map] options from the Freeciv scenario, I'll
release v0.2 when I fix it.

Rivers: in Civ4 if you place rivers in adjacent tiles, you can decide which
rivers will be shown connected and which not. That is why Civ4 scenarios
include much more tiles with rivers. If you'd import an scenario with less
rivers, I guess it would appear better in Freeciv. However, I like those map
full of rivers, I even see them more realistic.
It is only a visual issue, same than when you see mountains in adjacent tiles
joined to each other, instead of seing mountain ranges. It is good enough for
me.

The option S-W simply would move all the rivers 1 tile to South and 1 tile to
the West compared to N-E. It also affects the capability of some rivers to
reach the sea that is imo the main problem of the conversion from civ4 to
freeciv.

Thank you for your tests and comments.

___

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 #1803] Tool: Map Importer (from Civ4 to Freeciv)

2010-08-02 Thread kinetic

Follow-up Comment #1, patch #1803 (project freeciv):

I tested this. It doesn't compress or decompress the freeciv scenario, so you
have to decompress a scenario first to properly import the settings. It also
always wraps the world E-W, even if you use the Europe scenario as the base.
This means that non-wrapping scenario maps aren't compatible. Also, it
creates a crazy amount of rivers, I didn't test all the different river
settings, but the majority of tiles on the earth maps have rivers on them
with the default (NE) setting.

___

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 #1803] Tool: Map Importer (from Civ4 to Freeciv)

2010-08-02 Thread anonymous

URL:
  

 Summary: Tool: Map Importer (from Civ4 to Freeciv)
 Project: Freeciv
Submitted by: None
Submitted on: lunes 02/08/10 at 17:49 CEST
Category: editor
Priority: 5 - Normal
  Status: None
 Privacy: Public
 Assigned to: None
Originator Email: dfer...@terra.es
 Open/Closed: Open
 Discussion Lock: Any
 Planned Release: 

___

Details:

=== 
Freeciv Map Importer (from Civ4 to Freeciv) - released v0.1
=== 

I have finally coded in java this tool I was talking about, and I added a
simple UI, to create fully functional Freeciv scenarios for V2.2, imported
from Civ4 Maps.

>From the Readme:
[quote]General Information
===
This tool converts Civ4 maps to Freeciv playable scenarios.

Usage
-
1- Select a Civ4 Map File, to import the terrain types and starting
possitions.
There are 4 options to import the Rivers (from tile joints, to center of
tiles): NW, NE, SW, SE.

2- Select a Freeciv scenario, to import the Freeciv scenario options.
You may customize the Name and Description of the scenario.

3- "Save As" with the desired name, and .sav extension.
If you copy the resultant file to the folder "Freeciv\data\scenario\", you
will see it in game.


Installation

Unzip to a directory.
You need a 'Java JRE', http://java.sun.com or clone.
Make sure the java JRE is in your path environment

Running
---
In a command window, execute:
java -jar "MapImporter.jar" 

Alternatively
-
Windows users: Execute "MapImporter.bat"
Linux users: Run shell script "MapImporter"[/quote]

I suggest to test the Importer with these Earth Maps:
(Search the files with extension .CivBeyondSwordWBSave, and use the default
River alignment to N-E in the MapImporter)

1) Giant Earth Map by Genghis_Kai 210x90:
http://forums.civfanatics.com/downloads.php?do=file&id=7790

2)  Earth Map by Rhye 124x68:
http://forums.civfanatics.com/downloads.php?do=file&id=175



___

File Attachments:


---
Date: lunes 02/08/10 at 17:49 CEST  Name: FreecivMapImporter-0.1.zip  Size:
23kB   By: None



___

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