Jump to content


Photo

Is This Right?


  • Please log in to reply
14 replies to this topic

#1 lacrossman930

lacrossman930

    Lacrosse is the gift of God! 0-----]::::::::::::>

  • Project Team
  • 257 posts
  • Projects:Wars of the East mapper/ Istari Productions mapper/Realm Forger/Inheritence mod mapper
  •  Mapper,map.ini,modeling,leaning skinning

Posted 19 October 2007 - 01:01 AM

I am making a archer map and trying to make the summon dunidain power cost 1. and recharge faster. also trying to add to elves. is this how to set it up exactlly inside my map file or do i add some thing. i got lost in all the different tutorials.

Science SCIENCE_DunedainAllies
  PrerequisiteSciences = SCIENCE_GOOD OR SCIENCE_MEN OR SCIENCE_ELVES 
  SciencePurchasePointCost = 1
  SciencePurchasePointCostMP = 1
  IsGrantable = Yes
End

SpecialPower SpellBookDunedainAllies
	Enum			= SPECIAL_SPELL_BOOK_DUNEDAIN_ALLIES
	RequiredSciences		= SCIENCE_DunedainAllies
	ReloadTime		= 10000; in milliseconds
	InitiateAtLocationSound	= SpellSummonDunedainAllies
	RadiusCursorRadius	= 100.0
	Flags					= NO_FORBIDDEN_OBJECTS RESPECT_RECHARGE_TIME_DISCOUNT
	ForbiddenObjectFilter	= NO_SUMMON_NEAR_OBJECT_FILTER
	ForbiddenObjectRange	= 100.0
END

CommandSet MenSpellBookCommandSet
	1 = Command_SpellBookHeal
	2 = Command_SpellBookRallyingCall
	3 = Command_SpellBookDunedainAllies

	4 = Command_SpellBookTomBombadil
	5 = Command_SpellBookHobbitAllies
	6 = Command_SpellBookLoneTower
	7 = Command_SpellBookArrowVolleyGood

	8 = Command_SpellBookCloudBreak
	9 = Command_SpellBookRohanAllies
	10 = Command_SpellBookElvenWoodMP;;Command_SpellBookRebuild
	
	11 = Command_SpellBookArmyoftheDead
	12 = Command_SpellBookEarthquake

CommandSet MenSpellStoreCommandSet
	1 = Command_PurchaseSpellHeal
	2 = Command_PurchaseSpellRallyingCallMP
	3 = Command_PurchaseSpellDunedainAllies
	
	4 = Command_PurchaseSpellLoneTowerMen;; Command_PurchaseSpellHobbitAllies
	5 = Command_PurchaseSpellArrowVolleyGood
	6 = Command_PurchaseSpellTomBombadil
	7 = Command_PurchaseSpellHobbitAllies;;Command_PurchaseSpellLoneTowerMen

	8 = Command_PurchaseSpellRohanAllies;;Command_PurchaseSpellElvenWoodMP;;Command_PurchaseSpellRebuild
	9 = Command_PurchaseSpellCloudBreak
	10 = Command_PurchaseSpellElvenWoodMP;;Command_PurchaseSpellRebuild;;Command_PurchaseSpellRohanAllies 

	11 = Command_PurchaseSpellArmyoftheDead
	12 = Command_PurchaseSpellEarthquake
End

CommandSet ElvesSpellBookCommandSet
	1 = Command_SpellBookRallyingCall
	2 = Command_SpellBookDunedainAllies
	3 = Command_SpellBookFarsight
	4 = Command_SpellBookHeal
	
	5 = Command_SpellBookTomBombadil
	6 = Command_SpellBookEnshroudingMist
	7 = Command_SpellBookArrowVolleyGood
	
	
	8 = Command_SpellBookElvenWood
	9 = Command_SpellBookCloudBreak
	10 = Command_SpellBookEntAllies
	
	11 = Command_SpellBookEagleAllies
	12 = Command_SpellBookFlood
	13 = Command_SpellBookSunflare
End

CommandSet ElvesSpellStoreCommandSet
	1 = Command_PurchaseSpellRallyingCallMP
	2 = Command_PurchaseSpellDunedainAllies
	3 = Command_PurchaseSpellFarsight
	4 = Command_PurchaseSpellHeal
	
	5 = Command_PurchaseSpellEnshroudingMistMP
	6 = Command_PurchaseSpellArrowVolleyGood
	7 = Command_PurchaseSpellElvenWood
	
	8 = Command_PurchaseSpellTomBombadil
	9 = Command_PurchaseSpellEntAllies  
	10 = Command_PurchaseSpellCloudBreak
	
	11 = Command_PurchaseSpellEagleAllies  
	12 = Command_PurchaseSpellSunflare
	13 = Command_PurchaseSpellFlood
