L3DT users' community
Large 3D terrain generator

Rivers plugin

Correspondence concerning plugins and scripts; development, use, bugs and ideas.

Postby Aaron » Mon Feb 08, 2010 9:55 am

Hi Telarus,

The latest developmental build of L3DT has an updated scripting plugin to improve performance (see announcement). This update also changed some of the script syntax, so some older scripts will need to be updated to work with the new plugin. I have updated all the scripts included with the installer, but some scripts on the website (including those on the atRainMaker plugin page) have not been updated yet, and will not be refreshed until the next stable release (v2.9). This decision was made so that the documentation on the website accurately reflects the current stable build, not the developmental build.

In any case, the updated script for the plugin should be something like this:

Code: Select all
calc.WM.rain <GetMap "HF"> <GetMap "WM"> 1 500 1 1 0xFF
calc.HF.ShiftMap <GetMap "Rain-maxdepth"> -5 false
calc.WM.ApplyOverlayMax <GetMap "HF"> <GetMap "WM"> <GetMap "Rain-maxdepth"> true


Depending on your terrain map, you may need/want to tweak the values in the above script. The meaning of each parameter is explained (briefly) on the plugin page.

Best regards,
Aaron.
User avatar
Aaron
Site Admin
 
Posts: 3696
Joined: Sun Nov 20, 2005 2:41 pm
Location: Melbourne, Australia

Postby Telarus » Mon Feb 08, 2010 8:01 pm

Thanks Aaron, it looked like a syntax error.
Telarus
Doyen
 
Posts: 112
Joined: Mon Jun 01, 2009 12:34 am

Postby Telarus » Wed Feb 17, 2010 10:08 pm

Hey, it seems to be running OK.

I only ran the first line of code so far, with this adjustment for speed "calc.WM.rain <GetMap "HF"> <GetMap "WM"> 4 50 0 -0.5 0xFF "

The last 3 vars seems to be a different format from the documentation, so I left those alone.

I did get this error (seems a syntax change in the rain plugin file is needed):

Code: Select all
ZeoScript error: Unrecognised command 'm:Rain-avgdepth'.
 - Line 1: 'calc.HF.ScaleMap <m:Rain-avgdepth> 0.020000 true'

ZeoScript error: Compilation aborted following errors.
 - Line 1: 'calc.HF.ScaleMap <m:Rain-avgdepth> 0.020000 true'

CZeoFunc::CallFunction error:
 - The function 'ExtRunScriptEx' in the plugin 'ZeoScript' returned an error.
Telarus
Doyen
 
Posts: 112
Joined: Mon Jun 01, 2009 12:34 am

Postby nicethugbert » Fri Feb 19, 2010 7:14 pm

What indicates a good map to feed to the rivers plugin? The more lakes my map has, the more rivers it will have?
nicethugbert
Doyen
 
Posts: 132
Joined: Sat Feb 02, 2008 12:58 pm

Postby Aaron » Sat Feb 20, 2010 5:54 am

Hi Telarus,

Telarus wrote:I did get this error (seems a syntax change in the rain plugin file is needed):


That script was updated in the plugin on the 8th of Feb. The plugin may be downloaded from the plugin page, or directly from here.

Telarus wrote:The last 3 vars seems to be a different format from the documentation, so I left those alone.


The parameters have the same meanings as described in the documentation. The only real difference is that that the last parameter ('flags') I've written in hexadecimal instead of decimal (as used in the docs). In the scripts you may write the flags in either decimal or hexadecimal; whichever pleases you best.

Cheerio,
Aaron.
User avatar
Aaron
Site Admin
 
Posts: 3696
Joined: Sun Nov 20, 2005 2:41 pm
Location: Melbourne, Australia

Postby Telarus » Sat Feb 20, 2010 6:54 am

That link's .zip file contains the 8/11/09 .zeo file.

Thanks for the clarification on the doc!
Telarus
Doyen
 
Posts: 112
Joined: Mon Jun 01, 2009 12:34 am

Postby Aaron » Sat Feb 20, 2010 10:55 am

Oops, my apologies. Zip updated now.
User avatar
Aaron
Site Admin
 
Posts: 3696
Joined: Sun Nov 20, 2005 2:41 pm
Location: Melbourne, Australia

Previous

Return to Plugins and scripts

Who is online

Users browsing this forum: No registered users and 4 guests

cron