Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
Offline Spaceboy  
#1 Posted : Friday, May 18, 2012 11:39:51 AM(UTC)
Spaceboy
Captain
Joined: 5/13/2012(UTC)
Posts: 85
Germany

Thanks: 7 times
i wanna create some upgrades but dunno how i do it.

for example how i can crate an upgrade who stealth my units like glaV can do it for their rebels?

or how i give a building CamoNetting or china mines?


auto upgrade:

how i can give china & gla hq radar without upgrade?

or how i give a building auto CamoNetting even by bulling process?


what is moduletag like why i need it, where are the scripts vor that?
Sponsor
Offline Annihilationzh  
#2 Posted : Friday, May 18, 2012 1:25:54 PM(UTC)
Annihilationzh
General
Joined: 8/2/2008(UTC)
Posts: 1,779
United Kingdom

Thanks: 26 times
Was thanked: 475 time(s) in 331 post(s)
Quote:
for example how i can crate an upgrade who stealth my units like glaV can do it for their rebels?

or how i give a building CamoNetting or china mines?

They're all done by a module in the units/structures themselves.

Quote:
how i can give china & gla hq radar without upgrade?

With a GrantUpgradeCreate Module for China. For GLA, I'd suggest adding this:

Code:
  StartingUnit1     = GLAVehicleRadarVan


Underneath this:

Code:
  StartingUnit0     = GLAInfantryWorker


In the GLA's PlayerTemplate.ini entry.

Quote:
what is moduletag like why i need it,

A ModuleTag is a unique identifier for a module. If they aren't unique, it causes bugs in game.

Quote:
where are the scripts vor that?

I'm sorry, I don't understand what you're asking.

However, there is a full module list here:
http://www.gamefront.com...40/Zero_Hour_Module_List

If that helps at all.
If you need help, post in the forum. You'll get help a lot faster than if you send me a PM.

I reject all buddy requests. I don't think 'buddy' needs to be made official. It's not like you're marrying me.
thanks 1 user thanked Annihilationzh for this useful post.
CommieDog on 12/31/2019(UTC)
Offline Spaceboy  
#3 Posted : Friday, May 18, 2012 2:17:20 PM(UTC)
Spaceboy
Captain
Joined: 5/13/2012(UTC)
Posts: 85
Germany

Thanks: 7 times
i mean a upgade/specalpower use a special moduletag
how i know witch one is needed for witch upgrade/specialpower

can i use any moduletag i want??
i did it sometimes without an error , but usually i keep the moduletag from the specific speclpower. But i wanna crate a new upgrade and make them working, i tried to create toxtunnels who can use camonetting. but after buy the upgrade nothing happend....

if i wanna made an

Grantupgrade for chinas radar
should i use moduletag 14 (chinesradar upgrade)
or some else?


Edit :

Quote:
A ModuleTag is a unique identifier for a module. If they aren't unique, it causes bugs in game.


means i can write Moduletag_125 if i create a new module, because 125 isn´t used by the game and its all fine?

Edited by user Friday, May 18, 2012 3:49:05 PM(UTC)  | Reason: Not specified

Offline Annihilationzh  
#4 Posted : Saturday, May 19, 2012 3:23:56 AM(UTC)
Annihilationzh
General
Joined: 8/2/2008(UTC)
Posts: 1,779
United Kingdom

Thanks: 26 times
Was thanked: 475 time(s) in 331 post(s)
Quote:
i did it sometimes without an error , but usually i keep the moduletag from the specific speclpower. But i wanna crate a new upgrade and make them working, i tried to create toxtunnels who can use camonetting. but after buy the upgrade nothing happend....

Did you copy both of these modules?
Code:
  Behavior = StealthUpdate ModuleTag_17
    StealthDelay                = 2500 ; msec
    StealthForbiddenConditions  = ATTACKING USING_ABILITY TAKING_DAMAGE
    MoveThresholdSpeed          = 3
    InnateStealth               = No ;Requires upgrade first
    OrderIdleEnemiesToAttackMeUponReveal  = Yes
  End

  Behavior = StealthUpgrade ModuleTag_18
    TriggeredBy = Upgrade_GLACamoNetting
  End


Quote:
means i can write Moduletag_125 if i create a new module, because 125 isn´t used by the game and its all fine?

Yes.

It's a lot more free than most think. You could use ModuleBlue_125, NotATag_125, Module99, or anything reasonable. As long as you don't have illegal characters in it, it will work.
If you need help, post in the forum. You'll get help a lot faster than if you send me a PM.

I reject all buddy requests. I don't think 'buddy' needs to be made official. It's not like you're marrying me.
thanks 2 users thanked Annihilationzh for this useful post.
Spaceboy on 5/19/2012(UTC), CommieDog on 12/31/2019(UTC)
Offline Spaceboy  
#5 Posted : Saturday, May 19, 2012 8:52:06 AM(UTC)
Spaceboy
Captain
Joined: 5/13/2012(UTC)
Posts: 85
Germany

Thanks: 7 times
2 questins.

1:

