Jump to content
Sign in to follow this  
opteryx

Scripts not Working

Recommended Posts

Well I'm trying to use the smooth roads/moving average script, but it keeps running forever and doesn't finish.... what gives?

Share this post


Link to post
Share on other sites

Is there any output in the script console?

Share this post


Link to post
Share on other sites

I've had that problem if I made real long roadnets or ones with multiple intersections. I just limit the length of roads and overlap the ends of the different segments.

Share this post


Link to post
Share on other sites
Is there any output in the script console?

After this:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">Wait - getting vertices

Wait - getting vertices

Done :)

Done :)

the console just goes blank, then... nothing, it just says script in progress and never ends.

I've had that problem if I made real long roadnets or ones with multiple intersections.  I just limit the length of roads and overlap the ends of the different segments.

Yeah it works on short road segments, but this one isn't that long.

script.jpg

Share this post


Link to post
Share on other sites

Hmm in your script output every line is doubled. The script says for example <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">echo "---------------";

echo "SmoothRoads.vis";

echo "---------------";

And each of this lines appears twice. Is that with every script you use?

Share this post


Link to post
Share on other sites
And each of this lines appears twice. Is that with every script you use?

Yes. Is it not supposed to?

Share this post


Link to post
Share on other sites

Dunno, but what sense does it make?

To track down the problem you should put further echo commands between this code part:<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> echo "Done :)";

_walkPts = getWalkPoints _road;

{

// gets the profile of this part of road

_profile = _x call GetRoadProfile;

// smooths the profile

_smoothedProfile = [_profile, _algToUse, _parameter] call SmoothProfile;

echo "vertices:";

Somewhere in there it stucks.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×