Its boxxy! (the funny startbox maker)

Its boxxy! (the funny startbox maker)

Various things about Spring that do not fit in any of the other forums listed below, including forum rules.

Moderator: Moderators

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

Its boxxy! (the funny startbox maker)

Post by knorke » 12 Dec 2011, 23:27

The year 2011 is coming to an end and people are still guessing what numbers to use when typing !addbox into chat to set up startboxes on autohosts.
Clearly the answer is a sleak app for the iPhone buggy javascript.

So if your startboxes after the third try are still in lava, you need this:

Image
I have NO idea of javascript and so the implantation sucks even harder than the idea.
How to use:
http://knorke.darkstars.co.uk/startboxx ... fish_Redux
wait, don't click yet.
replace ?map= with the map you are using.
Must be complete mapname for example
http://knorke.darkstars.co.uk/startboxx ... rtCliffsV1
http://knorke.darkstars.co.uk/startboxx ... f_Horus_v2
http://knorke.darkstars.co.uk/startboxx ... ising%20v2

(spaces can actually just be kept as space, but forum changes it to %20)

In springloby you can c&p mapname from this line AH spams when you click a map:
[RoX]knorke suggests Eye_Of_Horus_v2
or c&p from drowndown.

Put adress with the correct ?map=bla in browser, hit enter.
Keep reloading the page (F5 key) until the minimap shows up and the coordinates are not all 0 or "infinite" (wtf, srsly. might be caching or something)
Should take 2 tries max, sometimes it works on 1st.

Copy the created !addbox into chat, AH adds the boxes -> tada, boxes are set.

Sadly the actual boxes are a bit different from the script because page scaling or scrolling in browser (put zoom 100%) and/or because the CSS layout is not correctly aligned.
0 x

User avatar
danil_kalina
Posts: 505
Joined: 08 Feb 2010, 22:21

Re: Its boxxy! (the funny startbox maker)

Post by danil_kalina » 12 Dec 2011, 23:43

Holy crap :shock:
0 x

User avatar
Jools
XTA Developer
Posts: 2804
Joined: 23 Feb 2009, 16:29

Re: Its boxxy! (the funny startbox maker)

Post by Jools » 12 Dec 2011, 23:58

I like how knorke names his stuff. You should do some projects for IKEA, they have the same catchy naming policy.
0 x

User avatar
Pxtl
Posts: 6112
Joined: 23 Oct 2004, 01:43

Re: Its boxxy! (the funny startbox maker)

Post by Pxtl » 13 Dec 2011, 05:59

Get this integrated into ZKLobby nao!
0 x

User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14572
Joined: 17 Nov 2005, 02:43

Re: Its boxxy! (the funny startbox maker)

Post by Forboding Angel » 13 Dec 2011, 06:18

Knorke for God! Err, I mean Mod!
0 x

User avatar
CarRepairer
Cursed Zero-K Developer
Posts: 3359
Joined: 07 Nov 2007, 21:48

Re: Its boxxy! (the funny startbox maker)

Post by CarRepairer » 13 Dec 2011, 17:04

You already named something else boxxy. Now you have two boxxies. What is wrong with you?
0 x

zerver
Spring Developer
Posts: 1358
Joined: 16 Dec 2006, 20:59

Re: Its boxxy! (the funny startbox maker)

Post by zerver » 13 Dec 2011, 17:09

Foxxy boxxy, I love you
0 x

User avatar
CarRepairer
Cursed Zero-K Developer
Posts: 3359
Joined: 07 Nov 2007, 21:48

Re: Its boxxy! (the funny startbox maker)

Post by CarRepairer » 13 Dec 2011, 21:21

I'll try to add it to weblobby.
0 x

abma
Spring Developer
Posts: 3540
Joined: 01 Jun 2009, 00:08

Re: Its boxxy! (the funny startbox maker)

Post by abma » 14 Dec 2011, 00:28

@knorke:

high-res images needed? i could help...

for example:
http://springfiles.com/sites/default/fi ... ry.sd7.jpg
0 x

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

Re: Its boxxy! (the funny startbox maker)

Post by knorke » 14 Dec 2011, 02:10

on the zerok server there are also mapname.minimap.jpg instead of mapname.thumbnail.jpg but some were too big and then got scaled down and that messed everything up (even more than now) or something like that.
I'll have to look into how to get mouseclick position relative to CSS elements, if that makes sense.
CarRepairer wrote: Now you have two boxxies.
Image
0 x

