PiBoSo Official Forum

GP Bikes => Bug Reports => Topic started by: HornetMaX on June 22, 2014, 09:00:20 PM

Title: Bug in servers page ?
Post by: HornetMaX on June 22, 2014, 09:00:20 PM
Hi,

I noticed that I can join a beta5 online server from the GPB servers page (http://stats.gp-bikes.com/servers.php (http://stats.gp-bikes.com/servers.php)), but only with Firefox. Chrome and IE do not work.
Chrome, and it is indeed launching the core.exe, but core.exe exits immediately.

I've noticed that if in Firefox I right click on the "Join" line of a server and then paste the text in an editor I get this:

gpbikes://217.92.97.79:24189/192.168.95.59:24189/Track%2019/0/Victoria//GP1000/GP125/GP125%20Cup/GP500


If I do the same from Chrome and IE, I get this:

gpbikes://217.92.97.79:24189/192.168.95.59:24189/Track 19/0/Victoria//GP1000/GP125/GP125 Cup/GP500


Maybe that explains why it doesn't work with Chrome and IE.

MaX.
Title: Re: Bug in servers page ?
Post by: Stout Johnson on June 22, 2014, 09:50:11 PM
For me it does not work with FF either. If I click on "join" there comes a message from firefox (which I cannot translate 1:1) but it says something to the extent of "Adress not detected. Firefox does not know how to open the adress as it is not a registered protocoll..."
Title: Re: Bug in servers page ?
Post by: HornetMaX on June 22, 2014, 09:52:38 PM
Reinstall GPB and allow it to register the protocol (check the case when the installer asks).

MaX.
Title: Re: Bug in servers page ?
Post by: Warlock on June 22, 2014, 10:01:42 PM
For me, with FF launches the game, but nothing more, just opens the game
Title: Re: Bug in servers page ?
Post by: Ian on June 22, 2014, 10:03:58 PM
Have you tried starting the game leave it running drop back to windows then click the server link
Title: Re: Bug in servers page ?
Post by: Warlock on June 22, 2014, 10:08:25 PM
That only launches the game twice , i mean it launches a new instance of the game
Title: Re: Bug in servers page ?
Post by: Ian on June 22, 2014, 10:14:16 PM
Yes sorry I see what you mean I had not noticed 2 games running
The track % is wrong it was 2019 the last time I connected
Title: Re: Bug in servers page ?
Post by: Warlock on June 22, 2014, 10:16:30 PM
np, thanks for trying to help
Title: Re: Bug in servers page ?
Post by: HornetMaX on June 22, 2014, 10:32:43 PM
The %20 you see is show a space character is translated in +URLs. There's something broken somewhere around that ...

@Warlock: go on the server page with FireFox and right click on the "Join" and in the popup menu select "Copy link address", then paste (ctrl-v) it here: what do you have ?

MaX.
Title: Re: Bug in servers page ?
Post by: Warlock on June 22, 2014, 10:41:03 PM
I've fixed it. Im online now
I checked the box to remember to launch with core.exe. Then go to FF options/applications and change it from 'core.exe' to use 'c/program files etc ..connect 1%'

thx for help  ;)
Title: Re: Bug in servers page ?
Post by: guigui404 on June 23, 2014, 07:35:52 AM
there no problem hornet the %20 represent a space in some navigator so it's the same link ;)
Title: Re: Bug in servers page ?
Post by: guigui404 on June 23, 2014, 07:37:14 AM
And me i can't join and i've windows 8 & yesterday Alibaskins had the same problem and he has windows 8 too , so it's maybe the same problem for some of you :) !
Title: Re: Bug in servers page ?
Post by: HornetMaX on June 23, 2014, 08:43:28 AM
Quote from: guigui404 on June 23, 2014, 07:35:52 AM
there no problem hornet the %20 represent a space in some navigator so it's the same link ;)
There's definitely a problem as with Firefox it works and with Chrome/IE no (GPB starts and exits immediately).
The %20 in the urls is normal, but they way it is passed from the browser to the core.exe seems to be different depending on the browser, hence the problem.

MaX.
Title: Re: Bug in servers page ?
Post by: guigui404 on June 23, 2014, 08:45:41 AM
new problem this morning link delete first letter of the track ;)

gpbikes://90.17.116.141:20510/192.168.1.12:20510/guigui try/0/ictoria//Open

No V on victoria and same for all other server
Title: Re: Bug in servers page ?
Post by: Hawk on June 23, 2014, 12:37:42 PM
Quote from: HornetMaX on June 23, 2014, 08:43:28 AM
Quote from: guigui404 on June 23, 2014, 07:35:52 AM
there no problem hornet the %20 represent a space in some navigator so it's the same link ;)
There's definitely a problem as with Firefox it works and with Chrome/IE no (GPB starts and exits immediately).
The %20 in the urls is normal, but they way it is passed from the browser to the core.exe seems to be different depending on the browser, hence the problem.

MaX.

