Tutorial: Mikey's Adventure

Post your own tutorials, guides and demos.

Post » Sat Dec 26, 2009 2:37 am

These forums are rather quiet...

2k views shows that people are reading, and hopefully using these!
If all the feedback you get is positive, then you can be sure that people are using your tutorials and are happy with them!
B
1
G
3
Posts: 5
Reputation: 835

Post » Sat Dec 26, 2009 5:04 am

thanks for the tutorials man. With the lack of documentation they are essential
B
2
G
3
Posts: 3
Reputation: 856

Post » Sat Feb 20, 2010 1:14 pm

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



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.
B
8
S
3
G
7
Posts: 835
Reputation: 5,313

Post » Tue Feb 23, 2010 3:36 am

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. :wink:

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

Thanks! :-)
B
8
S
3
G
7
Posts: 835
Reputation: 5,313

Post » Tue Feb 23, 2010 6:44 pm

no problems here, and awesomeness!!
I spy a SOCKET!!!!

I look forward to this tutorial =)
B
3
S
2
G
4
Posts: 1,445
Reputation: 4,665

Post » Fri Feb 26, 2010 7:50 am

Downloaded the .exe zip, extraced and started ai_chat_example.exe ...

"An error occurred in python, but construct is unable to obtain any error information without StringIO.pyc"

WinXP sp2, complete python installation (2.6) already (maybe pathprobs?), don't know, what sytem information exactly you're interested in :)
Image
B
23
S
8
G
10
Posts: 1,820
Reputation: 8,242

Post » Fri Feb 26, 2010 11:27 am

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!
B
8
S
3
G
7
Posts: 835
Reputation: 5,313

Post » Tue Mar 02, 2010 11:02 pm

Oh Tulamide... where art though?? :wink:

I'd like to try to fix this before releasing the tut. Is anyone else having Tulamide's problem?
B
8
S
3
G
7
Posts: 835
Reputation: 5,313

Post » Wed Mar 03, 2010 12:56 am

No problems here mate.
Running Vista Premium, 4gb, etc.

I'd release the tutorial if I was you.
If there is a problem with certain system configurations, you'll probably get more feedback from people trying the tute.

Krush.
B
2
S
2
G
3
Posts: 406
Reputation: 2,062

Post » Fri Mar 05, 2010 9:39 am

[quote="scidave":8n0qflo5]Oh Tulamide... where art though?? :wink: [/quote:8n0qflo5]
I'm very sorry, had no access to the internet while visiting my parents... can't convince them *sigh*

Well, this is the current situation: Nothing helped! I finally de-installed python and deleted the pythonpath. Still the same error. Your app starts after the 5th error message, but whenever hitting the button, the error message appears.

I'm not familiar with .dll, esp. how they are managed by the system. I have some backups of older python installs, could they still interfere? On the other hand, I had no problems with other python apps so far (boa constructor, pype, py2exe ...)

This might be a very special case...
Image
B
23
S
8
G
10
Posts: 1,820
Reputation: 8,242

PreviousNext

Return to Your tutorials & example files

Who is online

Users browsing this forum: No registered users and 1 guest