Alrighty, so I've got Research all fixed up (finally) in Cam 4. Minus one thing:
Cyborgs.
I was under the impression that since addTemplate() was dangerous in general (and really shouldn't be used), I'm doing it the proper way by enableResearch() .. Sure enough the Cyborgs appear in the Research list as they should. *BUT* they don't show up in the Cyborg Factory in the build list afterwards.
Are Cyborgs added an additional way, besides researching them?
Another problem with Cyborgs in the script...
-
Goth Zagog-Thou
- Regular

- Posts: 1582
- Joined: 06 Jan 2007, 08:08
- Location: Delta Base
-
Berg
- Regular

- Posts: 2204
- Joined: 02 Sep 2007, 23:25
- Location: Australia
Re: Another problem with Cyborgs in the script...
research a heavy gunner cyborg ...bingo it shows up in the factory list ?
Unless you have to upgrade for advanced units like the tank factory?
Unless you have to upgrade for advanced units like the tank factory?
-
Goth Zagog-Thou
- Regular

- Posts: 1582
- Joined: 06 Jan 2007, 08:08
- Location: Delta Base
Re: Another problem with Cyborgs in the script...
That's how it's *supposed* to be. Research it, bam -- you have the Cyborg.
Upgrades to Cyborg Factories are (according to names.txt) not used anymore -- maybe I should look again.
Upgrades to Cyborg Factories are (according to names.txt) not used anymore -- maybe I should look again.
-
Mysteryem
- Global Moderator

- Posts: 728
- Joined: 22 Sep 2008, 19:44
- Location: UK
Re: Another problem with Cyborgs in the script...
In order to have a research topic enable a template. You must set the body of the template to be undesignable (does not show up in design menu even when researched) in stats/body.txt (set last value to 0). When researching that body, if there are any templates given to the player which use this body (YES as opposed to NO in templates.txt), it will be made available upon research completion.
Each of the cyborgs use this (researching the weapon unlocks both the tank/vtol variety and the cyborg one at the same time). The cyborg transport works in the same way, where its body is TransporterBody, this is undesignable, and when researched, it enables the template for the player that researched it.
templates.txt
body.txt
resultcomponent.txt
research.txt
prresearch.txt
Each of the cyborgs use this (researching the weapon unlocks both the tank/vtol variety and the cyborg one at the same time). The cyborg transport works in the same way, where its body is TransporterBody, this is undesignable, and when researched, it enables the template for the player that researched it.
templates.txt
Code: Select all
Transporter,278,TransporterBody,ZNULLBRAIN,ZNULLCONSTRUCT,ZNULLECM,YES,V-Tol,ZNULLREPAIR,TRANSPORTER,DefaultSensor1Mk1,1
Code: Select all
TransporterBody,Level All,MEDIUM,325,637,250,200,drcytran.pie,100,1,2000,20,9,20,9,20,9,20,9,20,9,20,9,0,0Code: Select all
R-Cyborg-Transport,TransporterBody,BODY,0,0,2Code: Select all
R-Cyborg-Transport,Level All,0,0,IMAGE_RES_CYBORGTECH,0,0,RES_CYTRANS,0,TransporterBody,BODY,3600,1,2,0,0,0,0,0,1Code: Select all
R-Cyborg-Transport,R-Struc-Factory-Cyborg,1081
R-Cyborg-Transport,R-Struc-VTOLFactory,1081"...If pure awesomeness were bricks, this would be the Great Wall of China...
The glory of this has collapsed on its self so far, that even the neutrons have collapsed."
The glory of this has collapsed on its self so far, that even the neutrons have collapsed."
-
Goth Zagog-Thou
- Regular

- Posts: 1582
- Joined: 06 Jan 2007, 08:08
- Location: Delta Base
Re: Another problem with Cyborgs in the script...
I think I understand now. Thanks Mys.