The Sporum - The Official Spore Forum
  [Search] Search   [Recent Topics] Recent Topics   [Hottest Topics] Hottest Topics   [Members]  Member Listing   [Groups] Back to forum index 
[Login] Login 
Made an app? Tell us about it!  XML
Forum Index » Developer Corner
Author Message
Awesim


Microbe

Joined: 09/23/2008 23:49:59
Messages: 13
Offline



I've been making a simple creature creation game designed to inspire creators who are ready for a challenge. The idea is to force you to make a creature using a specific list of parts. After you upload your creation, you get to see what others have made with the exact same parts list. You can get the app at the link below. Just unzip the file into any folder and run the CreatorClash.exe

http://www.pc-3d.com/files/Spore/CreatorClash.zip

Comments & constructive feedback welcome.
I wrote the whole thing in Python using nothing but free tools and self taught code. If anyone is interested in learning how to do this, lemme know. If there's enough interest I'm considering putting together a tutorial.

From the spore api (http://www.spore.com/comm/samples) I used:
Assets for User
Info about an asset
Buddies for user
Special Searches
Asset Data
Part Info
and Part Icon

(I've had some issues getting this to work on Vista - something to do with a re-distributable software update.)

BugSquash


Multicellular

Joined: 09/29/2008 05:09:06
Messages: 146
Location:
Baylor University

Offline

Since Python is a cross-platform language, could your code run under Mac OS X? As long as you used standard cross-platform toolkits and modules, I believe anyone with a Mac should be able to run the source and/or package it as an app.

[WWW]
Awesim


Microbe

Joined: 09/23/2008 23:49:59
Messages: 13
Offline

You're welcome to try it. I don't have a Mac to confirm or deny this possibility.
You'll need:
* Python 2.6
* PIL image library
* PyQt4
and the source code here - http://www.pc-3d.com/files/Spore/CreatorClash.py

The code isn't documented or complex, and some of it is copied directly from the samples provided on the Spore python page - but it should work...

oh, I almost forgot; the form layout is here - http://www.pc-3d.com/files/Spore/form.py

BugSquash


Multicellular

Joined: 09/29/2008 05:09:06
Messages: 146
Location:
Baylor University

Offline

I have gotten it to run fine on my Mac after installing the dependencies. The issues I do have are only very minor, for example the text is pretty small in a few places, though not unreadable; and the parts list is cut off, although you can still scroll horizontally to see all of it. If I can get it to work as a standalone mac app package (i.e. with required libraries included), would you mind if I posted it here for others to download?

[WWW]
Nedninja


Civilized Sporeon

Joined: 12/19/2008 04:09:25
Messages: 3042
Location:
In the dictionary, right next to the word gullible. Don't believe me? Go check.

Offline

That sounds great!

My Profile
My Creations
My Sporecasts
My Achievements

Comment on 1 of my creations and I'll comment on 5 of yours!
[WWW]
Awesim


Microbe

Joined: 09/23/2008 23:49:59
Messages: 13
Offline

BugSquash wrote:I have gotten it to run fine on my Mac after installing the dependencies. The issues I do have are only very minor, for example the text is pretty small in a few places, though not unreadable; and the parts list is cut off, although you can still scroll horizontally to see all of it. If I can get it to work as a standalone mac app package (i.e. with required libraries included), would you mind if I posted it here for others to download?


The parts list scrolls sideways on a Mac? Lol, I didn't expect that. Well, if you want to "pretty it up" and make your own Mac branch of the code - knock yourself out. It started open source - just keep that spirit alive and you can do what you like.

Nightgunner5


Multicellular

Joined: 12/25/2008 21:13:15
Messages: 169
Location:
Wisconsin

Offline

Spore API Shorts
http://llamaslayers.net/spore/shorts/

Basically, this is where I'll put anything I make with the API that is too small to be a full app, yet cool enough to work as a demo of the API.

Each "short" will list the APIs it uses and have a link to download the source code.

As my first short, here's a remake of the Processing demo "newest assets" in JavaScript!

[WWW] [Yahoo!] [MSN]
Awesim


Microbe

Joined: 09/23/2008 23:49:59
Messages: 13
Offline


Some recent bug fixes and changes were made, most importantly the creator's name is revealed with the creature's name when you win. This makes it easier to find their creation in the sporepedia for commenting and rating. Also the opponent list no longer gets corrupted if you toggle win loss conditions and try to delete an opponent you've already beaten. The source files have been updated and this link has the new compiled version. Just unpack and run CreatureClash.exe
http://www.pc-3d.com/files/Spore/CreatorClash.zip

ThePickleMan


Microbe

Joined: 07/21/2009 16:16:28
Messages: 3
Offline

Spore CAPTCHA

Description:

If you don't know what a CAPTCHA is, then go here: http://en.wikipedia.org/wiki/CAPTCHA
I used a similar idea as the API example, but used it as a CAPTCHA. You have to choose which creature is the "cutest". This may not work due to "cuteness" usually being different for everyone. And that is why I ask for different question ideas. If you want to use this...(get the source), then contact me.

Example:
http://darksaberco.com/sporecaptcha/example.php

Uses...
The Creature Details Feed (http://www.spore.com/rest/creature/500005597433 )
The Random Creature Feed (http://www.spore.com/rest/assets/search/RANDOM/0/3/CREATURE)

This message was edited 1 time. Last update was at 07/21/2009 20:14:15

Nightgunner5


Multicellular

Joined: 12/25/2008 21:13:15
Messages: 169
Location:
Wisconsin

Offline

ThePickleMan wrote:Spore CAPTCHA

Description:

If you don't know what a CAPTCHA is, then go here: http://en.wikipedia.org/wiki/CAPTCHA
I used a similar idea as the API example, but used it as a CAPTCHA. You have to choose which creature is the "cutest". This may not work due to "cuteness" usually being different for everyone. And that is why I ask for different question ideas. If you want to use this...(get the source), then contact me.

Example:
http://darksaberco.com/sporecaptcha/example.php

Uses...
The Creature Details Feed (http://www.spore.com/rest/creature/500005597433 )
The Random Creature Feed (http://www.spore.com/rest/assets/search/RANDOM/0/3/CREATURE)
Is it supposed to say Fatal error: Cannot use string offset as an array on line 10?

Edit: Couldn't some automated process just use the creature data API? It's a great concept, as long as there's some way the creature API couldn't just be used in reverse.

This message was edited 1 time. Last update was at 07/21/2009 21:48:08


[WWW] [Yahoo!] [MSN]
ThePickleMan


Microbe

Joined: 07/21/2009 16:16:28
Messages: 3
Offline

Yes, the error happens sometimes. It pretty much means that it failed to connect to the API. Also, yes there is that problem, but I could use GD and make it so that it doesn't know what the image is of.

BugSquash


Multicellular

Joined: 09/29/2008 05:09:06
Messages: 146
Location:
Baylor University

Offline

Instead of cuteness, you could use number of legs, e.g. "Which of these has 3 legs?" A spambot still wouldn't know the difference (if you used GD, at least), but it would be easier for a human since it's usually pretty obvious how many legs a creature has and not so obvious how "cute" the game engine rated it. You'd just have to make sure each creation in the CAPTCHA has a different number of legs so there could only be one correct choice.

[WWW]
ThePickleMan


Microbe

Joined: 07/21/2009 16:16:28
Messages: 3
Offline

Great idea! But I'm actually thinking that you should have to enter something. Because its always too easy to have a computer guess the same thing over and over again and still get it right sometimes.
SpaceOddity


Microbe

Joined: 09/12/2008 07:21:31
Messages: 6
Offline

I made a simple creations feed using Processing. It's based on the example on the site, but it starts with the 50 most popular new creatures, before getting all the new creations. Clicking will stop te scrolling and allow you to open the Sporepedia and comment on or rate it.

Check it out on my spore blog: http://spaceoddity.sgsgames.com.
MaxisCactus


Civilized Sporeon

Joined: 09/05/2008 20:28:29
Messages: 2826
Offline

Awesim, SpaceOddity, and Nightgunner5, great apps! Would you mind if I post links to these in the Spore app gallery?

This message was edited 2 times. Last update was at 08/06/2009 23:15:09

[WWW]
 
Forum Index » Developer Corner
Go to:   
 
Powered by JForum 2.1.8 © ( EA Dev Build 2013-06-21 16:12:06 ) JForum Team