Difference between revisions of "ENEX"

From Grand Theft Wiki
Jump to: navigation, search
(contributions from myself, DK22Pac, Fireman, and LINK2012)
 
Line 1: Line 1:
 
{{IplSection
 
{{IplSection
| game        = [[Grand Theft Auto: San Andreas|GTA SA]]
+
| game        = {{Icon-square|SA}}
 
| description = Creates an entrance to an exit
 
| description = Creates an entrance to an exit
 
}}
 
}}
'''ENEX''' is a section in the [[Item Placement]] file introduced in [[Grand Theft Auto: San Andreas|San Andreas]]. This creates entrances to exits or [[interior]] connections to real world by placing yellow markers on the map for CJ to walk through. Note that changes to the flags and links of existing markers are not updated by the text files after the save is created so maintaining the proper sequence of enex lines is a primary concern. New connections can be added to an existing save if temporary (burglary) connections are not present in the save data. Indoor saves generally have no temporary enex data. Add the markers at the very end of the <code>[[gta.dat]]</code> else it can negatively affect currently placed markers. 376 of 400 possible enex connections are used in a standard game.
+
'''<code>enex</code>''' is a section in the item placement file introduced in [[Grand Theft Auto: San Andreas]]. This creates entrances to exits or [[interior]] connections to real world by placing yellow markers on the map for the player to walk through. Note that changes to the flags and links of existing markers are not updated by the text files after the save is created so maintaining the proper sequence of enex lines is a primary concern. New connections can be added to an existing save if temporary (burglary) connections are not present in the save data. Indoor saves generally have no temporary enex data. Add the markers at the very end of the <code>[[gta.dat]]</code> else it can negatively affect currently placed markers. 376 of 400 possible enex connections are used in a standard game.
  
==San Andreas==
+
== Format ==
===Format===
+
=== GTA San Andreas ===
X1, Y1, Z1, ROT, W1, W2, C8, X2, Y2, Z2, Rot2, Int, Flag, Name, Sky, I2, Time On, Time Off
+
{{Pre|
 +
enex
 +
X1, Y1, Z1, EnterAngle, SizeX, SizeY, SizeZ, X2, Y2, Z2, ExitAngle, TargetInterior, Flags, Name, Sky, NumPedsToSpawn, TimeOn, TimeOff
 +
end
 +
}}
  