User avatar
CarRepairer
Cursed Zero-K Developer
Posts: 3359
Joined: 07 Nov 2007, 21:48

Re: Its boxxy! (the funny startbox maker)

Post by CarRepairer » 15 Dec 2011, 07:09

It is done. I have taken inspiration from knorke's kackeldackel mishmash of javascript muckery and added box drawing to Weblobby.

Image

Do you realize what this means? Even ZK Lobby made by Licho himself can not communicate with Springie on such an intimate level. Weblobby is now the only lobby client to add startboxes to Springie with map drawing.
Attachments
Capture.PNG
(139.57 KiB) Downloaded 1 time
0 x

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

Re: Its boxxy! (the funny startbox maker)

Post by knorke » 15 Dec 2011, 07:39

Weblobby is now the only lobby client to add startboxes to Springie with map drawing.
its funny because its sad that it has been like that for years.
(add !clearbox as well)
0 x

User avatar
PicassoCT
Journeywar Developer & Mapper
Posts: 10200
Joined: 24 Jan 2006, 21:12

Re: Its boxxy! (the funny startbox maker)

Post by PicassoCT » 15 Dec 2011, 23:42

OMG WHAT ARE YOU DOING! YOU ARE LETTING THE NUBS IN...

WELL YOUNG MAN, YOU ARE RESPONSIBLE FOR YOUR PETS. YOU WILL CLEAN UP AFTER THEM. HERE IS YOUR SHOVELL. AND A RUBBER GLOVE.
AND SOME BROWN AND RED PAINT, SO THE STAINS DONT SHOW.
0 x

User avatar
Cheesecan
Posts: 1571
Joined: 07 Feb 2005, 21:30

Re: Its boxxy! (the funny startbox maker)

Post by Cheesecan » 19 Dec 2011, 10:45

Too bad you didn't code this as a reusable Swing component, then I could have implemented it in my lobby.
0 x

User avatar
smoth
Posts: 22295
Joined: 13 Jan 2005, 00:46

Re: Its boxxy! (the funny startbox maker)

Post by smoth » 19 Dec 2011, 13:00

you still can. You telling me you cannot take once piece of code and reimplement it in javajava?
0 x

User avatar
AF
AI Developer
Posts: 20667
Joined: 14 Sep 2004, 11:32

Re: Its boxxy! (the funny startbox maker)

Post by AF » 19 Dec 2011, 15:22

Cheesecan wrote:Too bad you didn't code this as a reusable Swing component, then I could have implemented it in my lobby.
To bad you didn't attempt to nab the reusable swing component that's been sitting in AFLobby that lets you pick and draw any startbox configuration you like with built in ally controls for swapping them around.
0 x

User avatar
smoth
Posts: 22295
Joined: 13 Jan 2005, 00:46

Re: Its boxxy! (the funny startbox maker)

Post by smoth » 19 Dec 2011, 15:44

ZIIIIIIIIIIIIIIIIIIIiiiIIING
0 x

User avatar
CarRepairer
Cursed Zero-K Developer
Posts: 3359
Joined: 07 Nov 2007, 21:48

Re: Its boxxy! (the funny startbox maker)

Post by CarRepairer » 20 Jan 2012, 03:20

knorke wrote:
Weblobby is now the only lobby client to add startboxes to Springie with map drawing.
its funny because its sad that it has been like that for years.
(add !clearbox as well)
Done.
0 x

User avatar
Cheesecan
Posts: 1571
Joined: 07 Feb 2005, 21:30

Re: Its boxxy! (the funny startbox maker)

Post by Cheesecan » 20 Jan 2012, 12:34

AF wrote:
Cheesecan wrote:Too bad you didn't code this as a reusable Swing component, then I could have implemented it in my lobby.
To bad you didn't attempt to nab the reusable swing component that's been sitting in AFLobby that lets you pick and draw any startbox configuration you like with built in ally controls for swapping them around.
Not really comparable. First it does something else. Second your code is not even licensed.
0 x

User avatar
AF
AI Developer
Posts: 20667
Joined: 14 Sep 2004, 11:32

Re: Its boxxy! (the funny startbox maker)

Post by AF » 22 Jan 2012, 18:23

It IS, it's LGPL 2, and it does the same thing but better. It shows the minimap and lets you put boxes on it showing the starting rectangles for each ally team, resize them, and drag them around. It also has a separate control for rendering them as translucent boxes on a minimap in a non interactive manner
0 x

Post Reply

Return to “General Discussion”