Jump to content


Photo

Crazy map.INI


  • Please log in to reply
3 replies to this topic

#1 belzebubkas

belzebubkas
  • Members
  • 10 posts

Posted 16 August 2010 - 08:12 AM

I was making a map, but my map.INI got crazy! I started the map and got error "Unknown field 'Object' in block 'Object'". I used a simple technique to solve this: put additional "End" to object (Starting from the last one and going up) and start the game. If it still shows "Unknown field 'Object' in block 'Object'" I delete that end and put one to the upper object, etc... But... I putted an end to one of them, and it showed "Unknown block "End"", but when I remove it, it shows "Unknown field 'Object' in block 'Object'"! ;) Is it just stupid me, or is there supposed to be half of "End"? I dunno what to do... PLZ! HELP! ;)

PS

Just for clearer wiew i I uploaded the map.INI with empty map (So you can start it and get an error! You'll find it in 2 player list.)Attached File  INI_fix_map.rar   58.26KB   28 downloads

#2 {IP}TABARRON

{IP}TABARRON

    TABEAR *rawr*

  • Members
  • 138 posts
  • Location:FINLAND
  • Projects:WOTR II
  •  expert ini guy

Posted 16 August 2010 - 06:32 PM

did it say what line the error was on? if so use notepad++ and find it
it could be as simple as an END or a module tag
United we are pyromaniacs
Posted Image

#3 JUS_SAURON

JUS_SAURON

    El Shaddai

  • Members
  • 1,581 posts
  • Location:Trinidad
  • Projects: BFME2 MOD - Power Of The Ring
  •   INI Coder

Posted 17 August 2010 - 12:22 AM

Holy Smoke dude .. That's one loong map.ini
and It would be very difficult to debug ..

You should have added piece by piece each code until the error occured

I will give it a shot but no promises

CODE

;----------------------------------------------------------
;----------------Shrine (And Other) Units------------------
;----------------------------------------------------------

Object DwarvenMenOfDaleHorde

CommandPoints = 0

ReplaceModule ModuleTag_HordeContain
Behavior = HordeContain ModuleTag_HordeContainNew

ObjectStatusOfContained =
InitialPayload = DwarvenMenOfDale 2
Slots = 2
PassengerFilter = NONE +INFANTRY
ShowPips = No
ThisFormationIsTheMainFormation = Yes ;Used to determine which armorset to use (and anything else we want!)
MeleeBehavior = Amoeba
End

; Banner Carrier info
BannerCarriersAllowed = ; types of units that are allowed as banner carriers
BannerCarrierPosition = UnitType:DwarvenMenOfDale Pos:X:40.0 Y:0.0 ; (DEFAULT) position of banner carrier for archer horde


RandomOffset = X:0 Y:0

RankInfo = RankNumber:1 UnitType:DwarvenMenOfDale Position:X:0 Y:0 Position:X:0 Y:25 Position:X:0 Y:-25 Position:X:0 Y:50 Position:X:0 Y:-50
RankInfo = RankNumber:2 UnitType:DwarvenMenOfDale Position:X:20 Y:0 Position:X:15 Y:25 Position:X:20 Y:-25 Position:X:20 Y:50 Position:X:20 Y:-50

RanksToReleaseWhenAttacking = 1 2

MeleeAttackLeashDistance = 1 //How far the hordes can move from the center of the horde when melee attacking.
BackUpMinDelayTime = 1000 //The minimum amount of time to delay before backing up
BackUpMaxDelayTime = 9000 //The maximum amount of time to delay before backing up
BackUpMinDistance = 1 //The minimum number of cells to backup
BackUpMaxDistance = 3 //The maximum number of cells to backup
BackupPercentage = 100% //The amount of chance that a unit will back up.

End
End
End


;----------------------------------------------------------
;-----------LegendsSummon Lv1 (Feral Spider)---------------
;----------------------------------------------------------

Object GiantSpider_Small ;ChildObject GiantSpider_Small GiantSpider
CommandPoints = 0
SelectPortrait = UPWild_Spiderlings
ButtonImage = WOR_Spiderling
KindOf = SELECTABLE CAN_ATTACK ATTACK_NEEDS_LINE_OF_SIGHT MONSTER HERO PRELOAD SUMMONED SCORE PASS_EXPERIENCE_TO_PRODUCER
WeaponSet
Conditions = None
Weapon = PRIMARY LegendsSummonedSpiderlingMandibles
AutoChooseSources = PRIMARY FROM_PLAYER FROM_SCRIPT FROM_AI
End


AddModule
Behavior = LifetimeUpdate ModuleTag_LifetimeUpdate
MinLifetime = 50000
MaxLifetime = 50000
DeathType = FADED
End
END

Scale = 0.5

ReplaceModule ModuleTag_Body
Body = ActiveBody ModuleTag_BodyStronger
MaxHealth = 1200 ;BALANCE Summoned Spider Health
End
END

GeometryMajorRadius = 25.0
GeometryMinorRadius = 25.0
GeometryHeight = 15.0

End


;----------------------------------------------------------
;---------LegendsSummon Lv2 (Barrow Wight)-----------------
;----------------------------------------------------------

ChildObject BarrowWight_Summoned BarrowWight
KindOf = PRELOAD MONSTER SCORE CAN_ATTACK ATTACK_NEEDS_LINE_OF_SIGHT ENVIRONMENT SELECTABLE SCARY SUMMONED HERO
CommandPoints = 0
WeaponSet
Conditions = None
Weapon = PRIMARY LegendsBarrowWightTouch
AutoChooseSources = PRIMARY FROM_PLAYER FROM_SCRIPT FROM_AI
End

AddModule
Behavior = LifetimeUpdate ModuleTag_LifetimeUpdateNew
MinLifetime = 35000
MaxLifetime = 35000
DeathType = FADED
End
END

ReplaceModule ModuleTag_Body
Body = ActiveBody ModuleTag_BodyStronger
MaxHealth = 800 ;BALANCE Summoned Barrow Wight
End
End
End




Object CaveTroll_Slaved

RemoveModule ModuleTag_Slave


KindOf = PRELOAD HERO SELECTABLE CAN_CAST_REFLECTIONS HEAVY_MELEE_HITTER TROLL_BUFF_NUGGET MONSTER SCORE CAN_ATTACK ATTACK_NEEDS_LINE_OF_SIGHT SUMMONED NO_FREEWILL_ENTER PATH_THROUGH_INFANTRY SCARY CAN_ATTACK_WALLS ARMY_SUMMARY PASS_EXPERIENCE_TO_PRODUCER
CommandPoints = 0
DisplayName = OBJECT:GenericCaveTroll

WeaponSet
Conditions = None
Weapon = PRIMARY SummonedCaveTrollPunch
Weapon = SECONDARY MordorCaveTrollBash
OnlyAgainst = SECONDARY STRUCTURE BLOCKING_GATE
Weapon = TERTIARY SummonedCaveTrollPunch
OnlyInCondition = TERTIARY MOVING
End

RemoveModule ModuleTag_02

AddModule
Body = ActiveBody ModuleTag_02New ; DelayedDeathBody
MaxHealth = 4500
MaxHealthDamaged = 250
MaxHealthReallyDamaged = 100
End
End

AddModule
Behavior = LifetimeUpdate ModuleTag_LifetimeUpdate
MinLifetime = 50000
MaxLifetime = 50000
DeathType = FADED
End
End
End

Object GondorGwaihir

Scale = 0.12

DisplayName = OBJECT:MadBird

CrusherLevel = 0

CommandPoints = 0

WeaponSet
Conditions = None
Weapon = PRIMARY MadBirdAttack
PreferredAgainst = PRIMARY INFANTRY THROWN_OBJECT CAVALRY MONSTER

Weapon = SECONDARY EagleClawAttack
OnlyAgainst = SECONDARY MONSTER

Weapon = TERTIARY MadBirdAttack
PreferredAgainst = TERTIARY STRUCTURE MACHINE HORDE

Weapon = QUATERNARY MadBirdAttack
PreferredAgainst = QUATERNARY CLEANUP_HAZARD
End

ReplaceModule ModuleTag_02
Body = ActiveBody ModuleTag_02Bird
CheerRadius = EMOTION_CHEER_RADIUS
MaxHealth = 100

HealingBuffFx = None
DodgePercent = 78
End

LocomotorSet
Locomotor = FellBeastLocomotor
Condition = SET_NORMAL
Speed = 70
End
LocomotorSet
Locomotor = FellBeastLocomotor
Condition = SET_SUPERSONIC
Speed = 85
End
LocomotorSet
Locomotor = FellBeastLocomotor
Condition = SET_WANDER
Speed = 55
End

LocomotorSet
Locomotor = FellBeastSwoopLocomotor
Condition = SET_PANIC
Speed = 100
End
End
End
;----------------------------------------------------------
;---------------------------GLOIN--------------------------
;----------------------------------------------------------

Object DwarvenGloin

DisplayName = GloinGhost
KindOf = PRELOAD MONSTER SCORE CAN_ATTACK ATTACK_NEEDS_LINE_OF_SIGHT ENVIRONMENT SELECTABLE SCARY SUMMONED HERO
CommandPoints = 0
CommandSet = GenericCommandSet
WeaponSet
Conditions = None
Weapon = PRIMARY GloinGhostHammer
AutoChooseSources = PRIMARY FROM_PLAYER FROM_SCRIPT FROM_AI
End

ArmorSet
Conditions = None
Armor = GloinGhostArmor
DamageFX = NormalDamageFX
End

Scale = 2.2

ShockwaveResistance = 70

LocomotorSet
Locomotor = RohanGimliLocomotor
Condition = SET_NORMAL
Speed = 50
End
End



;----------------------------------------------------------
;----------------------------Dog---------------------------
;----------------------------------------------------------

Object NeutralWarg

CommandPoints = 0
SelectPortrait = UPLoneWarg
ButtonImage = BIWargSentry_Warg
KindOf = SELECTABLE CAN_ATTACK ATTACK_NEEDS_LINE_OF_SIGHT MONSTER HERO PRELOAD SCORE

WeaponSet
Conditions = None
Weapon = PRIMARY LegendsDogBite
AutoChooseSources = PRIMARY FROM_PLAYER FROM_SCRIPT FROM_AI
End

ArmorSet
Conditions = None
Armor = DogArmor
DamageFX = NormalDamageFX
End

Scale = 0.65

DisplayName = OBJECT:Spike

ReplaceModule BodyModuleTag
Body = ActiveBody ModuleTag_BodyStronger
MaxHealth = 4000
BurningDeathBehavior = Yes
BurningDeathFX = FX_CavalryBurningFlame
End
END

GeometryMajorRadius = 12.0
GeometryMinorRadius = 12.0
GeometryHeight = 8.0

End



Object DwarvenMenOfDale

ReplaceModule ModuleTag_02
Body = ActiveBody ModuleTag_02Stronger
MaxHealth = 1500
MaxHealthDamaged = 650
End
End
End


The error is between Shrine (And Other) Units ..LINE 1763
and ;(006) SPELLBOOK AND SHOPKEEPER COMMANDSETS ...LINE 2057

A few Ends out of place ...

Just use this code block and it won't crash

Edited by JUS_SAURON, 17 August 2010 - 01:30 AM.


#4 belzebubkas

belzebubkas
  • Members
  • 10 posts

Posted 18 August 2010 - 07:28 AM

Thanks! I owe you one! :p




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users