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 General Discussion »Hey what does sapien mean when it says this?

Page 1 of 2 Go to page: · [1] · 2 · Next
Author Topic: Hey what does sapien mean when it says this? (36 messages, Page 1 of 2)
Moderators: Dennis

DarkLord0912
Joined: Jan 17, 2009

Works on bigger and better things


Posted: Feb 24, 2009 11:13 PM    Msg. 1 of 36       
Okay I've been following a tut on single player mode and I want to to learn trigger volumes to help out alot and I was followng the tut made by :P0lar_bear’s and another one and I use the scripts they have and name every thing the same as theres but when I try to compile a script in sapien it gives me this


[syncscript line 2] this is not a valid object name.: steven1) 0.0) ;;This checks if the biped steven1 is Dead or not.

02.24.09 22:13:03 recompiling scripts after scenarios were merged.
02.24.09 22:13:03 this left parenthesis is unmatched.: (if (= (unit_get_health steven1) 0.0) ;;This checks if the biped steven1 is Dead or not.


I think steven is MC not sure though???


DEEhunter
Joined: Dec 16, 2006


Posted: Feb 24, 2009 11:15 PM    Msg. 2 of 36       
The "(if" is unmatched. Just add another ")" at the end of your if statement.


Gamma927
Joined: Jun 12, 2008

Steam: gamma927


Posted: Feb 24, 2009 11:20 PM    Msg. 3 of 36       
Use the sleep until command. So if the trigger volume is called tvol, use:

(script startup nameofscript
(sleep_until (volume_test_objects tvol (players)) 15)
[insert commands here]
)

This will wait until the player is inside the trigger volume, then execute the commands inside.

And don't copy the script directly from P0lar Bear's tutorial. You won't learn anything, and steven1 is the name of a biped.
Edited by Gamma927 on Feb 24, 2009 at 11:21 PM


DarkLord0912
Joined: Jan 17, 2009

Works on bigger and better things


Posted: Feb 24, 2009 11:41 PM    Msg. 4 of 36       
All I tried was a simple AI follow player script do I still use the above script with that?


Gamma927
Joined: Jun 12, 2008

Steam: gamma927


Posted: Feb 25, 2009 12:17 AM    Msg. 5 of 36       
AI follow? That isn't very simple... it requires you to set up empty squads, firing position groups, knowledge of real numbers, etc...

http://hce.halomaps.org/index.cfm?fid=4047


DarkLord0912
Joined: Jan 17, 2009

Works on bigger and better things


Posted: Feb 25, 2009 12:30 AM    Msg. 6 of 36       
well Im trying to learn scripting and man is it confusing not the fact that all the tut's are just words not a video or any thing


Gamma927
Joined: Jun 12, 2008

Steam: gamma927


Posted: Feb 25, 2009 12:33 AM    Msg. 7 of 36       
You shouldn't start off from P0lar Bear's tutorial. Start from this:
http://hce.halomaps.org/index.cfm?fid=4315

This is for scripting:
http://hce.halomaps.org/index.cfm?fid=2879

And this is for reference:
http://hce.halomaps.org/index.cfm?fid=2809


DarkLord0912
Joined: Jan 17, 2009

Works on bigger and better things


Posted: Feb 25, 2009 12:51 AM    Msg. 8 of 36       
Yeah I have the first 2 tuts but yeah my only problem is when writting out a script im trying to figure out what the simbles mean and repersent im sure from there I could get the ball rolling


Like for EX: I was trying to get a trigger volume to to spawn AI's and couldn't get that working how sad :(


Gamma927
Joined: Jun 12, 2008

Steam: gamma927


Posted: Feb 25, 2009 12:58 AM    Msg. 9 of 36       
Script for what you want:

Note: The AI encounter is called ai, and the trigger volume is called tvol.



(script startup scriptname
(sleep_until (volume_test_objects tvol (players)) 15)
(ai_place ai)
)


DarkLord0912
Joined: Jan 17, 2009

Works on bigger and better things


Posted: Feb 25, 2009 01:14 AM    Msg. 10 of 36       
Well I tried that and I keep getting this:


this is not a valid trigger_volume name: tvol (trig_elites)) 15)(ai_Gold_Elites))---<
02.25.09 00:13:11 recompiling scripts after scenarios were merged.
02.25.09 00:13:11 this is not a valid trigger_volume name: tvol (trig_elites)) 15)(ai_Gold_Elites))---<



