Posted by: Diagoras55 - Saturday, March 16, 2013 11:59:35 AM
Hi there!
I've tried to recrut the CIA Agent in the America barracks, but when i put the commandset with the correct name ( I check it in AmerciaMiscUnit.ini), the game crash.
So what's wrong?
Moreover, i read the topic on this site to give a GLA Special Power to the USA for example, here i wanted to give the GP Scrambler to the USA.
I did everything in the topic: "http://cnclabs.com/modding/generals/creating-a-new-generals-power.aspx"
But the game crash, it doesn't work.
I'm using Zero Hour version.
Thank you Guys!
Posted by: Annihilationzh - Saturday, March 16, 2013 12:37:00 PM
[quote]I've tried to recrut the CIA Agent in the America barracks, but when i put the commandset with the correct name ( I check it in AmerciaMiscUnit.ini), the game crash.
So what's wrong?[/quote]
Did you type it manually or copy/paste it? The game does not like typos, and that will cause a crash.
I'm also suspicious that you have made no mention of CommandButton.ini, which is an essential step in this process.
[quote]Moreover, i read the topic on this site to give a GLA Special Power to the USA for example, here i wanted to give the GP Scrambler to the USA.
I did everything in the topic: "http://cnclabs.com/modding/generals/creating-a-new-generals-power.aspx"
But the game crash, it doesn't work.
I'm using Zero Hour version.[/quote]
Would you please you post the code you wrote? I'm afraid I'm not psychic.
Posted by: Diagoras55 - Saturday, March 16, 2013 12:56:13 PM
[url]http://cnclabs.com/modding/generals/creating-a-new-generals-power.aspx[/url]
This one?
Ok but it's only in CommandButtons i have to do something?
Posted by: Annihilationzh - Saturday, March 16, 2013 1:06:22 PM
[quote]http://cnclabs.com/modding/gene...-new-generals-power.aspx
This one?[/quote]
There is nothing wrong with the tutorial. I'm talking about the code you wrote whilst trying to follow the tutorial.
[quote]Ok but it's only in CommandButtons i have to do something?[/quote]
Create a production command button for the unit in CommandButton.ini then place it in the CommandSet.ini entry for the US barracks.
Posted by: Diagoras55 - Saturday, March 16, 2013 1:24:24 PM
I don't understand what you mean by "code"?
Posted by: Annihilationzh - Saturday, March 16, 2013 2:02:17 PM
This is the code used by the tutorial to create a new science:
[code]Science SCIENCE_GLAArtilleryBarrage1
PrerequisiteSciences = SCIENCE_GLA SCIENCE_Rank3
SciencePurchasePointCost = 1
IsGrantable = Yes
DisplayName = SCIENCE:ChinaArtilleryBarrage
Description = CONTROLBAR:ToolTipChinaScienceArtilleryBarrage
End
Science SCIENCE_GLAArtilleryBarrage2
PrerequisiteSciences = SCIENCE_GLAArtilleryBarrage1 SCIENCE_Rank3
SciencePurchasePointCost = 1
IsGrantable = Yes
DisplayName = SCIENCE:ChinaArtilleryBarrage2
Description = CONTROLBAR:ToolTipChinaScienceArtilleryBarrage
End
Science SCIENCE_GLAArtilleryBarrage3
PrerequisiteSciences = SCIENCE_GLAArtilleryBarrage2 SCIENCE_Rank3
SciencePurchasePointCost = 1
IsGrantable = Yes
DisplayName = SCIENCE:ChinaArtilleryBarrage3
Description = CONTROLBAR:ToolTipChinaScienceArtilleryBarrage
End[/code]
What did you do whilst trying to add the GPS scrambler to the USA?
Posted by: Diagoras55 - Saturday, March 16, 2013 2:23:17 PM
Ok! But I delete all the file because it didn't work... :(
Posted by: Diagoras55 - Saturday, March 16, 2013 4:46:19 PM
I was sure to have done it correctly! Has he made a mistake in the topic? Could you check it?
Posted by: Annihilationzh - Saturday, March 16, 2013 5:51:35 PM
It is a long tutorial that is not in your native language, and you had to adapt it to the GPS Scrambler. This is not an easy feat.
As for the tutorial, I have carefully read it (twice) and have found no mistakes.
It is an official C&C labs tutorial that is likely upwards of 8 years old. At the time it was written, I expect it was checked over by multiple INI coders to keep to C&C lab's quality standards.
Posted by: Diagoras55 - Saturday, March 16, 2013 7:08:35 PM