Skip to content
This repository has been archived by the owner on Apr 19, 2022. It is now read-only.

0.3.0 to master #72

Merged
merged 56 commits into from
Feb 21, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
56 commits
Select commit Hold shift + click to select a range
079a98a
restore deleted files
mrmin123 Dec 30, 2017
edb353f
extract fleet switch method to Fleet
mrmin123 Dec 30, 2017
fbc43fe
integrate new Fleet.switch into other modules
mrmin123 Dec 31, 2017
0b48899
fixes; testing of set_shiplist_counts
mrmin123 Dec 31, 2017
c2dbb20
implement shiplist sorting
mrmin123 Dec 31, 2017
375cfae
rename util clickscreen method
mrmin123 Jan 2, 2018
bc29ef8
consolidate click screen methods
mrmin123 Jan 2, 2018
90cc89d
implement choose ship by position
mrmin123 Jan 2, 2018
1bd256f
revise page navigation assets; partial implementation of page navigat…
mrmin123 Jan 2, 2018
70b4817
further implementation of change shiplist page
mrmin123 Jan 2, 2018
7228c7d
work on navigate to page
mrmin123 Jan 3, 2018
770a2da
Merge remote-tracking branch 'origin/master' into 6-ship-switcher
mrmin123 Jan 4, 2018
68b5d95
implement additional page switching logic
mrmin123 Jan 15, 2018
03f99fd
update
mrmin123 Jan 22, 2018
9a73198
add additional ship switcher assets and logic
mrmin123 Feb 4, 2018
782535e
use global settings to set auto wait timeout
mrmin123 Feb 4, 2018
6ca6cfa
additional assets; additional code
mrmin123 Feb 4, 2018
d744923
modify text ocr method; additional logic for ringed and locked statuses
mrmin123 Feb 15, 2018
e5f91b4
Merge remote-tracking branch 'origin/master' into 6-ship-switcher
mrmin123 Feb 18, 2018
c61cbcc
reorg fleet code; additional logic
mrmin123 Feb 19, 2018
ccd3817
code cleanup
mrmin123 Feb 19, 2018
94511a9
add docs
mrmin123 Feb 19, 2018
73d5e67
more docs
mrmin123 Feb 19, 2018
1dec3df
add caching of certain positions
mrmin123 Feb 19, 2018
0974fdc
reorg; begin config implementation for shipswitcher
mrmin123 Feb 19, 2018
b04d1e1
expand config
mrmin123 Feb 19, 2018
537047c
update dmg state assets; support repair count; integrate ship switcher
mrmin123 Feb 19, 2018
613da2e
update ship switch assets
mrmin123 Feb 19, 2018
8515e8e
tweak globals
mrmin123 Feb 19, 2018
04f3ae5
large tweaks, overhauls, finalization
mrmin123 Feb 20, 2018
66bd8f0
implement reserve dock; update config
mrmin123 Feb 20, 2018
eeefa48
remove comment
mrmin123 Feb 20, 2018
da1c6a2
list join bugfix
mrmin123 Feb 20, 2018
5f3759d
enable reservedocks on ui
mrmin123 Feb 20, 2018
460bdcb
major refactor
mrmin123 Feb 20, 2018
1a8ab8a
huge frontend refactor; add support for ship switcher
mrmin123 Feb 21, 2018
e3d63e9
update bundle
mrmin123 Feb 21, 2018
fb249f7
move back to first fleet to sortie on combined fleet
mrmin123 Feb 21, 2018
fbfcf1d
bug fix in ship switcher
mrmin123 Feb 21, 2018
f72ebfa
update print damage counts method; more messaging at end of ship swit…
mrmin123 Feb 21, 2018
66bcab6
add slight delay
mrmin123 Feb 21, 2018
cd52fc1
add waits post-combat selections
mrmin123 Feb 21, 2018
08f3870
strengthen get ship count
mrmin123 Feb 21, 2018
9cb8e84
bugfix
mrmin123 Feb 21, 2018
54e919e
move region instantiation into modules
mrmin123 Feb 21, 2018
734e3ec
add clear stop logic
mrmin123 Feb 21, 2018
ac4af4b
change medalstop to clearstop on ui; update bundle
mrmin123 Feb 21, 2018
c53ff6a
bugfix on optimizations
mrmin123 Feb 21, 2018
bc5ea9c
bugfix on ship level filtering
mrmin123 Feb 21, 2018
8a31682
Merge pull request #71 from mrmin123/6-ship-switcher
mrmin123 Feb 21, 2018
b788a84
add patreon links
mrmin123 Feb 21, 2018
9ad9ead
update bundle
mrmin123 Feb 21, 2018
6bab51f
bump version; rebuild bundle
mrmin123 Feb 21, 2018
85c9911
update changelog
mrmin123 Feb 21, 2018
e9c85c7
add additional sleep to shipswitcher fleet check
mrmin123 Feb 21, 2018
79da8b2
update changelog
mrmin123 Feb 21, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
#### 0.3.0