{|class="prettytable" width="100%" class="collapsible"
+
{|class="wikitable center-col-1 center-col-2" style="width: 100%;"
!width="250px"|Identifier
+
!style="width: 3em;" |{{Icon-square|SA}}
 +
!style="width: 12em;" |Identifier
 +
!style="width: 6em;" |Type
 
!Description
 
!Description
 
|-
 
|-
|<center>X1, Y1, Z1</center>||entrance location
+
|A,B,C ||X1, Y1, Z1 ||float[3] ||entrance location
 
|-
 
|-
|<center>ROT</center>||
+
|D ||EnterAngle||float ||
 
|-
 
|-
|<center>W1</center>||X width of entry
+
|E ||SizeX ||float ||X-radius of entry
 
|-
 
|-
|<center>W2</center>||Y width of entry
+
|F ||SizeY ||float ||Y-radius of entry
 
|-
 
|-
|<center>C8</center>||constant 8
+
|G ||SizeZ ||float ||Z-radius of entry; constant 8, unused
 
|-
 
|-
|<center>X2, Y2, Z2</center>||exit location
+
|H,I,J ||X2, Y2, Z2 ||float[3] ||exit location
 
|-
 
|-
|<center>Rot2</center>||exit rotation in degrees
+
|K ||ExitAngle ||float ||exit rotation in degrees
 
|-
 
|-
|<center>Int</center>||The target interior number
+
|L ||TargetInterior ||integer ||The target interior number
 
|-
 
|-
|<center>Flag</center>||The type of marker
+
|M ||Flags ||integer ||The type of marker ([[#Flags|see below]])
 
|-
 
|-
|<center>Name</center>||[[Interior#San_Andreas_2|Interior name]], used to find the counterpart and to identify via mission script
+
|N ||Name ||string ||[[Interior#San Andreas|Interior name]], used to find the counterpart and to identify via mission script. Notice the name must be quoted ''(e.g. "LASTRIP")''
 
|-
 
|-
|<center>Sky</center>||Sky color changer
+
|O ||Sky ||integer ||Sky color changer ([[#Sky Colors|see below]])
 
|-
 
|-
|<center>I2</center>||unknown integer flags, could be weather related
+
|P ||NumPedsToSpawn||integer ||Number of peds to spawn in interior
 
|-
 
|-
|<center>Time On</center>||enables the marker at this time
+
|Q ||TimeOn ||integer ||enables the marker at this time
 
|-
 
|-
|<center>Time Off</center>||disables the marker at this time
+
|R ||TimeOff ||integer ||disables the marker at this time
 
|}
 
|}
  
===Enex Flags===
+
===Flags===
{|class="prettytable"
+
{|class="wikitable"
! Flag
+
!Flag
! Name
+
!Name
! Description
+
!Description
 
|-
 
|-
| 1
+
|1
| unknown interior
+
|unknown interior
| Only used for interior markers
+
|Only used for interior markers
 
|-
 
|-
| 2
+
|2
| unknown pairing
+
|unknown pairing
| Used mostly for interior markers; also Big Ear & LS Skyscraper
+
|Used mostly for interior markers; also Big Ear & LS Skyscraper
 
|-
 
|-
| 4
+
|4
| Create linked pair
+
|Create linked pair
| Pair with unflagged mate during new game start
+
|Pair with unflagged mate during new game start
 
|-
 
|-
| 8
+
|8
| Reward interior
+
|Reward interior
| Sets flag 0010 on pair mate when used
+
|Sets flag 0010 on pair mate when used
 
|-
 
|-
| 16
+
|16
| Used reward entrance
+
|Used reward entrance
| Set by accessing reward interior
+
|Set by accessing reward interior
 
|-
 
|-
| 32
+
|32
| Cars and aircraft
+
|Cars and aircraft
| Enable for cars and aircraft
+
|Enable for cars and aircraft
 
|-
 
|-
| 64
+
|64
| Bikes and motorcycles
+
|Bikes and motorcycles
| Enable for bikes and motorcycles
+
|Enable for bikes and motorcycles
 
|-
 
|-
| 128
+
|128
| Disable on foot
+
|Disable on foot
| No foot traffic. Use for cars and/or bikes only
+
|No foot traffic. Use for cars and/or bikes only
 
|-
 
|-
| 256
+
|256
| Accept NPC group
+
|Accept NPC group
| Group members accepted at destination of pair (passengers stripped)
+
|Group members accepted at destination of pair (passengers stripped)
 
|-
 
|-
| 512
+
|512
| Food date flag
+
|Food date flag
| Set and cleared by food date (cut-scene related)
+
|Set and cleared by food date (cut-scene related)
 
|-
 
|-
| 1024
+
|1024
| unknown burglary
+
|unknown burglary
| Set on Bayside and Temporary Burglary doors
+
|Set on Bayside and Temporary Burglary doors
 
|-
 
|-
| 2048
+
|2048
| Disable exit
+
|Disable exit
| Player can enter but cannot exit a two-way pair
+
|Player can enter but cannot exit a two-way pair
 
|-
 
|-
| 4096
+
|4096
| Burglary access
+
|Burglary access
| Enabled and disabled during Burglary
+
|Enabled and disabled during Burglary
 
|-
 
|-
| 8192
+
|8192
| Entered without exit
+
|Entered without exit
| Set by Entrance, Cleared by Exit; Applies to one side of a two
+
|Set by Entrance, Cleared by Exit; Applies to one side of a two
 
|-
 
|-
| 16384
+
|16384
| Enable access
+
|Enable access
| Enabled by default; often cleared by scripts
+
|Enabled by default; often cleared by scripts
 
|-
 
|-
| 32768
+
|32768
| Delete enex
+
|Delete enex
| Enex is deleted when used
+
|Enex is deleted when used
 
|}
 
|}
  
===Enex Sky Colors===
+
===Sky Colors===
{|class="prettytable"
+
{|class="wikitable"
! Sky Color
+
!Sky Color
! Descriptions
+
!Descriptions
 
|-
 
|-
| 0
+
|0
| blue sky
+
|Blue Sky
 
|-
 
|-
| 1
+
|1
| white fading to black
+
|White sky fading to black
 
|-
 
|-
| 2
+
|2
| Black with yellow lights.
+
|Black sky with yellow lights.
 
|-
 
|-
| 3
+
|3
| same as 1
+
|Same as 1
 
|-
 
|-
| 4
+
|4
| same as 2
+
|Same as 2
 
|-
 
|-
| 5
+
|5
| white fading to purple fading to black with yellow lights
+
|White sky fading to purple fading to black with yellow lights
 
|-
 
|-
| 6
+
|6
| white fading to black with yellow lights.
+
|White sky fading to black with yellow lights.
 
|-
 
|-
| 7
+
|7
| white fading to green fading to black with yellow light (probably clouds)
+
|white sky fading to green fading to black with yellow light.
 
|-
 
|-
| 8
+
|8
| same as 6
+
|Same as 6
 
|-
 
|-
| 9
+
|9
| same as 6
+
|Same as 6
 
|-
 
|-
| 10
+
|10
| same as 2
+
|Same as 2
 
|-
 
|-
| 11
+
|11
| Purple (gay) retarded shadows not much sight.
+
|Purple shadows and small range of sight
 
|-
 
|-
| 12
+
|12
| same as 6
+
|Same as 6
 
|-
 
|-
| 13
+
|13
| same as 6
+
|Same as 6
 
|-
 
|-
| 14
+
|14
| same as 7 only green is ocean blue
+
|white sky fading to ocean blue fading to black with yellow light.
 
|-
 
|-
| 15
+
|15
| same as 6
+
|Same as 6
 
|-
 
|-
| 16
+
|16
| same as 2.....
+
|Same as 2
 
|-
 
|-
| 17
+
|17
| Nightly Mist
+
|Nightly Mist
 
|-
 
|-
| 18
+
|18
| Blue fading yellow (sunrise i think)
+
|Blue sky fading to yellow (Sunrise)
 
|-
 
|-
| 19
+
|19
| Blue air with white clouds
+
|Blue sky with white clouds
 
|-
 
|-
| 20
+
|20
| darker blue air with lightblue clouds
+
|Darker blue sky with light blue clouds
 
|-
 
|-
| 21
+
|21
| Darker Blue air with white clouds
+
|Darker Blue sky with white clouds
 
|-
 
|-
| 22
+
|22
| Orange with white clouds
+
|Orange sky with white clouds
 
|-
 
|-
| 23
+
|23
| Orange fading gray with orange clouds (weird)
+
|Orange sky fading to gray with orange clouds (Sunset)
 
|-
 
|-
| 24
+
|24
| this is red fading PURPLE with no seeing rang that you can't even see yourself
+
|Red sky fading to purple, no range of sight.
 
|-
 
|-
| 25
+
|25
| Dark Purple to grey with nice sun reflection
+
|Dark purple sky to grey with sun reflection.
 
|-
 
|-
| 27
+
|27
| same as 19
+
|Same as 19
 
|-
 
|-
| 28
+
|28
| the best one: big sun white clouds and blue air
+
|Blue sky with white clouds and big sun.
 
|-
 
|-
| 29
+
|29
| Blue air white clouds HUGE SUN
+
|Blue sky with white clouds and a giant sun.
 
|-
 
|-
| 30
+
|30
| Orange with dark orange clouds
+
|Orange sky with dark orange clouds
 
|}
 
|}
  
Line 212: Line 218:
 
* [[Interior]]
 
* [[Interior]]
  
{{gtasa}}{{fdl}}
+
==External links==
 +
* [http://www.gtaforums.com/index.php?showtopic=202532 IPL documentation topic]
 +
* [http://www.gtaforums.com/index.php?showtopic=331835 Enex Documentation], by OrionSR
 +
 
 +
{{fdl}}

Latest revision as of 03:32, 6 July 2018

ENEX (IPL section)
Supported games:GTA San Andreas
Short description:Creates an entrance to an exit
IPL Sections:
AUZO CARS CULL ENEX GRGE INST
JUMP MULT OCCL PATH PICK TCYC

enex is a section in the item placement file introduced in Grand Theft Auto: San Andreas. This creates entrances to exits or interior connections to real world by placing yellow markers on the map for the player to walk through. Note that changes to the flags and links of existing markers are not updated by the text files after the save is created so maintaining the proper sequence of enex lines is a primary concern. New connections can be added to an existing save if temporary (burglary) connections are not present in the save data. Indoor saves generally have no temporary enex data. Add the markers at the very end of the gta.dat else it can negatively affect currently placed markers. 376 of 400 possible enex connections are used in a standard game.

Format

GTA San Andreas

enex
X1, Y1, Z1, EnterAngle, SizeX, SizeY, SizeZ, X2, Y2, Z2, ExitAngle, TargetInterior, Flags, Name, Sky, NumPedsToSpawn, TimeOn, TimeOff
end
GTA San Andreas Identifier Type Description
A,B,C X1, Y1, Z1 float[3] entrance location
D EnterAngle float
E SizeX float X-radius of entry
F SizeY float Y-radius of entry
G SizeZ float Z-radius of entry; constant 8, unused
H,I,J X2, Y2, Z2 float[3] exit location
K ExitAngle float exit rotation in degrees
L TargetInterior integer The target interior number
M Flags integer The type of marker (see below)
N Name string Interior name, used to find the counterpart and to identify via mission script. Notice the name must be quoted (e.g. "LASTRIP")
O Sky integer Sky color changer (see below)
P NumPedsToSpawn integer Number of peds to spawn in interior
Q TimeOn integer enables the marker at this time
R TimeOff integer disables the marker at this time

Flags

Flag Name Description
1 unknown interior Only used for interior markers
2 unknown pairing Used mostly for interior markers; also Big Ear & LS Skyscraper
4 Create linked pair Pair with unflagged mate during new game start
8 Reward interior Sets flag 0010 on pair mate when used
16 Used reward entrance Set by accessing reward interior
32 Cars and aircraft Enable for cars and aircraft
64 Bikes and motorcycles Enable for bikes and motorcycles
128 Disable on foot No foot traffic. Use for cars and/or bikes only
256 Accept NPC group Group members accepted at destination of pair (passengers stripped)
512 Food date flag Set and cleared by food date (cut-scene related)
1024 unknown burglary Set on Bayside and Temporary Burglary doors
2048 Disable exit Player can enter but cannot exit a two-way pair
4096 Burglary access Enabled and disabled during Burglary
8192 Entered without exit Set by Entrance, Cleared by Exit; Applies to one side of a two
16384 Enable access Enabled by default; often cleared by scripts
32768 Delete enex Enex is deleted when used

Sky Colors

Sky Color Descriptions
0 Blue Sky
1 White sky fading to black
2 Black sky with yellow lights.
3 Same as 1
4 Same as 2
5 White sky fading to purple fading to black with yellow lights
6 White sky fading to black with yellow lights.
7 white sky fading to green fading to black with yellow light.
8 Same as 6
9 Same as 6
10 Same as 2
11 Purple shadows and small range of sight
12 Same as 6
13 Same as 6
14 white sky fading to ocean blue fading to black with yellow light.
15 Same as 6
16 Same as 2
17 Nightly Mist
18 Blue sky fading to yellow (Sunrise)
19 Blue sky with white clouds
20 Darker blue sky with light blue clouds
21 Darker Blue sky with white clouds
22 Orange sky with white clouds
23 Orange sky fading to gray with orange clouds (Sunset)
24 Red sky fading to purple, no range of sight.
25 Dark purple sky to grey with sun reflection.
27 Same as 19
28 Blue sky with white clouds and big sun.
29 Blue sky with white clouds and a giant sun.
30 Orange sky with dark orange clouds

See also

External links

Copyrighted

This page is licensed under the GNU Free Documentation Licence. This page has a separate license to the CC-BY-SA that applies to most of Grand Theft Wiki.

The full text of the GNU FDL v1.2 is here. Click the "History" button to see the full list of authors. See Grand Theft Wiki:Copyright for more detail on our copyright policy.

GNU Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts.
See Grand Theft Wiki:Copyright for more information.