Coder Social home page Coder Social logo

fuel-api's People

Contributors

konijima avatar s0p4 avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

fuel-api's Issues

Permission to reuse one of your functions in own mod

@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!

Would it be possible to make the Barrles drainable?

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.

Possible mistake in container capacity operations (Utils.GetProperLitres)

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).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.