Its Boxxy!
Moderator: Moderators
Its Boxxy!
u mad?
It is a crude hitbox editor. Actually more of a helper than an editor.
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.
It is a crude hitbox editor. Actually more of a helper than an editor.
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.
- Attachments
-
- boxxyR1.zip
- jajaja
- (2.39 KiB) Downloaded 147 times
Re: Its Boxxy!
can i post jaxxy pic plz ?
and good stuff, go make newb friendly upspring plox
and good stuff, go make newb friendly upspring plox
- bobthedinosaur
- Blood & Steel Developer
- Posts: 2700
- Joined: 25 Aug 2004, 13:31
Re: Its Boxxy!
very nice knorke
Re: Its Boxxy!
fuck yes, behe, knorke myself, who else has end o the year goodies?!?!
-
- Moderator
- Posts: 2464
- Joined: 12 Oct 2007, 09:24
Re: Its Boxxy!
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.
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.
- Attachments
-
- boxxyR1 with volume type.zip
- (2.79 KiB) Downloaded 104 times
Re: Its Boxxy!
How about if you try that it outpots the info somewhere in spring folder as hitbox.txt?
Re: Its Boxxy!
DO EEEEETWombat wrote:can i post jaxxy pic plz ?
- CarRepairer
- Cursed Zero-K Developer
- Posts: 3359
- Joined: 07 Nov 2007, 21:48
Re: Its Boxxy!
Updated boxxy with chili UI in toolbox mod.
Widget: https://code.google.com/p/springtutoria ... _boxxy.lua
Gadget: https://code.google.com/p/springtutoria ... _boxxy.lua
Widget: https://code.google.com/p/springtutoria ... _boxxy.lua
Gadget: https://code.google.com/p/springtutoria ... _boxxy.lua
Re: Its Boxxy!
who would have thought!knorke wrote:inb4 "ololol make a real interface and more options"
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!
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.knorke wrote:who would have thought!knorke wrote:inb4 "ololol make a real interface and more options"
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"
- Forboding Angel
- Evolution RTS Developer
- Posts: 14673
- Joined: 17 Nov 2005, 02:43
Re: Its Boxxy!
I've finally used boxxy, and I can attest that it is the single greatest thing to ever grace mankind.
Nice work!
Nice work!
- CarRepairer
- Cursed Zero-K Developer
- Posts: 3359
- Joined: 07 Nov 2007, 21:48
Re: Its Boxxy!
You're not using toolbox?
-
- Posts: 20
- Joined: 14 Jun 2012, 15:33
Re: Its Boxxy!
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?
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!
alt+v?
-
- Posts: 20
- Joined: 14 Jun 2012, 15:33
Re: Its Boxxy!
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.
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.
- Forboding Angel
- Evolution RTS Developer
- Posts: 14673
- Joined: 17 Nov 2005, 02:43
Re: Its Boxxy!
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!
got the toolbox to work.. woohoooo
Re: Its Boxxy!
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=20PicassoCT wrote:got the toolbox to work.. woohoooo