Fix parsing + is hide feature
This commit is contained in:
parent
6ab6073d13
commit
51bf0cdff1
@ -16,4 +16,5 @@ class Mod {
|
||||
var version: String? = null
|
||||
var technicalName: String? = null
|
||||
var isBeta: Boolean = true
|
||||
var isHide: Boolean = false
|
||||
}
|
||||
|
||||
@ -44,7 +44,7 @@ class AbilityEnvironmentRgdExtractService @Autowired constructor(
|
||||
)
|
||||
}
|
||||
|
||||
abilityEnvironment.name = uiData?.name
|
||||
abilityEnvironment.name = uiData?.name?.take(4000)
|
||||
abilityEnvironment.description = uiData?.description
|
||||
abilityEnvironment.icon = uiData?.iconPath
|
||||
|
||||
|
||||
@ -38,7 +38,7 @@ class BuildingAddonRgdExtractService @Autowired constructor(
|
||||
|
||||
val uiInfoRgd = addonRgdData.getRgdTableByName("ui_info") ?: throw Exception("Could not find ui_info at $fileName")
|
||||
val uiInfo = commonParseRgdService.getUiInfo(uiInfoRgd, modDictionary, modFolderData, mod, log)
|
||||
addon.name = uiInfo.name
|
||||
addon.name = uiInfo.name?.take(255)
|
||||
addon.description = uiInfo.description
|
||||
addon.uiIndexHint = addonRgdData.getIntByName("ui_index_hint") ?: 0
|
||||
addon.uiHotkeyName = addonRgdData.getStringByName("ui_hotkey_name")
|
||||
|
||||
@ -69,7 +69,7 @@ class BuildingRgdExtractService @Autowired constructor(
|
||||
val uiExt = buildingData.getRgdTableByName("ui_ext") ?: throw Exception("Could not find ui_ext at $fileName")
|
||||
val buildingUiInfo = uiExt.getRgdTableByName("ui_info") ?: throw Exception("Could not find ui_info at $fileName")
|
||||
val buildingUiData = commonParseRgdService.getUiInfo(buildingUiInfo, modDictionary, modFolderData, mod, log)
|
||||
building.name = buildingUiData.name
|
||||
building.name = buildingUiData.name?.take(4000)
|
||||
building.description = buildingUiData.description
|
||||
building.icon = buildingUiData.iconPath
|
||||
building.uiIndexHint = uiExt.getIntByName("ui_index_hint") ?: 0
|
||||
|
||||
@ -37,7 +37,7 @@ class ResearchRgdExtractService @Autowired constructor(
|
||||
|
||||
val uiInfo = researchData.getRgdTableByName("ui_info") ?: throw Exception("Could not find ui_info at $fileName")
|
||||
val researchUiInfo = commonParseRgdService.getUiInfo(uiInfo, modDictionary, modFolderData, mod, log)
|
||||
research.name = researchUiInfo.name
|
||||
research.name = researchUiInfo.name?.take(4000)
|
||||
research.description = researchUiInfo.description
|
||||
research.uiIndexHint = researchData.getIntByName("ui_index_hint") ?: 0
|
||||
research.uiHotkeyName = researchData.getStringByName("ui_hotkey_name")
|
||||
|
||||
@ -92,7 +92,7 @@ class UnitRgdExtractService @Autowired constructor(
|
||||
val squadUiInfo = squadData.getRgdTableByName("squad_ui_ext")
|
||||
?.getRgdTableByName("ui_info") ?: throw Exception("Could not find ui_info at $fileNameSquad")
|
||||
val squadUiData = commonParseRgdService.getUiInfo(squadUiInfo, modDictionary, modFolderData, mod, log)
|
||||
unit.name = squadUiData.name
|
||||
unit.name = squadUiData.name?.take(4000)
|
||||
unit.description = squadUiData.description
|
||||
unit.icon = squadUiData.iconPath
|
||||
unit.filenameSquad = fileNameSquad
|
||||
|
||||
@ -36,7 +36,7 @@ class WeaponRgdExtractService @Autowired constructor(
|
||||
|
||||
val weaponUiInfo = weaponData.getRgdTableByName("ui_info")
|
||||
val weaponUiData = weaponUiInfo?.let{ commonParseRgdService.getUiInfo(weaponUiInfo, modDictionary, modFolderData, mod, log)}
|
||||
weapon.name = weaponUiData?.name
|
||||
weapon.name = weaponUiData?.name?.take(4000)
|
||||
weapon.icon = weaponUiData?.iconPath
|
||||
weapon.description = weaponUiData?.description
|
||||
weapon.showInReinforce = weaponUiInfo?.getBooleanByName("show_in_reinforce") ?: false
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user