Page 1 of 2

Its boxxy! (the funny startbox maker)

Posted: 12 Dec 2011, 23:27
by knorke
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.

Re: Its boxxy! (the funny startbox maker)

Posted: 12 Dec 2011, 23:43
by danil_kalina
Holy crap :shock:

Re: Its boxxy! (the funny startbox maker)

Posted: 12 Dec 2011, 23:58
by Jools
I like how knorke names his stuff. You should do some projects for IKEA, they have the same catchy naming policy.

Re: Its boxxy! (the funny startbox maker)

Posted: 13 Dec 2011, 05:59
by Pxtl
Get this integrated into ZKLobby nao!

Re: Its boxxy! (the funny startbox maker)

Posted: 13 Dec 2011, 06:18
by Forboding Angel
Knorke for God! Err, I mean Mod!

Re: Its boxxy! (the funny startbox maker)

Posted: 13 Dec 2011, 17:04
by CarRepairer
You already named something else boxxy. Now you have two boxxies. What is wrong with you?

Re: Its boxxy! (the funny startbox maker)

Posted: 13 Dec 2011, 17:09
by zerver
Foxxy boxxy, I love you

Re: Its boxxy! (the funny startbox maker)

Posted: 13 Dec 2011, 21:21
by CarRepairer
I'll try to add it to weblobby.

Re: Its boxxy! (the funny startbox maker)

Posted: 14 Dec 2011, 00:28
by abma
@knorke:

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

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

Re: Its boxxy! (the funny startbox maker)

Posted: 14 Dec 2011, 02:10
by knorke
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

Re: Its boxxy! (the funny startbox maker)

Posted: 15 Dec 2011, 07:09
by CarRepairer
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.

Re: Its boxxy! (the funny startbox maker)

Posted: 15 Dec 2011, 07:39
by knorke
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)

Re: Its boxxy! (the funny startbox maker)

Posted: 15 Dec 2011, 23:42
by PicassoCT
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.

Re: Its boxxy! (the funny startbox maker)

Posted: 19 Dec 2011, 10:45
by Cheesecan
Too bad you didn't code this as a reusable Swing component, then I could have implemented it in my lobby.

Re: Its boxxy! (the funny startbox maker)

Posted: 19 Dec 2011, 13:00
by smoth
you still can. You telling me you cannot take once piece of code and reimplement it in javajava?

Re: Its boxxy! (the funny startbox maker)

Posted: 19 Dec 2011, 15:22
by AF
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.

Re: Its boxxy! (the funny startbox maker)

Posted: 19 Dec 2011, 15:44
by smoth
ZIIIIIIIIIIIIIIIIIIIiiiIIING

Re: Its boxxy! (the funny startbox maker)

Posted: 20 Jan 2012, 03:20
by CarRepairer
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.

Re: Its boxxy! (the funny startbox maker)

Posted: 20 Jan 2012, 12:34
by Cheesecan
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.

Re: Its boxxy! (the funny startbox maker)

Posted: 22 Jan 2012, 18:23
by AF
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