Jump to content


blackmoon

Member Since 06 Jul 2009
Offline Last Active Aug 19 2012 09:34 PM

Topics I've Started

Complex movement to coordinates with tempo

04 March 2012 - 05:01 PM

So, I've done all I can to try and get this working, but I cannot, for the life of me, figure out how.

Basically, the objects go from their starting point to their ending point in a certain amount of beats, at a certain tempo (beats per minute). The program must also keep the fps in mind. That's the part that I think is challenging. Anyways, here's my markup so far. This is in the objects Step event. global.playStart is active for one frame to get the base speed, and global.play is on until it reaches the end point.

The "dot" is what location the user is on. Pretty much ignore those, that's not what I need help with. The points to move to are user defined and stored in the (array coord[global.dot,1] (x) , array coord[global.dot,2] (y)).

if (global.playStart) {
    distance=point_distance(x,y,coord[global.dot+1,1],coord[global.dot+1,2]);
    moveTime=global.beatsTo[global.dot+1]/(global.tempo/60);
}

if (global.play) {
    moveSpeed=distance/(fps*moveTime);
    move_towards_point(coord[global.dot+1,1],coord[global.dot+1,2],moveSpeed);
}

The only problem is... the equation isn't right. I was fairly confident this would work, but it's very wrong. xD I would really appreciate help with this. If you're confused about anything (I'm really bad at explaining things, sorry), please ask. I will gladly clarify.

server.log Help

20 August 2011 - 01:50 PM

Crap, I accidentally posted this in the Tutorial zone. :S

~~~~~~~~~~~~


Here is a snippet of a chat log.


