[Guide] Adding a GUI

10/30/2010 03:13 FuriousFang#1
Requested by SilentKill.
Deleted by FuriousFang.
10/30/2010 03:58 BioHazarxPaul#2
I had the right idea i totally forgot about the change in properties though..
mine was still in console so that explains why it was running both of them..
10/30/2010 09:38 StefanHAKER#3
Pwnzor :)
I'm Wondering how you did transparent background
10/30/2010 09:42 FuriousFang#4
Quote:
Originally Posted by StefanHAKER View Post
Pwnzor :)
I'm Wondering how you did transparent background
I changed the window opacity to 90% in the World's properties.
10/30/2010 10:21 BioHazarxPaul#5
for the love of god i cannot figure out how to do the player count..

label_players_online.Text = ServerBase.Kernel.GamePool.Count.ToString();

doesnt seam to work like i was hoppin it would..
10/30/2010 10:28 StefanHAKER#6
Quote:
Originally Posted by SilentKill View Post
for the love of god i cannot figure out how to do the player count..

label_players_online.Text = ServerBase.Kernel.GamePool.Count().ToString;

doesnt seam to work like i was hoppin it would..
[Only registered and activated users can see links. Click Here To Register...] I Will help you
10/30/2010 10:34 BioHazarxPaul#7
ooo just noticed im going to need a timer to run the check ...
10/30/2010 10:35 StefanHAKER#8
Quote:
Originally Posted by SilentKill View Post
ooo just noticed im going to need a timer to run the check ...
Add me anyway please.
10/30/2010 10:43 FuriousFang#9
Quote:
Originally Posted by SilentKill View Post
ooo just noticed im going to need a timer to run the check ...
Yeah. Check out the update region. You'll learn everything you need there. Everything that updates per second is located there (including CPU management *hint*). CPU management is a good idea to have in your GUI! =]

Good luck!
Sincerely,
Fang
10/30/2010 11:00 BioHazarxPaul#10
Quote:
Originally Posted by FuriousFang View Post
Yeah. Check out the update region. You'll learn everything you need there. Everything that updates per second is located there (including CPU management *hint*). CPU management is a good idea to have in your GUI! =]

Good luck!
Sincerely,
Fang
yay got the playercount working wow i was makin that way harder then it was.. Cpu usage is also done..
[Only registered and activated users can see links. Click Here To Register...]
10/30/2010 19:46 _DreadNought_#11
Game and authport = 9958, 9959 lol.

Gameport = 5816
10/30/2010 20:08 BioHazarxPaul#12
I dont know why i did an attachment I should of just did a [img][/img]
10/30/2010 20:37 FuriousFang#13
Quote:
Originally Posted by _DreadNought_ View Post
Game and authport = 9958, 9959 lol.

Gameport = 5816
9958 works fine on my server. Lol
It's whatever port you want really as long as you put it correctly in Server.dat. It's easier to remember when it's just minus one of the auth port. More organized looking when port forwarding too =P
10/31/2010 12:33 Korvacs#14
I should point out GUI's are not the best option for running a server, their threading style is different which makes them significantly less efficient.

A better way to do this would be to have it use a console, but hide the console so that it cant be visible and then on a separate thread start your GUI, that way the GUI's threading doesnt mess up the rest of the server.

This isnt hard to achieve the open source project has a semi finished map viewing dialog which is loaded from the console with a command currently.
11/01/2010 03:34 BioHazarxPaul#15
Quote:
Originally Posted by Korvacs View Post
I should point out GUI's are not the best option for running a server, their threading style is different which makes them significantly less efficient.

A better way to do this would be to have it use a console, but hide the console so that it cant be visible and then on a separate thread start your GUI, that way the GUI's threading doesnt mess up the rest of the server.

This isnt hard to achieve the open source project has a semi finished map viewing dialog which is loaded from the console with a command currently.
Guess that means i gota try to find out how to keep it in console and just be able to hide it then..