Export Room to XML?

Started by Clarvalon, Wed 15/04/2009 14:49:01

Previous topic - Next topic

monkey0506

Quote from: clarvalon on Tue 13/10/2009 14:14:10I've been looking  at this and have encountered RoomController.GetAreaMaskPixel(), which looks like it will help me pull out hotspots etc., although it will not be able to indicate when hotspots overlap.

Just so you know clarvalon currently in AGS all of the hotspots, walkable areas, regions, etc. are assigned to a single bitmap per room (that is one bitmap per room 1's hotspots, another for room 1's walkable areas, etc.). This means that none of the areas are ever (until such time in the future as this behavior may be replaced within the engine and editor) going to overlap.

Clarvalon

So there should never be an instance where the cursor is over two hotspots, or the player character is stood on two distinct regions/walkable areas?  If yes, that's good.  Certainly makes my job easier.
XAGE - Cross-Platform Adventure Game Engine (alpha)

monkey0506

Right. AGS determines where the character is standing based on his (X,Y) co-ordinates. The Z index allows for displacing the character's graphical position (i.e., to make them appear to "float") but the events are always triggered by the actual (X,Y). Therefore since there's no overlapping, there can only be one possible event shooting off at a time that you would have to worry about.

Clarvalon

Thanks for the clarification.  I'm starting to amass a large amount of high-level questions about AGS, so I should perhaps spend more time in the beginner's forum.  

Due to the help provided in this thread I've been able to make Awakener convert with much greater functionality, and it is now (almost) visually pixel-perfect under XAGE.  I've posted a short update here.  Thanks guys!
XAGE - Cross-Platform Adventure Game Engine (alpha)

Dualnames

Quote from: Dualnames on Fri 09/10/2009 16:30:09
Quote from: clarvalon on Fri 09/10/2009 15:56:24
@DN:  I'm happy to try a conversion on one of your Hitchhiker's demos, if you were happy to send me the source.  It might be a while before I get a chance, but I could similarly capture a quick vid of it on the xbox and send you a link to the Silverlight version (as I have done with Ben).  The same goes to anyone else - each conversion improves the process and provides new insights, although the quality of the conversion may vary substantially from game to game.

If you can convert it, you can convert about anything in AGS.(NoI'm not bragging about it,it's that it has so many modules and various stuff, and it's a rather large game, that it contains mostly more than the basic AGS script.

I send the files to Clarvalon and I got this really funny reply, proving my point...


Quote
   Thanks.  I still haven't quite wrapped my head around the problem but I'll look at it again when I've got the time.

To give you an idea of where HitchHikers is compared to Awakener, the former has 9814 unhandled scripting errors (NOT including modules) whilst the latter currently has 263.  Obviously while I work on Awakener's 263 errors the Hitchhiker number will start to fall too.

Worked on Strangeland, Primordia, Hob's Barrow, The Cat Lady, Mage's Initiation, Until I Have You, Downfall, Hunie Pop, and every game in the Wadjet Eye Games catalogue (porting)

Clarvalon

As of this morning the number has dropped to 9779, and Arthur has stopped walking backwards.  Getting there  :)
XAGE - Cross-Platform Adventure Game Engine (alpha)

SSH

Let us know when it's down to... 42
12

Dualnames

Quote from: clarvalon on Fri 23/10/2009 09:49:53
As of this morning the number has dropped to 9779, and Arthur has stopped walking backwards.  Getting there  :)

Not really..eh..Arthur initially spins around and walks backwards as that;s how it's indicated he's dizzy, then when you eat the pill it reverts to his normal view and should walk normally..
Worked on Strangeland, Primordia, Hob's Barrow, The Cat Lady, Mage's Initiation, Until I Have You, Downfall, Hunie Pop, and every game in the Wadjet Eye Games catalogue (porting)

SMF spam blocked by CleanTalk