86 Commits

Author SHA1 Message Date
Lukas Kropatschek
6761878ce3 fix missing line number and func name 2016-03-09 18:46:37 +01:00
Lukas Kropatschek
3c9da5754b Replaced spaces with tabs. Removed trailing spaces. 2016-03-05 17:04:27 +01:00
Lukas Kropatschek
5fdaa269fd Fix logger if debug module is sanitized. 2016-03-05 13:24:48 +01:00
mrSkortch
f74c5b488a Whoops
Derp. That was silly of me.
2016-01-18 05:00:53 -07:00
mrSkortch
b8da182cb8 FlagFuncs changes
The old flagFuncs required 'stopflag' to be all lower case. I've changed
it so that the camel case spelling is also accepted. stopFlag

added camelCase named versions of flagFuncs. These are functions that
simply call the default functions that use '_' between words.
2016-01-18 04:48:07 -07:00
mrSkortch
b40a919bb0 Fixed the botched merge
There was a conflict on merging lukrop's commit. I've fixed it and made
some other changes.

-Retabulated entire file. Fans of terrible drink from the 90s rejoice.
-Moved the mist init message back to the end of file and into the old
format.
-Commented out several of the new log:info statements that replaced old
commented out print statements.
2016-01-18 04:33:36 -07:00
mrSkortch
e312ec70c3 Merge remote-tracking branch 'origin/development' into development
# Conflicts:
#	mist.lua
2016-01-18 03:38:47 -07:00
mrSkortch
2a0ab57480 commited apparent local change so I can compare stuff 2016-01-14 03:31:38 -07:00
Lukas Kropatschek
9dd046dbce added msg log function 2016-01-13 14:10:28 +01:00
Lukas Kropatschek
a11b254bbd consistent variable naming 2016-01-13 13:44:43 +01:00
Lukas Kropatschek
57613f0aab save some more brackets and quotes 2016-01-13 12:06:39 +01:00
Lukas Kropatschek
74b1e9fcc0 Some more ldoc 2016-01-13 11:28:08 +01:00
Lukas Kropatschek
12f2a39465 actually fix groupTableCheck 2016-01-13 00:36:04 +01:00
Lukas Kropatschek
864e89d43b fixed groupTableCheck and added some ldoc 2016-01-12 20:23:36 +01:00
Lukas Kropatschek
42e67cf481 logger now allows log messages >= 4096 chars
when displaying big tables they often got cut off before
their end. This is avoided by splitting log messages at the
4000th char.
2016-01-12 14:59:33 +01:00
Lukas Kropatschek
f1a3c3e0f2 moved db initialization to init and made it local 2016-01-11 23:50:27 +01:00
Lukas Kropatschek
4370fb3c72 move classes to the bottom, some more ldoc 2016-01-11 22:38:52 +01:00
Lukas Kropatschek
b10b56aa95 save some brackets and single quotes.
they are an endangered species 😁
2016-01-11 20:28:30 +01:00
Lukas Kropatschek
1aa6948db4 use new logger
though most of those debug messages could probably be removed.
2016-01-11 19:31:16 +01:00
Lukas Kropatschek
e1c5516a8e Sync with upstream
Merge upstream branch 'upstream/master'
2016-01-11 19:17:13 +01:00
Lukas Kropatschek
cf911a7dfa Merge branch 'ldoc' 2016-01-11 18:42:51 +01:00
mrSkortch
69190060e5 V4.1 Release
Commits for v4.1 to be sent to release branch
2016-01-11 03:48:47 -07:00
Lukas Kropatschek
a7a9cb6808 fixed new call 2016-01-09 20:52:12 +01:00
Lukas Kropatschek
4d0617a963 improved logger 2016-01-09 20:26:38 +01:00
Lukas Kropatschek
c62b6c0cf6 more ldoc 2016-01-08 15:09:49 +01:00
Lukas Kropatschek
b0a34ffcc1 more ldoc, made doScheduledFunctions local 2016-01-07 23:32:54 +01:00
Lukas Kropatschek
e5a89d2d38 added description 2016-01-07 22:06:31 +01:00
Lukas Kropatschek
5803be3904 switched to new logger
created a init function, creating a logger and calling main
2016-01-07 21:07:57 +01:00
Lukas Kropatschek
33aa8ec3d5 fixed indention 2016-01-07 13:57:08 +01:00
Lukas Kropatschek
337d93b2aa introduced scopes simulating different files.
Using scopes for various groups of functions simulating files.
Allows for use of some local functions and better organization. Using a editor
which is capable of folding this huge file gets way easier to navigate.
2016-01-07 13:05:27 +01:00
Lukas Kropatschek
750e06d42f some more ldoc 2016-01-07 11:20:10 +01:00
Lukas Kropatschek
f269f2cb0a added ldoc for debug and vec functions 2016-01-06 17:33:12 +01:00
Lukas Kropatschek
2e198095e9 completed utils ldoc 2016-01-06 04:39:20 +01:00
Lukas Kropatschek
7dcb0eb144 fixed logger and added alert 2016-01-06 03:15:10 +01:00
Lukas Kropatschek
08b8811e31 fixed/enhanced logger and added some ldoc 2016-01-06 00:49:30 +01:00
Lukas Kropatschek
e19c4f4c2c implemented basic logger 2016-01-05 23:29:22 +01:00
Lukas Kropatschek
6e7f5e3a3d added some ldoc 2016-01-05 20:50:26 +01:00
Lukas Kropatschek
cbea703141 some more newlines removed 2016-01-05 18:43:23 +01:00
Lukas Kropatschek
752720c8ee coherant function names in CamelCase 2016-01-05 14:30:02 +01:00
Lukas Kropatschek
d7b77b1201 use coherent function defintion style 2016-01-05 14:06:22 +01:00
Lukas Kropatschek
78d55fc699 use coherent function defintion style 2016-01-04 21:02:01 +01:00
Lukas Kropatschek
52304e9fef cleanup some comments 2016-01-04 20:03:22 +01:00
Lukas Kropatschek
f80eb3ed10 fixed mixed-indention, removed trailing spaces 2016-01-04 19:24:56 +01:00
mrSkortch
9bfeca1495 v60
-Fixed issue with country names in the editor not matching enum country
name values. For example "Best Korea" could not match with "BEST_KOREA".
Thanks lukrop of this fix
-Fixed locality issue with mist.getNorthCorrection
-Added function mist.utils.unitToWP
-added function mist.utils.vecToWP

Both of these functions deal with creating a WP table from the passed
values. unitToWP also returns a speed variable based on the current
velocity of the unit.
2015-12-23 22:14:51 -07:00
mrSkortch
5af7e9d7b4 v59
-removed the new 3rd variable from mist.utils.getDir and just made the
2nd variable optional instead
-Added check to DB update functions to only update if data from the
group has changed from what is currently in the
DB. This fixes an issue I had where some data was lost if you spawned a
group normally after mission start and then
used a respawn, clone, or teleport function on said group
-fixed issue with dynAdd functions naming a group with the country ID
insead of country name
-added mist.getAvgPoint(). Function is similar to mist.getAvgPos except
it uses raw vec2/3 coordinates instead of
units
-added mist.utils.roundTbl() Has the same input values as
mist.utils.round except it accepts a table and it rounds all
numbers in the first level of the table to the passed percision.
2015-10-24 01:51:02 -06:00
mrSkortch
d9f5f24632 Minor additions to existing functions
-added optional variable to mist.utils.getDir() If present this function
will return the "raw" heading, this is useful in assigning the heading
variable within a task.

-mist.utils.makeVec3 now supports being given a table in WP format.
Specifically it now coverts a table {x, y, alt) to vec3
2015-10-21 03:32:01 -06:00
mrSkortch
71de3f5b53 v4 hotfix 1
v4 hotfixes
2015-10-15 00:04:39 -06:00
mrSkortch
40100072a8 Merge pull request #18 from ciribob/master
Fix for Vec3 related typo in groupRandomDistSelf
2015-10-14 23:08:24 -06:00
Ciaran Fisher
d636f64cbd Not sure if this is a bug...
Not sure if this is a bug
2015-10-14 11:22:18 +01:00
mrSkortch
ee76538575 v56
Minor bug fix for dynAdd functions with regard to new countries in the
simulator
2015-10-03 19:45:00 -06:00