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 »

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.
User avatar
danil_kalina
Posts: 505
Joined: 08 Feb 2010, 22:21

Re: Its boxxy! (the funny startbox maker)

Post by danil_kalina »

Holy crap :shock:
User avatar
Jools
XTA Developer
Posts: 2816
Joined: 23 Feb 2009, 16:29

Re: Its boxxy! (the funny startbox maker)

Post by Jools »

I like how knorke names his stuff. You should do some projects for IKEA, they have the same catchy naming policy.
User avatar
Pxtl
Posts: 6112
Joined: 23 Oct 2004, 01:43

Re: Its boxxy! (the funny startbox maker)

Post by Pxtl »

Get this integrated into ZKLobby nao!
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: Its boxxy! (the funny startbox maker)

Post by Forboding Angel »

Knorke for God! Err, I mean Mod!
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 »

You already named something else boxxy. Now you have two boxxies. What is wrong with you?
zerver
Spring Developer
Posts: 1358
Joined: 16 Dec 2006, 20:59

Re: Its boxxy! (the funny startbox maker)

Post by zerver »

Foxxy boxxy, I love you
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 »

I'll try to add it to weblobby.
abma
Spring Developer
Posts: 3798
Joined: 01 Jun 2009, 00:08

Re: Its boxxy! (the funny startbox maker)

Post by abma »

@knorke:

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

for example:
http://springfiles.com/sites/default/fi ... ry.sd7.jpg
User avatar
knorke
Posts: 7971
Joined: 22 Feb 2006, 01:02

Re: Its boxxy! (the funny startbox maker)

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

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
User avatar
knorke
Posts: 7971
Joined: 22 Feb 2006, 01:02

Re: Its boxxy! (the funny startbox maker)

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

Re: Its boxxy! (the funny startbox maker)

Post 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.
User avatar
Cheesecan
Posts: 1571
Joined: 07 Feb 2005, 21:30

Re: Its boxxy! (the funny startbox maker)

Post by Cheesecan »

Too bad you didn't code this as a reusable Swing component, then I could have implemented it in my lobby.
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Re: Its boxxy! (the funny startbox maker)

Post by smoth »

you still can. You telling me you cannot take once piece of code and reimplement it in javajava?
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Re: Its boxxy! (the funny startbox maker)

Post 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.
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Re: Its boxxy! (the funny startbox maker)

Post by smoth »

ZIIIIIIIIIIIIIIIIIIIiiiIIING
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 »

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.
User avatar
Cheesecan
Posts: 1571
Joined: 07 Feb 2005, 21:30

Re: Its boxxy! (the funny startbox maker)

Post 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.
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Re: Its boxxy! (the funny startbox maker)

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

Return to “General Discussion”