Jump to content


Photo

Someone Please Help Me With Commandset.ini


  • Please log in to reply
10 replies to this topic

#1 Sheephoof

Sheephoof
  • Members
  • 104 posts

Posted 09 October 2007 - 08:03 PM

Hey guyz, I'm just learning to code, so I figured it would be fun to make a faction of my school for me and my friends to mess around with. For some reason however, the game isn't loading because of the commandset.ini here:


// The thought on the order here is that some are Radial only, and some are palantir only.  The palantir can only see 1-6,
// but the radial system ignores the numbers and just fills in buttons.  So the palantir-only ones get 1-6, and the rest pile up behind.
CommandSet ArnorFortressCommandSet
	InitialVisible = 6
	//Main Menu
	1	= Command_ConstructSchoolPorter [color=#FF0000]<----- THIS IS WHERE IT GOES WRONG[/color]
	2   	= Command_SelectRevivablesArnorFortress	
	3   	= Command_SelectUpgradesArnorFortress
	4	= Command_FireWeaponArnorFortressBoilingOil
	5	= Command_SpecialAbilityIvoryTowerVision
	6	= Command_Sell

	//Upgrades Menu
	7	= Command_PurchaseUpgradeArnorFortressBanners
	8	= Command_PurchaseUpgradeArnorFortressHouseOfHealing
	9	= Command_PurchaseUpgradeArnorFortressFlamingMunitions
	10	= Command_PurchaseUpgradeArnorFortressBoilingOil
	11	= Command_PurchaseUpgradeArnorFortressNumenorStonework
	12	= Command_PurchaseUpgradeArnorFortressIvoryTower
	13	= Command_RadialBack

	//Hero Menu
	14	= Command_RingHeroReviveSlot
	15	= Command_CreateAHeroReviveSlot		// Note we also need an extra slot for the Create A Hero
	16	= Command_GenericReviveSlot1		//Revives any hero. keep them UNIQUE within the same commandset! 
	17	= Command_GenericReviveSlot2		
	18	= Command_GenericReviveSlot3		
	19	= Command_GenericReviveSlot4		
	20	= Command_GenericReviveSlot5		
	21	= Command_GenericReviveSlot6		
	22	= Command_GenericReviveSlot7		
	23	= Command_RadialBack				
End

I've added the School Porter into the game (it spawns fine), but for some reason I can't build it, cause the game crashes and brings me to that line. The reason I'm using the Arnor fortress is because I don't know how to make my own, and it's not used online anyway.

Any help would be great :lol:

Edited by Sheephoof, 09 October 2007 - 08:29 PM.


#2 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 09 October 2007 - 08:10 PM

Have you added the commandbutton?

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

#3 Sheephoof

Sheephoof
  • Members
  • 104 posts

Posted 09 October 2007 - 08:17 PM

No :lol: Could you explain any further?

#4 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 09 October 2007 - 08:30 PM

http://www.the3rdage.net/item-67

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

#5 Sheephoof

Sheephoof
  • Members
  • 104 posts

Posted 09 October 2007 - 08:45 PM

Thanks King of the Universe; a little more has gone wrong now :p

I've added this command button:

CommandButton Command_ConstructSchoolPorter
	Command				= UNIT_BUILD
	Object				= SchoolPorter
	Options				= CANCELABLE
	TextLabel			= CONTROLBAR:ConstructSchoolPorter
	ButtonImage			= BGFortress_Porter
	ButtonBorderType	= BUILD 
	DescriptLabel	   = CONTROLBAR:ToolTipConstructSchoolPorter
	Radial				= Yes
	InPalantir	   		= Yes
	ShowProductionCount	= Yes	 
End

So I think that's all ok. When I start the game however, the Arnor fortress isn't there, despite the fact I've got it in the playertemplate.ini:

PlayerTemplate FactionSchool
	Side			  = School
	PlayableSide	  = Yes
	Evil		  = No
	StartMoney		= 0
	MaxLevelMP	  = #DIVIDE( PLAYER_MAX_PURCHASE_POINTS_DEFAULT PLAYER_PURCHASE_POINTS_GRANTED )
	MaxLevelSP	  = #DIVIDE( PLAYER_MAX_PURCHASE_POINTS_GOOD PLAYER_PURCHASE_POINTS_GRANTED )
	PreferredColor	  = R:43 G:150 B:179
	StartingBuilding  = ArnorFortress <----------------- THERE IS WHERE I HAVE PUT IT
	
;------------- NO STARTING UNITS FOR YOU -------
;StartingUnit0 		= GondorFighterHorde 
;StartingUnitOffset0 	= X:-60 Y:185 Z:0
	
	
	StartingUnit1 		= SchoolPorter 
	StartingUnitOffset1 	= X:30 Y:200 Z:0
	StartingUnit0 		= SchoolPorter 
	StartingUnitOffset0 	= X:1 Y:130 Z:0
	
	StartingUnitTacticalWOTR	= MenPorter		;// This unit is placed in tactical mode when playing WOTR. Add multiple lines for multiple units.
	StartingUnitTacticalWOTR	= MenPorter
	IntrinsicSciences		= SCIENCE_GOOD
	IntrinsicSciencesMP 		= SCIENCE_SCHOOL
	SpellBook			= GoodSpellBook
	SpellBookMp			= SchoolSpellBook
	PurchaseScienceCommandSet	= GoodSpellStoreCommandSet
	PurchaseScienceCommandSetMP	= SchoolSpellStoreCommandSet
	DisplayName			= INI:FactionSchool
	DefaultPlayerAIType		= MenSkirmishAI
	BeaconName			= MultiplayerBeacon
	LightPointsUpSound		= GondorLightPointsUp
	ObjectiveAddedSound		= Gui_MissionObjectiveNew
	ObjectiveCompletedSound		= Gui_MissionObjectiveCompleted
	InitialUpgrades			= Upgrade_MenFaction	; Any upgrades this player template is born with.

	// NOTE: It is very important that the create-a-hero be the first buildable hero, to ensure that the create-a-hero and the ring hero are always 
	// attached to the first two buttons in the command set.

	BuildableHeroesMP		= CreateAHero RohanEowyn RohanEomer GondorBoromir RohanTheoden GondorFaramir GondorAragornMP GondorGandalf 
	BuildableRingHeroesMP		= ElvenGaladriel_RingHero
	SpellStoreCurrentPowerLabel 	= APT:SpellStoreCurrentEvenstarPower
	SpellStoreMaximumPowerLabel 	= APT:SpellStoreMaximumEvenstarPower
	ResourceModifierObjectFilter 	= RESOURCE_MODIFIER_OBJECT_FILTER
	ResourceModifierValues		= 100 100 100 100 90 85 80 75 71 68 66
	MultiSelectionPortrait		= UPGondor_Army
	LoadScreenMusic				= Shell2MusicForLoadScreen
End

Can anyone help me fix this? :lol:

#6 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 09 October 2007 - 08:53 PM

I don't have ROTWK, so I wouldn't know, but is ArnorFortress the correct name?

When I read your post again. You get into the game, but the fortress is invisible?

Edited by King of Universe, 09 October 2007 - 08:55 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

#7 Sheephoof

Sheephoof
  • Members
  • 104 posts

Posted 09 October 2007 - 08:57 PM

It's not there and then I get a "defeated" message straight away;

And I've double checked, thats the name :lol:

#8 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 09 October 2007 - 09:01 PM

And you've used the faction ingame before? And not changed anything about the faction since it last worked?

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

#9 jimiojoe

jimiojoe

    War Mungerer

  • Project Team
  • 491 posts
  • Projects:X-Mod, The Harry Potter Modification
  •  Advice

Posted 10 October 2007 - 06:34 AM

have you actually made an object .ini file called a school porter
or just typed in the name school porter for the commandset/buttons


as in an object file which includes for this school porter its model, animations, behaviours, etc.
??

ohh and for the invisible forttressthing you need to find the object code for the fortress your using
find this part of the code

		  CastleToUnpackForFaction	= Elves Fortress_Elves
		CastleToUnpackForFaction	= Dwarves Fortress_Elves
		CastleToUnpackForFaction	= Men Fortress_Elves
		CastleToUnpackForFaction	= Wild Fortress_Elves
		CastleToUnpackForFaction	= Isengard Fortress_Elves
		CastleToUnpackForFaction	= Mordor Fortress_Elves

might look a little different with ROTWK,
and make sure you have the faction in that list
ie add on the end of it
CastleToUnpackForFaction = School Fortress_Elves

replace school with whatever your faction is called


i really do recommend you look through a lot more tutorials =)

Edited by jimiojoe, 10 October 2007 - 06:37 AM.

Jimiojoe
A light from the shadow shall spring.

#10 Sheephoof

Sheephoof
  • Members
  • 104 posts

Posted 10 October 2007 - 04:53 PM

I have read through tutorials; doesn't saying anything about new fortresses :p

One more question; once I have extracted lotr.str and edited it, how do I put it back into the game?

-Thanks

#11 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 10 October 2007 - 05:05 PM

Put in the the data folder
data\lotr.str

Edited by King of Universe, 10 October 2007 - 05:06 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




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users