New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot run D2GS-mt #17

Open
EvilMax opened this Issue Jan 4, 2016 · 17 comments

Comments

Projects
None yet
3 participants
@EvilMax

EvilMax commented Jan 4, 2016

Hi, I've made PVPGN build with PostgreSQL and also made multi-threaded D2GS build. However, while PVPGN, D2CS and D2DBS are working after configuration, D2GS process simply doesn't start with no logs. I've added its config to registry also creating D2GS and duplicate D2GS13 entries to be sure, tried to run from administrator or in compatibility modes, no affect. Need help running this combo.

@HarpyWar

This comment has been minimized.

Member

HarpyWar commented Feb 28, 2016

Mutithreaded version of D2GS doesn't work with default D2CS tesseract2048/d2gs#11 (comment)

@EvilMax

This comment has been minimized.

EvilMax commented Feb 28, 2016

Well, in Magic Builder context, is it possible to make Magic Builder providing compatible D2CS version together with mt D2GS? For now choosing mt D2GS version results in non-working build. Is it possible to fix this?

@HarpyWar

This comment has been minimized.

Member

HarpyWar commented Feb 28, 2016

It was added before my understanding what differences in MT version. So this feature was not finilized yet.
Now you can only build D2CS version for MT D2GS yourself, from tesseract PvPGN repository.

@EvilMax

This comment has been minimized.

EvilMax commented Feb 28, 2016

Ok, understood. Last question: do you know if D2CS from tesseract2048 repo compatible with 'generic' d2dbs, pvpgn or it is better to build separately all chain D2CS+D2DBS+PVPGN ?

@HarpyWar

This comment has been minimized.

Member

HarpyWar commented Feb 28, 2016

D2DBS protocol was not modified, only D2CS. But tesseract D2DBS that written in .NET has more improvements https://github.com/pvpgn/D2DBSDotNet.

Note that tesseract PvPGN repository is based on 1.99-SVN, but it redesigned for Linux with remove all Windows dependencies. So D2CS from there can not be compiled for Windows without modifications.
tesseract2048/pvpgn#1 (comment)

@EvilMax

This comment has been minimized.

EvilMax commented Feb 28, 2016

Thank you, HappyWar.

Issue closed, looking forward to further Magic Builder updates :-)

@EvilMax EvilMax closed this Feb 28, 2016

@HarpyWar

This comment has been minimized.

Member

HarpyWar commented Feb 28, 2016

I'll keep it opened until the update will come.

@HarpyWar HarpyWar reopened this Feb 28, 2016

@charros

This comment has been minimized.

charros commented Sep 19, 2016

Heya Harpy, im trying to run a 1.13c server on win 2008 with your magic builder and tesseract GS, after reading all the comments on the projects i came to understand that i need to use his modified D2CS in order to use mt GS. Checking his pvpg+cs repo i came across it cant be compiled for windows because missing libraries , so its either find a way to compile his D2CS for windows in order to use tesseract GS binaries or compile everything for linux in which case i have a second question , can i use https://github.com/tesseract2048/d2gs to compile a linux version of it? My programming knowledge is really basic but im trying to improve, apologies in advance. Many thanks sire.

@HarpyWar

This comment has been minimized.

Member

HarpyWar commented Sep 19, 2016

Now it's only possible to use his D2CS on Linux.
There is no D2GS for Linux. But any D2GS can be run on Linux through Wine. I have no experience to use D2GS+Wine since there may be additional troubles. So it's better to use Windows for this.

@charros

This comment has been minimized.

charros commented Sep 19, 2016

Thanks for the reply Harpy, is it possible to run a linux pvpgn+cs (from tess) on a linux enviroment and a mt GS in a windows Vbox and make them work together? if its no viable what do you suggest? Thanks again :)

@HarpyWar

This comment has been minimized.

Member

HarpyWar commented Sep 19, 2016

Sure, PvPGN, D2CS, D2DBS, D2GS - each of them can be run on different machines and work together.

@charros

This comment has been minimized.

charros commented Sep 22, 2016

Heya Harpy im back, i successfully managed to compile tesseract d2cs in some way but it's giving me 2 warnings, so this is what I got so far, if I start the first three services (pvpgn , d2dbs and tess d2cs) immediately after d2cs start running pvpgn console gives a socket error which is related to one of the warnings that I will post at the end of the post, if we can somehow manage to fix those 2 errors I'm sure we can solve it and even include it in your future magic build releases, if you can give it a look would be awesome since redvex exploit to crash the server is really annoying.

http://stackoverflow.com/a/39635764/6862957

Thanks in advace

@charros

This comment has been minimized.

charros commented Sep 22, 2016

Forgot to mention that tess D2GS doesn't start up , probably cause to that socket error.

@HarpyWar

This comment has been minimized.

Member

HarpyWar commented Sep 22, 2016

D2GS may not start if the specified registry path not exists. Look into readme of that repository.
Did you successfully compile D2CS for Windows but it throws a socket error?

@charros

This comment has been minimized.

charros commented Sep 22, 2016

If you refer to d2gs.reg yes, I loaded it into my reg.
Yeah after a couple days of searching the issue that visual studio was showing when compiling tess Cs we figured it out, I will post a detailed procedure when at home so you can test. Thanks!

@charros

This comment has been minimized.

charros commented Sep 23, 2016

Ok i will show you how we managed to compile it, first of all open the project solution from win32 folder (d2cs.sln) with visual studio 2010 (you need vs2010 sp1 too), you need to convert it first because it was made with an older version of vs.

After the conversion you will get 7 warnings, almost all of them comes from targetpath errors which can be solved by right clicking on project solution > properties > linker > output file: $(OutDir)$(TargetName)$(TargetExt)
After that if you try to build the solution you will get the next error:

1>fdwatch.obj : error LNK2001: unresolved external symbol _fdw_iocp
1>..\bin\d2cs.exe : fatal error LNK1120: 1 unresolved externals

This is because one of the fdwatch_iocp source is not present in common folder so you must add it manually, open (in vs) source files folder. right click on common folder and select add > existing item > navigate to \pvpgn\src\common\fdwatch_iocp.c and click add and you are ready to build it

After this point you will get a couple warnings but the .exe is compiled succesfully.

Ive tried to mount the server, open pvpgn, open d2dbs, open d2cs , after you execute this one if you check on pvpgn console you will get a sock error and in d2cs console you will see a loop about available connections or something like that. If you point those errors inside the code you will see that they are related to the error showed in pvpgn console and of course d2gs doesnt event load up into task manager. So this where we are now, i bet it can be solved in some way but its far beyond my knowledge, if you can investigate it would be awesome. Let me know if you need any additional information.

Regards

@HarpyWar

This comment has been minimized.

Member

HarpyWar commented Jul 20, 2017

All the tesseract binaries for Windows are available to download #29 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment