Script import bug

Started by Nickenstien, Mon 24/11/2008 19:06:52

Previous topic - Next topic

Nickenstien

Hi there. :)

I have created some scripts that I wish to use in another project, however the import-script facility only allows for the importing of the old-style Script-modules (*.scm) files.

The scripts I wish to import are *.ash & *.asc, but the import dialogue won't allow this. Even if I force the dialogue to display and load *.ash/*.asc files it reports a load error, as it wants *.scm files.

The create-new-scripts option will generate blank *.asc/*.ash files, whilst the import-script option only allows *.scm files. Also, the help documentation states that *.scm is the old way, so I am guessing that the code for the script-importer-dialogue requires an update to accept the newer *.asc/*.ash files.

I can work around this by creating new blank scripts within the second project, and then copy-pasting the code into them, but I thought that you might want to know that the script-importer is a bit broke (or rather, is out-of-sync with the new *.asc/*.ash way of working). However this work-around is getting very fiddly/cumbersome, as I am working over-the-net with somebody else. We are juggling quite a lot of scripts now and this is starting to make our script-sharing get a little messy/complicated.

I believe that I am using the latest Build (3.0.2.44 - June 2008).

Cheers,
Nick

Gilbert

I'm not quite sure about the import problem as I haven't tried it yet, but V3.0 is not the latest version. V3.1 had been officially released, you may backup your game and try this first (UNLESS your game relies on low res. game coordinates with high res. backgrounds, which is no longer supported since V3.1).


Nickenstien

Hi, Gilbert.

Yeah, I still get the same issue (unable to import *.asc/*.ash scripts) with the very latest build:

AGS Editor .NET (Build 3.1.0.60)
v3.1, November 2008


Gilbert

Okay. I've just checked. You cannot import the .as? scripts directly. Instead, open up the game in the editor, right click a script and export it to a .scm file. When you import the .scm file in another game the editor should create the corresponding .as? files without problems.

Khris

Another way is to create a new blank module and then copy & paste the contents over. The .as? files are plain text files.

Pumaman

Yes, as Gilbert says, you export the script to a .SCM file (right-click Export on the script in the project tree), and can then import that into another game.

SMF spam blocked by CleanTalk