Page 1 of 1

Looking for a new Research Center Gadget

Posted: 11 Jan 2012, 03:31
by Senna
i post this:

GRES(14,0,0);

00 ERES(2,10000,3000,5,3,RES_ED_WCH1,NULL,1,EDWCH1,0,0,1);
01 ERES(2,10000,3000,5,3,RES_ED_WCH2,NULL,1,EDWCH2,0,1,0,2);
02 ERES(2,10000,3000,5,4,RES_ED_WCA1,NULL,1,EDWCA1,1,0,3);
03 ERES(2,10000,3000,5,4,RES_ED_WCA2,NULL,1,EDWCA2,1,1,2,4);
04 ERES(2,10000,5000,10,7,RES_ED_WHC1,NULL,1,EDWHC1,1,1,3,5);
05 ERES(2,10000,5000,10,5,RES_ED_WHC2,NULL,1,EDWHC2,1,1,4,6);
06 ERES(2,10000,7000,10,14,RES_ED_WART,NULL,1,EDWART,1,1,5,7);
07 ERES(2,10000,10000,10,17,RES_ED_LRL,NULL,1,EDWLRL,1,1,25,8);
08 ERES(2,10000,3000,5,4,RES_ED_WSR1,NULL,1,EDWSR1,0,0,9);
09 ERES(2,10000,3000,5,4,RES_ED_WSR2,NULL,1,EDWSR2,0,1,8,10);
10 ERES(2,10000,3000,5,4,RES_ED_WSR3,NULL,1,EDWSR3,0,1,9,11);
11 ERES(2,10000,3000,5,4,RES_ED_ASR1,NULL,1,EDWAR1,0,1,8,12);
12 ERES(2,10000,3000,5,4,RES_ED_ASR2,NULL,1,EDWAR2,0,1,11,13);
13 ERES(2,10000,3000,5,4,RES_ED_UST1,NULL,0,EDUST1,1,0,0);

