DFBarracks - Forums




Delta Force Barracks Forums - Powered by XMB 1.9.11
Delta Force Barracks Forums
Not logged in [Login ]
Go To Bottom

Printable Version  
 Pages:  1  
Author: Subject: WAC Questions and information
chrislew200
Field Marshall
*******




Posts: 3368
Registered: 3-30-2003
Member Is Offline

Mood: ~RSU~ Is Home

[*] posted on 5-19-2005 at 04:55 AM
WAC Questions and information


Please post any wac related questions or information you would like to pass on by repying to this post.

chrislew200




No Longer Present
View user's profile View All Posts By User
SilenT-SnipeR
Corporal
***


Avatar


Posts: 196
Registered: 1-20-2004
Location: ScotlanD
Member Is Offline

Mood: Killing Spree

[*] posted on 5-19-2005 at 04:58 AM


ok hey does any 1 be able to help i found out that this code does not block all wepons

if Past(1) and never() then
blockfire(1, 1)
blockfire(2, 1)
blockfire(3, 1)
blockfire(4, 1)
blockfire(5, 1)
blockfire(6, 1)
blockfire(7, 1)
blockfire(8, 1)
endif

well yeh it does block them but only by number keys the flaw i found in this is that you can use the [ and the ] key for next and previous weapons i tryed this command

if Past(1) and never() then
blockfire(1, 1)
blockfire([, 1)
blockfire(], 1)
endif


peace




View user's profile Visit user's homepage View All Posts By User This user has MSN Messenger
7>Snake
Unregistered




Posts: N/A
Registered: N/A
Member Is Offline


[*] posted on 5-30-2005 at 09:24 PM


When you tried:

if Past(1) and never() then
blockfire(1, 1)
blockfire([, 1)
blockfire(], 1)
endif

Did it work? It's always helpfull for others using the forums if you can do a follow-up on questions like these.




Jonathan
Captain
****




Posts: 295
Registered: 5-4-2003
Member Is Offline


[*] posted on 6-5-2005 at 04:41 AM
Using Events in WAC file to trigger WAV dialog


Background: I created a mission awhile back for Black Hawk Down and was able to get Wavs/Text Msgs in the WAC file to trigger correctly off the Events in MED.

Current Problem: Event checks in the WAC file not triggering correctly.

I created a single player mission for DFx, and it works correctly with the events in the MED. I can run thru the mission and all the events in the MED seem to fire correctly.

Now I want to add some WAV dialogs which will be triggered in the mission WAC file. But I must be doing something wrong. Cause the dialogs are either playing when an event hasn't happened, or they don't play when they should.

So I created a very simple single player map with 3 trigger areas and a Start Player. The Start Player SSN = 1 and has been assigned to the Blue Team. In the MED I created 2 events.

Event 0: If SSN 10000 is within area 1
Event 1: If SSN 1 is within area 2.

And here's the code for the WAC file.

//Wavs
//have a nice walk in park
if event(0) and never() then
wave("chop136.wav",100)
text("area 1")
endif

// looks like we'll do it the hard way
if event(1) and never() then
wave("char509.wav", 100)
text("area 2")
endif

// base is alert
if ssnarea3D(10000,3) and wavready() and never() then
wave("comd108.wav", 100)
text("area 3")
endif

The player starts outside of the 3 areas. But even before the mission starts (weapons loadout screen), I hear the 2nd WAV dialog above. Plus when I hit spacebar to enter the mission, I can see text msg: "area 1 & area 2" in bottom left of screen.

I run to area 1, and nothing.
I run to area 2, and nothing.
I run to area 3 and get the expected results.

Now the difference that I see is that I use an Area check for # 3 vs an Event check for the first 2. I even extracted the WAC files from the pff file and looked at some of the code in them. But none of them used IF Event(X) then... Plus I went thru Chrislew200 WAC Tutorial, searched thru the DF web site map builders forums.