End

Posted Image
Posted Image
Posted Image
Posted Image
Posted Image
Posted Image

#2 lacrossman930

lacrossman930

    Lacrosse is the gift of God! 0-----]::::::::::::>

  • Project Team
  • 257 posts
  • Projects:Wars of the East mapper/ Istari Productions mapper/Realm Forger/Inheritence mod mapper
  •  Mapper,map.ini,modeling,leaning skinning

Posted 12 November 2007 - 02:11 AM

*sighs*

no one no's the probelem to this!!!
Posted Image
Posted Image
Posted Image
Posted Image
Posted Image
Posted Image

#3 Dain Ironfoot

Dain Ironfoot

    No sex please, we're Dwarves

  • Hosted
  • 1,655 posts
  • Projects:The Peninsular War
  •  I aten't dead.

Posted 12 November 2007 - 12:14 PM

Be patient. This isn't a chat room.

Dain: Arr Nertea: yarrrr Dain: haharrrr Nertea: graaawwwr Dain: oaaaaaaaarr Nertea: .... honk?


#4 Nolis

Nolis

    Panathinaikos for ever...

  • Members
  • 237 posts
  • Location:Korydallos, Greece
  • Projects:Battle for Heaven and Hell, Return of the Eldar, Evil Mod II, Inheritance Mod, Taralomian Assault(on hold)
  •  Mapper & more than basic coder

Posted 12 November 2007 - 02:23 PM

Did it work for men?
Cower at the Arrival of Death

92% of teens have moved onto rap. If you are part of the 8% that still listen to real music, copy and paste this into your signature

.:.('.').:.

I was born to be the best, No1 and nothing less...

Jobs in modelling and skinning availlable in Battle for Heaven and Hell.Click here to join.

Posted Image
Posted Image


Posted Image

#5 m@tt

m@tt

    #######

  • Project Team
  • 4,056 posts
  • Location:England
  • Projects:The Dwarf Holds
  •  T3A Chamber Member

Posted 12 November 2007 - 03:44 PM

One of those command sets (CommandSet MenSpellBookCommandSet) has not got an END tag

Edited by mh_gollum, 12 November 2007 - 03:44 PM.

Posted Image

#6 lacrossman930

lacrossman930

    Lacrosse is the gift of God! 0-----]::::::::::::>

  • Project Team
  • 257 posts
  • Projects:Wars of the East mapper/ Istari Productions mapper/Realm Forger/Inheritence mod mapper
  •  Mapper,map.ini,modeling,leaning skinning

Posted 12 November 2007 - 09:05 PM

I think that ive figured it out if i do ill post it when fixed so you guys can see it. thanks for your help.
Posted Image
Posted Image
Posted Image
Posted Image
Posted Image
Posted Image

#7 lycan

lycan

    title available

  • Banned
  • 553 posts
  • Projects:HP Mod
  •  Im just a guy around these forums

Posted 12 November 2007 - 10:03 PM

Be patient. This isn't a chat room.


lol posted nearly 3 weeks ago

i think mh is right

#8 lacrossman930

lacrossman930

    Lacrosse is the gift of God! 0-----]::::::::::::>

  • Project Team
  • 257 posts
  • Projects:Wars of the East mapper/ Istari Productions mapper/Realm Forger/Inheritence mod mapper
  •  Mapper,map.ini,modeling,leaning skinning

Posted 13 November 2007 - 01:16 AM

Thanks again i think when makeing a new command set you have to rename it something new and it cant be the same as in the original ini file.

Edited by lacrossman930, 13 November 2007 - 01:18 AM.

Posted Image
Posted Image
Posted Image
Posted Image
Posted Image
Posted Image

#9 lacrossman930

lacrossman930

    Lacrosse is the gift of God! 0-----]::::::::::::>

  • Project Team
  • 257 posts
  • Projects:Wars of the East mapper/ Istari Productions mapper/Realm Forger/Inheritence mod mapper
  •  Mapper,map.ini,modeling,leaning skinning

Posted 13 November 2007 - 01:43 AM

This is what ive worked out dose it sound right to you guys?
Science SCIENCE_DunedainAllies
  PrerequisiteSciences = SCIENCE_GOOD OR SCIENCE_MEN OR SCIENCE_ELVES
  SciencePurchasePointCost = 1
  SciencePurchasePointCostMP = 1
  IsGrantable = Yes
End

