UGX-Mods

Call of Duty 5: World at War => Help Desk => Mapping => Topic started by: WilhelmWulf on January 07, 2013, 06:26:29 am

Title: Can someone help me with a few problems please?
Post by: WilhelmWulf on January 07, 2013, 06:26:29 am
Hey, Sorry for the long post, but I'm mapping for the first time using the Call of Duty Radiant, and I've been able to learn quite a lot from just google searching and - well, guessing.

But there are a few things that I can not find how to make or fix, and I was really hoping that someone could let me know what I need to do, or at least where I can go to learn.

First, I've been having some problems with my lighting.  I can't really seem to get any more than one primary light working correctly at one time.  They usually only show on the models, but will never cast light or shadows onto the brushes, not even the sun.  I've gone through and and set them up and checked PRIMARY_OMNI option and gave it the Info_Null to point at, but I can't get more than one to really cast dynamic light on the brushes, not even the sun will work this way.

I was also having problems with the power switch, I got it set up, and the power will come on and everything, but the handle won't turn.

Also, I was wondering about what I was doing wrong with the Hell Hound Spawners, I'm working on a Der Riese style map, and I set up the Dog spawn with the KVP's:

"targetname" "zombie_spawner_dog_init"
"spawnflags" "3"
"script_forcespawn" "1"
"script_noteworthy" "zombie_dog_spawner"
"script_string" "zombie_chaser"

But when the Dog Round comes, they won't spawn, at least not properly, I can hear it growling and making noise, and I'll bump into it where I set the spawner.  After a while, it will make the noise like it would be attacking and then it's eye's just sort appear, but not the dog, and they just sort of looks around.

I did add a playable area, and I've got the Path Nodes working for the zombies, but the Hell Hounds aren't cooperating.

Finally, I'd be very appreciative if someone could tell me how to make a buyable door that swings open, I can't seem to find a tutorial for it.

Thanks.
Title: Re: Can someone help me with a few problems please?
Post by: W1NG3D on January 07, 2013, 08:14:38 am
For the lighting problem, check your lightgrid is setup correctly, and also try not to create primary lights which intersect eachother's radus', as it causes rendering problems.

As for the hellhounds, consult this guide http://wiki.modsrepository.com/index.php/Call_of_Duty_5:_Zombie_Map_Tutorial:_Der_Riese#HellHounds and check your spawner setup and such, there may also be some other useful guides in this map tutorial which could help you with various things, like the power switch.

To add swinging doors, you could use Tom_Bmx's guide as posted here: http://www.zombiemodding.com/index.php?topic=1515.msg15133#msg15133

Hope this all helped :)
Title: Re: Can someone help me with a few problems please?
Post by: WilhelmWulf on January 07, 2013, 03:47:36 pm
Thank you very much for the links.

 The swinging doors tutorial worked great, but the link you gave me for the Hell Hounds is the one I had already used and doesn't seem to be working.

 I've gotten my Sun working, but primary omi/spot lights still won't cast onto the brushes.

Also, I'd like to ask another question, I've gotten the Exponential Fog working on my map, but I was wondering how to add the kind of wispy fog effects like on Nacht der Untoten?

Thanks again.
Title: Re: Can someone help me with a few problems please?
Post by: Earth on January 07, 2013, 07:25:12 pm

 I've gotten my Sun working, but primary omi/spot lights still won't cast onto the brushes.

sounds like you're missing your lightgrid covering your map, for the wispy fog like in nacht you can follow any fx tutorial and place a thick fog fx in wanted areas.
Title: Re: Can someone help me with a few problems please?
Post by: WilhelmWulf on January 07, 2013, 08:19:13 pm
But I do have the light grid covering my map, I've made sure of it several times.
Title: Re: Can someone help me with a few problems please?
Post by: W1NG3D on January 08, 2013, 03:03:19 am
But I do have the light grid covering my map, I've made sure of it several times.

Then the only other thing which springs to mind is reflection probes, make sure they're placed appropriately in every area of your map for the best light quality. If that's not the issue, I'd probably have to see a picture of your light setup with the KVP window open and a view of the surrounding brushes/models, and see if I spot anything abormal - from what you've told me it seems like it's been set up correctly, but there may be something obscure which is preventing the light from functioning correctly.

For the desired wispy dynamic fog effect, I would personally use trem's Easy-FX script as documented here:
http://ugx-mods.com/wiki/index.php/Easy-FX

