Home » SIRTECH CLASSICS » Jagged Alliance: Unfinished Business » Vanilla Modding » how do i build an exe from 1.13 source with VS2003 ??
how do i build an exe from 1.13 source with VS2003 ??[message #164324] Mon, 12 November 2007 12:52 Go to next message
haydent is currently offline haydent

 
Messages:265
Registered:November 2007
Location: NSW, Australia
hi ,

im rather new to all this, but have played alot of jag and done some coding in various languaages before...

so im trying something basic and that is to compile the downloaded source before modifying it and see if it will run ...

i have the code in c:\ja2\build\

so i can load up the JA2.sln ok, and im not sure how to compile an exe, but i issue "Build", "Build Solution", and wait ...

sometime later it "finish's" and im left with a heap of new files in Debug folders, but no exe ...

can i get some more documentation/guide on the process or perhaps just some important points i may be missing...

thankyou again.

ps- perhaps 2003 is too old, and if i was to upgrade what version would be best for this code ??


my error log ::

Quote:

c:\ja2\Build\Console\Console.cpp(859): warning C4018: '<' : signed/unsigned mismatch
c:\ja2\Build\Console\Console.cpp(860): warning C4018: '<' : signed/unsigned mismatch
c:\ja2\Build\Console\Console.cpp(3638): warning C4018: '<=' : signed/unsigned mismatch
c:\ja2\Build\Console\Console.cpp(4199): warning C4018: '>=' : signed/unsigned mismatch
c:\ja2\Build\Console\Console.cpp(3679): warning C4018: '>=' : signed/unsigned mismatch
c:\ja2\Build\Console\Console.cpp(4204): warning C4018: '>=' : signed/unsigned mismatch
c:\ja2\Build\Tactical\Militia Control.cpp(127): warning C4101: 'cnt' : unreferenced local variable
c:\ja2\Build\Console\Console.cpp(3193): warning C4244: '=' : conversion from 'DWORD' to 'SHORT', possible loss of data
c:\ja2\Build\Console\Console.cpp(859): warning C4244: '=' : conversion from 'DWORD' to 'SHORT', possible loss of data
c:\ja2\Build\Console\Console.cpp(3234): warning C4244: '=' : conversion from 'DWORD' to 'SHORT', possible loss of data
c:\ja2\Build\Console\Console.cpp(860): warning C4244: '=' : conversion from 'DWORD' to 'SHORT', possible loss of data
c:\ja2\Build\Console\Console.cpp(3233): warning C4244: '=' : conversion from 'DWORD' to 'SHORT', possible loss of data
c:\ja2\Build\Console\Console.cpp(4186): warning C4244: '=' : conversion from 'DWORD' to 'SHORT', possible loss of data
c:\ja2\Build\Console\Console.cpp(3194): warning C4244: '=' : conversion from 'DWORD' to 'SHORT', possible loss of data
c:\ja2\Build\lua\lwstring.cpp(150): warning C4244: 'initializing' : conversion from '__w64 int' to 'int', possible loss of data
c:\ja2\Build\lua\lua.cpp(274): warning C4244: 'initializing' : conversion from 'lua_Integer' to 'int', possible loss of data
c:\ja2\Build\lua\lua.cpp(173): warning C4244: 'initializing' : conversion from 'lua_Integer' to 'int', possible loss of data
c:\ja2\Build\lua\lua.cpp(251): warning C4244: 'initializing' : conversion from 'lua_Integer' to 'int', possible loss of data
c:\ja2\Build\lua\lua.cpp(261): warning C4244: 'initializing' : conversion from 'lua_Integer' to 'int', possible loss of data
c:\ja2\Build\lua\lwstring.cpp(15): warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data
c:\ja2\Build\lua\lwstring.cpp(13): warning C4267: 'initializing' : conversion from 'size_t' to 'int', possible loss of data
c:\ja2\Build\lua\lua.cpp(338): warning C4267: 'initializing' : conversion from 'size_t' to 'int', possible loss of data
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xtree(267): warning C4292: compiler limit : terminating debug information emission for enum 'TileDefines' with member 'FOOTPRINTS47'
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xtree(267): warning C4292: compiler limit : terminating debug information emission for enum 'TileDefines' with member 'FOOTPRINTS47'
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xtree(267): warning C4292: compiler limit : terminating debug information emission for enum 'TileDefines' with member 'FOOTPRINTS47'
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xtree(267): warning C4292: compiler limit : terminating debug information emission for enum 'TileDefines' with member 'FOOTPRINTS47'
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xtree(267): warning C4292: compiler limit : terminating debug information emission for enum 'TileDefines' with member 'FOOTPRINTS47'
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xtree(267): warning C4292: compiler limit : terminating debug information emission for enum 'TileDefines' with member 'FOOTPRINTS47'
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xtree(267): warning C4292: compiler limit : terminating debug information emission for enum 'TileDefines' with member 'FOOTPRINTS47'
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xtree(267): warning C4292: compiler limit : terminating debug information emission for enum 'TileDefines' with member 'FOOTPRINTS47'
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xtree(267): warning C4292: compiler limit : terminating debug information emission for enum 'TileDefines' with member 'FOOTPRINTS47'
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xtree(267): warning C4292: compiler limit : terminating debug information emission for enum 'TileDefines' with member 'FOOTPRINTS47'
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xstring(502): warning C4292: compiler limit : terminating debug information emission for enum 'TileDefines' with member 'FOOTPRINTS47'
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xtree(267): warning C4292: compiler limit : terminating debug information emission for enum 'TileDefines' with member 'FOOTPRINTS47'
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xtree(267): warning C4292: compiler limit : terminating debug information emission for enum 'TileDefines' with member 'FOOTPRINTS47'
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xtree(267): warning C4292: compiler limit : terminating debug information emission for enum 'TileDefines' with member 'FOOTPRINTS47'
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xtree(267): warning C4292: compiler limit : terminating debug information emission for enum 'TileDefines' with member 'FOOTPRINTS47'
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xtree(267): warning C4292: compiler limit : terminating debug information emission for enum 'TileDefines' with member 'FOOTPRINTS47'
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xtree(267): warning C4292: compiler limit : terminating debug information emission for enum 'TileDefines' with member 'FOOTPRINTS47'
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xtree(267): warning C4292: compiler limit : terminating debug information emission for enum 'TileDefines' with member 'FOOTPRINTS47'
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xstring(542): warning C4292: compiler limit : terminating debug information emission for enum 'TileDefines' with member 'FOOTPRINTS47'
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xtree(267): warning C4292: compiler limit : terminating debug information emission for enum 'TileDefines' with member 'FOOTPRINTS47'
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xtree(267): warning C4292: compiler limit : terminating debug information emission for enum 'TileDefines' with member 'FOOTPRINTS47'
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xtree(267): warning C4292: compiler limit : terminating debug information emission for enum 'TileDefines' with member 'FOOTPRINTS47'
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xtree(267): warning C4292: compiler limit : terminating debug information emission for enum 'TileDefines' with member 'FOOTPRINTS47'
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xtree(267): warning C4292: compiler limit : terminating debug information emission for enum 'TileDefines' with member 'FOOTPRINTS47'
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xtree(267): warning C4292: compiler limit : terminating debug information emission for enum 'TileDefines' with member 'FOOTPRINTS47'
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xtree(267): warning C4292: compiler limit : terminating debug information emission for enum 'TileDefines' with member 'FOOTPRINTS47'
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xtree(267): warning C4292: compiler limit : terminating debug information emission for enum 'TileDefines' with member 'FOOTPRINTS47'
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xtree(267): warning C4292: compiler limit : terminating debug information emission for enum 'TileDefines' with member 'FOOTPRINTS47'
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xtree(267): warning C4292: compiler limit : terminating debug information emission for enum 'TileDefines' with member 'FOOTPRINTS47'
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xtree(267): warning C4292: compiler limit : terminating debug information emission for enum 'TileDefines' with member 'FOOTPRINTS47'
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xtree(267): warning C4292: compiler limit : terminating debug information emission for enum 'TileDefines' with member 'FOOTPRINTS47'
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xtree(267): warning C4292: compiler limit : terminating debug information emission for enum 'TileDefines' with member 'FOOTPRINTS47'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\ios(101): warning C4292: compiler limit : terminating debug information emission for enum 'TileDefines' with member 'FOOTPRINTS47'
c:\ja2\Build\Standard Gaming Platform\stringicmp.cpp(37): warning C4800: 'const char' : forcing value to bool 'true' or 'false' (performance warning)

[Updated on: Sat, 24 May 2008 23:21] by Moderator

Report message to a moderator

Master Sergeant

Re: how do i build an exe from 1.13 source with VS2003 ??[message #164351] Mon, 12 November 2007 21:15 Go to previous messageGo to next message
wanne (aka RoWa21) is currently offline wanne (aka RoWa21)

 
Messages:1949
Registered:October 2005
Location: Austria
The EXE is only built if there are no erros in all of the projects. You do not need to care about the warnings.

You can set the output path of your EXE in VS 2003. The output path should be point to your JA2 Installation folder. So you can simple debug your code.

How to change the location of your EXE output file in VS 2003:

Select the ja2 project in your solution explorer -> right click -> properties -> Linker -> General -> Output File:

Set it to something like: C:\Games\Jagged Alliance 2\my_ja2.exe

Report message to a moderator

Sergeant Major

Re: how do i build an exe from 1.13 source with VS2003 ??[message #164360] Tue, 13 November 2007 03:17 Go to previous messageGo to next message
haydent is currently offline haydent

 
Messages:265
Registered:November 2007
Location: NSW, Australia
ahah, funny that, now i look in the directory it hs as defualt:

C:\Games\Jagged Alliance 2\ja2_debug_1020_en.exe

and there's a couple of juicy new exe's from my past build Smile !!

cheers for that, thats sweet !

ps - my brother is the dude making the oblivion multiplayer "mod/loader" and i thought id have a look at Jag for him, as im a big fan and always wanted multiplayer and he has not much time with his new game programming job, but he's done uni and im just an enthusiast but he's offered to help me and i have access to his code not that its needed as much as we have the source code Smile

Report message to a moderator

Master Sergeant

Re: how do i build an exe from 1.13 source with VS2003 ??[message #164405] Tue, 13 November 2007 21:32 Go to previous messageGo to next message
wanne (aka RoWa21) is currently offline wanne (aka RoWa21)

 
Messages:1949
Registered:October 2005
Location: Austria
cool news,
would be awesome to have multiplayer in the game Wink

PS: If you want to debug the code,
a.) Set you windows desktop to 16 BIT
b.) Build the solution with DEBUG


Report message to a moderator

Sergeant Major

Re: how do i build an exe from 1.13 source with VS2003 ??[message #164769] Sat, 17 November 2007 00:33 Go to previous messageGo to next message
haydent is currently offline haydent

 
Messages:265
Registered:November 2007
Location: NSW, Australia
im new to visual studio, and have got ja2 windowed and can run in debug mode, but what can i do with that, ?? what function can i perform by running in debug mode ?? and also how do i get ja2 to display its programmed debugmsg's , such as changing the debug level for the game ??

Report message to a moderator

Master Sergeant

Re: how do i build an exe from 1.13 source with VS2003 ??[message #164879] Sat, 17 November 2007 18:34 Go to previous message
wanne (aka RoWa21) is currently offline wanne (aka RoWa21)

 
Messages:1949
Registered:October 2005
Location: Austria
Debug mode is the god mode for developers. you can set breakpoints by pressing F9 on any line the in the code. You should see a red circle at the left side next to the code window. If the game reaches this line, you can step manually to the lines of code. For example, you can watch the values of variables and see the execution path of the program. In debug mode you can easily track down bugs and get a good understanding of the program flow.
In Visual Studio there is a drop down list in the menu, where you can select Debug or Release mode.

Report message to a moderator

Sergeant Major

Previous Topic: so what is the "Console" folder in the source about ??
Next Topic: Resolved : Compiling files with visual c++ 2005 express; little problem..
Goto Forum:
  


Current Time: Tue Jun 16 18:14:18 GMT+3 2026

Total time taken to generate the page: 0.06571 seconds