Page 2 of 2

PostPosted: Mon Feb 08, 2010 9:55 am
by Aaron
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.

PostPosted: Mon Feb 08, 2010 8:01 pm
by Telarus
Thanks Aaron, it looked like a syntax error.

PostPosted: Wed Feb 17, 2010 10:08 pm
by Telarus
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.

PostPosted: Fri Feb 19, 2010 7:14 pm
by nicethugbert
What indicates a good map to feed to the rivers plugin? The more lakes my map has, the more rivers it will have?

PostPosted: Sat Feb 20, 2010 5:54 am
by Aaron
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.

PostPosted: Sat Feb 20, 2010 6:54 am
by Telarus
That link's .zip file contains the 8/11/09 .zeo file.

Thanks for the clarification on the doc!

PostPosted: Sat Feb 20, 2010 10:55 am
by Aaron
Oops, my apologies. Zip updated now.