Yes. this is bad link address and file naming practice. Link addresses should always be created without spaces, same for file names when programming. If you require a separator in a filename or link address it should always be represented by an underscore "my_link_address", or "my_file_name", or as a compromise, "MyFileName", otherwise a "%" will be placed in the address which are not always recognised.

Hawk.
Title: Re: Bug in servers page ?
Post by: guigui404 on June 23, 2014, 12:40:44 PM
normaly it's recognyse by chrome or firefox , for explorer don't know ...
Title: Re: Bug in servers page ?
Post by: Hawk on June 23, 2014, 12:49:54 PM
Quote from: guigui404 on June 23, 2014, 12:40:44 PM
normaly it's recognyse by chrome or firefox , for explorer don't know ...

Agreed.  ;)

IE is the browser that seems to be the lame duck as far as keeping it's code up to date especially lacking in keeping up to date with the latest elements of HTML5 and procedures... Very poor.  ::)

Hawk.
Title: Re: Bug in servers page ?
Post by: guigui404 on June 23, 2014, 12:52:25 PM
Yes for programmation that's out of date , it's always the bad part to adapt a code just FOR THIS POOR navigator
Title: Re: Bug in servers page ?
Post by: HornetMaX on June 23, 2014, 01:27:56 PM
Quote from: Hawk_UK on June 23, 2014, 12:37:42 PM
Yes. this is bad link address and file naming practice. Link addresses should always be created without spaces, same for file names when programming. If you require a separator in a filename or link address it should always be represented by an underscore "my_link_address", or "my_file_name", or as a compromise, "MyFileName", otherwise a "%" will be placed in the address which are not always recognised.
That's not entirely true. Not using spaces at all is the lazy approach. But you can have spaces essentially everywhere (including in URLs), you just have to follow the guidelines for allowing these to be passed along properly.

E.g. : blabla.exe -c yuppie -f "yuppie doo.txt"

For URLs, the spaces are replaced by %20.

MaX.
Title: Re: Bug in servers page ?
Post by: guigui404 on June 23, 2014, 01:30:40 PM
Quote from: HornetMaX on June 23, 2014, 01:27:56 PM

For URLs, the spaces are replaced by %20.

MaX.

Quote from: guigui404 on June 23, 2014, 07:35:52 AM
there no problem hornet the %20 represent a space in some navigator so it's the same link ;)

I has already explain that :p
Title: Re: Bug in servers page ?
Post by: Hawk on June 23, 2014, 05:28:39 PM
Quote from: HornetMaX on June 23, 2014, 01:27:56 PM
Quote from: Hawk_UK on June 23, 2014, 12:37:42 PM
Yes. this is bad link address and file naming practice. Link addresses should always be created without spaces, same for file names when programming. If you require a separator in a filename or link address it should always be represented by an underscore "my_link_address", or "my_file_name", or as a compromise, "MyFileName", otherwise a "%" will be placed in the address which are not always recognised.
That's not entirely true. Not using spaces at all is the lazy approach. But you can have spaces essentially everywhere (including in URLs), you just have to follow the guidelines for allowing these to be passed along properly.

E.g. : blabla.exe -c yuppie -f "yuppie doo.txt"

For URLs, the spaces are replaced by %20.

MaX.

I admit not using spaces at all is a lazy approach but I did state that was a compromise(To qualify it this time - "for the lazy people").  :P

Yes, you can have spaces anywhere you like, I didn't say you cannot....  but it is considered bad practice to include a literal space in address names/links and files names. So I state again that good practice is to use a separator in these cases, not a literal space.  This will avoid the "%20" appearing in these names.

I hope I've expressed it better this time. :P  ;) ;D

Hawk.
Title: Re: Bug in servers page ?
Post by: guigui404 on June 23, 2014, 05:55:37 PM
hawk have true , when we learn to programm all website say , the best is to not put space but underscore  , a point , or nothing ;)
Title: Re: Bug in servers page ?
Post by: HornetMaX on June 23, 2014, 07:22:09 PM
Ach you old school people ... if it was for you we'd still be in 8.3 file naming  :P

MaX.
Title: Re: Bug in servers page ?
Post by: guigui404 on June 23, 2014, 07:37:52 PM
Quote from: HornetMaX on June 23, 2014, 07:22:09 PM
Ach you old school people ... if it was for you we'd still be in 8.3 file naming  :P

MaX.
don't understand all what u say , please explain me the :p let me think that it's funny
Title: Re: Bug in servers page ?
Post by: HornetMaX on June 23, 2014, 07:39:37 PM
Next time I cross you on a server or on the french forum, so that I can do it in french :)

MaX.
Title: Re: Bug in servers page ?
Post by: guigui404 on June 23, 2014, 07:44:56 PM
Oh ok the pizza baguette men :)
Title: Re: Bug in servers page ?
Post by: Hawk on June 23, 2014, 07:47:18 PM
Quote from: HornetMaX on June 23, 2014, 07:22:09 PM
Ach you old school people ... if it was for you we'd still be in 8.3 file naming  :P

MaX.

Lol. "Old School" and proud of it Max! Hehe   :P ;D 8)

Hawk.