Git Product home page Git Product logo

worldengine's People

Contributors

abhyudaypratap avatar babetoduarte avatar c-w avatar devinrb avatar esampson avatar ftomassetti avatar himura2la avatar mm1nd avatar mrcasals avatar psi29a avatar rardiol avatar rbb avatar richardscottoz avatar sjbrown avatar solarizedred avatar stefan-feltmann avatar tcld avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

worldengine's Issues

Precipitation error on the GUI

Traceback (most recent call last):
  File "C:\Python27\Scripts\worldenginegui-script.py", line 9, in <module>
    load_entry_point('worldengine==0.5.4', 'console_scripts', 'worldenginegui')()
  File "C:\Python27\lib\site-packages\pkg_resources\__init__.py", line 519, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "C:\Python27\lib\site-packages\pkg_resources\__init__.py", line 2630, in load_entry_point
    return ep.load()
  File "C:\Python27\lib\site-packages\pkg_resources\__init__.py", line 2310, in load
    return self.resolve()
  File "C:\Python27\lib\site-packages\pkg_resources\__init__.py", line 2316, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "build\bdist.win-amd64\egg\worldengine\gui\main.py", line 27, in <module>
ImportError: No module named views.PrecipitationsView

As reported by Ryan

Installed Lands; won't run. "DLL load failed:%1 is not a valid Win32 application."

I've been trying to run Lands for several days now, but I keep running into issues. I'm a newbie with Python (and coding in general), but I think I've installed it just fine. When I try to run it I get the following error:

C:\Users\User\Downloads\Lands\Lands-master>lands world -s 1 -n seed1
Traceback (most recent call last):
    File "C:\Python27\Scripts\lands-script.py", line 9, in <module>
        load_entry_point('lands==0.5.3.1', 'console_scripts', 'lands')()
    File "C:\Python27\lib\site-packages\pkg_resources.py", line 339, in load_entry_point
        return get_distribution(dist).load_entry_point(group, name)
    File "C:\Python27\lib\site-packages\pkg_resources.py", line 2470, in load_entry_point
        return ep.load()
    File "C:\Python27\lib\site-packages\\pkg_resources.py", line 2184, in load 
        ['__name__'])
    File "C:\Python27\lib\site-packages\lands\generator.py", line 8, in <module>
        import lands.geo
    File "C:\Python27\lib\site-packages\lands\geo.py", line 4, in <module>
        from noise import snoise2
    File "C:\Python27\lib\site-packages\noise\__init__.py", line 12, in <module>
        from . import _perlin, _simplex
ImportError: DLL load failed: %1 is not a valid Win32 application.

I followed the wiki's instructions for installing on Windows, and I made sure I had 64-bit versions of everything (e.g. Python 2.7.9, pip, etc.) Let me know if I'm missing any important info.

Update or delete erosion_generation and water_generator

Both sounds good but do something.

Right now the idea is that the command line application can be used to generate the world, deciding at which step to stop, while in the GUI the user can launch each step separately. What about the command line? Do we want to add separate utilities to run the steps individually?
So that the user can initially performs some steps (says A, B, C) and then if he wants he can load the generated world, run D and save it.

Save seed (and generation parameters) in the world file

"There seems to be no easy way to check the seeds that are used to generate the map. A little thing, but very frustrating when I want to recreate a map whose seed I did not write down. Perhaps the parameters used to create the world could be embedded/commented into the images as they are created? Or, perhaps, could this information be extracted from the .world file? "

We should save all generation parameters and also the Lands version number

Speed Improvements?

I've been using lands to create some desktop backgrounds, and it is rather slow.

Seems like there is some low hanging fruit for optimizations.

There are a lot of constructs in the code like:

for y in xrange(factor*world.height):
        for x in xrange(factor*world.width):

according to pythoncentral, xrange is computationally expensive, but more memory efficient.

I can think of two easy speed improvements:

  • group tasks in the same for loop constructs into fewer loops (draw_oldmap_on_pixels() is ripe for this approach).
  • possibly replace the inner for x in xrange(factor*world.width) with a range call

Error with the Greyscale file generation

As reported by Ryan

Downloaded the latest master and installed on Windows x64 with no issue. However, when trying to generate a Greyscale file with the current master build, it failed to produce the file with this error:

Traceback (most recent call last):
  File "C:\Python27\Scripts\worldengine-script.py", line 9, in <module>
    load_entry_point('worldengine==0.5.4', 'console_scripts', 'worldengine')()
  File "build\bdist.win-amd64\egg\worldengine\cli\main.py", line 304, in main
  File "build\bdist.win-amd64\egg\worldengine\cli\main.py", line 71, in generate_grayscale_heightmap
  File "build\bdist.win-amd64\egg\worldengine\draw.py", line 207, in draw_grayscale_heightmap
AttributeError: 'str' object has no attribute 'set_pixel'`

Any obvious reason why that is failing, or is it an issue/incomplete feature with the current build?

Improve/extract erosion

It could be a standalone library, maybe written in C.
Or maybe I could use some existing library, if it exists.

Continents size

Should depend on global world size and maybe it should be more "agglutinated"

Export to Photoshop format (PSD)

On Reddit it has been suggested to support PSD files.

"I feel that a really vital tool could be creating an easy export to photoshop, complete with layer integrity -- ie, a terrain layer, an elevation layer, a water layer, and a line map layer (most important!)"

Output a grayscale heightmap

"First, The elevation color scheme is not useful for converting to grey scale (For graphics programs like GIMP and Heightmap editors like Wilbur) The main issue is with the orange-brown color used for the mountains/highlands, which becomes darker (and thus lower in elevation) than the surrounding land when it is desaturated. This issue is also present, in reverse, when the light blue used for the shallow water near coastlines becomes a bright grey-white, thus forming mountainous outlines around the coastline. Is it possible that the palette could be adjusted, or the option to output greyscale elevation maps added?"

We could also want to support different formats (png and bmp I would say)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.