PDA

View Full Version : DrawBitmapEx and other New Things -> ZASM Command Limit Reached ?!



ZoriaRPG
12-07-2016, 02:08 PM
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.

Gleeok : 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
12-07-2016, 08:14 PM
233 is GETDMAPSCREENDOOR, and it isn't handled.

ZoriaRPG
12-08-2016, 01:23 AM
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, Saffith. 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.