News:

Happy 20th, FFvT3R!

Main Menu

Trying out Ezcript|

Started by jocke32, July 24, 2012, 01:58:22 PM

Previous topic - Next topic

BentonGrey

Alright Jocke, I think I understand part of your trouble.  I'm sorry I hadn't had a chance to look this whole thing over yet, but based on what I see here, it looks like the problem is you're using stuff as part of your script that isn't functionally part of EZScript. 

There are four elements of an EZScript story:

  • Story name: Identifies the particular script, and therefore must be unique
  • Encounters: Include a specific name for an encounter (must also be unique), the type, and all of the conditions and specifics, including end conditions
  • Cutscenes (which always have "Cutscene" in their heading)
  • Cutscene commands: Like 'Camera on' or 'Hero says, "blah"'

That's it, so if it doesn't fit into one of those categories, it doesn't belong in your script, as it will confuse the game.  Now, I think the issue is you are a bit confused about what makes up some of those elements.  Open up EZScript Editor, check out your script.  Let's say you want a custom encounter.  Well, you've already put one of those together, but humor me.  We set up the encounter to be custom, then we go to actions.  Now, here's where it can get confusing.  When you see the action you want, simply double click the entry and it will add it to your script.  That takes care of the "Actions" line, but you'll notice several of these Actions have extra information that their entry pulls up.  For example, "Villain stops at one third health" says:
QuoteWhen all villains are at half health or lower, they give up.

Cut Scene:

Villains stop: the villains have reached the specified health level and are giving up

Ending:

Villains hurt: the villains have been hurt and are giving up

Notice the headings.  The first line is just a description of what the action does.  The second is a list of available cutscene types. m Now, this is important.  These types are followed by their own descriptions.  Thus, if you want to have a cutscene when the Villain gives up, you write it this way:

QuoteVillains Stop Cutscene:
Camera on Villain
Villain says, "Ow!  I give up!"

That's all you have to include, and EVERY cutscene must follow the same format, that being "BLANK Cutscene:"

Now, the third entry says "Endings, and I think this is part of what's confusing you.  This is an ending that can be referenced by other parts of EZScript.  Some encounters can use conditional phrases, and that is where things like that come into play, but it doesn't matter for you at the moment. 

Now, on a broader note, you're using a type of Custom Action that is a bit finicky.  The "Villains stop at BLANK health" set of Actions are somewhat buggy, and they often don't like to work.  In general, you're better off using "Interrogation" encounters.  Check out my example script to see how to sort of fake this type of things with simpler encounters:
http://bentongrey.wordpress.com/2010/01/21/the-anatomy-of-an-ezscript-adventure/
God Bless
"If God came down upon me and gave me a wish again, I'd wish to be like Aquaman, 'cause Aquaman can take the pain..." -Ballad of Aquaman
Check out mymods and blog!
https://bentongrey.wordpress.com/

jocke32

I've got the first mission on the campaign to work with everything (i think) except moving with the mouse, i got a opening cutscene that works with text(but everything is black except the heroes heads and text) and then the map shows up in all the right color and even the heroes, but i cant move the screen or the heroes anywhere, i can access the Menu screen and there the mouse works, any ideas?

The Interrogation idea works great!

BentonGrey

Howdy Jocke, glad to hear it.  Like I mentioned earlier, that's a map issue, likely because your maps are looking for information in your mod folder that they aren't finding.  Is all of the info for your maps in your mod folder?  Open your map open in FFEdit and look at the data paths it is pointing to.  You'll see four entries, Mission File, Layout File, Texture Directory, and Name.  The most likely problem is that your layout file isn't in the right spot.  Now, layout files are sorta' weird, and it can take some time to learn their peculiarities.  However, for the moment it's likely you're facing a fairly simple problem.  What map are you trying to use?  What layout file is it trying to find?  Go to your main FFvTTR directory and look in your Data folder.  There should be a Leve_Layout folder in there, try to find the one your map is pointing to.  If it is there, just create a similarly named folder in your mod directory and drop the layout file in it.  If you can't find the particular layout file your map wants, you can probably find it in the FFX Map Pack.
God Bless
"If God came down upon me and gave me a wish again, I'd wish to be like Aquaman, 'cause Aquaman can take the pain..." -Ballad of Aquaman
Check out mymods and blog!
https://bentongrey.wordpress.com/

