Adventure Game Studio

AGS Support => Modules, Plugins & Tools => Topic started by: Clarvalon on Sat 10/10/2009 22:48:50

Title: EDITOR PLUGIN: AGSExportPlugin
Post by: Clarvalon on Sat 10/10/2009 22:48:50
[Edit: 18th Jan 2018] The AGS Export Plugin has now been open sourced:

What better way to spend a Saturday night than writing my very first AGS Editor plugin?  This plugin is based upon the RoomXML exporter code by Denzil Quixode (http://www.adventuregamestudio.co.uk/yabb/index.php?action=profile;u=511).

NOTE:  The second stage of the conversion requires XAGE Editor v0.5, which has not yet been released to the public (so it's pretty useless to most people at the moment).

Usage:  This plugin prepares AGS game files in a way that is suitable for conversion to the Xna Adventure Game Engine (http://www.clarvalon.com/) (XAGE), in order to play them on the Xbox360 or via a web browser.  It is designed to be as straightforward as possible, so the instructions should hopefully be self-explanatory.  After copying AGS.Plugin.ExportToXAGE.dll to the AGS Editor executable directory, a new option should appear on the toolbar, 'Export -> Prepare game for XAGE':

(http://i360.photobucket.com/albums/oo42/clarvalon/AGS%20Editor%20Plugin/AGSEditorXAGEPlugin1.png)

(http://i360.photobucket.com/albums/oo42/clarvalon/AGS%20Editor%20Plugin/AGSEditorXAGEPlugin2.png)

If selected, the plugin will then launch XAGE Editor and automatically begin the second stage of the conversion process. 

(http://i360.photobucket.com/albums/oo42/clarvalon/AGS%20Editor%20Plugin/AGSEditorXAGEPlugin3.png)

Download:  ExportToXage v0.4.zip (http://www.clarvalon.com/XAGE/Release/ExportToXage%20v0.4.zip)

Changelog:
  v0.5 - Released Source Code (22nd Dec 2012).
  v0.4 - FIXED - Rooms with no description & View subfolder warning.
  v0.3 - FIXED - Uses relative rather than absolute paths.
  v0.2 - ADDED - Extracts Hotspots, Regions, WalkAreas, WalkBehinds as PNG.
  v0.1 - Initial version.  Automates extraction of Room XML, sprites and room background images.
Title: Re: EDITOR PLUGIN: "Export to XAGE" v0.1
Post by: arj0n on Sun 11/10/2009 14:58:07
Amazing & awesome job your doing with this AGS -> XAGE project clarvalon! :D
Hope you get supported with enough useful sources from ags gamemakers
so you can work it all out to a 100% finished and stable version ;)
I'll keep an eye on this project for sure.
Good luck!
Title: Re: EDITOR PLUGIN: "Export to XAGE" v0.1
Post by: Denzil Quixode on Mon 12/10/2009 12:27:45
Cool! I'm glad to see you're getting use out of that code already :)

One thing though, do I need a box.net account or something to download it? The URL doesn't seem to give me any obvious option to download the file, I just see a generic landing page
Title: Re: EDITOR PLUGIN: "Export to XAGE" v0.1
Post by: Clarvalon on Mon 12/10/2009 15:49:27
Whoops, I cocked up the URL.  Fixed now.
Title: Re: EDITOR PLUGIN: "Export to XAGE" v0.1
Post by: Dualnames on Tue 13/10/2009 15:40:02
I'm waiting for you to post a linky on XAGE Version 0.5! Why the tease?!!! :D
Title: Re: EDITOR PLUGIN: "Export to XAGE" v0.1
Post by: Clarvalon on Tue 13/10/2009 18:00:04
But waiting is fun!  Sometimes I like to just sit and stare at my enormous ToDo list and happily twiddle my thumbs.
Title: Re: EDITOR PLUGIN: "Export to XAGE" v0.2
Post by: Clarvalon on Tue 13/10/2009 23:59:07
Cracked it - All masks are now being extracted as PNG images.  AGS Hotspots are now successfully being extracted and converted into XAGE objects.  WalkBehinds should be fairly straightforward.  Regions and WalkableAreas are going to prove much trickier.  Plugin updated to v0.2.
Title: Re: EDITOR PLUGIN: "Export to XAGE" v0.2
Post by: Dualnames on Wed 14/10/2009 07:08:06
Quote from: clarvalon on Tue 13/10/2009 23:59:07
Cracked it - All masks are now being extracted as PNG images.  AGS Hotspots are now successfully being extracted and converted into XAGE objects.  WalkBehinds should be fairly straightforward.  Regions and WalkableAreas are going to prove much trickier.  Plugin updated to v0.2.

Great, still can't see it, but greatness so far.. :D
Title: Re: EDITOR PLUGIN: "Export to XAGE" v0.3
Post by: Clarvalon on Tue 12/01/2010 13:57:01
Plugin updated to v0.3 (paths now stored as relative rather than absolute to make it easier to move or share conversion projects).
Title: Re: EDITOR PLUGIN: Export to XAGE v0.4
Post by: Clarvalon on Mon 18/01/2010 23:26:42
Plugin updated to v0.4 (rooms without a description were not being correctly converted, also added a warning to ensure all views are in the base folder rather than organised into subfolders, as the game.agf deserializer cannot cope with recursive types in the xml).
Title: Re: EDITOR PLUGIN: Export to XAGE v0.4
Post by: Dualnames on Tue 19/01/2010 19:50:30
Cool! Two updates so fast! Still need the ... thing missing (:P)..
Title: Re: EDITOR PLUGIN: Export to XAGE v0.4
Post by: Clarvalon on Tue 19/01/2010 20:00:01
Chances are the XAGE v0.5 alpha will be released once I'm done with Awakener, but I may sit on it a few weeks longer to work on the GUI stuff, to help more games convert to a playable state.  Not too long now  :)
Title: Re: EDITOR PLUGIN: Export to XAGE v0.4
Post by: Dualnames on Tue 19/01/2010 20:15:34
Quote from: clarvalon on Tue 19/01/2010 20:00:01
Chances are the XAGE v0.5 alpha will be released once I'm done with Awakener, but I may sit on it a few weeks longer to work on the GUI stuff, to help more games convert to a playable state.  Not too long now  :)

No worries, I don't think I'll be able to convert HHGTG anyway.. :D
Title: Re: EDITOR PLUGIN: Export to XAGE v0.4
Post by: Clarvalon on Sat 22/12/2012 14:01:50
I was asked for the source code so here it is in case anyone else can make use of it:  Clicky (https://dl.dropbox.com/u/45815106/AGSExportPluginSource.zip)

Warning - hastily written, badly maintained code alert!
Title: Re: EDITOR PLUGIN: Export to XAGE v0.4
Post by: Freidenker01 on Thu 16/05/2013 08:00:07
Hey there XAGE sounds very cool!!!!

I'm highly interested and wanted to give it a try...but...I couldn't find a working download of v0.4 (the download link on your blogspot page seems to be dead) Would be cool if you (or somebody else, who's reading this post) could give us a working download ;-)
Title: Re: EDITOR PLUGIN: Export to XAGE v0.4
Post by: Clarvalon on Thu 16/05/2013 20:05:15
XAGE has been offline for a long while now as I've been re-working some of the core parts, and the supporting tools need work to bring them in line with the new approach (heavy Visual Studio integration).  The compiled exporter plugin is available here:  AGS.Plugin.ExportToXAGE.dll (https://dl.dropboxusercontent.com/u/45815106/AGS.Plugin.ExportToXAGE.dll)
Title: Re: EDITOR PLUGIN: AGSExportPlugin
Post by: Clarvalon on Thu 18/01/2018 21:13:32
This plugin has now been open sourced - see edit to original post.
Title: Re: EDITOR PLUGIN: AGSExportPlugin
Post by: bx83 on Mon 09/04/2018 12:17:26
Hi, is v0.2 (export backgrounds to png format) still around? All I can find is v0.6, which exports to .alpha
Btw which compiler do you use for the plugin? Visual C? I'm not versed in anything but AGS but I'll recompile if I absolutely have to :p
Title: Re: EDITOR PLUGIN: AGSExportPlugin
Post by: Clarvalon on Mon 09/04/2018 15:20:35
Not sure of the specific version but here's one I found on my dropbox dated 2013 - Link (https://www.dropbox.com/s/zr305zvdbvqmgap/AGS.Plugin.ExportToXAGE.zip?dl=0).

I've also compiled it from source, the very last version before the output format was changed to .apha (pre github repo) - Link (https://www.dropbox.com/s/u7z3vhueqrsz3qy/AGS.Plugin.ExportToXAGE.dll?dl=0).

If the output from either isn't suitable then next step would be to fork the repo on github and change to whatever format you need.  This is an AGS Editor plugin so uses C#.
Title: Re: EDITOR PLUGIN: AGSExportPlugin
Post by: bx83 on Mon 09/04/2018 20:13:10
Thank you :D
Title: Re: EDITOR PLUGIN: AGSExportPlugin
Post by: Crimson Wizard on Mon 09/04/2018 20:51:04
I actually wonder if this plugin may be reworked into some tool for the sole purpose of extracting CRM room data into pieces, since it seem to be doing it already. That might be useful on its own for various reasons.

I recall there was already some "crm tool" program made before, but don't remember what it was doing.

PS. Oh, found it: http://www.adventuregamestudio.co.uk/forums/index.php?topic=44543
But the download link is broken, and idk if author has uploaded the code anywhere. It was too long ago to recover, I guess.
Title: Re: EDITOR PLUGIN: AGSExportPlugin
Post by: bx83 on Wed 11/04/2018 11:05:12
Clarvalon, thankyou for helping me in the other thread - ps do you have the code from < v0.6, as opposed to the binaries?
Title: Re: EDITOR PLUGIN: AGSExportPlugin
Post by: Clarvalon on Wed 11/04/2018 11:47:10
At work currently so haven't checked it, but try this - Link (https://www.dropbox.com/s/lrknyzg6nkk1x04/AGSExportPluginSource.zip?dl=0).
Title: Re: EDITOR PLUGIN: AGSExportPlugin
Post by: Clarvalon on Mon 23/09/2019 22:56:44
v0.7 has been released on github (https://github.com/clarvalon/AGSExportPlugin):