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.
Pages: 1
Topic closed
My bot is detecting players who joins the world after it joins... not the players who already joined...
I already used con.Send("init2");
Help D: It was working before, I dont know what went wrong!
Thanks to: Ernesdo (Current Avatar), Zoey2070 (Signature)
Very inactive, maybe in the future, idk.
Offline
My bot is detecting players who joins the world after it joins... not the players who already joined...
I already used con.Send("init2");
Help D: It was working before, I dont know what went wrong!
Only use con.Send("init2") before the end of init.
If you use a switch it must be before break; or return; and if not it must be before the }.
Offline
Only use con.Send("init2") before the end of init.
case "init":
{
blah blah blah some random codes
con.Send("init2");
}
break;
Thanks to: Ernesdo (Current Avatar), Zoey2070 (Signature)
Very inactive, maybe in the future, idk.
Offline
Can you show us a little bit more code?
For example post it on pastebin or github.
We can't really help you without making random guesses right now.
Offline
Thanks to: Ernesdo (Current Avatar), Zoey2070 (Signature)
Very inactive, maybe in the future, idk.
Offline
Why do you start it with { and finish with }??? I don't see any IF statement so I am in doubt if your code even runs
Offline
Why do you start it with { and finish with }??? I don't see any IF statement so I am in doubt if your code even runs
I used to think that, but apparently the lack of braces is just an earmark of an old Visual Studio; apparently the braces are nice to help with variable naming and stuff... organization idk
Offline
@Milkshake:
You should really send "init2" at the start of "init", so that your bot initialises everything more quickly after it connects. It also might be the problem here.
Putting { } to surround code is perfectly fine, and brings no compiler errors as long as the braces match up.
One bot to rule them all, one bot to find them. One bot to bring them all... and with this cliché blind them.
Offline
@Milkshake:
You should really send "init2" at the start of "init", so that your bot initialises everything more quickly after it connects. It also might be the problem here.
Still didn't work :/
I think the problem is in the init code.
Still have to re-join for the bot to check and add.
Thanks to: Ernesdo (Current Avatar), Zoey2070 (Signature)
Very inactive, maybe in the future, idk.
Offline
What if you just start commenting out stuff?
Start with the bot-specific stuff (like the non-owner stuff), and gradually work your way down until you even comment the deserialization stuff.
If it still doesn't work when you have just "con.send("init2")", then we have one of those "special cookie" bots/pcs that'll be a hell to uncover why stuff isn't working.
Reason why it's usually best to start commenting part by part instead of going straight to just the init2 send stuff, is because with this method you will very easily know where the problem is.
You should really send "init2" at the start of "init", so that your bot initializes everything more quickly after it connects.
Don't see how that would make your initialization faster... You might cut down a bit of idle time, but the initialization will always go just as long.
Offline
Offline
Don't see how that would make your initialization faster
The server sends the "add" messages and some other stuff as soon as "init2" is sent, so the sooner it's sent, the faster they're processed.
It's only a little bit faster.
One bot to rule them all, one bot to find them. One bot to bring them all... and with this cliché blind them.
Offline
Turns out the block loading is slow and the world that im currently using as bot testing has many backgrounds and some random code. But it works now, thanks!
Thread Close? please.
Thanks to: Ernesdo (Current Avatar), Zoey2070 (Signature)
Very inactive, maybe in the future, idk.
Offline
You can close it yourself by clicking Lock at the bottom of the page
Offline
Turns out the block loading is slow and the world that im currently using as bot testing has many backgrounds and some random code. But it works now, thanks!
Thread Close? please.
Use InitParse https://gist.github.com/Yonom/3c9ebfe69b1432452f9b
Literally takes 3 seconds to load 300x300 world (and draw minimap)
Thank you eleizibeth ^
I stack my signatures rather than delete them so I don't lose them
Offline
How to use InitParse? It always gives me an error when using it.
Edit: Nevermind, I fixed it. Thanks for the help!
Thanks to: Ernesdo (Current Avatar), Zoey2070 (Signature)
Very inactive, maybe in the future, idk.
Offline
Pages: 1
Topic closed
[ Started around 1732475696.9116 - Generated in 0.069 seconds, 12 queries executed - Memory usage: 1.65 MiB (Peak: 1.87 MiB) ]