Page 4 of 5

Re: [MOD 0.12.+] Oxygen

Posted: Sat May 14, 2016 9:24 am
by Sacredd
thomas2003 wrote:Any help would be appreciated.My problem is that if you put this mod in then load an older save you will have no oxygen meter or anything, I can still research the oxygen things, but there is no oxygen meter.

Thanks in advance.


(If you start a new game you do see the oxygen meter.)
Same Problem. How to activate the mod in a save game, where Oxygen wasn't used before?

Re: [MOD 0.12.+] Oxygen

Posted: Sat May 14, 2016 3:35 pm
by Natha
Sacredd wrote:
thomas2003 wrote:Any help would be appreciated.My problem is that if you put this mod in then load an older save you will have no oxygen meter or anything, I can still research the oxygen things, but there is no oxygen meter.

Thanks in advance.


(If you start a new game you do see the oxygen meter.)
Same Problem. How to activate the mod in a save game, where Oxygen wasn't used before?
Implemented now. Be careful about using existing multiplayer savegames.

Re: [MOD 0.12.+] Oxygen

Posted: Sat May 14, 2016 4:59 pm
by Sacredd
Thanks for the update.
I am getting error if try to start with 1.3.10:
Zwischenablage06.png
Zwischenablage06.png (8.2 KiB) Viewed 6994 times

Re: [MOD 0.12.+] Oxygen

Posted: Mon May 16, 2016 7:28 am
by Natha
Sacredd wrote:Thanks for the update.
I am getting error if try to start with 1.3.10:
Zwischenablage06.png
It should be fixed :)

Re: [MOD 0.12.+] Oxygen

Posted: Tue May 17, 2016 12:33 pm
by Lightning_Bird
I was getting the recipe with name error, "oxygen-from-atmosphere" whenever I wanted to start a game with with bob's mods.

So I deleted this part from prototypes>oxygen.lua code.

Code: Select all

if data.raw.recipe["water-electrolysis"] == nil then
.
.
.
end
It works now.

Re: [MOD 0.12.+] Oxygen

Posted: Thu May 19, 2016 4:36 pm
by Sacredd
Natha wrote:
Sacredd wrote:Thanks for the update.
I am getting error if try to start with 1.3.10:
Zwischenablage06.png
It should be fixed :)
Thank you, but stil getting the same error. Its seems not work with other mods, maybe bob's?

Re: [MOD 0.12.+] Oxygen

Posted: Sun May 22, 2016 5:11 am
by wahming
A suggestion - have an indicator with the oxygen counter indicating how many full bottles we have left, so I don't have to check my inventory everytime the notification that a bottle has been used appears. Alternatively, include the info in the notification.

'A large oxygen bottle has been used. You have 2 large bottles and 3 small bottles remaining, for approximately 15 minutes (or w/e) of air.'

