gametechmods

Robot Arena => Discussion => Topic started by: Serge on July 01, 2010, 05:52:57 PM

Title: Bot Exchange
Post by: Serge on July 01, 2010, 05:52:57 PM
Yes, I'm working on it. It uses PyRA2 and Django to do its job.
Code: [Select]
>>> readBot("/media/FCB0FBB7B0FB768C/Robot Arena 2/Stock/Robot Designs/XTRA_Tailwhip.bot", None)
Components\ztek1.txt
Components\ztek1.txt
Components\night wheel.txt
Components\night wheel.txt
Components\Styles\anchor5.txt
Components\Styles\sq_extender6.txt
Components\Styles\sq_extender3.txt
Components\supervolt battery.txt
Components\supervolt battery.txt
Components\controlboard.txt
Components\Styles\anchor5.txt
Components\ramplate1.txt
Components\universalT1.txt
Components\darkspike1.txt
Components\darkspike1.txt
Stock
(this is an example of a script I wrote to parse .bot files, determine what components it uses and whether it's Stock or DSL)
Title: Re: Bot Exchange
Post by: Sage on July 01, 2010, 06:43:54 PM
nice!
Title: Re: Bot Exchange
Post by: JoeBlo on July 01, 2010, 06:48:30 PM
awesome stuff Serge
Title: Re: Bot Exchange
Post by: Somebody on July 01, 2010, 07:39:04 PM
Night wheel?
Title: Re: Bot Exchange
Post by: Serge on July 01, 2010, 08:07:59 PM
Alright, uploading and processing work. Whereas you can't browse bots through the web right now, here's what I can get through the command line:
Code: [Select]
>>> all_bots = Bot.objects.all()
>>> my_bot = all_bots[0]
>>> my_bot.name
u'Forkie'
>>> my_bot.author
<User: sergeb>
>>> my_bot.weight
239
>>> my_bot.weightclass
<WeightClass: Lightweight>
>>> my_bot.pack
<Pack: Stock>
>>> my_bot.status
u'Uploaded'

tl;dr: Except a closed beta soon.
Title: Re: Bot Exchange
Post by: Clickbeetle on July 01, 2010, 10:24:42 PM
Night wheel?


N12.  The "N" stands for "Night" apparently.


Nice to see another fancy-shmancy bot exchange in the works... IMO the coolest feature about Goose's old bot exchange was the bot preview pictures that popped up on mouseover.  If you can remake that I'll be happy; any other features are just icing on the cake.
Title: Re: Bot Exchange
Post by: Sparkey98 on July 01, 2010, 10:42:38 PM
Night 12 was an action movie. And I think a car!
Title: Re: Bot Exchange
Post by: Gazea2 on July 02, 2010, 01:01:35 AM
Great work, Serge! :D
Title: Re: Bot Exchange
Post by: Madiaba on July 02, 2010, 10:27:10 AM
Thanks for this endeavour.  I'm going to visit my parents for a few days so no hurry, but when you can, Serge, I'd appreciate looking through your Bot Exchange py coding.

Thanks.
Title: Re: Bot Exchange
Post by: Serge on July 03, 2010, 04:56:39 PM
Alright, so I started doing a layout for the exchange... Here's a quick preview:


(http://imgur.com/2OdGN.png)

Thanks to JoeBlo for the awesome logo.
Title: Re: Bot Exchange
Post by: Sage on July 03, 2010, 04:59:07 PM
looking good!
Title: Re: Bot Exchange
Post by: Urjak on July 03, 2010, 05:01:46 PM
Looks good Serge!
Title: Re: Bot Exchange
Post by: Thyrus on July 03, 2010, 05:02:07 PM
yeah, looks ok
Title: Re: Bot Exchange
Post by: Vertigo on July 03, 2010, 05:07:54 PM
So thats an update for the exchange on GTM?
Title: Re: Bot Exchange
Post by: Serge on July 03, 2010, 05:21:28 PM
No, it's completely new. Planned features:
Title: Re: Bot Exchange
Post by: Vertigo on July 03, 2010, 05:27:43 PM
No, it's completely new. Planned features:
  • Users and Accounts
  • Voting
  • Automatic bot parsing (stock/dsl, weight, name, weightclass, etc...)
  • View inside of bot (high quality raytraced render done serverside)
  • 3d preview of bot (WebGL/O3D)
  • and more...
Sounds Good
Title: Re: Bot Exchange
Post by: Virus Bomb on July 03, 2010, 05:31:11 PM
Good job.
Title: Re: Bot Exchange
Post by: Somebody on July 03, 2010, 06:48:40 PM
At first, I feel bad for Goose because he has put in lots of work with his exchange. But to an extent, he did drop the ball on this. He has promised it before and not delivered, and I cannot wait to see how this one works out. Is there a tentative release date?
Title: Re: Bot Exchange
Post by: Serge on July 03, 2010, 06:54:43 PM
At first, I feel bad for Goose because he has put in lots of work with his exchange. But to an extent, he did drop the ball on this. He has promised it before and not delivered, and I cannot wait to see how this one works out. Is there a tentative release date?

When it's done.

(no, but seriously, I already have a virtual deadline which I will make)
Title: Re: Bot Exchange
Post by: JoeBlo on July 03, 2010, 11:33:41 PM
looks really cool Serge, if you need anymore graphics just let me know  ;)
Title: Re: Bot Exchange
Post by: Gazea2 on July 04, 2010, 12:36:19 AM
Everyone else has said this but I'll say it again. It looks great!
Title: Re: Bot Exchange
Post by: G.K. on July 04, 2010, 01:57:43 AM
Awesome.
Title: Re: Bot Exchange
Post by: Clickbeetle on July 04, 2010, 02:45:46 PM
No, it's completely new. Planned features:
  • Users and Accounts
  • Voting
  • Automatic bot parsing (stock/dsl, weight, name, weightclass, etc...)
  • View inside of bot (high quality raytraced render done serverside)
  • 3d preview of bot (WebGL/O3D)
  • and more...


Don't overexert yourself... I think the reason Goose never finished his new exchange was because he tried to make too many cool features.  If he set the bar just a bit lower I think it would be out by now.


That said, if you can pull off all that stuff it would be awesome.  Just don't make it so big it crumbles under its own weight (metaphorically speaking).


One question.  How on earth would you do a 3D preview?  The .gmf data isn't contained in the .bot file.  You would need a database of all the common .gmf files and skins used by bots and somehow load that in the preview window.  Which is just one step away from actually loading the bots in the game.


I can imagine problems loading previews of bots with burst motors too, since you would need to get the angle of the motor as well as its .gmf.
Title: Re: Bot Exchange
Post by: Sparkey98 on July 04, 2010, 02:48:46 PM
This is how he'll do it:

He's Serge.


Actually he might be intergrading something that'll read the bot and display it as a solid 3D object, kinda like the SFTW weapon.
Title: Re: Bot Exchange
Post by: Serge on July 04, 2010, 05:14:40 PM
Don't overexert yourself... I think the reason Goose never finished his new exchange was because he tried to make too many cool features.  If he set the bar just a bit lower I think it would be out by now.
Most of the features up there are already done. Righ tnow I'm testing, enhancing, securing and making an UI for all of this.

That said, if you can pull off all that stuff it would be awesome.  Just don't make it so big it crumbles under its own weight (metaphorically speaking).
It surely won't literally. Using Pytohn+Django+Nginx+Memcached, it's rock solid and super fast

One question.  How on earth would you do a 3D preview?  The .gmf data isn't contained in the .bot file.  You would need a database of all the common .gmf files and skins used by bots and somehow load that in the preview window.  Which is just one step away from actually loading the bots in the game.
I have a database. Bots are being converted to a 3d file format readable by O3D (kinda like VRML in the DSL teaser days).

I can imagine problems loading previews of bots with burst motors too, since you would need to get the angle of the motor as well as its .gmf.
Yes, I just hit that bug today. I have a fix in the making.
Title: Re: Bot Exchange
Post by: Scrap Daddy on July 04, 2010, 05:33:23 PM
This all sounds great :D
Title: Re: Bot Exchange
Post by: Sparkey98 on July 04, 2010, 05:39:10 PM
Don't overexert yourself... I think the reason Goose never finished his new exchange was because he tried to make too many cool features.  If he set the bar just a bit lower I think it would be out by now.
Most of the features up there are already done. Righ tnow I'm testing, enhancing, securing and making an UI for all of this.

That said, if you can pull off all that stuff it would be awesome.  Just don't make it so big it crumbles under its own weight (metaphorically speaking).
It surely won't literally. Using Pytohn+Django+Nginx+Memcached, it's rock solid and super fast

One question.  How on earth would you do a 3D preview?  The .gmf data isn't contained in the .bot file.  You would need a database of all the common .gmf files and skins used by bots and somehow load that in the preview window.  Which is just one step away from actually loading the bots in the game.
I have a database. Bots are being converted to a 3d file format readable by O3D (kinda like VRML in the DSL teaser days).

I can imagine problems loading previews of bots with burst motors too, since you would need to get the angle of the motor as well as its .gmf.
Yes, I just hit that bug today. I have a fix in the making.


so  Basically I was right?

This is how he'll do it:

He's Serge.


Actually he might be intergrading something that'll read the bot and display it as a solid 3D object, kinda like the SFTW weapon.
Title: Re: Bot Exchange
Post by: Serge on July 04, 2010, 05:56:36 PM
Yes. But you were as right as if you said "the robot exchange will work by displaying images to the user's screen".
Title: Re: Bot Exchange
Post by: Somebody on July 04, 2010, 06:02:26 PM
HE IS MAGIC I TELL YOU!!! Thats incredible Serge, great work.
Title: Re: Bot Exchange
Post by: Sparkey98 on July 04, 2010, 06:05:08 PM
Yes. But you were as right as if you said "the robot exchange will work by displaying images to the user's screen".
I just simply geussed that you had something to read the robots coding and dsiplay it as a 3D model, no need to be Youknowhaty with me.
Title: Re: Bot Exchange
Post by: Serge on July 04, 2010, 06:09:43 PM
Yes. But you were as right as if you said "the robot exchange will work by displaying images to the user's screen".
I just simply geussed that you had something to read the robots coding and dsiplay it as a 3D model, no need to be Youknowhaty with me.

And what I'm trying to make you understand is that this is no guess, since it's the only way to do it, hence my analogy.
Title: Re: Bot Exchange
Post by: Serge on July 04, 2010, 06:41:40 PM
(http://imgur.com/IuLMk.png)

Here's the current frontend... I didn't have too much time to work today, so I'm a bit lagging behind my schedule.
Title: Re: Bot Exchange
Post by: Urjak on July 04, 2010, 06:44:38 PM
Serge........ you are awesome!
Title: Re: Bot Exchange
Post by: Somebody on July 04, 2010, 07:06:33 PM
Anna Blogowska.

whasat?

Looks great btw.
Title: Re: Bot Exchange
Post by: Serge on July 04, 2010, 07:17:14 PM
Anna Blogowska.

whasat?

Haha, that's a friend of mine. That'll teach me to close Pidgin the next time I make a screenshot.
Title: Re: Bot Exchange
Post by: Somebody on July 04, 2010, 07:22:53 PM
Is it also the possible reason of the "not much time to work" ;)

Also, I just noticed JoeBlo's name in the bottom right corner :D
Title: Re: Bot Exchange
Post by: Badnik96 on July 04, 2010, 07:26:04 PM
That is COOL.
Title: Re: Bot Exchange
Post by: JoeBlo on July 04, 2010, 08:42:16 PM
:O awesome stuff..  heck we might not even need showcases anymore :P
Title: Re: Bot Exchange
Post by: G.K. on July 05, 2010, 12:54:46 AM
That is outstanding. Great job.
Title: Re: Bot Exchange
Post by: somestrangeguy on July 05, 2010, 06:59:37 AM
Serge wins 10 internets for this :D
Title: Re: Bot Exchange
Post by: RedSawn on July 05, 2010, 07:37:24 AM
Hot damn.

.. I dunno about you guys but it feels so strange and.. alien that we're actually getting a bot exchange.
Title: Re: Bot Exchange
Post by: ACAMS on July 05, 2010, 08:51:27 AM
You already have a bot exchange....(sad excuse of a bot exchange, but an exchange none the less)
 
Actually, it is not much worse than the official bot exchange was.
Title: Re: Bot Exchange
Post by: RedSawn on July 05, 2010, 10:36:06 AM
Really?
Title: Re: Bot Exchange
Post by: Serge on July 05, 2010, 11:03:19 AM
If any of you clever hackers wonder what file format are the components (and bots) going to be sent to the client for 3d preview, here's an sample file:
http://botexchange.org/sample.json (http://botexchange.org/sample.json)
It's encoded in JSON (a very lightweight notation system), so it's parsable in almost any language, especially by JavaScript.
Title: Re: Bot Exchange
Post by: Somebody on July 05, 2010, 11:04:46 AM
Where is the 3D preview on the page you showed?
Title: Re: Bot Exchange
Post by: Serge on July 05, 2010, 11:06:12 AM
It's isn't done yet - I am still wrestling with O3D and WebGL. The problem is neither of them is supported out of the box in most browsers. O3D can be easily installed as a plugin, but Google is slowly deprecating it in favor of an interface layer to WebGL. Unfortunately, WebGL isn't available as a plugin, and requires beta builds of Firefox or Chrome to work, which will be a pain for users.

Right now I'm sticking to the old plugin-based O3D implementation, and when WebGL goes mainstream I'll switch to the new O3D<->WebGL layer.
Title: Re: Bot Exchange
Post by: Serge on July 06, 2010, 02:59:57 PM
Alright, if any of you are wondering how the 3D preview looks like, here's the viewer showing an airtank:  http://q3k.org/3dviewer/ (http://q3k.org/3dviewer/).
Of course, you'll need O3D from http://tools.google.com/dlpage/o3d (http://tools.google.com/dlpage/o3d).

Here's a screenshot if you can't download the plugin:
(http://imgur.com/tD633.png)

Textures are still kind of wonky, I'm trying to get transparency (here the tank should have transparent handles) to work.
Title: Re: Bot Exchange
Post by: Sage on July 07, 2010, 02:28:01 AM
Sweeet. Can you do a whole bot?
Title: Re: Bot Exchange
Post by: Somebody on July 07, 2010, 06:07:10 AM
Thats Awesome!
Title: Re: Bot Exchange
Post by: Trovaner on July 07, 2010, 10:15:18 AM
Cool. I like how you got it to rotate (far better than just a picture).
Title: Re: Bot Exchange
Post by: Squirrel_Monkey on July 07, 2010, 10:26:59 AM
I installed O3D but it still says I need it.
Title: Re: Bot Exchange
Post by: Serge on July 07, 2010, 10:33:15 AM
What browser are you using?
Title: Re: Bot Exchange
Post by: G.K. on July 07, 2010, 10:34:39 AM
He uses Chrome.
Title: Re: Bot Exchange
Post by: Squirrel_Monkey on July 07, 2010, 10:36:20 AM
^^^Oi! I was going to say that^^^
Title: Re: Bot Exchange
Post by: Serge on July 07, 2010, 11:04:27 AM
Did you restart your browser after installing the plugin? :P
Title: Re: Bot Exchange
Post by: Squirrel_Monkey on July 07, 2010, 11:05:43 AM
Well, I was prompted to. So yes.
EDIT:OK, works now.
Title: Re: Bot Exchange
Post by: Serge on July 15, 2010, 02:58:26 PM
Alright, today is my last day in Peru. Tomorrow I'm back in Buenos Aires, and hopefully I'll be able to show you some new features.
Title: Re: Bot Exchange
Post by: G.K. on July 15, 2010, 03:00:56 PM
You were in Peru?
Title: Re: Bot Exchange
Post by: Jonzu95 on July 15, 2010, 03:03:20 PM
Buenos Aires is capital of Argentina.
Title: Re: Bot Exchange
Post by: G.K. on July 15, 2010, 03:10:58 PM
I know.
Title: Re: Bot Exchange
Post by: Sage on July 15, 2010, 03:31:01 PM
So possibly we could get a rotating image of the entire robot?


*Thinks of showcase ideas*
Title: Re: Bot Exchange
Post by: ACAMS on July 15, 2010, 03:45:05 PM
Buenos Aires is capital of Argentina.

jokerstars started out in Costa Rica......so they code their butt buddies in Argentina and Brazil to have better odds.
 
I wish Serge would hack jokerstars and make their manipulating code public.
Title: Re: Bot Exchange
Post by: G.K. on July 15, 2010, 03:49:37 PM
Granted, but there is no manipulating code.

I wish for a spoon.


EDIT: LOL Wrong thread!