• How to make an EXE or SCR file
  • On HSP, your scripts, data files used for scripts and so on are been able to make an EXE file together. And you can make a SCR file(Screen Saver module) kind of EXE file by same procedure too.

    Do the following procedure to make an EXE file.

    1. You had to make an object file of a script. Then, you must name an object file executed on first "start.ax". If this isn't, scripts were not run.
    2. Make a file list(PACKFILE) in order to include EXE file by dialog of [Edit PACKFILE...]. Please chose all file names(start.ax and so on) to dig into EXE file.
    3. Chose [Make a EXE file] from tool menu on script editor. If you want to make a screen saver, chose [Make a Screen Saver]. Then an EXE or SCR file is made on current directory.
    To make an EXE or SCR file needs a PACKFILE. It makes some files together. And it is a definition file for digging into an EXE or SCR file. A script can use a file appointed on PACKFILE. But it file can't see form a out side. These are following effects.

    Protecting that who cannot pick up picture files and so on used on a game.

    To lose wasted cluster of every files and to reduce amount of disk.

    To prevent that a lot of data files are scattered.

    If you use this function, you can use embedded picture files and so on and make a soft of only 1 file which use picture or sound.(But don't be able to mount a MIDI file, DLL and so on. And you cannot overwrite a embedded file when its content was renewed.)
    Of course, all data files which used in script need not to dig into an EXE file. It is no problem that some files which it is necessary mount and there were the other files as external file. But please pay attention to that an only [start.ax] executed first must be diged into an EXE file. It is made by [Make START.AX] of tool menu on script editor.
    You can edit a PACKFILE by [Edit PACKFILE] of script editor easily. But file name appointed at this must be as MS-DOS file name which doesn't include a space, half size of character and is within 11 characters.

    HSP loads files following order.

    1. When there was a file diged into an EXE file, HSP search it for a file which will be loaded.
    2. If the file doesn't exist, search a current directory for it.
    3. If it doesn't exist, HSP search a directory appointed in path(Windows,System and so on) for a file.
    4. If still it isn't, this is an error.
    If you have finished making an EXE file, first only very minimum of files are moved to a new directory. And you should check whether an EXE file can execute or not. It is at a usual operating directory that EXE file can run normally because a file isn't be embedded and it is a file that you forget to appoint but there are some files which is mounting before at a current directory.

    If you use [External file], you can make an object file to make ON [Make object file] and execute an external file.