Page 1 of 2

Unresolved Externals :S

Posted: 2012-10-23, 00:05
by Tyson

Code: Select all

 [...Etc...] error LNK2019: unresolved external symbols
[...Etc...]
scons: *** [build\win32\vc10\amd64\release\Ca3DE\Cafu.exe] Error 1120
scons: building terminated because of errors.

C:\crexengine\Engine_Src_Latest>
That's not all of it, but it's all that was left in the CMD window.
Any ideas?
I literally just installed Scons, downloaded the src, and ran scons on it.

Re: Unresolved Externals :S

Posted: 2012-10-23, 19:44
by Carsten
Hi Tyson,
welcome to the Cafu forums! :welcome:
Tyson wrote: That's not all of it, but it's all that was left in the CMD window.
Any ideas?
I literally just installed Scons, downloaded the src, and ran scons on it.
Can you please state which version of Windows you use (32-bit or 64-bit?), the version of SCons, and the version and edition (Express, Professional, ...?) of the compiler?

And as a test, can you please try out the change suggested in this post?

:up:

Re: Unresolved Externals :S

Posted: 2012-10-23, 22:47
by Tyson
Carsten wrote:Hi Tyson,
welcome to the Cafu forums! :welcome:
Tyson wrote: That's not all of it, but it's all that was left in the CMD window.
Any ideas?
I literally just installed Scons, downloaded the src, and ran scons on it.
Can you please state which version of Windows you use (32-bit or 64-bit?), the version of SCons, and the version and edition (Express, Professional, ...?) of the compiler?

And as a test, can you please try out the change suggested in this post?

:up:
Thanks for the welcome :)
Windows 7, 64-bit.
Visual Studio 2010 Professional, and the latest version available of Scons.
I've made the change suggested, and it's now compiling, hopefully it'll work.

E:
Build complete, everything built fine. Funny how a simple change fixed everything! :)
Thanks a ton, Carsten. You rock!

Re: New issue

Posted: 2012-10-24, 14:43
by Tyson
I've got another issue now. :(

The game loads up fine, but when I try to start a game, it freezes on 'initializing server'. This only happens on the .EXE I've compiled, if I use the original it works fine.

My compiled EXE Attached (rename to cafu.exe).

Re: New issue

Posted: 2012-10-24, 20:34
by Carsten
Hi Tyson,
Tyson wrote:The game loads up fine, but when I try to start a game, it freezes on 'initializing server'. This only happens on the .EXE I've compiled, if I use the original it works fine.

My compiled EXE Attached (rename to cafu.exe).
No file was attached to your post, and it would have been difficult to learn something useful from it anyways.

Just a guess: This might somehow be related to you first compilation attempt without the "x86" setting... would it be possible that you try this again in a fresh directory with the "x86" setting right from the start (before calling SCons for the first time)?

Re: Unresolved Externals :S

Posted: 2012-10-24, 23:27
by Tyson
Tried in a fresh directory, with x86. No go.
Re Downloaded the source, tried in a new directory. Still no go.
This is the screen that it freezes at.

Any ideas?

Re: Unresolved Externals :S

Posted: 2012-10-25, 10:35
by Carsten
Hmmm. Do you have some firewall running?

Even for a local game, the client and the server connect to each other over a local network connection. Normally, your firewall should inform you about the connection attempt, and ask you what to do, but maybe it's setup like blocking "foreign" connections by default.

If possible, please try turning your firewall off (at least briefly for testing).

It may also help to run Cafu.exe with parameter -noFS, to have it run in a window rather than full-screen, where it might cover any request windows from the firewall.

Also, if this doesn't help, please run Cafu like this:

Code: Select all

> build\win32\vc10\x86\debug\Ca3DE\Cafu.exe -noFS -log console.txt
and post the generated console.txt file here.

:up:

Re: Unresolved Externals :S

Posted: 2012-10-25, 13:51
by Tyson
Carsten wrote:Hmmm. Do you have some firewall running?

