UGX-Mods

Call of Duty 5: World at War => Help Desk => Mapping => Topic started by: Pappinator97 on April 21, 2019, 06:39:08 pm

Title: Zoning problems
Post by: Pappinator97 on April 21, 2019, 06:39:08 pm
Hello folks. I'm relatively new to the WaW modding; I'm trying to make my map and I worked on it for a year and I almost finished to mapping all the different areas. So, some days ago, I focussed myself on the Zoning part of the map. And I have some issues: I don't know why but the adjacent doors don't work as they should, I cannot buy them in game but the Triggers and the Brushmodels are correct, they have all the keys and all the stuff which they need. I don't know so much about this part of build a map and I tried disperatly to link all the zones togheter, but in all the tries I did, they never worked. An hand is welcome, I thank you all beforehand! :D

This is a rapid sketch I made of the playble areas:
https://imgur.com/Fi8TM5n (https://imgur.com/Fi8TM5n)

And this is what I declared in the mapname.gsc:

add_adjacent_zone( "start_zone",          "palestra_zone",   "enter_palestra_zone");
add_adjacent_zone( "start_zone",          "est1_zone",          "enter_est1_zone" );
add_adjacent_zone( "palestra_zone",    "scale_zone",        "enter_scale_zone");
add_adjacent_zone( "palestra_zone",    "fuori_zone",         "enter_fuoriPalestra_zone");
add_adjacent_zone( "scale_zone",         "lab_zone",            "enter_lab_zone");
add_adjacent_zone( "scale_zone",         "fuori_zone",         "enter_fuoriScale_zone" );
add_adjacent_zone( "est1_zone",           "est2_zone",         "enter_est2_zone" );
add_adjacent_zone( "est1_zone",          "fuori_zone",         "enter_fuoriEst1_zone" );
add_adjacent_zone( "est2_zone",          "fuori_zone",         "enter_fuoriEst2_zone" );
add_adjacent_zone( "lab_zone",            "lab_info_zone",   "enter_lab_info_zone" );
 [img]
