• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Linux Running windows.exe

SamX

VoltageOT Developer
Joined
Aug 27, 2010
Messages
557
Reaction score
151
Location
Canada
Hello,

I'm trying to run my windows exe on my VPS. I followed this guide: How to run TFS OTServ compiled for Windows · DevelopersPL/otshosting-provisioning Wiki · GitHub

However, when using "wineconsole theforgottenserver.exe" I get these errors:
Code:
Application tried to create a window, but no driver could be loaded.
Make sure that your X server is running and that $DISPLAY is set correctly.
Application tried to create a window, but no driver could be loaded.
Make sure that your X server is running and that $DISPLAY is set correctly.
Application tried to create a window, but no driver could be loaded.
Make sure that your X server is running and that $DISPLAY is set correctly.
fixme:storage:create_storagefile Storage share mode not implemented.
err:mscoree:LoadLibraryShim error reading registry key for installroot
err:mscoree:LoadLibraryShim error reading registry key for installroot
err:mscoree:LoadLibraryShim error reading registry key for installroot
err:mscoree:LoadLibraryShim error reading registry key for installroot
Application tried to create a window, but no driver could be loaded.
Make sure that your X server is running and that $DISPLAY is set correctly.
fixme:storage:create_storagefile Storage share mode not implemented.
err:winediag:SECUR32_initNTLMSP ntlm_auth was not found or is outdated. Make sure that ntlm_auth >= 3.0.25 is in your path. Usually, you can find it in the winbind package of your distribution.
fixme:iphlpapi:NotifyAddrChange (Handle 0x101e368, overlapped 0x101e380): stub
Application tried to create a window, but no driver could be loaded.
Make sure that your X server is running and that $DISPLAY is set correctly.
fixme:storage:create_storagefile Storage share mode not implemented.
err:winediag:SECUR32_initNTLMSP ntlm_auth was not found or is outdated. Make sure that ntlm_auth >= 3.0.25 is in your path. Usually, you can find it in the winbind package of your distribution.
fixme:iphlpapi:NotifyAddrChange (Handle 0x10be8a0, overlapped 0x10be8ac): stub
wine: configuration in '/home/otsmanager/.wine' has been updated.
Application tried to create a window, but no driver could be loaded.
Make sure that your X server is running and that $DISPLAY is set correctly.

Also, with start tfs
Code:
Failed to start tfs.service: Unit tfs.service is not loaded properly: Invalid argument.
See user logs and 'systemctl --user status tfs.service' for details.
otsmanager@158-69-12-213:~/forgottenserver$ start tfs
Failed to start tfs.service: Unit tfs.service is not loaded properly: Invalid argument.
 
However, when using "wineconsole theforgottenserver.exe" I get these errors:
does your vps has nouveau drivers installed? the specs of machine, cpu has any integrated graphics on it? all these errors are related to you trying to run a graphical application without graphical drivers installed
 
does your vps has nouveau drivers installed? the specs of machine, cpu has any integrated graphics on it? all these errors are related to you trying to run a graphical application without graphical drivers installed
I'm not sure. I'm just using the default server given to me when I got this service.

Never used Linux before, so I don't know how to check.
 
Never used Linux before, so I don't know how to check.
are you trying to do that through root user? if you are, you shouldn't, second you can try changing your default X run level to 3, hopefully wine will understand that there is no window to be created, but idk, i'm not wine expert, i've just used it sometimes and worked great, may i ask why you are trying to run tfs under wine? tfs has better support to linux than windows itself.
 
Last edited:
You can't run version of TFS or other engines that actually have GUI window, it won't work in wine. You need a console version.
 
You can't run version of TFS or other engines that actually have GUI window, it won't work in wine. You need a console version.
Ok, if that's the case - can you help me compile my custom sources?

I can't download the ".git" as in the tutorial, because it isn't for my sources. I have the sources pasted in /forgottenserver, build directory made but using "cmake" doesn't work.
 
Ok, if that's the case - can you help me compile my custom sources?

I can't download the ".git" as in the tutorial, because it isn't for my sources. I have the sources pasted in /forgottenserver, build directory made but using "cmake" doesn't work.
Something is wrong with your source or it's not fully uploaded. It can't be compiled.
 
Something is wrong with your source or it's not fully uploaded. It can't be compiled.
I'm re-uploading right now. Pretty sure they are all there, though. Compiles fine on windows.

What are the errors after cmake in console? (If it decides to give you any).
I got cmake to work;
Code:
otsmanager@1xxxxx:~/forgottenserver$ cmake /home/otsmanager/forgottenserver/src
-- The C compiler identification is GNU 5.4.0
-- The CXX compiler identification is GNU 5.4.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done
-- Generating done
-- Build files have been written to: /home/otsmanager/forgottenserver

Not sure where to go from here though. Saying "make" doesn't do anything.
 
Not sure where to go from here though. Saying "make" doesn't do anything.
you did a mess in your src folder with cmake things, what you should had done was (and your cmake is not working tho, with this makefile you will got linking erros because cmake didin't saw depedencies.)
cd ~/forgottenserver && mkdir build && cd build && cmake .. && make && mv tfs .. && cd ..
 
I'm re-uploading right now. Pretty sure they are all there, though. Compiles fine on windows.


I got cmake to work;
Code:
otsmanager@1xxxxx:~/forgottenserver$ cmake /home/otsmanager/forgottenserver/src
-- The C compiler identification is GNU 5.4.0
-- The CXX compiler identification is GNU 5.4.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done
-- Generating done
-- Build files have been written to: /home/otsmanager/forgottenserver

Not sure where to go from here though. Saying "make" doesn't do anything.
This shouldn't have work, the parameter to cmake should be parent directory of "src". You must have tampered with cmake settings.
 
you can copy & paste this whole line, if everything is ok with your source code and dependencies it should compile and you can start tfs
This is the error I get:
Code:
-- Configuring done
-- Generating done
-- Build files have been written to: /home/otsmanager/forgottenserver
make: *** No targets specified and no makefile found.  Stop.
 
You really should spend some time searching on yt or google "introduction to bash iterative mode"
try:
make /home/otsmanager/forgottenserver
Code:
-- Build files have been written to: /home/otsmanager/forgottenserver
make: Nothing to be done for '/home/otsmanager/forgottenserver'.
mv: cannot stat 'tfs': No such file or directory

Sorry, new to linux.
 
Sorry, new to linux.
that's why i recommended you to learn the basics, it will be a pain in ass to host a server under a system that you cannot even navigate in subsystem paths
please what is output for
ls /home/otsmanager/forgottenserver
 
Back
Top