Moderator: OpenTTD Developers
One thing is bothering me is that my map to look good would require diagonal rivers... and seemly those doesn't exist (yet?).
I am a professional C++ coder, so if I decide to make a patch, would it be allowed? And what I would need to do?
OpenGFX + Landscape has diagonally rivers. Regarding diagonally canals:
I haven't seen it anywhere, but I have pre-made such graphics. I could finish them, but I would need a template that I couldn't find. This is nothing special, it would certainly be more difficult to code it, although it might be possible to adapt the code for diagonally rivers from OpenGFX. This code is not perfect, not everything looks good (especially wider rivers and lakes) so it could be improved a bit. As for the river graphics themselves, I also have their improved version. They're not perfect, but at least you can't see those horns.
Regarding construction of diagonally rivers and canals:
I have graphics for the construction of such elements. This is also nothing special, but it might be useful (or maybe not). Most of the graphics I did about a year ago, when I was working on a map, where there were a lot of such diagonally rivers - building point by point was a arduous. I wanted to post a suggestion to improve the editor, which would be very useful...
Edit: I am not entirely convinced to change the graphics in the main version of the game. But it can always be an addon or even a new base graphics set.
These would be a great contribution to OpenGFX+ Landscapes.
Base Music Sets: OpenMSX | Scott Joplin Anthology | Traditional Winter Holiday Music | Modern Motion Music
Other Projects: 2CC Trams | Modern Waypoints | Sprite Sandbox & NewGRF Releases | Ideabox | Town Names | Isle of Sodor Scenario | Random Sprite Repository
Misc Topics: My Screenshots | Forgotten NewGRFs | Unfinished Graphics Sets | Stats Shack | RoadTypes?
Rivers and canals are technically the same and the only difference is the waterclass which is used to decide which sprites are being drawn. Thus technically the very same code could be duplicated and canals would have the same feature.
The source of OpenGFX+Landscape is freely available under GPL v2+. You find the river (and canal) code at https://kallithea.openttdcoop.org/ogfx- ... ivers.pnml - I might soonish migrate that to a GitHub repository.
planetmaker has done some amazing Action5 work with OpenGFX+Landscape but to be honest, this should be generally available throughout the game (steep slope/water included). I took a look at his code a while ago and to be honest I found it to be quite complicated. Perhaps I need to take another look at it when I complete some of my current projects. The pity is that it is currently a GRF solution to add to an existing feature. Hopefully somebody can develop a way to expand the feature itself.
I assumed that the code for these rivers could be quite extensive. But I didn't think that is so much.
With these river templates ... this division is a bit scary. I have the impression that some of the graphics found there are not used at all. Template for others, however, I still can't find. There are only graphics of rivers running along the field lines: \ NE, / NW, / SE, \ SW. I don't see those that run diagonally across the fields: (N, S, | W, | E), or small pieces of land in the corners of the field.
The waterfeatures.png template scared me a bit again. I really don't know where that all sprites goes. Earlier I thought it will be simpler separated. For example, for the new canals graphics (straight and diagonal) I anticipated the creation of 25 graphics for each climate in the version with and without dividing lines. In total, 25x12 = 300 graphics would be created. The same amount of graphics would apply to rivers on a flat surface. A lot, but much less than around 1180, which would only apply to rivers. I assumed that the canals graphics would be created by superimposing layers of water + waterfront with ground. I didn't anticipate any additional overlays because I thought it would significantly complicate the code... Although in some places such overlays could be useful, but not so many.
I don't know if you would like my versions of rivers and canals at all, but even if yes, I am afraid I won't be able to divide them properly and assign them to these templates.
I also don't know what your opinion is about the canals and rivers near to the slopes - will anyone want to add such a possibility. I think it would be worth it.
This is how it would look in the game ... On the occasion a small sample of deep water
I hope that jfs will not abandon his project. Here I used an additional two shades from outside the palette.
Users browsing this forum: No registered users and 6 guests