3 AMS projects sharing the same data ?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • Automan
    Indigo Rose Customer
    • Oct 2009
    • 92

    3 AMS projects sharing the same data ?

    Hi All,

    This is a unique situation for me as I have never run more than
    one AMS project at time on a PC.

    I have 3 seperate compiled AMS projects running at once.
    They all use the same graphics, objects etc, however each project
    does have its own function and purpose.

    My question is, is there a way to compile all three to share
    the same graphics and objects to reduce the amount of
    hard disk space the three will use ? Im sure there is a really
    simple answer thats going to make me feel stupid. Would
    running all exe's from the same folder and specifying the same
    data path do it ?? I have tinkered a bit there but want to know
    if that may cause other issues.

    Thanks in advance.
  • longedge
    Indigo Rose Customer
    • Aug 2003
    • 2498

    #2
    I've never done it but I would have thought that if the 2 'sub-apps' are exes located within the folder structure of the main app, then you could use SFXSOURCE to reference the shared resources.

    Comment

    • Automan
      Indigo Rose Customer
      • Oct 2009
      • 92

      #3
      Thanks for reply longedge, I shall check that out now.
      However Im realising the resource and data files are
      not the space invaders. Its the individual exe files.
      Seems the minimum size per exe is 5-6 megs.

      Im wondering if I can run multiple instances of
      the same exe and import scripts via the dofile
      to perform the different tasks required...

      Comment

      • RizlaUK
        Indigo Rose Customer
        • May 2006
        • 5552

        #4
        why not build all 3 apps into the same project and just launch a new instance of the exe with a command line switch to display the correct portion of the application, page 1 is app 1, page 2 app 2 and so on

        you can use scripts to do pretty much anything that AMS has to offer by default but you can not create plugin objects dynamically like that so if you use plugins you would want create static pages

        with scripts you can make a AMS runtime designed for a particular purpose do 101 other things as well, its just knowing how to use them, a lot of trial n error and a huge box of headache tablets will help you through :yes
        Embrace change in your life, you never know, it could all work out for the best

        Comment

        • Mick
          No longer a forum member
          • Feb 2012
          • 173

          #5
          I build my apps to a folder then repack them with The Enigma Protector, if you did that you would just have one folder structure shared by all apps

          Comment

          • Automan
            Indigo Rose Customer
            • Oct 2009
            • 92

            #6
            Originally posted by RizlaUK View Post
            why not build all 3 apps into the same project and just launch a new instance of the exe with a command line switch to display the correct portion of the application, page 1 is app 1, page 2 app 2 and so on

            you can use scripts to do pretty much anything that AMS has to offer by default but you can not create plugin objects dynamically like that so if you use plugins you would want create static pages

            with scripts you can make a AMS runtime designed for a particular purpose do 101 other things as well, its just knowing how to use them, a lot of trial n error and a huge box of headache tablets will help you through :yes
            I tried this exact approach, I was going to put each app on a seperate page,
            but was under the impression that the main exe could not spawn itself again
            on each page whilst it was running. Do you have that command line switch
            handy ? :lol

            Comment

            • Automan
              Indigo Rose Customer
              • Oct 2009
              • 92

              #7
              Originally posted by Mick View Post
              I build my apps to a folder then repack them with The Enigma Protector, if you did that you would just have one folder structure shared by all apps
              That looks like some neat software, does it work well with remote deployment ?

              Comment

              • Automan
                Indigo Rose Customer
                • Oct 2009
                • 92

                #8
                RizlaUK (Or anyone that may know)

                I can launch the main exe multiple times from explorer,
                but not from within the running exe.
                Is there a trick to this ?? I think I could do what I was
                seeking if yes.

                Comment

                • Mick
                  No longer a forum member
                  • Feb 2012
                  • 173

                  #9
                  Originally posted by Automan View Post
                  That looks like some neat software, does it work well with remote deployment ?
                  Not sure what you mean by remote, but you can call virtulized exe files from the app with command line and receive exit codes, haven't tested this yet;

                  Consulting Services and Software Extensions


                  but reasonably sure using that and the protector will let you do what you need and be able to have the exe files talk to each other when running

                  Comment

                  • Automan
                    Indigo Rose Customer
                    • Oct 2009
                    • 92

                    #10
                    Thanks for the suggestion Mick, I did download and had a play around
                    with the plugin. Although it didnt do "exactly" as I wanted, its something
                    I can see that will be useful for other projects, thankyou !

                    Comment

                    Working...
                    X