Sour Pickings with a Broken C1 Lemon
Written onNorn test subjects are quite valuable when it comes to testing out COBs. I had one particular victim… Err, participant, who went straight for the next round of the lemons! The last update centered around a problem I solved, yet things got rather bad for the lemons. They grow properly and are only visible when they’re ready to be eaten. The problem? Creatures 1 crashes every time either I or a Norn picks up a lemon. I’ve tried changing parts of the CAOS script, and looked through the sprite file. All seems to be in order, on the surface. But the image isn’t even shown when a lemon is picked up…
All I get is this absolutely lovely error message and a crashed world! The culprit is probably some silly, amateur mistake somewhere in the coding. It’s been quite frustrating, though! Any thoughts? I’m happy to share the current scripts, even though they they’re not fully complete. Such is the struggle with crafting updates for Creatures! It’s not all bad, though.
The behavior of lemons appears to be improved, at least on first glance. It would probably help if a Norn could interact with the updated version first, though! The chemicals from eating a lemon have been slightly changed. The most significant update in that department is the removal of pain increase. As realistic as it is to say that eating a lemon would cause pain, this isn’t a very good thing for the rather simplistic brains of Norns and Grendels! It was such a low dose to begin with, yet I wanted to make sure that nothing bad would happen if someone decided to park himself or herself in front of the lemon trellis. I’ll have plenty more to reveal… Once these lemons stop crashing the game, of course!
Given those symptoms my first two bets would be:
– Either a missing position in the spr file or trying to set the object to an invalid pose: Is the “picked up” pose hardcoded? Or calculated from previous pose by addition? If so, does it fall within the range of the number of available images in the sprite? Wasn’t the sprite updated or changed since the script was written? Does the sprite file have the expected number of poses? Would the script work as expected if only the pose changing lines were removed? Isn’t it trouble with the numbering of poses starting at 0? (Last pose in a 10 picture sprite would be pose 9) …
– Or maybe just a pretty bad generic syntax error.
C1 seems to be very sensitive about those, but this I can’t tell without seeing the actual script.
Those are just my early guesses though, I didn’t have the time to fully look at your recent updates.
Let me know if it helped.
And good luck with those promising updates!
Thanks for all of those suggestions and ideas, LoneShee! I had to take a short break from Creatures to work things out. Luckily, I seem to have solved the problem! It all came down to understanding how to assign the number of poses for an object and using the correct ones in a sprite file. This means that I needed to add duplicates of poses for being picked up and dropped, but all is now working! I seem to just need to do a few image placement updates, which shouldn’t be too bad. Just a few more rounds of testing, and these lemons will either be up for beta testing, or just released in full! I should have a post with some more updates soon. It’s amazing what a short break can do for the mind! I do appreciate all of your thoughts, though: Some of those sparked some thought processes that helped me figure things out!