SpecialPower SpellBookDunedainAllies
	Enum			= SPECIAL_SPELL_BOOK_DUNEDAIN_ALLIES
	RequiredSciences		= SCIENCE_DunedainAllies
	ReloadTime		= 50000; in milliseconds
	InitiateAtLocationSound	= SpellSummonDunedainAllies
	RadiusCursorRadius	= 100.0
	Flags					= NO_FORBIDDEN_OBJECTS RESPECT_RECHARGE_TIME_DISCOUNT
	ForbiddenObjectFilter	= NO_SUMMON_NEAR_OBJECT_FILTER
	ForbiddenObjectRange	= 100.0
END

CommandSet MenSpellBookCommandSet_Overide
	1 = Command_SpellBookHeal
	2 = Command_SpellBookRallyingCall
	3 = Command_SpellBookDunedainAllies

	4 = Command_SpellBookTomBombadil
	5 = Command_SpellBookHobbitAllies
	6 = Command_SpellBookLoneTower
	7 = Command_SpellBookArrowVolleyGood

	8 = Command_SpellBookCloudBreak
	9 = Command_SpellBookRohanAllies
	10 = Command_SpellBookElvenWoodMP
	
	11 = Command_SpellBookArmyoftheDead
	12 = Command_SpellBookEarthquake
END

CommandSet MenSpellStoreCommandSet_overide
	1 = Command_PurchaseSpellHeal
	2 = Command_PurchaseSpellRallyingCallMP
	3 = Command_PurchaseSpellDunedainAllies
	
	4 = Command_PurchaseSpellLoneTowerMen
	5 = Command_PurchaseSpellArrowVolleyGood
	6 = Command_PurchaseSpellTomBombadil
	7 = Command_PurchaseSpellHobbitAllies

	8 = Command_PurchaseSpellRohanAllies
	9 = Command_PurchaseSpellCloudBreak
	10 = Command_PurchaseSpellElvenWoodMP

	11 = Command_PurchaseSpellArmyoftheDead
	12 = Command_PurchaseSpellEarthquake
End

Object MenSpellBook_Override
	CommandSet = MenSpellBookCommandSet_Override
	RadarPriority = NOT_ON_RADAR
	KindOf = SPELL_BOOK IMMOBILE IGNORES_SELECT_ALL INERT
END

PlayerTemplate FactionMen
	 PurchaseScienceCommandSetMP = MenSpellStoreCommandSet_Override
	 SpellBookMp = MenSpellBook_Override
End

CommandSet ElvesSpellBookCommandSet_overide
	1 = Command_SpellBookRallyingCall
	2 = Command_SpellBookDunedainAllies
	3 = Command_SpellBookFarsight
	4 = Command_SpellBookHeal
	
	5 = Command_SpellBookTomBombadil
	6 = Command_SpellBookEnshroudingMist
	7 = Command_SpellBookArrowVolleyGood
	
	
	8 = Command_SpellBookElvenWood
	9 = Command_SpellBookCloudBreak
	10 = Command_SpellBookEntAllies
	
	11 = Command_SpellBookEagleAllies
	12 = Command_SpellBookFlood
	13 = Command_SpellBookSunflare
End

CommandSet ElvesSpellStoreCommandSet_overide
	1 = Command_PurchaseSpellRallyingCallMP
	2 = Command_PurchaseSpellDunedainAllies
	3 = Command_PurchaseSpellFarsight
	4 = Command_PurchaseSpellHeal
	
	5 = Command_PurchaseSpellEnshroudingMistMP
	6 = Command_PurchaseSpellArrowVolleyGood
	7 = Command_PurchaseSpellElvenWood
	
	8 = Command_PurchaseSpellTomBombadil
	9 = Command_PurchaseSpellEntAllies  
	10 = Command_PurchaseSpellCloudBreak
	
	11 = Command_PurchaseSpellEagleAllies  
	12 = Command_PurchaseSpellSunflare
	13 = Command_PurchaseSpellFlood
End

Object ElvesSpellBook_Override
	CommandSet = ElvesSpellBookCommandSet_Override
	RadarPriority = NOT_ON_RADAR
	KindOf = SPELL_BOOK IMMOBILE IGNORES_SELECT_ALL INERT
END

PlayerTemplate FactionElves
	 PurchaseScienceCommandSetMP = ElvesSpellStoreCommandSet_Override
	 SpellBookMp = ElvesSpellBook_Override
End

Posted Image
Posted Image
Posted Image
Posted Image
Posted Image
Posted Image

#10 Fingulfin

Fingulfin

    I Like Pi3. Do you?

  • Hosted
  • 1,752 posts
  • Location:California, USA
  • Projects:Staying Alive.
  •  This place looks familiar. I can't remember why.

