Mark Vejvoda
b3a9ad5411
fixed some vc++ compiler warnings
2013-11-14 13:56:05 +00:00
Mark Vejvoda
bbe7042b2d
fixed loading scenario to read lua number as a float
2013-09-19 07:12:48 +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
Mark Vejvoda
87a4eb49e4
- fixed lua 5.2 code for save / load games
...
- cmake now prefers lua 5.2 over 5.1
2013-02-16 21:20:09 +00:00
Mark Vejvoda
790400938d
- test to see if we get better info on windows for unknown errors
2013-01-18 01:12:32 +00:00
Mark Vejvoda
8979219f43
- patch to support lua 5.2 (from opensuse)
2012-11-21 15:22:15 +00:00
Mark Vejvoda
8a0390db35
- cleanup compiler warnings
2012-11-10 07:31:21 +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
e63e634e1e
- added a bit more lua and updated capture enemy flag
2012-10-13 07:33:33 +00:00
Mark Vejvoda
86c083837b
- add lua's io package to unsafe list
2012-10-12 14:10:19 +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
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
1c211e4ce6
- lots of code cleanup from the cppcheck
2012-09-22 20:13:57 +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
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
2a1ee15a54
- applied patch for lua 5.2
2012-04-26 00:46:49 +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
Mark Vejvoda
5b5d753341
- bugfixes for save / load game bugs reported
2012-04-02 15:02:44 +00:00
Mark Vejvoda
c02c90427b
- added some more lua commands:
...
vector<int> getUnitsForFaction(factionIndex,commandTypeName, field)
int getUnitCurrentField(unitId)
2012-03-30 07:10:14 +00:00
Mark Vejvoda
f7423608ce
- bugfix for lua strings
2012-03-30 01:48:41 +00:00
Mark Vejvoda
f3df72bb14
- added a new function to correct some file paths when loading a saved game from another persons computer (may need more tweaking)
...
- added support for saving and loading tables from Lua
2012-03-29 18:14:25 +00:00
Mark Vejvoda
9286130138
- bugfixes and code cleanup found using cppcheck
2012-03-28 06:25:57 +00:00
Mark Vejvoda
4f1bee5aea
- attempt to save and load scenario info in saved games
2012-03-26 06:48:58 +00:00
Mark Vejvoda
510ee7dfff
- bugfixes for loading XML and not dropping newlines
...
- started work on trying to save lua state (global variables only)
2012-03-15 20:48:27 +00:00
Mark Vejvoda
2e6fcb2d4a
- comment out lua console debugging
2012-01-04 23:21:06 +00:00
Mark Vejvoda
9852325da6
- fixed Martiño Figueroa's name in all copyrights in source code
...
- added copyrights to files that were missing it
2011-12-14 07:40:48 +00:00
Mark Vejvoda
3b56aa4475
- performance changes... (problem found by titi) most debug calls line are skipped when the debug flag is disabled even BEFORE getting into the handledebug method.
...
This improves performance VERY MUCH.
2011-03-28 03:54:23 +00:00
Mark Vejvoda
362ae6f4fa
- attempt to see if this fixes some lua problems
2010-10-21 22:12:05 +00:00
Mark Vejvoda
cbe6860826
- more compiler warning cleanup
2010-10-21 16:36:26 +00:00
Mark Vejvoda
06b9d7eef7
- cleaned up a whole pile of compiler warnings
2010-10-21 15:21:46 +00:00
Titus Tscharntke
15c6ea93b3
Bugfix for lua related crash
2010-10-12 10:20:00 +00:00
Mark Vejvoda
2519588148
- attempt to fix lua code that might be crashing the game
2010-10-11 23:39:44 +00:00
Mark Vejvoda
fd4054e345
- attempt to fix lua code that might be crashing the game
2010-10-11 23:33:03 +00:00
Mark Vejvoda
3a94f1506f
- attempt to fix lua code that might be crashing the game
2010-10-11 23:24:10 +00:00
Mark Vejvoda
3963b99e37
- yaahhoo, now we properly detect invalid LUA functions etc for scenarios
2010-10-09 10:43:23 +00:00
Mark Vejvoda
66725ad22d
- added new commandline parameter: --lua-info
2010-10-06 23:40:26 +00:00
Mark Vejvoda
0d050f62d4
- added code to now output all eerors to console (with option to save in log file)
...
- added more LUA debug info
2010-10-06 20:22:06 +00:00
Mark Vejvoda
4d372c12bc
- added more LUA support and fixed parameter passing of Vec2i types with streflop
...
New LUA methods:
DisplayFormattedText
getAiEnabled
getHungerEnabled
startPerformanceTimer
endPerformanceTimer
getPerformanceTimerResults
2010-08-28 20:52:25 +00:00
Mark Vejvoda
908b155d62
some changes to how we use streflop:
...
- Removed all unneeded includes of cmath
- added proper wrapper classes for lua calls to toggle streflop back and forth
- some code cleanup
2010-05-28 05:31:17 +00:00
Mark Vejvoda
677da7f9d5
uncommented some streflop restore statements in lua calls
2010-05-02 14:49:58 +00:00
Mark Vejvoda
7b9036345b
streflop updates
2010-05-01 21:07:17 +00:00
Mark Vejvoda
e05062d6ea
hopefully the bugfix for lua problems and streflop
2010-05-01 20:37:25 +00:00
Mark Vejvoda
04bb6659ce
Added more debugging and option to disable new streflop usage.
2010-05-01 20:14:25 +00:00
Mark Vejvoda
43c3f2457e
Code Restructuring to make mega-glest more standard
2010-03-12 05:20:53 +00:00
Titus Tscharntke
0ce9b5fcac
initial version ( megaglest 3.2.3-beta3 )
2010-01-22 01:45:58 +00:00