Author Topic: Medieval Bots v1.2  (Read 13018 times)

I decided to make some medieval bots after I saw this post by lordician:

Hmm, would there be interest for my old Orc and Knight Ai pack to be ported to this bot system...?

I stole Masterlegodude's formatting


Knight
Neutral - Armed: Sword
Health: 100
Strength: 20
A brave and noble knight. He takes pride in defending his kingdom and is a master of swordsmanship. He is noble but if he has to, he will defend himself.


Archer
Neutral - Armed: Bow
Health: 80
Strength: N/A
He may not know how to use a sword that well but he can damn sure shoot an arrow. He prefers to keep his distance though.


Orc
Enemy - Armed: Sword
Health: 110
Strength: 18
A ferocious beast bent on killing humans. Slightly slower and deals less damage but has more health.


Orc Archer
Enemy - Armed: Bow
Health: 90
Strength: N/A
A ferocious beast bent on killing humans... from afar.


Villager
Friendly - Unarmed
Health: 50
Strength: N/A
A simple villager. Does not wish harm upon anyone yet somehow always has harm brought upon them. Runs away when hurt.

Changelog

v1.1 to v1.2

  • Fixed Orcs and Orc Archers not being able to move
  • Changed Villager icon

v1 to v1.1

  • Added Orc Archer and Villager
  • Changed Knight's, Orc's and Archer's outfit
  • Human bots now utilize the getRandomBotSkinColor(); function
  • Made Knights and Archers neutral but on a team called "Knights". This makes them neutral until you attack one of them, then they will gang up on you. They won't attack each other on purpose. Orcs are still Enemy but are on a team called "Orcs".



>>> DOWNLOAD <<<
« Last Edit: March 17, 2013, 08:10:00 PM by Electrk »

Maybe some Villager bots?


How do you make the bot logos?
I made my own bot I want to make a brick logo for it.

Is it possible to make these bots interact/do the same thing that mr.wallets bots does?
like, make them battle eachother, when a team wins, the whole thing resets?

(imo that add-on was awesome, and I would love to re-make it with these bots :o

How do you make the bot logos?
I made my own bot I want to make a brick logo for it.

Here's what I did:

1. Made ground transparent
2. Change sky to one with no texture
3. Change sky and fog color to 100% green
4. Made direct light 0.7 0.7 0.7 and ambient light 0.4 0.4 0.4
5. Got rid of vignette
6. Stood at a 45 degree angle away from the spawn, about 6 studs away
7. Looked up enough so I can just barely place a ghost brick
8. Placed a spawn brick, canceled ghost brick and hid my tools
9. Turn bot OFF
10. Take picture
11. Open in Paint.NET
12. Magic wand green away
13. Put a perfect selection box around bot/spawn
14. Make canvas size 96x96

Is it possible to make these bots interact/do the same thing that mr.wallets bots does?
like, make them battle eachother, when a team wins, the whole thing resets?

(imo that add-on was awesome, and I would love to re-make it with these bots :o

They do attack each other. I think making it reset after a team wins would be better as a separate add-on.
« Last Edit: March 16, 2013, 12:29:42 AM by Electrk »

How do you make the bot logos?
I made my own bot I want to make a brick logo for it.
Use the Slate sky and turn the saturation all the way down for Direct Light, Ambient Color and Shadow Color and get a 45 degree angle at the bot on the spawn plate and try to be higher than the bot a little and turn your shaders to minimum to remove shadows

Then you can use a program like Paint.NET to crop the screenshot to the Bot and it's spawn plate, then resize the height to 96, then change the canvas' width to 96 so the image is 96x96 (don't forget to delete any white blocks Paint.NET creates when extending the canvas)

9. Type /resetBots
10. If bot does not stay still long enough, keep doing step 9
Ew, that's terrible, just event the spawn block so that when the bot spawns, it's not powered, it's far less infuriating

Use the Slate sky and turn the saturation all the way down for Direct Light, Ambient Color and Shadow Color and get a 45 degree angle at the bot on the spawn plate and try to be higher than the bot a little and turn your shaders to minimum to remove shadows

Then you can use a program like Paint.NET to crop the screenshot to the Bot and it's spawn plate, then resize the height to 96, then change the canvas' width to 96 so the image is 96x96 (don't forget to delete any white blocks Paint.NET creates when extending the canvas)

I enjoy the effort you put into making good icon shots for the bots, but there is a simpler way. I should have posted this a long time ago but I never got around to it.

We have a system for taking screenshots of bricks and screenshots of bots, I wrote a rough guide out.

Code: [Select]
make a folder called iconShots in your blockland directory

do /iconInit, this will change the world to pink and position your camera, do not move your camera after this

for normal bricks:
do /doIcon datablock name, minus brick----data // kind of confusing

for bot bricks:
do /DoBotIcon brick datablock name

*for bot icons you have to take the screenshot manually I believe

crop it, resize larger side to 96 then set canvas size to 96x96

Edit: I just checked this, and it works but there's a slight error in the doBotIcon command that paints the bot gray.

This will be fixed in the next update, for now you can copy the function serverCmdDoBotIcon out of Bot_Hole/support.cs and remove this line...
Code: [Select]
%bot.setTempColor( getColorIDTable( 5 ) );
« Last Edit: March 16, 2013, 01:40:51 AM by Rotondo »

-stuff-
Is there a way to visually incorporate this into the game so that people know of it's existence? Like keybinds or something?

Also, while i didn't know about this until now, i like to think that the fact that i put such unnecessary work into my icons is what gives them that certain charm of being manually done but still looking good :cookieMonster:

Is there a way to visually incorporate this into the game so that people know of it's existence? Like keybinds or something?

Also, while i didn't know about this until now, i like to think that the fact that i put such unnecessary work into my icons is what gives them that certain charm of being manually done but still looking good :cookieMonster:

Ideally this type of thing would happen automatically, but we haven't got to that point yet.

Also if anyone wants to make a proper guide for this I'll sticky it in the modification discussion forum.

Awww! I was too late for making this.
I was making the long list for the bots.
http://forum.blockland.us/index.php?topic=227189.0

Just trying out the command, i'm supposed to type something like '/doicon brickData 3x4rampCap' yes? Because as that guide says, it is kind of confusing

Also, doing the iconInit, the camera teleports somewhere far below the ground, is that supposed to happen?

Just trying out the command, i'm supposed to type something like '/doicon brickData 3x4rampCap' yes? Because as that guide says, it is kind of confusing

Also, doing the iconInit, the camera teleports somewhere far below the ground, is that supposed to happen?

Yeah the idea was that you'd type the uiName I guess? I can't recall offhand. But sometimes the uiName differs from the dataBlock name.

It is supposed to teleport you underground, so to avoid the groundPlane.

So here's one I just tested, type /iconInit then /doIcon 2x4

Assuming you made the iconShots directory you should now have a pic of a 2x4 brick.

Also if anyone wants to make a proper guide for this I'll sticky it in the modification discussion forum.
Okay

Can you make me some Lord Tony minions?