Bottom line: I'm confused as to why the EVENT checks in the WAC aren't working correctly. Anyone see a problem with my syntax or setup? Has anyone tried testing this? I have this small mission zipped if anyone wants to take a look at it or test it.

tia
Jonathan

View user's profile View All Posts By User
chrislew200
Field Marshall
*******




Posts: 3368
Registered: 3-30-2003
Member Is Offline

Mood: ~RSU~ Is Home

[*] posted on 6-5-2005 at 04:59 AM


Send the zip file to wnpboiler1@hotmail.com and ill have a look at it for you.



No Longer Present
View user's profile View All Posts By User
Jonathan
Captain
****




Posts: 295
Registered: 5-4-2003
Member Is Offline


[*] posted on 6-5-2005 at 07:54 AM


chrislew200, check your email. I hope you can tell me what I've done wrong.

Jonathan
View user's profile View All Posts By User
chrislew200
Field Marshall
*******




Posts: 3368
Registered: 3-30-2003
Member Is Offline

Mood: ~RSU~ Is Home

[*] posted on 6-5-2005 at 08:14 AM


delete the event execute mision wac its not required and probobaly the cause of the problem.

chrislew200




No Longer Present
View user's profile View All Posts By User
Jonathan
Captain
****




Posts: 295
Registered: 5-4-2003
Member Is Offline


[*] posted on 6-5-2005 at 03:53 PM


The Execute WAC command was just a late addition on my part in an attempt to see if it would fix the problem. I also went so far as to add the /d switch to my DFx icon. Neither helped with the WAC vs If Event(X) issue.

I took the Execute WAC out, and I still get the same results. The WAC file thinks that Event 1 & 2 in the MED have triggered. When in fact they haven't. I know they haven't cause these two events are set to win a subgoal when the player enters a trigger area. When I play the map, the subgoals are unchecked. As soon as I enter either of the first 2 trigger areas, I see the subgoal checked off. This tells me that the events in the MED are working correctly.

But I'm still lost as to why the WAC file is having an issue with Event(X).

Jonathan
View user's profile View All Posts By User
Jonathan
Captain
****




Posts: 295
Registered: 5-4-2003
Member Is Offline


[*] posted on 6-11-2005 at 01:57 PM


I finally got my single player mission to execute the WAV msgs by using the SSNarea trigger function in the WAC file instead of trying to use EVENT function. But now I've ran into another issue.

I'm working on converting the single player mission to a coop version. All the Blue team markers are in. Got the SSNarea triggers converted to GroupArea triggers in the MED. But the problem is trying to use a GroupArea trigger in the WAC to play WAV files.

I checked the WAC command list and there is no "GroupArea trigger" function. I went ahead and used GroupArea, but some of the WAV msgs play when they're not suppose to, some play ok, and some just don't even play.

I haven't tested it, but should I just use the SSNarea(#,#) & test for every Blue Team SSN in the game to trigger the WAVs?

ex: if SSNarea(900,1) or SSN(area901,1) or ... then play the WAV.

Jonathan
View user's profile View All Posts By User
Legionnaire=M=
Private
**


Avatar


Posts: 89
Registered: 5-11-2004
Location: Yokosuka, JAPAN
Member Is Offline


[*] posted on 6-11-2005 at 05:16 PM


I played your map.
I enjoyed it.
Thanks for your work and info about AI naming.

I present another method.
This is an example of course.

Use MED's "GroupArea triggers" and .wac WAV script.
And use the Mission Variables instead of .wac command "EVENT(#)".

exp.)
-------------------------------------------
1. Make a MED event.
Triggers:
Group # is within area #
Actions:
Set Mission Var#1 to 1

2. Make a .WAC script.
if eq(V1, 1) and never() then
script for play the WAV
endif
-------------------------------------------

This is just an example. ;)
View user's profile View All Posts By User
Jonathan
Captain
****




Posts: 295
Registered: 5-4-2003
Member Is Offline


