1
0
mirror of https://github.com/veden/Rampant.git synced 2024-12-28 21:08:22 +02:00
Commit Graph

536 Commits

Author SHA1 Message Date
Aaron Veden
d462e8f32d
added raiding ai state to lower temperament 2021-12-10 13:32:14 -08:00
Aaron Veden
04526dda70
kamikazeThreshold for settlers using settler max group size 2021-12-10 13:30:11 -08:00
Aaron Veden
2379298259
siege groups now detect player structures on nextAttackChunk 2021-12-10 13:23:52 -08:00
Aaron Veden
3f2bfab67c
kamikaze settlers are 2.5x more likely during siege state 2021-12-10 11:51:39 -08:00
Aaron Veden
70df318897
tweaked state chances under 0.2 temperament 2021-12-10 11:22:07 -08:00
Aaron Veden
f413fc567e
fixed onslaught not using raid nests 2021-12-10 11:14:29 -08:00
Aaron Veden
f4d632b993
siege now sends some raiding squads 2021-12-10 11:12:54 -08:00
Aaron Veden
0767637f92
siege state only uses raid and active spawners now 2021-12-10 11:06:31 -08:00
Aaron Veden
97af8d9093
siege squad move towards players only 2021-12-10 10:58:49 -08:00
Aaron Veden
0d146d42d0
temperament point bonus tweak 2021-12-10 10:55:17 -08:00
Aaron Veden
c3355d136d
moved temperament range and divider moved into constants 2021-12-09 22:50:14 -08:00
Aaron Veden
3013d428d2
removing debug statement on mapFetch 2021-12-09 22:39:42 -08:00
Aaron Veden
76dbc8363e
chunk passing scanning happens regardless of active map 2021-12-09 22:38:50 -08:00
Aaron Veden
e9681f1644
fixing temperament scoring around registering and unregistering enemy structures 2021-12-09 19:56:26 -08:00
Aaron Veden
302f703e71
tweaks to temperament scoring 2021-12-09 19:56:11 -08:00
Aaron Veden
1a60d01243
cleanup map is now processes all events regardless of active map 2021-12-08 22:18:09 -08:00
Aaron Veden
2289ff83de
cleanup energy thief biter logic in control 2021-12-08 22:01:54 -08:00
Aaron Veden
5000a86251
Increased deathThreshold to 4500,7500,11000,16000 2021-12-08 20:18:31 -08:00
Aaron Veden
d9b766ca58
fixed damageType selection for mutations and added print mutation events 2021-12-08 20:16:43 -08:00
Aaron Veden
0207aa0fe4
surfaces are begin processing lazily 2021-12-07 22:44:22 -08:00
Aaron Veden
903e4b49d0
adding check to global processors for invalid surfaces 2021-12-07 22:13:32 -08:00
Aaron Veden
d978d3fdd4
attack waves are processing outside active map 2021-12-07 21:36:56 -08:00
Aaron Veden
71e40a9c46
non covered spawners are now processed regardless of active map 2021-12-07 18:38:02 -08:00
Aaron Veden
acc62fdf50
Increased nest activeness duration 2021-12-07 18:28:46 -08:00
Aaron Veden
f1204419eb
added check for activeness before adding to active nest queue and
fixed duration not be extended on the check
2021-12-07 18:28:11 -08:00
Aaron Veden
e11c71a37f
increasing surfaces processed per cycle to 15 2021-12-07 16:58:53 -08:00
Aaron Veden
c1b761d8dd
AI planning now processes upto 10 surfaces per cycle 2021-12-06 22:35:21 -08:00
Aaron Veden
09a9c51cec
victory scent is processed regardless of current map 2021-12-06 21:56:09 -08:00
Aaron Veden
b88e1abd91
code cleanup in onDeath event and chunkProcessor 2021-12-06 21:20:05 -08:00
Aaron Veden
27426a42ae
renamed method processSpawners to processAttackWaves 2021-12-05 22:11:59 -08:00
Aaron Veden
beaeaa6c2e
pending chunks are processed across all chunks 2021-12-05 22:04:07 -08:00
Aaron Veden
d1eeee025f
optimized processing spawners covered by pollution 2021-12-05 21:44:19 -08:00
Aaron Veden
2f87808593
active nests are now processed across all surfaces 2021-12-05 20:56:08 -08:00
Aaron Veden
b81c96c043
now upgrades are processed across all chunks 2021-12-05 20:43:41 -08:00
Aaron Veden
893bd393ff
added max move and auto settling 2021-12-05 20:27:03 -08:00
Aaron Veden
926ef9e383
uniform squad processing 2021-12-05 19:40:39 -08:00
Aaron Veden
15c140b728
adding max consecutive wanders to squads 2021-12-05 17:17:41 -08:00
Aaron Veden
47e20864e1
Fixed scanning around player 2021-12-05 17:17:28 -08:00
Aaron Veden
c3ee424656
50% reduced contribution to temperament 2021-12-05 16:02:50 -08:00
Aaron Veden
9c25648a15
added check for nextAttackChunk in settle being impassable 2021-12-05 15:52:47 -08:00
Aaron Veden
3afe84b83a
adding aggressive sent and max to console debug output 2021-12-05 15:33:51 -08:00
Aaron Veden
24d52de8a1
rng should now be deterministic 2021-12-05 15:33:24 -08:00
Aaron Veden
38e83283fc
added logic to reset pending upgrade table 2021-12-05 14:39:50 -08:00
Aaron Veden
82058d16d4
ignore surfaces that will never have enemies 2021-12-05 11:39:39 -08:00
Aaron Veden
e814a9c648
potential desync fix and warding pheromone on attack path 2021-12-05 10:19:04 -08:00
Aaron Veden
c7850c3649
refactoring scanEnemyMap to use setAreaInQuery 2021-12-04 16:46:29 -08:00
Aaron Veden
839ee4754f
code clean up in mapProcessor simplifing logic 2021-12-04 16:44:59 -08:00
Aaron Veden
88d5c1f65d
fixed kastorio creep spawn on failed upgrade 2021-12-04 16:23:42 -08:00
Aaron Veden
584a5bca7a
reduced chunk processing delay to 20 ticks 2021-12-04 14:57:49 -08:00
Aaron Veden
a61194150c
redistribute processing over more ticks 2021-12-04 14:57:45 -08:00
Aaron Veden
edb589816a
corrected base chunk count logic in upgrade and chunk properties 2021-12-04 13:37:22 -08:00
Aaron Veden
96094237f6
fixed no new enemies mod path in registering and unregistering enemy structures 2021-12-04 13:05:47 -08:00
Aaron Veden
2772010851
fixed chunk pass scan not returng impassable chunk when needed 2021-12-04 12:56:02 -08:00
Aaron Veden
68de29c6d2
compute a base for all mapScanEnemies on a chunk 2021-12-04 12:07:27 -08:00
Aaron Veden
9ea16e6a82
changed argument to entityUpgrade to base instead of alignment 2021-12-04 11:58:07 -08:00
Aaron Veden
31c50a15c8
cleaned up config.lua and distributed methods into code files 2021-12-04 11:42:41 -08:00
Aaron Veden
9dfb61e735
fixed regional bases processing, distribution, cleanup 2021-12-04 11:04:13 -08:00
Aaron Veden
f489fe2de9
fixed chunk processing not processing every chunk 2021-12-02 18:25:18 -08:00
Aaron Veden
eaaf116e54
changed direct chunkBase access to getter 2021-11-30 19:48:52 -08:00
Aaron Veden
e5007ab465
optimized energy thief faction 2021-11-28 22:07:24 -08:00
Aaron Veden
b7b1a783a6
moved processUpgrades into chunk processor 2021-11-28 17:59:51 -08:00
Aaron Veden
bbb99102cc
reduced pheromone map process to 105 2021-11-28 17:53:35 -08:00
Aaron Veden
e91fc26066
decreased chunk scanning on player, enemy, and resource to 960/minute 2021-11-28 17:37:26 -08:00
Aaron Veden
4c75a4cb26
corrected wander spelling 2021-11-28 16:35:31 -08:00
Aaron Veden
ed2b588a06
added unit group command timeout + wander to allow gathering 2021-11-28 16:26:48 -08:00
Aaron Veden
6c6c811a91
decreased evolution variability when picking base factions 2021-11-26 14:09:10 -08:00
Aaron Veden
386b33358c
increased acceptance rate on early stopping for evoToTier 2021-11-26 14:01:22 -08:00
Aaron Veden
3890024474
adding early stopping in evoToTier 2021-11-26 14:00:08 -08:00
Aaron Veden
77f5fd641b
removed dead or commented code 2021-11-26 12:55:50 -08:00
Aaron Veden
940de53470
removing comments 2021-11-26 12:46:51 -08:00
Aaron Veden
42bd0f13c8
set the trap building cost to the standard worm cost 2021-11-26 12:25:31 -08:00
Aaron Veden
c4fea8f598
added minimum cost building check to upgrades 2021-11-26 12:25:07 -08:00
Aaron Veden
9d16d058a8
increased base point accumulation by 30x 2021-11-26 11:56:19 -08:00
Aaron Veden
41fba2e653
increased chance that a enemy structure is upgraded 2021-11-26 11:55:50 -08:00
Aaron Veden
8000a0a713
adding primary faction when two are present in a base 2021-11-26 11:28:27 -08:00
Aaron Veden
85ee0052d8
Increased base point accumulation by 10x 2021-11-26 11:25:16 -08:00
Aaron Veden
48381454a7
added mod setting for debugging inplace enemy structure upgrades 2021-11-26 11:00:59 -08:00
Aaron Veden
76dde8d8b6
corrected typos in chunkProcessing and added one final table sort in upgrade 2021-11-26 10:31:15 -08:00
Aaron Veden
89f3580887
optimized adding chunks to processQueue 2021-11-26 09:52:30 -08:00
Aaron Veden
320615c3a4
spread base upgrades over many ticks 2021-11-25 22:49:28 -08:00
Aaron Veden
34c036b80a
updated code pattern for getTimeStringFromTick 2021-11-25 19:27:39 -08:00
Aaron Veden
07af250a20
added print gps coordinates debug function to constants.lua 2021-11-25 19:26:36 -08:00
Aaron Veden
6351dc3b50
increased base point increment by 50% 2021-11-25 11:17:39 -08:00
Aaron Veden
f80b773597
added scaling aggressive groups based on active nests 2021-11-25 11:11:46 -08:00
Aaron Veden
2a602d7431
fixed victory scent dispersal 2021-11-25 10:20:33 -08:00
Aaron Veden
c217a8f82d
fixed squad cleanup periodically skipping groups 2021-11-25 10:08:35 -08:00
Aaron Veden
3c1b39e3eb
added regional base dormancy state 2021-11-25 09:49:54 -08:00
Aaron Veden
bdace61d9b
fixed adaptation probability calculation 2021-11-25 09:14:53 -08:00
Aaron Veden
3a2d4fa29e
added base mutation limit 2021-11-25 09:04:52 -08:00
Aaron Veden
abe8f57dfb
greatly reduced chance of nests not being converted due to slow chunk generation 2021-11-24 23:28:27 -08:00
Aaron Veden
03bf8ee821
removed bounding box check for building bases 2021-11-24 21:22:11 -08:00
Aaron Veden
7895191e9e
added hive spawn chance outside resource patches 2021-11-24 20:52:44 -08:00
Aaron Veden
870f0f83db
fixed base recycling processing 2021-11-24 20:49:22 -08:00
Aaron Veden
154e9f6b80
removed extra comments from baseutils 2021-11-24 20:42:05 -08:00
Aaron Veden
92dee7476b
doubled base processing speed 2021-11-24 20:37:37 -08:00
Aaron Veden
468237d17e
fixed trying to build same structure with new enemies 2021-11-24 20:35:58 -08:00
Aaron Veden
879205d0d5
fixed active and raid nest processing 2021-11-24 19:56:10 -08:00
Aaron Veden
852a83df42
fixed nest processing 2021-11-24 18:43:24 -08:00
Aaron Veden
6e06765d9f
fixed vengence squad processing 2021-11-24 18:31:28 -08:00
Aaron Veden
59d990be0c
correcting repo permissions 2021-11-23 19:45:28 -08:00
Aaron Veden
c31ecbd5b6
see changelog 2021-07-25 17:25:14 -07:00
Aaron Veden
0663a55521
see changelog 2021-07-24 20:23:38 -07:00
Aaron Veden
16986e5f09
finished adaptive behavior 2021-07-24 18:20:13 -07:00
Aaron Veden
5450359cfe
need to finish faction selection on damage 2021-07-21 17:48:52 -07:00
Aaron Veden
e88c4ef1ec
need to fill in damage type base mutations 2021-07-19 21:22:38 -07:00
Aaron Veden
47fa4eb3cd
Merge branch 'findBaseInitialAlignment-Crash-Fix' of https://github.com/Dagothur/Rampant into prod 2021-05-14 20:57:55 -07:00
Dagothur
1605248a61 Fix AI_STATE_AGGRESSIVE squad generation 2021-05-13 07:50:27 -04:00
Dagothur
8fb5ce12e8 Fix findBaseInitialAlignment() crash
Fixes findBaseInitialAlignment() crash by passing map instead of universe
2021-05-13 07:46:55 -04:00
Aaron Veden
00534625b3
see changelog 2021-05-01 13:50:40 -07:00
Aaron Veden
0183b78fd1
see changelog 2021-05-01 10:26:05 -07:00
Dagothur
722868f6bb Merge remote-tracking branch 'upstream/master' 2021-05-01 07:52:57 -04:00
Aaron Veden
8843b973af
see changelog 2021-04-30 21:25:55 -07:00
Dagothur
a98ebe9de6 remove idle biter point bonus mechanic 2021-04-30 23:36:34 -04:00
Dagothur
1754af50d4 adds /rampantSetAIState command
adds /rampantSetAIState command