This is a hack data from the game earth2150, and uses the same excell system, wich is easy to add stuff or modify etc.
if we look at the list GRES is a building Research center wich enable the list , the number 14 inside ( means the number of research list that ERES want to search, then we look at this

(2,10000,3000,5,3,RES_ED_WCH1,NULL,1,EDWCH1,0,0,1);

the number 2 is the side wich u want that research, the numbers 10.000 and 3.000 is the energy and metal u want them to be researched, the number 5 is the time [in minutes] u want this research to be done, the RES_ED_WCH1 is the unit fbi u want to be researched.
the number 1 betwen NULL and EDWCH1 is the command list where u want the research appear, in units, weapons, ammo or special, the EDWCH1 is the picture u want to appear on research.

Now comes the most important part that were u want the research be located before or after what u want to.

the first number 0 means the size of the picture, EDWCH1 the second and third numbers are very important

00 ERES(2,10000,3000,5,3,RES_ED_WCH1,NULL,1,EDWCH1,0,0,1);
01 ERES(2,10000,3000,5,3,RES_ED_WCH2,NULL,1,EDWCH2,0,1,0,2);
02 ERES(2,10000,3000,5,4,RES_ED_WCA1,NULL,1,EDWCA1,1,0,3);
03 ERES(2,10000,3000,5,4,RES_ED_WCA2,NULL,1,EDWCA2,1,1,2,4);
04 ERES(2,10000,5000,10,7,RES_ED_WHC1,NULL,1,EDWHC1,1,1,3,5);
05 ERES(2,10000,5000,10,5,RES_ED_WHC2,NULL,1,EDWHC2,1,1,4,6);
06 ERES(2,10000,7000,10,14,RES_ED_WART,NULL,1,EDWART,1,1,5,7)

as we see the second line EDWCH2 it has 4 terminal numbers instead of 3. the last number is the ID of the research 1 it has ID 0 2 it has 1 , 3 it has 2 etc.. the second number after EDWCH2 is 1, means that ID need other ID before that start researching and where to locate that EDWCH2? well thats the third number does wich is 0 so the EDWCH2 is located after EDWCH1. lets see the third line on EDWCA1. the second number after that is 0, means that ID start being researched from scratch
now we look four line after EDWCA2 its located after EDWCA1
EDWHC1 is located after EDWCA2, EDWHC2 after EDWHC1 and EDWART after EDWHC2

Each ID done gets enabled on factory, if it has an upgrade the old unit disapear and get upgraded by new.

Im looking for a research gadget close like this pls if someone can would be a great help

Re: Looking for a new Research Center Gadget

Posted: 11 Jan 2012, 04:54
by Super Mario
Is this for tech annihilation.

Re: Looking for a new Research Center Gadget

Posted: 11 Jan 2012, 05:29
by smoth
I would never write a research config like that, it would be a nightmare to maintain.

Re: Looking for a new Research Center Gadget

Posted: 11 Jan 2012, 15:28
by Senna
Super Mario wrote:Is this for tech annihilation.
no is not for Tech Annihilation, its for a new mod gameplay im designing

Re: Looking for a new Research Center Gadget

Posted: 11 Jan 2012, 15:28
by Senna
smoth wrote:I would never write a research config like that, it would be a nightmare to maintain.
Why? :(

Re: Looking for a new Research Center Gadget

Posted: 11 Jan 2012, 15:40
by smoth
Why woul I not?

Or

Why is it a nightmare to maintain?

Re: Looking for a new Research Center Gadget

Posted: 11 Jan 2012, 19:02
by knorke
I think this is the only tech gadget that is really c&p-able:
http://springrts.com/phpbb/viewtopic.php?f=23&t=20680

Re: Looking for a new Research Center Gadget

Posted: 11 Jan 2012, 20:07
by zwzsg
I think Senna knows of them.

But I've grown tired of him asking me to help him improve them because he feigns trying to learn Lua when he's just tricking me into getting so irritated I end up writing everything myself.

I mean, first I'd rather spend my evenings coding for Cursed/GRTS/EvoRTS/etc.. than for a smallish *A mod. But mostly, I feel fooled when I realise he keeps asking me tons of questions about my code not because he's trying to understand it, but because he's working on exhausting me until I give up explaining down to the numbest details and just type the damn thing.

While the version 5 & 6 of my tech gadget are complex and very hard to understand, the version 1, 2, 3 were intentionnaly left simple and clear enough that people should be able to get the idea of how they work and modify them to suit their own need.

So, while I could provide limited support on advanced version of my tech gadget, there's got to be some point at which you're supposed to realise that opening the file in Notepad++ and staring at the ~80 lines inside until you grok will prove more beneficial on the long term.

Re: Looking for a new Research Center Gadget

Posted: 11 Jan 2012, 20:10
by smoth
senna trolls you into helping him LOL

Re: Looking for a new Research Center Gadget

Posted: 11 Jan 2012, 20:11
by zwzsg
The sad thing is that it worked for so long. :cry:

Re: Looking for a new Research Center Gadget

Posted: 11 Jan 2012, 20:13
by smoth
Happens. At least you don't know me IRL. I troll constantly in IRL.. man that is a shame, I could have so much done in gundam if I knew you IRL..

Re: Looking for a new Research Center Gadget

Posted: 12 Jan 2012, 22:24
by Forboding Angel
Senna, use z's tech gadget. You can do just about anything with it.
zwzsg wrote:The sad thing is that it worked for so long. :cry:
Gah, what a jerk.


WRT to tech gadget, did you ever fix the "taking away" tech? As in, this area gives +10 weebles, but this structure takes away -6 weebles, leaving a total of 4 weebles available?

Re: Looking for a new Research Center Gadget

Posted: 13 Jan 2012, 18:42
by Senna
Forboding Angel wrote:Senna, use z's tech gadget. You can do just about anything with it.
The tech gadgets from Zwzsg are good but they cannot do that, they enable disable stuff by building stuff but wont make a res tree

Re: Looking for a new Research Center Gadget

Posted: 13 Jan 2012, 19:09
by Forboding Angel
You most certainly can make a research tree out of it. Use your brain.

Re: Looking for a new Research Center Gadget

Posted: 13 Jan 2012, 19:47
by smoth
Senna wrote:The tech gadgets from Zwzsg are good but they cannot do that, they enable disable stuff by building stuff but wont make a res tree
*snicker*
Image