jocke32

I changed the layout file in the 01 mission to the mod and copied the file from the standard freedomforce directionary, but now its back to black again when you start the mission.
I took a look at mission 2 layout file and its suppose to be "C:\Perforce\FF Expansion\Data\Art\level layout\mp_village" and i looked at both standard freedom force diractory and ffx and didnt find any layout named mp_villiage , where can i download this map pack youre talking about ?

BentonGrey

Hey Jocke, that's odd.  You say "I changed the layout file," do you mean you just pointed it at the same file's new location in your mod?

Ohh, you don't have Map Pack? It is a collection of almost all the FF1 maps formatted to work in FF2.  I'm afraid it looks like its host is down.  Still, not to worry, I can send you the layout file you need.
God Bless
"If God came down upon me and gave me a wish again, I'd wish to be like Aquaman, 'cause Aquaman can take the pain..." -Ballad of Aquaman
Check out mymods and blog!
https://bentongrey.wordpress.com/

jocke32

Yes i put it to mod/data/art..., could you do that then it would be nice , the map works in rumbleroom as strange as it is :/

BentonGrey

That's because RR will pull from your main FF folder more easily than the campaign, I think.

So, what was the first map and what layout file is it looking for?

Email is sent, by the way.
God Bless
"If God came down upon me and gave me a wish again, I'd wish to be like Aquaman, 'cause Aquaman can take the pain..." -Ballad of Aquaman
Check out mymods and blog!
https://bentongrey.wordpress.com/

jocke32

First map is ds_mountain and layout file ds_new_terrain9.
Is the texture pack suppose to be "library\area_specific\_textures" or is it something other because of its in a mod ?

BentonGrey

Hmm, that should be working then.  That's where it should be Jocke.  You've unpacked everything from the map's folder, hmm?  Why don't you send me your mod folder?
God Bless
"If God came down upon me and gave me a wish again, I'd wish to be like Aquaman, 'cause Aquaman can take the pain..." -Ballad of Aquaman
Check out mymods and blog!
https://bentongrey.wordpress.com/

jocke32

I will create a new zip  and upload it to dropbox and send you a link asaap :)

BentonGrey

Alright, I see your problem kiddo.  You've got your map files, layout, etc. in a "Data" folder inside your mod.  See, your mod folder is, effectively, a new version of the "Data" folder from your default directory.  That's the guts of the game, and your mod replaces those vanilla guts with a tweaked set.  Thus, you put everything in your mod just the way you would INSIDE your Data folder.  Just copy the contents of your mod's data folder and paste them into the mod folder itself.  That should get everything where it belongs, and that should fix your map problems, plus others that you would have faced soon.
God Bless
"If God came down upon me and gave me a wish again, I'd wish to be like Aquaman, 'cause Aquaman can take the pain..." -Ballad of Aquaman
Check out mymods and blog!
https://bentongrey.wordpress.com/

jocke32

