Wanne
9630f0f21f
BUGZILLA #548 : Fixed crash (division to 0) when finishing training of mobile militia
...
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@4582 3b4a5df2-a311-0410-b5c6-a8a6f20db521
2011-07-21 13:58:50 +00:00
Wanne
91087ca8c0
************************************************************
...
* Merged Source Code from Development Trunk: Revision 4063 *
************************************************************
- Source Code is merged from: https://81.169.133.124/source/ja2/branches/Wanne/JA2%201.13%20MP
- This will be the Source for the Beta 2011 Test
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@4064 3b4a5df2-a311-0410-b5c6-a8a6f20db521
2011-01-18 09:11:09 +00:00
Wanne
09ad70f868
*************************************************************************
...
** Merged source code from development (MP+BMP) trunk (Revision: 3352) **
** https://81.169.133.124/source/ja2/branches/Wanne/JA2%201.13%20MP **
*************************************************************************
1 (Rev. 3343)
Changes:
Control hardcoded list of unclickable ("bad") sectors via XML file. (by Realist)
On the strategic map, the player cannot click or highlight specific
sectors (e.g. A4, A5). Introduce a <BadSector> tag in MovementCosts.xml
that flags a sector as "bad". (<BadSector>1</BadSector>)
Files:
/branches/Wanne/JA2 1.13 MP/Build/Strategic/Map Screen Interface Map.cpp
/branches/Wanne/JA2 1.13 MP/Build/Strategic/Strategic Movement Costs.cpp
/branches/Wanne/JA2 1.13 MP/Build/Strategic/mapscreen.cpp
/branches/Wanne/JA2 1.13 MP/GameDir/Data/TableData/Map
/branches/Wanne/JA2 1.13 MP/GameDir/Data/TableData/Map/MovementCosts.xml
/branches/Wanne/JA2 1.13 MP/GameDir/Data-1.13/TableData/Map
/branches/Wanne/JA2 1.13 MP/GameDir/Data-1.13/TableData/Map/MovementCosts.xml
2 (Rev. 3344)
Changes:
Move hardcoded underground sectors initialization to Lua script file. (by Realist)
Locate "initunderground.lua" at data-xyz\scripts ("xyz" subject to change).
Lua script allows easily adding underground sectors at arbitrary locations and defining enemy garrisons and creature population.
Also enables underground bloodcat population.
Files:
/branches/Wanne/JA2 1.13 MP/Build/Strategic/Campaign Init.cpp
/branches/Wanne/JA2 1.13 MP/Build/Strategic/Campaign Types.h
/branches/Wanne/JA2 1.13 MP/Build/Strategic/Queen Command.cpp
/branches/Wanne/JA2 1.13 MP/Build/Strategic/Strategic AI.cpp
/branches/Wanne/JA2 1.13 MP/Build/Strategic/Strategic_2005Express.vcproj
/branches/Wanne/JA2 1.13 MP/Build/Strategic/Strategic_VS2008.vcproj
/branches/Wanne/JA2 1.13 MP/Build/Strategic/UndergroundInit.cpp
/branches/Wanne/JA2 1.13 MP/Build/Strategic/UndergroundInit.h
/branches/Wanne/JA2 1.13 MP/Build/Strategic/strategicmap.cpp
/branches/Wanne/JA2 1.13 MP/Build/Tactical/Soldier Init List.cpp
/branches/Wanne/JA2 1.13 MP/GameDir/Data/Scripts
/branches/Wanne/JA2 1.13 MP/GameDir/Data/Scripts/initunderground.lua
/branches/Wanne/JA2 1.13 MP/GameDir/Data-1.13/Scripts
/branches/Wanne/JA2 1.13 MP/GameDir/Data-1.13/Scripts/initunderground.lua
3 (Rev. 3345)
Changes:
Bugfix: In Method CreateDestroyMouseRegionsForFacilityAssignmentMenu() (by Headrock)
Files:
/branches/Wanne/JA2 1.13 MP/Build/Strategic/Assignments.cpp
4 (Rev. 3346)
Changes:
Changed order of properties in GameSettings.cpp (by Headrock)
HAM 3.6 fixes (by Headrock)
Sorted Data-1.13\ja2_options.ini (by Headrock)
Files:
/branches/Wanne/JA2 1.13 MP/Build/GameSettings.cpp
/branches/Wanne/JA2 1.13 MP/Build/GameSettings.h
/branches/Wanne/JA2 1.13 MP/Build/Laptop/BobbyRGuns.cpp
/branches/Wanne/JA2 1.13 MP/Build/Strategic/Assignments.cpp
/branches/Wanne/JA2 1.13 MP/Build/Strategic/MilitiaSquads.cpp
/branches/Wanne/JA2 1.13 MP/Build/Strategic/Strategic Mines.cpp
/branches/Wanne/JA2 1.13 MP/Build/Strategic/Town Militia.cpp
/branches/Wanne/JA2 1.13 MP/Build/Tactical/Campaign.cpp
/branches/Wanne/JA2 1.13 MP/Build/Tactical/Interface Enhanced.cpp
/branches/Wanne/JA2 1.13 MP/Build/Tactical/Interface Items.cpp
/branches/Wanne/JA2 1.13 MP/Build/Tactical/Items.cpp
/branches/Wanne/JA2 1.13 MP/Build/Tactical/Items.h
/branches/Wanne/JA2 1.13 MP/Build/Tactical/Overhead.cpp
/branches/Wanne/JA2 1.13 MP/Build/Tactical/Soldier Control.cpp
/branches/Wanne/JA2 1.13 MP/Build/Tactical/Soldier Profile.cpp
/branches/Wanne/JA2 1.13 MP/Build/Tactical/Weapons.cpp
/branches/Wanne/JA2 1.13 MP/Build/TileEngine/Explosion Control.cpp
/branches/Wanne/JA2 1.13 MP/GameDir/Data-1.13/Ja2_Options.INI
/branches/Wanne/JA2 1.13 MP/GameDir/INIEditorJA2Options.xml
5 (Rev. 3347)
Changes:
Bugfix: Turns out that the program is saving the number of used Placement Slots to the temp file fine,
but if that number is equal to the limit of how many enemies/civvies are allowed in a sector by the INI settings,
it leads to an assertion error instead when trying to re-load that sector. (by Headrock)
Re-ordered Data/Ja2_Options.INI (by Headrock)
Files:
/branches/Wanne/JA2 1.13 MP/Build/Tactical/Enemy Soldier Save.cpp
/branches/Wanne/JA2 1.13 MP/GameDir/Data/Ja2_Options.INI
6 (Rev. 3348)
Changes:
Translated missing HAM 3.6 German Texts (by systemfehler)
Files:
/branches/Wanne/JA2 1.13 MP/Build/Utils/_GermanText.cpp
7 (Rev. 3351)
Changes:
PlusAI 1.0 Patch (by Headrock)
Files:
/branches/Wanne/JA2 1.13 MP/Build/Tactical/Points.cpp
/branches/Wanne/JA2 1.13 MP/Build/Tactical/Points.h
/branches/Wanne/JA2 1.13 MP/Build/TacticalAI/Attacks.cpp
/branches/Wanne/JA2 1.13 MP/Build/TacticalAI/DecideAction.cpp
/branches/Wanne/JA2 1.13 MP/Build/TacticalAI/FindLocations.cpp
/branches/Wanne/JA2 1.13 MP/Build/TacticalAI/ai.h
8 (Rev. 3352)
Changes:
Bugfix: The DEBUG only setting "fEnableInventoryPoolQ" is now only enabled in a DEBUG version. In all other builds it is set to FALSE.
Files:
/branches/Wanne/JA2 1.13 MP/Build/GameSettings.cpp
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@3354 3b4a5df2-a311-0410-b5c6-a8a6f20db521
2010-03-07 11:37:32 +00:00
Wanne
14750c6903
**********************************************************
...
** Big Maps Projects code (incl. Multiplayer v1.5 **
**********************************************************
- Merged Big Maps Project code from BMP+MP trunk (Revision: 3340)
o Complete SVN Revision history: https://81.169.133.124/source/ja2/branches/Wanne/JA2%201.13%20MP
- Before THIS merge, I made a branch of the existing 1.13 source
o SVN Branch: https://81.169.133.124/source/ja2/branches/JA2_rev.3336/src
- Removed old VS 6.0 and VS 2003 project and solutions files, because compilation is broken long time ago
- I will add VS 2010 projects and solution file in the next few days
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@3341 3b4a5df2-a311-0410-b5c6-a8a6f20db521
2010-02-28 18:38:52 +00:00
Wanne
f010769397
*************************
...
* HAM 3.6 (by Headrock) *
*************************
- Info: Needed GameDir files for HAM 3.6 are not committed yet to the SVN GameDir. Will do that in the next few days
- For more infos on HAM 3.6 check out: http://www.ja-galaxy-forum.com/board/ubbthreads.php?ubb=showflat&Number=244808&page=0&fpart=1
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@3323 3b4a5df2-a311-0410-b5c6-a8a6f20db521
2010-02-20 15:49:46 +00:00
SpaceViking
6f6ffe91f8
Fix problem with invalid X,Y coordinates
...
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@2780 3b4a5df2-a311-0410-b5c6-a8a6f20db521
2009-04-27 23:50:45 +00:00
Wanne
335747c3ff
Added Headrock's HAM 2.8
...
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@2650 3b4a5df2-a311-0410-b5c6-a8a6f20db521
2009-04-01 12:20:30 +00:00
SpaceViking
c486577d89
Bug fix for invalid coordinates problems (outside valid range of 1-16)
...
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@2514 3b4a5df2-a311-0410-b5c6-a8a6f20db521
2009-01-17 02:40:59 +00:00
SpaceViking
f26095d86f
Space Viking's many mercs changes plus numerous generic bug fixes
...
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@2498 3b4a5df2-a311-0410-b5c6-a8a6f20db521
2009-01-15 01:26:13 +00:00
haydent
66d55cf08a
* fixed bullet artifacts and removal !
...
* hopefull disable of grenades
* added a LOS check from your mercs to a door to see if it should be animated or not.
* looked into the "ENEMY_ENABLED" issue, it is not double defined, the one in network.h is part of a struct and not connected. made some changes to do tests for ==0 or ==1 rather than boolean. but i believe there must be some misunderstanding possibly. ENEMY_ENABLED only enables or disables the enemy AI, And only when coop is enabled... when its not there is no ai whatsoever, but you can still get into deathmatch battle under the various ini settings.
enjoy, the bullets are finishing themselves off much better now ! :)
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@2168 3b4a5df2-a311-0410-b5c6-a8a6f20db521
2008-05-16 08:36:19 +00:00
lalien
3e22dce318
Merged Multi Player Project into main branch
...
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@2144 3b4a5df2-a311-0410-b5c6-a8a6f20db521
2008-05-12 08:20:47 +00:00
lalien
43ca24dda8
Merged New Inventory Project into main branch
...
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@1871 3b4a5df2-a311-0410-b5c6-a8a6f20db521
2008-03-08 15:15:25 +00:00
SpaceViking
10208ca5af
Bug fix for militia movement on strategic screen not setting group ID for battles.
...
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@1312 3b4a5df2-a311-0410-b5c6-a8a6f20db521
2007-09-04 04:06:23 +00:00
Overhaul
b07d18f9f4
Editor: Disable light sprites that are not in bounds. Actually happens in some sectors (ie Drassen)
...
Editor: Fix for use of uninitialized variable in undo
Editor: Fix for clipping bounds that are offscreen (causes crash)
Fix for AP bonus reading from INI
Fix mine indexes when looking for creature infestation of mines
Final (?) fix for militia reinforcements. Also a change: If you refuse reinforcements, none will come for the entirety of the battle
Increase size of cover and LOS grids to fit max radius
Fix for uninitialized light level in DistanceVisible
Move CheckForEndOfBattle to end of ReduceAttackBusy, to remove a possible militia invalidate upon promotion
Change the way Alt-L handles reloading
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@1142 3b4a5df2-a311-0410-b5c6-a8a6f20db521
2007-08-01 08:58:34 +00:00
Overhaul
c462fd7744
More detailed error messages for failed saves
...
Yet another phantom militia fix
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@1124 3b4a5df2-a311-0410-b5c6-a8a6f20db521
2007-07-26 05:26:38 +00:00
Overhaul
9d71fc89f0
Massive effort to reign in militia problem. Still has issues :(
...
Fix: If only some of mercs go to a lower level (mine, basement, etc) but do not choose to "GO TO SECTOR", sector is still inaccessible from strategic map. However, watch for triggers that might happen on first visit to a sector, that fail.
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@1076 3b4a5df2-a311-0410-b5c6-a8a6f20db521
2007-07-19 08:33:17 +00:00
Overhaul
d318885593
Brute force to finally make militia show up when they're supposed to
...
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@1035 3b4a5df2-a311-0410-b5c6-a8a6f20db521
2007-07-09 08:58:56 +00:00
Overhaul
7a27e7105d
New attack busy system
...
Added missing #includes
Added LUA scripting and console
Changed the way tracers are visualized, so they work more like real tracers instead of a light fountain
Fixed signedness of many grid variables used in GetMouseMapPos calls
Fixed enemy weapon choosing: Sometimes a mortar is chosen but later rejected, but the grenade class was not reset. Caused assertion failure
Added checks so enemies don't try to chuck RPG grenades with their hands
Now possible to shoot a someone in the head if he's in water
Fixed InitSightArrays to also clear soldier interrupt duel points. This was causing an assertion failure elsewhere in the code because the interrupt list still had soldiers on it sometimes when this function was called.
Soldiers are much less willing to forfeit their turn over an attempt to use more APs than they have
Removed early setting of muzzle flash. This would allow enemies to get an interrupt before you even fired.
Fixed item dropping by AI. If AI tried to drop something while standing it would cause deadlock
Change to greatly speed up closing the sector inventory window in an unloaded sector
Added conditional compile flag to always give robot weapon ready advantage, even for 360 degree sighting
Check builddefines.h for the conditional flags. Of greatest interest might be LUA_CONSOLE. This will cause the game to bring up a command console when run. However this console is severely lacking in many areas. If anybody knows of an open-source terminal/console that could be used instead, it would be appreciated. The existing console does bad things when you try to close it, and since it counts as a separate app, it pauses the game while it has focus.
LUA scripting is very limited, basically just proof of concept. There is one global variable, the Soldiers array. An array index gives you the soldier in that slot in the currently loaded sector. The soldier has a few things that can be accessed: name (short name); fullname (long name); grid (current grid #, can be changed); walkto(grid) (function to walk to another grid); runto(grid) (function to run to another grid)
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@924 3b4a5df2-a311-0410-b5c6-a8a6f20db521
2007-06-09 09:01:04 +00:00
AcyForsythe
f9fe75d5e7
- Added INI options for RESTRICT_ROAMING and REVEAL_ITEMS_AFTER_COMBAT
...
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@857 3b4a5df2-a311-0410-b5c6-a8a6f20db521
2007-04-25 22:45:10 +00:00
AcyForsythe
75b16dbdee
- Added Wanne's Landmine bugfix
...
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@608 3b4a5df2-a311-0410-b5c6-a8a6f20db521
2006-10-29 17:27:03 +00:00
AcyForsythe
50f6bb35ed
- Added options for delaying veteran militia training and mobile militia training. - Added cost modifiers to promoting green militia to regular and promoting regular to veteran.
...
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@595 3b4a5df2-a311-0410-b5c6-a8a6f20db521
2006-10-08 05:31:39 +00:00
AcyForsythe
324e3c32db
- Cleaned up the militia code a bit, boolean logic at midnight with no coffee can be a little sloppy. Re-tested mobile militia/veteran militia changes.
...
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@588 3b4a5df2-a311-0410-b5c6-a8a6f20db521
2006-10-02 02:37:26 +00:00
AcyForsythe
11b2e75e32
- Added INI Setting and ability to manually train mobile militia at a cost
...
- Added INI setting and ability to train veteran militia
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@586 3b4a5df2-a311-0410-b5c6-a8a6f20db521
2006-10-01 06:52:06 +00:00
Lesh
6df124efd7
- code cleanup mostly from Brent Johnson (Nonomori), a very few from me
...
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@508 3b4a5df2-a311-0410-b5c6-a8a6f20db521
2006-09-06 19:10:08 +00:00
lalien
1c5b7f7a4b
- fix for HE ammo
...
- fix for militia reinforcements not working in cities
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@349 3b4a5df2-a311-0410-b5c6-a8a6f20db521
2006-07-17 16:39:48 +00:00
lalien
b68df576ac
- bug fix: No militia are present in the sector (not city sector) for the battle, even though they do appear on the strategy map. Happens when mercs are in sector and a militia group arrives.
...
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@313 3b4a5df2-a311-0410-b5c6-a8a6f20db521
2006-06-29 17:34:06 +00:00
lalien
561a3c9747
- externalized settings for mobile militia
...
- made default militia settings less aggressive
- added a message for breaking locks/doors
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@147 3b4a5df2-a311-0410-b5c6-a8a6f20db521
2006-05-31 20:04:47 +00:00
lalien
6b89c64a4d
- moving militia bug fix: militia was not in sector at battle start
...
- changed militia orders to ONGUARD when entering the sector
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@146 3b4a5df2-a311-0410-b5c6-a8a6f20db521
2006-05-31 17:43:34 +00:00
lalien
88d8b484f5
Little Alien
...
- New files for militia
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@61 3b4a5df2-a311-0410-b5c6-a8a6f20db521
2006-05-10 22:44:00 +00:00