Is there a plugin where I do not have to use low grade to start up any vehicle? Also, all entities that require materials, in general, to fuel things up?
Use Low Grade Fuel to fuel things (like vehicles)?
May I submit a request for a plugin to be made for those that want to start a vehicle without having to put lowgrade and have any consumption from the vehicle?
Um, there is one. 0x89A just posted an example.
Many servers use this.... the minicopter practice servers for instance.
Many servers use this.... the minicopter practice servers for instance.
GonzoRustUm, there is one. 0x89A just posted an example.
Many servers use this.... the minicopter practice servers for instance.
But I have to still put a single lowgrade to power it up.
hm. on the server i played, it just spawned with gas in it. :shrug:
Yes, you can submit plugin requests in the plugin requests section. Community > Plugin RequestsMoneyTimeBroMay I submit a request for a plugin to be made for those that want to start a vehicle without having to put lowgrade and have any consumption from the vehicle?
You HAVE to have 1 low grade and/ 1 water...
This is to prevent the FP internal math from taking the server down with NRE's
in many cases thier whole internal list structure depends on it....
That is to say.... that you cannot have an "empty" (0) list item in much of the code., they use "empty lists" to denote "no content"
rather than a list with a list item containing "0"....
so..... if you try to shove in an item into thier storage lists with a "0" in the list item, the shit starts to throw NRE's all over the place...
it's what's called in the industry as "clever programming", where a programer thinks they discoverd a "really clever" way of donig things.. but in reality it's just sloppy shit.
And yep.. i know they thought it was a "good idea":
You just check the list for list entries & if it's not zero there must be content... so you can do your addition or subtraction safe in the knowlage you don't need range checks..., I.E the secondary check of recovering the list item to check if it is non zero......
This is to prevent the FP internal math from taking the server down with NRE's
in many cases thier whole internal list structure depends on it....
That is to say.... that you cannot have an "empty" (0) list item in much of the code., they use "empty lists" to denote "no content"
rather than a list with a list item containing "0"....
so..... if you try to shove in an item into thier storage lists with a "0" in the list item, the shit starts to throw NRE's all over the place...
it's what's called in the industry as "clever programming", where a programer thinks they discoverd a "really clever" way of donig things.. but in reality it's just sloppy shit.
And yep.. i know they thought it was a "good idea":
You just check the list for list entries & if it's not zero there must be content... so you can do your addition or subtraction safe in the knowlage you don't need range checks..., I.E the secondary check of recovering the list item to check if it is non zero......
Not sure what you are talking about here. On the surface, it sounds like you are speculating about developer motives and arriving at possibly mistaken conclusions. Could you share the code where you were having issues?razorfishsl
You HAVE to have 1 low grade and/ 1 water...
This is to prevent the FP internal math from taking the server down with NRE's
in many cases thier whole internal list structure depends on it....
That is to say.... that you cannot have an "empty" (0) list item in much of the code., they use "empty lists" to denote "no content"
rather than a list with a list item containing "0"....
so..... if you try to shove in an item into thier storage lists with a "0" in the list item, the shit starts to throw NRE's all over the place...
it's what's called in the industry as "clever programming", where a programer thinks they discoverd a "really clever" way of donig things.. but in reality it's just sloppy shit.
And yep.. i know they thought it was a "good idea":
You just check the list for list entries & if it's not zero there must be content... so you can do your addition or subtraction safe in the knowlage you don't need range checks..., I.E the secondary check of recovering the list item to check if it is non zero......
nope.... go search the rust code base for "Cannot create xxxx of less than 1"
reason I'm familliar with this case..... is from writing stacker code...
and other plugins.....
The above is an interesting case......
becasue "Nivex" cannot find it, and insinuates it's not his plugin becasue it is "unloaded"...
but it actually corrupts the internal maths routines by taking the math negative....... and triggering the errors , even if the plugin is unlaoded..
basically it "corrupts" the map file....
sometimes things look like they aint broken ... until . .they are...
took me about a week to find the boundry cases triggering this one... and in doing so i bumpepd into the code to prevent items containing 0.
Merged post
or maybe i'm just as insane as the shrink said say I am...
reason I'm familliar with this case..... is from writing stacker code...
and other plugins.....
Unloaded plugin Water Works v1.0.3 by nivex
Creating item with less than 1 amount! (Water)
NullReferenceException: Object reference not set to an instance of an object
at ItemContainer.AddItem (ItemDefinition itemToCreate, System.Int32 p, System.UInt64 skin) [0x000d9] in <906b6a9cf1f54122946827376d3604ad>:0
at LiquidContainer.PushLiquidThroughOutputs () [0x000cd] in <906b6a9cf1f54122946827376d3604ad>:0
at InvokeHandlerBase`1[T].DoTick () [0x000be] in <8dd89de7d93d4126983e2692f5194aee>:0
at InvokeHandlerBase`1[T].LateUpdate () [0x0000c] in <8dd89de7d93d4126983e2692f5194a
Specifically becasue the add item code seems to ensure in some cases that things like water & fuel have to have a non zero value.
Maybe they changed it after all the complaints & bugs i filed but last time i checked on "lanterns" the damned things needs 1 fuel to get rid of the NRE's due to the math subtraction of being a consumer to be lit...
And if you do manage to get "zero" items in, then it seems to break the gui for displaying the contents bcause the list has an item.... but actually it has "nothing"
like I mentioned this is gonig back months...
The above is an interesting case......
becasue "Nivex" cannot find it, and insinuates it's not his plugin becasue it is "unloaded"...
but it actually corrupts the internal maths routines by taking the math negative....... and triggering the errors , even if the plugin is unlaoded..
basically it "corrupts" the map file....
sometimes things look like they aint broken ... until . .they are...
took me about a week to find the boundry cases triggering this one... and in doing so i bumpepd into the code to prevent items containing 0.
Merged post
or maybe i'm just as insane as the shrink said say I am...
It's just a safety check to ensure that items aren't created with zero quantity. Because that shouldn't happen.
Anyway, it's not a lot of code to put 1 fuel in the tank of vehicles when they spawn, lock the container, and set fuel usage to zero. It's been done.
Anyway, it's not a lot of code to put 1 fuel in the tank of vehicles when they spawn, lock the container, and set fuel usage to zero. It's been done.
Seems intuitive to me that an empty item list represents and empty container. An item with amount 0 is considered invalid state by the game. Having to add an item with 0 amount just to represent an empty container would be unnecessarily complicated.
Regarding the Water Works issue, I don't see any code in that plugin that affects item amounts so not sure if it's what's causing the issue you had.
Regarding the Water Works issue, I don't see any code in that plugin that affects item amounts so not sure if it's what's causing the issue you had.
not me having teh issue
and there is LOADS of code...
I have a lot of respect for you WT. you are well informed & researched... but you don't think like a bug...... ;-)
THAT's why it took me nearly a week....
I still laugth when i think about it.. Now THAT'S a BUG!!!
The fuel i know about because i had a plugin... it passed the tests on a test server for several hours
great... solid.... loaded it into a live server... 4 hours later it's generating 600MB of log file NRE an hour...
But now I can put together a plugin that once unloaded can take a server down... either by log flooding
or corrupting the map file. but only after it is unloaded...
Basically a DDOS plugin, that can only be corrected by a map wipe or writing anoter plugin to counteract the intitial setup.
and there is LOADS of code...
I have a lot of respect for you WT. you are well informed & researched... but you don't think like a bug...... ;-)
THAT's why it took me nearly a week....
I still laugth when i think about it.. Now THAT'S a BUG!!!
The fuel i know about because i had a plugin... it passed the tests on a test server for several hours
great... solid.... loaded it into a live server... 4 hours later it's generating 600MB of log file NRE an hour...
But now I can put together a plugin that once unloaded can take a server down... either by log flooding
or corrupting the map file. but only after it is unloaded...
Basically a DDOS plugin, that can only be corrected by a map wipe or writing anoter plugin to counteract the intitial setup.
You should generally assume any reference could be null.