Event Assembler Errors

I am getting this error: This is whats showing up:
Finished.
Messages:
Tutorials disabled
Events end at offset 0xD80248

2 errors encountered:
File One.txt, Line 33, Column 1: Symbol Opening_Event isn’t in scope
File One.txt, Line 72, Column 1: Code ENDA’s offset $D80181 is not divisible by 4

No data written to output.

Here is the text file I am using:
//Made by markyjoe1990 of Youtube
//Modified by Nintenlord
//Chapter eventide by Me

#define DISABLE_TUTORIALS
#include EAstdlib.event

EventPointerTable(0x06,Pointers)

ORG 0xD80000
Pointers:
POIN Turn_events
POIN Character_events
POIN Location_events
POIN Misc_events
POIN TrapData TrapData
POIN Bad Bad Bad Bad
POIN Good Good Good Good
POIN Opening_event Ending_event

Bad:
UNIT

Good:
UNIT 0x03 0x01 0x00 Level(1,Ally,False) [04,01] [04,01] [IronSword] NoAI
UNIT 0x04 0x18 0x03 Level(5,Ally,False) [05,01] [05,01] [IronBow] NoAI
UNIT 0x05 0x16 0x03 Level(20,Ally,False) [03,02] [03,02] [SteelSpear,SteelAxe] NoAI
UNIT 0x06 0x1D 0x03 Level(5,Ally,False) [03,01] [03,01] [Heal] NoAI
UNIT Empty

Turn_events:
TURN 0x00 Opening_event [01,00] 0x00 0x00
END_MAIN

Character_events:
END_MAIN

Location_events:
Village(0x08,NorthVillage,1,2)
Village(0x09,MackVillage,11,8)
Village(0x10,SouthVillage,1,17)
Seize(0x07,Ending_event,17,26)
Vendor(ShopData1,3,23)
Armory(ShopData2,11,3)
END_MAIN

Misc_events:
CauseGameOverIfLordDies
END_MAIN

Opening_event:
LOU1 Good
ENUN
BACG 0x22
MUS1 0x0002 //Change later.
TEX1 0x0813
REMA
ENDA

Ending_event:
MUS1 0x003 //Change later.
TEX1 0x817
MNCH 0x01
ENDA

TrapData:
ENDTRAP

ShopData1:
SHLI Heal Mend Vulnerary
ENDA
ALIGN 4

ShopData2:
SHLI IronSword IronSpear IronBow
ENDA
ALIGN 4

NorthVillage:
MUSI
FADI 10
BACG 0x02
FADU 10
TEX1 0x814
REMA
MONE 0x00 5000
MUNO

MackVillage:
MUSI
FADI 10
BACG 0x02
FADU 10
TEX1 0x815
REMA
LOU1 Mack
ENUN
MUNO
ALIGN 4
ENDA

Mack:
UNIT 0x07 Cavalier 0x03 Level(5,Ally,False) [11,8] [11,9] [SteelSword] NoAI
ALIGN 4
UNIT

SouthVillage:
MUSI
FADI 10
BACG 0x02
FADU 10
TEX1 0x816
REMA
ITGV SilverSword //Change later.
MUNO
ENDA

MESSAGE Events end at offset currentOffset
//DAMAPSAT D01000.
Can someone help me with this?

You have Opening_Event when it is Opening_event. Lowercase. It is case sensitive.

I believe you need an ALIGN 4 after your ShopData. Your Line 72 messaging is not the actual Line 72 since you’ve cut off some of the template.

2 Likes

Sorry for not putting full text. XD
I already have ALIGN 4 after Shop Data.
And I cannot see where I have the wrong typing for Opening Event. Can you highlight it?

Next time, try ctrl+F

1 Like

I tried that, and now this shows:
Finished.
Messages:
Tutorials disabled
Events end at offset 0xD80248

1 errors encountered:
File One.txt, Line 72, Column 1: Code ENDA’s offset $D80181 is not divisible by 4

No data written to output.

Can you do that please

I tried that. Now this:
Finished.
1 errors encountered:
File One.txt, Line 40, Column 24: Didn’t reach end, currently at NewLine(NL)

No data written to output.

it would be helpful to post that line
or something
idk

at least highlight it

I think line 40 is around here: Misc_events:
CauseGameOverIfLordDies
END_MAIN

you “think”
can you find out for sure? i mean there’s pastebin.com, notepad++, these both give you line numbers

also uh
shouldn’t that be

Misc_events:
CauseGameOverIfLordDies
AFEV

or am I outdated again

define and include must have a # preceding them.

so #define DISABLE_TUTORIALS and #include EAstdlib.event
You’ll also want to put an ALIGN 4 after your Trap data section.

END_MAIN is the new way to end the main scenes like misc, character, etc. The old way still works though IIRC.

2 Likes

It’s a formatting error, Discourse automatically makes lines beginning with # into big text

Oh.
Silly Discourse.

Ok. I tried that and now:
Finished.
1 errors encountered:
File One.txt, Line 40, Column 24: Didn’t reach end, currently at NewLine(NL)

No data written to output.

If it’s telling you that there is an error on line 40 then go to line 40 and check to see you’ve done everything right. You probably missed a ) or something like that

I recommend using TextPad for stuff like this for Line Number support.

EA line numbers are usually off by a bit because the line numbers come from the preprocessed file (aka one without comments etc)

Ok, after adding enemies and making some adjustments, this error shows:
Finished.
1 errors encountered:
File Patch.txt, Line 23, Column 23: Didn’t reach end, currently at Comma(,)

No data written to output.

Here is the text file I am using:

//Made by markyjoe1990 of Youtube
//Modified by Nintenlord
//Chapter eventide by Me

