Read-only archive of the Armageddon Games Forums Archive (2000–2026) · About this archive

DrawBitmapEx and other New Things -> ZASM Command Limit Reached ?!

2 replies · 1,828 views · Started 07 December 2016

I've been working on the merger of 2.50.x and master, and I have a major problem:

I added DrawBitmapEX to the system, and I know that my function works--it's an overly simplified placeholder--, and I'm relatively certain that I implemented it properly.

...however...

When I try to call DrawBitmapEx() in ZC, I receive this error:

Invalid ZASM Command 233 reached.

[MENTION=42714]Gleeok[/MENTION] : Does this mean that I've hit some artificial cap in how many ZASM instructions are available in the bytecode (ASM_DEFINE)?

Here is a ZIP with all the code, and the binaries...

http://timelord.insomnia247.nl/zc/zc_dev/zc254_beta_6.zip

... and here is a quest file to demonstrate this...

http://timelord.insomnia247.nl/zc/zc_dev/bitty.qst

Did I do anything wrongly, or is this a more complicated fix? If the bytecode table is capped out, we absolutely need to fix that so that I can reimplement all the new drawing functions. I thought that the size of the table scaled with NUMCOMMANDS...?

P.S. I erased the .sav file, and made a new one before testing this, so it's not a problem with an older save format; unless I need to adjust something in the save file definitions???

Saffith wrote:233 is GETDMAPSCREENDOOR, and it isn't handled.

Oh, I see what I did. I wasn't aware that temporary entries in the ASM_DEFINE table would throw errors unless they were called

Thank you, [MENTION=38582]Saffith[/MENTION]. it's fixed now, so I'll move on to DrawTileArray, DrawComboArray, DrawPixelArray, and CreateBitmap. I've no idea if these worked in 'master', but I suppose we'll find out.