Maximum Number of Lines / Commands in Macro (tech)

Chris H.'s Ultima / ACS-style game development system!

Moderators: Ice Cream Jonsey, joltcountry

Admiral Ackguh

Maximum Number of Lines / Commands in Macro (tech)

Post by Admiral Ackguh »

Typically, macros can have up to 99 usable lines, but I have run into cases where they seem to allow only 60 or 70.

Two of my macros are like that. Past a certain line number, to line 99, the macro is filled with the same dummy command (such as "GOTO 75"). I can delete or replace those dummies, but my changes don't save, and next time I edit, the dummies come back.

I suspect that a macro, like a programmable calculator*, has not only a maximum number of lines, but a maximum number of bytes. Not all commands use the same number of bytes; something like CLRSCR probably uses up only one, for the opcode; but the map-editing commands would need four bytes each.

I estimate 256 bytes as the maximum per macro.

* Anyone remember those?

Chris H
Posts: 272
Joined: Sun Dec 02, 2007 4:07 pm
Location: California, USA

Post by Chris H »

Hi,

Nope, it's max number of lines, doesn't matter how much or little is in those lines. If you're getting crazy stuff like that in a longer macro, I would suspect that the macro file might be corrupted. There was a problem with the copy/paste commands several versions ago that could cause this.

Post Reply