Jump to content
Sign in to follow this  
Devils Line

Anyone know how to add these objects to either TW or KW?

Recommended Posts

The first map showcased in the video - the trees covered in snow and the lights in the middle. Anyone know how to add these to either TW or KW? I know you have to compile the map to make them appear, and I know how to compile. However, I have no idea how to add them to the map.

Best regards.

Edited by Devils Line

Share this post


Link to post

I tend to enter into infinite loop when it comes to these cases xP 

In order to help you I need to look on my files, but till I comes home I forgot to do so till the next day (which make me recalling it by looking on this thread via the phone and start the whole loop again)

 

adding objects to a map is not too different from modding the game, if you don't have any experience with it however than it be a bit harder to explain it, adding snow or rain is more easier though but I don't know if it will work the same way in TW as it did for me in KW

Share this post


Link to post

For rain, you already have it in-game and you just need to make this xml
 

<?xml version="1.0" encoding="utf-8"?>
<AssetDeclaration xmlns="uri:ea.com:eala:asset">
	<Weather
		id="Weather">
		<Snow
			SnowTexture="FXRainDrop"
			SnowFrequencyScaleX="0"
			SnowFrequencyScaleY="0"
			SnowAmplitude="0"
			SnowPointSize="1"
			SnowMaxPointSize="120"
			SnowMinPointSize="60"
			SnowQuadSize="8"
			SnowBoxHeight="300"
			SnowSpacing="12"
			SnowSpeed="100"
			NumberTiles="4"
			SnowPointSprites="False"
			SnowEnabled="False"
			IsSnowing="False">
			<SnowXYSpeed
				x="0"
				y="0" />
		</Snow>
		<Rain
			RainTexture="FXRainDrop"
			NumRaindropsPerBox="1024"
			RainBoxWidth="1000"
			RainBoxLength="1000"
			RainBoxHeight="300"
			MinWidth="1"
			MaxWidth="4"
			MinHeight="25"
			MaxHeight="100"
			MinSpeed="250"
			MaxSpeed="450"
			MinAlpha="0.2"
			MaxAlpha="0.5"
			WindStrength="1"
			IsRaining="True" />
		<Lightning
			LightningDuration="30"
			LightningChance="0.1"
			LightningEnabled="False">
			<LightningFactor
				Type="UNIFORM"
				Low="0.5"
				High="3" />
		</Lightning>
		<Spell
			SpellDuration="200"
			SpellEnabled="True" />
		<Cloud>
			<CloudTextureSize
				x="660"
				y="660" />
			<CloudOffsetPerSecond
				x="-0.03"
				y="-0.02" />
		</Cloud>
		<WeatherData
			id="RAINY"
			Sound=""
			HasLightning="True" />
		<WeatherData
			id="CLOUDYRAINY"
			Sound=""
			HasLightning="True" />
		<WeatherData
			id="SUNNY"
			Sound=""
			HasLightning="False" />
		<WeatherData
			id="CLOUDY"
			Sound=""
			HasLightning="False" />
	</Weather>
</AssetDeclaration>

And tell the overrides to use it

 

For snow you need to add some texture EA removed iirc or use it with other xml


You will need something like that

	<Weather
		id="Weather">
		<Rain
			RainTexture="FXSnowFlake2"
			NumRaindropsPerBox="128"
			RainBoxWidth="1500"
			RainBoxLength="1500"
			RainBoxHeight="450"
			MinWidth="5"
			MaxWidth="12"
			MaxHeight="12"
			MinSpeed="150"
			MaxSpeed="250"
			MinAlpha="0.5"
			MaxAlpha="0.8"
			WindStrength="0"
			IsRaining="True" />
		<Cloud>
			<CloudTextureSize
				x="660"
				y="660" />
			<CloudOffsetPerSecond
				x="-0.03"
				y="-0.02" />
		</Cloud>
	</Weather>

But you will need texture

 

For more complex things like sand strom or snow dusts you need to make some Particle fx 

(Try this guide https://www.gamereplays.org/kaneswrath/portals.php?show=page&amp;name=modding-essentials-persistent-particle-systems

)

And WB will give you some issues show them fog of war without some script (Need to look wth some mapper told me to do to force them to show up >.> )

 

 

 

For adding objects, unless the object is already ready-to-use, you need some modding knowledge, but in case it ready to use you need to put the right files in The Art, Audio, Misc, Data/Static, or Data/Worldbuilder, folders which should be Inside your map's folder,

And tell the overrides to use these files, after the complie they should be included in the map, not sure how to see them in WB though without use them via mod (it should be possible and even easy, probably have something to do with adding some lines to the WB skudf so it could load them)

Edited by Egozi44

Share this post


Link to post

Is it possible to make rain happen without it being based on map? So like, just a random weather choice before the game starts, rainy / plain etc.

I've not touched worldbuilder since Generals, so I'm not too worried if its not possible; but I've been thinking about it. :>

Share this post


Link to post

I don't know if we can do it via WB alone, but I do know we can make map that randomly spawn objects at each load, we can also set the rain as timer that make it die and come back I guess, I saw some leftovers codes that can change the weather from BFME, wonder if it works...

Edited by Egozi44

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×