Title: Re: Zoning problems
Post by: klevi on April 22, 2019, 10:14:52 am
Well, here is a tutorial about zoning ---> https://www.youtube.com/watch?v=nEvuyhU-sPw&list=PLwlA8xZdjWAg0o9EGpticKPRm8LYZ6yk2&index=24 (https://www.youtube.com/watch?v=nEvuyhU-sPw&list=PLwlA8xZdjWAg0o9EGpticKPRm8LYZ6yk2&index=24)Also be carefull you don't do      //   before zone lines because it will ignore that line and of course the zone won't work. 
Title: Re: Zoning problems
Post by: Pappinator97 on April 22, 2019, 10:35:08 am
Well, here is a tutorial about zoning ---> https://www.youtube.com/watch?v=nEvuyhU-sPw&list=PLwlA8xZdjWAg0o9EGpticKPRm8LYZ6yk2&index=24 (https://www.youtube.com/watch?v=nEvuyhU-sPw&list=PLwlA8xZdjWAg0o9EGpticKPRm8LYZ6yk2&index=24)Also be carefull you don't do      //   before zone lines because it will ignore that line and of course the zone won't work.
I saw exactly this tutorial for making my zones. I know that the // lines are  comments in  C++.
I did some debugs with the noclip in-game to test some doors only some of them works correctly. This is what I declared in the trigger of the enter_palestra_zone (which is one of the first door that the player can buy, near the spawn zone, and it doesn't work, I cannot open it in game, same for a lot of other doors)

This is the Trigger flags:

https://imgur.com/6g9AGBV (https://imgur.com/6g9AGBV)

And this is the Brushmodel flags:

https://imgur.com/zBBhuTt (https://imgur.com/zBBhuTt)

(The doors are all similar to this of course, I changed only the Target and the Flags for each of them)
The really strange thing is that I tried to comments all the zones except for the palestra_zone and the start_zone just for testing the door, but it didn't worked anyway
Title: Re: Zoning problems
Post by: gympie6 on April 23, 2019, 05:33:34 pm
I saw exactly this tutorial for making my zones. I know that the // lines are  comments in  C++.
I did some debugs with the noclip in-game to test some doors only some of them works correctly. This is what I declared in the trigger of the enter_palestra_zone (which is one of the first door that the player can buy, near the spawn zone, and it doesn't work, I cannot open it in game, same for a lot of other doors)

This is the Trigger flags:

https://imgur.com/6g9AGBV (https://imgur.com/6g9AGBV)

And this is the Brushmodel flags:

https://imgur.com/zBBhuTt (https://imgur.com/zBBhuTt)

(The doors are all similar to this of course, I changed only the Target and the Flags for each of them)
The really strange thing is that I tried to comments all the zones except for the palestra_zone and the start_zone just for testing the door, but it didn't worked anyway
It's difficult to read what's the problem here so I am gonna ask you for more detail.
Does the door not open because you have money problems?
Does the door not open and you see a hand symbol on it without text?
Does the door open but zombies do not spawn?
Does the door open but you will get a massive frame drop?

The kvps seems to look good but maybe the target is wrong?
Before you try anything first check it on a door without using zoning and if that works try it the zoning door again.
Title: Re: Zoning problems
Post by: Pappinator97 on April 23, 2019, 05:47:57 pm
It's difficult to read what's the problem here so I am gonna ask you for more detail.Does the door not open because you have money problems?
Does the door not open and you see a hand symbol on it without text?Does the door open but zombies do not spawn?Does the door open but you will get a massive frame drop?

The kvps seems to look good but maybe the target is wrong?
Before you try anything first check it on a door without using zoning and if that works try it for that door again.
Thank you for the response! Nope,  simply it cannot be opened and it doesn't show any pop-up in-game when I approach it, even with the trigger right configured. And that's strange beacouse some other doors in the map has the same issue, but I controlled all the KVPS and they are all targeting the right enter_zone\door.
Nothing of that you write happens. It simply cannot be opened in-game.
I leave you an image:

(https://imgur.com/SbQEHtB.png)

This is the (in)famous door I showed the KVPS. As you can see, even if I approach it, nothing is showed to the player. This other one, for example, works correctly:

(https://imgur.com/gjlV200.png)

 The KVPS for this other door was the same as the other of course.
The last thing I could try is to remake the door that didn't work to zero
Title: Re: Zoning problems
Post by: gympie6 on April 23, 2019, 05:56:07 pm
Thank you for the response! Nope,  simply it cannot be opened and it doesn't show any pop-up in-game when I approach it, even with the trigger right configured. And that's strange beacouse some other doors in the map has the same issue, but I controlled all the KVPS and they are all targeting the right enter_zone\door.
Nothing of that you write happens. It simply cannot be opened in-game.
I leave you an image:

(https://imgur.com/SbQEHtB.png)

This is the (in)famous door I showed the KVPS. As you can see, even if I approach it, nothing is showed to the player. This other one, for example, works correctly:

(https://imgur.com/gjlV200.png)

 The KVPS for this other door was the same as the other of course.
The last thing I could try is to remake the door that didn't work to zero
I think I know what your problem is, look at this screenshot
You see my triggers are placed outside the clip.

I did that because if you walk into a trigger you need to touch the middle point of that trigger.
If you can't do that because the trigger is too small or the door is too huge then it could be you can't not find that trigger.
It's a stupid thing...

(https://i.gyazo.com/4e5585cd23e299669b3785f8b8f253a9.jpg)

(https://i.gyazo.com/f850faf3fe6a4d9f9707ebb31f37aa2d.jpg)
Title: Re: Zoning problems
Post by: Pappinator97 on April 23, 2019, 06:36:47 pm
oooh my bad! You're right, that was the problem. I feel soo stupid in this moment. :trex:
I'd like to ask you another simple question: in the screen you've posted you have two different triggers. Do they open the same door but from different directions, right? I want to do a thing like this in my map, how can I do that? Simply I need to add a "reverse zone" (for example from palestra_zone to start_zone calling the flag enter_start_zone) and I can link that trigger to the same door?
Title: Re: Zoning problems
Post by: gympie6 on April 23, 2019, 06:43:43 pm
oooh my bad! You're right, that was the problem. I feel soo stupid in this moment. :trex:
I'd like to ask you another simple question: in the screen you've posted you have two different triggers. Do they open the same door but from different directions, right? I want to do a thing like this in my map, how can I do that? Simply I need to add a "reverse zone" (for example from palestra_zone to start_zone calling the flag enter_start_zone) and I can link that trigger to the same door?
No problem at all, I also fall for that thing sometimes. :)
Yes and yes you can copy the trigger and change the script_flag.
Don't forget to change the zoning in your MAPNAME.gsc

Example:
add_adjacent_zone( "parcour_zone", "binnenhof_zone", "enter_binnenhof_zone" );
add_adjacent_zone( "binnenhof_zone", "parcour_zone", "enter_parcour_zone" );