What are you working on? V4 (HTML ISN'T PROGRAMMING)
2,003 replies, posted
Guys, I need some help. I have an image, this is the level. Then I have the mask which tells me what is solid. Without scrolling its easy, I move the player, check if his head or body is colliding then move him back. I then check if the feet is colliding and the body is not, if so I move them up one.
Now with scrolling I can get it to scroll but I can not get the mask to scroll to. So the collision is at a an offset to the player. I have tried finding the offset and subtracting it from the point in which I am checking if it collides but it is producing weird results, can anyone suggest anything?
I uploaded a file starting with this, but it doesn't work and the bot's name and version are unknown:
[code]"name" "Nucleus"
"version" "1.0"
"chassis" "orange"
"wheel" "black"
"turret" "yellow"
"startai"
-------------------------------------------
"lable" "main"[/code]
[QUOTE=Overv;18113581]I uploaded a file starting with this, but it doesn't work and the bot's name and version are unknown:
[code]"name" "Nucleus"
"version" "1.0"
"chassis" "orange"
"wheel" "black"
"turret" "yellow"
"startai"
-------------------------------------------
"lable" "main"[/code][/QUOTE]
I believe not everything has to be "in" "quotes" "now".
[b]Edit:[/b]
Also, is there a full documentation of the bot scripting language somewhere?
[QUOTE=Overv;18113581]I uploaded a file starting with this, but it doesn't work and the bot's name and version are unknown:
[code]"name" "Nucleus"
"version" "1.0"
"chassis" "orange"
"wheel" "black"
"turret" "yellow"
"startai"
-------------------------------------------
"lable" "main"[/code][/QUOTE]
That's the old version of his scripting language.
[code]name: Nucleus;
version: 1.0;
chassis: orange;
wheel: black;
turret: yellow;
startai;
'-------------------------------------------'
lable: main;[/code]
Fixed it for you.
[B]Edit:[/B]
Did you open every bot's source to the public on purpose?
[QUOTE=iPope;18113683]Also, is there a full documentation of the bot scripting language somewhere?[/QUOTE]
I'll work on one now
[QUOTE]Did you open every bot's source to the public on purpose?[/QUOTE]
Should I store them in a BLOB in my database then?
[QUOTE=Robert64;18113909]I'll work on one now
Should I store them in a BLOB in my database then?[/QUOTE]
I don't know, I was just curious if you gave everyone access by accident or not.
1. on the leaderboard btw :smug:
My id is 91 if you want to random battle me.
Robert64, my wins and losses don't seem to be updating at all.
My ID is 120 if you want to random match me.
Robert64, add a little documentation page :D
Keep those matches coming, I am #1 on the leader boards with 100% at the moment :smug:
I just resettet my bot to get 100% too. :smug:
My bot beats yours: (good bot though)
[url]http://www.robertandsherman.co.uk/botbattle/testbot.php?botid0=91&botid1=151[/url]
[B]Edit:[/B]
Shane found an exploit, you should fix it.
[img]http://imgkk.com/i/lkVZIy.jpg[/img]
Yay, I did Error handling. :downs:
[QUOTE=Robber;18114862]Shane found an exploit, you should fix it.[/QUOTE]
I was just about to PM him, but you beat me to it I guess.
EDIT: Oh, and the exploit is just xss in the bot name. Seeing as this is a prototype, it shouldn't be a big deal if I post it here rather than PM'ing you.
[QUOTE=Robber;18114862]I just resettet my bot to get 100% too. :smug:
My bot beats yours: (good bot though)
[url]http://www.robertandsherman.co.uk/botbattle/testbot.php?botid0=91&botid1=151[/url][/QUOTE]
It just lost.
And I have to say I'm really happy with 15th.
[QUOTE=Robber;18114862]I just resettet my bot to get 100% too. :smug:
My bot beats yours: (good bot though)
[url]http://www.robertandsherman.co.uk/botbattle/testbot.php?botid0=91&botid1=151[/url]
[B]Edit:[/B]
Shane found an exploit, you should fix it.[/QUOTE]
My bot is 120, that is 115 (older version) thats why you beat it :smug:
GAY, someone beat me.
Excellent game Robert64! It is very enjoyable.
Murderboat and LICKMYBUTT have been locked in eternal combat. It has already taken 5 minutes and still no winner.
Figured how I am going to do scrolling, each frame I'll reset the mask to the screen before I draw the player. This will also mean I have a smaller mask too.
You need a script syntax page. How do you write bots for this game?
EDIT: Make your own thread about this Robert64, it's pretty cool
[QUOTE=Kylegar;18115135]You need a script syntax page. How do you write bots for this game?
EDIT: Make your own thread about this Robert64, it's pretty cool[/QUOTE]
[url]http://www.robertandsherman.co.uk/uploads/bots/0/[/url]
You can find scripts for sample-bots here.
Edit:
They have been fighting for 18 minutes now what the fuuuuuck.
Robert64, what happens to bots when I delete them from My Bots? Do they remain in the database?
Documentation done: [url]http://www.robertandsherman.co.uk/botbattle/help.txt[/url]
I'll start a thread for this now, I don't want to take up too much of this one with just my thing.
[QUOTE=Robert64;18115311]Documentation done: [url]http://www.robertandsherman.co.uk/botbattle/help.txt[/url]
I'll start a thread for this now, I don't want to take up too much of this one with just my thing.[/QUOTE]
Looks awesome, and there's a few commands I didn't know about.
[QUOTE=Robert64;18115311]Documentation done: [url]http://www.robertandsherman.co.uk/botbattle/help.txt[/url]
I'll start a thread for this now, I don't want to take up too much of this one with just my thing.[/QUOTE]
Awesome, get a good website design, a bit more stuff (different chassis, different guns, different wheels) and you could be running a pretty professional game right there. When I have some free time I'll write a bot.
Yeah, maybe you could add some parts? Like drill or something?
It won't be too hard, something like this:
[code] name: SimpleBot;
version: 0.01;
add_part_drill: Piercer;
set_angle Piercer: 180;
set_distance_from_center Piercer: 70;
chassis: blue;
wheel: grey;
turret: blue;
set_color Piercer: red;
startai;
//////////////////////////
drill_set_power Piercer: 2;
activate_weapon Piercer;
[/code]
[QUOTE=Sasupoika and iPope]Add extra parts[/QUOTE]
Good idea!
I'll probably make a points system, where you earn points by winning a certain amount of games. Then you can spend the points on unlocking extra parts for your bot to place wherever you want.
[QUOTE=Sasupoika;18115616]Yeah, maybe you could add some parts? Like drill or something?
It won't be too hard, something like this:
[code] name: SimpleBot;
version: 0.01;
add_part_drill: Piercer;
set_angle Piercer: 180;
set_distance_from_center Piercer: 70;
chassis: blue;
wheel: grey;
turret: blue;
set_color Piercer: red;
startai;
//////////////////////////
drill_set_power Piercer: 2;
activate_weapon Piercer;
[/code][/QUOTE]
I was thinking more like bullet based weapons. Like:
[code]
[Name] - [Ammo Required per Shot] - [Bullets] - [Damage per Bullet] - [Delay between shots (seconds)]
Shotgun - 8 - 8 - 2 - 3
Super Bullet - 100 - 1 - 100 - 10
Machine Gun - 1 - 1 - 1 - 0.05
[/code]
The point idea sounds good. If you want to make some cash make it so you can buy points / fill out surveys for points. People do that stuff (Trust Me).
Also my initial worries about recalculating the mask per frame are void, as it had a 0.2 fps hit :D
[b]Edit:[/b]
Got it done, how it works:
Draw level at offset to screen
Draw level at 0-dir_x, 0-dir_y to collision
Create mask from collision
TADA :D
Only problem is stairs now have to be like:
[code]
##
####
######
[/code]
rather than
[code]
#
##
###
[/code]
[b]Actually it doesn't work very well at all :( It's horrible[/b]
Further testing reveals stairs are impossible, and you can stick to walls :| Collision needs some tweaking, but overall its okay ish.
[QUOTE=iPope;18115744]I was thinking more like bullet based weapons. Like:
[code]
[Name] - [Ammo Required per Shot] - [Bullets] - [Damage per Bullet] - [Delay between shots (seconds)]
Shotgun - 8 - 8 - 2 - 3
Super Bullet - 100 - 1 - 100 - 10
Machine Gun - 1 - 1 - 1 - 0.05
[/code]
The point idea sounds good. If you want to make some cash make it so you can buy points / fill out surveys for points. People do that stuff (Trust Me).
Also my initial worries about recalculating the mask per frame are void, as it had a 0.2 fps hit :D
[b]Edit:[/b]
Got it done, how it works:
Draw level at offset to screen
Draw level at 0-dir_x, 0-dir_y to collision
Create mask from collision
TADA :D
Only problem is stairs now have to be like:
[code]
##
####
######
[/code]
rather than
[code]
#
##
###
[/code]
[b]Actually it doesn't work very well at all :( It's horrible[/b]
Further testing reveals stairs are impossible, and you can stick to walls :| Collision needs some tweaking, but overall its okay ish.[/QUOTE]
Stairs are not impossible sir. You just need to do what they do in 3D games: make them a slope collision wise
so instead of series of _| you have one large slant sort of like /
[media]http://www.youtube.com/watch?v=8_sK6uKkpIk[/media]
New game idea, you walk around with a torch. You have to find batteries to keep your torch at full brightness. As your torch runs out of power the brightness of your torch will decrease.
In the game right now;
-Tile engine for drawing the map
-Torch power battery bar thing
-Working collision (took my ages to get it perfect but i think its nearly there)
I found an exploit. You let the user's flash decide who wins. I could easily spoof the post data so my bot always wins.
Mine has ninja abilities, 5000+ wins. :v:
[QUOTE=high6;18123145]I found an exploit. You let the user's flash decide who wins. I could easily spoof the post data so my bot always wins.[/QUOTE]
There is [url=http://www.facepunch.com/showthread.php?t=837822]a thread entirely for BotBattle[/url]; your post probably would have been more relevant there than here.
[editline]01:55PM[/editline]
I quoted it into the thread for you.
Sorry, you need to Log In to post a reply to this thread.