Convoy Trucking

Hyde Park => GTA & SA-MP => Topic started by: nyolc8 on April 04, 2015, 11:04

Title: [Test DL 0.9.5581.29028] Convoy Trucking Launcher
Post by: nyolc8 on April 04, 2015, 11:04
Newer test version(0.9.5581.29028): http://speedy.sh/Z9TQX/Convoy-Trucking-Launcher-by-nyolc8.zip (http://speedy.sh/Z9TQX/Convoy-Trucking-Launcher-by-nyolc8.zip)

NEW THINGS:
- exe is only 780Kb instead of 1,38Mb (with two languages implemented)
+ all new things I wrote before

KNOWN PROBLEMS:
- playerlist sometimes empty even when there are players on server, still don't really know what happening then

(image is from older version)
(http://i.imgur.com/qyXwAdx.jpg)

Please tell me all bugs what you found (both UI and usage bugs), also suggestions are welcome.

***

Hi guys (especially staff), can I ask how the server stats (player list and server online/offline) getting read? Is it totally private solution? Or there is a service for that? I found a service which can list all servers and it can receive stats from CT server too but that service looks like running under another server*.

*the site:

[spoiler]http://monitor.sacnr.com/ (http://monitor.sacnr.com/) (I hope this won't count as ad)[/spoiler]
Title: Re: Convoy Trucking Launcher
Post by: CarlJohnson on April 04, 2015, 11:15
Just wanna say my part, this is not the only site who does this, in fact there are many sites like this monitoring out servers.
Title: Re: Convoy Trucking Launcher
Post by: Dobby on April 04, 2015, 13:46
Player list is an API from the SAMP forums (PHP based) unless its different (i hope its not). Stats is via the database, as is chat, uptime and the staff list.
Title: Re: Convoy Trucking Launcher
Post by: nyolc8 on April 04, 2015, 16:32
I'm working on a CT launcher application (c#), it reads your samp name from registry(you can edit it too in the app), also the server addres changable(if it changes on server side, then you can set the new one, this getting saved into registry too, but I'm thinking a solution which would auto-aquire the ip and use that to connect), it shows server online/offline (made this with that api what I linked), and shows how many players online and what is the max slots available (api what I linked). Also working on the playerlist. But I would use another api instead of what I linked, If I could. I'll show some screenshots.
Title: Re: Convoy Trucking Launcher
Post by: Joshy on April 04, 2015, 16:39
http://api.convoytrucking.net/