#define DISABLE_TUTORIALS
#include EAstdlib.event

EventPointerTable(0x06,Pointers)

ORG 0xD80000
Pointers:
POIN Turn_events
POIN Character_events
POIN Location_events
POIN Misc_events
POIN TrapData TrapData
POIN Bad Bad Bad Bad
POIN Good Good Good Good
POIN Opening_event Ending_event

Bad:
UNIT 0x00 Brigand 0x44 (1,Enemy,True) [01,05] [01,05] [IronAxe] DestroyVillages
UNIT 0x00 Brigand 0x44 (1,Enemy,True) [18,15] [18,15] [IronAxe] DestroyVillages
UNIT 0x00 Cavalier 0x44 (3,Enemy,True) [8,9] [8,9] [IronSpear] PursueWithoutHeed
UNIT 0x00 Cavalier 0x44 (3,Enemy,True) [16,9] [16,9] [IronSpear] PursueWithoutHeed
UNIT 0x00 Cavalier 0x44 (3,Enemy,True) [16,7] [16,7] [IronSpear] PursueWithoutHeed
UNIT 0x00 Brigand 0x44 (1,Enemy,True) [12,19] [12,19] [IronAxe] DestroyVillages
UNIT Empty

Good:
UNIT 0x03 0x01 0x00 Level(1,Ally,False) [04,01] [04,01] [IronSword] NoAI
UNIT 0x04 0x18 0x03 Level(5,Ally,False) [05,01] [05,01] [IronBow] NoAI
UNIT 0x05 0x16 0x03 Level(20,Ally,False) [03,02] [03,02] [SteelSpear,SteelAxe] NoAI
UNIT 0x06 0x1D 0x03 Level(5,Ally,False) [03,01] [03,01] [Heal] NoAI
UNIT Empty

Turn_events:
TURN 0x00 Opening_event [01,00] 0x00 0x00
TURN 0x00 Reinforcements1 [04,00] 0x00 0x00
TURN 0x00 Reinforcements2 [06,00] 0x00 0x00
END_MAIN

Reinforcements1:
LOU1 Reforce1
ENUN
ENDA

Reinforcements2:
LOU1 Reforce2
ENUN
ENDA

Reforce1:
UNIT 0x00 Soldier 0x44 (5,Enemy,True) [16,1] [16,1] PursueWithoutHeed
UNIT 0x00 Soldier 0x44 (1,Enemy,True) [17,2] [17,2] PursueWithoutHeed
UNIT 0x00 Soldier 0x44 (1,Enemy,True) [16,1] [16,1] PursueWithoutHeed
UNIT 0x00 Soldier 0x44 (1,Enemy,True) [17,2] [17,2] PursueWithoutHeed
UNIT 0x00 Cavalier 0x44 (3,Enemy,True) [8,9] [8,9] [IronSpear] PursueWithoutHeed

Reforce2:
UNIT 0x00 Soldier 0x44 (5,Enemy,True) [16,1] [16,1] PursueWithoutHeed
UNIT 0x00 Soldier 0x44 (1,Enemy,True) [17,2] [17,2] PursueWithoutHeed
UNIT 0x00 Soldier 0x44 (1,Enemy,True) [16,1] [16,1] PursueWithoutHeed
UNIT 0x00 Soldier 0x44 (1,Enemy,True) [17,2] [17,2] PursueWithoutHeed
UNIT 0x00 Cavalier 0x44 (3,Enemy,True) [17,21] [17,21] [IronSpear] PursueWithoutHeed
UNIT 0x00 Cavalier 0x44 (3,Enemy,True) [18,21] [18,21] [IronSpear] PursueWithoutHeed

Character_events:
END_MAIN

Location_events:
Village(0x08,NorthVillage,1,2)
Village(0x09,MackVillage,11,8)
Village(0x10,SouthVillage,1,17)
Seize(0x07,Ending_event,17,26)
Vendor(ShopData1,3,23)
Armory(ShopData2,11,3)
END_MAIN

Misc_events:
CauseGameOverIfLordDies
END_MAIN

Opening_event:
LOU1 Good
ENUN
BACG 0x22
MUS1 0x0002 //Change later.
TEX1 0x0813
LOU1 Bad
ENUN
REMA
ENDA

Ending_event:
MUS1 0x003 //Change later.
TEX1 0x817
MNCH 0x01
ENDA

TrapData:
ENDTRAP
ALIGN 4

ShopData1:
SHLI Heal Mend Vulnerary
ENDA
ALIGN 4

ShopData2:
SHLI IronSword IronSpear IronBow
ENDA
ALIGN 4

NorthVillage:
MUSI
FADI 10
BACG 0x02
FADU 10
TEX1 0x814
REMA
MONE 0x00 5000
MUNO

MackVillage:
MUSI
FADI 10
BACG 0x02
FADU 10
TEX1 0x815
REMA
LOU1 Mack
ENUN
MUNO
ALIGN 4
ENDA

Mack:
UNIT 0x07 Cavalier 0x03 Level(5,Ally,False) [11,8] [11,9] [SteelSword] NoAI
ALIGN 4
UNIT

SouthVillage:
MUSI
FADI 10
BACG 0x02
FADU 10
TEX1 0x816
REMA
ITGV SilverSword //Change later.
MUNO
ENDA

MESSAGE Events end at offset currentOffset
//DAMAPSAT D01000

Any ideas on how to fix this?

I think this is what’s missing from your Enemy Units in the event code.

1 Like

I tried that and now the error is gone from line 23, Thanks! But now this error:
Finished.
1 errors encountered:
File Patch.txt, Line 56, Column 23: Didn’t reach end, currently at Comma(,)

No data written to output.

Do you know how to solve this problem?