Jump to content


Photo

My coding problems


  • Please log in to reply
14 replies to this topic

#1 King of Universe

King of Universe

    It is in our most dire needs, that we do our greatest deeds...

  • Hosted
  • 878 posts
  • Location:Norway
  • Projects:Hero Mod

Posted 21 September 2005 - 01:57 PM

I thought I would make a topic with all of my issues.
So maybe some good soules could help me... :p

Nr.1
My General Washington into President Washington problem
The topic with my problem

Nr.2
I have made another formation for the musketeers.
The button is in-game, but when I press it, only the button changes, nothing else.
When I try to press the button again, nothing happens at all...(Fixed)

Nr.3
When the Musketeer fires, it comes a bullet, but when it hits the targets a arrow sticks out...

I will post more as I encounter them :D

Edited by King of Universe, 28 September 2005 - 06:23 PM.

Posted Image


Frodo: I wish the Ring had never come to me... I wish none of this had happened...
Gandalf: So do all who live to see such times, but that is not for them to decide. All you have to decide, is what to do with the time that is given to you...

Click me

#2 TKelly

TKelly

    §§§§§§§§§§§§→↑←§§§§§§§§§§§

  • Members
  • 841 posts
  • Projects:The Hobbit Expansion Pack

Posted 25 September 2005 - 10:19 PM

I can most definetly help with Nr.2, post the codes, and I'll tell you what's wrong
Posted Image

My Modding Homepage
The Hobbit Forum
Don't make fun of how low my graphics are, my computer doesn't even meet system requirements

#3 King of Universe

King of Universe

    It is in our most dire needs, that we do our greatest deeds...

  • Hosted
  • 878 posts
  • Location:Norway
  • Projects:Hero Mod

Posted 27 September 2005 - 01:13 PM

The codes:

americahordes.ini
;---------------------------------------------------------
ChildObject AmericaMusketeerHordeWedgeFormation AmericaMusketeerHorde

; Note - for alternate formations, all info outside of the Contain Behavior module is ignored.
; Any modifications need to be done via the Attribute Modifiers in the contain module.  
	Behavior = HordeContain ModuleTag_HordeContain
  ObjectStatusOfContained = 
  InitialPayload = AmericaMusketeer 5
  Slots = 5
  PassengerFilter = NONE +INFANTRY
  ShowPips = No
  ThisFormationIsTheMainFormation = No;Used to determine which armorset to use (and anything else we want!)
  RandomOffset = X:5 Y:3
  
	; Banner Carrier info  
  BannerCarriersAllowed	= GondorBanner       	 ; types of units that are allowed as banner carriers
  BannerCarrierPosition	= UnitType:AmericaMusketeer  Pos:X:0.0 Y:0.0	; (DEFAULT) position of banner carrier

  RandomOffset = X:2 Y:2
  RankInfo = RankNumber:1 UnitType:AmericaMusketeer   Position:X:5 Y:10   Position:X:10 Y:5   Position:X:5 Y:-5   Position:X:5 Y:-15   Position:X:10 Y:-5   

	; Normal formations
  ComboHorde = Target:AmericaMusketeerHorde 	 Result:AmericaMusketeerHorde	InitiateVoice:GondorArcherVoiceJoinAnybody
    
	; Alternate formations
  ComboHorde = Target:AmericaMusketeerHordeWedge      Result:AmericaMusketeerHorde	InitiateVoice:GondorArcherVoiceJoinAnybody  
  RanksToReleaseWhenAttacking = 1
  AlternateFormation = AmericaMusketeerHorde
  AttributeModifiers = AmericaMusketeerWedge

	; Example of Eva event for horde death
	;EvaEventLastMemberDeath = ArchersDie; Play this Eva event when the last member dies
	End
End

commandbutton.ini
CommandButton Command_ToggleFormationAmericaMusketeer
	Command  	= HORDE_TOGGLE_FORMATION;;America Musketeer
	Options  	= TOGGLE_IMAGE_ON_FORMATION OK_FOR_MULTI_SELECT
	ButtonImage             = UCFormation_Wedge UCFormation_Line
	ButtonBorderType        = ACTION; Identifier for the User as to what kind of button this is
	TextLabel               = CONTROLBAR:ToggleWedgeFormation	CONTROLBAR:ToggleLineFormation
	DescriptLabel          	= CONTROLBAR:ToolTipToggleAMusketeerLineToWedgeFormation	CONTROLBAR:ToolTipToggleAMusketeerWedgeToLineFormation
	InPalantir  = Yes
	DoubleClick  = Yes
	UnitSpecificSound	= GondorArcherVoiceWedgeFormation GondorArcherVoiceLineFormation
