Joined: 22 Feb 2006, 01:02 Location: cheap kitchen
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.
Attachments:
File comment: jajaja boxxyR1.zip [2.39 KiB]
Downloaded 97 times
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.
Joined: 22 Feb 2006, 01:02 Location: cheap kitchen
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"
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.
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?
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.
Joined: 17 Nov 2005, 02:43 Location: Raegquitting Spring on 04/24/12
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.
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: viewtopic.php?f=14&t=27268&start=20
Users browsing this forum: No registered users and 1 guest
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum