Community

AGI Programming => Mega Tokyo AGI Archive => Topic started by: Joel on April 16, 2002, 11:27:28 AM

Title: minor problem with AGI Studio
Post by: Joel on April 16, 2002, 11:27:28 AM
it seems that although AGI Studio can compile empty code blocks, it still has trouble reading them in. In working on the updated Base Logic Generator, I generated a compiled logic where the option "first room" was turned on but the options for the first room were such that there was no code placed inside that command block (i.e., the if statement in the compiled logic wound up looking something like ff fc 01 01 00 01 01 01 fc ff 00 00) -- AGI Studio said "encountered code block with length 0" and said the resource might be corrupted. I created a logic in AGI Studio with the code that I wanted to generate, compiled and extracted it, opened it in the Visual C++ hex editor and they're exactly the same. As its obviously not a problem with the code I'm generating, a suggestion for the next release of AGI Studio would be to fix this problem.
Title: Re:minor problem with AGI Studio
Post by: Joel on April 16, 2002, 11:29:39 AM
As a side note, I will probably have the BLG warn a user if their options will cause an empty code block to be generated -- or I guess if a source file is going to be defined then I could put the empty code block in the source but not in the compiled logic.
Title: Re:minor problem with AGI Studio
Post by: Nailhead on April 17, 2002, 05:19:18 PM
I scanned through that section of the code and it looks to be an easy fix. Thanks for mentioning it.
Title: Re:minor problem with AGI Studio
Post by: Nick Sonneveld on April 17, 2002, 06:15:33 PM
How are things Nailhead?  You been away for a while.  Been busy?

- Nick
Title: Re:minor problem with AGI Studio
Post by: Nailhead on April 22, 2002, 02:12:33 AM
Yeah, I've been busy with a new job, it seems that it's dipping into my "fun time". ;)

My game is slowly getting fleshed out. I was going to release a demo but I think I'll just wait until it's finished (can't wait for that). I think you guys will get a kick out of it.
Title: Re:minor problem with AGI Studio
Post by: Nick Sonneveld on April 22, 2002, 02:53:22 AM
Any chance of a screenshot? :)  I'm glad you're still hanging around though.

- Nick
Title: Re:minor problem with AGI Studio
Post by: Nailhead on April 22, 2002, 10:16:25 AM
A screenshot eh? I think I'd do that. I may make a section about it on my AGI Studio site.