addShipsWithinRadius is not working with JS

For test results, bug reports, announcements of new builds etc.

Moderators: winston, another_commander, Getafix

Post Reply
User avatar
Eric Walch
Slightly Grand Rear Admiral
Slightly Grand Rear Admiral
Posts: 5536
Joined: Sat Jun 16, 2007 3:48 pm
Location: Netherlands

addShipsWithinRadius is not working with JS

Post by Eric Walch »

The command: legacy_addShipsWithinRadius is not working. It adds ships on wrong places in deep space at unreachable distances. Probably one of the coordinates is mixed up or the radius gets way to big.

I noticed this when doing the JS version of Military Fiasco. The bad leviathan never showed up with the JS version. It did however on the entity dump, but than as most distant object.
User avatar
JensAyton
Grand Admiral Emeritus
Grand Admiral Emeritus
Posts: 6657
Joined: Sat Apr 02, 2005 2:43 pm
Location: Sweden
Contact:

Post by JensAyton »

Please provide an example in both JS and legacy syntax. Remember, none of the current developers are intimately familiar with all the scripting methods.
another_commander
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 6628
Joined: Wed Feb 28, 2007 7:54 am

Post by another_commander »

Radius was not passed to the legacy script methods correctly. Fixed in trunk.
User avatar
JensAyton
Grand Admiral Emeritus
Grand Admiral Emeritus
Posts: 6657
Joined: Sat Apr 02, 2005 2:43 pm
Location: Sweden
Contact:

Post by JensAyton »

See, there he goes with his “actually reading the code” magic again. :-)
User avatar
Kaks
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 3009
Joined: Mon Jan 21, 2008 11:41 pm
Location: The Big Smoke

Post by Kaks »

Ahruman wrote:
See, there he goes with his “actually reading the code” magic again. :-)
Hmmm, if only we could figure out what his secret is.... :D
Hey, free OXPs: farsun v1.05 & tty v0.5! :0)
Post Reply