Even a custom bright red notification (if that's possible?) when you're on your last bottle.

"You're gonna suffocate! Get more oxygen NOW"

Also - would it be possible to increase the AoE of the disperser, maybe in exchange for higher oxygen consumption? 10 squares is way too small. There's no way to cover a megabase or even a medium sized one.

For a challenge, you could implement a pollution mechanic - the more oxygen you're pumping into the atmosphere, the further it spreads :D

Re: [MOD 0.12.+] Oxygen

Posted: Mon May 23, 2016 10:06 pm
by Shrooblord
I like your suggestions, wahming. I second that I'd like them see included, if they're not too much of a hassle. Not sure if copying over how pollution currently works except then for oxygen is in any way hard/performance-decimating.

Re: [MOD 0.12.+] Oxygen

Posted: Sun Jul 03, 2016 1:07 am
by AT1DAG
Hi

Need help with the mod
i get alwas this error message
control.lua:129:user isn´t connected;can´t read character and than the server crashed - i try it with various savegames - i have a server by nitrado.net
Checksum for script __Oxygen__/control.lua: 3245535382

can anyone help me to fit it ?

Re: [MOD 0.12.+] Oxygen

Posted: Sun Jul 03, 2016 7:01 am
by Natha
AT1DAG wrote:Hi

Need help with the mod
i get alwas this error message
control.lua:129:user isn´t connected;can´t read character and than the server crashed - i try it with various savegames - i have a server by nitrado.net
Checksum for script __Oxygen__/control.lua: 3245535382

can anyone help me to fit it ?
Hi, which version of Factorio do you use? This mod is currently only for 0.12, I will update soon.
Is there a line given in which the error occurs (maybe __Oxygen__/control.lua:32; because 3245535382 is too big)

Re: [MOD 0.12.+] Oxygen

Posted: Sun Jul 03, 2016 6:27 pm
by AT1DAG
i used the steam version - version 0.12.35


in the serverlog i get this line
52461.742 Error MultiplayerManager.cpp:110: MultiplayerManager failed: "Error while running the event handler: __Oxygen__/control.lua:219: User isn't connected; can't read character"
52461.742 Info MultiplayerManager.cpp:913: networkTick(3147686) mapTick(528390) changing state from(InGame) to(Failed)



in the game i become this as errormsg

Re: [MOD 0.12.+] Oxygen

Posted: Mon Jul 04, 2016 3:02 pm
by Natha
AT1DAG wrote:i used the steam version - version 0.12.35


in the serverlog i get this line
52461.742 Error MultiplayerManager.cpp:110: MultiplayerManager failed: "Error while running the event handler: __Oxygen__/control.lua:219: User isn't connected; can't read character"
52461.742 Info MultiplayerManager.cpp:913: networkTick(3147686) mapTick(528390) changing state from(InGame) to(Failed)



in the game i become this as errormsg
ok it should be fixed

Re: [MOD 0.13.+] Oxygen

Posted: Thu Jul 07, 2016 11:18 am
by Natha
I made an 0.13 experimental update. Enjoy!

Please report bugs, I'm not sure how it works now in multiplayer.
You can download it directly in the factorio client.

Re: [MOD 0.13.+] Oxygen

Posted: Sun Jul 10, 2016 7:40 am
by hoho
There is a small bug in the info.json. You have "N.Tech-Chemistry" there while the mod is called "N-Tech chemistry".

There is also an error when the mod is added to an existing save:

Code: Select all

Error while running the event handler: __Oxygen__/control.lua:103: attempt to index field 'oxygen-scoreboard' (a nil value)
It seems like the GUI/scoreboard isn't created when one adds the mod into an existing save. If I start a new game, it works fine.


Have you thought about making oxygen consumed only if player is in a chunk that has too much pollution? It would mean that there is no need to start the game with oxygen bottles and it only becomes needed if the player is polluting too much.

Re: [MOD 0.13.+] Oxygen

Posted: Sun Jul 10, 2016 9:02 am
by Natha
hoho wrote:There is a small bug in the info.json. You have "N.Tech-Chemistry" there while the mod is called "N-Tech chemistry".

There is also an error when the mod is added to an existing save:

Code: Select all

Error while running the event handler: __Oxygen__/control.lua:103: attempt to index field 'oxygen-scoreboard' (a nil value)
It seems like the GUI/scoreboard isn't created when one adds the mod into an existing save. If I start a new game, it works fine.


Have you thought about making oxygen consumed only if player is in a chunk that has too much pollution? It would mean that there is no need to start the game with oxygen bottles and it only becomes needed if the player is polluting too much.
Thanks for your post, the bugfixes will come next version, and I'll look for your suggestion (maybe enableable in the config).

Re: [MOD 0.13.+] Oxygen

Posted: Sun Jul 10, 2016 10:11 am
by Natha
The update takes longer than I expected due to problems with oxygen bottle durability and bottle refilling. For those who want to play and get this error:

Code: Select all

Error while running the event handler: __Oxygen__/control.lua:103: attempt to index field 'oxygen-scoreboard' (a nil value)
go to the given file and the given line and replace

Code: Select all

for i,p in ipairs(game.players) do
with

Code: Select all

for i=1,#game.players do
Sorry for that!

Re: [MOD 0.13.+] Oxygen

Posted: Sun Jul 10, 2016 1:26 pm
by hoho
Natha wrote:I'll look for your suggestion (maybe enableable in the config).
Yes, configurable would be nice. It'd be especialyl nice if we could configure the amount of pollution that triggers oxygen use as well.

Re: [MOD 0.13.+] Oxygen

Posted: Sun Jul 10, 2016 5:23 pm
by Phantum
hoho wrote:There is a small bug in the info.json. You have "N.Tech-Chemistry" there while the mod is called "N-Tech chemistry".

There is also an error when the mod is added to an existing save:

Code: Select all

Error while running the event handler: __Oxygen__/control.lua:103: attempt to index field 'oxygen-scoreboard' (a nil value)
It seems like the GUI/scoreboard isn't created when one adds the mod into an existing save. If I start a new game, it works fine.


Have you thought about making oxygen consumed only if player is in a chunk that has too much pollution? It would mean that there is no need to start the game with oxygen bottles and it only becomes needed if the player is polluting too much.

That sort of implies that the atmosphere is currently breathable though.



Also if you place too many oxygen distributers too close together it completely whites out an area and you can't see anything there o.o

Re: [MOD 0.13.+] Oxygen

Posted: Sat Jul 23, 2016 10:55 am
by JohnnyBandit
i'm not sure whats causing it, but sometimes i do not get an empty oxygen bottle back when it runs out of oxygen, is it a bug or do you have a built in break chance or something? if so, could you make the break chance configurable?

Edit: Actually I discovered the problem, the game does not like when you have multiple stacks of the same bottle type: i.e 2 stacks of big bottles, when you have 1 stack it works fine, but when you get a 2nd stack in your inventory, you do not recieve the empty bottles (1 stack big and 1 stack small bottles will work fine)

If mod list matters: bobs mods (all), RSO, Angel's infinite ore

Re: [MOD 0.13.+] Oxygen

Posted: Sun Jul 24, 2016 3:49 am
by Aeikon
Hey, I'm getting a weird problem. I'm not sure if it's just me not getting how to make it work or not but my oxygen dispenser is not giving me an atmosphere. I'm playing with a bunch of other mods, including N.Tech, but since you made that I doubt it's interfering. The dispenser still takes the oxygen from the chemical plant, it's display shows it correctly using the gas, and it even shows my butt like it's supposed to. I just don't get oxygen around it, my bottles still empty, and I even tried both putting the bottles into a chest and also waited untill I ran out, it acted as if there was no oxygen there. I don't know if starting off with the dispenser in my inventory is any cause, but I didn't touch the config file, it's exactly as downloaded.

I hope this isn't just me being an idiot, like I need to actually research the dispenser before I can even use them, or something.