View unanswered posts | View active topics It is currently Thu Sep 19, 2019 6:53 pm



Reply to topic  [ 8 posts ] 
Custom faction seed lancher. 
Author Message

Joined: Mon Dec 07, 2015 12:27 pm
Posts: 4
Reply with quote
I have created custom faction. This faction have 2 plant designs(they both use same custom seed block), 1 big with factory, other small, with just some weapons. Then i generate new world these plants spawn on nearby asteroids. Most of the spawned plants are small ones. I would like to know how to manually adjust chances of spawning small plant or big plant.
This is seed code
[Reveal] Spoiler:
{1, command={faction=20}, shape=SEED_3, name="Seed", features=COMMAND|THRUSTER|GENERATOR|TORQUER|PHOTOSYNTH|SEED|REGROWER, group=20,
points=5, durability=0.500, density=0.150, fillColor=0x20202, fillColor1=65793,
lineColor=0, capacity=5000.000, thrusterColor=0x4d4d4d, thrusterColor1=0x4d4d4d,torquerTorque=4000.000, generatorCapacityPerSec=150.000, launchLifetime=30.000, seedLifetime=0.000,photosynthPerSec=20}

This is seed launcher code
[Reveal] Spoiler:
{29, bindingId=2, shape=RECT_LAUNCHER1, name="Plague Seed Launcher", features=LAUNCHER,
group=20, points=100, durability=0.500, density=0.150, fillColor=0x20202, fillColor1=65793,
lineColor=0, thrusterColor=0x4d4d4d, thrusterColor1=0x4d4d4d, replicateBlock=
{ident=1}}

This is big plant code
[Reveal] Spoiler:
{data={name="Plague Factory", author="Maks", color1=0x373737, wgroup={0, 0, 2, 0}},
blocks={
{1, {-44.266, 4.822}, command={faction=20}},
{5, {24.816, -45.178}, -1.571},
{2, {-10.184, -30.178}},
{18, {19.816, -15.178}, 1.571},
{28, {24.816, 4.822}, bindingId=2},
{18, {34.816, -20.178}},
{3, {34.816, -35.178}},
{18, {24.816, -30.178}},
{3, {14.816, -35.178}, -1.571},
{14, {14.816, -25.178}, bindingId=5},
{3, {4.816, -5.178}},
{3, {-5.184, -5.178}},
{5, {-25.184, -5.178}, -1.571},
{5, {-35.184, -25.178}, -3.142},
{3, {-35.184, -45.178}, -1.571},
{5, {-35.184, -65.178}, -3.142},
{5, {-25.184, -85.178}, -1.571},
{3, {-35.184, 4.822}},
{7, {-25.184, 4.822}, -3.142},
{5, {-25.184, 14.822}, -1.571},
{18, {-10.184, 4.822}, 1.571},
{3, {-5.184, 14.822}},
{18, {4.816, 9.822}},
{18, {9.816, 24.822}, -1.571},
{6, {-25.184, -115.178}, -3.142, bindingId=1},
{3, {4.816, 34.822}},
{14, {14.816, 34.822}, -1.571, bindingId=5},
{3, {14.816, 44.822}},
{18, {29.816, 44.822}, -1.571},
{22, {29.816, 29.822}},
{5, {-5.184, 44.822}, -1.571},
{18, {-25.184, 39.822}},
{3, {-25.184, 24.822}},
{5, {-35.184, 34.822}},
{2, {-20.184, 69.822}},
{5, {4.816, 64.822}, 3.142},
{2, {19.816, -70.178}},
{5, {-15.184, -75.178}, -1.571},
{14, {14.816, 74.822}, 3.142, bindingId=5},
{18, {-10.184, -55.178}, -1.571},
{3, {-5.184, -65.178}, -3.142},
{18, {-25.184, -60.178}},
{7, {-5.184, -105.178}, -1.571},
{5, {24.816, 54.822}, 1.571},
{18, {9.816, 84.822}, -1.571},
{18, {29.816, 84.822}, -1.571},
{18, {24.816, 69.822}, 3.142},
{3, {14.816, 64.822}},
{14, {-15.184, -65.178}, 1.571, bindingId=5},
{3, {34.816, 64.822}},
{15, {34.816, 74.822}, bindingId=2},
{6, {-5.184, 114.822}, 1.571, bindingId=1},
{7, {-5.184, -85.178}, -3.142},
{5, {4.816, -95.178}, -1.571},
{5, {-25.184, -95.178}, -1.571},
{5, {34.816, -105.178}, -3.142},
{3, {34.816, -125.178}, -3.142},
{5, {14.816, -125.178}, -1.571},
{5, {-35.184, -115.178}, -3.142},
{18, {24.816, -100.178}},
{18, {4.816, -110.178}},
{18, {-20.184, -105.178}, -1.571},
{18, {-15.184, -120.178}, -3.142},
{18, {-5.184, -120.178}},
{7, {4.816, 94.822}, 1.571},
{6, {14.816, -105.178}, bindingId=1},
{3, {-25.184, -125.178}, 1.571},
{3, {14.816, -115.178}, 1.571},
{3, {24.816, -115.178}, 1.571},
{4, {24.816, 104.822}},
{5, {24.816, 124.822}, 1.571},
{18, {4.816, 109.822}},
{13, {-10.184, 29.822}, 1.571, bindingId=5},
{18, {-30.184, 114.822}, -1.571},
{18, {-25.184, 99.822}, 3.142},
{3, {-35.184, 94.822}},
{3, {-35.184, 104.822}},
{3, {-5.184, 124.822}, -1.571},
{5, {-25.184, 124.822}, 1.571},
{3, {4.816, 124.822}, 3.142},
{22, {-10.184, 99.822}},
{3, {-15.184, 114.822}, 1.571}}}