Well I tried to figure it out but it's just like BLah Blah but Im determined to just learn some of this...


black doom
Joined: Oct 4, 2008

we will never stop, we can win the "impossible"


Posted: Feb 25, 2009 08:50 AM    Msg. 11 of 36       
Quote: --- Original message by: DarkLord0912
Well I tried that and I keep getting this:


this is not a valid trigger_volume name: tvol (trig_elites)) 15)(ai_Gold_Elites))---<
02.25.09 00:13:11 recompiling scripts after scenarios were merged.
02.25.09 00:13:11 this is not a valid trigger_volume name: tvol (trig_elites)) 15)(ai_Gold_Elites))---<



Well I tried to figure it out but it's just like BLah Blah but Im determined to just learn some of this...


you dont have a trigger volume called tvol.


Gamma927
Joined: Jun 12, 2008

Steam: gamma927


Posted: Feb 25, 2009 10:26 AM    Msg. 12 of 36       
^This. I would have responded yesterday, but my internet crashed on me :( Make sure you placed a trigger volume, and named it tvol.


DarkLord0912
Joined: Jan 17, 2009

Works on bigger and better things


Posted: Feb 25, 2009 06:44 PM    Msg. 13 of 36       
okay guys I'll try it :)



Okay I tried the above command and named the trig volume tvol and when I compile script in sapien I get ta _dah

the value of this expression (in a <void> slot) can never be used.: 15)(ai_Gold_Elite))---<
02.25.09 18:12:56 recompiling scripts after scenarios were merged.


Se I put trigger volume as tvol and where u said {put command here} what excatly can I put there all Im trying to do is place a trigger volume then when MC wals through it spawns some AI so u guys know so u can help :)
Edited by DarkLord0912 on Feb 25, 2009 at 07:19 PM


Gamma927
Joined: Jun 12, 2008

Steam: gamma927


Posted: Feb 25, 2009 09:16 PM    Msg. 14 of 36       
Yea, to place AI, use the command

(ai_place [name of AI])


So if your AI encounter was called gold_elite, you would type:

(ai_place gold_elite)


DarkLord0912
Joined: Jan 17, 2009

Works on bigger and better things


Posted: Feb 25, 2009 09:21 PM    Msg. 15 of 36       
Hey gamma 927 u should make a tut on this cuz there's no videos just words and it's hard to learn from that??

How did u learn scripting??? would u teach me?? I just want to know the basics to make my maps better nothing advanced....


Hey let me know if this destination is right for the script? data/levels/test/newcanyon/scripts??
Newcanyon is the name of my map?
Edited by DarkLord0912 on Feb 25, 2009 at 09:29 PM


Gamma927
Joined: Jun 12, 2008

Steam: gamma927


Posted: Feb 25, 2009 09:22 PM    Msg. 16 of 36       
It's in those tutorials I gave you... Do you have xfire? I could tutor you then.


DarkLord0912
Joined: Jan 17, 2009

Works on bigger and better things


Posted: Feb 25, 2009 09:31 PM    Msg. 17 of 36       
Well Im in the air force and um no I dont have xfire what is it I'll get it u don't have to teach me much just the basics that wouldn't take long and theys tut's couldn't explain why somethin wouldn't work


Gamma927
Joined: Jun 12, 2008

Steam: gamma927


Posted: Feb 25, 2009 09:34 PM    Msg. 18 of 36       
Well I'm a fourteen year old kid, and xfire is an instant message program that plugs into games. Just read the Halo Scripting Bible for proper syntax as well as a list of commands.


