[Solved] Event Assembler Errors

I am trying to event my first chapter. The text is written out for the events, but when I try to insert them with EA, this is whats showing up:
Finished.
Messages:
Tutorials disabled
Events end at offset 0xD80259

33 errors encountered:
File Chapter 1 Test.txt, Line 55, Column 1: Symbol Good isn’t in scope
File Chapter 1 Test.txt, Line 72, Column 1: Code ENDA’s offset $D801B1 is not divisible by 4
File Chapter 1 Test.txt, Line 76, Column 1: Code ENDA’s offset $D801C1 is not divisible by 4
File Chapter 1 Test.txt, Line 79, Column 1: Code MUSI’s offset $D801C9 is not divisible by 4
File Chapter 1 Test.txt, Line 80, Column 1: Code FADI’s offset $D801CD is not divisible by 4
File Chapter 1 Test.txt, Line 80, Column 2: Code HIDEMAP’s offset $D801D1 is not divisible by 4
File Chapter 1 Test.txt, Line 80, Column 2: Code BACG’s offset $D801D5 is not divisible by 4
File Chapter 1 Test.txt, Line 80, Column 2: Code FADU’s offset $D801D9 is not divisible by 4
File Chapter 1 Test.txt, Line 80, Column 2: Code SHOWMAP’s offset $D801DD is not divisible by 4
File Chapter 1 Test.txt, Line 80, Column 2: Code TEX1’s offset $D801E1 is not divisible by 4
File Chapter 1 Test.txt, Line 80, Column 2: Code REMA’s offset $D801E9 is not divisible by 4
File Chapter 1 Test.txt, Line 81, Column 1: Code MUNO’s offset $D801ED is not divisible by 4
File Chapter 1 Test.txt, Line 82, Column 1: Code ENDA’s offset $D801F1 is not divisible by 4
File Chapter 1 Test.txt, Line 85, Column 1: Code MUSI’s offset $D801F9 is not divisible by 4
File Chapter 1 Test.txt, Line 86, Column 1: Code FADI’s offset $D801FD is not divisible by 4
File Chapter 1 Test.txt, Line 86, Column 2: Code HIDEMAP’s offset $D80201 is not divisible by 4
File Chapter 1 Test.txt, Line 86, Column 2: Code BACG’s offset $D80205 is not divisible by 4
File Chapter 1 Test.txt, Line 86, Column 2: Code FADU’s offset $D80209 is not divisible by 4
File Chapter 1 Test.txt, Line 86, Column 2: Code SHOWMAP’s offset $D8020D is not divisible by 4
File Chapter 1 Test.txt, Line 86, Column 2: Code TEX1’s offset $D80211 is not divisible by 4
File Chapter 1 Test.txt, Line 86, Column 2: Code REMA’s offset $D80219 is not divisible by 4
File Chapter 1 Test.txt, Line 87, Column 1: Code MUNO’s offset $D8021D is not divisible by 4
File Chapter 1 Test.txt, Line 88, Column 1: Code ENDA’s offset $D80221 is not divisible by 4
File Chapter 1 Test.txt, Line 91, Column 1: Code MUSI’s offset $D80229 is not divisible by 4
File Chapter 1 Test.txt, Line 92, Column 1: Code FADI’s offset $D8022D is not divisible by 4
File Chapter 1 Test.txt, Line 92, Column 2: Code HIDEMAP’s offset $D80231 is not divisible by 4
File Chapter 1 Test.txt, Line 92, Column 2: Code BACG’s offset $D80235 is not divisible by 4
File Chapter 1 Test.txt, Line 92, Column 2: Code FADU’s offset $D80239 is not divisible by 4
File Chapter 1 Test.txt, Line 92, Column 2: Code SHOWMAP’s offset $D8023D is not divisible by 4
File Chapter 1 Test.txt, Line 92, Column 2: Code TEX1’s offset $D80241 is not divisible by 4
File Chapter 1 Test.txt, Line 92, Column 2: Code REMA’s offset $D80249 is not divisible by 4
File Chapter 1 Test.txt, Line 93, Column 1: Code MUNO’s offset $D8024D is not divisible by 4
File Chapter 1 Test.txt, Line 94, Column 1: Code ENDA’s offset $D80251 is not divisible by 4

No data written to output.
Thats a whole lot of errors. Can anyone help me? Here is the text file I am using:
//Made by markyjoe1990 of Youtube
//Modified by Nintenlord

#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 BadEN
POIN GoodEN
POIN Opening_event Ending_event

Turn_events:
TurnEventPlayer(0x00,Opening_event,1)
ENDA

Character_events:
ENDA

Location_events:
Village(0x04,Gate1,1,2)
Village(0x05,Gate2,11,8)
Village(0x06,Gate3,1,17)
Seize(0x07,Ending_event,17,27)
Vendor(ShopData1,3,23)
Armory(ShopData2,11,3)
ENDA

Misc_events:
CauseGameOverIfLordDies
END_MAIN

BadEN:
UNIT Empty

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

Opening_event:
MUS1 0x0002 //Will change later. Just for testing.
Text(0813,0x22)
FADI 10
LOU1 Good
MOVE 0x03 [4,1]
MOVE 0x04 [5,1]
MOVE 0x05 [3,2]
MOVE 0x06 [3,1] 0x1
OOBB
ENDA

Ending_event:
MNCH 0x01
ENDA

TrapData:
ENDTRAP

ShopData1:
SHLI IronSword IronSpear IronBow
ENDA

ShopData2:
SHLI Heal Mend Vulnerary
ENDA

Gate1:
MUSI
Text(0814,0x0D)
MUNO
ENDA

Gate2:
MUSI
Text(0815,0x0D)
MUNO
ENDA

Gate3:
MUSI
Text(0816,0x0D)
MUNO
ENDA

MESSAGE Events end at offset currentOffset
//The map for this chapter is at offset: D01000

EA is still in its original folder, and nothing was moved. I also have the most recent version of Microsoft .Net Framework.

Try moving the Location events under the Location Events (lol), not at the end of the code.
Also i think that the first error is caused because you wrote “LOU1 Good” when the units are writed as “GoodEN”.
I’m not that good, but try xD

There’s no unit group named “Good” therefore the EA is giving you this error.

Try putting the code “ALIGN 4” at the bottom of each of these

1 Like

I edited the text like you said, tried that, and wow, a lot of the errors are gone now! Thanks! Just this is showing up now.Do you know how to fix this?:
Finished.
Messages:
Tutorials disabled
Events end at offset 0xD8025C

1 errors encountered:
File Well…Ok.txt, Line 72, Column 1: Code ENDA’s offset $D801B1 is not divisible by 4

No data written to output.

Do the same thing, except on the line before it’s getting the error i.e. Line 71.

Can you please highlight it, and show me where I should type ALIGN 4?
When I type it on line 71, I am getting 2 errors.

ShopData1:
SHLI IronSword IronSpear IronBow
ENDA
ALIGN 4

ShopData2:
SHLI Heal Mend Vulnerary
ENDA
ALIGN 4

Do it like this

Yeah I did that already. I typed ALIGN 4 after it, and still no luck. Isn’'t this line 71:
Make the necessary edits:
Gate2:
MUSI
Text(0815,0x0D) (Line 71)
MUNO
ENDA

I don’t know what your Line 71 is, I don’t have your text file. Why don’t you try putting in ALIGN 4s around and see what works?

@Tordo45, try putting in an ALIGN 4 after ENDTRAP

1 Like