05-06-2016, 09:45 PM
(05-06-2016, 03:05 AM)Imzogelmo Wrote: Seriously, it would almost be easier to pass the whole event system through a separate lookup table (that is, recode it so that instead of addresses you just get an index to a pointer table). It would add a lot of bulk, yes, but it would be so so much easier to maintain.
This is what I'd suggest if a community project were taken on. Just give each event an index. No longer worry about where it lands; the whole thing can be relocated and the indexes need not change. I think the overhead of a pointer table would be worth it, and besides, the structural data that calls it (NPC struct, map struct, tile trigger struct) could shrink each entry from 3 bytes to 2, which would more than make up for the pointer table in absolute terms.
Seems like a win-win to me.
I appreciate the prayers and good wishes. Those who don't know, I was diagnosed with stage 4 melanoma in 2019, and I have done well with the treatment, but eventually treatments stop working and you change. I recently had a seizure at work, now I am healing but not able to work or really do much at all. The focus is just to get better. Again, thanks for the support and if I can help you I will. I've forgotten more about this game than most people should ever learn, lol.