DarkLord0912
Joined: Jan 17, 2009

Works on bigger and better things


Posted: Feb 25, 2009 09:41 PM    Msg. 19 of 36       
well I tried learning the scripting bible I just dont know how to set up a script like spawn AI...

If I use halo scripter V2 Wheres the bubble u check for tvol's cuz I couldn't find it... and if u know all this and ur {rlly} 14 then I must be talkin to the right person LOL


Gamma927
Joined: Jun 12, 2008

Steam: gamma927


Posted: Feb 25, 2009 09:47 PM    Msg. 20 of 36       
There isn't one. There is one for Tvol + A (play an animation when inside a trigger volume), but that probably isn't what you want. Here's a basic script that waits until you're inside the trigger volume:

(script startup test
(sleep_until (volume_test_objects tvol (players)) 15)
(game_save_totally_unsafe)
(ai_place [name of AI])
(sound_impulse_start [directory of sound file] none 1)
)


Only use the game_save_totally_unsafe command if you're sure the player won't be in combat. Also, I listed the most common commands. AI place, you probably understand now, and sound_impulse_start plays a sound file. If the sound file is located in the folder tags\sound\weapons\assault rifle\sounds\fire.sound, you would type:

(sound_impulse_start tags\sound\weapons\assault rifle\sounds\fire none 1)

including the name of the sound tag.


DarkLord0912
Joined: Jan 17, 2009

Works on bigger and better things


Posted: Feb 25, 2009 09:55 PM    Msg. 21 of 36       
well thanks but u don't have to give me that other stuff I just wan the AI spawn figured out then move from there u no....

also is this the right directory for a new script:data/levels/test/newcanyon/scripts

New canyon is my scenerio name>

Also my placed trigger volume name is tvol and the AI I want it to spawn when MC steps in the tvol is named gold_elite....... So if u set up a script knowing this info I will try to understand the script u give me and move from there....


Gamma927
Joined: Jun 12, 2008

Steam: gamma927


Posted: Feb 25, 2009 09:58 PM    Msg. 22 of 36       
Put the location of the scenario, except replace tags with data. So if your scenario was located in the folder:
tags\levels\test\newcanyon
then yes, it would work.


DarkLord0912
Joined: Jan 17, 2009

Works on bigger and better things


Posted: Feb 25, 2009 10:06 PM    Msg. 23 of 36       
so u think u can make a trigger volume script for me with the above info I gave u so I'll know if it's something Im doing??? Would really appreciate it


Gamma927
Joined: Jun 12, 2008

Steam: gamma927


Posted: Feb 25, 2009 10:11 PM    Msg. 24 of 36       
You wanted to spawn AI once you're inside the trigger volume?

(script startup ai
(sleep_until (volume_test_objects tvol (players)) 15)
(ai_place ai)
)


Assuming trigger volume's called tvol, and the ai encounter is called ai.


DarkLord0912
Joined: Jan 17, 2009

Works on bigger and better things


Posted: Feb 25, 2009 10:23 PM    Msg. 25 of 36       
yes the trigger volume is tvol but the ai's nmae is just gold_elite so where (ai_place ai)-replace the last part ai with gold_elite right then save in data/levels/test/dangercanyon

cuz my scenerio file is saved under the map it's from danger canyon

okay I got the destination thing right: but I use your script and replaced what I was suppose to and it says this:

the value of this expression (in a <void> slot) can never be used.: 15)(ai_place gold_elite))---<
02.25.09 21:30:29 recompiling scripts after scenarios were merged.
02.25.09 21:30:29 the value of this expression (in a <void> slot) can never be used.: 15)(ai_place gold_elite))---<
Edited by DarkLord0912 on Feb 25, 2009 at 10:31 PM


Gamma927
Joined: Jun 12, 2008

Steam: gamma927


