Go Back   EQEmulator Home > EQEmulator Forums > Archives > Archive::Development > Archive::Development

Archive::Development Archive area for Development's posts that were moved here after an inactivity period of 90 days.

Reply
 
Thread Tools Display Modes
  #1  
Old 10-23-2002, 11:48 PM
Zafar
Sarnak
 
Join Date: Oct 2002
Posts: 50
Default Can someone help with the code?

Anyone who would be willing to tell me exactly where and what files need to be modified to make EQEmu 0.3.10 look in to a specific directory without relying being restricted to one directory? The reason why I am asking this, is for two reasons.

1) I would like to run EQEmu as a XP Service (I am now, but it is still very unstable, unpredictible and goofy.) And having it know where the files are, would make my life easier rather than having it acting the way it is.

2) Should I ever wish to execute from the command line, no matter where -- it would automatically say, ok, he's running it from here, we know to look at c:\eqemusrc, etc..

I just need to, or should only need to know what files contain this information and I should be OK there. Thank you in advance for your help. (God, after being up for over 30+ hours, you'd think all would be good by now. NOT!) :-p
Reply With Quote
  #2  
Old 10-24-2002, 01:08 PM
Zafar
Sarnak
 
Join Date: Oct 2002
Posts: 50
Default I should have known.

After being up all that time and trying to figure that out, only to not be lucky should have said, "Go to bed." Well, been up for a few hours already, after successfully making the changes that I needed -- which did make life easier, but to get it to run as a NT server (XP Service technically, since I am using Windows XP Professional.), is not going very well. It loads, and gives some sort of a timed out failure, shrug. Perhaps I will see if I can find some code here or there, to implement a NT Service.

And yes, I am aware that this is a very ugly task as well. I seen some code, and heard many people saying that it is extremely rough, to get something implemented as a "NT Service", which I have a couple of programs here that can also help loading a program as a service, and code snips here that allow you to do the same thing. But the code itself, is .NET based. Sigh. This is something that would probably be nice, or a GUI version of EQEmu -- or perhaps, a NT Service based EQEmu with a GUI login to do what you could do, see, etc. that you can now.
Reply With Quote
  #3  
Old 11-15-2002, 01:33 PM
alkrun
Sarnak
 
Join Date: Jan 2002
Posts: 66
Default

I actually did some work with this a while ago. A short description of what I did...

Switch all of the server projects from Executables to DLLs. I added some exported functions to initialize and cleanup each respective server.

I then wrote a master service that used a config file of its' own to figure out what DLLs to load and initialized them, how many zone servers to run etc...


It was working fairly well, but at the time the server sourcecode was at a fairly unstable state and when a new release came out I just tossed the changes with the intention of adding them again at a later date.

I wasn't using .NET but a good old Win32 ServiceMain etc... in theory you could go with the convert-them-to-dlls option and load them in a C# Windows Service with calls to the unmanaged DLLs... that could be interesting. You could also get some nifty features with the Service-oriented features of the .NET Framework, easy access to the event logs etc...
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 06:35 PM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3