Nope, still the map problem  :( i changed the layout directory to the new one in mod/art/library/... still cant do anything when started,  did you download the mod ? Maybe see if it works for you so we can besure that the problem is in the modfolder or something  :unsure:

BentonGrey

#42
Ha, well, that's what I get for being in a hurry.  I misunderstood your complaint, Jocke.  You likely would have had map issues as well eventually, but you never got that far.  You just left out an unfade command in your mission.

QuoteStart Cutscene:
Unfade for 3 seconds
Cinematic Camera on thor to hogan_the_grim
thor says, "Ah a fine night to hunt some giants!"
hogan_the_grim says, "No lie there my lord."
Camera on volstagg
volstagg plays animation  melee_beermug
hero3 says, "Yea if we are lucky maybe we even gets   ourselfs some boars"

All missions need that command, otherwise everything will stay blacked out.  I constantly forget to put that in. :P

Also, heads-up, you'll want to make sure your villains and minions have the proper category selected in the Templates tab.  At the moment they are set up as heroes, which means you can't just click on them to attack.
God Bless
"If God came down upon me and gave me a wish again, I'd wish to be like Aquaman, 'cause Aquaman can take the pain..." -Ballad of Aquaman
Check out mymods and blog!
https://bentongrey.wordpress.com/

jocke32

Changed everything and now it works beautiful, now i just need to find good maps for the base missions and then i can release the first two missions for testing! Thanks for everything Benton!
Btw the layout_file for ds_cold was suppose to be empty i guess, when i put in the mp_village then pink trees and buildings popped up everywhere  :lol:
-----------------------
Ok so i am working on mission 3 and on that one i want to get the hero to move to one place and play a cutscene when he talks to an ally and then the cutscene is over, i tried Cutscene  but that one played the cutscene directly after the one before have ended even if i choosed an marker for it, then i tried chat and then nothing happend after the chat with the character was done, the same happend with local cutscene, am i using them wrong and which do you recommend?

BentonGrey

Hi Jocke, Chat and Local Cutscene are a bit wonky.  Local Cutscene has never really worked for me.  Chat should work, though.  Post your script for that encounter, okay.
God Bless
"If God came down upon me and gave me a wish again, I'd wish to be like Aquaman, 'cause Aquaman can take the pain..." -Ballad of Aquaman
Check out mymods and blog!
https://bentongrey.wordpress.com/

jocke32

Okay :) I used it in two diffrent encounters so i post both, I figuered that it would be like interrogate but for allies,i use no enemies in none of them.
Spoiler
Encounter: hosp
Type: Chat
Allies: civilian_male
Marker: encounter4
Primary Objective: "Find a doctor, fast!" for 30 prestige
Next: revenge

Alert Cutscene:
Yellow Arrow on civilian_male
Camera on thor
thor says, "I need to find a good healer to save the maiden right away"

Start Cutscene:
Camera on thor
thor says, " If mjolnir showed me the right way there should be a healer here"
Camera on civilian_male
civilian_male says, "Uhm mr, i am a doctor if that is what you mean"
Cinematic Camera on thor to civilian_male
thor walks to civilian_male
thor says, "You must come me at once! I got an beutiful maiden in need of your healing powers"
civilian_male says, "Okey, lets go!"
Fade for 5 seconds

End Cutscene:
Unfade for 5 seconds
Cinematic Camera on thor to civilian_male
civilian_male says, " Come back in a while and she will be all fixed up!"
Camera on civilian_male
thor says, "Your a good man Midgarder, i will make sure you go to valhalla!"
civilian_male says, "Eh.. As i said, come back in a bit and your friend will be ready for you!"

---------------------------------
Encounter: coffee
Type: Chat
Allies: civilian_female
Marker: encounter9
Next: gods

Alert Cutscene:
Yellow Arrow on Ally1

Start Cutscene:
thor teleports to Ally1
Cinematic Camera on thor to civilian_female
thor says, "Now i will see if your so called coffee is something in a gods taste!"
civilian_female says, "Haha youre so funny"
Fade for 6 seconds
Unfade for 6 seconds
Cinematic Camera on thor to civilian_female
thor says, "Mm that was not so bad as troll mead but not nearly as good as Balders!"
civilian_female says, "Haha i take that as a good thing! I will have to get to work now, it was nice meetingy you thor"
thor says, "Maiden, will i see you again?"
civilian_female says, "You know it darling!"


BentonGrey

#46
Alright, at first glance I notice one thing, but that may not be the only problem.  In your second encounter you use both Ally1 and civilian_female.  ALWAYS stay consistent, because if you call for both, the game is going to look for two DIFFERENT characters.  Also, civilian_male is not going to be unique, being a civilian, so try using Ally1 replacements for both encounters.  To make sure that you haven't made a mistake, using multiple names for the same character, you can run the Cutscene report from the Tools button on EZScript Editor.  It will give you a summary of the names you've used and the characters they reference.

Ohh!  VERY IMPORTANT!  I see you have ---------------- separating the encounters.  Don't forget to start that line with this symbol: #

If you don't use "#", EZScript doesn't know to ignore it.
God Bless
"If God came down upon me and gave me a wish again, I'd wish to be like Aquaman, 'cause Aquaman can take the pain..." -Ballad of Aquaman
Check out mymods and blog!
https://bentongrey.wordpress.com/

jocke32

Yeah i just did that now so you would have easier to separate the two, i also use #---------- :)

I will take alook at the cutscene report tommorow, thank you for looking into it!

BentonGrey

