Page 1 of 1

Its Boxxy!

Posted: 23 Dec 2010, 04:47
by knorke
u mad?
Image

It is a crude hitbox editor. Actually more of a helper than an editor.

Image
TL;DR
press buttons, hitbox changes, copy numbers to unitdef.

How to use:
copy tp_buttonsender.lua into your widget folder
copy tp_boxxy.lua into the luarules\gadgets folder of your mod

type /cheat in chat.

press alt + d to enable debug mode.
the black circles & boxes are the hitboxes.

type /give unitname in chat
you can only edit one hitbox at a time: the one of the last spawned unit.

a marker will be placed on the unit "blabla you can now edit this units hitbox"

Mash buttons until you like boxxy.

Write down the numbers from chat or copy them from infolog.txt
Put them in your unitdef file.


The keys are:
Moving hitbox around:
q/e
a/d
w/s
Scaling hitbox:
on the numpad
7/9
4/6
2/8
7/9
Changing from moving in 1 steps to 10 and back:
on the numpad
5

Look at the keyboard how the keys are layed out, it makes sense if you ever had to play Descent with keyboard :?

I tested editing of boxes and spheres/ellipsioisediedetes or how you spell that.
You can not (yet) change from box to sphere etc.

I made this mainly for myself but if someone finds this helpful, nice.
So I do not mind that during typing the console will spam some crap, just ignore it.

inb4 "ololol make a real interface and more options"
I dont need that and unless there is interesst that anybody actually needs this, I will not spend time on this.

This is version 1 and I only ever tested it on two units. There might be bugs like axes flipped, I hope not.
This does not change anything in your mod on its own.

Re: Its Boxxy!

Posted: 23 Dec 2010, 05:05
by Wombat
can i post jaxxy pic plz ? :(

and good stuff, go make newb friendly upspring plox

Re: Its Boxxy!

Posted: 23 Dec 2010, 05:15
by bobthedinosaur
very nice knorke

Re: Its Boxxy!

Posted: 23 Dec 2010, 05:19
by smoth
fuck yes, behe, knorke myself, who else has end o the year goodies?!?!

Re: Its Boxxy!

Posted: 23 Dec 2010, 10:11
by Google_Frog
Nice!

I was going to complain that you cannot change the volume type of the unit but instead I just added that functionality.

Numpad 1 and 3 to cycle volume types ellipsoid, cylinder X,Y and Z and box. For some reason you cannot change the hitvolume type if the unit does not have hitvolume type entered into it's unitdef, ie if it uses the default hitvolume you cannot change volume type. If someone wanted to fix all their hitvolumes they would need to add the type in unitdefs_posts.

Also I added collision volume test toggle with numpad 0, just for completeness.

Re: Its Boxxy!

Posted: 23 Dec 2010, 10:48
by Karl
How about if you try that it outpots the info somewhere in spring folder as hitbox.txt?

Re: Its Boxxy!

Posted: 23 Dec 2010, 12:41
by Jazcash
Wombat wrote:can i post jaxxy pic plz ? :(
DO EEEEET

Re: Its Boxxy!

Posted: 08 Nov 2011, 07:34
by CarRepairer

Re: Its Boxxy!

Posted: 08 Nov 2011, 07:47
by knorke
knorke wrote:inb4 "ololol make a real interface and more options"
who would have thought!

I think it would it be possible to make something that automagically creates unitdefs for all files in "object3d" folder? So one does not have to modify files and can just copy in 3d files.
The unitname would be like "boxxy_nameOf3dObject"

Re: Its Boxxy!

Posted: 08 Nov 2011, 08:17
by FLOZi
knorke wrote:
knorke wrote:inb4 "ololol make a real interface and more options"
who would have thought!

I think it would it be possible to make something that automagically creates unitdefs for all files in "object3d" folder? So one does not have to modify files and can just copy in 3d files.
The unitname would be like "boxxy_nameOf3dObject"
Toolbox is supposed to sit 'on top' of a real game, no copy pasting other than the name of the mod into the dependency list. :P

Re: Its Boxxy!

Posted: 01 Apr 2012, 04:13
by Forboding Angel
I've finally used boxxy, and I can attest that it is the single greatest thing to ever grace mankind.

Nice work!

Re: Its Boxxy!

Posted: 01 Apr 2012, 05:46
by CarRepairer
You're not using toolbox?

Re: Its Boxxy!

Posted: 01 Apr 2012, 11:13
by knorke
trollbox \o/

Re: Its Boxxy!

Posted: 11 Jul 2012, 15:34
by jamesbigmac
I'm trying to use boxxy, but the spheres/boxes won't show up in game. I see output from the text telling me what size the volume is and where it is placed, but no visuals. Also, my numpad doesn't seem to register in boxxy even though I can type with it.
All I see are some random arrow thingies on the ground away from the unit I am trying to measure (they stay stationary). Any suggestions? Am I missing some other widgets/gadgets that are needed to run this?

Re: Its Boxxy!

Posted: 11 Jul 2012, 16:28
by FLOZi
alt+v?

Re: Its Boxxy!

Posted: 11 Jul 2012, 17:53
by jamesbigmac
Well yeah alt + v shows the hitboxes on everything, but it doesn't show anything from boxxy besides the text.

Edit: The collision volumes are shown moving on some units, but not on others. Buildings don't seem to be showing any movement, even if they are the only thing spawned.

Re: Its Boxxy!

Posted: 12 Jul 2012, 10:43
by Forboding Angel
They changed it to some other command or some crap. The command to show spheres is different form the command to show boxes, because that totally makes the most sense.

Re: Its Boxxy!

Posted: 12 Jul 2012, 14:24
by PicassoCT
got the toolbox to work.. woohoooo

Re: Its Boxxy!

Posted: 12 Jul 2012, 14:42
by gajop
PicassoCT wrote:got the toolbox to work.. woohoooo
as a part of journeywar? if it was a toolbox problem (or generally related to the gadgethandler), i'd be grateful if you posted the howto here: http://springrts.com/phpbb/viewtopic.ph ... 8&start=20