Bool Act??? & Update T-script Reference

Creating new content for Trespasser!

Moderators: TresCom Support Team, TresCom Board Managers, TresCom Developers

chronzerg
Albertosaurus
Albertosaurus
Posts: 2087
Joined: Mon Jan 10, 2005 10:13 pm

Post by chronzerg »

Dinosaurs are so random. Like, for instance, this one gallimimus goes to a new place everytime i load the map. I like it for some dinos, but with other i want the dinosaur to be always in the same place.

For instance, I have a bunch of compies. I stripped as many bool Act??? as i could to try to make them eat a dead animal. But all they ever do is run to when when i walk by. After i leave, they go back to ther meal. I even made them with no anger, some fear, and no bravery. They still run up and bite me. any suggestions.
TptDac
Brachiosaurus
Brachiosaurus
Posts: 248
Joined: Mon Nov 17, 2003 4:56 am
Location: Northern California

Post by TptDac »

To keep a dino in one place, use an anchor. There are plenty of examples in the retail levels. Usually the anchor is an invisible, intangible object. Sometimes it is a rock. The anchor can be a moving object, like another dino or even Anne herself. Anchors are controlled through a dino's tscript (define an anchor, set the dino to be anchored to the defined anchor, choose a distance associated with the anchoring). You can use triggers to activate or deactivate anchoring, or to change an anchor. To some extent, setting ActWander to false will keep a dino near the same location. This is less exact. So if you absolutely, positively must keep a dino in a given location, use an anchor. One more thing you can do is to create a box of AI objects. The function of an AI object is to repel dinos. A more common use of AI objects is to keep a dino away from an object such as a rock that the dino might get "tangled" in, and to keep dinos away from cliff faces and such. The actual functionality of AI boxes is less than perfect.
chronzerg
Albertosaurus
Albertosaurus
Posts: 2087
Joined: Mon Jan 10, 2005 10:13 pm

Post by chronzerg »

ok, thanks.[/code]
User avatar
machf
T-Rex Killer
T-Rex Killer
Posts: 12368
Joined: Thu Apr 24, 2003 11:20 pm
Location: Lima, Peru
Contact:

Post by machf »

OK, I had made this list some time ago, but for some reason I didn't post it (I beleive it was when my cablemodem broke down). Now I don't remember where I intended to post it, possibly on this thread...

Well, here it goes. I rearranged the keywords in the proper order (inverted) and separated related groups (well, at least, I intend to).

These are for data types, I believe (only the first letter, the rest are what I believe each letter stands for)

Code: Select all

b ool
c har?
i nt
f loat
s tring
These are object classes:

Code: Select all

CInstance
CBackdrop
CLocationTrigger
CCollisionTrigger
CStartTrigger
CCreatureTrigger
CSequenceTrigger
CBooleanTrigger
CTimerTrigger
CVariableTrigger
CObjectTrigger
CMoreMassTrigger
Disturbance, CWaterDisturbance
CMagnet, MasterMagnet
SlaveMagnet
CAnimal
CGun
CMuzzleFlash
CHitSpang
CEntityWater
CTerrainObj
CSocket
IGNORE
CSubsystem
CEntityAttached
CSky
CLightDirectional
CTest
Settings
Player
Player Settings
AI Command
TerrainPlacement
Teleport, Marker
CParticles
Here begin the various values, starting with CInstance values:

Code: Select all

Class
Mesh
Physics
CParticles groups:

Code: Select all

Min
Max

Code: Select all

InitialState
MinHighTime
MaxHighTime
MinLowTIme
MaxLowTime
Toggle

Code: Select all

Close
Decay
SpangCount

Code: Select all

Armour
DamageMultiplier
DamagePerSecond
Mass
Density
Elasticity
Floats
Friction
Frozen
File
Impulse
Location
Material
Moveable
Planted
Open
Ratio
RotationRatio
Reset
Shadow
Small
SoundMaterial
Substitute
Tangible
Target
Type
Value
ActionType 28:

Code: Select all

HintID

Code: Select all

Volume
ActionType 13 values:

Code: Select all

Scale
MinScale
MaxScale
ScaleLimit
FogNear
FogFar
WindSpeedX
WindSpeedY
SubDivision
FillScreen
CAnimal (and Anne?) health:

Code: Select all

CriticalHit
HitPoints
MaxHitPoints
Regeneration
ReallyDie
DieRate
Ouch
Fall
Rendering and visibility:

Code: Select all

Culling
ShadowCulling
CullMaxDist
CullMaxRadius
CullMaxDistShadow
CullMaxRadiusShadow
Priority
HardwareOnly
SoftwareOnly
NoLowRes
CameraFOV
PixelError
SubdivisionLen
AltPixelError
AltSubdivisionLen
AlwaysFace
NoCache
NoCacheAlone
CacheMul
ActionType 18 values:

Code: Select all

TeleportDestObjectName
HeightRelative
OnTerrain
SetPosition
SetOrientation
CBooleantrigger values:

Code: Select all

FireDelay
FireCount
FireExpression
Probability
FireAtZero
ResetFire
ProcessStyle
RepeatPeriod
BoundVol
SequenceDelayMin
SequenceDelayMax
CCollisionTrigger values:

Code: Select all

Element1
Element2
SoundMaterial1
SoundMaterial2
MinVelocity
MaxVelocity
CCreatureTrigger values:

Code: Select all

CreatureDie
CreatureWake
CreatureSleep
CreatureCriticalDamage
CreatureDamagePoints
EvaluateAll
ActionType 0, 1, 2, 3 (audio) values:

Code: Select all

MasterVolumeMin
MasterVolumeMax
ActionType
Sample
SpatialType
StopAfterFade
Attenuation
BoundaryVolume
MaxVolDistance
Emitter
Frustum
Mute
OutsideVolume
Looped
LoopCount
MaximumDistance
VolumeFader
Attach
ActionType 4 values:

Code: Select all

Bitmap
Center
Discard
XPos
YPos
ActionType 5 values:

Code: Select all

FogType
FogPower
FogHalf
ActionType 6 values:

Code: Select all

AmbientLight
FarClipPlane
NearClipPlane
CObjectTrigger values:

Code: Select all

UseObject
PickUpObject
PutDownObject
ActionType 27?

Code: Select all

TriggerName
ActionType 7 values:

Code: Select all

TrrPixelTol
TrrPixelTolFar
TrrNoShadowDist
TrrNoTextureDist
TrrNoDynTextureDist
TrrMovingShadows
ActionType 12 values?

Code: Select all

NearTolerance
FarTolerance
NearZ
FarZ
FarZNo
SortPixelTol
MaxNumToSort
Sort2PartAt
Sort4partAt
TerrNearTolerance
TerrFarTolerance
TerrNearZ
TerrFarZ
UseSeperateTol
ActionType 8 values?

Code: Select all

PixelRatio
MinPixels
CacheAge
CacheActive
CacheIntersect
CLocationTrigger values:

Code: Select all

CreatureEnterCount
CreatureLeaveCount
PlayerInTrigger
PlayerLeaveTrigger
PlayerEnterTrigger
ObjectInTrigger
ObjectLeaveTrigger
ObjectEnterTrigger
CreatureIntrigger
CreatureLeaveTrigger
CreatureEnterTrigger
TriggerActivate
PointTrigger

Code: Select all

ObjectName
Enable
Query
ActionType 16:

Code: Select all

LevelName
ActionType 26:

Code: Select all

AnimationName
CSequenceTrigger values:

Code: Select all

SequenceListenNames
SequenceOrderNames
SequenceEvalNowNames
SequenceFalsetriggerName

Code: Select all

X
Z
CMagnet values:

Code: Select all

Breakable
BreakStrength
Delta
Drive
Delay
AngleMin
AngleMax
CMagnet
Instance
Gender
Magnet
MasterObject
RestoreStrength
SlaveMagnet
SlaveObject
XTFree
YTFree
ZTFree
XFree
YFree
ZFree
HandPickup
ShoulderHold
CEntityWater values:

Code: Select all

ResolutionRatio
CWaterDisturbance values:

Code: Select all

Strength
Interval
Radius
ActionType 29 values:

Code: Select all

AudioEnvironment
ReverbVolume
ReverbDecay
ReverbDamping
Object rendering:

Code: Select all

Bumpiness
Bumpmaps
CacheIntersecting
Detail1
Detail2
Detail3
Detail4
DetailShadow
Diffuse
Emissive
Texture
Merge
Normals
Curved
CAnimal stuff:

Code: Select all

NumDoubleJoints
NumJoints
PRadius
PVA
Object lighting:

Code: Select all

Reflect
Refract
RefractIndex
Specular
SpecularAngle
Split
Visible
Wrap
Unlit
Color Look-Up Table:

Code: Select all

ClutStartColor
ClutStopColor
ClutReflectionColor
DefaultClutStartColor
DefaultClutStopColor
DefaultClutReflectionColor
ActionType 14 values:

Code: Select all

AlphaWaterProperties
NonAlphaWaterProperties
$ boxes for CAnimal objects and Anne:

Code: Select all

Body
Foot
LeftFoot
RightFoot
LeftRearFoot
RightRearFoot
Hand
Head
Neck
Tail
ReverseKnees

Code: Select all

SubMaterial(00-99)
SubMaterialEnd
Animation values:

Code: Select all

Anim(00-99)
AnimB(00-99)
PLACEHOLDER
Frame
FreezeFrame
TrackTwo
DeltaX
DeltaY
AnimSubMaterial

Code: Select all

Vertex(000-999)
VERTEX_PLACEHOLDER
Model(00-99)
MODEL_PLACEHOLDER
A(00-99)
A_PLACEHOLDER
CSky values:

Code: Select all

Height
Alpha
R
G
B
AlphaChannel
MipMap
SkyFlatColour
Intensity
CGun values:

Code: Select all

Ammo
MaxAmmo
ROF
AutoFire
AltAmmoCount
AmmoPickup
AmmoAlmostEmpty
AmmoHalfFull
AmmoFull
AmmoReallyFull
Damage
TranqDamage
EmptyClipSample
RingSample
Range
Kick
Push
Barrel
RecoilOrg
RecoilForce
MFlashOrg
MFlashDuration
RandomRotate
MFlashObject(0-?)
MUZZLE_PLACEHOLDER
BOGUS
CAnimal (dinosaur) activities:

Code: Select all

ActEat
ActBite
ActJumpBite
ActFeint
ActRam
ActDrink
ActShoulderCharge
ActTailSwipe
ActOuch
ActHelp
ActHowl
ActSnarl
ActCroon
ActDie
ActLookAt
ActTaste
ActSniffTarget
ActCockHead
ActMoveToward
ActJump
ActMoveAway
ActDontTouch
ActWander
ActStalk
ActCircle
ActPursue
ActFlee
ActStayNear
ActStayAway
ActJumpBack
ActGetOut
ActDash
ActApproach
ActMoveBy
ActRearback
ActBackAway
ActCower
ActGlare
ActSniff
ActLookAround
ActNothing
ActTestHeadCock
ActTestHeadOrient
ActTestWagTail
ActTestHeadPosition
ActTestMouth
CAnimal (dinosaur) values:

Code: Select all

Action(00-99)
Fear
Love
Anger
Curiosity
Hunger
Thirst
Fatigue
Pain
Solidity
Archetype
AIType
AIMass
Danger
HumanFear
HumanLove
HumanAnger
HumanCuriosity
HumanHunger
HumanThirst
HumanFatigue
HumanPain
HumanSolidity
DamageFear
DamageLove
DamageAnger
DamageCuriosity
DamageHunger
DamageThirst
DamageFatigue
DamagePain
DamageSolidity
Bravery
Team
Speed
Mouth
AI
Climb
Dinosaur
Pathfind
Vocal
TerrainPathfinding
SenseTerrain
SenseObjects
SenseAnimates
WakeUp
Sleep
StayNearMax
StayNearOK
StayNearTarget
StayAwayMin
StayAwayOK
StayAwayTarget
BiteTargetDistance
FeintTargetDistance
Width
HeadReach
TailReach
ClawReach
JumpDistance
JumpUp
JumpDown
WalkOver
WalkUnder
JumpOver
CrouchUnder
MoveableMass
UpAngle
DownAngle

