Author Topic: Join servers quicker.  (Read 4619 times)

0 Members and 1 Guest are viewing this topic.

Offline |_ancer

  • Soldier
  • **
  • Posts: 153
  • again and again.
Join servers quicker.
« on: September 17, 2009, 02:58:37 am »
If a server IP was xxx.xxx.xxx.xx : xxxxx and if you copy and paste into the IP section it'll automatically put the port number in the port and delete the ':'. If there is a password it'll have // after the port and automatically put into the password box.
« Last Edit: September 18, 2009, 12:39:46 am by |_ancer »

Offline scarface09

  • Veteran
  • *****
  • Posts: 1153
  • Arsenal Supporter For Life
Re: Join servers quicker.
« Reply #1 on: September 22, 2009, 02:29:07 am »
Soldat isn't that high tech programmed so I doubt it will be ever able to do that.
Football is the other face of the world. If you don't like it, then you can get the hell out!

Offline Shoozza

  • Retired Soldat Developer
  • Veteran
  • ******
  • Posts: 1632
  • Soldat's Babysitter
    • Website
Re: Join servers quicker.
« Reply #2 on: September 22, 2009, 02:13:57 pm »
Idea sounds good.
I had to copy & paste it a few times already and it's just a waste of time.
The implementation isn't that difficult I guess just a bit string checking and copying.
ARSSE does this all the time.
Rules
Tools: ARSSE - SARS - SRB - chatMod

Offline Xxypher

  • Veteran
  • *****
  • Posts: 1319
  • Soldat Veteran.
Re: Join servers quicker.
« Reply #3 on: September 22, 2009, 02:17:57 pm »
I was going to say... This is an easy string check. I agree, F12.

Offline Shoozza

  • Retired Soldat Developer
  • Veteran
  • ******
  • Posts: 1632
  • Soldat's Babysitter
    • Website
Re: Join servers quicker.
« Reply #4 on: September 22, 2009, 04:36:39 pm »
I made a simple demo app for this feature.

Is this how you want it?
Is there anything which doesn't work like expected?

Hope you like it.

EDIT Updated the exe file

Changelog for v1.1:

Added support for 'soldat://' links (you can paste links from rr.soldat.pl!)
Added detection for broken links (e.g. oldat:// instead of soldat://)
Modified structure is now compatible with the one from Soldat links: ip:port/pass (not ip:port//pass anymore)
Fixed made it not replace port and/or pass when not given (example 'ip:/' will not clear port and pass)
Fixed doesn't add '/' to port when paste looks like 'ip:port/'

Funny stuff which works now:
':123' set port to 123
':/passw' set password to passw (but read the restrictions!)

Restrictions:
The feature only works when pasting with ctrl+v.
It doesn't work when you use the context menu to paste.
If you are pasting passwords and they contain dots (.) and you don't add an ip or if your password contains 'localhost' without an ip it will misinterpret it as the ip. This is because it tries to find the ip if the link is only pasted partially (e.g. dat://ip:port/pass).

But normal pasting should work.

If you find bugs tell me before it gets added to Soldat :P


EDIT2 Updated the exe file once again
Changelog for v1.2:

Added support for menu->paste
Modified ctrl+v paste code to work with all sorts of pasting
Fixed Window can be maximized and resized
Fixed Wrong version information
Fixed cursor position set to first char but it should be last char

Please report all kind of bugs you find in version 1.2.
If you can't find bugs and I don't notice any the code gets sent to MM to be added to Soldat.

EDIT3 Updated the exe file to filter out none number chars for the port
Changelog for v1.3:

Added Port edit only gets assigned numbers
Modified copy Editfield to include non number chars for testing
Modfied size of copy edit so that the whole text can be read
Modified howto text to be more general about pasting text (not limited to ctrl+v)
Modified size of window so that howto text can be read

EDIT4 Updated the exe file to accept ;:/\|<> as splitting chars for the password
Changelog for v1.4:

Added ;:/\|<> as splitting chars for the password
Modified Copy text to for easy testing
« Last Edit: October 03, 2009, 04:46:45 pm by Shoozza »
Rules
Tools: ARSSE - SARS - SRB - chatMod

Offline scarface09

  • Veteran
  • *****
  • Posts: 1153
  • Arsenal Supporter For Life
Re: Join servers quicker.
« Reply #5 on: September 22, 2009, 08:46:47 pm »
Sounds great Shoozza, glad to see people working on this game!
Football is the other face of the world. If you don't like it, then you can get the hell out!

Offline |_ancer

  • Soldier
  • **
  • Posts: 153
  • again and again.
Re: Join servers quicker.
« Reply #6 on: September 23, 2009, 04:34:47 am »
Shoozza, that is exactly what I meant.

Offline Illuminatus

  • Camper
  • ***
  • Posts: 442
  • ...soldat-freak since 2004...
Re: Join servers quicker.
« Reply #7 on: September 23, 2009, 09:34:18 am »
If you find bugs tell me before it gets added to Soldat :P

will u send ur code to enesce?
No difference between man and mouse - both end up in pussy.

Offline Shoozza

  • Retired Soldat Developer
  • Veteran
  • ******
  • Posts: 1632
  • Soldat's Babysitter
    • Website
Re: Join servers quicker.
« Reply #8 on: September 23, 2009, 11:58:46 am »
Shoozza, that is exactly what I meant.
You downloaded the 1.1 version? Because I changed some stuff in the updated version.

If you find bugs tell me before it gets added to Soldat :P

will u send ur code to enesce?
No, I will send it to MM.
Rules
Tools: ARSSE - SARS - SRB - chatMod

Offline Xxypher

  • Veteran
  • *****
  • Posts: 1319
  • Soldat Veteran.
Re: Join servers quicker.
« Reply #9 on: September 23, 2009, 12:40:46 pm »
You need to make this work for pasting with right-click.

Offline L[0ne]R

  • Soldat Beta Team
  • Rainbow Warrior
  • ******
  • Posts: 2079
  • need a life. looking for donors.
Re: Join servers quicker.
« Reply #10 on: September 29, 2009, 06:26:31 pm »
Yeah, copy/pasting IP&port the way it is now is a pain. Personally, I don't do it that often so it's not a big deal for me. But for those who do - it's a great improvement.
Perhaps there isn't even a need for separate windows for IP and port? Why not just combine those two instead?

Offline Shoozza

  • Retired Soldat Developer
  • Veteran
  • ******
  • Posts: 1632
  • Soldat's Babysitter
    • Website
Re: Join servers quicker.
« Reply #11 on: September 30, 2009, 03:31:05 am »
Yeah, copy/pasting IP&port the way it is now is a pain. Personally, I don't do it that often so it's not a big deal for me. But for those who do - it's a great improvement.
Perhaps there isn't even a need for separate windows for IP and port? Why not just combine those two instead?
I don't think that is a good idea because most people are used to the ip port fields.
If they are missing they will start asking where to put the port.

Btw I updated the test app to version 1.2 (see my second post for more details)
Rules
Tools: ARSSE - SARS - SRB - chatMod

Offline EnEsCe

  • Retired Soldat Developer
  • Flamebow Warrior
  • ******
  • Posts: 3101
  • http://enesce.com/
    • [eC] Official Website
Re: Join servers quicker.
« Reply #12 on: September 30, 2009, 11:15:50 am »
This is already a feature I added to Soldat 1.5.1.

Offline blackdevil0742

  • Veteran
  • *****
  • Posts: 1061
  • Don't Panic
Re: Join servers quicker.
« Reply #13 on: September 30, 2009, 02:49:08 pm »
yeah...already

OBEY!!!

Offline Shoozza

  • Retired Soldat Developer
  • Veteran
  • ******
  • Posts: 1632
  • Soldat's Babysitter
    • Website
Re: Join servers quicker.
« Reply #14 on: September 30, 2009, 03:16:44 pm »
This is already a feature I added to Soldat 1.5.1.
Sounds good.

Once the beta is out I'll try it (if I don't get a chance to test it earlier).

I hope you added as many checks as I did.
If some are missing I could offer you to use my code to extend yours.
Then at least my work wasn't unnecessary.

Looking forward to this.

Btw I added another file version which only copies numbers to the IP Editfield.
« Last Edit: September 30, 2009, 04:54:47 pm by Shoozza »
Rules
Tools: ARSSE - SARS - SRB - chatMod

Offline Xxypher

  • Veteran
  • *****
  • Posts: 1319
  • Soldat Veteran.
Re: Join servers quicker.
« Reply #15 on: October 02, 2009, 11:56:01 pm »
Make it so if there are slightly different symbols in between the ports and passwords that it will still paste right. It would only take a similar code, but just have it check for more strings.

Offline Shoozza

  • Retired Soldat Developer
  • Veteran
  • ******
  • Posts: 1632
  • Soldat's Babysitter
    • Website
Re: Join servers quicker.
« Reply #16 on: October 03, 2009, 10:11:19 am »
Which kind of symbols? Currently it just looks for a slash / and everything after the slash is the pass.
Rules
Tools: ARSSE - SARS - SRB - chatMod

Offline Xxypher

  • Veteran
  • *****
  • Posts: 1319
  • Soldat Veteran.
Re: Join servers quicker.
« Reply #17 on: October 03, 2009, 10:30:26 am »
Yeah, make it look for things like ; : | / \ - < > ( )
Stuff like that. Not everything is going to be typed or copied and pasted right.

Offline Shoozza

  • Retired Soldat Developer
  • Veteran
  • ******
  • Posts: 1632
  • Soldat's Babysitter
    • Website
Re: Join servers quicker.
« Reply #18 on: October 03, 2009, 03:36:06 pm »
I'll take a look.
But that must be a very weird paste ;)

Ok updated the exe version 1.4 is the latest one (see my 2nd post)
« Last Edit: October 03, 2009, 05:01:40 pm by Shoozza »
Rules
Tools: ARSSE - SARS - SRB - chatMod