92 Commits

Author SHA1 Message Date
mrSkortch
3386d0daa5 Update DB slightRefactor-start
Update not pushed live at time of update due to a few bugs. Wanted to
get commit in.

Fixed typo with mist.utils.NMToMeters causing function not to work.
added Logger 'dbLog' to mist DB code
inserted do-end blocks to make DB code block shorter in length

Purpose of DB updating refactor is to more accurately keep unit tables
updated correctly. In the old system only 'byName' DBs were updated if a
group/unit name was duplicated. So it was possible for multiple units to
share the same name in unitsByNum, byCat, etc.

The process of how it checks added groups and units has been altered
slightly. Groups spawned with player controlled units will not be
updated.

The conditions for whether or not the table gets updated are as follows:

If groupName is already in DB then check if its groupId, country, or
coalition changed. If nothing has changed then it checks if the newly
spawned units exist in a DB entry and if so it will verify if the unitId
ort ype have changed. Any single update prompts the DB to update
accordingly.
2016-05-08 04:20:52 -06:00
mrSkortch
34c4082938 4.2 Release Files 2016-04-19 03:25:09 -06:00
mrSkortch
ff506e0ec2 Changed build number
Changed the build number
2016-03-11 02:29:23 -07:00
mrSkortch
d333ea3d64 Merge pull request #25 from lukrop/alive-units-hotfix
Fix updating of alive units.
2016-03-11 02:24:58 -07:00
Lukas Kropatschek
fc0467f372 Fix updating of alive units. 2016-03-10 15:52:59 +01:00
Lukas Kropatschek
c2fddb436a vim modeline, fixed indention
See https://www.cs.swarthmore.edu/help/vim/modelines.html
2016-03-09 18:55:06 +01:00
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