2011-08-19 16:13:23 [INFO] Starting minecraft server version Beta 1.7.3
2011-08-19 16:13:23 [INFO] Loading properties
2011-08-19 16:13:23 [INFO] Starting Minecraft server on *:25565
2011-08-19 16:13:23 [WARNING] Failed to load ban list: java.io.FileNotFoundException: banned-players.txt (The system cannot find the file specified)
2011-08-19 16:13:23 [WARNING] Failed to load ip ban list: java.io.FileNotFoundException: banned-ips.txt (The system cannot find the file specified)
2011-08-19 16:13:23 [WARNING] Failed to load ip ban list: java.io.FileNotFoundException: ops.txt (The system cannot find the file specified)
2011-08-19 16:13:23 [INFO] Preparing level "world"
2011-08-19 16:13:24 [INFO] Preparing start region for level 0
2011-08-19 16:13:25 [INFO] Preparing spawn area: 4%
2011-08-19 16:13:26 [INFO] Preparing spawn area: 12%
2011-08-19 16:13:27 [INFO] Preparing spawn area: 12%
2011-08-19 16:13:28 [INFO] Preparing spawn area: 20%
2011-08-19 16:14:39 [INFO] Starting minecraft server version Beta 1.7.3
2011-08-19 16:14:39 [INFO] Loading properties
2011-08-19 16:14:39 [INFO] Starting Minecraft server on *:25565
2011-08-19 16:14:39 [INFO] Preparing level "world"
2011-08-19 16:14:39 [INFO] Preparing start region for level 0
2011-08-19 16:14:40 [INFO] Preparing start region for level 1
2011-08-19 16:15:45 [INFO] Done (65858702852ns)! For help, type "help" or "?"
2011-08-19 16:22:13 [INFO] ibeasdes [/--REMOVED--] logged in with entity id 4183 at (36.5, 65.62000000476837, 30.5)
2011-08-19 16:24:01 [INFO] ironmayham [/--REMOVED--] logged in with entity id 9813 at (39.5, 66.62000000476837, 22.5)
2011-08-19 16:24:35 [INFO] CONSOLE: Opping ibeasdes
2011-08-19 16:24:45 [INFO] ibeasdes issued server command: deop ibeasdes
2011-08-19 16:24:45 [INFO] ibeasdes: De-opping ibeasdes
2011-08-19 16:25:24 [INFO] CONSOLE: Opping ibeasdes
2011-08-19 16:26:08 [INFO] KevinIsPwn [/--REMOVED--] logged in with entity id 13202 at (38.5, 65.62000000476837, 29.5)
2011-08-19 16:27:36 [INFO] ibeasdes issued server command: kick kevinispwn
2011-08-19 16:27:36 [INFO] ibeasdes: Kicking KevinIsPwn
2011-08-19 16:27:42 [INFO] KevinIsPwn [/--REMOVED--] logged in with entity id 18895 at (40.09588611601982, 66.0, 32.619911280475336)
2011-08-19 16:28:39 [INFO] KevinIsPwn issued server command: give kevinispwn 310
2011-08-19 16:28:39 [INFO] KevinIsPwn: Giving KevinIsPwn some 310
2011-08-19 16:28:44 [INFO] ibeasdes issued server command: give ibeasdes 335 1
ironmayham 4
2011-08-19 16:31:22 [INFO] ibeasdes issued server command: tp kevinispwn ibeasdes
2011-08-19 16:31:22 [INFO] ibeasdes: Teleporting kevinispwn to ibeasdes.
2011-08-19 16:31:27 [INFO] KevinIsPwn lost connection: disconnect.quitting
2011-08-19 16:31:28 [INFO] KevinIsPwn [/--REMOVED--] logged in with entity id 35064 at (159.61656438931823, 80.0, -28.36569872676985)
2011-08-19 16:36:02 [INFO] <ibeasdes> why you be leave ventrilo?
2011-08-19 16:36:10 [INFO] <KevinIsPwn> Others in teh room
2011-08-19 16:36:16 [INFO] KevinIsPwn issued server command: time set 0
2011-08-19 16:36:16 [INFO] KevinIsPwn: Set time to 0
2011-08-19 16:36:29 [INFO] <ibeasdes> oh gotcha
2011-08-19 16:37:06 [INFO] ibeasdes issued server command: fly
2011-08-19 16:37:06 [INFO] Unknown console command. Type "help" for help.
2011-08-19 16:37:14 [INFO] <ibeasdes> wanna enable flight?
2011-08-19 16:37:22 [INFO] <KevinIsPwn> In a bit
2011-08-19 16:37:28 [INFO] <ibeasdes> aight
2011-08-19 16:37:44 [INFO] KevinIsPwn issued server command: tp kevinispwn ibeasdes
2011-08-19 16:37:44 [INFO] KevinIsPwn: Teleporting kevinispwn to ibeasdes.
2011-08-19 16:40:03 [INFO] ibeasdes: Giving ibeasdes some 3
2011-08-19 16:40:03 [INFO] ibeasdes issued server command: give ibeasdes 3 64
2011-08-19 16:40:03 [INFO] ibeasdes: Giving ibeasdes some 3
2011-08-19 16:40:04 [INFO] ibeasdes issued server command: give ibeasdes 3 64
2011-08-19 16:40:04 [INFO] ibeasdes: Giving ibeasdes some 3
2011-08-19 16:40:04 [INFO] ibeasdes issued server command: give ibeasdes 3 64
2011-08-19 16:40:04 [INFO] ibeasdes: Giving ibeasdes some 3
2011-08-19 16:40:08 [INFO] KevinIsPwn issued server command: give kevinispwn 278
2011-08-19 16:40:08 [INFO] KevinIsPwn: Giving KevinIsPwn some 278
2011-08-19 16:40:14 [INFO] <ibeasdes> ha so slow
2011-08-19 16:40:16 [INFO] KevinIsPwn issued server command: give kevinispwn 277
2011-08-19 16:40:16 [INFO] KevinIsPwn: Giving KevinIsPwn some 277
2011-08-19 16:40:23 [INFO] KevinIsPwn issued server command: give kevinispwn 276
2011-08-19 16:40:23 [INFO] KevinIsPwn: Giving KevinIsPwn some 276
2011-08-19 16:40:35 [INFO] ironmayham [/--REMOVED--] logged in with entity id 60186 at (-15.09375, 63.0, 452.40625)
2011-08-19 16:40:56 [INFO] ironmayham tried command: give ironmayham 10
2011-08-19 16:40:58 [INFO] <KevinIsPwn> :D
2011-08-19 16:41:02 [INFO] <ibeasdes> dont take my dirt!~
2011-08-19 16:41:03 [INFO] KevinIsPwn issued server command: tp ibeasdes kevinispwn
2011-08-19 16:41:03 [INFO] KevinIsPwn: Teleporting ibeasdes to kevinispwn.
2011-08-19 16:41:09 [INFO] ibeasdes issued server command: tp ibeasdes kevinispwn
2011-08-19 16:41:09 [INFO] ibeasdes: Teleporting ibeasdes to kevinispwn.
2011-08-19 16:41:16 [INFO] <ibeasdes> hey that was my idea.
2011-08-19 16:41:20 [INFO] ibeasdes lost connection: disconnect.quitting
2011-08-19 16:41:22 [INFO] ibeasdes [/--REMOVED--] logged in with entity id 63256 at (299.33055944550244, 64.0, -63.218775795638344)
2011-08-19 16:41:43 [INFO] ibeasdes issued server command: op ironmayham
2011-08-19 16:41:43 [INFO] ibeasdes: Opping ironmayham
2011-08-19 16:42:03 [INFO] ironmayham issued server command: give ironmayham 4 64
2011-08-19 16:42:03 [INFO] ironmayham: Giving ironmayham some 4
2011-08-19 16:43:08 [INFO] ironmayham issued server command: give ironmayham 278
2011-08-19 16:43:08 [INFO] ironmayham: Giving ironmayham some 278
2011-08-19 16:43:18 [INFO] <ibeasdes> kevin whats the command for big brother?
2011-08-19 16:43:47 [INFO] KevinIsPwn issued server command: give kevinispwn 352 64
2011-08-19 16:43:47 [INFO] KevinIsPwn: Giving KevinIsPwn some 352
2011-08-19 16:44:34 [INFO] ironmayham issued server command: give ironmayham 4 64
2011-08-19 16:44:34 [INFO] ironmayham: Giving ironmayham some 4
2011-08-19 16:44:52 [INFO] ironmayham issued server command: give ironmayham 46
2011-08-19 16:44:52 [INFO] ironmayham: Giving ironmayham some 46
2011-08-19 16:44:59 [INFO] ironmayham issued server command: fly
2011-08-19 16:44:59 [INFO] Unknown console command. Type "help" for help.
2011-08-19 16:45:10 [INFO] ibeasdes issued server command: give ibeasdes 325 1
2011-08-19 16:45:10 [INFO] ibeasdes: Giving ibeasdes some 325
2011-08-19 16:45:10 [INFO] ibeasdes issued server command: give ibeasdes 325 1
2011-08-19 16:45:10 [INFO] ibeasdes: Giving ibeasdes some 325
2011-08-19 16:45:10 [INFO] ibeasdes issued server command: give ibeasdes 325 1
2011-08-19 16:45:10 [INFO] ibeasdes: Giving ibeasdes some 325
2011-08-19 16:45:11 [INFO] ironmayham issued server command: give ironmayham 46 64
2011-08-19 16:45:11 [INFO] ironmayham: Giving ironmayham some 46
2011-08-19 16:46:09 [INFO] KevinIsPwn issued server command: time set 0
2011-08-19 16:46:09 [INFO] KevinIsPwn: Set time to 0
2011-08-19 16:46:09 [INFO] ibeasdes issued server command: tp ibeasdes kevinispwn
2011-08-19 16:46:09 [INFO] ibeasdes: Teleporting ibeasdes to kevinispwn.
2011-08-19 16:46:26 [INFO] ironmayham issued server command: give ironmayham 331
2011-08-19 16:46:26 [INFO] ironmayham: Giving ironmayham some 331
2011-08-19 16:47:11 [INFO] ironmayham issued server command: give ironmayham 70
2011-08-19 16:47:11 [INFO] ironmayham: Giving ironmayham some 70
2011-08-19 16:47:19 [INFO] ibeasdes issued server command: give ibeasdes 277 1
2011-08-19 16:47:19 [INFO] ibeasdes: Giving ibeasdes some 277
2011-08-19 16:47:19 [INFO] ibeasdes issued server command: give ibeasdes 278 1
2011-08-19 16:47:19 [INFO] ibeasdes: Giving ibeasdes some 278
2011-08-19 16:48:39 [INFO] ibeasdes issued server command: give ibeasdes 261 1
2011-08-19 16:48:39 [INFO] ibeasdes: Giving ibeasdes some 261
2011-08-19 16:48:41 [INFO] ibeasdes issued server command: give ibeasdes 262 64
2011-08-19 16:48:41 [INFO] ibeasdes: Giving ibeasdes some 262
2011-08-19 16:48:41 [INFO] ibeasdes issued server command: give ibeasdes 262 64
2011-08-19 16:48:41 [INFO] ibeasdes: Giving ibeasdes some 262
2011-08-19 16:48:41 [INFO] ibeasdes issued server command: give ibeasdes 262 64
2011-08-19 16:48:41 [INFO] ibeasdes: Giving ibeasdes some 262
2011-08-19 16:48:45 [INFO] ibeasdes issued server command: give ibeasdes 310 1
2011-08-19 16:48:45 [INFO] ibeasdes: Giving ibeasdes some 310
2011-08-19 16:48:45 [INFO] ibeasdes issued server command: give ibeasdes 311 1
2011-08-19 16:48:45 [INFO] ibeasdes: Giving ibeasdes some 311
2011-08-19 16:48:45 [INFO] ibeasdes issued server command: give ibeasdes 312 1
2011-08-19 16:48:45 [INFO] ibeasdes: Giving ibeasdes some 312
2011-08-19 16:48:46 [INFO] ibeasdes issued server command: give ibeasdes 313 1
2011-08-19 16:48:46 [INFO] ibeasdes: Giving ibeasdes some 313
2011-08-19 16:49:05 [INFO] ibeasdes issued server command: give ibeasdes 50 64
2011-08-19 16:49:05 [INFO] ibeasdes: Giving ibeasdes some 50
2011-08-19 16:49:05 [INFO] ibeasdes issued server command: give ibeasdes 50 64
2011-08-19 16:49:05 [INFO] ibeasdes: Giving ibeasdes some 50
2011-08-19 16:49:05 [INFO] ibeasdes issued server command: give ibeasdes 50 64
2011-08-19 16:49:05 [INFO] ibeasdes: Giving ibeasdes some 50
2011-08-19 16:49:33 [INFO] ironmayham issued server command: give ironmayham 259
2011-08-19 16:49:33 [INFO] ironmayham: Giving ironmayham some 259
2011-08-19 16:49:40 [INFO] ibeasdes issued server command: give ibeasdes 322 1
2011-08-19 16:49:40 [INFO] ibeasdes: Giving ibeasdes some 322
2011-08-19 16:49:40 [INFO] ibeasdes issued server command: give ibeasdes 322 1
2011-08-19 16:49:40 [INFO] ibeasdes: Giving ibeasdes some 322
2011-08-19 16:49:47 [INFO] KevinIsPwn issued server command: give kevinispwn 50
2011-08-19 16:49:47 [INFO] KevinIsPwn: Giving KevinIsPwn some 50
2011-08-19 16:50:13 [INFO] KevinIsPwn issued server command: give kevinispwn 50 64
2011-08-19 16:50:13 [INFO] KevinIsPwn: Giving KevinIsPwn some 50
2011-08-19 16:50:19 [INFO] KevinIsPwn lost connection: disconnect.quitting
2011-08-19 16:51:43 [INFO] ironmayham issued server command: tp ironmayham kevinispwn
2011-08-19 16:51:44 [INFO] KevinIsPwn [/--REMOVED--] lost connection
2011-08-19 16:52:02 [INFO] ironmayham issued server command: tp ironmayham ibeasdes
2011-08-19 16:52:02 [INFO] ironmayham: Teleporting ironmayham to ibeasdes.
2011-08-19 16:52:06 [INFO] ironmayham lost connection: disconnect.quitting
2011-08-19 16:52:09 [INFO] ironmayham [/--REMOVED--] logged in with entity id 78611 at (209.53154376500538, 8.0, -122.70127225617398)
2011-08-19 16:53:19 [INFO] [CONSOLE] Exactly
2011-08-19 16:53:24 [INFO] ibeasdes issued server command: give ibeasdes 46 64
2011-08-19 16:53:24 [INFO] ibeasdes: Giving ibeasdes some 46
2011-08-19 16:53:25 [INFO] ibeasdes issued server command: give ibeasdes 76 64
2011-08-19 16:53:25 [INFO] ibeasdes: Giving ibeasdes some 76
2011-08-19 16:53:27 [INFO] [CONSOLE] We can mine on the other one.
2011-08-19 16:53:33 [INFO] [CONSOLE] And actually accomplish something
2011-08-19 16:53:35 [INFO] CONSOLE: Stopping the server..
2011-08-19 16:53:35 [INFO] Stopping server
2011-08-19 16:53:35 [INFO] Saving chunks
2011-08-19 16:53:36 [INFO] Saving chunks


