otland / forgottenserver

A free and open-source MMORPG server emulator written in C++
https://otland.net
GNU General Public License v2.0
1.59k stars 1.06k forks source link

Commands Crashing #117

Closed robsondias6 closed 11 years ago

robsondias6 commented 11 years ago

I have compiled the server with VC++ 2012 w/ boost 1.54 and every time I type a god/gm command, the server crashes.

dalkon commented 11 years ago

Cannot reproduce.

robsondias6 commented 11 years ago

could be the version of boost? or other libraries?

dalkon commented 11 years ago

It's not boost as I use the same version, I'm not sure why it crashes for you.

robsondias6 commented 11 years ago

And I using windows 8 64 bits, could this be?

marksamman commented 11 years ago

Run the server from Visual Studio (Debug -> Start Debugging, or just F5). When it crashes it should provide useful information that we can use to find out why it crashes for you and possibly fix it.

robsondias6 commented 11 years ago

I had already tried debugging yesterday when I debug the server can not load files (config.lua, etc)

debug

And yes, the server files are with the exe (data / config.lua / dllls)

marksamman commented 11 years ago

You need to place the data directory and config.lua relative to the directory it runs from (could be the vc11 dir, vc11/Debug/ or somewhere else).

robsondias6 commented 11 years ago

Files have been together in the exe folder /vc11/Debug/ and he can not load

marksamman commented 11 years ago

If it doesn't load, they aren't placed in the correct directory. It might be vc11/bin/Debug/, you will have to find out.

robsondias6 commented 11 years ago

vc11 folder only have one folder called Debug, And within that folder is where the VC + + are placing the theforgottenserver.exe. In the same folder have "data" folder, config.lua and the dlls

robsondias6 commented 11 years ago

Here is VC++ output log when I debug.

'theforgottenserver.exe' (Win32): Loaded 'C:\Users\robsondias\Desktop\forgottenserver-master\source\vc11\Debug\theforgottenserver.exe'. Symbols loaded. 'theforgottenserver.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ntdll.dll'. Cannot find or open the PDB file. 'theforgottenserver.exe' (Win32): Loaded 'C:\Windows\SysWOW64\kernel32.dll'. Cannot find or open the PDB file. 'theforgottenserver.exe' (Win32): Loaded 'C:\Windows\SysWOW64\KernelBase.dll'. Cannot find or open the PDB file. 'theforgottenserver.exe' (Win32): Loaded 'C:\Users\robsondias\Desktop\forgottenserver-master\source\vc11\Debug\lua51.dll'. Module was built without symbols. 'theforgottenserver.exe' (Win32): Loaded 'C:\Users\robsondias\Desktop\forgottenserver-master\source\vc11\Debug\libxml2.dll'. Module was built without symbols. 'theforgottenserver.exe' (Win32): Loaded 'C:\Users\robsondias\Desktop\forgottenserver-master\source\vc11\Debug\libmysql.dll'. Cannot find or open the PDB file. 'theforgottenserver.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msvcp110d.dll'. Symbols loaded. 'theforgottenserver.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ws2_32.dll'. Cannot find or open the PDB file. 'theforgottenserver.exe' (Win32): Loaded 'C:\Windows\SysWOW64\mswsock.dll'. Cannot find or open the PDB file. 'theforgottenserver.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msvcr110.dll'. Symbols loaded. 'theforgottenserver.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msvcr110d.dll'. Symbols loaded. 'theforgottenserver.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msvcr100.dll'. Cannot find or open the PDB file. 'theforgottenserver.exe' (Win32): Loaded 'C:\Windows\SysWOW64\wsock32.dll'. Cannot find or open the PDB file. 'theforgottenserver.exe' (Win32): Loaded 'C:\Users\robsondias\Desktop\forgottenserver-master\source\vc11\Debug\zlib1.dll'. Module was built without symbols. 'theforgottenserver.exe' (Win32): Loaded 'C:\Windows\SysWOW64\user32.dll'. Cannot find or open the PDB file. 'theforgottenserver.exe' (Win32): Loaded 'C:\Windows\SysWOW64\advapi32.dll'. Cannot find or open the PDB file. 'theforgottenserver.exe' (Win32): Loaded 'C:\Windows\SysWOW64\rpcrt4.dll'. Cannot find or open the PDB file. 'theforgottenserver.exe' (Win32): Loaded 'C:\Windows\SysWOW64\nsi.dll'. Cannot find or open the PDB file. 'theforgottenserver.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msvcrt.dll'. Cannot find or open the PDB file. 'theforgottenserver.exe' (Win32): Loaded 'C:\Windows\SysWOW64\gdi32.dll'. Cannot find or open the PDB file. 'theforgottenserver.exe' (Win32): Loaded 'C:\Windows\SysWOW64\sechost.dll'. Cannot find or open the PDB file. 'theforgottenserver.exe' (Win32): Loaded 'C:\Windows\SysWOW64\sspicli.dll'. Cannot find or open the PDB file. 'theforgottenserver.exe' (Win32): Loaded 'C:\Windows\SysWOW64\cryptbase.dll'. Cannot find or open the PDB file. 'theforgottenserver.exe' (Win32): Loaded 'C:\Windows\SysWOW64\bcryptprimitives.dll'. Cannot find or open the PDB file. 'theforgottenserver.exe' (Win32): Loaded 'C:\Windows\SysWOW64\imm32.dll'. Cannot find or open the PDB file. 'theforgottenserver.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msctf.dll'. Cannot find or open the PDB file. The thread 0x958 has exited with code -1073741510 (0xc000013a). The thread 0x1254 has exited with code -1073741510 (0xc000013a). The thread 0xae4 has exited with code -1073741510 (0xc000013a). The thread 0xb20 has exited with code -1073741510 (0xc000013a). The program '[2612] theforgottenserver.exe' has exited with code -1073741510 (0xc000013a).

marksamman commented 11 years ago

That output is irrelevant. When it crashes Visual Studio will show a stacktrace, can you provide that?

robsondias6 commented 11 years ago

when I run in debug mode, the server can not open the config.lua if I go to the output folder and open TheForgottenServer.exe, the server can open normally

only in debug mode that does not

marksamman commented 11 years ago

As I said, you will have to find out what the working directory is when running in debug and place config.lua and the data directory there. If you can't do that, then we can't help you to fix this because we can't reproduce the issue you are having.

PrinterLUA commented 11 years ago

Just use linux, i gave up hope with compile 1.0 with windows, since i dont get everything worked right :S

marksamman commented 11 years ago

Closing this issue as I can't reproduce it and information I've asked for has not been supplied. I will reopen it if you provide any new information.