Posted: Feb 25, 2009 10:51 PM    Msg. 26 of 36       
Show me your script.


DarkLord0912
Joined: Jan 17, 2009

Works on bigger and better things


Posted: Feb 26, 2009 12:06 AM    Msg. 27 of 36       
(script startup ai(sleep_until (volume_test_objects tvol (players)) 15)(ai_gold_elite))


All I did was replace the end part to gold_elite


Gamma927
Joined: Jun 12, 2008

Steam: gamma927


Posted: Feb 26, 2009 12:14 AM    Msg. 28 of 36       
Is it really formatted this way? And your problem is the (ai_gold_elite) thing. That isn't a command. It should be:

(ai_place gold_elite)


DarkLord0912
Joined: Jan 17, 2009

Works on bigger and better things


Posted: Feb 26, 2009 01:41 AM    Msg. 29 of 36       
Well I appreciate ur help gamma 927 I really thought u would be able to help but it still doesnt work I know it's the script theres something wrong?

[myscript line 1] the value of this expression (in a slot) can never be used.: 15)(ai_place gold_elite))

02.26.09 00:37:38 recompiling scripts after scenarios were merged.
02.26.09 00:37:38 the value of this expression (in a slot) can never be used.: 15)(ai_place gold_elite))


If u still think u can help please do... now u see why I cant learn from a tut thats just words and not a person ;)


black doom
Joined: Oct 4, 2008

we will never stop, we can win the "impossible"


Posted: Feb 26, 2009 08:06 AM    Msg. 30 of 36       
(script startup ai(sleep_until (volume_test_objects tvol (players)) 15)(ai_gold_elite))

erm... it supposted to be

(script startup ai
(sleep_until (volume_test_objects tvol (players)) 15)
(ai_place gold_elite)
)


DarkLord0912
Joined: Jan 17, 2009

Works on bigger and better things


Posted: Feb 26, 2009 03:19 PM    Msg. 31 of 36       
Hey thanks black doom oh yeah I found a script that help clear up alot of things and u help with the ai trigger spawn appreciate it :)


Hey what if I want a second script that does the same thing but just use different AI and trigger volume?
Edited by DarkLord0912 on Feb 26, 2009 at 04:29 PM


Gamma927
Joined: Jun 12, 2008

Steam: gamma927


Posted: Feb 26, 2009 06:38 PM    Msg. 32 of 36       
You create another one, except with different names for the trigger volume and the AI.


DarkLord0912
Joined: Jan 17, 2009

Works on bigger and better things


Posted: Feb 26, 2009 06:44 PM    Msg. 33 of 36       
I tried that it dint work do I make it in the smae script or a new script... do I also rename the script?


Gamma927
Joined: Jun 12, 2008

Steam: gamma927


Posted: Feb 26, 2009 06:49 PM    Msg. 34 of 36       
Sapien can only compile four .hsc files. However, you can put them all in one .hsc file. So if your first trigger volume was tvol, and your second was tvol2, and your first AI encounter was gold_elites, and the second was red_elite, then you would type:

(script startup tvol
(sleep_until (volume_test_objects tvol (players)) 15)
(ai_place gold_elite)
)

(script startup tvol2
(sleep_until (volume_test_objects tvol2 (players)) 15)
(ai_place red_elite)
)


Whenever you want to add another script, just create a new paragraph, with a new name. You can name it whatever you want. I only named them tvol and tvol2 for simplicity.


DarkLord0912
Joined: Jan 17, 2009

Works on bigger and better things


Posted: Feb 26, 2009 07:03 PM    Msg. 35 of 36       
Hey thanks gamma I only have one question this should be easy??? u know those prison doors on A50 truth and recon... I was wodering how do u make that door open and close cuz it doesn't work by a device group etc in sapien u have to do this another way someone told me just not sure what they meant...

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

 
Previous Older Thread    Next newer Thread







Time: Fri January 20, 2023 8:52 PM 282 ms.
A Halo Maps Website