robotex140 / Hydrocraft

28 stars 41 forks source link

Chainsaw Model reporting error #8

Closed MurphysLaw26 closed 2 years ago

MurphysLaw26 commented 2 years ago

Describe the bug I loaded just the current Hydrocraft build, and looked into the debug log. Saw the following errors

[20-03-22 15:58:06.122] WARN : Script , 1647806286122> ModelScript.check> no such model "null" for Base.BareHands. [20-03-22 15:58:06.123] WARN : Script , 1647806286123> ModelScript.check> no such model "DisposableRazor" for Base.Razor. [20-03-22 15:58:06.126] WARN : Script , 1647806286126> ModelScript.check> no such model "Chainsaw" for Base.Chainsaw. [20-03-22 15:58:06.128] WARN : Script , 1647806286128> ModelScript.check> no such model "WoodPlank" for Hydrocraft.HCPlanktreated. [20-03-22 15:58:06.128] WARN : Script , 1647806286128> ModelScript.check> no such model "HCBaseballbattrimmer" for Hydrocraft.HCBaseballbattrimmer. [20-03-22 15:58:06.129] WARN : Script , 1647806286129> ModelScript.check> no such model "Spiketrapclosed" for Hydrocraft.spanishRider. [20-03-22 15:58:06.130] WARN : Script , 1647806286130> ModelScript.check> no such model "HCHomemadebattrimmer" for Hydrocraft.HCHomemadebattrimmer. [20-03-22 15:58:06.131] WARN : Script , 1647806286131> ModelScript.check> no such model "ChainSaw" for Hydrocraft.ChainSaw. [20-03-22 15:58:06.131] WARN : Script , 1647806286131> ModelScript.check> no such model "Dog" for Hydrocraft.HCDobermanfemalewar.

Specifically for the chainsaw, I investigated "media\lua\client\Chainsaw" lower case s

function chainsaw_loadModel()

-- The directory of the mod folder. 
dir = getDir("ChainSaw"); ***note the capitalization - upper case s***

name = "chainsaw";
locationModel = dir .. "/media/models/weapons_chainsaw.txt";

I suspect the chainsaw.lua needs to have the directory changed to "Chainsaw" to that the model will load

To Reproduce Steps to reproduce the behavior:

  1. Remove all saves
  2. Load Hydrocraft B41 continued only
  3. Close game and reopen
  4. review Debuglog

Expected behavior A clear and concise description of what you expected to happen.

I believe the model should load without error

HugoQwerty commented 2 years ago

Fixed. It was actually an issue in \media\scripts\Tools.txt (ChainSaw should have been Chainsaw). Don't think it actually mattered, as the model was working when the weapon was equipped - but getting rid of warning messages is good.