gametechmods
Robot Arena => Discussion => Topic started 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.
>>> 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)
-
nice!
-
awesome stuff Serge
-
Night wheel?
-
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:
>>> 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.
-
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.
-
Night 12 was an action movie. And I think a car!
-
Great work, Serge! :D
-
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.
-
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.
-
looking good!
-
Looks good Serge!
-
yeah, looks ok
-
So thats an update for the exchange on GTM?
-
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...
-
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
-
Good job.
-
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?
-
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)
-
looks really cool Serge, if you need anymore graphics just let me know ;)
-
Everyone else has said this but I'll say it again. It looks great!
-
Awesome.
-
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.
-
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.
-
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.
-
This all sounds great :D
-
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.
-
Yes. But you were as right as if you said "the robot exchange will work by displaying images to the user's screen".
-
HE IS MAGIC I TELL YOU!!! Thats incredible Serge, great work.
-
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.
-
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.
-
(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.
-
Serge........ you are awesome!
-
Anna Blogowska.
whasat?
Looks great btw.
-
Anna Blogowska.
whasat?
Haha, that's a friend of mine. That'll teach me to close Pidgin the next time I make a screenshot.
-
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
-
That is COOL.
-
:O awesome stuff.. heck we might not even need showcases anymore :P
-
That is outstanding. Great job.
-
Serge wins 10 internets for this :D
-
Hot damn.
.. I dunno about you guys but it feels so strange and.. alien that we're actually getting a bot exchange.
-
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.
-
Really?
-
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.
-
Where is the 3D preview on the page you showed?
-
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.
-
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.
-
Sweeet. Can you do a whole bot?
-
Thats Awesome!
-
Cool. I like how you got it to rotate (far better than just a picture).
-
I installed O3D but it still says I need it.
-
What browser are you using?
-
He uses Chrome.
-
^^^Oi! I was going to say that^^^
-
Did you restart your browser after installing the plugin? :P
-
Well, I was prompted to. So yes.
EDIT:OK, works now.
-
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.
-
You were in Peru?
-
Buenos Aires is capital of Argentina.
-
I know.
-
So possibly we could get a rotating image of the entire robot?
*Thinks of showcase ideas*
-
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.
-
Granted, but there is no manipulating code.
I wish for a spoon.
EDIT: LOL Wrong thread!