konijima / fuel-api Goto Github PK
View Code? Open in Web Editor NEWMod for Project Zomboid, add custom fuel container item to your mods.
Mod for Project Zomboid, add custom fuel container item to your mods.
@Konijima
Hi, I looked for a better way of contacting you but found none (well, maybe via Steam Workshop comment which I will post as well).
I would like to ask for your permission to reuse on of your functions (CLO_Funcs.GetAllFillableWaterItemInInventory) in mod I created and wish to publish (so far I use it on private server). Obviously I plan to credit you for it.
The mod adds working water tank trucks to the game and as you can guess I use your function to find all fillable items in player inventory.
I noticed that it is slightly adjusted native code, nonetheless I would like your permission to reuse your refined version.
I am looking forward to your reply!
I'd love to use the barrels more often, but I often find them "clunky". Draining them with cans can take forever and using Sandbox to fix a singular issue would feel wrong.
Otherwise a great mod you made, almost impossible to play without with.
I am uncertain of why you used "0.125" in line 48 of Utils.lua
local diff = customCapacity / (1 / 0.125);
from my tests it seems that it results in very strange values "taken" from the fuel tanks for any custom container. Possibly you had a reason that I am missing, nonetheless I found that value of 0.1 (1/10 as regular jerrycan stores 10 units of petrol) works much better for my use case (values taken from fuel tanks matched exactly the container capacity).
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.