Jump to content

Problem


Dunenewt

Recommended Posts

For some reason my Atreides Light Factory wont work, but I have no idea why as my Harkonnen Light Factory works under the same settings.  The game doesn't crash, its just that the Light Factory simply doesn't appear as a buildable option.

From Rules.txt


[ATFactoryFrigate]
LightFactory = TRUE
House = Atreides
StormDamage=5//only damages is never picked up
PrimaryBuilding = ATConYard
SecondaryBuilding = ATBarracks, ORBarracks, HKBarracks
Terrain = Rock
Cost = 1000
ViewRange = 10
PowerUsed = 40
BuildTime = 864
Occupy = sssssss
Occupy = sssssss
Occupy = sssssss
Occupy = nbbbbbb
Occupy = bbbbbbb
Occupy = bbbbbbb
Occupy = bbbbbbb
Occupy = bbbbbbb
Occupy = bbbbbbb
AiManufacturing = true
AiExit = true
Armour = Building
DeployTile = 2,5 2,1
Health = 4000
Debris = DebrisLarge
TechLevel = 2
CanBeEngineered = TRUE
CanBePrimary = TRUE
UpgradeTechLevel = 4 //same as ORAPC
UpgradeCost = 1200
ExplosionType = BigExplosion
Score = 4
NumInfantryWhenGone = 3
RoofHeight=115

From ArtIni.txt (this code is only temporary but should still work)


[ATFactoryFrigate]
Icon = "iconsAT_Factory.tga"
IconGrey = "iconsgrey_AT_Factory.tga"
Xaf = "AT_Factory"
XafConstruction = "construction_AT_Factory_high.xaf"
SideBarType = "Buildings"
ClipSphere = 110

Here's the working Harkonnen one just for reference.

From Rules.txt


RoofHeight=145
LightFactory = TRUE
House = Harkonnen
StormDamage=5 //only damages is never picked up
PrimaryBuilding = HKConYard
// Removed for HW SecondaryBuilding = ATRefinery, ORRefinery, HKRefinery
SecondaryBuilding = ATBarracks, ORBarracks, HKBarracks
Terrain = Rock
Cost = 1000
ViewRange = 10
PowerUsed = 40
BuildTime = 864
Occupy = ssssssss
Occupy = ssssssss
Occupy = ssssssss
Occupy = bbbbbbbb
Occupy = bbbbbbbb
Occupy = bbbbbbbb
Occupy = bbbbbbbb
Occupy = bbbbbbbb
Occupy = nbbbbbbb
Occupy = nbbbbbbb
Occupy = nnbbbbbb
DeployTile = 3,5 3,1
AiManufacturing = true
AiExit = true
Armour = Building
Health = 4000
Debris = DebrisLarge
TechLevel = 2
CanBeEngineered = TRUE
ExplosionType = BigExplosion
CanBePrimary = TRUE
UpgradeTechLevel = 4 //same as HKFlameTank
UpgradeCost = 1200
ExplosionType = BigExplosion
Score = 4
NumInfantryWhenGone = 3

From ArtIni.txt (again only temporary but this works)


[HKFactoryFrigate]
Icon = "iconsHK_Factory.tga"
IconGrey = "iconsgrey_HK_Factory.tga"
Xaf = "HK_Factory"
XafConstruction = "construction_HK_Factory_high.xaf"
SideBarType = "Buildings"
ClipSphere = 110

They are both in the Text Strings.txt as well.

Link to comment
Share on other sites

Hi, they work for me, but I didnt change a thing in the rules.txt but only added the lines PrimaryBuilding, SecondaryBuilding, Buildtime and PowerUsed. One thing I noticed is that you changed the ocupy lines...maybe thats the problem...

On the artini.txt I added an icon and a grey icon as well as a construction xaf and Sidebartype. Removed the loadflagonlypreplaced... and thats it, it worked for me.

Link to comment
Share on other sites

Delete the entries in both Rules and Artini, then copy HKFactoryFrigate details (including the declaration [HKFactoryFrigate]. Then edit name to [ATFactoryFrigate]. See then if icons appear twice under harkonnen play.

If yes you can then change House = to Atreides and PrimaryBuilding = to ATConYard and repeat test. Work through until all changes including building placement are made and build model xbf is AT_Factory. (I suspect you have a rogue extra space defined on a line somewhere so that for example it sees PrimaryBuilding = ATConyard_ which it then can not find so the icon does not show.)

If this does not work I am stumped.

JulesG

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...