A Community discussion forum for Halo Custom Edition, Halo 2 Vista, Portal and Halo Machinima

Home  Search Register  Login Member ListRecent Posts
  
 
»Forums Index »Halo Custom Edition (Bungie/Gearbox) »Halo CE Technical / Map Design »Help with sp level

Page 1 of 2 Go to page: · [1] · 2 · Next
Author Topic: Help with sp level (43 messages, Page 1 of 2)
Moderators: Dennis

Muscl3r
Joined: May 22, 2010

dont pray 4 easy lives...pray to be STRONGER MEN


Posted: Sep 19, 2010 09:50 PM    Msg. 1 of 43       
Upon restoring my sapien to good health, I have made my first sp level based in damnation. I have placed all ai, wepons, scenery, triggers everything.
1. However in my beta i discovered that the teleporters did not work. How do i fix this???

2. And in my second beta when I (finally) found out how to get my script to compile into level, I got this error in cmd and my debug when i tried to compile it:

09.20.10 09:40:21 reference function: _write_to_error_file
09.20.10 09:40:21 reference address: 42ca20
09.20.10 09:40:21 Couldn't read map file './toolbeta.map'
09.20.10 09:40:24 recompiling scripts after scenarios were merged.
09.20.10 09:40:24 the value of this expression (in a slot) can never be used.: 15)


3. So, here is my script if someone could just look over it and find the wonky bit in it. And I'm not too certain if (volume_test_objects corridort (players))15) is a valid script command?


(script startup dascript
(ai_allegiance "player" "human")
(game_save_no_timeout)
(volume_test_objects corridort (players))15)
(ai_place corridor_1)
(volume_test_objects corridort (players))15)
(ai_place ladder_defenders)
(volume_test_objects trencht (players))15)
(ai_place trench)
(game_save_no_timeout)
(volume_test_objects stealtht (players))15)
(ai_place stealth_area)
(game_save_no_timeout)
(volume_test_objects bibbattlet (players))15)
(ai_place middle_marines)
(ai_place middle_covenant)
(game_save_no_timeout)
(ai_follow_target_players bibbattlet)
(volume_test_objects huntsheet (players))15)
(ai_place flanker_hunter)
(ai_place flyer1)
(ai_place flyer2)
(ai_place flyer3)
(vehicle_load_magic flyer1shee B-driver (ai_actors flyer1/fly1))
(vehicle_load_magic flyer2shee B-driver (ai_actors flyer2/fly2))
(vehicle_load_magic flyer3shee B-driver (ai_actors flyer3/fly3))
(game_save_no_timeout)
(volume_test_objects roomt (players))15)
(ai_place bigroom_battle)
(game_save_no_timeout)
(volume_test_objects snipert (players))15)
(ai_place snipers)
(game_save_no_timeout)
(volume_test_objects teleporter1t (players))15)
(ai_place teleport_area1)
(volume_test_objects firefight1t (players))15)
(ai_place firefight1)
(volume_test_objects teleporter2t (players))15)
(ai_place teleport_area2)
(volume_test_objects firefight2t (players))15)
(ai_place firefight2)
(sleep_until (= (ai_living_count firefight2) 0)
(game_save_no_timeout)
(object_destroy remove_crate)
(ai_place end)
(game_won)


d4rfnader
Joined: Jul 16, 2010

Open mouth, insert sandwhich.


Posted: Sep 19, 2010 10:48 PM    Msg. 2 of 43       
it should be: (sleep_until (volume_test_objects blahblahblah (players) 15)


Muscl3r
Joined: May 22, 2010

dont pray 4 easy lives...pray to be STRONGER MEN


Posted: Sep 19, 2010 11:56 PM    Msg. 3 of 43       
Yes I thought so but I want an 'if' scenario. Like after the encounter bigroom_battle (or whatever its called) theres a teleporter and if u go thru u continue on with the mission but if u follow the path round to a sniper area it spawns a new encounter and you take all of them out. What script command would i use for this?


d4rfnader
Joined: Jul 16, 2010

Open mouth, insert sandwhich.


Posted: Sep 20, 2010 12:13 AM    Msg. 4 of 43       
it might be:

(if
(volume_test_object blahblahblah (unit (list_get (players) 0))))
(ai_place encountername)
)

that might work i'm not positive and i dont know whether or not the parentheses match lol.


Muscl3r
Joined: May 22, 2010

dont pray 4 easy lives...pray to be STRONGER MEN


Posted: Sep 20, 2010 01:30 AM    Msg. 5 of 43       
okay i changed the script around but i am still getting the same error in the debug


darkassassin14
Joined: Jul 23, 2007

El. Psy. Congroo.


Posted: Sep 20, 2010 01:57 AM    Msg. 6 of 43       
you sure it's bibbattle and not bigbattle?


d4rfnader
Joined: Jul 16, 2010

Open mouth, insert sandwhich.


Posted: Sep 20, 2010 02:27 PM    Msg. 7 of 43       
ther might be too many parentheses, check the entire script for areas that look like they have too many parentheses.


Muscl3r
Joined: May 22, 2010

dont pray 4 easy lives...pray to be STRONGER MEN


Posted: Sep 20, 2010 11:19 PM    Msg. 8 of 43       
Um, okay

So, whats a parentheses?

Or, when you compile a script into a scenario the first time does it stay in there and rejects all other scripts after that if you know what i mean?


Gamma927
Joined: Jun 12, 2008

Steam: gamma927


Posted: Sep 21, 2010 12:15 AM    Msg. 9 of 43       
Close the last parentheses. A parenthetical operator is basically the round thing that encloses stuff, in layman's terms.

Example: ( and )
Edited by Gamma927 on Sep 21, 2010 at 12:16 AM


Muscl3r
Joined: May 22, 2010

dont pray 4 easy lives...pray to be STRONGER MEN


Posted: Sep 21, 2010 01:27 AM    Msg. 10 of 43       
wow. okay thanks gamma
I also fixed the retarded last two lines of the script

well this is what was showing up in game view when I tried compiling the script again:

09.21.10 15:38:01 [dascript line 4] this is not a valid integer.: until (volume_test_objects corridort (players) 10))