[*] posted on 6-12-2005 at 10:58 AM


Glad you liked the map.

And thanks to your suggestion, the WAVs for the coop version appear to be triggering in correct seq. Sure is a lot of hoops to jump thru to get a map working correctly.:D

Jonathan
View user's profile View All Posts By User
Saedor
Corporal
***


Avatar


Posts: 145
Registered: 5-26-2004
Location: Indiana, USA
Member Is Offline

Mood: Unperturbed

[*] posted on 6-26-2005 at 07:06 PM
Environmental effects


Okay, I can't seem to get the rain and snow efects to work using the med, but they work using the WAC commands. However, I'm not certain what all the variables in the WAC commands do. Does anyone know? Specifically...

snow(70,1)
rain(100,1)
overcast(21,1800)

The 70 and 100 in the snow and rain commands seems to be the density in percent of the effect. But I don't know what the "1" does.

And the two numbers in the Overcast command are a complete mystery...

Any help would be appreciated. :)




View user's profile Visit user's homepage View All Posts By User
chrislew200
Field Marshall
*******




Posts: 3368
Registered: 3-30-2003
Member Is Offline

Mood: ~RSU~ Is Home

[*] posted on 6-26-2005 at 08:46 PM


thats how many seconds it will take to build up to that level so if you had 30,30 then it would fill to the density of 30 but it would take 30 seconds to do so.

chrislew200




No Longer Present
View user's profile View All Posts By User
Saedor
Corporal
***


Avatar


Posts: 145
Registered: 5-26-2004
Location: Indiana, USA
Member Is Offline

Mood: Unperturbed

[*] posted on 6-26-2005 at 09:14 PM


Ah, cool. That helps out alot. Thanks!



View user's profile Visit user's homepage View All Posts By User
AlphaCAT
Grunt
*




Posts: 9
Registered: 8-9-2005
Location: Ohio
Member Is Offline


[*] posted on 8-9-2005 at 10:58 PM
LOST


Chrislew200....I did download and read the tutorial in the download section, and I'm still kinda lost...

I am really new at making maps, matter of fact, I'm still on my first one, I'm trying to build Co-Op maps with the Med and I can't get my objectives to list or work, so someone said that I should look into my .WAC file and edit it the way I want to. I also downloaded the PFF3 viewer or whatever that thing is call, and read the read me and did get all the .WAC file from my novalogic folder, which the only game I have installed now is DFX. That didn't help me out either, since I don't know what to look for or anything like that. So I quess my question is....Is there like something .WAC for dummies that I can read or download....Sorry if this sounds stuipd or anything, but I just don't know.

Thank you in advance for any and all help.
View user's profile View All Posts By User
chrislew200
Field Marshall
*******




Posts: 3368
Registered: 3-30-2003
Member Is Offline

Mood: ~RSU~ Is Home

[*] posted on 8-10-2005 at 01:30 AM


the wac file isnt your problem its either events or the bin file. If you have msn messenger please add me to it wnpboiler1@hotmail.com and i will help you find what is wrong. I will be home in 2 hours

chrislew200




No Longer Present
View user's profile View All Posts By User
AlphaCAT
Grunt
*




Posts: 9
Registered: 8-9-2005
Location: Ohio
Member Is Offline


[*] posted on 8-11-2005 at 06:44 AM
Thank you


Sorry about the delay in this post, I didn't have my connection, my isp lost a whole network......I don't have MSN, but I will download it and add you, Thank you very much
View user's profile View All Posts By User
azz-kikker
Grunt
*




Posts: 4
Registered: 4-30-2004
Location: Southampton England
Member Is Offline


[*] posted on 1-9-2006 at 10:37 AM
wac file


I have just finished a map and wanted to put a WAC file into it... the drop down tool for the 'open mission wac' file does not work any suggestions!!?? have i got something missing from my med??
View user's profile Visit user's homepage View All Posts By User
Legionnaire=M=
Private
**


Avatar