Posted 13 November 2007 - 07:51 PM

Be patient. This isn't a chat room.

lol posted nearly 3 weeks ago

ROFL, Dain just got pwnt :cool2:

On Topic:
SpellBook Editing is a NIGHTMARE, not because the coding is hard, but because there is so much to edit. Doing it via map.ini is even worse. Basically, the entire code you have there is wrong, wrong, all wrong...

OK, here is a walk through to map.ini spellbook editing.
First off, you need to change the spell book. So, we would have a code block like this:
PlayerTemplate FactionElves
	 PurchaseScienceCommandSetMP = ElvesSpellStoreCommandSet_Override
	 SpellBookMp = ElvesSpellBook_Override
End

Now, we actually need to create that object. You can't simply make a new object with nothing in it, or none of your other spells will work. You need a childobject of the old spellbook.
ChildObject ElvesSpellBook ElvesSpellBook_Override
	CommandSet = ElvesSpellBookCommandSet_Override
	AddModule
		Behavior = OCLSpecialPower ModuleTag_SummonDunedain
			SpecialPowerTemplate = SpellBookDunedainAllies
			OCL				  = OCL_SpawnDunedainRangersEgg
			TriggerFX			 = FX_DunedainSummon
			CreateLocation	   = CREATE_AT_LOCATION
			UpgradeName			 = Upgrade_DunedainAllies
			AvailableAtStart	 = No
			RequirementsFilterMPSkirmish = SPELL_BOOK_REQUIREMENTS_FILTER
			RequirementsFilterStrategic = SPELL_BOOK_REQUIREMENTS_FILTER_STRATEGIC
		End
	End
	//Other Codes will go here, ie if you want to edit OCLs or any other fun stuff. You can find the original object
	//code in data/ini/system/system.ini Feel free to tweak!
End

Edit your special power for the time:
SpecialPower SpellBookDunedainAllies
	Enum			= SPECIAL_SPELL_BOOK_DUNEDAIN_ALLIES
	RequiredSciences		= SCIENCE_DunedainAllies
	ReloadTime		= 50000; in milliseconds
	InitiateAtLocationSound	= SpellSummonDunedainAllies
	RadiusCursorRadius	= 100.0
	Flags					= NO_FORBIDDEN_OBJECTS RESPECT_RECHARGE_TIME_DISCOUNT
	ForbiddenObjectFilter	= NO_SUMMON_NEAR_OBJECT_FILTER
	ForbiddenObjectRange	= 100.0
END

Now is where you get to start "Having Fun". This is where spell book editing goes crazy (Sorta). You have to arrange ALL SCIENCES relating to your new science to reflect each other, depending on where you want to put it. OK, I phrased that horribly. Here is what I mean:
First off, say we are replacing "Rallying Call" with Summon Dunedain. We would have to find all elven spells that have "Rallying Call" as a prerequisite and edit them.
//This is a tier 1 spell, so it goes first
Science SCIENCE_DunedainAllies
  PrerequisiteSciences = SCIENCE_GOOD OR SCIENCE_MEN OR SCIENCE_ELVES
  SciencePurchasePointCost = 1
  SciencePurchasePointCostMP = 1
  IsGrantable = Yes
End
//Next Power that wants it is is Arrow Volley
Science SCIENCE_ArrowVolleyGood
  PrerequisiteSciences = SCIENCE_ELVES SCIENCE_DunedainAllies OR SCIENCE_GOOD OR SCIENCE_MEN SCIENCE_Heal OR SCIENCE_MEN SCIENCE_RallyingCallMP OR SCIENCE_ELVES SCIENCE_Heal OR SCIENCE_ELVES SCIENCE_RallyingCallMP
  SciencePurchasePointCost = 1
  SciencePurchasePointCostMP = 10
  IsGrantable = Yes
End

Seeing as Arrow Volley is the only one that requires Rallying Call as a prerequisite, we can leave it at that. Now we edit the commandsets:
CommandSet ElvesSpellBookCommandSet_Override
	1 = Command_SpellBookDunedainAllies
	2 = Command_SpellBookHeal
	3 = Command_SpellBookFarsight
	
	4 = Command_SpellBookTomBombadil
	5 = Command_SpellBookEnshroudingMist
	6 = Command_SpellBookArrowVolleyGood
	7 = Command_SpellBookElvenWood

	8 = Command_SpellBookCloudBreak
	9 = Command_SpellBookEntAllies
	10 = Command_SpellBookEagleAllies

	11 = Command_SpellBookFlood
	12 = Command_SpellBookSunflare
End

