Welcome, Guest. Please login or register.

Login with username, password and session length

 
Advanced search

1411579 Posts in 69386 Topics- by 58445 Members - Latest Member: Mansreign

May 05, 2024, 04:21:54 PM

Need hosting? Check out Digital Ocean
(more details in this thread)
TIGSource ForumsDeveloperPlaytestingProject: PDPGPG
Pages: [1]
Print
Author Topic: Project: PDPGPG  (Read 1648 times)
LazyWaffle
Guest
« on: January 16, 2010, 01:13:54 PM »

Project: Poorly Drawn Procedurally
Generated Person Generator

v0.2

So! After being inspired by Nikki's Procedural Place to Be devlog last night, I decided to experiment with procedural generation a bit, and this was the result.

Basically, you type in any number from 1 to 100000000, and it generates a poorly drawn person based on the player input seed.

Click the poorly drawn procedurally generated person to download. Press space to reset.
« Last Edit: January 16, 2010, 01:24:29 PM by LazyWaffle‽ » Logged
eddietree
Level 6
*



View Profile WWW
« Reply #1 on: January 16, 2010, 01:26:20 PM »

Giving it a seed of ZERO gave me this error:

Code:
ERROR in
action number 1
of Create Event
for object o_gen:

Error in code at line 102:
   er=hr/(string_get(num,1)*2)

at position 9: Division by 0.

I also tried entering a blank seed to see if it would crash and it did.

It seems like alot of inputs would crash the app
Logged

Kekskiller
Guest
« Reply #2 on: January 16, 2010, 01:35:52 PM »

I think IS your poorly drawn person. I mean look at the structure of the text, it's barely good!
Logged
LazyWaffle
Guest
« Reply #3 on: January 16, 2010, 02:04:55 PM »

Giving it a seed of ZERO gave me this error:

Code:
ERROR in
action number 1
of Create Event
for object o_gen:

Error in code at line 102:
   er=hr/(string_get(num,1)*2)

at position 9: Division by 0.

I also tried entering a blank seed to see if it would crash and it did.

It seems like alot of inputs would crash the app
Yeah, it divides some digits of the random number sometimes, and there's not much I can do to prevent it besides telling people to only put numbers from 1-100000000.
Logged
s0
o
Level 10
*****


eurovision winner 2014


View Profile
« Reply #4 on: January 16, 2010, 02:12:25 PM »

...or hardcoding it into the "game".  Roll Eyes
Logged
Inanimate
Level 10
*****

☆HERO OF JUSTICE!☆


View Profile
« Reply #5 on: January 16, 2010, 02:42:15 PM »

...or hardcoding it into the "game".  Roll Eyes

That sounds kinda mean in text.  Undecided

I think this is pretty cute! You have any uses for it in mind?
Logged
s0
o
Level 10
*****


eurovision winner 2014


View Profile
« Reply #6 on: January 17, 2010, 02:20:22 AM »

That sounds kinda mean in text.  Undecided
Wasn't meant to.

Anyway, this a fun little thing.  Wink
Logged
Mr. Thunder_Tw
Level 0
**



View Profile WWW
« Reply #7 on: January 17, 2010, 04:10:32 AM »

wy don't you check if the seeder is between 1 and 100000000
if it's not there (like 0) just randomize it in your program
like: "rand() % (100000000-1) +1"
Logged
Pages: [1]
Print
Jump to:  

Theme orange-lt created by panic