Skip to content

Commit

Permalink
1.03
Browse files Browse the repository at this point in the history
- removed debug function calls
  • Loading branch information
isathar committed Jul 15, 2021
1 parent f10d6e0 commit 72aae0f
Show file tree
Hide file tree
Showing 40 changed files with 125 additions and 56 deletions.
71 changes: 71 additions & 0 deletions Changelog.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
1.03:
- removed debug function calls, replaced some with messages
- recompiled all the scripts in Release mode
- XB1 release

1.02:
- saved the plugin with the current CK version, repackaged everything.

1.01:
Fixes:
- the leveling system should now actually do something
- renamed and moved used armor slots to match community standards
- new slots are '41 - [A] Torso' for packs, '46 - Headband' for implants, and '50 - Neck' for collars
- default animal races' morph + armor race settings now carry over to pack animal races - for a future update
- increased idle chatter min + max times for pack animal races
- (testing) minor tweak to AI packages as an attempted fix for pack animals disappearing in some instances
- pack mirelurks should allow interaction now (woops)
- fixed the dog pack addon's skinning
- tracking should work more consistently now
Gameplay Tweaks:
- increased capture chances for all animals (all sources)
- capture chance is now influenced by Animal Friend, Wasteland Whisperer, and Luck (maximum +22%)
- removed XP reward for killing pack animals (maybe...?)
- pack dogs can no longer open doors
- pack animals now use the standard follower command interface
Misc:
- converted most debug text to message format - still a few more left
- added crafting menu display objects for pack animals
- base work for vicious dogs and FEV hounds for a future update
- base work for Far Harbor + Nuka World DLC support
- the tracking quest is back to being listed as a side quest instead of misc objectives
- improved compatibility with game start by not starting the manager quest until an animal trainer is built

1.00:
completely rebuilt the mod with the creation kit

0.9:
- increased pack brahmin speed
- configuration is now handled by a holotape
- pack animal aggression can now be configured
- added the option to make pack animals essential
- pack animals are now protected/essential when spawned while the option is enabled
- lowered script update time to every 30 minutes game time (from an hour) to work around pathing issues
- added cheat 'equipment' for carry weight and speed
- (probably) fixed settlers randomly attacking your pack animals
- added the option to track pack animals when they die
- cleaned up + optimized scripts (somewhat)
- preparations to allow default game animals to be managed by the mod

0.62:
- fixed uninstall script stalling until pack animals are deleted.
- fixed uninstall/reset procedure to properly clear tracked pack animals and reset the count variable
- fixed brahmin health being set to 5.0 when arriving at settlements they were sent to (facepalm)
- edited dead cleanup to allow for more than one body to be marked for delete per hour
- pack brahmin sandboxing behavior should now be identical to default workshop brahmin behavior

0.61:
fixed reversed Wait on Player Enter Interior option

0.6:
- removed broken default/alternate follow AI
- added a toggle to allow pack animals to follow the player into buildings
- added "(player name)'s " to pack animal names
- tracking targets now display the target's name in preparation for additional animal types in a future release
- fixed packs not being properly removed from the interaction menu
- fixed most instances of pack animals getting stuck while travelling
- replaced most of the scripted debug text with message forms

0.5:
initial release

Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Group PackAnimalStats
FormList Property pPossibleSkins auto Const mandatory
{list of possible skin items for this animal}


EndGroup

Group PackAnimalFood
Expand All @@ -25,6 +26,12 @@ Group PackAnimalFood
{chance increase per hour of becoming aggressive when not fed}
EndGroup

Message Property pMsgFollowNear auto const mandatory
Message Property pMsgFollowFar auto const mandatory
Message Property pMsgNoPack auto const mandatory
Message Property pMsgStillHungry auto const mandatory
Message Property pMsgStuffed auto const mandatory

PersonalPackanimals:PPAPackAnimalManagerQuestScript Property pManagerQuest auto Const mandatory
{link to pack animal manager quest}

