Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
Another would be altering UGTakePropaneMenu.lua line 202, change the 100 to something less. This is the duration value that is passed into the Timed Action and multiplied by 'take' which is the total item uses missing. In a vanilla game, a blow-torch can have 10 'uses', this is then multiplied by the 100 value.
Changing the 100 to a 1, for example, would mean the time needed would be the useDelta missing.
Line 209 uses a MUCH smaller duration value for torches for some reason.
Time to fill a truck can be altered on line 35 of UGFillPropaneTruck.lua.
C:\Program Files (x86)\Steam\steamapps\workshop\content\108600\3394378143\mods\[B42]PumpsHavePropane-transplant\42.0\media\lua\client\TimedActions
Open UGTakePropane.lua with a text editor to change line 47 from this:
self.action:setTime(take * self.duration)
to this:
self.action:setTime(take / itemMax * self.duration)
Save the file and start the game.
It is filling. Just so slow that I need to camp at the pump to fill a bottle.
Line 47:
self.action:setTime(take * self.duration)
->
self.action:setTime(take / itemMax * self.duration)
Thx for JamailKamali
function UGTakePropane:start()
print( "keyword: Test UGTakePropane:start() called")
if self.istorch then
self:setOverrideHandModels(nil, "BlowTorch")
else
self:setOverrideHandModels(nil, "PropaneTank")
end
self:setActionAnim("TakeGasFromPump")
self.tank:setJobType(getText("ContextMenu_TakePropaneFromPump"))
self.tank:setJobDelta(0.0)
local itemCurrent = math.floor(self.tank:getCurrentUsesFloat() / self.tank:getUseDelta() + 0.001)
local itemMax = math.floor(1 / self.tank:getUseDelta() + 0.001)
local take = (itemMax - itemCurrent)
self.action:setTime(take/itemMax * self.duration)
self.itemStart = itemCurrent
self.itemTarget = itemCurrent + take
end
I do not know for a fact, but I assume what is happening is that the mod uses gasoline to fill the things. It does take time, and more time for bigger containers. So maybe when the fuel is out, the propane is out.
Thank you very much. I will take some time to create a separate mod for this project to avoid any further negative issues
Worked like a charm! thanks my man <3
1. Open Propane_Refill_recipes.txt from this location:
.\steam\steamapps\workshop\content\108600\3394378143\mods\[B42]PumpsHavePropane-transplant\42.0\media\scripts
2. Update line 3. Instead of CN characters you need to have this:
craftRecipe PropaneRefillMod
3. Remove line 7 (with CN characters)
4. Add a new file Recipes_EN.txt into :
.\steam\steamapps\workshop\content\108600\3394378143\mods\[B42]PumpsHavePropane-transplant\42.0\media\lua\shared\Translate\EN
5. Modify this file from step 4 and add there this block:
Recipes_EN =
{
Recipe_PropaneRefillMod = "Refill Propane",
}
6. Repeat steps 4 and 5 for CN version, where instead of EN would be CN
When i tried to start without this mode enabled, it's working, but it crash the game as soon as it is enabled and lua reload.
Thank you.
無法在-debug下進行遊戲
一旦兩者同時啟用便會出現錯誤
不過問題不大 因為你這個模組
即使突然停用也不會造成太大問題
回報一下 ~
I'm not a coder myself but:
- it might be related to UTF-8 or special characters. The error says recipe name "????" which could be that he can't parse the name?
- a few lines above the error the log mentions that there should be no spaces in the recipe name "fuel pump"
Here is the error and below you find the "space info":
LOG : General > [craftRecipe] removing script due to load error = ?????
ERROR: General> ExceptionLogger.logException> Exception thrown
java.lang.Exception: CraftRecipe error in ????? at CraftRecipe.Load(CraftRecipe.java:359).
Stack trace:
zombie.scripting.entity.components.crafting.CraftRecipe.Load(CraftRecipe.java:359)
zombie.scripting.entity.components.crafting.CraftRecipe.Load(CraftRecipe.java:249)
Space error:
ERROR: General > FluidContainerScript.load > Sanitizing container name 'Fuel Pump', name may not contain whitespaces.