Skip to content

Commit

Permalink
ECM/Lib:
Browse files Browse the repository at this point in the history
- Version bump.

[email protected]
  • Loading branch information
ChoGGi committed Jan 5, 2025
1 parent d3ac598 commit 50ec6c7
Show file tree
Hide file tree
Showing 15 changed files with 48 additions and 26 deletions.
4 changes: 3 additions & 1 deletion ChoGGi's Library/Changelog.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
## Library Changelog

## v12.4 (Unreleased)
## v12.5 (Unreleased)

## v12.4 (4 Jan 2025)
- Added checkbox to toggle UI transparency to my dialogs.
- Added DoSomethingQuestion(): Generic warning msg.
- Added CopyProperties(): Lets you skip certain properties when copying.
Expand Down
2 changes: 1 addition & 1 deletion ChoGGi's Library/metadata.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
return PlaceObj("ModDef", {
"title", "<color 135 212 155>ChoGGi's Library</color> Test",
"title", "<color 135 212 155>ChoGGi's Library</color>",
"id", "ChoGGi_Library",
"steam_id", "1504386374",
"pops_any_uuid", "bbeae1a3-fa60-48d3-8bf4-bbfe7d5e018b",
Expand Down
4 changes: 3 additions & 1 deletion Expanded Cheat Menu/Changelog.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
## ECM Changelog

## v19.4 (Unreleased)
## v19.5 (Unreleased)

## v19.4 (4 Jan 2025)
### Added:
- ECM.Debug.Storybits>Toggle Story Bit Log: Show Storybit info in console log, and extra info in g_StoryBitsLog.
- ECM.Game.Interface.Toggle Use All Loading Screens: Some DLC replaces loading screens with their own, enable to use all of them.
Expand Down
7 changes: 5 additions & 2 deletions Expanded Cheat Menu/CheatsList.md
Original file line number Diff line number Diff line change
Expand Up @@ -281,9 +281,9 @@ Cheats>Complete Constructions: Complete all constructions instantly.
Cheats>Complete Wires & Pipes: Complete all wires and pipes instantly.
Cheats>Map Exploration: Scanning, deep scanning, core mines, and alien imprints.
Cheats>Mod Editor: Open the mod editor.
Cheats>Mystery Log: Use to remove mysteries.
Cheats>Mystery Start: Pick and start a mystery (with instant start option).
Certain mysteries need certain objects which get placed when the map is generated on a new game (the green rocks one for instance).
Do not use this for regular playthroughs!
Cheats>Remove Mysteries: Use to remove mysteries.
Cheats>Spawn Colonists: Spawn X amount of colonists.
Cheats>Toggle Unlock All Buildings: Unlocks all buildings for construction.
Expand Down Expand Up @@ -335,8 +335,9 @@ Debug.Path Markers>Building Path Markers: Show inside waypoints colonists take t
Debug.Path Markers>Path Markers Game Time: Maps paths in real time (see Path Markers to mark more than one at a time).
Debug.Path Markers>Path Markers: Shows the selected unit path or show a list to add/remove paths for rovers, drones, colonists, or shuttles.
Debug.Story Bits>Override Condition Prereqs: All storybit/negotiation/etc options are enabled.
Debug.Story Bits>START Story Bits: Activate a story bit.
Debug.Story Bits>Skip Story Bits: When a story bit appears; always select first option after slight delay.
Debug.Story Bits>Test Story Bits: Test activate a story bit.
Debug.Story Bits>Toggle Story Bit Log: Show Storybit info in console log, and extra info in g_StoryBitsLog.
Debug.Toggles>Anim Debug Toggle: Attaches text to each object showing animation info (or just to selected object).
Debug.Toggles>DTM Slots Display: Show DTM slots display
Debug.Toggles>Examine Persist Errors: Shows an examine dialog with any persist errors when saving.
Expand All @@ -345,6 +346,7 @@ Debug.Toggles>Loading Screen Log: Be able to see the console log (and other dial
Warning: Leave "Welcome to Mars" msg onscreen till map is loaded.
Debug.Toggles>Measure Tool: Measures stuff (press again to remove the lines).
Debug.Toggles>Place Objects: Opens editor mode with the place objects dialog.
Debug.Toggles>Show Console Errors: Show extra debug errors in console.
Debug.Toggles>Skip Incompatible Mods: Get rid of "This savegame was loaded in the past without required mods or with an incompatible game version.".
Debug.Toggles>Skip Missing DLC: Stops confirmation dialog about missing DLC when loading saved games.
Debug.Toggles>Skip Missing Mods: Stops confirmation dialog about missing mods when loading saved games.
Expand Down Expand Up @@ -581,6 +583,7 @@ Game.Interface>Toggle Scroll Selection Panel: Add a scrollbar to larger selectio
Game.Interface>Toggle Selection Panel Resize: Stops selection panel from shrinking (eg: dome).
Game.Interface>Toggle Show Hints: No more hints ever (Enable to disable all hints).
Game.Interface>Toggle Signs: Concrete, metal deposits, not working, etc...
Game.Interface>Toggle Use All Loading Screens: Some DLC replaces loading screens with their own, enable to use all of them.
Game.Interface>Toggle Vertical Cheat Menu: Puts the menu down the side of the screen to save horizontal space for the info bar.
Game.Interface>Toggle on-screen hints: Don't show hints for this game.
Game.Interface>UI Transparency Mouseover: Toggle removing transparency on mouseover.
Expand Down
4 changes: 2 additions & 2 deletions Mods ChoGGi/Blank Sponsor/Code/Script.lua
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ function SetupMissionGoals(...)
-- I might have to include modded ones... or add a check of some sort
}
-- Add random goals
local temp_presets = table.filter(Presets.MissionSponsorPreset.Default, function(id, item)
local temp_presets = table.filter(Presets.MissionSponsorPreset.Default, function(id)
-- skip all indexed sponsors (they include space race and normal sponsors, which might be bad for people without dlc)
if type(id) == "number" then
return false
Expand All @@ -45,7 +45,7 @@ function SetupMissionGoals(...)
-- table.rand needs an indexed table
local c = 0
local presets = {}
for id, item in pairs(temp_presets) do
for _, item in pairs(temp_presets) do
c = c + 1
presets[c] = item
end
Expand Down
6 changes: 1 addition & 5 deletions Mods ChoGGi/Brazil Passages For All/Code/Script.lua
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,7 @@ function OnMsg.ClassesPostprocess()
default_NonHomeDomeServiceThresholdDecrement = Consts.NonHomeDomeServiceThresholdDecrement
end

--~ local SetConsts = ChoGGi_Funcs.Common.SetConsts
local function SetConsts(id, value)
Consts[id] = value
g_Consts[id] = value
end
local SetConsts = ChoGGi_Funcs.Common.SetConsts

local mod_EnableMod
local mod_InstantPassages
Expand Down
8 changes: 8 additions & 0 deletions Mods ChoGGi/Brazil Passages For All/metadata.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
return PlaceObj("ModDef", {
"dependencies", {
PlaceObj("ModDependency", {
"id", "ChoGGi_Library",
"title", "ChoGGi's Library",
"version_major", 12,
"version_minor", 3,
}),
},
"title", "Brazil Passages For All",
"id", "ChoGGi_BrazilPassagesForAll",
"steam_id", "2442247161",
Expand Down
1 change: 1 addition & 0 deletions Mods ChoGGi/Drone Hub Range/Code/Script.lua
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ local mod_UpdateExistingHubs

local ChoOrig_CommandCenterMaxRadius = const.CommandCenterMaxRadius

local ChoGGi_Funcs = ChoGGi_Funcs
local SetPropertyProp = ChoGGi_Funcs.Common.SetPropertyProp

local function SetHubRange()
Expand Down
2 changes: 1 addition & 1 deletion Mods ChoGGi/Fix Bugs/Code/Script.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1481,7 +1481,7 @@ DefineClass.ChoGGi_RemoveApplicants = {
Description = T(0000, "Remove Applicants <Amount>"),
Documentation = "Remove a specific amount of applicants.",
}
function ChoGGi_RemoveApplicants:Execute(map_id, obj, context)
function ChoGGi_RemoveApplicants:Execute()
-- I doubt it's needed but...
if type(self.Amount) ~= "number" then
return
Expand Down
6 changes: 1 addition & 5 deletions Mods ChoGGi/RC Safari Cheats/Code/Script.lua
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,7 @@ local mod_ServiceComfort
local mod_ComfortIncrease

-- some stuff checks one some other...
--~ local SetConsts = ChoGGi_Funcs.Common.SetConsts
local function SetConsts(id, value)
Consts[id] = value
g_Consts[id] = value
end
local SetConsts = ChoGGi_Funcs.Common.SetConsts

local function UpdateRovers()
SetConsts("RCSafariMaxWaypoints", mod_RCSafariMaxWaypoints)
Expand Down
8 changes: 8 additions & 0 deletions Mods ChoGGi/RC Safari Cheats/metadata.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
return PlaceObj("ModDef", {
"dependencies", {
PlaceObj("ModDependency", {
"id", "ChoGGi_Library",
"title", "ChoGGi's Library",
"version_major", 12,
"version_minor", 3,
}),
},
"title", "RC Safari Cheats",
"id", "ChoGGi_RCSafariRouteCheats",
"steam_id", "2425963097",
Expand Down
8 changes: 8 additions & 0 deletions Mods ChoGGi/Recon Center Change Cost/metadata.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
return PlaceObj("ModDef", {
"dependencies", {
PlaceObj("ModDependency", {
"id", "ChoGGi_Library",
"title", "ChoGGi's Library",
"version_major", 12,
"version_minor", 3,
}),
},
"title", "Recon Center Change Cost",
"id", "ChoGGi_ReconCenterChangeCost",
"steam_id", "2925662527",
Expand Down
3 changes: 0 additions & 3 deletions Mods ChoGGi/Show Transport Route Info/Code/Script.lua
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,11 @@ OnMsg.ApplyModOptions = ModOptions

-- local some globals
local type = type
local AveragePoint2D = AveragePoint2D
local IsValid = IsValid
local IsPoint = IsPoint
local FixConstructPos = FixConstructPos
local T = T

local PolylineSetParabola = ChoGGi_Funcs.Common.PolylineSetParabola

-- store ref to line, res icon
local line, text
-- removes line when selection changes
Expand Down
3 changes: 2 additions & 1 deletion Mods ChoGGi/View Colony Map/Code/Script.lua
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,8 @@ rand()2 1729522667
table.shuffle(shuffled_wonders, rand)
print("rand()2",rand())
local spawned_wonders = {}
for index, marker in ipairs({1,1}) do
for index, marker in ipairs({1,1}) do
local blah = marker
local wrapped_index = 1 + (index - 1) % num_wonders
local wonder_class = shuffled_wonders[wrapped_index]
spawned_wonders[#spawned_wonders + 1] = wonder_class
Expand Down
8 changes: 4 additions & 4 deletions Mods ChoGGi/Wide Area Forestation/Code/Script.lua
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
-- See LICENSE for terms

local SetBuildingTemplates = ChoGGi_Funcs.Common.SetBuildingTemplates
--~ local SetBuildingTemplates = ChoGGi_Funcs.Common.SetBuildingTemplates
local RemoveBuildingElecConsump = ChoGGi_Funcs.Common.RemoveBuildingElecConsump
local AddBuildingElecConsump = ChoGGi_Funcs.Common.AddBuildingElecConsump

local HourDuration = const.HourDuration
local MulDivRound = MulDivRound
--~ local HourDuration = const.HourDuration
--~ local MulDivRound = MulDivRound

local mod_MaxSize
local mod_PlantInterval
Expand Down Expand Up @@ -68,7 +68,7 @@ function ForestationPlant:Init(...)
if mod_RemovePower then
RemoveBuildingElecConsump(self)
end
local meta = self:GetPropertyMetadata("vegetation_interval")
--~ local meta = self:GetPropertyMetadata("vegetation_interval")
--~ self.building_update_time = MulDivRound(mod_PlantInterval, HourDuration, meta.scale)
end

Expand Down

0 comments on commit 50ec6c7

Please sign in to comment.