Re: [MOD 0.11.6] Cursed Exp - v0.1.2
Posted: Tue Dec 23, 2014 9:23 pm
That was my first think, but i don't like lose all this work :/
Yes, this is a bug, this must work and now has less codeAlyxDeLunar wrote:I've never noticed blood disappearing from the game by itself. While trying to work on stuff, I noticed that in the spot in your code (around the 1371 line mark in 0.1.2) that removes blood puddles, you seem to be removing the blood entity from the reference table regardless of what check is made (and there are 3 checks I'm not sure what difference there is).
I haven't spent enough time looking at the code to understand exactly what is going on, so I'm not going to make assumptions, but I think there may be an error with the way you are checking blood puddles, and consequently they are never getting removed.
Code: Select all
local blood = glob.cursed.others.blood
for i = 1, #blood do
if blood[i] ~= nil and blood[i].entity ~= nil then
if blood[i].time == 0 then
if blood[i].entity then
blood[i].entity.destroy()
end
table.remove(blood,i)
else
blood[i].time = blood[i].time - 1
end
elseif blood[i] ~= nil then
if blood[i].entity == nil then
table.remove(blood,i)
end
end
end
It don't work because i changed glob.cursed.tanks for glob.cursed.others.tanksAlyxDeLunar wrote:Secondly...
The blood doesn't disappear by itself. At all. I've got blood puddles from the very beginning of the map, and 4 hours in they still sit there. Trying the debug command to remove all the blood puddles also causes a crash.
The crash said that referencing blood was a 'nil' reference. So it seemed the issue is that 'glob.cursed.blood' isn't giving a proper value. I did some searches in the code...
On this version, and the past couple, it seems that 'glob.cursed.blood' isn't actually initialized at any point. The only reference to it I could find was in control.lua, in your ChangeVersion function.
Other than that, it seems it doesn't actually create it, which probably is what is causing this crash, and making the blood not go away, in my game. For reference, this is on a new map, and I don't currently have any existing saves with an older version of the mod for reference. If the behavior is working as expected on old maps, this is most certainly the case.
I reference version 0.0.9, and you do in fact create 'glob.cursed.blood' during the game.onit()
I tried throwing some code in there in oninit to declare glob.cursed.blood and make glob.cursed.others.blood equal to it if it exists. Didn't work though, and it declared an error during the code that removes blood puddles (around line 1371)
Probably works fine on games that already exist, it is just a bit annoying for new games.
Are you sure its a 64x64, feels like 5x5 to meL0771 wrote: Blood:
- When you kill, enemy's blood continues with life.
- You need a blood tank to call the living blood and store this
- Living blood "run" to your tanks
- Each blood tank has 64 x 64 of range
- Blood is deleted after 5min
DraLUSAD wrote:Are you sure its a 64x64, feels like 5x5 to meL0771 wrote: Blood:
- When you kill, enemy's blood continues with life.
- You need a blood tank to call the living blood and store this
- Living blood "run" to your tanks
- Each blood tank has 64 x 64 of range
- Blood is deleted after 5min
Edit 2: There is an exploit, resetting talents and skills ect, gives you T1 10 talents and arrows, you can feely continue to keep resetting (even there is nothing to reset) and you can continue getting talents T1 10's and arrows
Edit 3: Whiles resetting all your stats and talents whiles a cursed mine is present in the world, retrieving it after reset causes a break into the game and sends you back to main menu
Chernojar wrote:Hello. Such a problem.
(In the setting of a tick removed from the stacks - did not help)
and
Factorio 0.11.10 x64
Treefarm 1.2.7
How can I solve it?
P.S. I do not know english, so used a translator, excuse the sloppy
Shirow wrote:In Options -> Other Settings -> Multiplayer Username
^ CANNOT be Empty.
Yea, I tried the range extension too (though not quite as much), but it did feel like too big a cheat.Shirow wrote:Interesting! I'll see if I can port my game "backwards" to an older version (Though I somehow doubt this).
Amusingly my "workaround" was just to change code to increase collection from 5 to 50 tiles. Super "cheaty" but I couldn't figure another workaround at the time (Most of my funnel-plans failed)
But each tank attract blood from 64x64.DraLUSAD wrote:Are you sure its a 64x64, feels like 5x5 to me
Fixes for 0.1.4DraLUSAD wrote:There is an exploit, resetting talents and skills ect, gives you T1 10 talents and arrows
0.1.4DraLUSAD wrote:Whiles resetting all your stats and talents whiles a cursed mine is present in the world
Can see this here. I have a problem with transport belts, if you close your base with this, blood don't move.Shirow wrote:There seems to be a routine that treats the blood like an enemy with a slow move speed, and move toward the blood tanks.
I've never witnessed this behavior and have been skimming through to see if I can find the underlying cause.
Thanks you, I just do it because I enjoy it.Shirow wrote:Excellent work!
I continue maintaining this mod, 100% sure. But i take a break for develop new stuff. I don't like 50 mods different, generally works better one big mod that one modular, and modules works better than 50 little mods.Shirow wrote:What is your current stance toward this Mod? Will you be continuing to develop/maintain it, or are you going to retire it to begin work on a new one?
That is my problem, i can't ask if are in MP and kick the player, this part of my code is very ugly, if you start the game without a nickname, can start, but at 5 seconds you have the first bug, whatever, is my bad, i apologize.Chernojar wrote:Hello. Such a problem.
Me too my friend.Chernojar wrote:P.S. I do not know english, so used a translator, excuse the sloppy
yea, for this i'm thinking in "steam" of blood, after some time (like 2 min), the blood convert in steam of blood (like a bot), faster and can fly over entities, but less dense (less blood comes to tank)[/quote]n9103 wrote:The blood won't willingly enter an area occupied by other structures, so it can't pass gates, and will try very hard to avoid belts.D
I never saw quick blood XD but maybe if is more quick, can change from puddle to steam in... 30-45sec and 30 sec more to delete steam, with this i save a lot of resources, and now can't exist more than 15 puddles for area.n9103 wrote:I've grown tired of just how slow the blood moves
They tryes to create a colony of bloods (?) but with that speed, I think they can't go far in time to clear them.n9103 wrote:I noticed that they will stop very often and very regularly and temporarily set the map origin as their destination.
Thanks you, i remember you are the first helping me.n9103 wrote:In anycase, another shout out to L0 for this very fun mod.
I accept all suggestionsShirow wrote:Amusingly my "workaround" was just to change code to increase collection from 5 to 50 tiles. Super "cheaty" but I couldn't figure another workaround at the time (Most of my funnel-plans failed)
If you thinks, all "balance", functions, items, entities, recipes, every number, all was thought for me, i don't know where is "big a cheat" (i play skyrim with frostfall without fast travel ¬¬), every stuff where you think is bad, please post here and we can change something.n9103 wrote:Yea, I tried the range extension too (though not quite as much), but it did feel like too big a cheat.
I like this, but i have problems in my head, i take option 1 (is a postponed change) and 80% of option 5, now every talent have 50% bonus (crafting in hand only)Shirow wrote:Doing the math
Seems like an interesting idea. I wouldn't mind seeing it in action. Might wait a little longer for the phase change. Maybe 90-120s.L0771 wrote:yea, for this i'm thinking in "steam" of blood, after some time (like 2 min), the blood convert in steam of blood (like a bot), faster and can fly over entities, but less dense (less blood comes to tank) I never saw quick blood XD but maybe if is more quick, can change from puddle to steam in... 30-45sec and 30 sec more to delete steam, with this i save a lot of resources, and now can't exist more than 15 puddles for area.
I have no idea, but that sounds plausible enough. When I increased the speed of the puddles this pause became far less noticeable.They tryes to create a colony of bloods (?) but with that speed, I think they can't go far in time to clear them.
No problem. This is a neat concept and I was happy to help contribute in my indirect fashion. Very glad to hear you're going to be sticking with it for a long time.Thanks you, i remember you are the first helping me.
Shirow wrote:Amusingly my "workaround" was just to change code to increase collection from 5 to 50 tiles. Super "cheaty" but I couldn't figure another workaround at the time (Most of my funnel-plans failed)
To me, the default setting of 5x5 is fine if the puddles move faster. But when they're at the default speed, it can be very hard to get them to negotiate a base entrance reliably. I increased the speed, and Shirow increased the radius. Mostly a matter of personal preference in this case. The default settings really do work just fine, but the slow speed gets a little boring to watch, when I make sure puddles can correctly pathfind to the tank.n9103 wrote:Yea, I tried the range extension too (though not quite as much), but it did feel like too big a cheat.
Hey, so do I!EDIT: i play with factorio 0.11.5
I've augmented the speed, but life time is 30-45, if is too short i can set more, but now have 280% more of speed and steam have 250% more than this, and i've solved the problem if have all transport belt, now the puddle search a way for the transport beltsn9103 wrote:I wouldn't mind seeing it in action. Might wait a little longer for the phase change. Maybe 90-120s.
fixes, i forgot it on changelogn9103 wrote:I have no idea, but that sounds plausible enough. When I increased the speed of the puddles this pause became far less noticeable.They tryes to create a colony of bloods (?) but with that speed, I think they can't go far in time to clear them.
I thought this, but are only 5 secs of difference, and you don't use blood tanks in wall, no one bitter die at range of blood tank (if you say range of recollect)n9103 wrote:Would it be just as fun if there were no puddles oozing around, but any biters killed inside the blood tank's radius directly added to the amount stored?