scidave's Forum Posts

  • Imagine wikipedia if everyone felt that way, it would be empty!

    You make a good point. I've now updated the wiki to point to the tutorials.

  • The first half of the Python tutorial is out!! I decided for the sake of clarity and length to break this up into two parts. I also created a quick guide for setting up external libraries.

    The first part and the quick guide cover setting up your development environment to support using most external libraries. There is minimal to no hunting for dependencies in most cases. For the second part, yet to be written I will cover other libraries like Pygame, PyGTK, and perhaps speech and networking. This is a slight detour from the "main tutorial", but I promise to add some of the python speech stuff in the next main Adventure tutorial.

    You need to have Construct .99.82 (or later) to use Python libraries correctly w/Construct.

    Python Library Quick Guide

    http://www.box.net/shared/qe5qxdk7pf

    Python Library Tutorial Part1: Dev Environment and Artificial Intelligence

    http://www.box.net/shared/5terpm0jnp

    Here is a screenshot of the simple chat app. Hope you enjoy this tutorial!

    <img src="http://i46.tinypic.com/2my5bhk.jpg">

    Feel free to edit the wiki! That's the point, I want people to edit it, not leave it all to me!

    Yeah, I know I can.. I was just kidding with you. It does feel somewhat weird though to me to make a wiki to my own tutorials... feels like advertising.

  • Really nice tutorials.

    Why are they not listed in the tutorial list?

    Thanks! I figured Ashley didn't like my rambling. j/k

    This might be a very special case...

    Hope you had a great visit! I know the feeling, one of my close relatives still has dial-up. I about go ballistic when I'm trying to do something on internet there.

    Sorry about the Python errors. I can't think of what it could possibly be. I have run into issues where a game generated from py2exe works fine while the Construct game fails, but to have it not even find stringio is too hard to troubleshoot. It could be the old Python installs. If you read the Python tutorial part1 which I will post soon, perhaps if you isolated the directories with the old installs as shown with Sandboxie it will work. Beyond that you'd have to install Python and the AIML exe.

  • How the arrow shooter tracked where the player would be moving to was a nice touch. You finally created a character that I had to put real thought and then execute perfectly to defeat. Nice idea!

  • I can't seem to get Python code to to read either global or private variables... it feels like I'm doing something wrong so maybe someone here like Lucid or Davo knows. Anybodies help if of course appreciated!

    For example if mytext1,2,and 3 are python variables and inputtext is a Contruct global:

    mytext = text

    mytext2 = global('text')

    mytext3 = str(Array.CurrentValue)

    The first two attempts give an error. Only by sticking the inputtext in an Array could I then assign it to a Python variable.

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

    How are people interfacing global and other variables in with Python?

  • yep, you can't guarantee that UIDs will ever be the same when an object is recreated. If fact, that would be very surprising.

    Setup an event that saves a version of the undamaged level, in this case where none of the bricks have been destroyed, using the save to ONLY save the undamaged bricks (and other things you want to persist like that, depends on what else you have in mind but we'll stick with just bricks for this example).

    This is a good idea.

    I did something something less sophisticated in my games. I save the x and y location along with the room name in a global array and then when I returned to rooms I redestroyed all of those objects that matched. p.s. Part4 of the adventure tutorial specifically addresses these issues of changing layouts so it might help you to take a look.

  • Oh Tulamide... where art though??

    I'd like to try to fix this before releasing the tut. Is anyone else having Tulamide's problem?

  • Pygame is already supported in Construct (.99.82 or later) through the Python interface. I don't think there are any plans to somehow support it as a plugin (which would be quite an undertaking and probably not worth the effort).

  • Thanks for the error report... it sounds like a path problem, but is odd since it should always look at the current path first (and the stringIO.pyc is embedded inside the exe). Can you tell me what directory your Python install is located at? What minor version of Python do you have (2.6.x)?

    Can you also try these three things and tell me what errors you get?

    1. Temporarily rename your python install directory to another name (not in path) and then rerun exe. This will test for path conflicts.

    2. If that solved the problem then rename the directory back and try this, if not then leave it as is and try this as well. Copy the StringIO.pyc file from your python_install/Lib directory into the same directory as the ai_chat_example.exe and then rerun.

    3. Temporarily set your pythonpath to a blank path (backup and remove everything if there is anything in there). This is under, Start, Control Panel, System, Advanced, Environment Variables, and then under system variables. Try running it again.

    Thanks!

  • Bump.... Please run and test, I'd like to see if certain operating systems get errors that I'm not getting. Just in case you don't want to run an executable here is the .cap and dependencies:

    http://www.box.net/shared/brjqulxnje

    You will need to extract the library.zip file into your Construct/Data/Python directory and then reopen Construct and select all the .pyc files. Let me know if you know a way to not manually click every single .pyc. Then copy the python26.dll and the rest of the dependencies into your export directory. Make sure you unzip the standard.zip file as well. ..... or just run the executable.

    No responses necessary, I'll assume that if there are alot of downloads, but no negative responses that this works.

    Thanks!

  • Thanks for all of the kind words. I had lots of free time a couple months ago, but unfortunately have been real busy lately with a change in job and location.

    Good news is that I have recently figured out how to build external libraries with Python very reliably and so will do a tutorial on "Python Scripting with Artificial Intelligence Chat". It will show how to add really smart NPCs to your game by importing, customizing, and using a Python library.

    Here is a simple example program using the module. It can make for some really funny chat sessions. If this causes anyone errors, please let me know to help better troubleshoot.

    http://www.box.net/shared/6zljyhkrgk

    <img src="http://i48.tinypic.com/2cp6jxs.jpg">

    The tutorial will also show how to setup a Python dev environment so that end users don't need to install Python to run the game. I just started on it so hopefully will have it out in another week or so.

  • It would be a huge help for complex python programs developed in Construct if we had an option when building an executable to check a box to include "all python .pyc" found in the Data/Python directory. Right now you have to manually click each and everyone that you need, which can be tedious.

    Edit: Oh and there should be an option to do this per subdirectory too, just in case we don't want to include every single sub directory we have. Thanks!!!!!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • The errors you are reporting makes me think you are using a version of Construct before .99.82. I got those same error messages with earlier versions. You should try again with .99.82.

  • Looks like a bug to me.

    It works with a system compare: http://www.box.net/shared/r7e570ye1b ,but I couldn't get the array compare to work...

  • My bad.... Yes, Ember is a really sweet program. I am somewhat impressed.