Posts: 89
Registered: 5-11-2004
Location: Yokosuka, JAPAN
Member Is Offline


[*] posted on 1-9-2006 at 10:47 PM


Don't worry, you haven't got the missing.
You need saving your making map as a .mis file before using the 'open mission wac' tool.
For example, you finish making a map.
You save it as 001.mis.
And run the 'open mission wac' tool.
A blanc file be named 001.wac will appear on screen. (to external)
This blanc .wac will be saved to .mis file's directory.

About the .wac file, we need making(scripting) it manually.
View user's profile View All Posts By User
azz-kikker
Grunt
*




Posts: 4
Registered: 4-30-2004
Location: Southampton England
Member Is Offline


sad.gif posted on 1-9-2006 at 11:46 PM
wac


Thanks for the swift reply...the file IS saved as a mis. file!! still won't work !!!:(
View user's profile Visit user's homepage View All Posts By User
Legionnaire=M=
Private
**


Avatar


Posts: 89
Registered: 5-11-2004
Location: Yokosuka, JAPAN
Member Is Offline


[*] posted on 1-10-2006 at 01:00 AM


Ok. Your prob. is not serious.
Something wrong with your text editor, maybe.
The 'open mission wac' tool isn't important for the map making.

Run the text editor (ex. notepad.exe etc...) & make a .txt file.
And write (input) the .wac script, bra....bra...bra......
Save that .txt file anywhere you want.
Rename that .txt file to same your .bms name & .wac.
For example, your .bms is "001.bms".
Rename your .txt file scripted with .wac commands, rename it to "001.wac".
It is not "001.wac.txt", be careful about it.
And put them into your DF:X directory.
That's all.
The .wac must be into the DF:X directory.
View user's profile View All Posts By User
Shifty421
Grunt
*




Posts: 3
Registered: 3-13-2006
Location: Pomona, NY
Member Is Offline

Mood: WTF.....BFS

sad.gif posted on 3-14-2006 at 10:10 AM
WAC


Help! My WAc never makes sense and i need major help!!!!
View user's profile View All Posts By User
Shifty421
Grunt
*




Posts: 3
Registered: 3-13-2006
Location: Pomona, NY
Member Is Offline

Mood: WTF.....BFS

[*] posted on 3-15-2006 at 09:32 AM
WAC/Map-Making


How do you create custom objectives (for dfx). Also, your teammates name, how can you customize them. I know it has something to do wiht BIN files, but i know nothing else! Also, what else can you do wiht BIN files? Please post something or email me at ~~ Shifty421@aol.com
View user's profile View All Posts By User
Legionnaire=M=
Private
**


Avatar


Posts: 89
Registered: 5-11-2004
Location: Yokosuka, JAPAN
Member Is Offline


[*] posted on 3-19-2006 at 03:48 PM


Just need editing .bin file.

About editing the .bin file, get this.
Basic Bin File Tutorial (Thanks to 7>Snake and Eagle Eye for great job)
http://www.dfbarracks.com/downloads/index.php?action=df&fid=...
Don't forget, this is explain about DF:BHD's.

About DFX's .bin, just read next thread.
http://www.dfbarracks.com/forums/viewthread.php?tid=36780

Please look through the forums. ;)
View user's profile View All Posts By User
aquafloE
Private
**




Posts: 27
Registered: 4-1-2006
Member Is Offline


[*] posted on 4-16-2006 at 12:17 PM
WAC File Trigger and Events List


Does anyone know where I can find a complete list of all the triggers and events that can be in a wac file? Thanks!
View user's profile View All Posts By User
 Pages:  1  

  Go To Top

Powered by XMB 1.9.11
XMB Forum Software © 2001-2012 The XMB Group
[Queries: 15] [PHP: 64.2% - SQL: 35.8%]












Copyright © 2002 - 2008 All Rights Reserved - DFBarracks.com
Site Design by A.Bullet - ScreamingDemon.com