Okay, good.  Let me know what happens. :)
God Bless
"If God came down upon me and gave me a wish again, I'd wish to be like Aquaman, 'cause Aquaman can take the pain..." -Ballad of Aquaman
Check out mymods and blog!
https://bentongrey.wordpress.com/

jocke32

I changed the mission so i used ally1 on many encounters instead of civilian_female and male, the coffee encunter i got working but not the hosp, so i decided to remove the two diffrent option in this mission so now if the person you should save you will lose instead, it is the easiest way and also the best because it was really not much action in the hosp way :) Im about to round up mission 3 soon, i just need to find a good base map to use as inside valhall, i realy just need a little wooden room with a table or fireplace or something.Any idea about that ?  :)

BentonGrey

That's a good question Jocke.  I can't say that anything jumps out to me, but if you find something appropriate, let me know, 'cause I have a similar need.
God Bless
"If God came down upon me and gave me a wish again, I'd wish to be like Aquaman, 'cause Aquaman can take the pain..." -Ballad of Aquaman
Check out mymods and blog!
https://bentongrey.wordpress.com/

jocke32

Quote from: BentonGrey on August 14, 2012, 02:04:38 AM
That's a good question Jocke.  I can't say that anything jumps out to me, but if you find something appropriate, let me know, 'cause I have a similar need.
Hehe will do!  :P

i have encountered a problem, after i installed the vp max and their  ffx_attributes addon  and then all my stories and missions stopt to work, any idea what the problem is ?

BentonGrey

Hmm, I'm not entirely sure.  #1) Did you install those additions into your mod folder?  #2) Did you back up your mod folder first? #3) Did you merge .Dats instead of simply overwriting them?

Nothing you do should make your mod not work unless you do it to the mod folder itself or you damage your installation of FF itself. 

In what way is it not working?  Always try to provide as much detail as possible when asking for troubleshooting help. :)
God Bless
"If God came down upon me and gave me a wish again, I'd wish to be like Aquaman, 'cause Aquaman can take the pain..." -Ballad of Aquaman
Check out mymods and blog!
https://bentongrey.wordpress.com/

jocke32

The No encounter plays at allt, the map start then nothing more, you can move around your heroes but there is nothing to do.

BentonGrey

Okay, what about the other questions I asked?  It SOUNDS like you've somehow erased/copied over A) The missions or B) the scripts.
God Bless
"If God came down upon me and gave me a wish again, I'd wish to be like Aquaman, 'cause Aquaman can take the pain..." -Ballad of Aquaman
Check out mymods and blog!
https://bentongrey.wordpress.com/

jocke32

Oh sorry, i was in a hurry i didnt notice the other questions, i wrote over the Sounds and objects dats in my main ffvtr data folder as it recomended on the readme, then i copied over the end of the new ffx_multi cause that was where the new attributes layed, then i pasted it in to the old ffx_multi in my mod folder , and after that i just merged the mods attribute dat and the new.

BentonGrey

So, you did NOT copy over your mod's objects.dat?  That would have explained it.  Hmm...nothing you've described should have caused this.
God Bless
"If God came down upon me and gave me a wish again, I'd wish to be like Aquaman, 'cause Aquaman can take the pain..." -Ballad of Aquaman
Check out mymods and blog!
https://bentongrey.wordpress.com/

jocke32

#57
I have tried around abit, and all the mods worked except mine and ffx ,so i will put in my backup mod and try if that work :) I changed name on my mod and put in my backup and that worked so now its only to start search for whats wrong  <_<

BentonGrey

That's very odd Jocke.  I'd try to plot out exactly what you had done between the last time it worked and when you found it broken.  Perhaps you can track down what change made it go bad.
God Bless
"If God came down upon me and gave me a wish again, I'd wish to be like Aquaman, 'cause Aquaman can take the pain..." -Ballad of Aquaman
Check out mymods and blog!
https://bentongrey.wordpress.com/

jocke32

#59
I think it must have to do with the attributes that i put in that was included in the voicepack so i skipped it this time :)
I have done abit more on mission 3 and i use rival encounter and it doesn't seem to work. Is it a common problem or is it just me? I changed it to a regular fight instead.

I have now created my own base files to each mission and when i start the campaing the first mission plays, and the first base file , but then when the mission should start the game justs shuts down without any error message or anything, thoughts?