Official Everybody Edits Forums

Do you think I could just leave this part blank and it'd be okay? We're just going to replace the whole thing with a header image anyway, right?

You are not logged in.

Advertisement

Hello, visitor! These forums are run off of the revenue generated from these ads. If you'd like to support us, please whitelist us or consider donating:

#1 2017-01-08 18:58:09

IAmTelamon
Member
From: Somewhere in the planet
Registered: 2016-05-15
Posts: 12

I'm looking for a bot

Is there any bot that can save a player's stats in a world like the switches he turned on or the coins he got?

Offline

#2 2017-01-08 19:04:34

HG
Member
From: PWA0gEDooycEI
Registered: 2015-02-18
Posts: 1,115
Website

Re: I'm looking for a bot

using System; using static System.Threading.Thread; using PlayerIOClient;

class Program {
  public static int Main (string[] args) {
    Connection con = PlayerIO.QuickConnect.SimpleConnect ("everybody-edits-su9rn58o40itdbnw69plyw", args[0], args[1], null).Multiplayer.JoinRoom (args[2], null);
    con.Send ("init");
    con.OnMessage += (s, e) => { Console.WriteLine (e); if (e.Type == "init") con.Send ("init2"); }
    con.OnDisconnect += (s, r) => { Console.WriteLine (r); return 1; }
    Sleep (-1);
  }
}

Event reader.

Last edited by HG (2017-01-08 19:14:50)


Check out The Tower Remastered, the best limited-time challenge world by HG Crew, NOW WITH A GAME-PLAY VIDEO!

Offline

#3 2017-01-08 19:26:40

Tomahawk
Member
From: England
Registered: 2015-02-18
Posts: 674

Re: I'm looking for a bot

I started that bot a while ago. It dieded cause I'm lazy.

I think it's possible to save everything. Coins send a coordinate so they're easy, and you can combine mapdata with "ps" and "effect" to store the locations of the switches and effects that are used. Then teleport the player through every purple switch, coin and effect they touched.

Restoring deaths and curse/zombie/lava time left would be slow but still fairly simple.

The main difficulty is with restoring the player's last checkpoint. EEPhysics would probably work, but it's kinda overkill. If a player dies and respawns at a checkpoint, that cp can be saved, but if they don't die then there isn't a simple solution. If player progress is saved to file by some kinda ".save" command then you can /kill that player and check where they respawn, but ideally you want everything to be saved automatically when they leave the world. Emulating the whole physics engine to check if they've hit a checkpoint is a pain in the **** and not 100% accurate, so maybe a save command is the next best thing.

Last edited by Tomahawk (2017-01-08 19:28:49)


One bot to rule them all, one bot to find them. One bot to bring them all... and with this cliché blind them.

Offline

#4 2017-01-08 23:54:53

den3107
Member
From: Netherlands
Registered: 2015-04-24
Posts: 782

Re: I'm looking for a bot

Tomahawk wrote:

Emulating the whole physics engine to check if they've hit a checkpoint is a pain in the **** and not 100% accurate, so maybe a save command is the next best thing.

I think it would get a lot easier when you'd make it yourself a lot easier by checking around each spawnpoint in a 3x3 area, since, as you said, the physics calculation might just skip a block here and there when you're not checking often enough.

If this would be made (semi-)private I'd say: use workarounds: Stuff like portals, keys, coins. Everybody receives messages when those are picked up, so those can be registered by a "overseeing" bot.

Aside from that, if it'd be more of a public bot: Just use commands. You already mentioned the "save" command. Just let that command also save the player's position. That way you don't have to retrieve the player's position every tick or so.


Anyway, to return on the OP's question:

IAmTelamon wrote:

Is there any bot that can save a player's stats in a world like the switches he turned on or the coins he got?

As far as I know:
No public one, although this bot shouldn't have to be very hard to make, depending on the requirements it has (for example, as mentioned, saving player position might be more troublesome, depending on how/when to store it).


Current project: Thinking of/finding/requesting projects...
user.php?id=den3107&hideoffline=true    user.php?id=den3107bot&hideoffline=true

Offline

#5 2017-01-09 01:04:17

Tomahawk
Member
From: England
Registered: 2015-02-18
Posts: 674

Re: I'm looking for a bot

den3107 wrote:

I think it would get a lot easier when you'd make it yourself a lot easier by checking around each spawnpoint in a 3x3 area, since, as you said, the physics calculation might just skip a block here and there when you're not checking often enough.

If a player fell through a checkpoint without moving the bot wouldn't know without emulation. You can't detect a checkpoint touch without full physics emulation and probably even then not 100% accurately.

I think a fail-proof progress saver would have to use a .save command; the player would use the command, press an arrow key to record their position, then be /killed to record their last checkpoint position from "tele".


One bot to rule them all, one bot to find them. One bot to bring them all... and with this cliché blind them.

Offline

#6 2017-01-09 09:03:52

den3107
Member
From: Netherlands
Registered: 2015-04-24
Posts: 782

Re: I'm looking for a bot

Tomahawk wrote:

the player would use the command, press an arrow key to record their position

I doubt having the player move after the save command'd be a good idea.
They WILL forget, or WILL forget to read instructions, on in a hurry just leave and don't even see the instructions after they used the command.
Best bet is to save the last known location, either through "teleport" or through the last known location from EEPhysics.


Current project: Thinking of/finding/requesting projects...
user.php?id=den3107&hideoffline=true    user.php?id=den3107bot&hideoffline=true

Offline

den31071483949032642481

Board footer

Powered by FluxBB

[ Started around 1487982141.0558 - Generated in 0.034 seconds, 10 queries executed - Memory usage: 1.02 MiB (Peak: 1.12 MiB) ]