• Welcome to Final Fantasy Hacktics. Please login or sign up.
 

Need help with making an event.

Started by Prouncer, July 24, 2017, 10:32:32 am

Prouncer

July 24, 2017, 10:32:32 am Last Edit: July 30, 2017, 01:18:31 am by Prouncer
I desperately need some help with making a battle event.

I attached the event to the end of an existing one. The event will let you choose your party and initially loads the map. The event then just seems to freeze and the screen blacks in and out several times, then it darkens and shows the Victory message without ever showing victory conditions. Also, no music plays but I thought that was because nothing else was working.

I used 3 of the tutorial slots as I didn't need the tutorial events. I also included screen shots of the ATTACK.OUT setup as attachments that I am using as well. I am not even sure if its the ATTACK.OUT that is the issue, something with the camera, or some other command.

At this point, any help would be greatly appreciated!  :cry:

@@@ These are the events that I am using with the corresponding numbers @@@ Ill also attach them

Setup Script 410

Offset(x00334000)
//Remove the previous line if you wish not to override the offset in CONFIG.INI.

//Remove the previous line if you wish text to compile directly after instructions.

Reveal(002)
Wait(00030)
EventEnd()


Battle Script 411

Offset(x00336000)
//Remove the previous line if you wish not to override the offset in CONFIG.INI.

//Remove the previous line if you wish text to compile directly after instructions.

Camera(+00560,-00048,+00560,+00302,+03584,+00000,+04096,+00001)
WaitForInstruction(x04,x00)
Reveal(060)

EventSpeed(x02)
DarkScreen(x00,x01,012,064,x00,004)
WaitForInstruction(x36,x00)

DisplayConditions(x08,060)
WaitForInstruction(x38,x00)

DisplayConditions(x00,060)
WaitForInstruction(x38,x00)

RemoveDarkScreen()
WaitForInstruction(x36,x00)

EventSpeed(x01)
EventEnd()

//INSTRUCTION SECTION END -  TEXT START
//Message x01


Victory Script 412

Offset(x00338000)
//Remove the previous line if you wish not to override the offset in CONFIG.INI.

//Remove the previous line if you wish text to compile directly after instructions.

{63}(rAA)
FadeSound(x00,060)
Wait(00020)
UnitAnim(x01,x01,x0002,x00)
Wait(00020)
EventSpeed(x02)
DarkScreen(x00,x01,012,064,x00,004)
WaitForInstruction(x36,x00)
DisplayConditions(x02,060)
WaitForInstruction(x38,x00)
DisplayConditions(x03,060)
WaitForInstruction(x38,x00)
DisplayConditions(x04,060)
WaitForInstruction(x38,x00)
DisplayConditions(x05,060)
WaitForInstruction(x38,x00)
DisplayConditions(x06,060)
WaitForInstruction(x38,x00)
DisplayConditions(x07,060)
WaitForInstruction(x38,x00)
RemoveDarkScreen()
WaitForInstruction(x36,x00)
EventSpeed(x01)
Wait(00090)
{63}(rAA)
{73}(r1027B0FA102780000001102700FC)
Camera(+10000,-01360,+10000,+00128,+00256,+10000,-01024,+00144)
Wait(00060)
FadeSound(x00,060)
ColorScreen(x02,000,000,000,255,255,255,+00064)
WaitForInstruction(x0C,x00)
EventEnd()

  • Modding version: PSX

Xifanie

What are your battle conditionals?
Also you uploaded 19B twice.
  • Modding version: PSX
Love what you're seeing? https://supportus.ffhacktics.com/ 💜 it's really appreciated

Anything is possible as long as it is within the hardware's limits. (ie. disc space, RAM, Video RAM, processor, etc.)
<R999> My target market is not FFT mod players
<Raijinili> remember that? it was awful

Prouncer

Thanks, I have stared at this too long.

I was trying to get it to work with a simple defeat all enemies. I have not even started trying to edit victory conditions.


  • Modding version: PSX

RavenOfRazgriz

That's not how the Event Script works.  The Event Script is not a duplicate of the index for your Event.

The Event Script is the index which sequence of battle conditionals (script commands) are loaded from ATTACK.OUT to determine the criteria to play the different events in the block.  You can edit these with the relevant ATTACK.OUT Battle Conditionals spreadsheet, which was made by Xifanie, of which both her and I have several versions floating around.  At least one of these has the Event Scripts labeled by their index.  If not, simply add your new content to the spreadseet after the Reis scene (the final entry in the Conditionals list) and start your Event Scripts at the Reis conditionals Event Script +1.

Prouncer

Ok, thank you very much. It will take me a bit of time though to look through your tutorial and figure out exactly what to add to that spreadsheet.
  • Modding version: PSX