This is small plant code
[Reveal] Spoiler:
{data={name="Plague Defender", author="Maks", color1=0x373737, wgroup={0, 0, 2, 0}},
blocks={
{1, {-56.958, 5.076}, command={faction=20}},
{5, {-37.876, 5.076}, -1.571},
{14, {32.124, 15.076}, 1.571, bindingId=5},
{22, {-12.876, -9.924}},
{18, {7.124, -4.924}, 1.571},
{3, {2.124, 5.076}, -3.142},
{18, {42.124, -9.924}},
{3, {42.124, -24.924}},
{18, {-22.876, 15.076}, 1.571},
{5, {-37.876, 25.076}, -1.571},
{7, {-37.876, 15.076}, -3.142},
{3, {-47.876, 15.076}},
{3, {-17.876, 25.076}},
{18, {-7.876, 20.076}},
{18, {7.124, 25.076}, 1.571},
{5, {22.124, 15.076}},
{12, {-32.876, -9.924}, bindingId=1},
{3, {22.124, -14.924}},
{18, {17.124, -24.924}, -1.571},
{3, {2.124, -24.924}, -1.571},
{3, {-7.876, -24.924}, -1.571},
{3, {-17.876, -24.924}, -1.571},
{18, {-32.876, -24.924}, 1.571},
{5, {-47.876, -14.924}, 3.142},
{14, {2.124, -14.924}, bindingId=5},
{3, {12.124, -14.924}, -3.142},
{18, {12.124, 10.076}},
{3, {2.124, 15.076}, -3.142},
{5, {42.124, 5.076}, -1.571},
{5, {32.124, -14.924}},
{5, {42.124, 25.076}, -1.571},
{5, {52.124, -14.924}, 3.142},
{18, {47.124, 15.076}, -1.571},
{3, {-17.876, 5.076}},
{14, {-7.876, 5.076}, bindingId=5},
{7, {22.124, -4.924}}}}

But this is not main issue.
Main issue is in the fact that, then i add my custom seed planter WITH seed that have same code and even ident as seed in the spoiler, worlds generate only with big plants(custom plants of my faction, with factory). Seed launcher launches this seed, but it too grows only in big plants. I need seed to grow in small plants with chanced of ~80% and to grow into big plants with chanced of 20%. I tried changing seed launcher's seed to custom than, for idea with ident=30 and everything else same as seed in the spoiler, but then it just can't grow into anything.
Also seed launcher's launched seeds are labeled as drones under my command, If i haven't removed COMMAND feature, so i have to release it(using TAB) in order to make them stick to the asteroirds, otherewise they just follow my like drone. COMMAND feature is needed for it, to be able to choose planted grown plants in command mode and to make big plants fabrics work.