i tried to create a second building commandset for my dozer, its not working. dunno why.

i used the gla fakebuilding commandsetswitch as draft.

So i created 1 new commanset in the commandset.ini
2 new buttons switch to 1 or to 2.
2 new upgrades for switching
and copied this

to the dozer

renamed everything, but if i wanna use the button ingame it says "you can´t buy this upgrade"
miss i anything? where is my mistake?

2: can i do this on a same way for the shortcuts, if i have more then 12 ubilitys?
or can i crate a shortcutbutton who select the commandsenter?

Edited by user Saturday, May 19, 2012 9:08:47 PM(UTC)  | Reason: Not specified

Offline acidbrain  
#6 Posted : Sunday, May 20, 2012 2:07:49 AM(UTC)
acidbrain
General
Joined: 12/30/2011(UTC)
Posts: 982

Thanks: 95 times
Was thanked: 574 time(s) in 364 post(s)
1.Try this:
Used America as an example in the code.

When you use one of the the switchbuttons to the second or back to the first commandset an object is released which removes the upgrade so you can use it again.

2. The method as above needs and object to function properly and in the shortcutbuttons at the side of the screen you don't use an object.
I think it's possible but you have to make the switch to another set of shortcuts in a building, for example in the CommandCenter with a button to switch to the second shortcutcommandset and a button to switch back of course.
But maybe someone else has a better solution for it...:P

Hope i was a bit of a help for you..

Greetz, acidbrain

Edited by user Sunday, May 20, 2012 2:09:28 AM(UTC)  | Reason: Not specified

Panem et kirkinses
Offline Annihilationzh  
#7 Posted : Sunday, May 20, 2012 4:48:36 AM(UTC)
Annihilationzh
General
Joined: 8/2/2008(UTC)
Posts: 1,779
United Kingdom

Thanks: 26 times
Was thanked: 475 time(s) in 331 post(s)
Acidbrain, where did you get that workaround?

It sounds like something from the pre-zero hour era.

Quote:
renamed everything, but if i wanna use the button ingame it says "you can´t buy this upgrade"
miss i anything? where is my mistake?

Nothing is immediately apparent.

I would have to see the full code to have any idea. I've never had any trouble with switching commandsets before.

Edited by user Sunday, May 20, 2012 4:50:28 AM(UTC)  | Reason: Not specified

If you need help, post in the forum. You'll get help a lot faster than if you send me a PM.

I reject all buddy requests. I don't think 'buddy' needs to be made official. It's not like you're marrying me.
Offline acidbrain  
#8 Posted : Sunday, May 20, 2012 4:53:55 AM(UTC)
acidbrain
General
Joined: 12/30/2011(UTC)
Posts: 982

Thanks: 95 times
Was thanked: 574 time(s) in 364 post(s)
Originally Posted by: Annihilationzh Go to Quoted Post
Acidbrain, where did you get that workaround?

It sounds like something from the pre-zero hour era.


Used this method in vanilla Generals, didn't use it in ZH yet...that's why...
It works in Generals though...
I din't mod ZH much, only worked with Vanilla Generals...
If you have a better way...do tell...:P

Edited by user Sunday, May 20, 2012 4:56:44 AM(UTC)  | Reason: Not specified

Panem et kirkinses
Offline Annihilationzh  
#9 Posted : Sunday, May 20, 2012 5:04:21 AM(UTC)
Annihilationzh
General
Joined: 8/2/2008(UTC)
Posts: 1,779
United Kingdom

Thanks: 26 times
Was thanked: 475 time(s) in 331 post(s)
Spotted something suspicious...

Quote:
2 new upgrades for switching

Never create new upgrades when you can use the existing upgrades. I suspect this might be related to the problem.
If you need help, post in the forum. You'll get help a lot faster than if you send me a PM.

I reject all buddy requests. I don't think 'buddy' needs to be made official. It's not like you're marrying me.
Offline Spaceboy  
#10 Posted : Sunday, May 20, 2012 7:28:37 AM(UTC)
Spaceboy
Captain
Joined: 5/13/2012(UTC)
Posts: 85
Germany

Thanks: 7 times
Quote:
I would have to see the full code to have any idea.]


i deleted the code after i t didn't work, now i wrote it on the same way again and its still working ^^

so 2: is there any way to select HQ witch a shortcut?

off topics:
who i get the name of the images out?
i wanna use the commander in chief picture for random in online mode for my army how i con do it?
GPS pictures, the are 3 with one two and three circle´s. how are they named?

HQ:
can i create a USA HQ witch a nuke sign or tank on it?

Edit:

NapalmMig:

i made new migs the have 5 clips now, but i created 2 new weapons(i wanna use the original by other migs)
so i have this code:
generals.ini


and
weapon.ini


but my napalm doesn´t burn after hiting 8 times whats frong there

Edit:
i wanna create a specialpower who requires an upgrade. So i wanna see my button after buying the upgrade and my spcialpower & upgrade are still working. But i can´t create a condition for that and i need help again :).

all thies points aren´t so important but i would be nice, if all works =)

