|
|
Last post 10-14-2009, 4:31 PM by kjn. 14 replies.
-
 |
|
 |
|
Subject:
Question on techtreey.xml
I'm wondering what the following effect subtypes do in techtreey.xml, if someone more experienced with tinkering the file can help: For the Indian Call to Arms card, it uses the SetOnBuildingDeathTech. I can see that it sets both ypSpawnIrregulars (ships one irregular) and ypSpawnPeasants (ships one sentry), but I have no idea what the amounts mean. I'm thinking that it would ship one sentry and up to 100 irregulars, but I cold be wrong. Anyone with an idea on what this does? For reference, here's the XML code: <Effect type="SetOnBuildingDeathTech" amount="0.00" amount2="100.00">ypSpawnIrregulars</Effect> <Effect type="SetOnBuildingDeathTech" amount="1.00" amount2="0.00">ypSpawnPeasants</Effect>
|
|
|
|
|
|
|
 |
|
 |
-
 |
|
 |
|
Subject:
Re: Question on techtreey.xml
kelvSYC,
As I don't play TAD..My apologies for not being able to offer better assistance..
I'm not real familiar with the techs or the codes that involve this game version..All I can suggest is..Play a single player skirmish and use this tech and that should help you out with how this tech performs and maybe make it more understandable to what is coded in your techtree as you've posted above..
Regarding the code in your post..Is that the entire entry?.That is..As it shows In your techtree.
Regards
|
|
|
|
|
|
|
 |
|
 |
-
 |
|
 |
|
Subject:
Re: Question on techtreey.xml
I have a copy of the typtest for TAD..
The following is your complete code for the tech you've mentioned.
</Tech> <Tech name ='YPHCCalltoArms1' type ='Normal'> <DBID>4351</DBID> <DisplayNameID>63249</DisplayNameID> <Cost resourcetype ='Ships'>1.0000</Cost> <ResearchPoints>40.0000</ResearchPoints> <Status>UNOBTAINABLE</Status> <Icon>ui\home_city\HC_call_to_arms_icon_64</Icon> <RolloverTextID>63248</RolloverTextID> <Flag>YPIgnorePopCostBuildLimitFreeHCUnitIfTechObtainable</Flag> <Flag>HomeCity</Flag> <Effects> <Effect type ='TextOutput'>63251</Effect> <Effect tech ='ypFreeIndianVillager' type ='Data' amount ='1.00' subtype ='FreeHomeCityUnitIfTechObtainable' unittype ='ypSettlerIndian' relativity ='Absolute'> <Target type ='Player'></Target></Effect> <Effect type ='SetOnBuildingDeathTech' amount ='0.00' amount2 ='100.00'>ypSpawnIrregulars</Effect> <Effect tech ='ypFreeIndianSepoy' type ='Data' amount ='2.00' subtype ='FreeHomeCityUnitIfTechObtainable' unittype ='ypSepoy' relativity ='Absolute'> <Target type ='Player'></Target></Effect> <Effect type ='SetOnBuildingDeathTech' amount ='1.00' amount2 ='0.00'>ypSpawnPeasants</Effect> </Effects> </Tech>
As I'm reading this.. I notice.."free units"..and references to a limited lifespan?.Or..Limit to what is free?
|
|
|
|
|
|
|
 |
|
 |
-
 |
|
 |
|
Subject:
Re: Question on techtreey.xml
I posted you another post..It is being moderated..Hopefully it will be posted soon?????
Regards
|
|
|
|
|
|
|
 |
|
 |
-
-
 |
|
 |
|
 |
|
max2h  |
|
|
|
Member |
|
around the bend, eating a ricola. |
|
 |