09.21.10 15:38:01 recompiling scripts after scenarios were merged.
09.21.10 15:38:01 [dascript line 1] this left parenthesis is unmatched.: (script startup dascript


so now that I know that the best Halo CE modder is now involved in this thread, here is my updated version of the script for you to go over and criticise:

(script startup dascript
(ai_allegiance "player" "human")
(game_save_no_timeout)
(sleep until (volume_test_objects corridort (players) 10))
(ai_place corridor_1)
(sleep until (volume_test_objects corridort (players) 10))
(ai_place ladder_defenders)
(sleep until (volume_test_objects trencht (players) 10))
(ai_place trench)
(game_save_no_timeout)
(sleep until (volume_test_objects stealtht (players) 10))
(ai_place stealth_area)
(game_save_no_timeout)
(sleep until (volume_test_objects bibbattlet (players) 10))
(ai_place middle_marines)
(ai_place middle_covenant)
(game_save_no_timeout)
(ai_follow_target_players middle_marines)
(sleep until (volume_test_objects huntsheet (players) 10))
(ai_place flanker_hunter)
(ai_place flyer1)
(ai_place flyer2)
(ai_place flyer3)
(vehicle_load_magic flyer1shee B-driver (ai_actors flyer1/fly1))
(vehicle_load_magic flyer2shee B-driver (ai_actors flyer2/fly2))
(vehicle_load_magic flyer3shee B-driver (ai_actors flyer3/fly3))
(game_save_no_timeout)
(sleep until (volume_test_objects roomt (players) 10))
(ai_place bigroom_battle)
(game_save_no_timeout)
(sleep until (volume_test_objects snipert (players) 10))
(ai_place snipers)
(game_save_no_timeout)
(object_destroy delete1)
(object_destroy delete2)
(object_destroy delete3)
(sleep until (volume_test_objects teleporter1t (players) 10))
(ai_place teleport_area1)
(sleep until (volume_test_objects firefight1t (players) 10))
(ai_place firefight1)
(sleep until (volume_test_objects teleporter2t (players) 10))
(ai_place teleport_area2)
(sleep until (volume_test_objects firefight2t (players) 10))
(ai_place firefight2)
(sleep_until (= (ai_living_count firefight2) 0))
(game_save_no_timeout)
(object_destroy remove_crate)
(ai_place end)
(sleep_until (= (ai_living_count end) 0))
(game_won)
)



Edited by Muscl3r on Sep 21, 2010 at 01:28 AM
Edited by Muscl3r on Sep 21, 2010 at 01:42 AM


d4rfnader
Joined: Jul 16, 2010

Open mouth, insert sandwhich.


Posted: Sep 21, 2010 01:34 AM    Msg. 11 of 43       
yeah thats the correct fix you came up with.


darkassassin14
Joined: Jul 23, 2007

El. Psy. Congroo.


Posted: Sep 21, 2010 11:50 AM    Msg. 12 of 43       
isn't there suppose to be a (begin at the top? like this:

(script startup dascript
(begin


GameCreat0r
Joined: Apr 9, 2010

"Perhaps the ending has not yet been written..."


Posted: Sep 21, 2010 12:02 PM    Msg. 13 of 43       
Quote: --- Original message by: darkassassin14
isn't there suppose to be a (begin at the top? like this:

(script startup dascript
(begin


No.
Not in halo scripting.


darkassassin14
Joined: Jul 23, 2007

El. Psy. Congroo.


Posted: Sep 21, 2010 12:17 PM    Msg. 14 of 43       
um... but i tryd making scripts without it in mp maps and they failed until i put the (begin in it.


d4rfnader
Joined: Jul 16, 2010

Open mouth, insert sandwhich.


Posted: Sep 21, 2010 01:10 PM    Msg. 15 of 43       
well, there's a difference when scripting in multiplayer and single player, most scripts that function in a sp level wont work in a mp level.
Edited by d4rfnader on Sep 21, 2010 at 01:11 PM


darkassassin14
Joined: Jul 23, 2007

El. Psy. Congroo.


Posted: Sep 21, 2010 04:08 PM    Msg. 16 of 43       
ok. well then i don't know wats wrong with his script.


Muscl3r
Joined: May 22, 2010

dont pray 4 easy lives...pray to be STRONGER MEN


Posted: Sep 21, 2010 08:35 PM    Msg. 17 of 43       
yes it is bibbattlet not bigbattlet
You see, the t stands for trigger and i am just a dumbass and spelt big 'bib'.

Well, i will try anything to get the script working even tho that (begin is for mp. Who knows, might work


SlappyThePirate
Joined: Aug 24, 2009

You are irritating, I'll release nothing


Posted: Sep 21, 2010 08:56 PM    Msg. 18 of 43       
You don't need the begin unless you need a begin.
Edited by SlappyThePirate on Sep 21, 2010 at 08:56 PM


darkassassin14
Joined: Jul 23, 2007

El. Psy. Congroo.


Posted: Sep 21, 2010 10:26 PM    Msg. 19 of 43       
lol. it is suppose to begin at the beginning of the level so i think it needs a (begin so that it begins and begins to be useful. i think im beginning to get a headache from all these begins.


Muscl3r
Joined: May 22, 2010

dont pray 4 easy lives...pray to be STRONGER MEN


Posted: Sep 22, 2010 03:51 AM    Msg. 20 of 43       
that makes perfect sense!

Anyway, here is my updated script:
(also i changed the sleep until bit to sleep_until)

(script startup dascript)
(ai_allegiance "player" "human")
(game_save_no_timeout)
(sleep_until (volume_test_objects corridort (players) 15))
(ai_place corridor_1)
(sleep_until (volume_test_objects corridort (players) 15))
(ai_place ladder_defenders)
(sleep_until (volume_test_objects trencht (players) 15))
(ai_place trench)
(game_save_no_timeout)
(sleep_until (volume_test_objects stealtht (players) 15))
(ai_place stealth_area)
(game_save_no_timeout)
(sleep_until (volume_test_objects bibbattlet (players) 15))
(ai_place middle_marines)
(ai_place middle_covenant)
(game_save_no_timeout)
(ai_follow_target_players middle_marines)
(sleep_until (volume_test_objects huntsheet (players) 15))
(ai_place flanker_hunter)
(ai_place flyer1)
(ai_place flyer2)
(ai_place flyer3)
(vehicle_load_magic flyer1shee B-driver (ai_actors flyer1/fly1))
(vehicle_load_magic flyer2shee B-driver (ai_actors flyer2/fly2))
(vehicle_load_magic flyer3shee B-driver (ai_actors flyer3/fly3))
(game_save_no_timeout)
(sleep_until (volume_test_objects roomt (players) 15))
(ai_place bigroom_battle)
(game_save_no_timeout)
(sleep until (volume_test_objects snipert (players) 15))
(ai_place snipers)
(game_save_no_timeout)
(object_destroy delete1)
(object_destroy delete2)
(object_destroy delete3)
(sleep_until (volume_test_objects teleporter1t (players) 15))
(ai_place teleport_area1)
(sleep_until (volume_test_objects firefight1t (players) 15))
(ai_place firefight1)
(sleep_until (volume_test_objects teleporter2t (players) 15))
(ai_place teleport_area2)
(sleep_until (volume_test_objects firefight2t (players) 15))
(ai_place firefight2)
(sleep_until (= (ai_living_count firefight2) 0))
(game_save_no_timeout)
(object_destroy remove_crate)
(ai_place end)
(sleep_until (= (ai_living_count end) 0))
(game_won)
)


Well, that got rid of the integer prob but still in the debug:

09.22.10 17:35:15 recompiling scripts after scenarios were merged.
09.22.10 17:35:15 i expected (script ): (script startup dascript)

and i hope i didn't offend gamma with my terrible understatement


darkassassin14
Joined: Jul 23, 2007

El. Psy. Congroo.


Posted: Sep 22, 2010 03:58 AM    Msg. 21 of 43       
add the (begin thing. it might help. i got that error before. when i added the begin it went away.


SlappyThePirate
Joined: Aug 24, 2009

You are irritating, I'll release nothing


Posted: Sep 22, 2010 05:38 PM    Msg. 22 of 43       
Quote: --- Original message by: darkassassin14
add the (begin thing. it might help. i got that error before. when i added the begin it went away.
No. no. no.
You didn't put any of the script inside the (script) command.

(script startup blablah
(scriptstuff)
(scriptstuff)
(scriptstuff)
(scriptstuff)
(scriptstuff)
(scriptstuff)
)

Begins are basically only useful in (if)s, thwere you need several things to be done.
Should I post a brief scripting tut?


Gamma927
Joined: Jun 12, 2008

Steam: gamma927


Posted: Sep 22, 2010 08:19 PM    Msg. 23 of 43       
What that guy said. Although, I didn't get what he was talking about at first, so I'll simplify it for you.
Quote: --- Original message by: Muscl3r
(script startup dascript)

See this line? Remove the parentheses at the end, so it looks like:
Quote: --- Original message by: Muscl3r
(script startup dascript


darkassassin14
Joined: Jul 23, 2007

El. Psy. Congroo.


Posted: Sep 23, 2010 12:21 AM    Msg. 24 of 43       
o yea lol. i thought it was already (script startup dascript. yea do that lol. i gotta pay more attention.


MoooseGuy
Joined: Aug 10, 2008

I Approve This Message.


Posted: Sep 23, 2010 08:53 AM    Msg. 25 of 43       
Gamma, get on xfire sometime. Like. Within the next decade.
Edited by MoooseGuy on Sep 23, 2010 at 08:53 AM


darkassassin14
Joined: Jul 23, 2007

El. Psy. Congroo.


Posted: Sep 23, 2010 01:50 PM    Msg. 26 of 43       
lol yea. i rarely see you on and when you are on you have your status say "busy don't bother me" or something like that.


Gamma927
Joined: Jun 12, 2008

Steam: gamma927


Posted: Sep 23, 2010 07:09 PM    Msg. 27 of 43       
Quote: --- Original message by: MoooseGuy

Gamma, get on xfire sometime. Like. Within the next decade.
Edited by MoooseGuy on Sep 23, 2010 at 08:53 AM

I'm never on xfire on weekdays. Too much work. Posting on the forums takes about a few minutes, but dealing with everyone who bugs me takes an eternity.


Muscl3r
Joined: May 22, 2010

dont pray 4 easy lives...pray to be STRONGER MEN


Posted: Sep 25, 2010 05:20 AM    Msg. 28 of 43       
the reason i had (script startup dascript) was because its saying in the debug that the parantheses in the first line is unmatched


d4rfnader
Joined: Jul 16, 2010

Open mouth, insert sandwhich.


Posted: Sep 25, 2010 11:53 AM    Msg. 29 of 43       
yeah you match the first lines parentheses at the end of the script.


darkassassin14
Joined: Jul 23, 2007

El. Psy. Congroo.


Posted: Sep 25, 2010 05:59 PM    Msg. 30 of 43       
yea lol. you need the parentheses at the end or else the script will end before it starts lol.


Muscl3r
Joined: May 22, 2010

dont pray 4 easy lives...pray to be STRONGER MEN


Posted: Sep 25, 2010 09:54 PM    Msg. 31 of 43       
yea lol lol i have one lol parentheses lol at the end lol and its still lol coming up with an error lol


d4rfnader
Joined: Jul 16, 2010

Open mouth, insert sandwhich.


Posted: Sep 25, 2010 10:41 PM    Msg. 32 of 43       
what's the error you're getting now?


Muscl3r
Joined: May 22, 2010

dont pray 4 easy lives...pray to be STRONGER MEN


Posted: Sep 26, 2010 12:50 AM    Msg. 33 of 43       
Well i have updated my script once again so here it is:

(script startup dascript
(ai_allegiance "player" "human")
(game_save_no_timeout)
(sleep_until (volume_test_objects corridort (players)) 15)
(ai_place corridor_1)
(sleep_until (volume_test_objects corridort (players)) 15)
(ai_place ladder_defenders)
(sleep_until (volume_test_objects trencht (players)) 15)
(ai_place trench)
(game_save_no_timeout)
(sleep_until (volume_test_objects t1 (players)) 15)
(object_teleport (unit (list_get (players) 0)) tp1)
(sleep_until (volume_test_objects stealtht (players)) 15)
(ai_place stealth_area)
(game_save_no_timeout)
(sleep_until (volume_test_objects bibbattlet (players)) 15)
(ai_place middle_marines)
(ai_place middle_covenant)
(game_save_no_timeout)
(ai_follow_target_players middle_marines)
(sleep_until (volume_test_objects huntsheet (players)) 15)
(ai_place flanker_hunter)
(ai_place flyer1)
(ai_place flyer2)
(ai_place flyer3)
(vehicle_load_magic flyer1shee B-driver (ai_actors flyer1/fly1))
(vehicle_load_magic flyer2shee B-driver (ai_actors flyer2/fly2))
(vehicle_load_magic flyer3shee B-driver (ai_actors flyer3/fly3))
(game_save_no_timeout)
(sleep_until (volume_test_objects roomt (players)) 15)
(ai_place bigroom_battle)
(game_save_no_timeout)
(sleep until (volume_test_objects snipert (players)) 15)
(ai_place snipers)
(game_save_no_timeout)
(object_destroy delete1)
(object_destroy delete2)
(object_destroy delete3)
(sleep_until (volume_test_objects t2 (players)) 15)
(object_teleport (unit (list_get (players) 0)) tp2)
(sleep_until (volume_test_objects teleporter1t (players)) 15)
(ai_place teleport_area1)
(sleep_until (volume_test_objects firefight1t (players)) 15)
(ai_place firefight1)
(sleep_until (volume_test_objects t3 (players)) 15)
(object_teleport (unit (list_get (players) 0)) tp3)
(sleep_until (volume_test_objects teleporter2t (players)) 15)
(ai_place teleport_area2)
(sleep_until (volume_test_objects firefight2t (players)) 15)
(ai_place firefight2)
(sleep_until (= (ai_living_count firefight2) 0))
(game_save_no_timeout)
(object_destroy remove_crate)
(ai_place end)
(sleep_until (= (ai_living_count end) 0))
(game_won)
)


*Note the parentheses at the end*


The one thing i know is wrong with it is the teleporters but will deal with that later

Another thing i fixed(?) was the (sleep_until (volume_test_objects firefight2t (players)) 15) commands. Previously I had (sleep_until (volume_test_objects firefight2t (players) 15))

So which one is correct?


Anyway here is the error i am getting:

09.26.10 09:10:33 [dascript line 12] this is not a valid cutscene_flag name: tp1)

09.26.10 09:10:33 recompiling scripts after scenarios were merged.
09.26.10 09:10:33 [dascript line 1] this left parenthesis is unmatched.: (script startup dascript

The reason I'm getting the first of these erors is because i tried to use a scenery tag not a flag because when i wrote in the command the name of the flag caused the last half of the command to go down to the next line. If i had persisted with that in the script would that have been a problem?


d4rfnader
Joined: Jul 16, 2010

Open mouth, insert sandwhich.


Posted: Sep 26, 2010 01:20 AM    Msg. 34 of 43       
that just means you need to create a cutscene flag named tp1 where you want the player to teleport.


Muscl3r
Joined: May 22, 2010

dont pray 4 easy lives...pray to be STRONGER MEN


Posted: Sep 26, 2010 04:40 AM    Msg. 35 of 43       
and what about the 1st line?

Perhaps there is a command in there with not enough )'s and is using that last parenatheas although i have tried putting another bracket below that one

 
Page 1 of 2 Go to page: · [1] · 2 · Next

 
Previous Older Thread    Next newer Thread







Time: Thu January 19, 2023 11:44 AM 312 ms.
A Halo Maps Website