|
You last visited: Today at 17:02
Advertisement
[Guide] Adding a GUI
Discussion on [Guide] Adding a GUI within the CO2 PServer Guides & Releases forum part of the CO2 Private Server category.
11/01/2010, 05:16
|
#16
|
elite*gold: 20
Join Date: Oct 2010
Posts: 451
Received Thanks: 259
|
Quote:
Originally Posted by SilentKill
Guess that means i gota try to find out how to keep it in console and just be able to hide it then..
|
Change the "World.PrintLine"s to "Console.PrintLine", then go to the project settings and change it back to console. Change the main statement back and add the GUI start to the end of the main statement. Good luck! =]
|
|
|
11/01/2010, 12:42
|
#17
|
elite*gold: 0
Join Date: Nov 2009
Posts: 275
Received Thanks: 142
|
**** man release this for beta co source please
|
|
|
11/01/2010, 12:44
|
#18
|
elite*gold: 0
Join Date: Sep 2008
Posts: 128
Received Thanks: 8
|
Quote:
Originally Posted by FrontBoy
**** man release this for beta co source please
|
Hahahahaha, it is for all sources L0L
Anyway you are not enough qualifed to copy paste things..
Keep Using your console
|
|
|
11/01/2010, 19:08
|
#19
|
elite*gold: 0
Join Date: Nov 2005
Posts: 548
Received Thanks: 93
|
Quote:
Originally Posted by StefanHAKER
Hahahahaha, it is for all sources L0L
Anyway you are not enough qualifed to copy paste things..
Keep Using your console
|
it really wasnt that hard to convert the only thing i had issues on and still seam to is gettin the text to go into the text box i seen some use the console.writeline and it goes into the gui text box ill look into that after class.. unless someone wants to tell me i know it has to do with the writeline void.
Quote:
Originally Posted by Korvacs
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.
|
question korvacs I left the threading and everything the way it was i just changed the console to windows to hide the console is this the right way? and of course i did the change to writeline so it will display on gui
|
|
|
11/02/2010, 00:08
|
#20
|
elite*gold: 20
Join Date: Mar 2006
Posts: 6,125
Received Thanks: 2,518
|
No, by setting the project back to a windows forms application youve done the opposite of what i said, please use your initiative and google first next time:
The search i performed:
The first link from that search:
|
|
|
11/02/2010, 00:18
|
#21
|
elite*gold: 0
Join Date: Nov 2005
Posts: 548
Received Thanks: 93
|
Quote:
Originally Posted by Korvacs
No, by setting the project back to a windows forms application youve done the opposite of what i said, please use your initiative and google first next time:
The search i performed:
The first link from that search:
|
alright sorry I was reading that one 2 I just figure it would work changing it to forms i dunno what i was thinking sorry.
"thanks i got it working."
|
|
|
11/02/2010, 01:04
|
#22
|
elite*gold: 0
Join Date: Oct 2010
Posts: 10
Received Thanks: 0
|
Quote:
Originally Posted by SilentKill
alright sorry I was reading that one 2 I just figure it would work changing it to forms i dunno what i was thinking sorry.
"thanks i got it working."
|
Don't be sorry Napoloeon Dynamite.
|
|
|
11/09/2010, 06:06
|
#23
|
elite*gold: 0
Join Date: Oct 2009
Posts: 8,765
Received Thanks: 5,291
|
Code:
public static void StartServer()
{
try
{
try
{
// Put your code from the main statement in Program.cs here
}
catch (Exception e) { World.WriteLine(e.ToString()); }
}
catch (Exception EXC)
{
World.WriteLine(EXC);
}
}
Lolwtf
|
|
|
11/09/2010, 09:04
|
#24
|
elite*gold: 20
Join Date: Oct 2010
Posts: 451
Received Thanks: 259
|
Quote:
Originally Posted by WTFIDKBBQ
Code:
public static void StartServer()
{
try
{
try
{
// Put your code from the main statement in Program.cs here
}
catch (Exception e) { World.WriteLine(e.ToString()); }
}
catch (Exception EXC)
{
World.WriteLine(EXC);
}
}
Lolwtf
|
My original code is split in half so it configures and loads the database, then starts the server threads. That's why there are two.
Code:
public static void StartServer()
{
try
{
try
{
// Where the config file is read and maps start to load
}
catch (Exception e) { World.WriteLine(e.ToString()); }
// server is loaded
}
catch (Exception EXC)
{
World.WriteLine(EXC);
}
}
I've gotten better since this source. This was just one of my less organized ones.
|
|
|
07/07/2011, 08:32
|
#25
|
elite*gold: 0
Join Date: Nov 2010
Posts: 159
Received Thanks: 39
|
Any one can repast his guide??
|
|
|
|
|
Similar Threads
|
[GUIDE]Adding a new item
04/20/2017 - EO PServer Guides & Releases - 17 Replies
Hello,It's me again Necron33 with a new guide
This Guide Tells you how to add a new item including everything(Client,Action,Itemtype).
Making Items is divided to:-DataBase,Client
DataBase:-cq_itemtype,cq_action(if you wanna make action).
Client:-Itemtype.dat,shop.dat(if you want to add it in any shop),ItemMinIcon.ani,MapItemIcon.ani
We will begin with DataBase,I will make a EPCard680,which is going to give players(I will explain how to make the items for excat levels,Vip levels)
Most...
|
[Guide] Adding 10D to SEA.
07/27/2010 - SRO PServer Guides & Releases - 5 Replies
First, Download These Two Files.
MEGAUPLOAD - The leading online storage and file delivery service
MEGAUPLOAD - The leading online storage and file delivery service
Then Extract the Silkroad RAR Content into an Empty Folder, then Place the Data and Maps Into That Folder.
Then you Start Your Emu, Then Use The Launcher Attached Below.
Enjoy.
|
Guide for Adding 10+11D to SEA Emu.
07/24/2010 - SRO Private Server - 5 Replies
I've gotten most of the bugs fixed up to 9D and was looking to add the 10D+11D files, but most people are to dumb to say how to do it, is it possible we can get a guide, or someone who speaks decent english to Explain how to Add it.
I downloaded the newest client, to the Data and Particles and Moved it to my Emu's SRO Client Folder. Still cannot spawn anything.
|
[Guide]Adding Npcs
09/02/2009 - CO2 PServer Guides & Releases - 20 Replies
Ok heres a simple guide on how to add npcs into the database.its very simple(theres a video at the end)
Step 1: Go to the npcs table in the database.Click Browse,And sort by uid and find the last number and add1 and also write this down.
Step 2: Go back to the beggining of your npc table.Click insert.Ok now type in the number your wrote down in the UID table.(Note there will be a pic when we click save at the end.)
Step 3: The type is what people have trouble with.The type is what...
|
[Guide]Adding new jobs.
04/12/2009 - CO2 PServer Guides & Releases - 3 Replies
Alright, I was playing around with my client and was looking for a way to add a new job. In case I wanted to make a new class or something.
Go to your client folder, navigate the "ini" folder, mine's at:
C:\Users\Rob\Desktop\Client\ini
Open the file called:
ProfessionalName.ini
|
All times are GMT +2. The time now is 17:02.
|
|