* Implements the ShipSwitcher module
* Allows for switching of ships based on class, ship, or position on a per-slot basis and based on damage, fatigue, or sparkled status
* Due to the complexity of the config, it is strongly recommended that the [webUI](https://mrmin123.github.io/kcauto-kai/) be used to generate the relevant config
* May be buggy
* Implements `ClearStop` combat option
* Like the `MedalStop` option of kancolle-auto, but also works for Event maps
* May be buggy
* New damage-state assets for more accurate damage state detection of ringed ships
* Added Patreon link to UI, in case you want to support the dev!
* Major refactor of webUI
* Various performance and memory optimizations
* Various tweaks and bugfixes

#### 0.2.10

* Bugfix in combat and fleet modules
Expand Down
19 changes: 17 additions & 2 deletions config.ini
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Enabled: True

[Combat]
Enabled: False
Engine: legacy
Engine: live
FleetMode:
Map: 1-1
CombatNodes:
Expand All @@ -27,12 +27,27 @@ Formations:
NightBattles:
RetreatLimit: heavy
RepairLimit: moderate
RepairTimeLimit: 0000
RepairTimeLimit: 0030
LBASGroups:
LBASGroup1Nodes:
LBASGroup2Nodes:
LBASGroup3Nodes:
MiscOptions:

[ShipSwitcher]
Enabled: False
Slot1Criteria:
Slot1Ships:
Slot2Criteria:
Slot2Ships:
Slot3Criteria:
Slot3Ships:
Slot4Criteria:
Slot4Ships:
Slot5Criteria:
Slot5Ships:
Slot6Criteria:
Slot6Ships:

[Quests]
Enabled: True
43 changes: 41 additions & 2 deletions docs-src/src/actions/config/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,32 @@ export const setPythonConfig = config => (
if (config.combatOptionPortCheck) {
combatOptions.push('PortCheck')
}
if (config.combatOptionMedalStop) {
combatOptions.push('MedalStop')
if (config.combatOptionClearStop) {
combatOptions.push('ClearStop')
}
if (!configTemp.shipSwitcherSlot1Criteria || !configTemp.shipSwitcherSlot1Ships) {
configTemp.shipSwitcherSlot1Criteria = ''
configTemp.shipSwitcherSlot1Ships = ''
}
if (!configTemp.shipSwitcherSlot2Criteria || !configTemp.shipSwitcherSlot2Ships) {
configTemp.shipSwitcherSlot2Criteria = ''
configTemp.shipSwitcherSlot2Ships = ''
}
if (!configTemp.shipSwitcherSlot3Criteria || !configTemp.shipSwitcherSlot3Ships) {
configTemp.shipSwitcherSlot3Criteria = ''
configTemp.shipSwitcherSlot3Ships = ''
}
if (!configTemp.shipSwitcherSlot4Criteria || !configTemp.shipSwitcherSlot4Ships) {
configTemp.shipSwitcherSlot4Criteria = ''
configTemp.shipSwitcherSlot4Ships = ''
}
if (!configTemp.shipSwitcherSlot5Criteria || !configTemp.shipSwitcherSlot5Ships) {
configTemp.shipSwitcherSlot5Criteria = ''
configTemp.shipSwitcherSlot5Ships = ''
}
if (!configTemp.shipSwitcherSlot6Criteria || !configTemp.shipSwitcherSlot6Ships) {
configTemp.shipSwitcherSlot6Criteria = ''
configTemp.shipSwitcherSlot6Ships = ''
}

const pythonConfig = [
Expand Down Expand Up @@ -107,6 +131,21 @@ export const setPythonConfig = config => (
`LBASGroup3Nodes: ${combatLBASGroup3Nodes}`,
`MiscOptions: ${combatOptions.join(',')}`,
'',
'[ShipSwitcher]',
`Enabled: ${configTemp.shipSwitcherEnabled}`,
`Slot1Criteria: ${configTemp.shipSwitcherSlot1Criteria}`,
`Slot1Ships: ${configTemp.shipSwitcherSlot1Ships}`,
`Slot2Criteria: ${configTemp.shipSwitcherSlot2Criteria}`,
`Slot2Ships: ${configTemp.shipSwitcherSlot2Ships}`,
`Slot3Criteria: ${configTemp.shipSwitcherSlot3Criteria}`,
`Slot3Ships: ${configTemp.shipSwitcherSlot3Ships}`,
`Slot4Criteria: ${configTemp.shipSwitcherSlot4Criteria}`,
`Slot4Ships: ${configTemp.shipSwitcherSlot4Ships}`,
`Slot5Criteria: ${configTemp.shipSwitcherSlot5Criteria}`,
`Slot5Ships: ${configTemp.shipSwitcherSlot5Ships}`,
`Slot6Criteria: ${configTemp.shipSwitcherSlot6Criteria}`,
`Slot6Ships: ${configTemp.shipSwitcherSlot6Ships}`,
'',
'[Quests]',
`Enabled: ${configTemp.questsEnabled}`,
]
Expand Down
25 changes: 20 additions & 5 deletions docs-src/src/app.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ import thunk from 'redux-thunk'
import { createLogger } from 'redux-logger'

import Grid from 'material-ui/Grid'
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider'
import { createMuiTheme } from 'material-ui/styles'
import blueGrey from 'material-ui/colors/blueGrey'

import { getUIMode } from 'actions/ui/mode'
import { setUILanguage } from 'actions/ui/language'
Expand All @@ -15,6 +18,16 @@ import MenuContainer from 'containers/MenuContainer'
import Body from 'components/Body'
import Footer from 'components/Footer'


const theme = createMuiTheme({
palette: {
primary: blueGrey,
secondary: blueGrey,
contrastText: blueGrey[50],
contrastThreshold: 3,
},
})

let store = Reducers

const reduxMiddleware = process.env.NODE_ENV === 'production' ?
Expand All @@ -28,11 +41,13 @@ store.dispatch(setUILanguage('en'))

render(
<Provider store={store}>
<Grid container>
<MenuContainer />
<Body />
<Footer />
</Grid>
<MuiThemeProvider theme={theme}>
<Grid container>
<MenuContainer />
<Body />
<Footer />
</Grid>
</MuiThemeProvider>
</Provider>,
document.getElementById('app')
)
4 changes: 2 additions & 2 deletions docs-src/src/components/Body.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { Component } from 'react'
import React, { PureComponent } from 'react'
import PropTypes from 'prop-types'
import { withStyles } from 'material-ui/styles'
import AppBar from 'material-ui/AppBar'
Expand All @@ -15,7 +15,7 @@ const styles = () => ({
},
})

class Body extends Component {
class Body extends PureComponent {
state = {
value: 0,
}
Expand Down
10 changes: 5 additions & 5 deletions docs-src/src/components/BodyAbout.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,23 +23,23 @@ const BodyAbout = ({ classes }) => (
<Grid container justify='center' spacing={0}>
<Grid item xs={6}>
<Paper className={classes.paper} elevation={0}>
<Typography type='body1' className={classes.paragraph}>
<Typography variant='body1' className={classes.paragraph}>
<Localize field='bodyAbout.intro1' />
</Typography>

<Typography type='body1' className={classes.paragraph}>
<Typography variant='body1' className={classes.paragraph}>
<Localize field='bodyAbout.intro2' />
</Typography>

<Typography type='title'>
<Typography variant='title'>
<Localize field='bodyAbout.disclaimerHeader' />
</Typography>

<Typography type='body2' className={classes.paragraph}>
<Typography variant='body2' className={classes.paragraph}>
<Localize field='bodyAbout.disclaimer1' />
</Typography>

<Typography type='body2' className={classes.paragraph}>
<Typography variant='body2' className={classes.paragraph}>
<Localize field='bodyAbout.disclaimer2' />
</Typography>
</Paper>
Expand Down
Loading