Difference between revisions of "WAYP03"

From SWGANH Wiki
Jump to: navigation, search
(BaseLine Struct)
(Deltas Struct)
Line 48: Line 48:
 
     INT: Volume
 
     INT: Volume
 
   04:
 
   04:
     INT: GenericInt(CellID,SchematicQuantity)(not used here)
+
     INT: GenericInt
 
   05:
 
   05:
 
     FLOAT: XCoordinate
 
     FLOAT: XCoordinate
Line 56: Line 56:
 
     BYTE: ActivatedFlag
 
     BYTE: ActivatedFlag
 
   07:
 
   07:
     LONG: LocationNetworkID(doesn't work)
+
     LONG: LocationNetworkID
 
   08:
 
   08:
 
     ASTRING: PlanetName
 
     ASTRING: PlanetName
 
   09:
 
   09:
     USTRING: WaypointName(doesn't display)
+
     USTRING: WaypointName
 
   0A:
 
   0A:
     BOOL: ??(doesn't do anything)
+
     BYTE: NotUsed
 
   0B:
 
   0B:
 
     ASTRING: ColorString
 
     ASTRING: ColorString
 
 
}
 
}
 
</pre>
 
</pre>

Revision as of 10:02, 18 March 2009

Baseline - WAYP03

SWGANH Wiki is a repository of Star Wars Galaxies Developer information. This site is only meant to be used by SWGANH Developer team.

WAYP Packet Type QuickNav
WAYP01 - WAYP03 - WAYP06


BaseLine Struct


SSHORT:			ObjectOpperandCount
FLOAT:			Complexity
ASTRING:		STFName(Table)
INT:			??
ASTRING:		STFName(ID)
USTRING:		CustomName
INT:			Volume
INT:			GenericInt
FLOAT:			XCoordinate
FLOAT:			ZCoordinate
FLOAT:			YCoordinate
BYTE:			ActivatedFlag
LONG:			LocationNetworkID
ASTRING:		PlanetName
USTRING:		WaypointName
BYTE:			NotUsed
ASTRING:		ColorString

Deltas Struct


SHORT:			UpdateCount
SHORT:			UpdateType
{
  00:
    FLOAT:		Complexity
  01:
    ASTRING:		STFName(Table)
    INT:		??
    ASTRING:		STFName(ID)
  02:
    USTRING:		CustomName
  03:
    INT:		Volume
  04:
    INT:		GenericInt
  05:
    FLOAT:		XCoordinate
    FLOAT:		ZCoordinate
    FLOAT:		YCoordinate
  06:
    BYTE:		ActivatedFlag
  07:
    LONG:		LocationNetworkID
  08:
    ASTRING:		PlanetName
  09:
    USTRING:		WaypointName
  0A:
    BYTE:		NotUsed
  0B:
    ASTRING:		ColorString
}

Variable Descriptions


ObjectOpperandCount = 12

Complexity: The Complexity of the Object or Schematic to create an object.

STFName: The Name of the Object taken from an STF File Reference.

CustomName: A custom specified name for the object. (User created).

Volume: The volume of space the object takes up.

GenericInt: An integer used uniquely in some inherited objects. CellObjects = CellIndex for each Cell in a building SchematicObjects = Quantity of uses in a schematic. Set to 0 for WAYP.

XZYCoordinate: The Location of the Waypoint. This overrides the coordinates in the CreateObjectByCrc().

ActivatedFlag: Set to 1 for activated. 0 for inactive. (Works correctly so you can "hide" them from players until ready too!)

LocationNetworkID: Guessed feature. the "Location" object has a networkID that never worked, but I assume it was intended to overridelocation to be based on the coordinates of an object. Never fully implemented but Im sick of having ?? in documentation for things that didn't work.

PlanetName: The ASCII planet name found in the CRC Tables. Needed to display the waypoint correctly. (just like in the PLAY Obj except it uses the CRC, this uses the string).

WaypointName: Doesn't display, however its a USTRING just like Waypoints, and it DIDNT update my color or planet when I triednthose. Its hard to test the name, but I linked to datapad to try and see it.. didn't change it however. Don't bother updating this really..

ColorString: The ASCII string for the color to use. This is directly translated as shared_waypoint_X.iff Take the part from the iff and that is the color. Any new waypoints I assume will also work this way... Options: green purple white blue yellow orange space


Tags


100% This packet has been completely reversed.

Sample Packet