
Slap Happy
Joined: Feb 2, 2009
Life ain't fair, buy a helmet.
|
Posted: Jan 9, 2010 05:38 PM
Msg. 1 of 13
Is it possible with HEK or other programs to extract scripts from maps? If so, how and what program?
I want to learn more about scripting, i've done some very small scripts - just wondering if possible to extract and see scripts so I can teach myself how by seeing how others have done it.
Edit: HEK not KEK, typo Edited by Slap Happy on Jan 9, 2010 at 05:52 PM
|
|
|

Gamma927
Joined: Jun 12, 2008
Steam: gamma927
|
Posted: Jan 9, 2010 05:54 PM
Msg. 2 of 13
Zteam released the campaign scripts on Halomaps. You could look through those if you'd like. Edited by Gamma927 on Jan 9, 2010 at 05:54 PM
|
|
|

Slap Happy
Joined: Feb 2, 2009
Life ain't fair, buy a helmet.
|
Posted: Jan 9, 2010 05:57 PM
Msg. 3 of 13
HEK - and Kornman v2 is just guerilla . . . does it extract scripts? (don't think so)
|
|
|

Gamma927
Joined: Jun 12, 2008
Steam: gamma927
|
Posted: Jan 9, 2010 08:09 PM
Msg. 4 of 13
You mean the ones I wrote part of?
|
|
|

AHS_SONIC
Joined: Dec 9, 2006
mmm toasty
|
Posted: Jan 10, 2010 04:25 AM
Msg. 5 of 13
i remember back in my day we didnt have any fancy script extraction
if you wanted to make a combination of coldsnap and hugeass, you had to retype all the scripts yourself. and yes. it was hell.
but zteam has succesfuly removed all possible script functions you see in halo from the campaigns. you can rebuild other functions off of those ones. but in terms of an application removing scripts from a map, as far as i know, current halo mapping technology does not permit this.
however
sometimes you can extract a scenario from a map, and, assuming you have not opened this scennario in either sapien or geurilla, you can open the scenerio file itself with notepad and sometimes the scripts will show up. this doesnt usually give you all of them though, just a few functions.
i do hope this helps!
|
|
|

OoEWolf
Joined: Oct 10, 2008
Injuriouswolf
|
Posted: Aug 19, 2010 03:04 PM
Msg. 6 of 13
You mentioned coldsnap and hugeass, would anyone happen to know where I could get some of the scripts used in coldsnap particularly the ones used for the longsword?
|
|
|

Dwood
Joined: Oct 23, 2007
Judge Ye Therefore
|
Posted: Aug 19, 2010 03:20 PM
Msg. 7 of 13
Sonic- We STILL don't have any script extraction :) Even though I'm trying to write an external script compiler
|
|
|

Hydrogen
Joined: Dec 6, 2009
Wort Wort Wort...
|
Posted: Aug 19, 2010 09:09 PM
Msg. 8 of 13
omg dwood back from the dead :D
also what sonic said is true i can view scripts like he said
|
|
|

Architect of Halo
Joined: May 15, 2009
Justice for all
|
Posted: Aug 19, 2010 09:19 PM
Msg. 9 of 13
Really...
|
|
|

Mysterion
Joined: Aug 9, 2008
Nice shot, but too bad your @$$ just got SACKED!!!
|
Posted: Aug 19, 2010 09:22 PM
Msg. 10 of 13
Just a couple of tips: When modding a map in Sapien, if you don't compile it and just save your changes, when you build your cache file in Tool, the original scripts should all remain intact. If you open the map in Guerilla to look at settings, etc., but just exit and don't save it, the original scripts should also remain intact. If you save the map when opened in Guerilla, all original scripts will be deleted.
I had to recreate all of the original scripts from scratch in extinction_ai, but on coldsnapwar and snowtorngrove_ai I kept them all intact.
This is all I could get from the original coldsnap scripts as found in the scenario file: begin if != unit_get_health red_fighterbomber_1 set fb1_alive object_create_anew fb_hull_1 objects_attach attach fb_front_1 fb_tail_1 fb_left_engine_1 fb_right_engine_1 fb_left_wing_1 fb_right_wing_1 vehicle_test_seat_list w-driver players unit_kill vehicle_driver g-driver vehicle_gunner or fb-stand fb-crouch unit list_get vehicle_riders objects_detach object_teleport killme red_fighterbomber_2 fb2_alive fb_hull_2 fb_front_2 fb_tail_2 fb_left_engine_2 fb_right_engine_2 fb_left_wing_2 fb_right_wing_2 rider_ejection multiplayer_draw_teammates_names hog1 hogs hog2 hog3 hog4 hog5 hog6 hog7 hog8 hog9 hog0 bhog0 bhog1 bhog2 bhog3 bhog4 bhog5 bhog6 bhog7 rhog0 rhog1 mythos mythos_alive cd0 cd1 ghosts tank1 tank2 tank3 fb1 fb2 cinematic_set_title coldsnap and = unit_get_shield fb1_kill fb2_kill volume_test_object kill_xone object_destroy mhull fg0 fg1 fg2 fg3 fg4 fg5 fg6 fg7 mech0 mech1 mech2 mech3 mech4 mech5 f1tpe jet1 f1tpx jet2 jet3 jet4 f2tpe f2tpx j1tpe j1tpx j2tpe j2tpx j3tpe j3tpx j4tpe j4tpx j5tpe jet5 j5tpx jet6 jet7 jet8 j6tpe j6tpx j7tpe j7tpx j8tpe j8tpx m1tpe m1tpx h0tpe h0tpx h1tpe h1tpx h2tpe h2tpx h3tpe h3tpx h4tpe h4tpx e0tpe e0tpx e1tpe e1tpx developer_mode cheat_deathless_player cheat_super_jump cheat_jetpack rasterizer_wireframe > unit_set_current_vitality * vehicle_unload drop_mark
activate_team_nav_point_flag orange_landingpad default o_pad green_landingpad g_pad player deactivate_team_nav_point_flag blue_base red_base red_flag_area orange_pickup unit_get_current_flashlight_state flashlight1 cargoa green_pickup flashlight2 cargob cargo w-gunner w-passenger scorpion-driver scorpionlf scorpionlb scorpionrb scorpionrf sw-rider sw-driver g0tpe g0tpx g1tpe g1tpx g2tpe g2tpx g3tpe g3tpx g4tpe g4tpx g5tpe g5tpx g6tpe g6tpx g7tpe g7tpx g8tpe g8tpx g9tpe g9tpx g10tpe g10tpx g11tpe g11tpx u0tpe u0tpx u1tpe u1tpx u2tpe u2tpx u3tpe u3tpx tp_door7 tp_door8 object_destroy_containing race slayer object_create_anew_containing ctf cs object_set_scale race0 race2 race3 print condom removed structure_bsp_index switch_bsp refresh1 refresh2 refresh3 gametype ~ctfsetup ~slayersetup ~racesetup ~oddballsetup condom replaced choosen oddball slayer_mythos slayer_bhog0 slayer_bhog1 slayer_bhog2 slayer_bhog3 slayer_bhog4 slayer_bhog5 slayer_bhog6 slayer_bhog7 slayer_tank1 slayer_tank2 slayer_jet4 slayer_jet5 slayer_jet6 slayer_jet7 slayer_hog0 slayer_hog1 slayer_hog2 slayer_hog3 slayer_hog4 slayer_hog5 slayer_hog6 slayer_hog7 slayer_hog8 slayer_hog9 slayer_jet0 slayer_jet1 slayer_jet2 slayer_jet3 slayer_fb_1 slayer_fb_2 player00 pit red_pit blue_pit
Edited by Mysterion on Aug 19, 2010 at 09:27 PM
|
|
|

Hydrogen
Joined: Dec 6, 2009
Wort Wort Wort...
|
Posted: Aug 19, 2010 09:35 PM
Msg. 11 of 13
i dont see the day and night script :[
|
|
|

ghost901
Joined: Mar 4, 2010
|
Posted: Aug 20, 2010 08:42 PM
Msg. 12 of 13
Anyone know how to setup this part of the script? begin if != unit_get_health red_fighterbomber_1 set fb1_alive object_create_anew fb_hull_1 objects_attach attach fb_front_1 fb_tail_1 fb_left_engine_1 fb_right_engine_1 fb_left_wing_1 fb_right_wing_1 vehicle_test_seat_list w-driver players unit_kill vehicle_driver g-driver vehicle_gunner or fb-stand fb-crouch unit list_get vehicle_riders objects_detach object_teleport killme red_fighterbomber_2 fb2_alive fb_hull_2 fb_front_2 fb_tail_2 fb_left_engine_2 fb_right_engine_2 fb_left_wing_2 fb_right_wing_2 Edited by ghost901 on Aug 20, 2010 at 08:43 PM
|
|
|

Mysterion
Joined: Aug 9, 2008
Nice shot, but too bad your @$$ just got SACKED!!!
|
Posted: Aug 20, 2010 08:51 PM
Msg. 13 of 13
I starting to put some of the scripts together, but became impatient...I'll have to look and see if I correctly structured that particular part of the file.
|
|
|