Expand Down Expand Up @@ -108,7 +115,7 @@ Event OnInit()
RegisterForCustomEvent(pManagerQuest, "PackAnimalTickEvent")
RegisterForCustomEvent(pManagerQuest, "UpgradePackCapacityEvent")

;debug.notification("Pack animal initialized")

EndEvent

;/add inventory filter/;
Expand Down Expand Up @@ -447,10 +454,10 @@ Function ToggleFollowDistance()
ActorValue tempVal = Game.GetCommonProperties().FollowerDistance
if GetValue(tempVal) > 0.0
SetValue(tempVal, 0.0)
debug.notification("near")
pMsgFollowNear.Show()
else
SetValue(tempVal, 1.0)
debug.notification("far")
pMsgFollowFar.Show()
endIf
EndFunction

Expand All @@ -469,23 +476,23 @@ Function OpenPackInventory(int menuVar)
if PackContainer_Storage.GetCurCapacity() > 0
PackContainer_Storage.Activate(Game.GetPlayer())
else
debug.notification("no pack of this type")
pMsgNoPack.Show()
endIf
endIf
elseif menuVar == 1
if PackContainer_Ammo as bool
if PackContainer_Ammo.GetCurCapacity() > 0
PackContainer_Ammo.Activate(Game.GetPlayer())
else
debug.notification("no pack of this type")
pMsgNoPack.Show()
endIf
endIf
elseif menuVar == 2
if PackContainer_Delivery as bool
if PackContainer_Delivery.GetCurCapacity() > 0
PackContainer_Delivery.Activate(Game.GetPlayer())
else
debug.notification("no pack of this type")
pMsgNoPack.Show()
endIf
endIf
endIf
Expand Down Expand Up @@ -517,9 +524,9 @@ Function FeedPackAnimal(int iFoodType = 0)
endIf
fNextFeedingTime = fCurTime + (fFoodVal * fHourMultiplier)
if fCurTime - fNextFeedingTime >= fFeedingInterval
debug.notification("Your pack animal is still hungry")
pMsgStillHungry.Show()
else
debug.notification("Your pack animal is full")
pMsgStuffed.Show()
endIf
EndFunction

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ Group ModStats
{keyword to check if actor is a pack animal}
EndGroup

Message Property pFailedMessage auto Const mandatory