Prouncer

July 25, 2017, 11:16:01 am #5 Last Edit: July 30, 2017, 01:18:46 am by Prouncer
So unfortunately I am still having the same problem. Ill will just post what I have done so far because clearly I am still missing something.

1. I first added two lines in the "ES" column within the Battle Conditions Editor. I took the lines from one of the standard battles "Finath River" (no guests & defeat All enemies), and then changed the event pointer to 411 and 412.

Column ES
0100FD01010019009B01  ------> (0100FD0101001900) Start of Battle + (9B01)  Event 411 which is the battle event.
160019009C01 -------> 1600 (Killed all flag) + 1900 (Play next event) + 9C01 Event 412 victory event.

2. I then clicked the blue bar and copied it. Opened 010 Hex editor (ATTACK.OUT). Pressed CTRL G to insert at 14938. And then CTRL SHIFT V to overwrite as ASCII.

3. Opened ATTACK.OUT with the editor and changed the Event Script pointer to 92, the last one in the list was 91 so I think that is what you meant.
----->which I added as attachments.

4. Used CD MAGE to insert the new ATTACK.OUT

Now other events still play correctly. I temporarily attached it to the end of the Adremelk events which all play correctly. So if I screwed something up with inserting things into the Hex editor, it didn't break anything else.

Maybe Ill get lucky and I messed up something super simple and obvious but who knows.



  • Modding version: PSX

Prouncer

Ok so small update!!

I accidentally had the Adramelk victory pointing to 19B instead of 19A, which was skipping the Setup event entirely.

Although its still not working, the event does something different!!

Its still blinking in and out black, but at the beginning the camera spins a bit, the victory conditions actually do appear, and then it quits out back to the main map without doing anything else.

So I think that Event script got setup correctly, but maybe something is wrong with the camera or something else in the scripts... Still not sure
  • Modding version: PSX

Prouncer

One last update if it helps at all.

When the map loads, Ramza is already selected with his action menu up ready to go, which I found pretty odd.
Using the UnitAnim command I was able to make everyone else stand stil, but Ramza is still walking with his action menu up

This is all BEFORE the victory conditions are displayed.

So maybe whatever is breaking the event is what is also causing this weird issue
  • Modding version: PSX

Elric

This info doesnt help, what you need to do is post your events (battle event and victory event) as well as your attack.out GUI settings and conditions settings.

Sounds to me that you just tried to insert a battle or event somewhere but never set it up in the conditions sheet, which is required, as mentioned above.
  • Modding version: PSX

Prouncer

July 29, 2017, 04:05:14 pm #9 Last Edit: July 30, 2017, 01:21:01 am by Prouncer
Elric,

Sorry I thought the Battle Event scripts are what I put in my first post, so I have no idea. I am not sure what the GUI and Condition settings for ATTACK.OUT are other than what I have already posted.

If anyone would like any other specific information please let me know!!!


  • Modding version: PSX

Nyzer

QuoteI instead decided to re-make the event and record the entire thing from start to finish (sorry that its 40 min long).


Quote40 min long


wut

QuoteI figured this might be the only way people here will be able to see exactly what I am doing wrong.


The most that anyone would need is a pastebin of your event script and a few screenshots or uploaded files of everything else.

A 40 minute video is not only noninteractive (people trying to help you can't scroll to specific lines, switch tabs, or use good ol' Ctrl F), but definitely bloated as fuck for something like this.
  • Modding version: Other/Unknown

Prouncer

July 29, 2017, 10:51:17 pm #11 Last Edit: July 29, 2017, 11:14:37 pm by Prouncer
The event scripts are just copied and pasted in my first post under the spoilers.

I have pics of the attack.out stuff as well as the numbers I used Event Battle Conditions Spreadsheet are the in the next post.

I didn't say anyone had to watch the video. I don't mind posting any pics of stuff that people would need if they wanted to help.

I also added the ENTD, which should be everything.
  • Modding version: PSX

Prouncer

Ok so I figured out the problem. I came across another random topic where Elric told someone that you cannot use the tutorial events in ATTACK.OUT.

Although I still seem to be having a different issue, I can elaborate on that tomorrow. The main issue of the map glitching out is solved.
  • Modding version: PSX

lara948

August 14, 2017, 12:29:06 am #13 Last Edit: August 14, 2017, 10:56:57 am by Angel
While this is a high-level overview of some of the steps you'll need to follow when developing an event, we can't identify all of the details you'll need to think about (since much of it will depend on the type of event you are holding). get cash for cars and have good cash for your car just get rid off.

[USER WAS BANNED FOR THIS POST]
  • Modding version: Other/Unknown