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 is currently offline 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]

Report message to a moderator

Private
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:3509
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



I know now that it could never work between us, as much as we wanted to, it could never be! Not because you're a rabbit, but because you're black.

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.

Report message to a moderator

Captain

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 is currently offline DepressivesBrot

 
Messages:3658
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)

Report message to a moderator

Captain

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 is currently offline 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.

Report message to a moderator

Private
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 is currently offline 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".

Report message to a moderator

Private
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 messageGo to next message
ElecMS is currently offline 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.

Report message to a moderator

Private
Re: VS 2017 Solution Compiles .lib? How can I create the exe?[message #363593 is a reply to message #353324] Fri, 13 August 2021 21:55 Go to previous messageGo to next message
Asdow is currently offline Asdow

 
Messages:126
Registered:August 2010
On release builds the compiler does a lot of optimizing and there are plenty of cases where small functions get unrolled or reordered which prevents hitting breakpoints set to them. Building a debug build without optimizations should help with that. It's especially fun when you're trying to debug one of the functions hand written in assembly and the compiler decides to reorder some things so the source code's assembly and disassembly from the build do not match. big grin

Report message to a moderator

Sergeant
Re: VS 2017 Solution Compiles .lib? How can I create the exe?[message #364206 is a reply to message #363593] Tue, 18 January 2022 02:20 Go to previous message
Jally3213 is currently offline Jally3213
Messages:3
Registered:January 2022
Is there a better way of installing it for noobs?

Report message to a moderator

Civilian
Previous Topic: Retooling the sound system to play and cycle automatic fire... automatically?
Next Topic: psycho in 1.13
Goto Forum:
  


Current Time: Fri Mar 29 12:53:10 GMT+2 2024

Total time taken to generate the page: 0.01060 seconds