Code: Select all

NodesPerSec
MaxNodes
TimeToForgetNode
TimeToForgetInfluence
MaxPathLength
MaxAStarSteps
CParticles values:

Code: Select all

Solid
Dust
Log
Number
Velocity
Lifespan
Size
Length
Gravity
StuckGravity
Spread
Threshold
ActionType 34 values:

Code: Select all

TextPosition
TextDisplayTime
TextAtTop
OverlayText
ResourceID
Last edited by machf on Sat May 12, 2007 4:39 am, edited 11 times in total.
Visit The Carnivores Saga - a forum devoted to modding Action Forms' Carnivores, Carnivores 2 and Carnivores: Ice Age games
Tres WIP: updated T-Script Reference and File Formats documents
Sound name listings for the Demo (build 117), Retail (build 116), Beta 103, Beta 99, Beta 97, Beta 96, Build 55, PC Gamer Alpha (build 32) and E3 1998 Alpha (build 22) TPA files
chronzerg
Albertosaurus
Albertosaurus
Posts: 2087
Joined: Mon Jan 10, 2005 10:13 pm

Post by chronzerg »

Wow, you took some time making that list I'm sure. I wonder what the "Amour Value" for "CInstance" is.
User avatar
Draconisaurus
T-Rex Killer
T-Rex Killer
Posts: 14045
Joined: Mon Dec 06, 2004 5:21 pm
Antispam: No
Location: Isla Sorna
Contact:

Post by Draconisaurus »

Machf... that is very cool. Just finished going through them. I may end up testing some on my own... want to see what "TextAtTop" could do. :) Also, char???! Wow! I don't think anyone knew trespasser supported that datatype. There might not be any known values that currently use it... and one might as well just use int anyway, which is why I think we've never seen char used. But, it's possible BR could use chars in one of his new action types...? Would be interested to see what he has to say about that (hoping he reads this).
User avatar
machf
T-Rex Killer
T-Rex Killer
Posts: 12368
Joined: Thu Apr 24, 2003 11:20 pm
Location: Lima, Peru
Contact:

Post by machf »

Well, 'c' meaning 'char' is actually a guess (hence the '?' at the end). The other datatypes (b, i, f, s) are evident, as they are used everywhere.
Visit The Carnivores Saga - a forum devoted to modding Action Forms' Carnivores, Carnivores 2 and Carnivores: Ice Age games
Tres WIP: updated T-Script Reference and File Formats documents
Sound name listings for the Demo (build 117), Retail (build 116), Beta 103, Beta 99, Beta 97, Beta 96, Build 55, PC Gamer Alpha (build 32) and E3 1998 Alpha (build 22) TPA files
Slugger
-=TresCom Developer=-
-=TresCom Developer=-
Posts: 4720
Joined: Sat Jun 12, 2004 6:52 pm
Antispam: No
Location: Atlanta

Post by Slugger »

Impressive...that took some time digging through the exe, eh?

I'll tell you right now, that some of those values are only used internally by Tres, and we don't have access to them.

@chronzerg - Anne has the armor value, it's used in $AnneBody.
0066521C: 'Cannot create local swap file - Is Trespasser installed??',0Ah,0
"Cold lino was the driving force behind world power!"
User avatar
machf
T-Rex Killer
T-Rex Killer
Posts: 12368
Joined: Thu Apr 24, 2003 11:20 pm
Location: Lima, Peru
Contact:

Post by machf »

I think these ones I listed are the ones which are accessible... at least judging by the way they're grouped. I skipped other parts which didn't relate. You'll notice that most of the ones listed here appear also in Andres' t-script reference (which I used as a guide/roadmap).