CommandSet ElvesSpellStoreCommandSet_Override
	1 = Command_PurchaseSpellDunedainAllies
	2 = Command_PurchaseSpellHeal
	3 = Command_PurchaseSpellFarsight
	
	4 = Command_PurchaseSpellEnshroudingMistMP
	5 = Command_PurchaseSpellArrowVolleyGood
	6 = Command_PurchaseSpellElvenWood
	7 = Command_PurchaseSpellTomBombadil

	8 = Command_PurchaseSpellEntAllies;;Command_PurchaseSpellEagleAllies
	9 = Command_PurchaseSpellCloudBreak
	10 = Command_PurchaseSpellEagleAllies;;Command_PurchaseSpellEntAllies

	11 = Command_PurchaseSpellSunflare
	12 = Command_PurchaseSpellFlood
End

This is all the necessary code, BUT WAIT! We aren't finished yet! The Game engine needs to parse everything in a certain order, or it won't work in-game. I don't know what that certain order is, but this works for me:
PlayerTemplates at the top
Objects (Including the new spell book)
Special Powers
Command Buttons
Command Sets
Sciences

For an example map.ini that goes with my map "The Hill of the Gods", check this out:
Attached File  map.ini   50.74KB   22 downloads

Happy Modding :dry:

Edited by Fingulfin, 14 November 2007 - 08:55 PM.

Posted Image
--------------------------------------
"You look like a ghost of your former self..."

#11 lycan

lycan

    title available

  • Banned
  • 553 posts
  • Projects:HP Mod
  •  Im just a guy around these forums

Posted 13 November 2007 - 08:13 PM

off topic, where can i download the map?


great work fingulfin

#12 Fingulfin

Fingulfin

    I Like Pi3. Do you?

  • Hosted
  • 1,752 posts
  • Location:California, USA
  • Projects:Staying Alive.
  •  This place looks familiar. I can't remember why.

Posted 13 November 2007 - 08:41 PM

Sorry, but the map is not currently available for download. It was in early beta stages, but then I quit modding :( I might get back to it someday, but I can't say for sure.
Posted Image
--------------------------------------
"You look like a ghost of your former self..."

#13 lacrossman930

lacrossman930

    Lacrosse is the gift of God! 0-----]::::::::::::>

  • Project Team
  • 257 posts
  • Projects:Wars of the East mapper/ Istari Productions mapper/Realm Forger/Inheritence mod mapper
  •  Mapper,map.ini,modeling,leaning skinning

Posted 13 November 2007 - 09:10 PM

Tahnk you that was amazing ill edit this message to say when i got it right.
Posted Image
Posted Image
Posted Image
Posted Image
Posted Image
Posted Image

#14 Fingulfin

Fingulfin

    I Like Pi3. Do you?

  • Hosted
  • 1,752 posts
  • Location:California, USA
  • Projects:Staying Alive.
  •  This place looks familiar. I can't remember why.

Posted 14 November 2007 - 08:55 PM

YIKES! I forgot to put in a VERY important code block. In the second code I listed (The Spell Book Object) you need to add the block that corresponds with the Dunedain summon; ie it should look like this:
ChildObject ElvesSpellBook ElvesSpellBook_Override
	CommandSet = ElvesSpellBookCommandSet_Override
	AddModule
		Behavior = OCLSpecialPower ModuleTag_SummonDunedain
			SpecialPowerTemplate = SpellBookDunedainAllies
			OCL				  = OCL_SpawnDunedainRangersEgg
			TriggerFX			 = FX_DunedainSummon
			CreateLocation	   = CREATE_AT_LOCATION
			UpgradeName			 = Upgrade_DunedainAllies
			AvailableAtStart	 = No
			RequirementsFilterMPSkirmish = SPELL_BOOK_REQUIREMENTS_FILTER
			RequirementsFilterStrategic = SPELL_BOOK_REQUIREMENTS_FILTER_STRATEGIC
		End
	End
	//Other Codes will go here, ie if you want to edit OCLs or any other fun stuff. You can find the original object
	//code in data/ini/system/system.ini Feel free to tweak!
End

Have fun :p
Posted Image
--------------------------------------
"You look like a ghost of your former self..."

#15 lacrossman930

lacrossman930

    Lacrosse is the gift of God! 0-----]::::::::::::>

  • Project Team
  • 257 posts
  • Projects:Wars of the East mapper/ Istari Productions mapper/Realm Forger/Inheritence mod mapper
  •  Mapper,map.ini,modeling,leaning skinning

Posted 14 November 2007 - 09:02 PM

You should make a tutorial :p thanks
Posted Image
Posted Image
Posted Image
Posted Image
Posted Image
Posted Image




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users