Sorry for bad English, it is not my native language.


Last edited by HunterMaksim on Tue Dec 08, 2015 8:08 am, edited 2 times in total.



Mon Dec 07, 2015 12:50 pm
Profile
User avatar

Joined: Sun Apr 12, 2015 3:13 am
Posts: 283
Reply with quote
Currently, I don't know a way to have a 20%/80% ratio.
BUT, I know how to make seed launcher that make specific blueprint if that work with you.

replicateBlock={ident=1} is the same as replicateBlock=1

To have drone that are selectable, you need to add the variable: "lifetime=0", this will tell the game that they are permanent, like the Spiky Plant.

When you tried to create a new seed, but with a id of 30, the game tried to generate plant with the same basic seed. So if no blueprint have that seed, it won't grow.

_________________
Using Beta, always! (Well, for Reassembly)
(Also known as GATC on Steam)


Tue Dec 08, 2015 1:45 am
Profile

Joined: Mon Dec 07, 2015 12:27 pm
Posts: 4
Reply with quote
Cornebre, thanks for help, your advises are really useful, but problem with seeds launched from the seed launcher is that they behave like drones, and are following me. If they hit environmental, they sometimes plant themselves, and are released automaticly, but i get credits from the plant cost, into that they had grown. I need to release them manually, using TAB, in order to make them behave properly (fly around, trying to plant themselves onto environmental). Releasing them manually is not comfortable.
Main problem is that i have 2 plants with this core, but all seed always grow into 1 of them.


Tue Dec 08, 2015 10:11 am
Profile
User avatar

Joined: Thu Mar 27, 2014 2:30 pm
Posts: 151
Location: The Core!
Reply with quote
Add the AI flag WANDER to your seed block. It will make them seekout blocks with the ENVIRONMENTAL flag.

_________________
The New Terran Republic [http://steamcommunity.com/sharedfiles/filedetails/?id=492719578]
The New Terran Republic V2.0 [http://steamcommunity.com/sharedfiles/filedetails/?id=659890051]


Tue Dec 08, 2015 11:44 am
Profile

Joined: Mon Dec 07, 2015 12:27 pm
Posts: 4
Reply with quote
DarkWingedDaemon, thanks for help!
I changed code to this, but they still follow me and grow only into fabrics (i have two plants, 1 of them is called fabric)
[Reveal] Spoiler: New seed code
{1, command={faction=20, flags=NO_PARENT|WANDER}, shape=SEED_3, name="Seed", features=COMMAND|THRUSTER|GENERATOR|TORQUER|PHOTOSYNTH|SEED|REGROWER, group=20,
points=5, durability=0.500, density=0.150, fillColor=0x20202, fillColor1=65793,
lineColor=0, capacity=500.000, thrusterColor=0x4d4d4d, thrusterColor1=0x4d4d4d,torquerTorque=4000.000, generatorCapacityPerSec=150.000, launchLifetime=30.000, seedLifetime=0.000,photosynthPerSec=20},


Tue Dec 08, 2015 12:39 pm
Profile
User avatar

Joined: Sun Apr 12, 2015 3:13 am
Posts: 283
Reply with quote
If you remove the Thruster and Torque?

_________________
Using Beta, always! (Well, for Reassembly)
(Also known as GATC on Steam)


Tue Dec 08, 2015 5:39 pm
Profile

Joined: Mon Dec 07, 2015 12:27 pm
Posts: 4
Reply with quote
Then it is still has follower flag.


Wed Dec 09, 2015 10:39 am
Profile
User avatar

Joined: Thu Mar 27, 2014 2:30 pm
Posts: 151
Location: The Core!
Reply with quote
Makesure they aren't picking a blueprint that has different command module.

_________________
The New Terran Republic [http://steamcommunity.com/sharedfiles/filedetails/?id=492719578]
The New Terran Republic V2.0 [http://steamcommunity.com/sharedfiles/filedetails/?id=659890051]


Wed Dec 09, 2015 11:13 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 8 posts ] 

Who is online

Users browsing this forum: Majestic-12 [Bot] and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group
Designed by ST Software