SoftCoder
5e292e931c
- memory leak and a few other minor bug fixes as discovered by coverity scan.
2014-11-30 15:30:02 -08:00
titiger
54905c0e5c
rename getCurrVector() to getCurrMidHeightVector()
2014-11-25 23:40:47 +01:00
titison
bcb3288d74
setLockedUnitForFaction
...
*the actual lua function "setLockedUnitForFaction"
2014-11-15 18:30:48 +01:00
titiger
cf5da4d2b3
fixed lua function getUnitName; added new lua function getUnitDisplayName
2014-08-09 00:48:04 +02:00
titiger
70e01d5e0b
lua commands to shake the cam
...
-- camera-distance-affected=false
shakeCamera(int shakeIntensity, int shakeDuration)
-- camera-distance-affected=true
shakeCameraOnUnit(int shakeIntensity, int shakeDuration , int UnitId)
2014-02-04 21:21:06 +01:00
SoftCoder
37494a9c37
- added new LUA method getFactionPlayerType
2014-01-04 09:34:49 -08:00
SoftCoder
5613b0739e
- added more lua debug info
2013-12-30 14:00:04 -08:00
SoftCoder
853d531d11
- added two new lua methods basxto:
...
storeSaveGameData(name, value)
string loadSaveGameData(name)
2013-12-30 12:55:59 -08:00
SoftCoder
5c90b9148c
- bugfix for saving / loading booleans in a lua table
2013-12-30 09:28:25 -08:00
SoftCoder
97d11a9cfd
- script manager detected errors don't try to translate the error
2013-12-30 08:17:05 -08:00
SoftCoder
5b445ad388
- removed stack trace from script manager methods that create known errors to make error message smaller.
2013-12-30 07:57:51 -08:00
SoftCoder
fda53f47d1
- bugfix for loading scenarios with their own techs
...
- all scenario errors are now caught and shown in a messagebox and game can continue.
2013-12-30 02:01:47 -08:00
SoftCoder
e3996ceb92
- bugfixes for coverity reported issues
...
- new bash parameters for build-mg.sh (in prep for coverity automation)
- updated travis build to use new bash param
2013-12-17 17:35:51 -08:00
SoftCoder
b9d6b38e8f
- coverity based bug fixes - round #1
2013-12-13 23:04:12 -08:00
Mark Vejvoda
66761ba760
- code cleanup based on additional gcc warnings
2013-11-19 06:42:32 +00:00
Mark Vejvoda
9268aaf279
- a few minor bug fixes related to code warnings
...
- code cleanup based on additional gcc warnings
- enabled additional gcc compiler warnings
2013-11-19 06:14:06 +00:00
Mark Vejvoda
4a70fd09e2
added lua method to be able to allow or disallow speed change toggle
...
void disableSpeedChange();
void enableSpeedChange();
bool getSpeedChangeEnabled();
2013-11-07 05:18:21 +00:00
Mark Vejvoda
b190968e6b
- bugfix for save / restore game (spelling mistake)
...
- vc++ warning fixes
2013-11-04 19:16:28 +00:00
Mark Vejvoda
d2ba7b163b
a little refactoring of function names in language class
2013-10-29 06:13:38 +00:00
Mark Vejvoda
ad0fb1d6f7
cleaned up code based on feedback from cppcheck
2013-10-25 05:45:54 +00:00
Mark Vejvoda
53a557d8d1
- fixed mod center image previews in cases where userdata folder was non default
...
- removed commented out old code
2013-10-03 05:44:50 +00:00
Mark Vejvoda
0ead6a36dc
full support for translated techtrees
2013-06-13 08:55:48 +00:00
Mark Vejvoda
b6780d2af7
code cleanup
2013-06-04 04:36:00 +00:00
Mark Vejvoda
7acd500c08
bugfix for a number of legacy divide by 0 conditions discovered by Tiger.
2013-05-28 06:07:35 +00:00
Mark Vejvoda
7ee5d2b300
added a bunch of new lua methods for Tigers new scenario to montior changes to a unit
2013-05-28 00:59:44 +00:00
Mark Vejvoda
fd9ce54063
attempt to fix morph out of synch
2013-05-25 22:44:39 +00:00
Mark Vejvoda
aa69a5818b
added some new lua methods to determine day or night and new event
2013-05-25 20:46:36 +00:00
Titus Tscharntke
3ea6a02d95
no return in void methods
2013-02-05 22:00:50 +00:00
Mark Vejvoda
b178b1d1e9
- fixed messagebox word wrap with lua messages
2012-11-08 23:54:43 +00:00
Mark Vejvoda
61ffcf8252
- cleaned up compiler warning
2012-10-22 06:44:38 +00:00
Mark Vejvoda
64058b17e7
- code cleanup from cppcheck
...
- added more checks when loading models, maps and textures
2012-10-20 07:15:13 +00:00
Mark Vejvoda
011e0263b0
- lots more code cleanup, using safe buffer size code to avoid buffer overflows
2012-10-19 01:31:20 +00:00
Mark Vejvoda
e86cb3aeff
- more code cleanup based on suggestions from cppcheck
2012-10-18 08:16:47 +00:00
Mark Vejvoda
505206059b
- added new lua method for Muwuum:
...
void giveStopCommand(int unitId)
bool selectUnit(int unitId)
void unselectUnit(int unitId)
void addUnitToGroupSelection(int unitId,int groupIndex)
void recallGroupSelection(int groupIndex)
void removeUnitFromGroupSelection(int unitId,int group)
void setAttackWarningsEnabled(bool enabled)
bool getAttackWarningsEnabled()
2012-10-17 20:15:50 +00:00
Mark Vejvoda
e63e634e1e
- added a bit more lua and updated capture enemy flag
2012-10-13 07:33:33 +00:00
Mark Vejvoda
0180aa6bba
- added new lua functions:
...
triggeredCellEventUnitId()
showMarker(int flashCount, int factionIndex, string note, string textureFile,Vec2i pos)
1. The first one can be called in a cell trigger event and tell you which unit triggered the event
2. The second flashes a position in the minimap
2012-10-13 05:06:53 +00:00
Mark Vejvoda
6b324cbb4e
- added second round of security sandboxing for lua scripts (disable a number of other potentially dangerous functions)
2012-10-11 06:10:21 +00:00
Mark Vejvoda
e3e3832070
- added first round of security sandboxing for lua scripts (disable the os library)
2012-10-11 05:17:37 +00:00
Mark Vejvoda
5c0090d488
- bug fixes for free cell lua functions
2012-10-10 19:56:52 +00:00
Mark Vejvoda
4a63060b71
- added two new lua functions:
...
networkSetCameraPositionForFaction(int factionIndex,Vec2i pos)
networkSetCameraPositionForTeam(int teamIndex, Vec2i pos)
2012-10-10 18:28:55 +00:00
Mark Vejvoda
84452f8633
- added new cell trigger lua function to be able to detect when any unit enters or exits a region of cells:
...
int registerCellAreaTriggerEvent(Vec4i pos)
int getCellTriggeredEventAreaEntryUnitId();
int getCellTriggeredEventAreaExitUnitId();
2012-10-10 05:44:14 +00:00
Mark Vejvoda
165f281f92
- added a few new lua functions to check if a cell is free
2012-10-09 20:03:09 +00:00
Mark Vejvoda
5e42c6dc03
- loads of code cleanup based on verbose output from the latest git version of cppcheck
2012-10-06 07:06:40 +00:00
Mark Vejvoda
7c0e10684a
- added lua functions to add / remove cell markers:
...
addCellMarker(0,'test from scenario!','',cellMarker)
param1=factionindex
param2=cell hint
param3=empty string
param4=cellPosition
removeCellMarker(0,{46,13})
param1=factionindex
param2=cellPosition
2012-09-25 07:05:52 +00:00
Mark Vejvoda
76606fbdbe
- allow loading of scenarios and tutorials when there are none (show an error message)
2012-06-30 19:11:54 +00:00
Mark Vejvoda
8fd436b612
- added new lua method to play video's in scenarios:
...
playStaticVideo
2012-05-22 06:17:56 +00:00
Mark Vejvoda
0f25276e6f
- applied patch from MuwuM
2012-05-21 20:15:37 +00:00
Mark Vejvoda
5c0db25c86
- added a few new lua methods to register cell 'areas' for unit or for factions for wciwow
2012-05-02 06:07:11 +00:00
Mark Vejvoda
c8fdc9269f
- fix win32 build
...
- cleanup a lot of win32 compiler warnings
2012-04-16 20:15:57 +00:00
Mark Vejvoda
8c0bf75bf5
- got built in memory leak working. Just edit leak_dumper.h and uncomment:
...
//#define SL_LEAK_DUMP
- got better / more accurate stack dumps when we detect errors in game.
- Both of these need to be worked on in windows next, win32 may not compile for now until i fix it on that platform.
- BE VERY CAREFUL when working in leak_dumper.* it may cause GCC and your system to crash if you don't know what you are doing!
2012-04-14 21:21:09 +00:00