This makes it easy to place FX in your map using Radiant, with a fairly minimal amount of scripting. I'd recommend also looking at some FX through the FX Editor program (openable through launcher), to see which ones you'd like to use as there are several fog variants I believe.
Title: Re: Can someone help me with a few problems please?
Post by: WilhelmWulf on January 08, 2013, 04:35:12 am
I added a couple more reflection probes, and it sort of helped, but not quite.

I'll post some pictures:

Spoiler: click to open...
This is how I have the light set up, the null is over by the flag and the reflection probe is in between them:
(https://www.ugx-mods.com/forum/proxy.php?request=http%3A%2F%2Fi111.photobucket.com%2Falbums%2Fn126%2FGoldenEagle8%2Ffire_zpsf03600a9.jpg&hash=c7d71f1dd8d123e4fe21dfb6f65a464241e1692e) (http://i111.photobucket.com/albums/n126/GoldenEagle8/fire_zpsf03600a9.jpg)

And this is how it shows up in-game:
(https://www.ugx-mods.com/forum/proxy.php?request=http%3A%2F%2Fi111.photobucket.com%2Falbums%2Fn126%2FGoldenEagle8%2Fproblem_zps008f271c.jpg&hash=d7a2a4330fb128c439daba8b188831561ea77b9a) (http://i111.photobucket.com/albums/n126/GoldenEagle8/problem_zps008f271c.jpg)

It shines and will cast shadows on the floor, and the models there, but it won't show on the wall, or the ceiling, and I can't really figure out why.

The other Primary light that I've got in the map so far is this one:
(https://www.ugx-mods.com/forum/proxy.php?request=http%3A%2F%2Fi111.photobucket.com%2Falbums%2Fn126%2FGoldenEagle8%2Flight_zps9c88892c.jpg&hash=f78c6acef29b349af5377ca54eca609de7e84367) (http://i111.photobucket.com/albums/n126/GoldenEagle8/light_zps9c88892c.jpg)

And is shows up like this in game:
(https://www.ugx-mods.com/forum/proxy.php?request=http%3A%2F%2Fi111.photobucket.com%2Falbums%2Fn126%2FGoldenEagle8%2Fproblem2_zpse8bb6510.jpg&hash=2cccef740c081988fbbf0181f785ce2d72532212) (http://i111.photobucket.com/albums/n126/GoldenEagle8/problem2_zpse8bb6510.jpg)

I don't understand why the shadows show up like those lines on the right there.

Thanks again.
Title: Re: Can someone help me with a few problems please?
Post by: W1NG3D on January 09, 2013, 06:00:07 am
Try increasing the radius value and test out the effects in-game, I would also usually say to also increase the fov_outer but yours is already near the limit of 120, so I doubt that is an issue. It seems to me as if the light isn't actually reaching the walls so they appear oddly unlit in-game.
Title: Re: Can someone help me with a few problems please?
Post by: WilhelmWulf on January 09, 2013, 08:17:51 am
I went through and extended the radius out to 500, it covered almost all of my map at the moment, but it wouldn't cast shadows onto that wall, which isn't more than 250 units away from the light.

What about the other light, though?  The one with the weird lines all over it?
Title: Re: Can someone help me with a few problems please?
Post by: W1NG3D on January 09, 2013, 10:38:57 am
I've had the same problem with the weird line-shadows before, and haven't been able to find the cause of the issue. It's possibly an engine bug or glitch, and I've never been able to fix it. :(

This may sound silly but is that wall brush a script_brushmodel?
Title: Re: Can someone help me with a few problems please?
Post by: cinnober on January 09, 2013, 07:12:31 pm
Regarding the hellhounds...beside the zombiedog spawn you need also to create script_structs where dogs actually will spawn (yes not mentioned in tutorial and that?s why Treyarch always sucks)


Create at least 2 script_struct?s


Give the script_struct?s these KVP?s:




Code Snippet
Plaintext
targetname / ZONE_NAME_spawners_dog

replace ZONE_NAME with your zone name(s)

Compile map when done and test.

Title: Re: Can someone help me with a few problems please?
Post by: WilhelmWulf on January 10, 2013, 09:57:49 pm
No, the wall isn't a script_brushmodel, I even remade it to make sure.

Now, when I set up the info volume, like the tutorial says, nothing spawns, no zombies, and still no dogs.
Title: Re: Can someone help me with a few problems please?
Post by: hellboy on January 13, 2013, 04:52:38 am
this is what Cinnober means u need this in your map. lets hope u can see it

(https://www.ugx-mods.com/forum/proxy.php?request=http%3A%2F%2Fi229.photobucket.com%2Falbums%2Fee107%2Fcire3008%2FCapture204_zps0c2a4835.png&hash=ba03996ccfea04c1878d0398b02b16356bfacab7)

Title: Re: Can someone help me with a few problems please?
Post by: WilhelmWulf on January 13, 2013, 04:45:48 pm
But, that is what I have on my map

(https://www.ugx-mods.com/forum/proxy.php?request=http%3A%2F%2Fi111.photobucket.com%2Falbums%2Fn126%2FGoldenEagle8%2Fsettings_zps2d27e8f8.jpg&hash=426dc14b849f7e0a06c61e71d04925e789b59fb0)
Title: Re: Can someone help me with a few problems please?
Post by: hellboy on January 13, 2013, 06:20:17 pm
on the script struct try changing the targetname to ( start_zone_spawners_dog ) do the same to info_volume targetname ( start_zone )  recomplie see what happens.
Title: Re: Can someone help me with a few problems please?
Post by: WilhelmWulf on January 13, 2013, 06:38:30 pm
I tried what you said, and still no luck.
Title: Re: Can someone help me with a few problems please?
Post by: hellboy on January 14, 2013, 03:04:39 am
this is a test map, dogs are working perfect. look inside how dogs are setup.  :)

http://www.filedropper.com/nazizombiechurch
Title: Re: Can someone help me with a few problems please?
Post by: WilhelmWulf on January 15, 2013, 01:59:19 am
Thank you, I've copied the settings for the Dog spawn on that church level over, and they're working now.

Lately though, I've set up zones in my map, linked to spawners, but none of the zombie/dog spawns will work outside of the start area will activate.  Near as I can tell, I've set them all up the same, save for the name, and the zombie/dog spawner names, but the other areas won't work.
Title: Re: Can someone help me with a few problems please?
Post by: SajeOne on January 15, 2013, 03:04:20 am
Thank you, I've copied the settings for the Dog spawn on that church level over, and they're working now.

Lately though, I've set up zones in my map, linked to spawners, but none of the zombie/dog spawns will work outside of the start area will activate.  Near as I can tell, I've set them all up the same, save for the name, and the zombie/dog spawner names, but the other areas won't work.
what does your zone code look like in your mapname.gsc?
Title: Re: Can someone help me with a few problems please?
Post by: WilhelmWulf on January 15, 2013, 04:04:31 am
I was just using this tutorial here:

http://wiki.modsrepository.com/index.php/Call_of_Duty_5:_Zombie_Map_Tutorial:_Der_Riese#Zone_Management

it doesn't seem say anything about a .gsc
Title: Re: Can someone help me with a few problems please?
Post by: SajeOne on January 15, 2013, 04:16:32 am
I was just using this tutorial here:

http://wiki.modsrepository.com/index.php/Call_of_Duty_5:_Zombie_Map_Tutorial:_Der_Riese#Zone_Management

it doesn't seem say anything about a .gsc
look here: http://www.zombiemodding.com/index.php?topic=982.0
Title: Re: Can someone help me with a few problems please?
Post by: WilhelmWulf on January 15, 2013, 07:17:28 am
Thank you so much, that tutorial worked great.

Um, are there any general tips that anyone can give me for placing pathnodes?  The way that I have them placed, I get all blue lines, but the zombies can seem to figure their way up the stairs, or around a corner in a hall.

Thanks for being so patient with me.
Title: Re: Can someone help me with a few problems please?
Post by: W1NG3D on January 15, 2013, 09:33:02 am
Thank you so much, that tutorial worked great.

Um, are there any general tips that anyone can give me for placing pathnodes?  The way that I have them placed, I get all blue lines, but the zombies can seem to figure their way up the stairs, or around a corner in a hall.

Thanks for being so patient with me.

You probably know the basic rule that pathnodes should be a maximum of 128 units apart from eachother - a lot of people get confused and think that they must be exactly 128 units apart all the time, but this is not the case as they can be closer than this. Just as long as they're not touching eachother at all, or overlapping. :)

I usually place my pathnodes 8 to 16 units above the ground, this general rule of thumb has worked well for me in pretty much every mapping situation.

As for corners, and stairs, I tend to bunch up a group of pathnodes close together in these areas in order to reduce the chance of broken paths. Make sure that the ones going up stairs are also approximately 16 units or so above the steps, in this way they should ascend in an equal manner to the staircase and create a smooth path for the zombies to follow. You can also try creating a sloped clip texture (such as clip_nosight_wood) over the stairs to make zombies (and players too) run up the stairs more smoothly, and sometimes this can help with small pathing niggles.

I may post some screenshots of some examples of paths I've made in Radiant, but hopefully for now this information should help you a bit. :)
Title: Re: Can someone help me with a few problems please?
Post by: WilhelmWulf on January 16, 2013, 05:23:41 am
Okay, thanks, the zombies are moving around my map wonderfully now.

But, I've found that I've got this weird glitch where when I'm standing in my zone 5 area, the zombies in zone 2 will spawn, even if zone 2 hasn't been opened yet.

I can't really decipher what this scripting says, but I suspect that that what's wrong, would some one take a look at it for me please?:

Code Snippet
Plaintext
dlc3_zone_init()
{

add_adjacent_zone( "initial_zone", "zone1", "enter_zone1" );
add_adjacent_zone( "zone1", "zone2", "enter_zone2" );
add_adjacent_zone( "zone2", "zone3", "enter_zone3" );
add_adjacent_zone( "zone3", "zone4", "enter_zone4" );
add_adjacent_zone( "zone4", "zone5", "enter_zone5" );
/*

Thanks again.
Title: Re: Can someone help me with a few problems please?
Post by: W1NG3D on January 16, 2013, 06:38:39 am
Those lines look fine to me. I would suspect that it's actually something to do with your Radiant setup, particularly with the buyable blocker triggers and such between zones. Check that your triggers have the right targetnames and their KVPs are all in order, there could be one which is out of order and causing some spawner + zone issues.

This guide may be of help http://www.zombiemodding.com/index.php?topic=7682.msg85244#msg85244
Title: Re: Can someone help me with a few problems please?
Post by: WilhelmWulf on January 16, 2013, 05:22:59 pm
I've gone through and looked over everything, double checked the zone names and the door triggers, I even went through and renamed the doors, just in case.   Should I be seeing a line from the door to the zone in radiant?
Title: Re: Can someone help me with a few problems please?
Post by: cinnober on January 16, 2013, 08:26:23 pm
I've gone through and looked over everything, double checked the zone names and the door triggers, I even went through and renamed the doors, just in case.   Should I be seeing a line from the door to the zone in radiant?

no...

Only lines from zone(s) to zombiespawn(s) is allowed.


post the KVP?s for your door/trigger that open/enables zombiespawning in zone2
Title: Re: Can someone help me with a few problems please?
Post by: WilhelmWulf on January 16, 2013, 10:32:29 pm
The KVP's I've got for the door are:

Code Snippet
Plaintext
"spawnflags" "1"
"script_angles" "0 95 0"
"targetname" "door1"
"classname" "script_brushmodel"
And DYNAMIC PATH is checked

My door Tigger KVP's:

Code Snippet
Plaintext
"script_flag" "enter_zone2"
"target" "door1"
"zombie_cost" "1000"
"targetname"  "zombie_door"
"classname" "trigger_use"

And the KVP's for the zone are:

Code Snippet
Plaintext
"target" "zone2_spawners"
"targetname" "zone2"
"classname" "info_volume"
Title: Re: Can someone help me with a few problems please?
Post by: WilhelmWulf on January 19, 2013, 01:35:07 am
Is there any real disadvantage to linking the zombie spawners to the door instead of the zone?  And just have the zone deal with the Dog Spawns?

As in having the line go from the door to the spawners, rather than from the info_volume?  That was the way I was doing it before I had the zones set up, and it seemed to be working fine, but you guys have more experience with this than I do.
Title: Re: Can someone help me with a few problems please?
Post by: Earth on January 19, 2013, 11:22:40 am
Is there any real disadvantage to linking the zombie spawners to the door instead of the zone?  And just have the zone deal with the Dog Spawns?

As in having the line go from the door to the spawners, rather than from the info_volume?  That was the way I was doing it before I had the zones set up, and it seemed to be working fine, but you guys have more experience with this than I do.
There's nothing really wrong with that but if you do it that way then the zombie spawns aren't being watched so every spawner will always be active, usually causing most of the zombies to be coming from one direction and take a while to get to you. but if you use zones only the spawners in your zone and zones near you are active and only those spawners will be active, keeping up the pace in your map. Usually this is only used for Prototype style maps because they don't have zones.
Title: Re: Can someone help me with a few problems please?
Post by: WilhelmWulf on January 19, 2013, 04:59:06 pm
I see.  But I'm still having a problem where zombies in zone2 are spawning when I've opened zone3, 4 and 5, even if zone2 isn't open.  I'm fairly certain that I've got the radiant work set up right, and you've seen my .gsc

I'm just frustrated that I don't understand whats wrong.
Title: Re: Can someone help me with a few problems please?
Post by: WilhelmWulf on January 22, 2013, 07:08:31 pm
Sorry for the double post, but I figured out what's wrong.

It turns out I set up the zones in my gsc wrong.  When I first set it up, I didn't really understand the way it worked, but I've read a little more on it, and set it up to get all the spawns working when they're supposed to:

    add_adjacent_zone( "initial_zone", "zone1", "enter_zone1" );
    add_adjacent_zone( "initial_zone", "zone2", "enter_zone2" );
    add_adjacent_zone( "initial_zone", "zone3", "enter_zone3" );
    add_adjacent_zone( "zone3", "zone4", "enter_zone4" );
    add_adjacent_zone( "zone3", "zone5", "enter_zone5" );

Originally it was set up for all my rooms to be in a line, so when I opened zone3, it would assume that zone2 was open, when it wasn't.  I've got it all working now though.

I'd like to ask another question though, about the expfog.

I set up the expfog the way this tutorial said to:
http://wiki.modsrepository.com/index.php/Call_of_Duty_5:_Fog

It works for the most part, but when the Dog round comes and goes, the fog goes away. 

Is there some other way that this kind of fog is supposed to be set up for zombie mode?

Also, the Browning 1919 doesn't have a firing sound.

Thanks again.
Title: Re: Can someone help me with a few problems please?
Post by: SajeOne on January 22, 2013, 08:23:53 pm
Also, the Browning 1919 doesn't have a firing sound.
Title: Re: Can someone help me with a few problems please?
Post by: WilhelmWulf on January 26, 2013, 12:35:44 am
Very cool, thank you for that.

Though, I still can't seem to fix the problem with my fog.  Is there a setting for it somewhere other than in my map.gsc?
Title: Re: Can someone help me with a few problems please?
Post by: W1NG3D on January 26, 2013, 05:56:35 am
Very cool, thank you for that.

Though, I still can't seem to fix the problem with my fog.  Is there a setting for it somewhere other than in my map.gsc?

This will be because there's a script which is changing the expfog values after dog rounds. I'm not sure which file this would be in so have a look through them all and use Ctrl+F to find "setExpFog", and once you've found the correct line, replace it with your desired fog values.
Title: Re: Can someone help me with a few problems please?
Post by: YaPh1l on January 26, 2013, 11:35:46 am
It is clientscripts\dlc3_code.csc for DR, look for SetVolFog.

- Phil.
Title: Re: Can someone help me with a few problems please?
Post by: WilhelmWulf on January 26, 2013, 08:21:08 pm
Thanks Phil,

I had been through most all of my level name stuff looking for it.


Can some one point me toward a tutorial on how to build the electric traps, and lights that come on with the power?  Every time I think I find one, the section is blank.

Thanks
Title: Re: Can someone help me with a few problems please?
Post by: SajeOne on January 27, 2013, 12:07:15 am
Thanks Phil,

I had been through most all of my level name stuff looking for it.


Can some one point me toward a tutorial on how to build the electric traps, and lights that come on with the power?  Every time I think I find one, the section is blank.

Thanks
Electric Trap tutorial is included with sniperbolts tutorial scripts, and power lights tutorial can be found on the first page of the custom scripts section on Zombiemodding.com
Title: Re: Can someone help me with a few problems please?
Post by: KDXDARK on January 27, 2013, 12:25:20 am
http://www.zombiemodding.com/index.php?board=77.0 (http://www.zombiemodding.com/index.php?board=77.0)
Title: Re: Can someone help me with a few problems please?
Post by: WilhelmWulf on January 29, 2013, 08:06:34 pm
Thanks, I had to try a few different times, but I've gotten the trap to work; I later removed it after a few plays and it felt like it made the level too easy.  And I was a little disappointed that there are only two lights that work with the power, neither of which I wanted.

I'm just playing around with the pack a punch now, and trying to make the map fun and interesting.

Thanks again everyone for being so patient with me.
Title: Re: Can someone help me with a few problems please?
Post by: SajeOne on January 29, 2013, 09:42:00 pm
Thanks, I had to try a few different times, but I've gotten the trap to work; I later removed it after a few plays and it felt like it made the level too easy.  And I was a little disappointed that there are only two lights that work with the power, neither of which I wanted.

I'm just playing around with the pack a punch now, and trying to make the map fun and interesting.

Thanks again everyone for being so patient with me.
then edit/create your own script for it to work with other light models of your liking.