PM me if you want a API key (I'll have to PM mick on your behalf).
Title: Re: Convoy Trucking Launcher
Post by: nyolc8 on April 04, 2015, 20:16
The server_info part would be really useful, I would like a key if it's possible :)
Btw the returned data is in JSON format? (edit: I'm blind, the first sentence says it's JSON... lol)

I would use these btw:
- server_ip(then the launcher could connect to current ip always, and user would not have to change anything even if the domain - server.convoytrucking.net:7777 - address changes for a reason)
- num_players
- server_status
- num_slots

As I see, there is no api for current online player list, right?

Some screenshots how it looks like now:
[spoiler]
[imgur]http://imgur.com/a/p8uEw#0[/imgur]

some notes:
online/offline thing and player numbers working, also the launcher itself, and the settings window is fully functional

it scales with DPI so it's a little bigger on screenshots (125%) than real size
the two little "things" are buttons for settings and to open playerlist, those will have a "gear" icon and a "person" icon[/spoiler]

edit: I already changed the online/offline state check and player numbers to use CT api (with public key for now)
Title: Re: Convoy Trucking Launcher
Post by: Ethan on April 04, 2015, 21:47
im sorry if this is "off topic" to this thread but Nyolc8, what would this be for exactly? a offline messenger?
Title: Re: Convoy Trucking Launcher
Post by: nyolc8 on April 04, 2015, 23:17
You can start this instead of SAMP launcher if you want to play on CT.

player list mechanism done:

(http://i.imgur.com/KzqKx4m.png)
(design-wise it's wip)
Title: Re: Convoy Trucking Launcher
Post by: Joshy on April 05, 2015, 00:48
I see you're using Windows Forms (uses the MS Sans Serif font), change the font to Segoe UI for a more modern look that WPF gives.
Title: Re: Convoy Trucking Launcher
Post by: nyolc8 on April 05, 2015, 01:38
I will, also I want to make listview header black, but for some reason the text gets glitched then.

Anyway, current state:
- CT API used only at application launch and only used to get current server address/ip (to spare CT API resource)
- using SAMP Query mechanism to get players, locked state, online state, player list (http://wiki.sa-mp.com/wiki/Query_Mechanism (http://wiki.sa-mp.com/wiki/Query_Mechanism))
- stats getting refreshed in every 10 seconds

[imgur]http://imgur.com/a/6uV6Y#0[/imgur]
Title: Re: Convoy Trucking Launcher
Post by: Ethan on April 05, 2015, 02:21
awesome idea Nyolc...I wish I could find my Chatlog renamer I got from Joshy years ago. would work great with this..
Title: Re: Convoy Trucking Launcher
Post by: nyolc8 on April 05, 2015, 12:17
Chatlog renamer? What is that? I mean, what did it do?

btw some UI change:
(http://i.imgur.com/So5uEVP.png)
Title: Re: Convoy Trucking Launcher
Post by: TheSandman on April 05, 2015, 12:29
Quote from: nyolc8 on April 05, 2015, 12:17
Chatlog renamer? What is that? I mean, what did it do?

btw some UI change:
(http://i.imgur.com/So5uEVP.png)
everytime you exited a server, it would rename and save the chatlog.txt that samp makes everytime you open it.
Title: Re: Convoy Trucking Launcher
Post by: Ethan on April 05, 2015, 14:28
Quote from: TheSandman on April 05, 2015, 12:29
everytime you exited a server, it would rename and save the chatlog.txt that samp makes everytime you open it.
you end SAMP, close the cmd type dialog box, and renames the chatlog in SAMP in user files to the time you ended the renamer thing...

I load it up, I close it at 3:30, chatlog then gets renamed [month][day][year[time chatlog ended]... I have one but I reinstall windows so when I run it, it says "cannot find directory" renames it but because the directory is different than what it was before, it doesnt work and I have to rename them manually..
Title: Re: Convoy Trucking Launcher
Post by: TheSandman on April 05, 2015, 14:47
Quote from: Ethan on April 05, 2015, 14:28
Quote from: TheSandman on April 05, 2015, 12:29
everytime you exited a server, it would rename and save the chatlog.txt that samp makes everytime you open it.
you end SAMP, close the cmd type dialog box, and renames the chatlog in SAMP in user files to the time you ended the renamer thing...

I load it up, I close it at 3:30, chatlog then gets renamed [month][day][year[time chatlog ended]... I have one but I reinstall windows so when I run it, it says "cannot find directory" renames it but because the directory is different than what it was before, it doesnt work and I have to rename them manually..
Ask joshy about it, i never used the program.
Title: Re: Convoy Trucking Launcher
Post by: nyolc8 on April 06, 2015, 02:02
UI nearly done, and everything works, but buggy at the moment...
(http://i.imgur.com/GW5t6Z4.png)
Title: Re: Convoy Trucking Launcher
Post by: Ethan on April 06, 2015, 02:09
Quote from: nyolc8 on April 06, 2015, 02:02
UI nearly done, and everything works, but buggy at the moment...
(http://i.imgur.com/GW5t6Z4.png)

you get a cookie my friend  :like: :like:
Title: Re: Convoy Trucking Launcher
Post by: nyolc8 on April 06, 2015, 22:08
thanks :D
Btw it works the same as stock samp launcher (exact same thing to get playerlist and server stats)

managed to fix some bugs:
- flickering list on update and on column resizing because of custom drawn listview component
- laggy animated window expand because of custom drawn listview component

I want to make scrollbar dark too (but have no idea how to do that). Any more feature suggestions?
Title: Re: Convoy Trucking Launcher
Post by: Ethan on April 07, 2015, 02:29
suggestion: make a chatbox to communicate between on server and when youre not on server... but I think you need alot more access to do that lol
Title: Re: Convoy Trucking Launcher
Post by: Matias on April 07, 2015, 02:33
What about send the user to the player profile at webpage when clicked on his name? You need to link a button to http://www.convoytrucking.net/panel.php?playername=
Title: Re: Convoy Trucking Launcher
Post by: nyolc8 on April 07, 2015, 10:24
Quote from: Ethan on April 07, 2015, 02:29
suggestion: make a chatbox to communicate between on server and when youre not on server... but I think you need alot more access to do that lol
I don't think that's possible. (but would be nice)

Quote from: Syd on April 07, 2015, 02:33
What about send the user to the player profile at webpage when clicked on his name? You need to link a button to http://www.convoytrucking.net/panel.php?playername=
Good idea, I'll (try to) make this.

***

I'm thinking I'll redo the application in WPF. I'm having many problems with the playerlist, and I read that in WPF it's much better. I hope the main code will be able to just copy-pasted into WPF and it will work. (but I never worked with WPF)


edit: I started to make the Ui in wpf and I hate it already... I just don't get it... why there is no easy method to style button states and stuff... Also there is a focus border around everything (not the dotted focus thing, but another focus related border) which I can't get rid of, tried everything... so... I'll keep the app in winforms.
Title: Re: Convoy Trucking Launcher
Post by: nyolc8 on April 07, 2015, 18:14
custom scrollbar (and totally new listview component, but that's not a visible change :D):

(the scroll handle gets brighter when you hover mouse over list or the scrollbar itself)
[imgur]http://imgur.com/a/Sx60f#0[/imgur]

edit:
Quote from: Syd on April 07, 2015, 02:33
What about send the user to the player profile at webpage when clicked on his name? You need to link a button to http://www.convoytrucking.net/panel.php?playername=
this works now

***
I'll make a topic in gtasa & samp section for this when I post next status info, because this is not a helping topic anymore.
Title: Re: Convoy Trucking Launcher
Post by: Emily on April 07, 2015, 19:52
could just move it for you.
Title: Re: Convoy Trucking Launcher
Post by: nyolc8 on April 07, 2015, 20:32
that would be nice if you do that, thanks :)

***

btw I don't remember, but... is SAMP working if it's not installed into gta sa folder? Can someone tell me this?
Title: Re: Convoy Trucking Launcher
Post by: Benny on April 07, 2015, 20:37
Quote from: nyolc8 on April 07, 2015, 20:32
btw I don't remember, but... is SAMP working if it's not installed into gta sa folder? Can someone tell me this?
I think not, as i remember in needs to be in the same folder as the exe.
Title: Re: Convoy Trucking Launcher
Post by: nyolc8 on April 07, 2015, 21:22
But then why gta_sa.exe location can be configured in samp launcher? >< :D This confusing me.
Anyway, I found a registry key where samp.exe file location stored by samp itself, so I read that and launch the game by that.

(And also you can change gta_sa.exe location in this application too, it will change the samp configuration itself.)
Title: Re: Convoy Trucking Launcher
Post by: nyolc8 on April 08, 2015, 17:43
It runs on my laptop without a single problem, but crashes on another computer at startup. Trying to find the problem for hours now, but have no idea what is it...
(http://new2.fjcdn.com/thumbnails/comments/Its+funny+i+posted+the+same+thing+2+3+months+ago+_ace83c12a38d0d44bbae89b4ff42ddaf.jpg)
Title: [Test Download 0.9] Convoy Trucking Launcher
Post by: nyolc8 on April 08, 2015, 20:13
Test version (0.9.5576.36116): http://speedy.sh/h2ent/Convoy-Trucking-Launcher-by-nyolc8.zip (http://speedy.sh/h2ent/Convoy-Trucking-Launcher-by-nyolc8.zip)

Known issue:

Sometimes the app shows server stat Offline when it's Online, it's something with SAMP query process (which is just copy/pasted from SAMP offical documentation), so I don't really know why it happens. To fix it, just click on the refresh button to get server stats again.

Please tell me all bugs what you found (both UI and usage bugs), also suggestions are welcome.
Title: Re: [Test Download 0.9] Convoy Trucking Launcher
Post by: Dobby on April 08, 2015, 21:22
Is the source lncluded in the download?
Title: Re: [Test Download 0.9] Convoy Trucking Launcher
Post by: Ethan on April 08, 2015, 21:29
Quote from: Dobby on April 08, 2015, 21:22
Is the source lncluded in the download?
not that I can find, just the exe
Title: Re: [Test Download 0.9] Convoy Trucking Launcher
Post by: Joshy on April 08, 2015, 21:47
Not bad!

How are you doing the transitions when opening playerlist? Also are you going to publish source at all?
Title: Re: [Test Download 0.9] Convoy Trucking Launcher
Post by: nyolc8 on April 08, 2015, 21:59
Well, after I saw my carmods modified on other servers forums... I don't now if I want to release source ><
Title: Re: [Test Download 0.9] Convoy Trucking Launcher
Post by: Matias on April 08, 2015, 22:10
Quote from: nyolc8 on April 08, 2015, 21:59
Well, after I saw my carmods modified on other servers forums... I don't now if I want to release source ><

You need to show the source, otherway how can people trust at it.
Title: Re: [Test Download 0.9] Convoy Trucking Launcher
Post by: Joshy on April 08, 2015, 22:16
Quote from: nyolc8 on April 08, 2015, 21:59
Well, after I saw my carmods modified on other servers forums... I don't now if I want to release source ><
very true, I personally want to see it since I want to see how you did the transitions (srsly it's nice) but for historical reasons all player-made executable downloads on here require source to be published.

If you want, you can PM it to me or maybe even set up a private Bitbucket repository and learn / use Git (version control). VS has some Git integration built-in.
Title: Re: [Test Download 0.9] Convoy Trucking Launcher
Post by: nyolc8 on April 08, 2015, 22:47
Quote from: Syd on April 08, 2015, 22:10
You need to show the source, otherway how can people trust at it.
I know, but then other servers could make this to theirs by just modifying some texts and urls... And I don't want that.

Quote from: Joshy on April 08, 2015, 22:16
very true, I personally want to see it since I want to see how you did the transitions (srsly it's nice) but for historical reasons all player-made executable downloads on here require source to be published.

If you want, you can PM it to me or maybe even set up a private Bitbucket repository and learn / use Git (version control). VS has some Git integration built-in.
I made the window animation with this: http://www.vcskicks.com/size-transform2.php (http://www.vcskicks.com/size-transform2.php) (source can be downloaded at bottom) and modified some values of it (fps, steps), and added some bits (like keeping window sized from center, and checking top of screen collision), here's the class file for it:
http://pastebin.com/h9PcgUvp (http://pastebin.com/h9PcgUvp)

the centering can be disabled with a bool, and I added also these two lines when resizing finished:

frm.Width = size.Width;
frm.Height = size.Height;

because the code does not finish the resize properly, so I just fixed it by this :D
Title: Re: [Test Download 0.9] Convoy Trucking Launcher
Post by: SpazzBucket. on April 09, 2015, 00:43
Well I'll give the first bug report  :D

When attempting to start the game and it doesn't work it says "game cant started" when it should be "game cannot start" or "game unable to start"

(http://i.imgur.com/qmsgrZ6.png)

On another note I have no idea why it won't start, lol
Title: Re: [Test Download 0.9] Convoy Trucking Launcher
Post by: Joshy on April 09, 2015, 00:48
Quote from: SpazzBucket. on April 09, 2015, 00:43
Well I'll give the first bug report  :D

When attempting to start the game and it doesn't work it says "game cant started" when it should be "game cannot start" or "game unable to start"

(http://i.imgur.com/qmsgrZ6.png)

On another note I have no idea why it won't start, lol
Do you happen to have gta_sa.exe set to run as admin by any chance?
Title: Re: [Test Download 0.9] Convoy Trucking Launcher
Post by: SpazzBucket. on April 09, 2015, 00:55
No I do not, it has actually completely fucked up my gta sa now, I sometimes get to the connecting screen, but when it says joining game (if it gets there) it just locks up and I have to log out of my desktop user to have access to my desktop again. This is when launching with samp client, worked fine yesterday when I didn't have the client downloaded.
Title: Re: [Test Download 0.9] Convoy Trucking Launcher
Post by: Joshy on April 09, 2015, 00:58
Quote from: SpazzBucket. on April 09, 2015, 00:55
No I do not, it has actually completely fucked up my gta sa now, I sometimes get to the connecting screen, but when it says joining game (if it gets there) [highlight=yellow]it just locks up and I have to log out of my desktop user[/highlight] to have access to my desktop again. This is when launching with samp client, worked fine yesterday when I didn't have the client downloaded.
That's a bug I run into a lot when Alt+tabbing and reconnecting without rebooting, I don't think it can attributed to the launcher unless it somehow breaks some Windows things. To fix it, enter command 'taskkill /F /IM gta_sa.exe' somehow (W8 search using Win+S, or run dialog using Win+R?)
Title: Re: [Test Download 0.9] Convoy Trucking Launcher
Post by: SpazzBucket. on April 09, 2015, 01:31
I never did anything related to alt+tabbing, just sat and waited for stuff to happen and nothing did
Title: Re: [Test Download 0.9] Convoy Trucking Launcher
Post by: nyolc8 on April 09, 2015, 12:33
Quote from: SpazzBucket. on April 09, 2015, 00:43
Well I'll give the first bug report  :D

When attempting to start the game and it doesn't work it says "game cant started" when it should be "game cannot start" or "game unable to start"

(http://i.imgur.com/qmsgrZ6.png)

On another note I have no idea why it won't start, lol
Hold "shift" down while starting the launcher. This makes the launcher to use the default IP and port (or the ones from registry) instead of what it got from CT api. Tell me if the game starts then.

That error message appears in three cases:
1.: server ip/address somehow doesn't exists
2.: server port somehow doesn't exists
3.: samp.exe is not where the samp command registry key(this created by samp itself) says
(or all 3)

This doesn't do anything with samp or windows itself, it starts samp with two parameters (ip and port), then it closes itself. It doesn't do anything else. So it won't f*ck up gta sa at all, if it's locking up after game started, then it's something else. The only case which can happen by this is that the game chat says something that wrong ip or port, but it can't lock up because of this app.

I'll fix the message. Btw I noticed another bug there, the "Ping" column is glitched out from view.
Title: Re: [Test Download 0.9] Convoy Trucking Launcher
Post by: TheSandman on April 09, 2015, 13:37
Any chance for a custom samp location?
Title: Re: [Test Download 0.9] Convoy Trucking Launcher
Post by: nyolc8 on April 09, 2015, 14:40
How do you mean? It's working no matter where SAMP is installed, because it reads a registry key which tells where SAMP is installed. And it works based on that path.
Title: Re: [Test Download 0.9] Convoy Trucking Launcher
Post by: Joshy on April 09, 2015, 16:15
Source is good. Now stop asking.
Title: Re: [Test Download 0.9] Convoy Trucking Launcher
Post by: nyolc8 on April 10, 2015, 02:21
some new things:

- ability to change how playerlist looks:
    -name & score
    -name & score & ping
    -player id & name & score
    -player id & name & score & ping

- alternating background for empty list area too
- changed refreshing time from 10 sec to 20 sec, also changed the error handling of the samp query a bit, hoping this will fix the random offline status reporting by mistake
- fixed the error message (thx for SpazzBucket.)
- changed how the list last column getting sized into listview, hoping this will fix the "Ping" column glitch

(http://i.imgur.com/1pUJkzE.jpg)

Btw I still don't have any idea why SpazzBucket having that message. My only tip is that you renamed/moved your GTA SA folder after you installed SAMP into it, or something like this.
Title: Re: [Test Download 0.9] Convoy Trucking Launcher
Post by: Matias on April 10, 2015, 02:39
While pressing the configuration button a couple of times i got this message (its in spanish but you can understand most of it):

Consulte el final de este mensaje para obtener más detalles sobre cómo invocar a la depuración
Just-In-Time (JIT) en lugar de a este cuadro de diálogo.

************** Texto de la excepción **************
System.ObjectDisposedException: No se puede obtener acceso al objeto eliminado.
Nombre del objeto: 'cfg'.
   en System.Windows.Forms.Control.CreateHandle()
   en System.Windows.Forms.Form.CreateHandle()
   en System.Windows.Forms.Control.get_Handle()
   en System.Windows.Forms.Control.SetVisibleCore(Boolean value)
   en System.Windows.Forms.Form.SetVisibleCore(Boolean value)
   en System.Windows.Forms.Control.Show()
   en CTStarter.Form1.button2_Click(Object sender, EventArgs e)
   en System.Windows.Forms.Control.OnClick(EventArgs e)
   en System.Windows.Forms.Button.OnClick(EventArgs e)
   en System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
   en System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   en System.Windows.Forms.Control.WndProc(Message& m)
   en System.Windows.Forms.ButtonBase.WndProc(Message& m)
   en System.Windows.Forms.Button.WndProc(Message& m)
   en System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   en System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   en System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Ensamblados cargados **************
mscorlib
    Versión del ensamblado: 4.0.0.0
    Versión Win32: 4.0.30319.1022 (RTMGDR.030319-1000)
    Código base: file:///C:/WINDOWS/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
----------------------------------------
Convoy Trucking Launcher
    Versión del ensamblado: 0.9.5576.36116
    Versión Win32: 0.9.5576.36116
    Código base: file:///C:/DOCUME~1/MA/CONFIG~1/Temp/Rar$EX99.760/Convoy_Trucking_Launcher_by_nyolc8/Convoy%20Trucking%20Launcher.exe
----------------------------------------
System.Windows.Forms
    Versión del ensamblado: 4.0.0.0
    Versión Win32: 4.0.30319.1002 built by: RTMGDR
    Código base: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
    Versión del ensamblado: 4.0.0.0
    Versión Win32: 4.0.30319.1001 built by: RTMGDR
    Código base: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System
    Versión del ensamblado: 4.0.0.0
    Versión Win32: 4.0.30319.1001 built by: RTMGDR
    Código base: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Core
    Versión del ensamblado: 4.0.0.0
    Versión Win32: 4.0.30319.1 built by: RTMRel
    Código base: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
System.Configuration
    Versión del ensamblado: 4.0.0.0
    Versión Win32: 4.0.30319.1015 (RTMGDR.030319-1000)
    Código base: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
    Versión del ensamblado: 4.0.0.0
    Versión Win32: 4.0.30319.1015 built by: RTMGDR
    Código base: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
mscorlib.resources
    Versión del ensamblado: 4.0.0.0
    Versión Win32: 4.0.30319.1 (RTMRel.030319-0100)
    Código base: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/mscorlib.resources/v4.0_4.0.0.0_es_b77a5c561934e089/mscorlib.resources.dll
----------------------------------------
System.Numerics
    Versión del ensamblado: 4.0.0.0
    Versión Win32: 4.0.30319.1 built by: RTMRel
    Código base: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Numerics/v4.0_4.0.0.0__b77a5c561934e089/System.Numerics.dll
----------------------------------------
System.Windows.Forms.resources
    Versión del ensamblado: 4.0.0.0
    Versión Win32: 4.0.30319.1 built by: RTMRel
    Código base: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms.resources/v4.0_4.0.0.0_es_b77a5c561934e089/System.Windows.Forms.resources.dll
----------------------------------------

************** Depuración JIT **************
Para habilitar la depuración Just In Time (JIT), el archivo de configuración de esta
aplicación o equipo (machine.config) debe tener el
valor jitDebugging establecido en la sección system.windows.forms.
La aplicación también se debe compilar con la depuración
habilitada

Por ejemplo:

<configuration>
    <system.windows.forms jitDebugging="true" />
</configuration>

Cuando esté habilitada la depuración JIT, cualquier excepción no controlada
se enviará al depurador JIT registrado en el equipo
en lugar de controlarlo mediante el cuadro de diálogo.




I think i broke it C:

Btw its version 0.9.5576.36116
Title: Re: [Test Download 0.9] Convoy Trucking Launcher
Post by: SpazzBucket. on April 10, 2015, 06:26
So if I wanted this to work I'd just have to reinstall samp? Pressing Shift while launching didn't work either, and yes my folder has been moved numerous times since I last had to do a reinstall
Title: Re: [Test Download 0.9] Convoy Trucking Launcher
Post by: nyolc8 on April 10, 2015, 10:02
I'll make an option to locate your samp (in settings). Then you don't need to reinstall.
Title: Re: [Test Download 0.9] Convoy Trucking Launcher
Post by: nyolc8 on April 10, 2015, 17:25
- tweaked playerlist error handling once again
- changed the options window
- added option to select samp.exe (only need to specify if you moved your samp to another place after you installed it)
- changed player icon to up/down arrow

(http://i.imgur.com/OZFM6HT.jpg)

I'll release a new test version soon.
Title: Re: [Test Download 0.9] Convoy Trucking Launcher
Post by: nyolc8 on April 10, 2015, 23:23
Anyone have any idea to fix this?

(http://i.imgur.com/czsW0Sm.jpg)

The icon get's pixelated on 125% dpi setting. But I made the the icon to have size for that dpi too :/
Title: Re: [Test Download 0.9] Convoy Trucking Launcher
Post by: CarlJohnson on April 11, 2015, 10:25
Quote from: nyolc8 on April 10, 2015, 23:23
Anyone have any idea to fix this?

(http://i.imgur.com/czsW0Sm.jpg)

The icon get's pixelated on 125% dpi setting. But I made the the icon to have size for that dpi too :/
It's fine on my laptop.
I'm using W7 @ 1280x800 Resolution
Pic: (http://i.imgur.com/xwoZI45.png)
Title: Re: [Test Download 0.9] Convoy Trucking Launcher
Post by: nyolc8 on April 11, 2015, 11:49
It's fine on 100% dpi scaling. The problem comes on 125% scaled dpi (the one I use). It should use the bigger size image from the ico file then, but it's just uses the same size image and scales it into that ugly thing. ::) And I have no idea how to tell to it to use the bigger resolution icon.
Title: [Test DL 0.9.5579.29822] Convoy Trucking Launcher
Post by: nyolc8 on April 11, 2015, 16:47
Newer test version: http://speedy.sh/98BKf/Convoy-Trucking-Launcher-by-nyolc8.zip (http://speedy.sh/98BKf/Convoy-Trucking-Launcher-by-nyolc8.zip)

NEW THINGS:
- changed samp query error handling
- playerlist drawn very differently (to fix glitched last column width)
- AFK players got a different color (also "(AFK)" text have a space before it for better looking)
- double-clicking on a player opens it's profile page on CT website
- option to enable additional columns to playerlist
- added option to define samp.exe location (if you moved it since it's installed)
- new settings window

KNOWN PROBLEMS:
- playerlist can scroll a bit (with mousewheel or keyboard) even if there is no scrollbar
- you can select empty lines in playerlist
- playerlist sometimes empty even when there are players on server, still don't really know what happening then
Title: Re: [Test DL 0.9.5579.29822] Convoy Trucking Launcher
Post by: SpazzBucket. on April 12, 2015, 04:50
After this update I can say my game launches perfectly with it now, was probably because the samp exe was in another location
Title: Re: [Test DL 0.9.5579.29822] Convoy Trucking Launcher
Post by: Emily on April 12, 2015, 05:50
I think it would be cool to show your ping to the server like the SAMP launcher does.
Title: Re: [Test DL 0.9.5579.29822] Convoy Trucking Launcher
Post by: nyolc8 on April 12, 2015, 12:50
- added server ping option (if it's enabled, ping shows next to the "Online" text)
- hopefully fixed the stupid column glitch and also fixed the scroll bug and empty row selection bug


I saw that samp client refreshes in every second... So I'm thinking about making this app to refresh in every second... But somehow I feel it bad to make 3(server info, ping, playerlist) querys in every second (even if samp client does the same) ><
Title: Re: [Test DL 0.9.5579.29822] Convoy Trucking Launcher
Post by: Emily on April 12, 2015, 16:32
Samp only queries if the windows is active mind.
Title: Re: [Test DL 0.9.5579.29822] Convoy Trucking Launcher
Post by: nyolc8 on April 12, 2015, 16:38
Well, this app closes when you start the game, but I can do it to refresh only if active.

Btw I made the app to support multiple languages (detects language automatically how stock windows apps do), so if someone wants a language to be included, and would help me to translate, then PM me and I'll send a list with the required texts to be translated.
Title: Re: [Test DL 0.9.5579.29822] Convoy Trucking Launcher
Post by: nyolc8 on April 12, 2015, 19:24
current state:
- memory usage reduced from ~12Mb to ~4-6Mb
- multi-language support, currently it's have english and hungarian (I'm waiting some translation help for other languages)
- only refreshes server stats when the app is the active window
- player list opening animation a littlebit smoother

[imgur]http://imgur.com/a/pW98D#0[/imgur]

todo:
- need to fix the icon on higher DPI
- and somehow making better the game launcher button
Title: Re: [Test DL 0.9.5579.29822] Convoy Trucking Launcher
Post by: Emily on April 12, 2015, 20:12
It'd also be neat to have an option to start it with the player menu already down (if possible)
Title: Re: [Test DL 0.9.5579.29822] Convoy Trucking Launcher
Post by: nyolc8 on April 12, 2015, 23:00
Okay, that's not hard to do.

edit: done :P

(http://i.imgur.com/Dw59vEg.jpg)

edit2: removed server IP and port from settings, because created a method which makes CT api requesting only if the CT launcher app was not started in the past 1 hour, and the IP getting saved from CT api automatically so you don't need to bother with IP/port at all, it's all automatic.
Title: Re: [Test DL 0.9.5579.29822] Convoy Trucking Launcher
Post by: nyolc8 on April 13, 2015, 14:54
- minimalized image resource using (scrollbar doesn't use images for thumb, instead a solid rectangle being drawn, down-up button now use only one image)
- tweaked player list selection handling
- tweaked player list data handling
- main game launcher button got a gradient on it to make it better looking
Title: Re: [Test DL 0.9.5581.29028] Convoy Trucking Launcher
Post by: nyolc8 on April 13, 2015, 16:59
test 0.9.5581.29028: http://speedy.sh/Z9TQX/Convoy-Trucking-Launcher-by-nyolc8.zip (http://speedy.sh/Z9TQX/Convoy-Trucking-Launcher-by-nyolc8.zip)

- exe is only 780Kb instead of 1,38Mb (with two languages implemented)
+ all new things I wrote before

The main thing I want to know: is this build english for you guys? :D
Title: Re: [Test DL 0.9.5581.29028] Convoy Trucking Launcher
Post by: Emily on April 13, 2015, 23:24
Yes, it starts in English for me, as I'm guessing its detecting windows language? It looks good.
Title: Re: [Test DL 0.9.5581.29028] Convoy Trucking Launcher
Post by: nyolc8 on April 14, 2015, 01:46
Thanks, yes it sets language based on OS "culture info". I asked if it's english or not because by default, the language files are seperate files, I merged them into the exe after it's compiled. I wasn't sure if it worked or not :D but good to know it's working :)
Title: Re: [Test DL 0.9.5581.29028] Convoy Trucking Launcher
Post by: mick88 on May 10, 2015, 17:23
Can you publish the source code in GitHub?