End

attributemodifier.ini
ModifierList AmericaMusketeerWedge
	Category = FORMATION
	Modifier = DAMAGE_MULT 150%; 25% more damage
	Modifier = RANGE 10%
	Modifier = ARMOR -25%	; 25% less 
	Duration = 0	; Duration is forever when zero
End
Of course also in commandset.

I think that's it. (My memory sucks :p)

Edited by King of Universe, 27 September 2005 - 01:32 PM.

Posted Image


Frodo: I wish the Ring had never come to me... I wish none of this had happened...
Gandalf: So do all who live to see such times, but that is not for them to decide. All you have to decide, is what to do with the time that is given to you...

Click me

#4 Lauri

Lauri

    Old man Lauri

  • Hosted
  • 10,436 posts
  • Location:Norway
  • Projects:The 4th Age
  •  The very worst T3A Team Chamber Member

Posted 27 September 2005 - 02:14 PM

why not post the AmericaMusketeerHorde?

T4A_Logo_-_article.png

The 4th Age version 0.8 has been released: Link


#5 King of Universe

King of Universe

    It is in our most dire needs, that we do our greatest deeds...

  • Hosted
  • 878 posts
  • Location:Norway
  • Projects:Hero Mod

Posted 27 September 2005 - 03:08 PM

why not post the AmericaMusketeerHorde?

<{POST_SNAPBACK}>

Okay

Posted Image


Frodo: I wish the Ring had never come to me... I wish none of this had happened...
Gandalf: So do all who live to see such times, but that is not for them to decide. All you have to decide, is what to do with the time that is given to you...

Click me

#6 TKelly

TKelly

    §§§§§§§§§§§§→↑←§§§§§§§§§§§

  • Members
  • 841 posts
  • Projects:The Hobbit Expansion Pack

Posted 27 September 2005 - 08:15 PM

Behavior = HordeContain ModuleTag_HordeContain
  ObjectStatusOfContained =
  InitialPayload = AmericaMusketeer 5
  Slots = 5
  PassengerFilter = NONE +INFANTRY
  ShowPips = No
  ThisFormationIsTheMainFormation = Yes ;Used to determine which armorset to use (and anything else we want!)
  RandomOffset=X:4 Y:4
 
  ; Banner Carrier info 
  BannerCarriersAllowed = GondorBanner          ; types of units that are allowed as banner carriers
  BannerCarrierPosition = UnitType:AmericaMusketeer  Pos:X:40.0 Y:0.0  ; (DEFAULT) position of banner carrier
 
  ; Positions for 5
  RankInfo = RankNumber:1 UnitType:AmericaMusketeer Position:X:15 Y:0 Position:X:15 Y:25 Position:X:15 Y:-25 Position:X:15 Y:50 Position:X:15 Y:-50

  RanksToReleaseWhenAttacking = 1

  ; Normal formations
  ComboHorde = Target:GondorFighterHorde  Result:GondorFighterArcherComboHorde InitiateVoice:GondorArcherVoiceJoinAnybody
  ComboHorde = Target:GondorTowerShieldGuardHorde Result:GondorTowerArcherComboHorde  InitiateVoice:GondorArcherVoiceJoinAnybody
   
End


You need to add

            AlternateFormation = AmericaMusketeerHordeWedgeFormation

Posted Image

My Modding Homepage
The Hobbit Forum
Don't make fun of how low my graphics are, my computer doesn't even meet system requirements

#7 King of Universe

King of Universe

    It is in our most dire needs, that we do our greatest deeds...

  • Hosted
  • 878 posts
  • Location:Norway
  • Projects:Hero Mod

Posted 28 September 2005 - 12:42 PM

To the bottom?

Posted Image


