News:

Simutrans Chat Room
Where cool people of Simutrans can meet up.

forest generation

Started by uci, April 28, 2011, 11:34:38 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

uci

In spite of the settings


# climates with no trees at all (desert and arctic at the moment)
no_tree_climates = 130


forests can be generated/added on every climate. With the same settings pak64 behaves correctly.


VS

Quote from: uci on April 28, 2011, 11:34:38 AM
With the same settings pak64 behaves correctly.
You mean, if you add this to pak64 simuconf, it works correctly?

My projects... Tools for messing with Simutrans graphics. Graphic archive - templates and some other stuff for painters. Development logs for most recent information on what is going on. And of course pak128!

uci

Quote from: VS on April 28, 2011, 03:38:21 PM
You mean, if you add this to pak64 simuconf, it works correctly?
Yes, in fact this is the default. You think it is not pak128 related?

DirrrtyDirk

I cannot see why it should not work in pak128... ??? The entry is the same as in pak64 - so for some reason it works there but not here.
  
***** PAK128 Dev Team - semi-retired*****

VS

This is actually true, for a rather weird reason... No idea why, but pak128 has explicitly set no_trees=0. Removing that option fixes this. So fixing that is simple :)

However, there is some bug or undocumented logic in program, which makes this happen... I don't feel like debugging it though, there is nothing obvious... :-/

My projects... Tools for messing with Simutrans graphics. Graphic archive - templates and some other stuff for painters. Development logs for most recent information on what is going on. And of course pak128!

DirrrtyDirk

Removing this setting does not change anything for me - it's still not working properly in pak128, while pak64 runs just fine...
  
***** PAK128 Dev Team - semi-retired*****

VS

#6
Well, it turns out that pak64 has no trees for desert. So one oops for me... Another program bug, it seems...

It would be hilarious if my previous finding of "nothing obvious" could mean there is nothing at all :P

edit: No code, just thinking out loud.. Could it actually be that this entry has been made obsolete by tree climate data? Because there is little point in duplicating that functionality.

edit2: Moving to program bugs, please give it back if there is no program bug :)

My projects... Tools for messing with Simutrans graphics. Graphic archive - templates and some other stuff for painters. Development logs for most recent information on what is going on. And of course pak128!

Dwachs

This setting is only used to distribute those single trees across the map, not for forest generation.
Parsley, sage, rosemary, and maggikraut.

uci

#8
Quote from: Dwachs on April 29, 2011, 06:11:40 AM
This setting is only used to distribute those single trees across the map, not for forest generation.
Quote from: VS on April 28, 2011, 09:48:08 PM
Well, it turns out that pak64 has no trees for desert...
These facts explain the behaviour.

Let me suggest some changes for pak128:
1. Trees should not be allowed in arctic climate (always covered by snow).
2. At least palm trees should not be allowed in desert climate but in water climate (like pak64). This creates a nice effect along coastal lines.

Edit: Since we are still talking about trees, I want to point out here a visual bug (white pixel) in cactus000 tree (image).

DirrrtyDirk

Quote from: Dwachs on April 29, 2011, 06:11:40 AM
This setting is only used to distribute those single trees across the map, not for forest generation.

Hmm wouldn't it make more sense the other way round? So that single a single cactus may be placed in the desert once in a while, but not dense forests of them?
  
***** PAK128 Dev Team - semi-retired*****

VS

#10
I think some types of desert plants actually do grow in almost-forests... they're low, though, so it doesn't look that way. And it might be a question of density for climate zones, too. Shame on me, but I don't remember how dense is vegetation outside Simutrans forests. If we analyze this seriously, we'll turn Simutrans into a botanical simulator :D

Perhaps forbidding single both trees and forests could be configured that way.

Anyway, what uci says is a good starting approximation - forbid everything except cacti in desert, forbid everything in arctic.

My projects... Tools for messing with Simutrans graphics. Graphic archive - templates and some other stuff for painters. Development logs for most recent information on what is going on. And of course pak128!

DirrrtyDirk

Yes, but for a game, the stereotype is enough for me. I require no more realism for desert vegetation than that.  ;)

Or, as a work-around, we could change the cactus plants from trees into ground objects - that would solve the desert problem, I think...
  
***** PAK128 Dev Team - semi-retired*****

VS

#12
Then they would stay the same all the time, no? Is that a problem? Could we say that cacti are simply long-lived and thus don't grow during game? Questions, questions...

Fixed the cactus problem and a few other stray tree pixels...

Also... should this thread stay here or go back to pak128? edit: yes, I think.

edit2: current climate report - http://vs.simutrans.com/remote_images/trees/128-tree-climates.png

My projects... Tools for messing with Simutrans graphics. Graphic archive - templates and some other stuff for painters. Development logs for most recent information on what is going on. And of course pak128!

uci

#13
Nice overview. I think arctic climate should be avoided anyway.

Edit: Changing the settings only for palms does not produce significant differences (image), but allowing some trees on water is not bad.

VS


My projects... Tools for messing with Simutrans graphics. Graphic archive - templates and some other stuff for painters. Development logs for most recent information on what is going on. And of course pak128!

uci

#15
Just a remark:
There is an implicit assumption in Simutrans that waters are hot. Suppose a nordic island with tundra climate. We get palms along beaches. This is not pak128 related.

Edit: of course, only tundra and alpine climates are enabled in landscape settings.

Václav

uci, in game start dialogue you can set climates - but on some maps it can be problem.

Chybami se člověk učí - ale někteří lidé jsou nepoučitelní

VS

Today I made cacti groundobjs, which means they are distributed randomly at start of the game... and that's it. No settings tweaked so far, but to me the results seem reasonable.

Reactions?

(changes finished with r512)

My projects... Tools for messing with Simutrans graphics. Graphic archive - templates and some other stuff for painters. Development logs for most recent information on what is going on. And of course pak128!