I need the program to read the lines of people logging in and out, subtract the in from out, and add the total for each user. I'm at a complete loss of where to start. I haven't actually used text files, so I'm a complete n00b (in this subject, at lease). Any ideas?

Minecraft server.log

20 August 2011 - 01:45 PM

Here is a snippet of a chat log.

Spoiler

I need the program to read the lines of people logging in and out, subtract the in from out, and add the total for each user. I'm at a complete loss of where to start. I haven't actually used text files, so I'm a complete n00b (in this subject, at lease). Any ideas?



MODERATOR EDIT : Please make sure that you read the rules before posting. This was posted in the Tutorials section where there is a HUGE notice saying not to post questions there. Further posts in that section will be simply be deleted.

Enemy AI shoots arrow?

26 June 2010 - 08:07 PM

Posted Image
Anyone know a script that could allow the AI to shoot an arrow at an object?
like
arrow_init(x,y,gravity,power);

Game Maker Virus? What?

21 March 2010 - 08:01 PM

EDIT: THIS IS NOT A VIRUS! I HAVE A HORRID MEMORY AND IT'S ACTUALLY A FRIEND'S GAME THAT THEY SENT ME! NOT A VIRUS!  :)

I was working a game with someone over skype and was looking for a file on my over-crowded desktop when I found this...
Posted Image
Now, my first thought was "cool icon!". My second [after I looked at the text] was "wait... WHAT?". I don't know for sure, and I'm not pointing any fingers, but is this [by any chance] a virus by a company called "marada studios"?

Has anyone else got this? I'm pretty sure it's game-maker related, as I only use this user name on the GMC.

Thanks for taking the time to read,
Kevin