Frodo: I wish the Ring had never come to me... I wish none of this had happened...
Gandalf: So do all who live to see such times, but that is not for them to decide. All you have to decide, is what to do with the time that is given to you...

Click me

#8 Guest_Guest_*

Guest_Guest_*
  • Guests

Posted 28 September 2005 - 02:18 PM

To whereever in the Behavior that I stated.

BTW, this is Gandalf/TKelly

#9 Lauri

Lauri

    Old man Lauri

  • Hosted
  • 10,436 posts
  • Location:Norway
  • Projects:The 4th Age
  •  The very worst T3A Team Chamber Member

Posted 28 September 2005 - 05:47 PM

; Normal formations

  ComboHorde = Target:GondorFighterHorde  Result:GondorFighterArcherComboHorde InitiateVoice:GondorArcherVoiceJoinAnybody

  ComboHorde = Target:GondorTowerShieldGuardHorde Result:GondorTowerArcherComboHorde  InitiateVoice:GondorArcherVoiceJoinAnybody

                AlternateFormation = AmericaMusketeerHordeWedgeFormation

End
;)

T4A_Logo_-_article.png

The 4th Age version 0.8 has been released: Link


#10 TKelly

TKelly

    §§§§§§§§§§§§→↑←§§§§§§§§§§§

  • Members
  • 841 posts
  • Projects:The Hobbit Expansion Pack

Posted 28 September 2005 - 08:17 PM

Yeah, that's an example of where you could put it. Just you don't need it spaced in all that way, but you could... ;)
Posted Image

My Modding Homepage
The Hobbit Forum
Don't make fun of how low my graphics are, my computer doesn't even meet system requirements

#11 ched

ched

    .

  • Undead
  • 4,431 posts
  • Location:Angers (France)
  • Projects:Rhovanion Alliance
  •  T3A Team Chamber Member
  • Division:BFME
  • Job:Previous Division Leader

Posted 28 September 2005 - 08:39 PM

but when it hits the targets a arrow sticks out...


try to replace the arrow model with a bullet model
Software is like sex; it's better when it's free ~Linus Torvald

#12 King of Universe

King of Universe

    It is in our most dire needs, that we do our greatest deeds...

  • Hosted
  • 878 posts
  • Location:Norway
  • Projects:Hero Mod

Posted 29 September 2005 - 11:19 AM

but when it hits the targets a arrow sticks out...


try to replace the arrow model with a bullet model

<{POST_SNAPBACK}>

Where is the hit thing coded, 'cause we have replaced the shooting arrow, so that's a bullet, but can't find the hit arrow :grin:
It is enough to remove the hit thing completly

Edited by King of Universe, 29 September 2005 - 12:48 PM.

Posted Image


Frodo: I wish the Ring had never come to me... I wish none of this had happened...
Gandalf: So do all who live to see such times, but that is not for them to decide. All you have to decide, is what to do with the time that is given to you...

Click me

#13 Lauri

Lauri

    Old man Lauri

  • Hosted
  • 10,436 posts
  • Location:Norway
  • Projects:The 4th Age
  •  The very worst T3A Team Chamber Member

Posted 29 September 2005 - 12:57 PM

but when it hits the targets a arrow sticks out...


try to replace the arrow model with a bullet model

<{POST_SNAPBACK}>

I did that

T4A_Logo_-_article.png

The 4th Age version 0.8 has been released: Link


#14 ched

ched

    .

  • Undead
  • 4,431 posts
  • Location:Angers (France)
  • Projects:Rhovanion Alliance
  •  T3A Team Chamber Member
  • Division:BFME
  • Job:Previous Division Leader

Posted 29 September 2005 - 01:56 PM

in Subobjects.ini ? (or whatever it is, goodsubobjects.ini ?)
Software is like sex; it's better when it's free ~Linus Torvald

#15 King of Universe

King of Universe

    It is in our most dire needs, that we do our greatest deeds...

  • Hosted
  • 878 posts
  • Location:Norway
  • Projects:Hero Mod

Posted 29 September 2005 - 04:28 PM

Goodfactionsubobjects.ini

Posted Image


Frodo: I wish the Ring had never come to me... I wish none of this had happened...
Gandalf: So do all who live to see such times, but that is not for them to decide. All you have to decide, is what to do with the time that is given to you...

Click me




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users