Commit graph

15295 commits

Author SHA1 Message Date
Pali Rohár
76b13c8cf3 Fixed building debian packages 2011-08-08 17:13:43 +02:00
Pali Rohár
b2e8cb9a90 Fixed gameheaders 2011-08-08 15:47:57 +02:00
Pali Rohár
5e35702ba9 Added Stratagus Game headers file for easy creating Game Launchers and Maemo Extractors 2011-08-08 15:28:05 +02:00
Pali Rohár
3ad80c26dc Fixed compiling Stratagus on Mac
This fixed bug: https://bugs.launchpad.net/stratagus/+bug/816573
2011-07-27 11:17:09 +02:00
Joris Dauphin
2a313e217b Fix some action with big units (TileSize > (1;1))
Fix regression whan AI should attack with transporter.
2011-07-18 12:54:15 +02:00
Joris Dauphin
de0530e856 Some Clean up in Ai Module
Fix missing RefDecrease in AiForce
Remove unused flag MustTransport
remove Big unused Array units_with_resource[MaxCost][UnitMax] in AiCollectResources
2011-07-07 12:40:27 +02:00
Joris Dauphin
e42b3eb6a4 Clean up AStarMarkGoal (use no memory)
(equivalent change from MapSight).
2011-06-30 18:55:21 +02:00
Joris Dauphin
ef87453c43 - Fix assert when ChangeOwner is called (with MarkUnitGuard).
- Clean up MapSight (no use of memory)
2011-06-28 19:02:12 +02:00
Pali Rohár
f5b84baa6d Remove old makefile src/network/Module.make 2011-06-18 13:23:35 +02:00
Joris Dauphin
88713cf8dc - Remove Macro MAGIC_FOR_NEW_UNITS
- Remove UnitType parameter "MaxMana"
Use (in Spell.lua)
DefineVariables("Mana", {Max = 255, Value = 84, Increase = 1, Enable = false})
and replace  MaxMana = 255 by Mana = {Enable = true} in UnitType definition.
2011-06-15 19:12:54 +02:00
Joris Dauphin
827b97b001 [minor] : Some clean up 2011-06-14 19:25:21 +02:00
Joris Dauphin
fb340d8646 Reactivate code deleted with cybermind patch.
[-] Removed game namespace writing in SavePreferences
2011-06-09 19:19:43 +02:00
Joris Dauphin
0708108029 Remove commented code 2011-06-09 19:12:52 +02:00
Joris Dauphin
8e23460fc4 Fix compilation for msvc
Fix some warning with gcc
2011-06-09 19:11:34 +02:00
Pali Rohár
5db6a09d33 Added Lua function DebugPrint - same as C macro DebugPrint 2011-05-28 21:41:16 +02:00
Pali Rohár
a547a0d628 In macro DebugPrint show function name too 2011-05-28 21:39:52 +02:00
Pali Rohár
6bdc538a9d Moved hardcoded unit-types unit-human-wall and unit-orc-wall from Stratagus to games
UnitTypeHumanWall and UnitTypeOrcWall are exported to lua
2011-05-28 20:33:49 +02:00
Pali Rohár
487b2eba4c Revert back SendCommandSetResource after merge 2011-05-28 19:46:29 +02:00
Pali Rohár
cf7b01d1e8 Removed $Id$ from master.cpp after merge 2011-05-28 19:34:41 +02:00
Pali Rohár
5294d7bf92 Merge boswars network submodule from branch lp:~pali/stratagus/boswars-network-merge
Merge network submodule from boswars-engine to stratagus
2011-05-28 19:32:15 +02:00
Pali Rohár
0b1acf6aae Set default mouse scroll speed to 8 2011-05-28 18:12:21 +02:00
Pali Rohár
b052e77b30 Default value of MaxHarvesters is unlimited (=0) 2011-05-28 17:48:55 +02:00
Pali Rohár
8c82867743 In Stratagus Usage show argv[0] 2011-05-28 13:27:27 +02:00
Pali Rohár
ab05394bc0 Fixed crashing metaserver at first start 2011-05-28 13:26:27 +02:00
Pali Rohár
f2e8a3b060 Added support for animating resource container when harvesting 2011-05-28 02:52:52 +02:00
Pali Rohár
568a42bdeb Do not crash if two workers enter the mine which have resources only for 1 worker 2011-05-28 02:46:20 +02:00
Pali Rohár
1da7882518 Fixed compilation warning: deprecated conversion from string constant to ‘char*’ 2011-05-28 00:28:16 +02:00
Pali Rohár
928dda87da Merged big stratagus patch from branch lp:~stratagus/stratagus/doom-wars
changelog
[+] added
[*] modified
[-] bugfix or some change/remove