Now, my idea is that any so far unidentified ones may be related to unused (in the retail game) actiontypes. I was trying to see if there was any relation between the order in which the various classes are listed and the order teh various values are grouped. I also attempted to get an idea of what some unused values might be used for by looking at other values grouped right before or after it.
Visit The Carnivores Saga - a forum devoted to modding Action Forms' Carnivores, Carnivores 2 and Carnivores: Ice Age games
Tres WIP: updated T-Script Reference and File Formats documents
Sound name listings for the Demo (build 117), Retail (build 116), Beta 103, Beta 99, Beta 97, Beta 96, Build 55, PC Gamer Alpha (build 32) and E3 1998 Alpha (build 22) TPA files
User avatar
Draconisaurus
T-Rex Killer
T-Rex Killer
Posts: 14045
Joined: Mon Dec 06, 2004 5:21 pm
Antispam: No
Location: Isla Sorna
Contact:

Post by Draconisaurus »

Code: Select all

ResolutionRatio
Strength
Interval
Radius
BTW I believe these are for CEntityWater, CWaterDisturbance, or both. I know the first one goes to water, and the next two are for the disturbance, perhaps the third is an unknown one from disturbance.

Code: Select all

ObjectName
Enable
Query
These must be for ActionType 15. It was discovered by Big Red I believe, we never figured out exactly what it was for... I tried using it to make objects in the RapValley pond start floating around before you got there but it didn't work.

Code: Select all

group Trig_EnableFloaters00 = {
    string Class = "CLocationTrigger"
    bool PlayerEnterTrigger = true
    int FireCount = 1
    group Action00 = {
        int ActionType = 15
        string ObjectName = "PylwFuelBarrel00-02"
        bool Enable = true
    }
...
Slugger could you point out which values you think are internal? I thought I recognized basically all of them....
Big Red
-=TresCom Developer=-
-=TresCom Developer=-
Posts: 768
Joined: Mon Dec 13, 2004 7:42 pm
Location: Canada
Contact:

Post by Big Red »

Machf... that is very cool. Just finished going through them. I may end up testing some on my own... want to see what "TextAtTop" could do. Also, char???! Wow! I don't think anyone knew trespasser supported that datatype. There might not be any known values that currently use it... and one might as well just use int anyway, which is why I think we've never seen char used. But, it's possible BR could use chars in one of his new action types...? Would be interested to see what he has to say about that (hoping he reads this).
Yes, char is a valid data type (class CCharValue), but it's not used by any of the original code. It's rather trivial, a case of String of size 1... so you wouldn't do much with it, except maybe for an input system which we know is pretty freeform in the game. They probably included it as a C++ novelty.
These must be for ActionType 15. It was discovered by Big Red I believe, we never figured out exactly what it was for... I tried using it to make objects in the RapValley pond start floating around before you got there but it didn't work.
I have a list of all the 36 AT class names somewhere... I'm documenting stuff at the moment, so when that's done I'll put up the list along with other info. I don't think that "Query" goes with AT15, though.

edit: Ah, I had put the list of the ATs in the ATX docs after all...


"
These are the names of the 36 default Trespasser ActionTypes
as they would have appeared in the Trespasser source. They
are, in truth, the names of the classes of each ActionType.

AT00 - CVoiceOverAction
AT01 - CAmbientAction
AT02 - CMusicAction
AT03 - CFadeMusicAction
AT04 - CShowOverlayAction
AT05 - CSetFogAction
AT06 - CSetRendererAction
AT07 - CSetTerrainAction
AT08 - CSetImageCacheAction
AT09 - CSetAIAction
AT10 - CSetPhysicsAction
AT11 - CSubstituteMeshAction
AT12 - CSetSortAction
AT13 - CSetSkyAction
AT14 - CSetAlphaWaterAction
AT15 - CWaterOnOffAction
AT16 - CLoadLevelAction
AT17 - CSetAnimatePropertiesAction
AT18 - CTeleportAction
AT19 - CSaveLevelAction
AT20 - CMagnetAction
AT21 - CAnimateTextureAction
AT22 - CHideShowAction
AT23 - CSoundEffectAction
AT24 - CWakeAIAction
AT25 - CDelayAction
AT26 - CScriptedAnimationAction
AT27 - CSetVariableTriggerAction
AT28 - CSetHintAction
AT29 - CAudioEnvironmentAction
AT30 - CSubstituteAIAction
AT31 - CEndGameAction
AT32 - CControlPlayerAction
AT33 - CAISystemAction
AT34 - CTextAction
AT35 - CWaterDisturbanceAction
"

It would be possible to get an exact list of which values are associated with which AT by looking through the assembly code; that's what I did with the list of unknown AT values, get all the value names and types the game "officially" scans for and uses in the code itself. However, it just happens to be a horribly long process which I doubt anybody would truly want to take part in, even if I explained it thoroughly (you'd also have to know assembly).
Trespasser ATX modification web site:
http://atx.trescom.org/
User avatar
machf
T-Rex Killer
T-Rex Killer
Posts: 12368
Joined: Thu Apr 24, 2003 11:20 pm
Location: Lima, Peru
Contact:

