R0J0hound's Recent Forum Activity

  • For the python bit, change it from this:

    Text[1].Text = "This is a test"[/code:33d0t2mh]
    to this:
    [code:33d0t2mh]SOL.Text.Text = "This is a test"[/code:33d0t2mh]
    
    SOL stands for selected object list, and is mainly useful for accessing objects just created it that event.
    
    You can avoid python altogether in this situation.  Just use the Set Text action in that event.  The newly created text object will be the only one affected.
  • The System Compare Time condition isn't implimented in the runtime:

    Assertion failure: Condition method 'CompareTime' appears to be missing, check ACE table names match script names[/code:1c6vnayk]
  • I imagine it may be something amiss in the cap.

    If you post the cap it probably can be fixed.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 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.