[+] Shield points for units as in Starcraft
It's possible to ignore target's shield points if ShieldPiercing flag set on attacker
[+] New animations which depend on current unit's health(or below)
Usage: animation_currentHP (Example Still_50 = {...})
[+] Death types and damage types
It's possible now to make "burning" weapon and add additional Death states to unit's animation (like unit burns)
Also you can define new death sounds depend on attacker's damage type.
You need to define additional death types through DefineExtraDeathTypes(death_type1,death_type2,...)
[+] MaxHarvesters field in unittype definition which can set how many workers can harvest some resource inside building at same time (like gold)
[+] New "spawn-missile" action type in DefineAnimations.
It can spawn some missile on unit's center (Example "spawn-missile missile-explode")
[+] Custom cursor for buttons 
Use ButtonCursor field in DefineButton
[+] Description for buttons
Use Description field in DefineButton
[+] Custom sound on button click
Use CommentSound field in DefineButton
[+] New variables in CPreference
ShowMessages : used to show game messages
BigScreen : used to hide ingame panels
[+] SaveCargo boolean in unittype: if set, unit unloads his units inside on death 
[+] Revert back SetMouseScrollSpeed
[+] New Color field for CompleteBar in DefinePanelContents
[*] If you set player's resources through SetPlayerData, the game writes information about it into replay log
TO-DO: need to fix cheats.lua in Stratagus games using Players[x].Resources[y] instead of SetPlayerData to prevent replay desync
[*] If need to construct some mine on resource (like oil patch), the game doesn't check surroundings (for AI)
[*] Events now show colour circle on minimap depending on event priority
[*] Increased unit limits
[*] Missile transparency now can vary
[*] The '*' key on additional panel sets game speed to 100
[*] "RegenerationRate" and "Player" variables in Get(Set)UnitVariable
[-] Fixed incorrect building construction (it was impossible to destroy building while it has been constructing)
[-] Fixed compilation in MSVC
[-] There are no magic for new units
[-] Some changes which need only for Doom Wars
[-] Removed game namespace writing in SavePreferences
[-] Fixed a crash if trying to track unit if nothing selected
2011-05-28 00:16:22 +02:00
Pali Rohár
90a7cad1e1 Updated man page for stratagus 2011-05-28 00:14:10 +02:00
Pali Rohár
bfa383273b Skip title screens when specified map from command line 2011-05-27 22:50:33 +02:00
Pali Rohár
61c92f48c0 Enable file saving exceptions again 2011-05-27 22:06:28 +02:00
Pali Rohár
bbd7fcd4e1 Show error message and exit if editor control file not exists 2011-05-27 22:05:36 +02:00
Pali Rohár
07b20dfce3 Return -1 when SaveGame failed 2011-05-27 22:04:38 +02:00
Pali Rohár
93f5ca8769 Fixed compilation warnings in metaserver 2011-05-27 21:54:13 +02:00
Pali Rohár
9aef91d48a Added maemo source files to group in CMake
Doxygen fix for maemo
2011-05-24 22:51:58 +02:00
Pali Rohár
d7b5cc6b87 Generate doxygen documentation to build directory
Added rules for CMake to install documentation and man page
Fixed debian control files for these changes
2011-05-24 22:50:07 +02:00
Pali Rohár
ab884279f6 Fixed Maemo code 2011-05-23 22:50:39 +02:00
Pali Rohár
d078ff4196 Move Maemo platform code to files maemo/maemo.cpp and include/maemo.h 2011-05-23 22:41:19 +02:00
Pali Rohár
d58105c1fb Moved touch screen input code from USE_MAEMO to #ifdef USE_TOUCHSCREEN
Now it is possible to compile Stratagus with touchscreen input on other then Maemo platform
2011-05-23 19:50:57 +02:00
Pali Rohár
b9945422a3 Clean duplicate hardcoded code for setting resolution on Maemo 2011-05-23 19:20:20 +02:00
Pali Rohár
8584f073c1 Fixed stupid bug with aspect ratio on Maemo 2011-05-23 19:08:59 +02:00
Pali Rohár
ad128f48fc Update info about Stratagus dependences 2011-05-23 18:51:26 +02:00
Pali Rohár
db38820eae Fixed command line stratagus options
Changed option -v for video mode resolution to format <xres>x<yres>
2011-05-23 18:38:31 +02:00
Pali Rohár
f370f3859b Do not show lot of Doxygen generating messages
Disable generating Doxygen documentation by defaut
2011-05-23 18:12:24 +02:00
Pali Rohár
75874faa32 Added more verbose message about status in CMake 2011-05-23 17:55:14 +02:00
Joris Dauphin
51b49e606c Merge modification made by mistake into stratagus-cmake branch (no conflict) 2011-05-23 19:53:01 +02:00
Joris Dauphin
6b5b122f57 Fix VS warning : C4099: 'CDrawProxy' : type name first seen using 'class' now seen using 'struct' 2011-05-23 13:03:48 +02:00
Joris Dauphin
0fc191ef93 Remove unused member CMap::Visible (duplicated of CMapField::Visible). 2011-05-23 13:00:40 +02:00
cybermind
0014f94069 Added changes to branch 2011-04-18 21:53:15 +06:00
Pali Rohár
5dbcb2f049 Merge stratagus-cmake branch into trunk 2011-04-13 17:58:48 +02:00