Post by machf »

Time to update the t-script reference documentation, I guess...
Visit The Carnivores Saga - a forum devoted to modding Action Forms' Carnivores, Carnivores 2 and Carnivores: Ice Age games
Tres WIP: updated T-Script Reference and File Formats documents
Sound name listings for the Demo (build 117), Retail (build 116), Beta 103, Beta 99, Beta 97, Beta 96, Build 55, PC Gamer Alpha (build 32) and E3 1998 Alpha (build 22) TPA files
User avatar
Draconisaurus
T-Rex Killer
T-Rex Killer
Posts: 14045
Joined: Mon Dec 06, 2004 5:21 pm
Antispam: No
Location: Isla Sorna
Contact:

Post by Draconisaurus »

OMG Big Red that's awesome.... CWaterOnOffAction?!! Whoa! Fascinating, I'll have to look into some of this.

Machf I agree, we need a new t-script reference page. Some things on the original page are just plumb wrong, such as "PlayerExitTrigger" which should be "PlayerEnterTrigger" and a few other things, not to mension all the discoveries about new ATs...
User avatar
machf
T-Rex Killer
T-Rex Killer
Posts: 12368
Joined: Thu Apr 24, 2003 11:20 pm
Location: Lima, Peru
Contact:

Post by machf »

I bet these are for ActionType 8, "Set Image Cache":

Code: Select all

NearTolerance
FarTolerance
NearZ
FarZ
FarZNo
SortPixelTol
MaxNumToSort
Sort2PartAt
Sort4partAt
TerrNearTolerance
TerrFarTolerance
TerrNearZ
TerrFarZ
UseSeperateTol
PixelRatio
MinPixels
CacheAge
CacheActive
CacheIntersect
Some may be additional parameters for ActionType 7.

And these may be for ActionType 4, "Show Overlay":

Code: Select all

Attach
Bitmap
Center
Discard
XPos
YPos
Sounds to me like this would display a bitmap on the screen? Useful for some type of HUD?

@BigRed: I'm listening, in case you want to give more details about the process...
Visit The Carnivores Saga - a forum devoted to modding Action Forms' Carnivores, Carnivores 2 and Carnivores: Ice Age games
Tres WIP: updated T-Script Reference and File Formats documents
Sound name listings for the Demo (build 117), Retail (build 116), Beta 103, Beta 99, Beta 97, Beta 96, Build 55, PC Gamer Alpha (build 32) and E3 1998 Alpha (build 22) TPA files
Slugger
-=TresCom Developer=-
-=TresCom Developer=-
Posts: 4720
Joined: Sat Jun 12, 2004 6:52 pm
Antispam: No
Location: Atlanta

Post by Slugger »

machf wrote:Sounds to me like this would display a bitmap on the screen? Useful for some type of HUD?
I tried this (I was attempting to get "Round #" to flash up on the screen) and Tres crashed whenever I entered the trigger. Granted, it could've been scripted incorrectly. Perhaps with these new values, and some free time, I'll try it again (although anyone else is welcome to beat me to it :) ).
0066521C: 'Cannot create local swap file - Is Trespasser installed??',0Ah,0
"Cold lino was the driving force behind world power!"
Post Reply