• 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.
 
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
Will do.

Code:
appveyor.yml    CMakeFiles           ISSUE_TEMPLATE.md  README.md
build           cmake_install.cmake  libmysql.dll       schema.sql
build5          CMakeLists.txt       LICENSE            src
cmake           config.lua           lua51.dll          theforgottenserver.exe
CMakeCache.txt  data                 Makefile           vc14
 
your cmake calls did messed your whole dir, i'd recommend you start a clean one, and try to follow forgottenserver guides for compiling
Compiling · otland/forgottenserver Wiki · GitHub
to remove a folder with all it contents you can use
rm -rf /home/otsmanager/forgottenserver
Got this far:
Code:
otsmanager@158-69-12-213:~/forgottenserver/build$ cmake ..
-- Configuring done
-- Generating done
-- Build files have been written to: /home/otsmanager/forgottenserver/build
otsmanager@158-69-12-213:~/forgottenserver/build$ make
When I do make, nothing happens.
 
there is anything inside Makefile?
cat /home/otsmanager/forgottenserver/build/Makefile | less
This is what appears when I put that in.
Code:
otsmanager@158-69-12-213:~$ cat /home/otsmanager/forgottenserver/build/Makefile                                                                                                                                                              | less
        /usr/bin/cmake -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR)
.PHONY : rebuild_cache

# Special rule for the target rebuild_cache
rebuild_cache/fast: rebuild_cache

.PHONY : rebuild_cache/fast

# The main all target
all: cmake_check_build_system
        $(CMAKE_COMMAND) -E cmake_progress_start /home/otsmanager/forgottenserver/build/CMakeFiles /home/otsmanager/forgottenserver/build/CMakeFiles/progress.marks
        $(MAKE) -f CMakeFiles/Makefile2 all
        $(CMAKE_COMMAND) -E cmake_progress_start /home/otsmanager/forgottenserver/build/CMakeFiles 0
.PHONY : all

# The main clean target
clean:
        $(MAKE) -f CMakeFiles/Makefile2 clean
.PHONY : clean

# The main clean target
clean/fast: clean

.PHONY : clean/fast

# Prepare targets for installation.
preinstall: all
        $(MAKE) -f CMakeFiles/Makefile2 preinstall
.PHONY : preinstall

# Prepare targets for installation.
preinstall/fast:
        $(MAKE) -f CMakeFiles/Makefile2 preinstall
.PHONY : preinstall/fast

# clear depends
depend:
        $(CMAKE_COMMAND) -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 1
.PHONY : depend

# Help Target
help:
        @echo "The following are some of the valid targets for this Makefile:"
        @echo "... all (the default if no target is provided)"
        @echo "... clean"
        @echo "... depend"
        @echo "... edit_cache"
        @echo "... rebuild_cache"
.PHONY : help



#=============================================================================
# Special targets to cleanup operation of make.

# Special rule to run CMake to check the build system integrity.
# No rule that depends on this can have commands that come from listfiles
# because they might be regenerated.
cmake_check_build_system:
        $(CMAKE_COMMAND) -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 0
.PHONY : cmake_check_build_system
 
They are custom sources based on 1.2.

They compile fine in windows, so idk
When you compile on Windows, you probably don't even use cmake. Therefore, it's very likely that whoever so professionally "edited" this source just screwed up cmake configs. I wonder what they changed and why if it was only compiled using theforgottenserver.vcxproj before.
 
Well just wait for a hot minute..
What Linux Distro and Version are you using? Not that it has to do with much in compiling, but I'm curious.

Also, are you using Intel or AMD processors? Because the thing that Daniello has in his tutorial on github:
Code:
sudo dpkg --add-architecture i386
Is for Intel processors.

Try running these commands in your terminal and then restart your computer, delete your CMakeTemp or whatever, and try the building process over again:
Code:
sudo -i
Code:
apt-get update
Code:
apt-get upgrade
It seems to me like you're doing this on a very fresh install with no/little needed files.

Also, please print the output of the following commands:
Code:
uname -a
Code:
lscpu

Thanks,
-Aelu
 
Last edited:
Well just wait for a hot minute..
What Linux Distro and Version are you using? Not that it has to do with much in compiling, but I'm curious.

Also, are you using Intel or AMD processors? Because the thing that Daniello has in his tutorial on github:
Code:
sudo dpkg --add-architecture i386
Is for Intel processors.

Try running these commands in your terminal and then restart your computer, delete your CMakeTemp or whatever, and try the building process over again:
Code:
sudo -i
Code:
apt-get update
Code:
apt-get upgrade
It seems to me like you're doing this on a very fresh install with no/little needed files.

Also, please print the output of the following commands:
Code:
uname -a
Code:
lscpu

Thanks,
-Aelu
I will try that when I get home.

@Don Daniello
Is there no other way to do it without CMake then? Can I compile a console exe somehow on windows? This is the third time I've bought your services and haven't been able to use them.
 
I will try that when I get home.

@Don Daniello
Is there no other way to do it without CMake then? Can I compile a console exe somehow on windows? This is the third time I've bought your services and haven't been able to use them.
No, cmake is the only way used to compiled TFS 1.0+.
You may be able to compile a console version on Windows, depending on the source you have. TFS 1.0+ does not have any version different than console (no GUI is available), so I'm not sure what you have, it's most likely not TFS 1.0+ variant.
 
No, cmake is the only way used to compiled TFS 1.0+.
You may be able to compile a console version on Windows, depending on the source you have. TFS 1.0+ does not have any version different than console (no GUI is available), so I'm not sure what you have, it's most likely not TFS 1.0+ variant.
I'm running TFS 1.2 modified. So if it is console it should work then?

As far as I can tell it is, but to be honest I'm not all that familiar with the difference.
 
Is for Intel processors.
Hey this is not quiet true, i386 is named as is just as honor name for chipset that released commands instructions for 32-bit cpus, Intel 80386, this does not mean that amd cpus can't run these packages, if your amd cpu has support for 32-bit instructions you should be able to run it, the same goes for amd64 packages, named as is because amd introduced instructions extension for 64-bit memory lines, if your intel cpu has 64-bit extended instructions support it will be able to run amd64 packages.
 
Last edited:
@Don Daniello

Considering I'm using tfs 1.2, and it should be console can you please provide some support and help me with getting it to work with windows exe.

As previously mentioned this is the third time I've purchased your services and haven't been able to use it.
 
Back
Top