sets the player's current surface to the state index passed to the command
2021-04-30 12:04:59 -04:00
Dagothur
d874784f81 clean up 2021-04-30 11:03:26 -04:00
Dagothur
292d407e13 AI Points: Print spending to chat, print gains to chat, award idle biters bonus points
Configurable settings for:

1) Printing AI point spending to chat
2) Printing AI point gains to chat
3) Granting "Idle Biters" bonus points
2021-04-30 09:15:29 -04:00
Aaron Veden
f7c99d03ab
see changelog 2021-04-29 22:24:14 -07:00
Aaron Veden
8e46e96667
see changelog 2021-04-21 20:46:50 -07:00
Aaron Veden
0e7932b70e
see changelog 2021-04-16 13:47:43 -07:00
Dagothur
a6cce852b3 Prepend surface name to AI state change messages 2021-04-16 10:28:43 -04:00
Dagothur
485abfd19c Added Map Setting to disable the AI's Peaceful State
Added an AI: Enable Peaceful toggle. Defaults on. If it's disabled and the AI: Enable Migration setting is enabled, then when the AI state rolls Peaceful it is instead converted to Migrating.

Added a 2nd setting to display AI state changes in chat. Defaults off.
2021-04-16 09:54:58 -04:00
Aaron Veden
39593bcc4f
remove debug message 2021-04-11 20:48:41 -07:00
Aaron Veden
99b5d3f3c1
see changelog 2021-04-11 20:46:21 -07:00
Aaron Veden
0eb46527c2
see changelog 2021-04-11 19:33:59 -07:00
Aaron Veden
eb36e62db5
see changelog 2021-04-04 21:46:43 -07:00
Aaron Veden
f27614e977
Merge branch 'master' of github.com:veden/Rampant into prod 2021-04-03 16:08:22 -07:00
Metallumere
2e2ea86ed5
Faction Colors Update (#41) 2021-04-03 15:38:03 -07:00
Aaron Veden
90376f11d5
see changelog 2021-03-28 22:00:49 -07:00
Aaron Veden
b80dd6d488
see changelog 2021-02-28 11:28:48 -08:00
Aaron Veden
721b458777
see changelog 2021-02-27 14:50:26 -08:00
Aaron Veden
71727454b9
ai adjustment for the more frequent running and base fixes 2021-02-20 15:31:48 -08:00
Aaron Veden
5ebc3b2fd1
system seems stable, needs ai value adjustment 2021-02-20 12:44:52 -08:00
Aaron Veden
df52efb19b
consolidate map and native 2021-02-19 23:31:36 -08:00
Aaron Veden
8063664616
working through runtime errors 2021-02-19 21:41:30 -08:00
Aaron Veden
7c47a495fd
fixing runtime crashes 2021-02-13 22:24:17 -08:00
Aaron Veden
5f3364da06
linted 2021-02-13 20:49:54 -08:00
Aaron Veden
1a4fec2c34
working through balancing 2021-02-08 21:55:16 -08:00
Aaron Veden
858e3e0011
added check for empty processQueue 2020-12-04 20:49:51 -08:00
Aaron Veden
1c83cc4ee4
see changelog 2020-11-28 17:53:41 -08:00
Daniel
9e43fe1776
Add support for Krastorio 2 creep 2020-11-27 16:29:25 -08:00
Aaron Veden
1ab917e416
see changelog 2020-10-18 20:33:01 -07:00
Aaron Veden
e34c6f6720
see changelog 2020-08-08 13:38:15 -07:00
Aaron Veden
f781d2ea38
see changelog 2020-05-25 17:05:01 -07:00
Aaron Veden
020bb1a747
removed comment 2020-05-24 20:57:52 -07:00
Aaron Veden
878c2204b3
see changelog 2020-05-24 20:25:21 -07:00
Aaron Veden
9aa81d20d4
RC3 build 2020-05-24 16:41:12 -07:00
Aaron Veden
3638ab19f9
RC1 Build 2020-05-23 21:17:18 -07:00
Aaron Veden
a945c69b95
RC build 2020-05-23 20:47:45 -07:00
Aaron Veden
117f5aa572
feels snappy and attacks are varied 2020-05-23 14:29:56 -07:00
Aaron Veden
2325169c62
mostly working, potentially removing movement pheromone 2020-05-22 21:22:40 -07:00