Home » MODDING HQ 1.13 » v1.13 General Development Talk » VS 2017 Solution Compiles .lib? How can I create the exe?
VS 2017 Solution Compiles .lib? How can I create the exe?[message #353311] Mon, 23 April 2018 21:29 Go to next message
ElecMS

 
Messages:13
Registered:November 2009
Hey folks, on the latest SVN version of GameData, and the latest compiled .exe I could find (8555), I am experiencing a game-breaking bug where I can no longer select mercs or groups, or click cancel, on the Strategic Map screen. The list on the far left is clickable, rest of the UI is responsive, but the small dialog when selecting a merc or a group in a sector cannot be interacted with. Thread for that is here http://thepit.ja-galaxy-forum.com/index.php?t=msg&goto=353310&#msg_353310.

In trying to debug this issue (programmer by trade) I grabbed the latest Visual Studio 2017 CE, downloaded the SVN.

Everything seems to build fine, but the VS2017 solution file (also tested 2010) is set to compile to a .lib instead of an .exe - can anyone shed any light on how to compile as an exe?

[Updated on: Mon, 23 April 2018 21:31]

Re: VS 2017 Solution Compiles .lib? How can I create the exe?[message #353314 is a reply to message #353311] Mon, 23 April 2018 22:22 Go to previous messageGo to next message
Flugente

 
Messages:3416
Registered:April 2009
Location: Germany
I haven't had that ever, so no good idea... but perhaps this setting might help?

https://i.imgur.com/YEfqwGP.png



"Is there any way to get the blood to flow up the walls?"
"I don't see why not."

If you want, you can donate to me. This will not affect how and what I code, and I will not code specific features in return. I will be thankful though.


Re: VS 2017 Solution Compiles .lib? How can I create the exe?[message #353315 is a reply to message #353314] Mon, 23 April 2018 22:39 Go to previous messageGo to next message
DepressivesBrot

 
Messages:3807
Registered:July 2009
Also check what your output dirs are in general, they sometimes get set to odd locations when someone forgets to untick a file in svn.



Chat with us!
#bearpit on IRC
Discord
Get your latest 1.13 Builds
(Pls don't use my forum PMs for general game queries)


Re: VS 2017 Solution Compiles .lib? How can I create the exe?[message #353320 is a reply to message #353314] Tue, 24 April 2018 04:29 Go to previous messageGo to next message
ElecMS

 
Messages:13
Registered:November 2009
Got it! Noob mistake, I think, not yet used to VS2017 - needed to select JA2 specifically, looks like I had somehow selected the VFS portion of the project, which is set to build a .lib.

Same thing happened when I tried to start "Local Windows Debugger" via the Play button - it tried to run VFS.lib and failed. I was able to fix this by selecting the JA2 folder, right click, "Set as default", then attempting to build the whole solution.

I can debug line by line now, I believe, but most of the beginning of the startup of the game shows as external code, takes a lot of F10ing to get even to the title screen.

There are a ton of .cpp files - trying to figure out where I can set a breakpoint in order to be able to run normally up to the point where a game is completely loaded.
Re: VS 2017 Solution Compiles .lib? How can I create the exe?[message #353322 is a reply to message #353320] Tue, 24 April 2018 05:02 Go to previous messageGo to next message
ElecMS

 
Messages:13
Registered:November 2009
Has anyone else had success in setting breakpoints and launching via F5 from Visual Studio?

I found the relevant dialog box entry, but it never breaks on the breakpoints I set, and I covered all uses of pMovementMenuStrings, and CreatePopUpBoxForMovementBox. When I alt-tab to Visual Studio, my breakpoint has the following error:
https://preview.ibb.co/kOMBKH/Breakpoint_Fail.jpg

I've also not had success with the Visual Studio context menu feature "Run to Cursor".
Re: VS 2017 Solution Compiles .lib? How can I create the exe?[message #353324 is a reply to message #353322] Tue, 24 April 2018 06:09 Go to previous message
ElecMS

 
Messages:13
Registered:November 2009
I did have success finally by using "Break All" and am now finally stepping through the rendering code for the popup box in question.
Previous Topic: Level Progress too fast?
Next Topic: Food drop in 1.13?
Goto Forum:
  


Current Time: Fri Oct 19 08:29:06 EEST 2018

Total time taken to generate the page: 0.00911 seconds