Its Boxxy!

Its Boxxy!

Discuss game development here, from a distinct game project to an accessible third-party mutator, down to the interaction and design of individual units if you like.

Moderator: Moderators

Post Reply
User avatar
knorke
Posts: 7971
Joined: 22 Feb 2006, 01:02

Its Boxxy!

Post 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.
Attachments
boxxyR1.zip
jajaja
(2.39 KiB) Downloaded 147 times
User avatar
Wombat
Posts: 3379
Joined: 15 Dec 2008, 15:53

Re: Its Boxxy!

Post by Wombat »

can i post jaxxy pic plz ? :(

and good stuff, go make newb friendly upspring plox
User avatar
bobthedinosaur
Blood & Steel Developer
Posts: 2700
Joined: 25 Aug 2004, 13:31

Re: Its Boxxy!

Post by bobthedinosaur »

very nice knorke
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Re: Its Boxxy!

Post by smoth »

fuck yes, behe, knorke myself, who else has end o the year goodies?!?!
Google_Frog
Moderator
Posts: 2464
Joined: 12 Oct 2007, 09:24

Re: Its Boxxy!

Post 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.
Attachments
boxxyR1 with volume type.zip
(2.79 KiB) Downloaded 104 times
User avatar
Karl
Panzerstahl Developer
Posts: 746
Joined: 01 Apr 2010, 21:05

Re: Its Boxxy!

Post by Karl »

How about if you try that it outpots the info somewhere in spring folder as hitbox.txt?
User avatar
Jazcash
Posts: 5309
Joined: 08 Dec 2007, 17:39

Re: Its Boxxy!

Post by Jazcash »

Wombat wrote:can i post jaxxy pic plz ? :(
DO EEEEET
User avatar
CarRepairer
Cursed Zero-K Developer
Posts: 3359
Joined: 07 Nov 2007, 21:48

Re: Its Boxxy!

Post by CarRepairer »

User avatar
knorke
Posts: 7971
Joined: 22 Feb 2006, 01:02

Re: Its Boxxy!

Post 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"
User avatar
FLOZi
MC: Legacy & Spring 1944 Developer
Posts: 6240
Joined: 29 Apr 2005, 01:14

Re: Its Boxxy!

Post 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
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: Its Boxxy!

Post 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!
User avatar
CarRepairer
Cursed Zero-K Developer
Posts: 3359
Joined: 07 Nov 2007, 21:48

Re: Its Boxxy!

Post by CarRepairer »

You're not using toolbox?
User avatar
knorke
Posts: 7971
Joined: 22 Feb 2006, 01:02

Re: Its Boxxy!

Post by knorke »

trollbox \o/
jamesbigmac
Posts: 20
Joined: 14 Jun 2012, 15:33

Re: Its Boxxy!

Post 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?
User avatar
FLOZi
MC: Legacy & Spring 1944 Developer
Posts: 6240
Joined: 29 Apr 2005, 01:14

Re: Its Boxxy!

Post by FLOZi »

alt+v?
jamesbigmac
Posts: 20
Joined: 14 Jun 2012, 15:33

Re: Its Boxxy!

Post 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.
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: Its Boxxy!

Post 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.
User avatar
PicassoCT
Journeywar Developer & Mapper
Posts: 10450
Joined: 24 Jan 2006, 21:12

Re: Its Boxxy!

Post by PicassoCT »

got the toolbox to work.. woohoooo
gajop
Moderator
Posts: 3051
Joined: 05 Aug 2009, 20:42

Re: Its Boxxy!

Post 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
Post Reply

Return to “Game Development”