GMLscripts.com

Discuss and collaborate on GML scripts
Invert

You are not logged in.

#1 Re: GML Creations » CHALLENGE: Lossless Data Compression / Decompression » 2010-09-27 11:15:33

Actually, count me out.  I might stick around but won't be submitting anything myself.

Really don't have the patience for this one.

#2 Re: GML Creations » CHALLENGE: Lossless Data Compression / Decompression » 2010-09-23 08:10:08

By the way, is all judging going to be done in one version of GM?  I'd suspect so since GM8 is faster than GM7 (by my tests), so GM8 makes sense.

Also, what exactly would be "good" compression time?  For a 4MB file, GM took about 18 seconds just to read it byte for byte with the file_bin functions... (will I get disqualified if I turn in a DLL instead? tongue)

#3 Re: GML Creations » CHALLENGE: Lossless Data Compression / Decompression » 2010-09-21 20:09:10

Sounds good, I've already got some ideas for this, so I'm in!

#4 Re: GML Creations » CHALLENGE: Avoidance AI » 2010-09-18 21:51:07

icuurd12b42 wrote:

if(instance_exists(Dannyboy)) {x = Dannyboy.x; y=Dannyboy.y;}
else if(instance_exists(jalb)) {x = jalb.x; y=jalb.y;}
else if(instance_exists(xot)) {x = xot.x; y=xot.y;}
else if(instance_exists(OpticalLiam)) {x = OpticalLiam.x; y=OpticalLiam.y;}
else {show_message("I Suck"); instance_destroy();}

Fixed. tongue

#5 Re: GML Creations » CHALLENGE: Avoidance AI » 2010-09-18 08:34:38

~Dannyboy~ wrote:

In the latest version it seems that the results are backward for places 2-5.

Darn it!

Fixed.  Changed the links in my previous post.

#6 Re: GML Creations » CHALLENGE: Avoidance AI » 2010-09-18 07:19:55

Two more changes... fixed a bug and added something I meant to add since the start, a placing-list instead of just a winner.  Now does
Dannyboy is the winner!
2: jalb
3: xot
etc

GM7: http://upurload.com/dl/?n=3963
GM8: http://upurload.com/dl/?n=3962

xot wrote:

Changes look nice, but I have to put this away for now.

That makes two of us.

Edit: One of these days I'll upload the right file...

#7 Re: GML Creations » CHALLENGE: Avoidance AI » 2010-09-18 06:23:57

You're liking this way more than I had expected.  You'll be glad to know I've fixed that bug you mentioned, as well the bug in objIntro, and I added a few more fun features.

In objScore's Create Event there's now 6 variables that you can change.  I haven't tested my changes thoroughly so there could be some bugs.

You'll also be glad to know that I've taken the extra few seconds to convert to GM7.  So here's the new downloads:
GM7 Version
GM8 Version

#8 Re: GML Creations » CHALLENGE: Avoidance AI » 2010-09-18 04:38:50

xot wrote:

Dude! That's awesome! Thank you so much for making that.

Thanks, and you're welcome. smile

xot wrote:

Watching it go is surprisingly exciting.

I know, isn't that sad? laugh  I was getting all into it while recording.  "Go yellow!! Yeaahh!!"

I think the whole idea of it is pretty awesome.  It's like a whole new way to play video games.  Instead of pressing keys to control your player, you program him and pit him against other programmed AI.

We must do this again sometime, it's been pretty darn fun.  I look forward to the next challenge. tongue

#9 Re: GML Creations » CHALLENGE: Avoidance AI » 2010-09-18 01:50:27

I had about 6 hours to kill today, so I threw all of our entries into one game (only one of icuurd's, the one who performed best as far as I could tell).  I originally uploaded a video of it and posted it, but there was some technical difficulties and the video was only halfway processed (can't have that now can we; you'd never know who won!).  So for now, you can download it here: http://upurload.com/dl/?n=3951

May or may not be bothered to try getting the video up again (really not that important).

Edit: I accidentally left the create event as the step event (did that while recording).  If you're stuck on the 'intro' room, just go to objIntro and change the Space Event to the Create Event.  Or hit space and wait a few seconds.

Also some other changes (from the original engine): Since there's multiple avoider objects now, each avoider object has immunity from getting hit twice in a row (for up to a second), and each avoider can get hit by an orange enemy (but not a green, which I added, meaning that it was recently created).  If an avoider object leaves the room (completely) then they're automatically destroyed (in that game) and a fun little "Poof!" pops up for a sec.  Also as mentioned by xot below, there's an awesome new 'dramatic zoom-in' feature when something gets hit.  The easiest way to disable that is to delete objControl's draw event.

And as a side note, I did this all rather hastily so the programming is sloppy and I changed things up so many times that it may seem inconsistent sometimes.  I'm not normally that sloppy!

#10 Re: GML Creations » CHALLENGE: Avoidance AI » 2010-09-14 23:40:16

Here's mine.  It's GM8 but I'm pretty sure it should work once converted to GM7.
http://upurload.com/dl/?n=3911

I also didn't have a lot of time to clean up the code but it's pretty easy to understand (I also added lotsa comments).

Edit: Changed to a different link provided by upurload so it won't download with a gibberish filename.

#11 Re: GML Creations » CHALLENGE: Avoidance AI » 2010-09-14 01:42:02

xot wrote:

That's a weird GM problem you're having. I think I've heard that reported before, but I don't recall if there was a solution. I seem to remember it being one of those "fixed itself" problems. hmmm

And that's just what it did.  Weird, I didn't even restart GM, just let it set for a while and now it works.

xot wrote:

The range_finder script posted here might be just the thing.

Thanks for the script, but I didn't need it.  Made a few adjustments and now not only is the movement much smoother, but I've had slightly better results (2 hits in 6 minutes, but that could be coincidence), and I run at constant 30 FPS even with loads of enemies nearby. smile

Meant to go to bed early but when I saw this I couldn't resist.  Dammit. laugh

#12 Re: GML Creations » CHALLENGE: Avoidance AI » 2010-09-14 00:41:56

Decided to jump on board since there's only two days left (almost one).

I managed to get something working (not pretty to look at but it works).  Recorded for 2 minutes and had 2 collisions.

Though I gave up once GM started acting weird.  Wasn't applying any changes I had made once I clicked "Run the game"; had to export an executable and run it that way instead (persisted even after restarting GM, dunno what the deal is).

Got nothing better to do, so I suppose I should explain how it works.  Basically it checks 36 different directions (i=0; i<360; i+=10), and for each direction it checks how many steps it'll take in that direction to not be in the path of an enemy (up to 50 pixels in front of them).  Then out of all the directions it'll pick the one with the fewest steps to take to be out of harm's way.  If it's already out of harm's way it'll try to make its way towards the middle of the screen (to avoid going out of the screen).  Also, it moves at 4 pixels/step, and averages at 30 FPS when nothing is near and can drop down to about 26 FPS when surrounded by enemies.

Board footer

Powered by FluxBB