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.

#1 2015-05-01 05:03:44

darkblades
Member
From: New MLG City/Weed Town
Joined: 2015-03-21
Posts: 122

How to draw a level in the bot GUI

When I want to load a level from a file, I could see what the level looks like in ee. How can I do it into the bot.

For example, taken from a random google search image.

I load this level
1823_EverbodyEdits2.jpeg

and I want it to show the whole level inside my bot GUI to. Any ways?


Sample Text.

Doritos/Mountain Dew eater.
420 No scoping 69 scrubs per day
Always smoke weed everyday.

Known for: #getrekt Bot (possible revive with new stuff?)

Offline

#2 2015-05-01 05:25:37

1448
Formerly alkazam1448
From: Numberland
Joined: 2015-04-12
Posts: 683
Website

Re: How to draw a level in the bot GUI

I posted this before, and also got an answer.

Here

Offline

#3 2015-05-02 05:27:44

darkblades
Member
From: New MLG City/Weed Town
Joined: 2015-03-21
Posts: 122

Re: How to draw a level in the bot GUI

i meant not to load from a world, from a save file in my folders


Sample Text.

Doritos/Mountain Dew eater.
420 No scoping 69 scrubs per day
Always smoke weed everyday.

Known for: #getrekt Bot (possible revive with new stuff?)

Offline

#4 2015-05-02 06:23:39

1448
Formerly alkazam1448
From: Numberland
Joined: 2015-04-12
Posts: 683
Website

Re: How to draw a level in the bot GUI

darkblades wrote:

i meant not to load from a world, from a save file in my folders

dats gunna be hard... really hard...
i think its a for loop or something

Offline

#5 2015-05-02 09:12:58

den3107
Member
From: Netherlands
Joined: 2015-04-24
Posts: 1,025

Re: How to draw a level in the bot GUI

Pretty much.
Double for loop, one for the x, other for the y and then just draw everything block by block.
Just kinda annoying work that you'd first have to import every single block texture and likc that to the block id...

Offline

#6 2015-05-02 10:41:03

DarkDragon4900
Member
Joined: 2015-03-17
Posts: 251

Re: How to draw a level in the bot GUI

Serialize the roomdata class using json.
Save it to text file.
Load it from the text file (it loads into an object.)
Send all of the blocks in it.

There isn't an easier way, really.

Offline

DarkDragon49001430559663500581

Board footer

Powered by FluxBB

[ Started around 1714214370.2499 - Generated in 0.086 seconds, 12 queries executed - Memory usage: 1.43 MiB (Peak: 1.56 MiB) ]