ZylonBane on 7/1/2009 at 21:14
Quote Posted by LarryG
hmm ...
Command - Execute commands might open things up a bit.
No.
LarryG on 7/1/2009 at 21:32
Then what does it mean?
Nameless Voice on 7/1/2009 at 22:13
Both yes and no.
Yes, that service can run console commands on a trigger.
No, it cannot run DromEd-specific console commands in Thief2.exe.
In other words, you can't have it activate or deactivate light_bright, because the light_bright command doesn't work in Thief2.exe.
You can use it to play movies, display images, quicksave, put away weapons, select an item, etc. - any command that works in the game.
For a complete list of commands that work in Thief2.exe, type dump_cmds t2commands.txt into Thief 2's ingame console (while running through Thief2.exe not DromEd.exe)
LarryG on 7/1/2009 at 23:20
Cool.
[INDENT]
game_message : Display a message on the game screen
contrast : Set the contrast
gamma : Set the gamma
gamma_delta : Add float to gamma
gamma_up : increase gamma
gamma_down : decrease gamma
flash : Make a blinding flash
[/INDENT]
These might be useful. You could do a dance with the gamma levels ... and say "Howdy!"
[INDENT]
set : set a config var: set <var> <value>
get : Look up a config value: get <var>
eval : Exec a command with config substitution: eval <var> <cmd>
ifdef : exec a command if a config variable is defined: ifdef <var> <cmd>
ifndef : exec a command if a config variable is undefined: ifndef <var> <cmd>
unset : Unset a config variable: unset <var>[/INDENT]
These sound interesting. I wonder what config variables they mean? The ones in these files: CAM.CFG, DARK.CFG, DARKINST.CFG, INSTAL.CFG, USER.CFG ?? Where are all the config options documented?
[INDENT]main_volume : main volume 0...100
ambient_volume : ambient relative volume 0...100
main_volume_up : inc main volume
main_volume_down : dec main volume
ambient_volume_up : inc ambient relative volume
ambient_volume_down : dec ambient relative volume[/INDENT]You can play with sound, but not light! Bummer.
R Soul on 8/1/2009 at 01:07
Quote Posted by LarryG
Cool.
set : set a config var: set <var> <value>
..
These sound interesting. I wonder what config variables they mean? The ones in these files: CAM.CFG, DARK.CFG, DARKINST.CFG, INSTAL.CFG, USER.CFG ?? Where are all the config options documented?
There is a list on this page:
(
http://whoopdedo.org/projects.php?dark)
But I don't know if any of them can be set from the console (or the CommandControl script from tnhScript) or if they can only be set from a cfg file.
LarryG on 8/1/2009 at 01:40
If this is the list of config settings that can be changed in the command console, then there may be some additional things that can be done by scripts, if there were a script which executed the command console ....
Code:
; language
'no_diskspace_%s'
'no_directsound_%s'
'no_directdraw_%s'
'no_d3ddevice_%s'
'no_cd_msg_%s'
'no_cd_title_%s'
; loop name, language
'metasnd_game_%s_%s'
; haven't a clue
'terrprop_%2.2d'
; loop name, ordinal
'%s_alt_font_%d'
; movie name
'%s_text_bg'
; 'game_' or 'edit_'
'%sscreen_size'
'%sscreen_depth'
'%sscreen_flags'
'%sfull_screen'
'%shardware'
'ai_no_combat_rehosting'
'ai_no_distribution'
'ai_no_save_load'
'ai_schedule'
'airbar_sparseness'
'airbar_tolerance'
'AIUpdate'
'always_play_intro'
'ambient_volume'
'attenuation_factor'
'automap_note_font'
'breakkey'
'cash_bonus'
'cd_path'
'character_detail'
'contrast'
'contrast_frame'
'contrast_time_scale'
'd3d_driver_index'
'data_path'
'default_game_palette'
'default_sfx_channels'
'default_text_bg'
'dinput_spew'
'disable_modal_tool_frob'
'disallow_hardware'
'display'
'drkgame_overlay'
'elliptic_pick_mod'
'enhanced_sky'
'explode_torque'
'eyeloc'
'fail_d3d_enum'
'fail_ddraw_check'
'fail_dsound_check'
'file'
'fogging'
'force_8_bit_sound'
'ForceCameraOverlayComplex'
'ForceCameraOverlaySimple'
'frame_no'
'friction'
'game'
'gamma'
'ghost_local_frame_rate'
'ghost_local_process_ms'
'halo_ai_offset'
'halo_ai_pushout'
'halo_ai_radius'
'halo_player_offset'
'halo_player_offset2'
'halo_player_pushout'
'halo_player_pushout2'
'halo_player_radius'
'halo_player_radius2'
'halo_player_set2offset'
'has_no_rudder'
'has_no_throttle'
'head_speed'
'head_zone'
'heapcheck'
'heapsleep'
'highlight_level'
'hpbar_ang'
'hpbar_model'
'hpbar_spin'
'hpbar_zoom'
'install_path'
'inv_enabled'
'inv_item_timeout'
'inv_model_zoom'
'inv_obj_height'
'inv_obj_width'
'inv_status_height'
'inv_status_margin'
'inv_transit_time'
'joykey_repeat_delay'
'joykey_repeat_interval'
'joystick_sensitivity'
'kb_country'
'kbd_turn_accelerate'
'kbd_turn_decelerate'
'kbd_turn_rate'
'kbd_turn_reverse_acc'
'keybind_path'
'language'
'large_read_buffers'
'light_min'
'light_mul'
'load_old_saves'
'master_volume'
'max_refs'
'max_sfx_3d'
'max_spring_vel'
'mem_cap'
'memory_cap'
'mesh_detail_dist'
'metagame_volume'
'mixer_rate'
'MnvrTrace'
'monolog'
'movie_volume_factor'
'multithread'
'net_avatar'
'net_client'
'net_frame_max_msgs'
'net_host'
'net_media'
'net_msg_frequency'
'net_no_keepalive'
'net_player_name'
'net_player_timeout'
'net_port'
'net_session'
'net_simple_avatars'
'net_voice'
'no_check_in_world'
'no_endgame'
'no_metagame_sound'
'no_movies'
'no_network'
'no_sound'
'nomonodebug'
'obj_max'
'obj_min'
'ObjTextures16'
'only_check_path'
'only_movies'
'pan_factor'
'phys_max_frame_len'
'playback'
'player_crouch_model'
'player_model'
'progress_dial_rate'
'quit_from_endgame'
'record'
'ReducedRemoteCameraEffects'
'relax_instant'
'relax_on_move'
'render_weather'
'report_resource_stats'
'resname_base'
'restart_on_load'
'reverse_stereo'
'room_portal_warn'
'roomportal_warn'
'RoomPropSpew'
'RoomPropSpewStats'
'safe_texture_manager'
'save_transients'
'script_module_path'
'scrn_loop_fail_msg'
'sfx_channels'
'sfx_device'
'sfx_eax'
'sfx_gain_scale'
'sfx_log_room_transitions'
'sfx_mixer_timeout'
'sfx_no_asynch'
'sfx_no_asynch_all'
'sfx_preset_3d_channels'
'sfx_source_reverb_mix'
'sfx_vol_2d'
'sfx_vol_2d_hw'
'sfx_vol_3d'
'sfx_vol_3d_hw'
'sfx_vol_music'
'show_weapon'
'skip_ddraw_check'
'skip_dsound_check'
'skip_intro'
'skip_starting_checks'
'SlowFrame'
'Smooth'
'snd3d'
'snd3d_distance'
'snd3d_rolloff'
'sndscrpt_kill_restart'
'spew_sim_time'
'springcap'
'starting_mission'
'TerrTextures16'
'test_copy_protect'
'tool_frob_center'
'trait_cache_flags'
'trait_cache_size'
'variant_path'
'vismeter_frame_skip'
'vismeter_refresh'
'vismeter_zoom'
'warn_collision_count'
'water_alpha'
'world'
qolelis on 20/1/2009 at 20:06
Quote Posted by Nameless Voice
* GetVelocity - Retrieve the current speed of an object.
Then what do you say about a script that could get an object's velocity twice (with a slight pause (set in a parameter) in between and then if both velocities are above a given value (set in another parameter) (v1 > V and v2 > V) the script sends TurnOn, and TurnOff otherwise?
With such a script I should be able to simplify my RopeCrate-setup by removing the emitter and the helper object and put everything into one single concrete object. Making a concrete RopeCrate would than take only two extra adjustments (instead of five).
My design note for such a script could then look something like:
Code:
NVMovementTriggerThreshold=0.5; NVMovementTriggerPeriod=100;
NVMovementTriggerTOn="Awake"; NVMovementTriggerTOff="Asleep";
NVMovementTriggerTDest="[Me]"
Getting the velocity twice takes care of (or at least reduces the likelihood of) the case where the crate is thrown straight up and gets near-zero velocity at its highest altitude. There could be an extra parameter for setting the number of measure points (one or two (more than two?)).
The threshold gives the crate a certain degree of inertia.
LarryG on 18/2/2009 at 18:02
How about a script to set a joint position to a specific value? Input: the joint desired, the value desired, the direction of movement (forward or reverse), and the object with the joint
Nameless Voice on 18/2/2009 at 18:35
Any particular reason not to use a Set Property receptron for that?
LarryG on 18/2/2009 at 18:38
Is a Touch stim the same as a frob?