Event OnContainerChanged(ObjectReference akNewContainer, ObjectReference akOldContainer)
Expand All @@ -44,7 +46,7 @@ Event OnContainerChanged(ObjectReference akNewContainer, ObjectReference akOldCo
endIf
endIf
else
debug.notification("wrong animal type")
pFailedMessage.Show()
endIf
endIf
else
Expand All @@ -58,7 +60,7 @@ Event OnContainerChanged(ObjectReference akNewContainer, ObjectReference akOldCo
animalActor.AttachMod(pNullMod)
endIf
else
debug.notification("wrong animal type")
pFailedMessage.Show()
endIf
endIf
endIf
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,9 @@ function AssignActorCustom(WorkshopNPCScript newActor)
endIf
tempScript.ClearDialogueTarget()
else
debug.notification("no animal ref at " + i)
i += 1
endIf
endWhile
else
debug.notification("no quest script")
endIf

utility.wait(2.0)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,19 @@ Group ErrorMessages

EndGroup

Group DebugMessages
Message Property pDebugCountActive auto Const mandatory
Message Property pDebugCountDead auto Const mandatory
Message Property pDebugCountIdle auto Const mandatory
Message Property pDebugCountTracked auto Const mandatory
Message Property pDebugCountLured auto Const mandatory
Message Property pDebugCountGuards auto Const mandatory
Message Property pDebugCountTrappers auto Const mandatory
Message Property pDebugCountGuardQueue auto Const mandatory
Message Property pDebugCountTrapperQueue auto Const mandatory
Message Property pDebugCountInstituteQueue auto Const mandatory
EndGroup


Message Property pModInstalledMessage auto Const mandatory
{mod installation message/prompt}
Expand Down Expand Up @@ -374,10 +387,10 @@ Function AddToProductionQueue(int iOrderType, int iAnimalType, float fProdTime,

if iOrderType == 0
ProductionQueue_Trappers.Add(newProd)
debug.notification("new trapper queue count: " + ProductionQueue_Trappers.length)
pDebugCountTrapperQueue.Show(ProductionQueue_Trappers.length)
else
ProductionQueue_Institute.Add(newProd)
debug.notification("new institute queue count: " + ProductionQueue_Institute.length)
pDebugCountInstituteQueue.Show(ProductionQueue_Institute.length)
endIf

EndFunction
Expand All @@ -396,7 +409,7 @@ Function ProductionTick()
pOrderFailedMsg_Trapper.Show()
endIf
ProductionQueue_Trappers.Remove(0)
debug.notification("new queue count: " + ProductionQueue_Trappers.length)
pDebugCountTrapperQueue.Show(ProductionQueue_Trappers.length)
endIf
endIf
;/institute/;
Expand All @@ -405,7 +418,7 @@ Function ProductionTick()
pOrderSuccessMsg_Institute.Show()
CreateAnimalFromData(ProductionQueue_Institute[0].iProdType, Utility.RandomInt(0,1), Utility.RandomInt(0, (pMaxSkinsPerType[ProductionQueue_Trappers[0].iProdType] - 1)), Game.GetPlayer() as ObjectReference)
ProductionQueue_Institute.Remove(0)
debug.notification("new queue count: " + ProductionQueue_Trappers.length)
pDebugCountInstituteQueue.Show(ProductionQueue_Institute.length)
endIf
endIf
EndFunction
Expand Down Expand Up @@ -556,7 +569,7 @@ Function AddPackAnimal(ObjectReference tempRef)
int tempCount = pActivePackAnimalsRC.GetCount()
pCurNumPackAnimals.SetValue(tempCount as float)
self.UpdateCurrentInstanceGlobal(pCurNumPackAnimals)
debug.notification("active count: " + pActivePackAnimalsRC.GetCount())
pDebugCountActive.Show(pActivePackAnimalsRC.GetCount())

EndFunction

Expand All @@ -577,7 +590,7 @@ Function RemovePackAnimal(ObjectReference tempRef, bool bDelete = false)
int tempCount = pActivePackAnimalsRC.GetCount()
pCurNumPackAnimals.SetValue(tempCount as float)
self.UpdateCurrentInstanceGlobal(pCurNumPackAnimals)
debug.notification("active count: " + tempCount)
pDebugCountActive.Show(tempCount)

ObjectReference guardRef = tempRef.GetLinkedRef(pGuardLinkKW)
if guardRef as bool
Expand Down Expand Up @@ -650,7 +663,7 @@ Function AddDeadPackAnimal(ObjectReference tempRef)
endIf
endIf

debug.notification("dead count: " + pDeadPackAnimalsRC.GetCount())
pDebugCountDead.Show(pDeadPackAnimalsRC.GetCount())
EndFunction

Function RemoveDeadPackAnimal(ObjectReference tempRef)
Expand All @@ -666,7 +679,7 @@ Function RemoveDeadPackAnimal(ObjectReference tempRef)
SetObjectiveDisplayed(iObjective_TrackDead, False, True)
endIf
endIf
debug.notification("dead count: " + pDeadPackAnimalsRC.GetCount())
pDebugCountDead.Show(pDeadPackAnimalsRC.GetCount())
EndFunction

int Function GetAnimalCount_Dead()
Expand Down Expand Up @@ -709,7 +722,7 @@ Function AddToTrackedActive(Actor tempRef)
endIf

int tempCount = pTrackedPackAnimalsRC.GetCount()
debug.notification("tracked count: " + pTrackedPackAnimalsRC.GetCount())
pDebugCountTracked.Show(pTrackedPackAnimalsRC.GetCount())
EndFunction

Function RemoveFromTrackedActive(Actor tempRef)
Expand All @@ -723,7 +736,7 @@ Function RemoveFromTrackedActive(Actor tempRef)
endIf

int tempCount = pTrackedPackAnimalsRC.GetCount()
debug.notification("tracked count: " + pTrackedPackAnimalsRC.GetCount())
pDebugCountTracked.Show(pTrackedPackAnimalsRC.GetCount())
EndFunction

int Function GetAnimalCount_Tracked()
Expand All @@ -736,14 +749,14 @@ Function AddToTrackedIdle(Actor tempRef)
if pIdlePackAnimalsRC.Find(tempRef) < 0
pIdlePackAnimalsRC.AddRef(tempRef)
endIf
debug.notification("idle count: " + pIdlePackAnimalsRC.GetCount())
pDebugCountIdle.Show(pIdlePackAnimalsRC.GetCount())
EndFunction

Function RemoveFromTrackedIdle(Actor tempRef)
if pIdlePackAnimalsRC.Find(tempRef) > -1
pIdlePackAnimalsRC.RemoveRef(tempRef)
endIf
debug.notification("idle count: " + pIdlePackAnimalsRC.GetCount())
pDebugCountIdle.Show(pIdlePackAnimalsRC.GetCount())
EndFunction

int Function GetAnimalCount_Idle()
Expand Down Expand Up @@ -951,14 +964,14 @@ Function AssignTrapper(ObjectReference newTrapper)
if pTrapperNPCsRC.Find(newTrapper) < 0
pTrapperNPCsRC.AddRef(newTrapper)
endIf
debug.notification("trapper count: " + pTrapperNPCsRC.GetCount())
pDebugCountTrappers.Show(pTrapperNPCsRC.GetCount())
EndFunction

Function UnassignTrapper(ObjectReference oldTrapper)
if pTrapperNPCsRC.Find(oldTrapper) > -1
pTrapperNPCsRC.RemoveRef(oldTrapper)
endIf
debug.notification("trapper count: " + pTrapperNPCsRC.GetCount())
pDebugCountTrappers.Show(pTrapperNPCsRC.GetCount())
EndFunction

int Function GetTrapperAliasCount()
Expand All @@ -985,14 +998,14 @@ Function AssignPackAnimalGuard(ObjectReference tempGuard)
if pGuardNPCsRC.Find(tempGuard) < 0
pGuardNPCsRC.AddRef(tempGuard)
endIf
debug.notification("guard count: " + pGuardNPCsRC.GetCount())
pDebugCountGuards.Show(pGuardNPCsRC.GetCount())
EndFunction

Function UnassignAnimalGuard(ObjectReference tempGuard)
if pGuardNPCsRC.Find(tempGuard) > -1
pGuardNPCsRC.RemoveRef(tempGuard)
endIf
debug.notification("guard count: " + pGuardNPCsRC.GetCount())
pDebugCountGuards.Show(pGuardNPCsRC.GetCount())
EndFunction

int Function GetAnimalGuardCount()
Expand Down Expand Up @@ -1037,7 +1050,7 @@ Function AddLuredAnimals(ObjectReference lureRef, float fLureChance, int iMaxLur
i += 1
endWhile
endIf
debug.notification("lured count: " + pLuredAnimals.GetCount())
pDebugCountLured.Show(pLuredAnimals.GetCount())
EndFunction

Function ClearLuredAnimals()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,6 @@ Event OnContainerChanged(ObjectReference akNewContainer, ObjectReference akOldCo
endIf
i += 1
endWhile
else
debug.notification("no workshop resource objects")
endIf

if !bFound
Expand All @@ -67,8 +65,6 @@ Event OnContainerChanged(ObjectReference akNewContainer, ObjectReference akOldCo
endIf
i += 1
endWhile
else
debug.notification("no workshop actors")
endIf
endIf

Expand All @@ -88,11 +84,7 @@ Event OnContainerChanged(ObjectReference akNewContainer, ObjectReference akOldCo
endIf
endIf
endIf
else
debug.notification("No workshop animal")
endIf
else
debug.notification("no workshop")
endIf
else
PersonalPackAnimals:PPAPackAnimalManagerQuestScript tempScript = PersonalPackAnimals:PPAPackAnimalManagerQuestScript.GetScript()
Expand Down
Loading

0 comments on commit 72aae0f

Please sign in to comment.