[SOLVED] addTendrils script

@GearBox Can I take a look at the script you used to place the resource tendrils? The actual position values appear to be statically placed into the level file, not generated dynamically with a LUA script.

[edit]

I’m having a problem with addTendrils. I can’t AFAIK dynamically generate a list of positions to use as input since the CALL and DOSTRING functions are outside the level file scope. Is there any possibility that you could change the addTendrils function so that it accepts a single table-of-tables as input? I.e. the single table would contain all the smaller XYZ coordinate tables.

[edit]

Also, the tendrils don’t seem to appear if the addNebulaWithResources objects are not also present. What is their relationship?

Tendrils link Nebula - the points in the tendril have to match the points in an existing nebula. No scripts were used, just manual/level edit…

1 Like

How long are the tendril chunks? They don’t seem to connect the entire distance from one endpoint to the next, but instead come somewhat short of the target.

[edit]

I would look for the HOD file and measure it but I can’t find it.

Go find Tendrils.def, it shows how the art relates to the spacing, etc…

Though the format of that file is changing in the next patch (I think).

Okay, thanks!

I’m converting some HW1 maps and they used insane numbers of nebula chunks! I’m going to have to limit this value by a factor of 100 I think.

FYI, the CPU players can’t seem to see the nebulas and don’t move to harvest them.

I still don’t know what I’m doing. For instance I have:

+res_tendril_base4
&res_tendril_beam1
-mindist = 1
-minscale = 1
-maxdist = 40000
-maxscale = 100

but the tendril still can’t stretch from {0,0,0} to {0,0,10000}.

But if I change maxdist to 10000 it overshoots the target by like 5 times.

Arise!

Here is an example of correct usage:

	addNebulaWithResources("NebulaGroup2", "Nebula0", {  -499.679688, -5634.416992, 6409.386230}, 200, {244.000000, 174.000000,  12.000000, 163.000000}, 0.000000, 85.750000, 0)
	addNebulaWithResources("NebulaGroup2", "Nebula0", { -4456.327148, -3088.936035, 4530.074707}, 200, {125.000000, 151.000000,  95.000000, 163.000000}, 0.000000, 85.750000, 0)
	addNebulaWithResources("NebulaGroup2", "Nebula0", { -5795.396484,  -968.341858, 3557.254639}, 200, { 42.000000, 171.000000,  29.000000, 163.000000}, 0.000000, 85.750000, 0)
	addNebulaWithResources("NebulaGroup2", "Nebula0", { -8440.851563,   835.027954, 2902.619629}, 200, {153.000000,  20.000000,  39.000000, 163.000000}, 0.000000, 85.750000, 0)
	addNebulaWithResources("NebulaGroup2", "Nebula0", { -9683.792969,  1513.694824, 1489.531372}, 200, {234.000000, 150.000000, 115.000000, 163.000000}, 0.000000, 85.750000, 0)
	addNebulaWithResources("NebulaGroup2", "Nebula0", {-11605.401367,  1215.696533,  886.806030}, 200, {110.000000, 159.000000, 170.000000, 163.000000}, 0.000000, 85.750000, 0)
	addNebulaWithResources("NebulaGroup2", "Nebula0", {-13413.577148,   893.666443,  -84.091492}, 200, { 51.000000, 152.000000, 230.000000, 163.000000}, 0.000000, 85.750000, 0)
	addTendrils({-499.679688, -5634.416504, 6409.386230}, {-4456.327148, -3088.936035, 4530.074219}, {-5795.396484, -968.341919, 3557.254883}, {-8440.851563, 835.027954, 2902.619629}, {-9683.792969, 1513.694946, 1489.531372}, {-11605.401367, 1215.696533, 886.805847}, {-13413.577148, 893.666504, -84.091492})

The caveat is that you need to either load “HW1Campaign.big” or copy “nebula0” into your mod.

1 Like