R0J0hound's Recent Forum Activity

  • I imagine it may be something amiss in the cap.

    If you post the cap it probably can be fixed.

  • Using ImageManipulator, if you set a pixel's color to rgb(255,0,255) it will become transparent.

  • [quote:nejizup3]ROjo are you using a different method?

    I used trial and error as py2exe and other programs like it are, in my opinion, too ambitious and include more than what it needed.

    Basically I start off my script setting the module search path to just one empty directory.

    sys.path=[r'c:\temp'][/code:nejizup3]
    Then I run the layout.  It says import error, and I copy the missing pyc|pyd file from the python folder to my empty path folder, keeping the same directory structure.  Repeat until no more import error occur.
    
    For the dll files python was less helpful.  It merely stated, "Import error:DLL load failed", so I ended up copying all the sound related dlls from the pygame folder and that got it working.
  • Here is a working example:

    http://dl.dropbox.com/u/5426011/examples4/pygamemixerEX.zip

    When exporting the only python library that needs to be selected is "stringIO.pyc". Also put the "py" directory in the same folder as the exported exe.

  • If you are using 0.99.97 you could use the Add/Remove Attribute action to enable/disable "Solid" or "Platform".

  • [quote:1void868]-Click "Run Layout" in any layout

    Does that crash Construct or just the runtime.

    [quote:1void868]I guess the .Cap is corrupted now? The project is pretty much all graphics with just two layouts having events, and combined it's probably less than 10 events total.

    Can the cap be opened on a different computer?

  • Here is a utility to fix caps where adding a new object removes another. It also has a newer version of capreader.py with many tweaks and fixes.

    http://dl.dropbox.com/u/5426011/utility/addobjfix.zip

  • I made a utility that will fix the cap: http://dl.dropbox.com/u/5426011/utility/addobjfix.zip

    Extract that file, open it and change "filename=" to whatever file you want fixed.

    I'm unsure why this issue would come up. Did you do any copy/pasting between caps? Other than that I'm at a loss.

  • Could you post a cap? I cannot reproduce it here by adding the plugins you mentioned. Do you have any other plugins on other layouts in the cap?

  • Add this line to the top of the script:

    sys.path.append(System.AppPath)

    You could also try saving the cap. That should update the cap's folder info.

  • It has all the required files included. Just extract all the files into a directory before running the cap. The example should be able to find "capreader" because it's in the same directory as the example cap.

    Edit:

    No python install should be needed. Any needed python modules are included with the Construct install with the exception of "capreader" which is included in the zip.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • If you uncheck "Enable Scripting" do you still get an error? Construct will automatically copy python26.dll from it's install directory to that folder that temp.exe is in.

R0J0hound's avatar

R0J0hound

Member since 15 Jun, 2009

Twitter
R0J0hound has 155 followers

Connect with R0J0hound