scidave's Forum Posts

  • i changed from os to program so i would appretiate if u guys would stop calling it an OS cause it isnt its a program

    Can we lock this thread???? Because this guy is so aggravating it just invites flame wars... seriously why attack someone for giving you advice on a great way to customize an OS (use Linux). Look at the title of your thread!!!!

    I second the Linux idea personally for a good way to learn about OS's. But you are free to build whatever you want to, just change the name of this thread then.

  • What???? Are you a bot, because that's crazy talk about making an OS in Construct. You would have to do nearly all of the core code with plugins to have low enough level access. Interesting idea though.

  • Do you have a duplicate event somewhere? Have you tried adding a "Trigger Once While True" to the event?

    A .cap would help especially since you said it worked fine at one point.

  • oops.. sorry. After Deadeye posted, your question makes a lot of sense. The big problem I see is that you want the user to destroy the desktop and I am assuming this is the desktop as Windows first boots. He/she might have several windows open which even if you automated a screenshot using Python or something else you wouldn't get the "real" desktop.

    One way to do it, arguably somewhat ghetto, is to have the player take the screenshot. You could flush the clipboard using the System action at the start of the layout, pop up a message box asking for the user to "goto the desktop" and take a screenshot, then save the image using the Image Manipulator. Then just use a while loop to confirm they actually saved it...before starting game.

    Here is an example: http://www.box.net/shared/pi0gbddbdc

    You could also do this with the PyQt4 module. Unfortunately, I can't get Construct to place nice with this even though it works flawlessly outside. You have to download the PyQt4 binary installer, Sip and MinGW to run this.

    import sys
    from PyQt4.QtGui import QPixmap, QApplication
    app = QApplication(sys.argv)
    QPixmap.grabWindow(QApplication.desktop().winId()).save('game.png', 'png')[/code:3fk2egjr]
    
    Cheers!
  • This question doesn't make any sense, which is probably why it is not being answered. Who is the other user and what screen do they have??

    You could take a screenshot using Python and the "gtk.gdk" library.

  • Great vid and game! I noticed the weird errors with jumping, caused me to die several times. I tried shooting at the big blob at the end several times, then decided it was safe to run past him. oops!! It's a funny bug where you can still run around and shoot invisible. Nice for a 4 hour.

  • You need to replace the NULL bytes (which automatically terminates a string) with something else.

    For example:

    f = open("python_error.jpg", "rb")

    text = f.read().replace('\x00','\x32')

    f.close()

    EditBox.SetText(text)

    Example .cap: http://www.box.net/shared/rkknb1p4uk

  • but they seem to stay in my outbox instead of being sent I dont know what happened there.

    This same thing is happening to me. I can't PM anyone. It just stays in the outbox, but isn't marked "sent".

  • When did the "Wait" object sneak into Construct?? lol.. I didn't even know it was there. Wait isn't as powerful as a Finite State machine (although maybe you could create one with a bunch of Waits and other conditions). I think Mipey's point is to reduce the clutter of combining a bunch of actions and conditions to equal an FSM.

  • Sadly this is a python issue. They have the same problem.

    Yeah, I see your point. I was reading more about py2exe to see what insight could be gain from it and they had this link: http://www.py2exe.org/index.cgi/PathModul . That is the same solution, manually changing import names, that we are looking at right now. However, their problem with external libraries is not nearly as bad as Constructs (mostly because it is all Python at first . For example, I was able to easily create a standalone .exe using the AIML libraries. I just can't do the same in Construct (even after lots of renaming).

    So far the solution is to run an unofficial script that reads the libraries, creates dependency data and bundles everything into an .exe, option that is not useful for Construct.

    That is true that py2exe (or pyinstaller) isn't immediately useful to Construct, but it seems entirely plausible that that functionality could be added to Construct with a lot of effort. However, sadly I personally don't think it is worth the effort considering all of the other bug fixes and updates that could solved with the time. I think I've finally resigned that it just isn't worth it to try to officially support other python libraries.

  • I don't have a tablet, but I was assuming based on an earlier post that this would work fine without one.

    Also, I don't have Python installed.

  • I have just downloaded vs 2008 c++ express edition and was able to compile the Template.csx plugin

    It works...

    Thanks for the instructions! I just followed what you did and I have a successful template plugin.

    Thanks!!

  • I get repeated error windows until I close the window =(

    Same here. I get the same errors that can't be closed out until I close out the app.

    I haven't gotten a chance to mess with the new and improved Python except to confirm that now just plain Python without external libraries works correctly.

    If you are going to bundle libraries and such accessed by your python scripts in your own project, but aren't writing all your imported scripts from scratch (such as wintab, which communicates with tablet drivers), you may need to fiddle with the directory context of the various 'import' calls within the scripts.

    I see what you are getting at with this. Hopefully, there will be a more integrated/automated way though because this is far from straightforward and the changes in a large external library that would have to be made would go really deep.

  • This game is my new favorite here. Really addicting. It seems easy, but is deceptively hard. Plus the controls are top notch. My top score is only ~400 so far.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Downloading the new Express right now!!