Even for a local game, the client and the server connect to each other over a local network connection. Normally, your firewall should inform you about the connection attempt, and ask you what to do, but maybe it's setup like blocking "foreign" connections by default.

If possible, please try turning your firewall off (at least briefly for testing).

It may also help to run Cafu.exe with parameter -noFS, to have it run in a window rather than full-screen, where it might cover any request windows from the firewall.

Also, if this doesn't help, please run Cafu like this:

Code: Select all

> build\win32\vc10\x86\debug\Ca3DE\Cafu.exe -noFS -log console.txt
and post the generated console.txt file here.

:up:
I don't have any firewalls on, so that's not the problem.

Here is the new console.txt

Code: Select all

Cafu Engine, Oct 24 2012
config.lua processed.
Warning: Failed to open ZIP archive Games/DeathMatch/Textures/TechDemo.zip
Registering archive "Games/DeathMatch/Textures/SkyDomes.zip".

Scanning cwd for all available renderers...
./RendererARBprogs.dll ... SUCCESS - first supported renderer (Pref# 2200).
./RendererCgARB1.dll ... SUCCESS - but no higher preference (Pref# 2100).
./RendererCgNV2X.dll ... FAILED - renderer says it's not supported.
./RendererNull.dll ... SUCCESS - but excluded from auto-selection (Pref# 1).
./RendererOpenGL12.dll ... SUCCESS - but no higher preference (Pref# 1000).
Reloading previously auto-selected renderer ./RendererARBprogs.dll ...

Scanning cwd for all available sound systems...
./SoundSysFMOD3.dll ... SUCCESS - first supported sound system (Pref# 1000).
./SoundSysNull.dll ... SUCCESS - but excluded from auto-selection (Pref# 1).
./SoundSysOpenAL.dll ... SUCCESS - higher preference sound system (Pref# 1500).
Reloading previously auto-selected sound system ./SoundSysOpenAL.dll ...
Warning: Lua error in call to method OnMouseButtonUp():
Games/DeathMatch/GUIs/MainMenu/MainMenu_main.cgui:668: attempt to call method 'thread' (a nil value)

Re: Unresolved Externals :S

Posted: 2012-10-25, 18:04
by Carsten
Tyson wrote: Here is the new console.txt

Code: Select all

[...]
Warning: Lua error in call to method OnMouseButtonUp():
Games/DeathMatch/GUIs/MainMenu/MainMenu_main.cgui:668: attempt to call method 'thread' (a nil value)
Ah! That get's us a good step closer! :-)

The fact that it cannot find "thread" is the cause for the program apparently freezing -- in fact if it happens again you should be able to open the console with the F1 key, although that won't solve the problem.

I wonder though why "thread" isn't there.
What does line 668 of the mentioned MainMenu_main.cgui file look like?

And what version of the source code do you use? r561, r625, latest Subversion, ...?
Did you make partial upgrades to an older edition of the source code or something similar?

I made some enhancements to the scripting code recently, some of which were backwards-incompatible with prior versions. I did my best to only ship compressed archives that are self-contained and work properly, but now I'm wondering if there is a bug in one of the packages from the Downloads page.

Re: Unresolved Externals :S

Posted: 2012-10-25, 18:18
by Tyson
Carsten wrote:
Tyson wrote: Here is the new console.txt

Code: Select all

[...]
Warning: Lua error in call to method OnMouseButtonUp():
Games/DeathMatch/GUIs/MainMenu/MainMenu_main.cgui:668: attempt to call method 'thread' (a nil value)
Ah! That get's us a good step closer! :-)

The fact that it cannot find "thread" is the cause for the program apparently freezing -- in fact if it happens again you should be able to open the console with the F1 key, although that won't solve the problem.

I wonder though why "thread" isn't there.
What does line 668 of the mentioned MainMenu_main.cgui file look like?

And what version of the source code do you use? r561, r625, latest Subversion, ...?
Did you make partial upgrades to an older edition of the source code or something similar?

I made some enhancements to the scripting code recently, some of which were backwards-incompatible with prior versions. I did my best to only ship compressed archives that are self-contained and work properly, but now I'm wondering if there is a bug in one of the packages from the Downloads page.
R625 src (Cafu-src-r625.zip), that might be the problem, since I took the Game, Fonts, CaWE and MISC folders from Cafu-bin-r525-win32.zip.

Line 668 of MainMenu_main.cgui is

Code: Select all

    gui:thread(StartNewGame, WorldName);

Re: Unresolved Externals :S

Posted: 2012-10-25, 18:34
by Carsten
Tyson wrote:R625 src (Cafu-src-r625.zip), that might be the problem, since I took the Game, Fonts, CaWE and MISC folders from Cafu-bin-r525-win32.zip.

Line 668 of MainMenu_main.cgui is

Code: Select all

    gui:thread(StartNewGame, WorldName);
Exactly, that's the problem! ;-)

If you update the MainMenu_main.cgui as indicated here, things should work again as expected.

Note however that it might be worthwhile to use a tool like the very good BeyondCompare to compare the whole r625 release to yours, and to possibly find and fix similar problems. (In the future, when we switch to Git, it should be simpler to both have your own customizations and at the same time follow enhancements in our "official" repository. If you're using Git already or are familiar with it, please let me know.)

Re: Unresolved Externals :S

Posted: 2012-10-25, 18:42
by Tyson
Carsten wrote:
Tyson wrote:R625 src (Cafu-src-r625.zip), that might be the problem, since I took the Game, Fonts, CaWE and MISC folders from Cafu-bin-r525-win32.zip.

Line 668 of MainMenu_main.cgui is

Code: Select all

    gui:thread(StartNewGame, WorldName);
Exactly, that's the problem! ;-)

If you update the MainMenu_main.cgui as indicated here, things should work again as expected.

Note however that it might be worthwhile to use a tool like the very good BeyondCompare to compare the whole r625 release to yours, and to possibly find and fix similar problems. (In the future, when we switch to Git, it should be simpler to both have your own customizations and at the same time follow enhancements in our "official" repository. If you're using Git already or are familiar with it, please let me know.)
I'm familiar with Git, and have used it before. :)
Oh, and do you have an IRC Channel for Cafu? Could be useful.

Re: Unresolved Externals :S

Posted: 2012-10-25, 20:16
by Carsten
Tyson wrote:I'm familiar with Git, and have used it before. :)
Oh, that's very nice!
In the course of our migration from Subversion to Git (Part 1, Part 2), I'm not yet on par with updating our related documentation, but our new, official and permanent Git repository is hosted at Bitbucket at
https://bitbucket.org/cafu/cafu
Feel free to use it! :cheesy:
Oh, and do you have an IRC Channel for Cafu? Could be useful.
We have an IRC channel, but I'm rarely there. Questions etc. are better posted here at the forums, or at the mailing-list.

Re: Unresolved Externals :S

Posted: 2012-10-26, 01:24
by Tyson
Carsten wrote:
Tyson wrote:I'm familiar with Git, and have used it before. :)
Oh, that's very nice!
In the course of our migration from Subversion to Git (Part 1, Part 2), I'm not yet on par with updating our related documentation, but our new, official and permanent Git repository is hosted at Bitbucket at
Feel free to use it! :cheesy:
Oh, and do you have an IRC Channel for Cafu? Could be useful.
We have an IRC channel, but I'm rarely there. Questions etc. are better posted here at the forums, or at the mailing-list.
Okay, thanks.

Oh, another thing, where is the texture for the weapon projectile kept?

Re: Unresolved Externals :S

Posted: 2012-10-26, 14:12
by Carsten
Tyson wrote:Oh, another thing, where is the texture for the weapon projectile kept?
Why do you mean by projectile?