Edit :should i create a new thread for offtopics?

Edited by user Tuesday, May 22, 2012 7:19:40 AM(UTC)  | Reason: Not specified

Offline Mohsen  
#11 Posted : Sunday, December 8, 2019 3:26:38 PM(UTC)
Mohsen
Private
Joined: 12/7/2019(UTC)
Posts: 3

Nuke i created a new upgrade in my game pm mod weapon set upgrade
To b2 bomber but the upgrade is unavailable in the bomber
Can you help me with this please?

Offline AdrianeMapMaker  
#12 Posted : Sunday, December 8, 2019 9:56:23 PM(UTC)
AdrianeMapMaker
General
C&C Labs Staff: Labs Staff MemberMaps Staff: Maps Staff Member
Joined: 3/8/2016(UTC)
Posts: 1,156
Philippines

Thanks: 312 times
Was thanked: 185 time(s) in 149 post(s)
Probably you forgot adding productionupdate module
Iirc it is required on object that use upgrades
A part of ZH worldbuilders map making community
https://discord.gg/tJ6zyGb

UserPostedImage





Offline Mohsen  
#13 Posted : Sunday, December 8, 2019 11:07:26 PM(UTC)
Mohsen
Private
Joined: 12/7/2019(UTC)
Posts: 3

Originally Posted by: adrianemapmaker Go to Quoted Post
Probably you forgot adding productionupdate module
Iirc it is required on object that use upgrades


haw i can add it ?




this is codes i have been add it
;-----------------------------------------------------------
WeaponSet
Conditions = PLAYER_UPGRADE
Weapon = PRIMARY EuKFnukeBombWeapon2B2
PreferredAgainst = PRIMARY VEHICLE STRUCTURE
AutoChooseSources = PRIMARY FROM_PLAYER FROM_SCRIPT FROM_AI
End


Behavior = WeaponSetUpgrade ModuleTag_03
TriggeredBy = Upgrade_EuKFnukeBombWeapon2B2
End

Behavior = CommandSetUpgrade ModuleTag_25
CommandSet = AmericaJetRaptorCommandSet
TriggeredBy = Upgrade_EuKFnukeBombWeapon2B2
End

;--------------------------------------------------------------------
CommandButton Command_EuKFnukeBombWeapon2B2
Command = OBJECT_UPGRADE
Upgrade = Upgrade_EuKFnukeBombWeapon2B2
Options = OK_FOR_MULTI_SELECT NOT_QUEUEABLE
TextLabel = CONTROLBAR:EuKFnukeBombWeapon2B2
ButtonImage = nuclearsymbol
ButtonBorderType = UPGRADE ; Identifier for the User as to what kind of button this is
DescriptLabel = CONTROLBAR:EuKFnukeBombWeapon2B2
End
;----------------------------------------------------------------------
Upgrade Upgrade_EuKFnukeBombWeapon2B2
Type = OBJECT
BuildTime = 50.0
BuildCost = 10000
ButtonImage = nuclearsymbol
UnitSpecificSound = OverlordExpansion
End
;----------------------------------------------------------------------
CommandSet AmericaJetCommandSet
10 = Command_GuardFlyingUnitsOnly
11 = Command_AttackMove
12 = Command_EuKFnukeBombWeapon2B2
13 = Command_Guard
14 = Command_Stop
End
;----------------------------------------------------------------------

Edited by user Sunday, December 8, 2019 11:26:24 PM(UTC)  | Reason: Not specified

Offline AdrianeMapMaker  
#14 Posted : Monday, December 9, 2019 1:28:46 AM(UTC)
AdrianeMapMaker
General
C&C Labs Staff: Labs Staff MemberMaps Staff: Maps Staff Member
Joined: 3/8/2016(UTC)
Posts: 1,156
Philippines

Thanks: 312 times
Was thanked: 185 time(s) in 149 post(s)
i am talking about this module - try and copy paste it to your object


Behavior = ProductionUpdate ModuleTag_25
MaxQueueEntries = 1; So you can't build multiple upgrades in the same frame
End
A part of ZH worldbuilders map making community
https://discord.gg/tJ6zyGb

UserPostedImage





thanks 1 user thanked AdrianeMapMaker for this useful post.
CommieDog on 12/31/2019(UTC)
Offline Mohsen  
#15 Posted : Monday, December 9, 2019 10:33:19 AM(UTC)
Mohsen
Private
Joined: 12/7/2019(UTC)
Posts: 3

Thanks bro it's my first time doing a new upgrade
Offline AdrianeMapMaker  
#16 Posted : Tuesday, December 10, 2019 6:13:36 AM(UTC)
AdrianeMapMaker
General
C&C Labs Staff: Labs Staff MemberMaps Staff: Maps Staff Member
Joined: 3/8/2016(UTC)
Posts: 1,156
Philippines

Thanks: 312 times
Was thanked: 185 time(s) in 149 post(s)
No problem happy to help
A part of ZH worldbuilders map making community
https://discord.gg/tJ6zyGb

UserPostedImage





Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.