|
|
|
|
|
|
|
|
|
Subject:
Re: Question on techtreey.xml
kelvSYC:I'm wondering what the following effect subtypes do in techtreey.xml, if someone more experienced with tinkering the file can help: For the Indian Call to Arms card, it uses the SetOnBuildingDeathTech. I can see that it sets both ypSpawnIrregulars (ships one irregular) and ypSpawnPeasants (ships one sentry), but I have no idea what the amounts mean. I'm thinking that it would ship one sentry and up to 100 irregulars, but I cold be wrong. Anyone with an idea on what this does? For reference, here's the XML code: <Effect type="SetOnBuildingDeathTech" amount="0.00" amount2="100.00">ypSpawnIrregulars</Effect> <Effect type="SetOnBuildingDeathTech" amount="1.00" amount2="0.00">ypSpawnPeasants</Effect>
Excuse me if i interpreted the question wrong, but if you are asking how to change the amounts, you must find the actual tech found deeper in the techtreey file. What you are moderating, is just setting the tech for that civ on or off m2h
|
|
|
|
|
|
|
 |
|
 |
-
 |
|
 |
|
Subject:
Re: Question on techtreey.xml
I'm wondering what amount and amount2 mean. I am aware that to actually change the shipping of irregulars and sentries would mean that I would have to change the two techs themselves. I highly doubt it's just a boolean switch, though.
|
|
|
|
|
|
|
 |
|
 |
-
 |
|
 |
|
Subject:
Re: Question on techtreey.xml
I don't think those amounts refer to what you're thinking..(Not sure )..They could be referring to something else..I posted you last night the entire code for this tech and illustrated some hints and hunches..Unfortunatly it's under moderation..Probably because of all the code in my post..
It's a pity..That it takes so damn long to get a post moderated and approved around here!
Regards
|
|
|
|
|
|
|
 |
|
 |
-
 |
|
 |
|
 |
|
max2h  |
|
|
|
Member |
|
around the bend, eating a ricola. |
|
 |
|
|
|
|
|
|
|
|
|
Subject:
Re: Question on techtreey.xml
kjn:I don't think those amounts refer to what you're thinking..(Not sure )..They could be referring to something else..I posted you last night the entire code for this tech and illustrated some hints and hunches..Unfortunatly it's under moderation..Probably because of all the code in my post.. It's a pity..That it takes so damn long to get a post moderated and approved around here! Regards
I have to agree with you about the amount sit. Lol they never approve moderation posts (at least mine here),
|
|
|
|
|
|
|
 |
|
 |
-
-
 |
|
 |
|
Subject:
Re: Question on techtreey.xml
To whom ever cares around here..
What's up with my post thats under moderation?
By the time this poor guy gets to see it..
He'll be old with kids and a beer gut and bitter towards life!
|
|
|
|
|
|
|
 |
|
 |
-
 |
|
 |
|
 |
|
max2h  |
|
|
|
Member |
|
around the bend, eating a ricola. |
|
 |
|
|
|
|
|
|
|
|
|
Subject:
Re: Question on techtreey.xml
u put a non-img picture in it? Whenever I do that, it has the "moderation approval required" thing or whatever. Also, instead of making a rrrreeeeeaaaaalllllllllyyy long post, make 2 posts. I think theres a word limit. Here's my opinion. All the moderation approvals, go into the 
|
|
|
|
|
|
|
 |
|
 |
-
 |
|
 |
|
Subject:
Re: Question on techtreey.xml
Thanks max2h,
All I posted was the complete code of the tech for the guy in the techtreey.xml..I added a few hints and explainations..Nothing huge..The last post I had moderated..It took three weeks..That was a long time ago too..This really sucks big time!
|
|
|
|
|
|
|
 |
|
 |
-
-
 |
|
 |
|
Subject:
Re: Question on techtreey.xml
max2h:Yea sometimes I get some moderation approval required notices at random too. It is kinda sad.
It's pathetic..Your given no explaination as to why or how long it will take..It makes it very hard to help people when you give them Good answers and the post doesn't appear for weeks..By that time..The poor guy that is expecting help has given up or has gone someplace else..That's one of the reasons why we cannot hold new designers around here..They get fed up and leave..Now that's great support!
Maybe I should just start posting +1, WTF and fail messages????
|
|
|
|
|
|
|
 |
|
 |
|
|
|