|
25 Jul 2005, 23:33
|
#1
|
[F-crew] member
Join Date: Apr 2005
Location: atm - Kansas City
Posts: 80
|
You specified an invalid number of ships.???
Last round, under the fleets page, you could click on the number of a ship in a particular fleet and move ALL to another fleet. Now, if you try and do that same function, it spits out the answer as named in the title of this thread.
Can this be fixed please?
__________________
[F-Crew] - you know when you have been [FC]ucked
I want what is rightfully MINE . I have much, but need MUCH MORE !!!
R13 - [F-CREW]
R14 - [F-CREW]
|
|
|
25 Jul 2005, 23:43
|
#2
|
Retired
Join Date: Dec 2000
Location: Rogaland, Norway
Posts: 642
|
Re: You specified an invalid number of ships.???
Ace.
By fixing(?) one bug, they made another one.
__________________
Of all the things I've lost I miss my mind the most
-Elysium Officer
[1up] Senior MO
Retired
|
|
|
26 Jul 2005, 00:00
|
#3
|
Aria's TeddyBear :p
Join Date: Apr 2002
Location: Rhode Island, USA
Posts: 516
|
Re: You specified an invalid number of ships.???
atleast this one doesn't seem abusive, just a pain
__________________
Proud to be have been Fyre, NewDawn, NoS - The Illuminati, [ 1u p]
R3 [Acid] peon
R4 - R7 [Fyre] HC
R7 - R8 [ND] HC
R8 - R13 [NoS] MC
R14 - R16 [ 1u p] MO
R17 Retired
|
|
|
26 Jul 2005, 00:15
|
#4
|
Inactive peon
Join Date: Jan 2003
Posts: 6,050
|
Re: You specified an invalid number of ships.???
am i right in saying all functions other than the javascript all option work?
my theory is that Kloopy did the "all" option in a way that gets filtered out by the new code - as when i use the javascript interface and specify a number of ships it works correctly.
i'll point pishmishy at this thread to investigate it
|
|
|
26 Jul 2005, 00:45
|
#5
|
Retired
Join Date: Dec 2000
Location: Rogaland, Norway
Posts: 642
|
Re: You specified an invalid number of ships.???
How insanely hard can it be to explicitly convert the input to int, and make the "all" function use the numerical number for all available ships, which is stored in the js anyways?
__________________
Of all the things I've lost I miss my mind the most
-Elysium Officer
[1up] Senior MO
Retired
|
|
|
26 Jul 2005, 03:24
|
#6
|
CRASHING BEATS 'N FANTASY
Join Date: Mar 2001
Location: Cold Country.
Posts: 1,912
|
Re: You specified an invalid number of ships.???
It isn't hard. It was probably just " shotgun debugging"
__________________
Ià! Ià! Munin F'tagn! - [*scendancy]
|
|
|
26 Jul 2005, 05:25
|
#7
|
¯¯¯¯¯¯¯¯¯
Join Date: May 2001
Location: Sept 2057
Posts: 1,813
|
Re: You specified an invalid number of ships.???
The old code used to treat any 'zero' amount as 'all'. The half-assed fix for this bug now seems to do something like:
Code:
if (($val = atoi($val)) < 1)
error!;
Meaning that zero values are filtered as 'wrong'.
__________________
in my sig i write down all my previous co-ords and alliance positions as if they matter because I'm not important enough to be remembered by nickname alone.
|
|
|
26 Jul 2005, 09:12
|
#8
|
Planetarion Developer
Join Date: Jan 2005
Posts: 18
|
Re: You specified an invalid number of ships.???
Quote:
Originally Posted by kamikaze69
Last round, under the fleets page, you could click on the number of a ship in a particular fleet and move ALL to another fleet. Now, if you try and do that same function, it spits out the answer as named in the title of this thread.
|
Fixed. The Javascript hadn't been properly calling the CGI scripts and this hadn't been noticed until tweaked the fleet's page to fix the other bug.
|
|
|
26 Jul 2005, 09:15
|
#9
|
Planetarion Developer
Join Date: Jan 2005
Posts: 18
|
Re: You specified an invalid number of ships.???
Quote:
Originally Posted by TheRat
How insanely hard can it be to explicitly convert the input to int
|
How do you sensibly convert an arbitrary string that someone decided to pass to the CGI script into a number? Best just to throw an error which was useful in this case as it showed up the Javascript as broken.
|
|
|
26 Jul 2005, 09:15
|
#10
|
Planetarion Developer
Join Date: Jan 2005
Posts: 18
|
Re: You specified an invalid number of ships.???
Quote:
Originally Posted by Heartless
It isn't hard. It was probably just shotgun debugging
|
Am glad you have such confidence in me
|
|
|
26 Jul 2005, 09:18
|
#11
|
Planetarion Developer
Join Date: Jan 2005
Posts: 18
|
Re: You specified an invalid number of ships.???
Quote:
Originally Posted by xtothez
The old code used to treat any 'zero' amount as 'all'. The half-assed fix for this bug now seems to...
|
No, the code treats -1 as 'all'. The Javascript decided that passing 'all' to indicate all was a good thing. Which it wasn't. The 'half-assed' fix you mention throws an error if you input a non-integer value as the number of ships to move.
|
|
|
26 Jul 2005, 09:22
|
#12
|
.
Join Date: Mar 2004
Posts: 3,382
|
Re: You specified an invalid number of ships.???
Quote:
Originally Posted by pishmishy
Am glad you have such confidence in me
|
are you surprised?
|
|
|
26 Jul 2005, 14:34
|
#13
|
Retired
Join Date: Dec 2000
Location: Rogaland, Norway
Posts: 642
|
Re: You specified an invalid number of ships.???
Quote:
Originally Posted by pishmishy
No, the code treats -1 as 'all'. The Javascript decided that passing 'all' to indicate all was a good thing..
|
Oh, so the JavaScript decided? It's a good thing it wasnt human error then..
__________________
Of all the things I've lost I miss my mind the most
-Elysium Officer
[1up] Senior MO
Retired
Last edited by TheRat; 26 Jul 2005 at 14:47.
|
|
|
26 Jul 2005, 14:37
|
#14
|
Retired
Join Date: Dec 2000
Location: Rogaland, Norway
Posts: 642
|
Re: You specified an invalid number of ships.???
Quote:
Originally Posted by pishmishy
How do you sensibly convert an arbitrary string that someone decided to pass to the CGI script into a number?
|
A standard 'all' defined in the JS is hardly arbitrary. Also, thats not what I meant. I meant to lose the string, and instead have the js pull the number of ships in that fleet from the array which is allready present in the JS. That way, you'll be dealing with numbers only and dont need some "1337 h4x" to deal with 'all'.
__________________
Of all the things I've lost I miss my mind the most
-Elysium Officer
[1up] Senior MO
Retired
|
|
|
26 Jul 2005, 14:55
|
#15
|
CRASHING BEATS 'N FANTASY
Join Date: Mar 2001
Location: Cold Country.
Posts: 1,912
|
Re: You specified an invalid number of ships.???
Quote:
Originally Posted by pishmishy
Am glad you have such confidence in me
|
You got Dilbert as avatar which implies you got a clue (as the rewritten ticker also seems to prove, nice job there as so far it ticks a lot faster than the old one). However, this quick-and-dirty fix did make you look like a whacker again, who is playing around with a brittle system.
__________________
Ià! Ià! Munin F'tagn! - [*scendancy]
|
|
|
26 Jul 2005, 21:48
|
#16
|
[F-crew] member
Join Date: Apr 2005
Location: atm - Kansas City
Posts: 80
|
Re: You specified an invalid number of ships.???
AND NOW, with pishmishy fixing this, you can only move one type of ship at a time!!!
what happens if I want to send my Mozzies, and my Spids, and my Vips on an attack??? I have to perform the movement 3 times??? That's not right either. Last round you could stack so many things together...
__________________
[F-Crew] - you know when you have been [FC]ucked
I want what is rightfully MINE . I have much, but need MUCH MORE !!!
R13 - [F-CREW]
R14 - [F-CREW]
|
|
|
26 Jul 2005, 21:58
|
#17
|
Inactive peon
Join Date: Jan 2003
Posts: 6,050
|
Re: You specified an invalid number of ships.???
works for me
|
|
|
26 Jul 2005, 22:01
|
#18
|
Non directed and witty
Join Date: Nov 2001
Location: #ascendancy
Posts: 814
|
Re: You specified an invalid number of ships.???
Quote:
Originally Posted by Kal
works for me
|
you need ships to test it
__________________
CATHAAAAAARGH
I've won 4 rounds.
I'm kinda a big deal.
|
|
|
26 Jul 2005, 22:07
|
#19
|
Inactive peon
Join Date: Jan 2003
Posts: 6,050
|
Re: You specified an invalid number of ships.???
i do have ships... - admin tools
using the js i moved 33 ships of each of my 3 types to fleet alpha
using the standard interface i moved 33 of my 3 types to beta
|
|
|
27 Jul 2005, 03:38
|
#20
|
Retired
Join Date: Dec 2000
Location: Rogaland, Norway
Posts: 642
|
Re: You specified an invalid number of ships.???
Quote:
Originally Posted by Kal
i do have ships... - admin tools
using the js i moved 33 ships of each of my 3 types to fleet alpha
using the standard interface i moved 33 of my 3 types to beta
|
So the JS decided to do as it was told this time ? Damn, I need to learn how to write those AI fleetmovement scripts ^^
__________________
Of all the things I've lost I miss my mind the most
-Elysium Officer
[1up] Senior MO
Retired
|
|
|
27 Jul 2005, 03:54
|
#21
|
Commodore
Join Date: Mar 2001
Location: Perth, Western Australia
Posts: 3,176
|
Re: You specified an invalid number of ships.???
strange. my JS is only letting me move one type at a time - though i can move multiple in the old skool pulldown menus that i prefer.
heh.
__________________
#Strategy ; #Support - Sovereign
--- --- ---
"The Cake is a Lie."
|
|
|
27 Jul 2005, 04:08
|
#22
|
Retired
Join Date: Dec 2000
Location: Rogaland, Norway
Posts: 642
|
Re: You specified an invalid number of ships.???
Quote:
Originally Posted by Ultimate Newbie
strange. my JS is only letting me move one type at a time .
|
The JS is obviouslt recognizing Kal as an admin, and decides to play nice to avoid deletion/modification.
__________________
Of all the things I've lost I miss my mind the most
-Elysium Officer
[1up] Senior MO
Retired
|
|
|
27 Jul 2005, 04:29
|
#23
|
Aria's TeddyBear :p
Join Date: Apr 2002
Location: Rhode Island, USA
Posts: 516
|
Re: You specified an invalid number of ships.???
Quote:
Originally Posted by TheRat
The JS is obviouslt recognizing Kal as an admin, and decides to play nice to avoid deletion/modification.
|
lol
thats just amazing
__________________
Proud to be have been Fyre, NewDawn, NoS - The Illuminati, [ 1u p]
R3 [Acid] peon
R4 - R7 [Fyre] HC
R7 - R8 [ND] HC
R8 - R13 [NoS] MC
R14 - R16 [ 1u p] MO
R17 Retired
|
|
|
27 Jul 2005, 07:01
|
#24
|
Registered User
Join Date: Mar 2002
Location: Oslo,Norway
Posts: 215
|
Re: You specified an invalid number of ships.???
Doesn't work for me either. just noticed it today. and it annoyed the hell outa me.
__________________
R2-R3 : n00b
R4 : HR BC
R5-R6 : HR Techie
R7-R11 : HR HC / NoS Head Techie / NoS WC
R12 : Retired <- GF gives ultimatum. PA or Her.
R13 : HR Peon -> BC -> MC (GC of Winning Gal)
R14 : HR HC
R15 : Retired <- GF dumps me cuz of PA.
R16 : HR Peon
R19 : Omen BC
R20-R30 : Retired
R31 : HR Peon
Someone give me a dictionary.
Cuz I don't seem to know what retired means. =/
|
|
|
27 Jul 2005, 09:46
|
#25
|
'cause sex isn't enough
Join Date: Sep 2004
Posts: 115
|
Re: You specified an invalid number of ships.???
You only noticed it today, so basically you dont ever use it really, but still it annoys the hell out of you?
|
|
|
27 Jul 2005, 10:57
|
#26
|
Commodore
Join Date: Mar 2001
Location: Perth, Western Australia
Posts: 3,176
|
Re: You specified an invalid number of ships.???
Quote:
Originally Posted by Supersander
You only noticed it today, so basically you dont ever use it really, but still it annoys the hell out of you?
|
The problem has only arisen in the last day or two mate SOME people arent superhuman like us, you know .
__________________
#Strategy ; #Support - Sovereign
--- --- ---
"The Cake is a Lie."
|
|
|
27 Jul 2005, 11:35
|
#27
|
;D!
Join Date: Nov 2004
Posts: 1,810
|
Re: You specified an invalid number of ships.???
Quote:
Originally Posted by Ultimate Newbie
strange. my JS is only letting me move one type at a time - though i can move multiple in the old skool pulldown menus that i prefer.
heh.
|
I thought everyone used those old skool pullown menus.
The clicky green stuff makes me panic.
|
|
|
27 Jul 2005, 11:54
|
#28
|
part time ghost
Join Date: May 2000
Location: Grimsby
Posts: 925
|
Re: You specified an invalid number of ships.???
I loved the new fleet system, last round. Now it's just crap
__________________
Is this the real life?
Is this just fantasy?
|
|
|
27 Jul 2005, 15:33
|
#29
|
-Back Again-
Join Date: Feb 2001
Location: Hitchin, Hertfordshire
Posts: 707
|
Re: You specified an invalid number of ships.???
Quote:
Originally Posted by Neferti
I loved the new fleet system, last round. Now it's just crap
|
Sorry, I've been away moving into my new flat and have no internet.
|
|
|
27 Jul 2005, 16:28
|
#30
|
The Original Terran
Join Date: May 2003
Location: Afghan atm
Posts: 1,633
|
Re: You specified an invalid number of ships.???
Quote:
Originally Posted by Kloopy
Sorry, I've been away moving into my new flat and have no internet.
|
come back and fix everything please :/
__________________
introduction-Gramma
The following is a list of problems found in various places throughout the manual and game. We love you Noah!
Written by Kloopy Wed Mar 16 22:06:43 2005
Retired just for a bit....
Proud to have been 1up, SiN, Wolfpack, Bluetuba and the leader of ARK.
|
|
|
27 Jul 2005, 18:39
|
#31
|
Inactive peon
Join Date: Jan 2003
Posts: 6,050
|
Re: You specified an invalid number of ships.???
someone write down EXACTLY what they are doing that means it only lets them do one movement
are people queing multiple movmenets and then ignoring the extra ones or what?
i click on the number of ships to intiiate my moves and that worked fine.
|
|
|
27 Jul 2005, 18:47
|
#32
|
[F-crew] member
Join Date: Apr 2005
Location: atm - Kansas City
Posts: 80
|
Re: You specified an invalid number of ships.???
ok, try this Kal:
You are a Xan no doubt...You see your fleet composition if your base??? all the green numbers??? well if you click on one of the numbers, and click ALL and move it to what would have been your Alpha fleet. THEN you click ANOTHER number in your base fleet and move it to what would have been your Alpha fleet, it REPLACES the old movement that WOULD have happened.
Now, if you used the system last round, it would have pasted the movement BELOW the one you just created, instead it replaces it. So, you CANNOT queue up 2-3 (or for some poor Zik) up to about 8 movements at once was what I was doing back in R13.
Does that explain it?
__________________
[F-Crew] - you know when you have been [FC]ucked
I want what is rightfully MINE . I have much, but need MUCH MORE !!!
R13 - [F-CREW]
R14 - [F-CREW]
|
|
|
27 Jul 2005, 18:56
|
#33
|
Inactive peon
Join Date: Jan 2003
Posts: 6,050
|
Re: You specified an invalid number of ships.???
i'm cath actually
i'll give it another try, but i;m convinced it worked fine for me yesterday
don;lt suppose the people with problems are using a non-ie browser or something like that?
|
|
|
27 Jul 2005, 18:59
|
#34
|
Inactive peon
Join Date: Jan 2003
Posts: 6,050
|
Re: You specified an invalid number of ships.???
ahah, so its a problem specific to all again
ok i'll get pishy to have a look
|
|
|
27 Jul 2005, 19:40
|
#35
|
part time ghost
Join Date: May 2000
Location: Grimsby
Posts: 925
|
Re: You specified an invalid number of ships.???
I use Firefox. But I think web stuff shouldnt just be coded for IE. Especially as IE's dominance is slowly decreasing...
__________________
Is this the real life?
Is this just fantasy?
|
|
|
27 Jul 2005, 20:20
|
#36
|
Inactive peon
Join Date: Jan 2003
Posts: 6,050
|
Re: You specified an invalid number of ships.???
i agree, i was just trying to find out if its browser specifc, but i've managed to reproduce it on ie now
|
|
|
27 Jul 2005, 21:33
|
#37
|
CRASHING BEATS 'N FANTASY
Join Date: Mar 2001
Location: Cold Country.
Posts: 1,912
|
Re: You specified an invalid number of ships.???
It did actually work fine for me with Firefox.
But then again I only tried if I could stack ship orders at all. I did not try to move all ships.
__________________
Ià! Ià! Munin F'tagn! - [*scendancy]
|
|
|
28 Jul 2005, 00:11
|
#38
|
part time ghost
Join Date: May 2000
Location: Grimsby
Posts: 925
|
Re: You specified an invalid number of ships.???
Oh you can stack orders. Just not ones involving 'all'.
__________________
Is this the real life?
Is this just fantasy?
|
|
|
28 Jul 2005, 01:32
|
#39
|
CRASHING BEATS 'N FANTASY
Join Date: Mar 2001
Location: Cold Country.
Posts: 1,912
|
Re: You specified an invalid number of ships.???
Quote:
Originally Posted by Neferti
Oh you can stack orders. Just not ones involving 'all'.
|
Even those worked for me in Firefox.
__________________
Ià! Ià! Munin F'tagn! - [*scendancy]
|
|
|
28 Jul 2005, 10:46
|
#40
|
part time ghost
Join Date: May 2000
Location: Grimsby
Posts: 925
|
Re: You specified an invalid number of ships.???
Maybe they fixed it, not had to try it for a couple of days...
__________________
Is this the real life?
Is this just fantasy?
|
|
|
28 Jul 2005, 15:07
|
#41
|
[F-crew] member
Join Date: Apr 2005
Location: atm - Kansas City
Posts: 80
|
Re: You specified an invalid number of ships.???
I tried about 12 hours ago, no luck there, not sure this morning since I have no fleets to work with yet.
__________________
[F-Crew] - you know when you have been [FC]ucked
I want what is rightfully MINE . I have much, but need MUCH MORE !!!
R13 - [F-CREW]
R14 - [F-CREW]
|
|
|
29 Jul 2005, 15:55
|
#42
|
[F-crew] member
Join Date: Apr 2005
Location: atm - Kansas City
Posts: 80
|
Re: You specified an invalid number of ships.???
still no good guyz, I am using Firefox v1.0.6, does that matter any???
__________________
[F-Crew] - you know when you have been [FC]ucked
I want what is rightfully MINE . I have much, but need MUCH MORE !!!
R13 - [F-CREW]
R14 - [F-CREW]
|
|
|
30 Jul 2005, 00:05
|
#43
|
Commodore
Join Date: Mar 2001
Location: Perth, Western Australia
Posts: 3,176
|
Re: You specified an invalid number of ships.???
Quote:
Originally Posted by kamikaze69
still no good guyz, I am using Firefox v1.0.6, does that matter any???
|
i'm pretty sure the browser has nothing to do with it...
__________________
#Strategy ; #Support - Sovereign
--- --- ---
"The Cake is a Lie."
|
|
|
30 Jul 2005, 01:01
|
#44
|
[F-crew] member
Join Date: Apr 2005
Location: atm - Kansas City
Posts: 80
|
Re: You specified an invalid number of ships.???
sometimes it does matter. On a Java designed website 'Buttons' don't work on Firefox...we have this issue with our network in my workplace, but that's off topic, lets fix this issue.
__________________
[F-Crew] - you know when you have been [FC]ucked
I want what is rightfully MINE . I have much, but need MUCH MORE !!!
R13 - [F-CREW]
R14 - [F-CREW]
|
|
|
30 Jul 2005, 01:51
|
#45
|
CRASHING BEATS 'N FANTASY
Join Date: Mar 2001
Location: Cold Country.
Posts: 1,912
|
Re: You specified an invalid number of ships.???
I stumbled across your problem once, it happens in one very specific case only, though.
Too bad it happened when I was pretty tired, trying to reproduce it atm.
EDIT:
Just managed to reproduce it, might even fix the JS myself and send in a fix :P
Steps to reproduce (assuming you are already on the fleets page):
1) Click on a shipname, for example "Beetle". Select the "From" fleet, then select "all" and select the "To" fleet. This will add the movement order as expected.
2) Now click on a different shipname, for example "Viper". Select the "From" fleet, then select "all" again, then select the "To" fleet. This will not add a new movement order but replace the existing one.
The "from" and "to" fleets in your movement orders do not have to be identical, it will overwrite the existing movement order whenever you got select to move "all" of a specific type.
__________________
Ià! Ià! Munin F'tagn! - [*scendancy]
|
|
|
30 Jul 2005, 10:18
|
#46
|
part time ghost
Join Date: May 2000
Location: Grimsby
Posts: 925
|
Re: You specified an invalid number of ships.???
Yes Heartless, now you see the problem. I hadnt come across it in a few days as I hadnt needed to use the move all commands like that, but I did last night and it's still there
__________________
Is this the real life?
Is this just fantasy?
|
|
|
|
All times are GMT +1. The time now is 15:18.
| |