UGX-Mods Login

or login with an authentication provider below
Sign In with Google
Sign In with Twitter
Sign In with Discord
Sign In with Steam
Sign In with Facebook
Sign In with Twitch

help with zones!

HOT
broken avatar :(
Created 10 years ago
by aster-99
0 Members and 1 Guest are viewing this topic.
6,730 views
broken avatar :(
×
broken avatar :(
Location: itPordenone
Date Registered: 19 January 2014
Last active: 4 years ago
Posts
64
Respect
Forum Rank
Rotting Walker
Primary Group
Member
Signature
is the quality of ours convictions to determine success
×
aster-99's Groups
aster-99's Contact & Social Links
hi, i've a very particular problem... that isn't my first map, but i don't know why my zombies spawns in random rooms. help me please, i don't know what to do!?

that's my mapname.gsc zone init script
Code Snippet
Plaintext
dlc3_zone_init()
{
add_adjacent_zone( "initial_zone", "2a_zone", "enter_2a_zone" );
add_adjacent_zone( "initial_zone", "2b_zone", "enter_2b_zone" );
add_adjacent_zone( "2a_zone", "3_zone", "enter_3_zone" );
add_adjacent_zone( "2b_zone", "3_zone", "enter_3_zone" );
add_adjacent_zone( "2a_zone", "g_zone", "enter_g_zone" );
add_adjacent_zone( "2b_zone", "g_zone", "enter_g_zone" );
add_adjacent_zone( "g_zone", "2a_zone", "enter_2a_zone" );
add_adjacent_zone( "g_zone", "2b_zone", "enter_2b_zone" );
add_adjacent_zone( "g_zone", "6_zone", "enter_6_zone" );
add_adjacent_zone( "3_zone", "2a_zone", "enter_2a_zone" );
add_adjacent_zone( "3_zone", "2b_zone", "enter_2b_zone" );
/*

i made that image for explain the map structure... but i haven't understand how post it dirctly xD.... i'm very sorry, if someone can post it under i will very happy :D
http://www.mediafire.com/view/n9foq1javkddo39/schema_zone.png
Last Edit: April 29, 2014, 08:21:04 pm by SajeOne
This topic contains a post which is marked as the Best Answer. Click here to view it.
broken avatar :(
×
broken avatar :(
The Voice in your Eyes
Location: deBavaria
Date Registered: 26 June 2013
Last active: 2 years ago
Posts
830
Respect
Forum Rank
The Decider
Primary Group
Community Mapper
My Groups
More
My Contact & Social Links
More
Personal Quote
Breton boys do what Breton boys do.
×
Alerion's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Community Mapper Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager.
You have a very complex zoning system:D
Did you check all the triggers for typos?
Try to find out which trigger causes to spawn zombies in zones that shouldn't be active.

EDIT: for inserting pictures directly use another platform than mediafire, where you can view the blank image (for example imgur or photobucket). Via mediafire you can't view the image directly and therefore can't link it directly.
Last Edit: April 29, 2014, 08:19:57 pm by Alerion
broken avatar :(
×
broken avatar :(
[UGX] Founder
Location: usBay Area, California
Date Registered: 24 June 2011
Last active: 9 months ago
Posts
5,551
Respect
6,691Add +1
Forum Rank
Immortal
Primary Group
UGX Administrator
My Groups
More
My Contact & Social Links
More
Signature
If Java had true garbage collection, most programs would delete themselves upon execution.
×
treminaor's Groups
UGX Administrator
UGX Team Member
UGX Site Moderator Has the ability to issue warnings to users, edit and remove posts from the forum and to move topics to other boards. Upholds the rules of the forum. Moderates Chat Rooms.
Judging from the fact that this isn't your first map I assume you know enough about what you are doing that this guide won't help you, but I'll leave it here anyway in case: http://ugx-mods.com/wiki/index.php?title=Ultimate_Guide_to_Zones_in_v1.4_Maps
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 22 January 2014
Last active: 3 years ago
Posts
143
Respect
Forum Rank
Pack-a-Puncher
Primary Group
Member
My Contact & Social Links
More
×
nabaro's Groups
nabaro's Contact & Social Linkschelseafan122099nabarogamerblast11
I believe that you need to use different flags for entering the same zone from 2 different ways. For example:   
Code Snippet
Plaintext
add_adjacent_zone( "2a_zone", "3_zone", "enter_3_zone" );
add_adjacent_zone( "2b_zone", "3_zone", "enter_3_zone" );
should be:
Code Snippet
Plaintext
add_adjacent_zone( "2a_zone", "3_zone", "enter_3_zone_from_2a" );
add_adjacent_zone( "2b_zone", "3_zone", "enter_3_zone_from_2b" );
and etcetera.

Post Merge: April 29, 2014, 08:23:58 pm
Basically no two flags can be the same.
Last Edit: April 29, 2014, 08:23:58 pm by nabaro
broken avatar :(
×
broken avatar :(
[UGX] Founder
Location: usBay Area, California
Date Registered: 24 June 2011
Last active: 9 months ago
Posts
5,551
Respect
6,691Add +1
Forum Rank
Immortal
Primary Group
UGX Administrator
My Groups
More
My Contact & Social Links
More
×
treminaor's Groups
UGX Administrator
UGX Team Member
UGX Site Moderator Has the ability to issue warnings to users, edit and remove posts from the forum and to move topics to other boards. Upholds the rules of the forum. Moderates Chat Rooms.
I believe that you need to use different flags for entering the same zone from 2 different ways. For example:   
Code Snippet
Plaintext
add_adjacent_zone( "2a_zone", "3_zone", "enter_3_zone" );
add_adjacent_zone( "2b_zone", "3_zone", "enter_3_zone" );
should be:
Code Snippet
Plaintext
add_adjacent_zone( "2a_zone", "3_zone", "enter_3_zone_from_2a" );
add_adjacent_zone( "2b_zone", "3_zone", "enter_3_zone_from_2b" );
and etcetera.

Post Merge: April 29, 2014, 08:23:58 pm
Basically no two flags can be the same.
Yes they can be the same, I've done that many times before with zones if there are two doors that lead to the same place you want them to activate the same flag.
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 22 January 2014
Last active: 3 years ago
Posts
143
Respect
Forum Rank
Pack-a-Puncher
Primary Group
Member
My Contact & Social Links
More
×
nabaro's Groups
nabaro's Contact & Social Linkschelseafan122099nabarogamerblast11
Oh. My bad, then.
broken avatar :(
×
broken avatar :(
The Voice in your Eyes
Location: deBavaria
Date Registered: 26 June 2013
Last active: 2 years ago
Posts
830
Respect
Forum Rank
The Decider
Primary Group
Community Mapper
My Groups
More
My Contact & Social Links
More
Personal Quote
Breton boys do what Breton boys do.
×
Alerion's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Community Mapper Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager.
I believe that you need to use different flags for entering the same zone from 2 different ways. For example:   
Code Snippet
Plaintext
add_adjacent_zone( "2a_zone", "3_zone", "enter_3_zone" );
add_adjacent_zone( "2b_zone", "3_zone", "enter_3_zone" );
should be:
Code Snippet
Plaintext
add_adjacent_zone( "2a_zone", "3_zone", "enter_3_zone_from_2a" );
add_adjacent_zone( "2b_zone", "3_zone", "enter_3_zone_from_2b" );
and etcetera.

Post Merge: April 29, 2014, 08:23:58 pm
Basically no two flags can be the same.

Well, they are and seem to have worked here:

Code Snippet
Plaintext
add_adjacent_zone( "back_right_area", "center_breezeway", "enter_leftside_spawn_house" );
add_adjacent_zone( "rear_lakeside", "center_breezeway", "enter_leftside_spawn_house" );
(from comoseas zones)
broken avatar :(
×
broken avatar :(
☭ Soviet Commander ☭
Location: us
Date Registered: 13 August 2012
Last active: 8 years ago
Posts
2,790
Respect
Forum Rank
King of the Zombies
Primary Group
Community Daedra
My Groups
More
My Contact & Social Links
More
Signature
Let's keep this thread on topic from here on in. -DBZ

+1 to off-topic reply -DBZ

lmao. Too funny.

Goliath Script Placer: http://ugx-mods.com/forum/index.php/topic,11234.msg125257/topicseen.html#new

"...Christ, people. Learn C, instead of just stringing random characters
together until it compiles (with warnings)..."

-Linus Torvalds
×
daedra descent's Groups
Community Daedra
Community Daedra
daedra descent's Contact & Social LinksBlueSoviet
i don't think it matters if both triggers go into the same zone. If i remember right the script assumes that wherever the notify comes from is an opened zone, so something like:

Code Snippet
Plaintext
add_adjacent_zone( "Intial_zone", "New_zone", "Enter_new_zone" );
add_adjacent_zone( "box_zone", "New_zone", "Enter_new_zone" );

would work, since it is assumed that the zone the notify is coming from is active.

Also i'm sure that you could do separate flags for each zone entirely, even if the zone has another flag wait like this:

Code Snippet
Plaintext
add_adjacent_zone( "Initial_zone", "New_zone", "Enter_new_zone" );
add_adjacent_zone( "Initial_zone", "New_zone", "Enter_new_zone_2" );
broken avatar :(
×
broken avatar :(
Location: itPordenone
Date Registered: 19 January 2014
Last active: 4 years ago
Posts
64
Respect
Forum Rank
Rotting Walker
Primary Group
Member
×
aster-99's Groups
aster-99's Contact & Social Links
sorry, i've don't answered quickly but in italy was late and i've gone to sleep after posting that... however with that scrip zombies spawns only in te first room  :o
Code Snippet
Plaintext
dlc3_zone_init()
{
add_adjacent_zone( "initial_zone", "2a_zone", "enter_2a_zone_from_initial_zone" );
add_adjacent_zone( "initial_zone", "2b_zone", "enter_2b_zone_from_initial_zone" );
add_adjacent_zone( "2a_zone", "3_zone", "enter_3_zone_from_2a_zone" );
add_adjacent_zone( "2b_zone", "3_zone", "enter_3_zone_from_2b_zone" );
add_adjacent_zone( "2a_zone", "g_zone", "enter_g_zone_from_2a_zone" );
add_adjacent_zone( "2b_zone", "g_zone", "enter_g_zone_from_2b_zone" );
add_adjacent_zone( "g_zone", "2a_zone", "enter_2a_zone_from_g_zone" );
add_adjacent_zone( "g_zone", "2b_zone", "enter_2b_zone_from_g_zone" );
add_adjacent_zone( "g_zone", "6_zone", "enter_6_zone" );
add_adjacent_zone( "3_zone", "2a_zone", "enter_2a_zone_from_3_zone" );
add_adjacent_zone( "3_zone", "2b_zone", "enter_2b_zone_from_3_zone" );
/*
trigger use of the doors are perfect... i don't know where is the issue...
Last Edit: April 30, 2014, 04:44:51 pm by SajeOne
broken avatar :(
×
broken avatar :(
☭ Soviet Commander ☭
Location: us
Date Registered: 13 August 2012
Last active: 8 years ago
Posts
2,790
Respect
Forum Rank
King of the Zombies
Primary Group
Community Daedra
My Groups
More
My Contact & Social Links
More
×
daedra descent's Groups
Community Daedra
Community Daedra
daedra descent's Contact & Social LinksBlueSoviet
sorry, i've don't answered quickly but in italy was late and i've gone to sleep after posting that... however with that scrip zombies spawns only in te first room  :o
dlc3_zone_init()
{
   add_adjacent_zone( "initial_zone", "2a_zone", "enter_2a_zone_from_initial_zone" );
   add_adjacent_zone( "initial_zone", "2b_zone", "enter_2b_zone_from_initial_zone" );
   add_adjacent_zone( "2a_zone", "3_zone", "enter_3_zone_from_2a_zone" );
   add_adjacent_zone( "2b_zone", "3_zone", "enter_3_zone_from_2b_zone" );
   add_adjacent_zone( "2a_zone", "g_zone", "enter_g_zone_from_2a_zone" );
   add_adjacent_zone( "2b_zone", "g_zone", "enter_g_zone_from_2b_zone" );   
   add_adjacent_zone( "g_zone", "2a_zone", "enter_2a_zone_from_g_zone" );
   add_adjacent_zone( "g_zone", "2b_zone", "enter_2b_zone_from_g_zone" );
   add_adjacent_zone( "g_zone", "6_zone", "enter_6_zone" );
   add_adjacent_zone( "3_zone", "2a_zone", "enter_2a_zone_from_3_zone" );
   add_adjacent_zone( "3_zone", "2b_zone", "enter_2b_zone_from_3_zone" );
   /*
trigger use of the doors are perfect... i don't know where is the issue...

Did you change the zone KVP's and recompile?
broken avatar :(
×
broken avatar :(
Location: itPordenone
Date Registered: 19 January 2014
Last active: 4 years ago
Posts
64
Respect
Forum Rank
Rotting Walker
Primary Group
Member
×
aster-99's Groups
aster-99's Contact & Social Links
yes i've done
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 14 September 2013
Last active: 4 years ago
Posts
1,895
Respect
Forum Rank
Zombie Destroyer
Primary Group
Community Scripter
My Groups
More
My Contact & Social Links
More
Personal Quote
BE ORIGINAL
Signature
×
MakeCents's Groups
Community Mapper Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager.
Community Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
BO3 Modtools Alpha
BO3 Modtools Alpha
This user has access to the Black Ops 3 Modtools Alpha
hi, i've a very particular problem... that isn't my first map, but i don't know why my zombies spawns in random rooms. help me please, i don't know what to do!?

that's my mapname.gsc zone init script
Code Snippet
Plaintext
dlc3_zone_init()
{
add_adjacent_zone( "initial_zone", "2a_zone", "enter_2a_zone" );
add_adjacent_zone( "initial_zone", "2b_zone", "enter_2b_zone" );
add_adjacent_zone( "2a_zone", "3_zone", "enter_3_zone" );
add_adjacent_zone( "2b_zone", "3_zone", "enter_3_zone" );
add_adjacent_zone( "2a_zone", "g_zone", "enter_g_zone" );
add_adjacent_zone( "2b_zone", "g_zone", "enter_g_zone" );
add_adjacent_zone( "g_zone", "2a_zone", "enter_2a_zone" );
add_adjacent_zone( "g_zone", "2b_zone", "enter_2b_zone" );
add_adjacent_zone( "g_zone", "6_zone", "enter_6_zone" );
add_adjacent_zone( "3_zone", "2a_zone", "enter_2a_zone" );
add_adjacent_zone( "3_zone", "2b_zone", "enter_2b_zone" );
/*
    i made that image for explain the map structure... but i haven't understand how post it dirctly xD.... i'm very sorry, if someone can post it under i will very happy :D
http://www.mediafire.com/view/n9foq1javkddo39/schema_zone.png

From the looks of it the zombies are not spawning in random rooms, you have almost opened the whole map when you enter 2a_zone. It opens zones 2a_zone, g_zone, and 3_zone. You clarify which is adjacent to which but all of those are open now and will spawn up to 2 or 3 adjacent zones away from the zone you are currently in. Your entire map is open except for 6_zone and 2b_zone at this point. You had two g_zone's which I didn't fully understand so I'll just assume they are open to each other, and I couldn't tell if you could get to 3_zone from g_zone freely or not so...

I do things slightly different. I don't use flags like "enter_this_zone". I use flags like "this_connects_that". If interested, this is how I do zoning:
  • Identify all my unique paths between zones.
      Your map is like this:
      • initial_zone connects to 2a_zone
      • initial_zone connects to 2b_zone
      • g_zone connects to 2b_zone
      • g_zone connects to 2a_zone
      • g_zone connects to 6_zone
      • 3_zone connects to 2b_zone
      • 3_zone connects to 2a_zone
  • Then I declare my adjacent zones with these flags
      Examples:
      • add_adjacent_zone("initial_zone", "2b_zone", "initial_zone_ct_2b_zone");
      • add_adjacent_zone("initial_zone", "2a_zone", "initial_zone_ct_2a_zone");
      • add_adjacent_zone("g_zone", "2b_zone", "g_zone_ct_2b_zone");
      • add_adjacent_zone("g_zone", "2a_zone", "g_zone_ct_2a_zone");
      • add_adjacent_zone("g_zone", "6_zone", "g_zone_ct_6_zone");
      • add_adjacent_zone("3_zone", "2b_zone", "3_zone_ct_2b_zone");
      • add_adjacent_zone("3_zone", "2a_zone", "3_zone_ct_2a_zone");
  • Then I set the flag for each trigger (in my map) on my buyable debris or doors to the connection of the zones. Meaning, anywhere two zones connect, put the flag you have previously defined there (defined by unique path), on both sides of the door, if you have triggers on both sides. 6_zone wouldn't since there appears to be only one way in.
[/list][/list][/list]

Spoiler: click to open...

I don't think you have to do the opposite path or define which comes from where since there is an optional <one way> argument that defaults to false. I assume that means it considers all adjacent's 2-way. I could be wrong, I'm pretty new to this. I haven't had any zoning issues since I starting following this method, and I have 15 zones in my current map.

Edit: updated add_adjacent_zone typos
Last Edit: April 30, 2014, 01:43:38 pm by MakeCents
broken avatar :(
×
broken avatar :(
Location: itPordenone
Date Registered: 19 January 2014
Last active: 4 years ago
Posts
64
Respect
Forum Rank
Rotting Walker
Primary Group
Member
×
aster-99's Groups
aster-99's Contact & Social Links
add_adjacent(initial_zone, 2b_zone, initial_zone_ct_2b_zone);
or
add_adjacent_zone( "initial_zone", "2b_zone", "initial_zone_ct_2b_zone" );
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 14 September 2013
Last active: 4 years ago
Posts
1,895
Respect
Forum Rank
Zombie Destroyer
Primary Group
Community Scripter
My Groups
More
My Contact & Social Links
More
Personal Quote
BE ORIGINAL
×
MakeCents's Groups
Community Mapper Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager.
Community Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
BO3 Modtools Alpha
BO3 Modtools Alpha
This user has access to the Black Ops 3 Modtools Alpha
add_adjacent(initial_zone, 2b_zone, initial_zone_ct_2b_zone);
or
add_adjacent_zone( "initial_zone", "2b_zone", "initial_zone_ct_2b_zone" );

lol, yeah the second one, typo from working on two different computers, sorry. I'll update it.
broken avatar :(
×
broken avatar :(
Location: itPordenone
Date Registered: 19 January 2014
Last active: 4 years ago
Posts
64
Respect
Forum Rank
Rotting Walker
Primary Group
Member
×
aster-99's Groups
aster-99's Contact & Social Links
mmh... if i use your script what do i put in the doors trigger (script_flag)??

 
Loading ...