Page 2 of 2

Re: [Game] Survival 0.1

Posted: Mon Oct 24, 2016 02:25
by Nathan.S
I'm pretty horrible with keeping anybody up to date on any changes in this subgame on this forum thread.

I did just push a decent update, added a juice press, and a barrel to store juice in, pretty slick, you can even use the press directly to fill the barrel. I'll be showing that in one of my lets plays episodes fairly soon I'm sure. :P

Pull a fresh copy from github to get all the new goodies.

P.S.
I did update a handful of other mods as well, and make some other trifling changes to fix errors that were popping up in the terminal about depreciated code, and other small errors.

Re: [Game] Survival 0.1

Posted: Sat Oct 29, 2016 17:03
by azekill_DIABLO
Happy to see that game is still being continued.

Re: [Game] Survival 0.1

Posted: Tue Mar 21, 2017 10:25
by dawgdoc
Nathan,

I don't know if you are still maintaining this project. My assumption is that you are based on changes to the github page as recent as a month ago.

I am new to MT and have been exploring to see what I enjoy. Anyhow, downloaded the zip from your Github page, extracted the zip into the games folder, shortened the directory name to Survival_game by removing -master from the tail end. Fired up MT, selected your subgame, and created a world using only default settings. After selecting play I received an error message:

Short version:

Code: Select all

2017-03-21 04:28:31: ERROR[Main]: cannot open /home/dawgdoc/.minetest/games/Survival_game/mods/mobs_redo/init.lua: No such file or directory
Spoiler

Code: Select all

-------------
  Separator
-------------

2017-03-21 04:28:31: WARNING[Main]: BanManager: creating /home/dawgdoc/.minetest/worlds/1st-Look/ipban.txt
2017-03-21 04:28:31: ERROR[Main]: mod "gastroenteritis" has unsatisfied dependencies:  "mobs"
2017-03-21 04:28:31: ERROR[Main]: mod "animals" has unsatisfied dependencies:  "mobs"
2017-03-21 04:28:31: ERROR[Main]: mod "goblins" has unsatisfied dependencies:  "mobs"
2017-03-21 04:28:31: ERROR[Main]: mod "mobs_monster" has unsatisfied dependencies:  "mobs"
2017-03-21 04:28:31: WARNING[Main]: NodeDefManager: Ignoring CONTENT_IGNORE redefinition
2017-03-21 04:28:31: WARNING[Main]: Field "light_propagates": Deprecated; determined from paramtype
2017-03-21 04:28:31: WARNING[Main]: Undeclared global variable "descr" accessed at ...c/.minetest/games/Survival_game/mods/nsspf/mushrooms.lua:1687
2017-03-21 04:28:31: ERROR[Main]: ModError: Failed to load and run script from /home/dawgdoc/.minetest/games/Survival_game/mods/mobs_redo/init.lua:
2017-03-21 04:28:31: ERROR[Main]: cannot open /home/dawgdoc/.minetest/games/Survival_game/mods/mobs_redo/init.lua: No such file or directory
2017-03-21 04:28:31: ERROR[Main]: Check debug.txt for details.
I looked in the file tree and saw that the mobs_redo directory was present, but empty. That didn't seem like it would be difficult to correct. I copied the contents of the mobs_redo folder I had installed in ~/.minetest/mods/ to the location where the subgame was looking. Since I had not enabled any of the mods I had separately installed I didn't expect any difficulties. I used the files from v1.34 released earlier this month by TenPlus. I deleted that world and gave it another go. The new error messages seem to be caused by biome_lib mod folder being empty.

Short version:

Code: Select all

ModError: Failed to load and run script from /home/dawgdoc/.minetest/games/Survival_game/mods/plantlife_modpack/vines/init.lua:
2017-03-21 04:46:37: ERROR[Main]: ...Survival_game/mods/plantlife_modpack/vines/functions.lua:94: attempt to index global 'biome_lib' (a nil value)
2017-03-21 04:46:37: ERROR[Main]: stack traceback:
2017-03-21 04:46:37: ERROR[Main]: 	...Survival_game/mods/plantlife_modpack/vines/functions.lua:94: in function 'register_vine'
2017-03-21 04:46:37: ERROR[Main]: 	...mes/Survival_game/mods/plantlife_modpack/vines/vines.lua:1: in main chunk
2017-03-21 04:46:37: ERROR[Main]: 	[C]: in function 'dofile'
2017-03-21 04:46:37: ERROR[Main]: 	...ames/Survival_game/mods/plantlife_modpack/vines/init.lua:11: in main chunk
Spoiler

Code: Select all

-------------
  Separator
-------------

2017-03-21 04:46:37: WARNING[Main]: BanManager: creating /home/dawgdoc/.minetest/worlds/1st-Look/ipban.txt
2017-03-21 04:46:37: WARNING[Main]: NodeDefManager: Ignoring CONTENT_IGNORE redefinition
2017-03-21 04:46:37: WARNING[Main]: Field "light_propagates": Deprecated; determined from paramtype
2017-03-21 04:46:37: WARNING[Main]: Undeclared global variable "descr" accessed at ...c/.minetest/games/Survival_game/mods/nsspf/mushrooms.lua:1687
2017-03-21 04:46:37: WARNING[Main]: get_mapgen_params is deprecated; use get_mapgen_setting instead
2017-03-21 04:46:37: WARNING[Main]: Not registering alias, item with same name is already defined: farming:cotton -> farming:cotton_3
2017-03-21 04:46:37: ACTION[Main]: [crops] Hydration and dehydration mechanics are enabled.
2017-03-21 04:46:37: WARNING[Main]: get_mapgen_params is deprecated; use get_mapgen_setting instead
2017-03-21 04:46:37: ACTION[Main]: [crops] loaded.
2017-03-21 04:46:37: WARNING[Main]: Undeclared global variable "singleplayer" accessed at ...doc/.minetest/games/Survival_game/mods/goblins/traps.lua:321
2017-03-21 04:46:37: WARNING[Main]: Undeclared global variable "intllib" accessed at ...dawgdoc/.minetest/games/Survival_game/mods/glow/init.lua:3
2017-03-21 04:46:37: WARNING[Main]: get_mapgen_params is deprecated; use get_mapgen_setting instead
2017-03-21 04:46:37: WARNING[Main]: get_mapgen_params is deprecated; use get_mapgen_setting instead
2017-03-21 04:46:37: WARNING[Main]: Field "noise_threshhold": Deprecated: new name is "noise_threshold".
2017-03-21 04:46:37: WARNING[Main]: Field "noise_threshhold": Deprecated: new name is "noise_threshold".
2017-03-21 04:46:37: WARNING[Main]: Undeclared global variable "HUD_ENABLE_HUNGER" accessed at ...wgdoc/.minetest/games/Survival_game/mods/hud/builtin.lua:41
2017-03-21 04:46:37: WARNING[Main]: Undeclared global variable "HUD_THIRST_POS" accessed at ...wgdoc/.minetest/games/Survival_game/mods/thirsty/hud.lua:47
2017-03-21 04:46:37: WARNING[Main]: Undeclared global variable "HUD_THIRST_OFFSET" accessed at ...wgdoc/.minetest/games/Survival_game/mods/thirsty/hud.lua:48
2017-03-21 04:46:37: WARNING[Main]: Undeclared global variable "HUD_SD_SIZE" accessed at ...wgdoc/.minetest/games/Survival_game/mods/thirsty/hud.lua:56
2017-03-21 04:46:37: WARNING[Main]: Undeclared global variable "biome_lib" accessed at ...Survival_game/mods/plantlife_modpack/vines/functions.lua:94
2017-03-21 04:46:37: ERROR[Main]: ModError: Failed to load and run script from /home/dawgdoc/.minetest/games/Survival_game/mods/plantlife_modpack/vines/init.lua:
2017-03-21 04:46:37: ERROR[Main]: ...Survival_game/mods/plantlife_modpack/vines/functions.lua:94: attempt to index global 'biome_lib' (a nil value)
2017-03-21 04:46:37: ERROR[Main]: stack traceback:
2017-03-21 04:46:37: ERROR[Main]: 	...Survival_game/mods/plantlife_modpack/vines/functions.lua:94: in function 'register_vine'
2017-03-21 04:46:37: ERROR[Main]: 	...mes/Survival_game/mods/plantlife_modpack/vines/vines.lua:1: in main chunk
2017-03-21 04:46:37: ERROR[Main]: 	[C]: in function 'dofile'
2017-03-21 04:46:37: ERROR[Main]: 	...ames/Survival_game/mods/plantlife_modpack/vines/init.lua:11: in main chunk
2017-03-21 04:46:37: ERROR[Main]: Check debug.txt for details.

Not being a programmer/coder, but being able to read, it seemed to me that the vines sub-mod was causing the problem. Knowing I can always re-extract the zip and start over, I decided to delete vines and see what the result would be. I still received an error message, but it was much shorter. Also, it was still complaining about biome_lib being empty.

Short version:

Code: Select all

2017-03-21 05:02:06: ERROR[Main]: ModError: Failed to load and run script from /home/dawgdoc/.minetest/games/Survival_game/mods/biome_lib/init.lua:
2017-03-21 05:02:06: ERROR[Main]: cannot open /home/dawgdoc/.minetest/games/Survival_game/mods/biome_lib/init.lua: No such file or directory
2017-03-21 05:02:06: ERROR[Main]: Check debug.txt for details.
Spoiler

Code: Select all

-------------
  Separator
-------------

2017-03-21 05:02:06: WARNING[Main]: BanManager: creating /home/dawgdoc/.minetest/worlds/1st-Look-redux/ipban.txt
2017-03-21 05:02:06: WARNING[Main]: NodeDefManager: Ignoring CONTENT_IGNORE redefinition
2017-03-21 05:02:06: WARNING[Main]: Field "light_propagates": Deprecated; determined from paramtype
2017-03-21 05:02:06: WARNING[Main]: Undeclared global variable "descr" accessed at ...c/.minetest/games/Survival_game/mods/nsspf/mushrooms.lua:1687
2017-03-21 05:02:06: WARNING[Main]: get_mapgen_params is deprecated; use get_mapgen_setting instead
2017-03-21 05:02:06: WARNING[Main]: Not registering alias, item with same name is already defined: farming:cotton -> farming:cotton_3
2017-03-21 05:02:06: ACTION[Main]: [crops] Hydration and dehydration mechanics are enabled.
2017-03-21 05:02:06: WARNING[Main]: get_mapgen_params is deprecated; use get_mapgen_setting instead
2017-03-21 05:02:06: ACTION[Main]: [crops] loaded.
2017-03-21 05:02:06: WARNING[Main]: Undeclared global variable "singleplayer" accessed at ...doc/.minetest/games/Survival_game/mods/goblins/traps.lua:321
2017-03-21 05:02:06: WARNING[Main]: Undeclared global variable "intllib" accessed at ...dawgdoc/.minetest/games/Survival_game/mods/glow/init.lua:3
2017-03-21 05:02:06: WARNING[Main]: get_mapgen_params is deprecated; use get_mapgen_setting instead
2017-03-21 05:02:06: WARNING[Main]: get_mapgen_params is deprecated; use get_mapgen_setting instead
2017-03-21 05:02:06: WARNING[Main]: Field "noise_threshhold": Deprecated: new name is "noise_threshold".
2017-03-21 05:02:06: WARNING[Main]: Field "noise_threshhold": Deprecated: new name is "noise_threshold".
2017-03-21 05:02:06: WARNING[Main]: Undeclared global variable "HUD_ENABLE_HUNGER" accessed at ...wgdoc/.minetest/games/Survival_game/mods/hud/builtin.lua:41
2017-03-21 05:02:06: WARNING[Main]: Undeclared global variable "HUD_THIRST_POS" accessed at ...wgdoc/.minetest/games/Survival_game/mods/thirsty/hud.lua:47
2017-03-21 05:02:06: WARNING[Main]: Undeclared global variable "HUD_THIRST_OFFSET" accessed at ...wgdoc/.minetest/games/Survival_game/mods/thirsty/hud.lua:48
2017-03-21 05:02:06: WARNING[Main]: Undeclared global variable "HUD_SD_SIZE" accessed at ...wgdoc/.minetest/games/Survival_game/mods/thirsty/hud.lua:56
2017-03-21 05:02:06: ERROR[Main]: ModError: Failed to load and run script from /home/dawgdoc/.minetest/games/Survival_game/mods/biome_lib/init.lua:
2017-03-21 05:02:06: ERROR[Main]: cannot open /home/dawgdoc/.minetest/games/Survival_game/mods/biome_lib/init.lua: No such file or directory
2017-03-21 05:02:06: ERROR[Main]: Check debug.txt for details.
No reason to now become faint of heart. I deleted the biome_lib mod directory (It was empty). Upon restarting MT, I deleted the old world and created a new one, as I had done after each change. I fully expected to get error messages and have the game not starting. I was surprised. The game started with no apparent errors. I didn't start playing, but I noted there was an empty inventory, hubbars present, and crafting guid was enabled in the inventory. I head ambient noises and saw that my character was on a grassy hillside by a stream/river. Attached is the updated debug.txt; in case there is any value in it.
Spoiler

Code: Select all

-------------
  Separator
-------------

2017-03-21 05:12:19: WARNING[Main]: BanManager: creating /home/dawgdoc/.minetest/worlds/1st_Look less vines and biome_lib/ipban.txt
2017-03-21 05:12:19: WARNING[Main]: NodeDefManager: Ignoring CONTENT_IGNORE redefinition
2017-03-21 05:12:19: WARNING[Main]: Field "light_propagates": Deprecated; determined from paramtype
2017-03-21 05:12:19: WARNING[Main]: Undeclared global variable "descr" accessed at ...c/.minetest/games/Survival_game/mods/nsspf/mushrooms.lua:1687
2017-03-21 05:12:19: WARNING[Main]: get_mapgen_params is deprecated; use get_mapgen_setting instead
2017-03-21 05:12:19: WARNING[Main]: Not registering alias, item with same name is already defined: farming:cotton -> farming:cotton_3
2017-03-21 05:12:19: ACTION[Main]: [crops] Hydration and dehydration mechanics are enabled.
2017-03-21 05:12:19: WARNING[Main]: get_mapgen_params is deprecated; use get_mapgen_setting instead
2017-03-21 05:12:19: ACTION[Main]: [crops] loaded.
2017-03-21 05:12:19: WARNING[Main]: Undeclared global variable "singleplayer" accessed at ...doc/.minetest/games/Survival_game/mods/goblins/traps.lua:321
2017-03-21 05:12:19: WARNING[Main]: Undeclared global variable "intllib" accessed at ...dawgdoc/.minetest/games/Survival_game/mods/glow/init.lua:3
2017-03-21 05:12:19: WARNING[Main]: get_mapgen_params is deprecated; use get_mapgen_setting instead
2017-03-21 05:12:19: WARNING[Main]: get_mapgen_params is deprecated; use get_mapgen_setting instead
2017-03-21 05:12:19: WARNING[Main]: Field "noise_threshhold": Deprecated: new name is "noise_threshold".
2017-03-21 05:12:19: WARNING[Main]: Field "noise_threshhold": Deprecated: new name is "noise_threshold".
2017-03-21 05:12:19: WARNING[Main]: Undeclared global variable "HUD_ENABLE_HUNGER" accessed at ...wgdoc/.minetest/games/Survival_game/mods/hud/builtin.lua:41
2017-03-21 05:12:19: WARNING[Main]: Undeclared global variable "HUD_THIRST_POS" accessed at ...wgdoc/.minetest/games/Survival_game/mods/thirsty/hud.lua:47
2017-03-21 05:12:19: WARNING[Main]: Undeclared global variable "HUD_THIRST_OFFSET" accessed at ...wgdoc/.minetest/games/Survival_game/mods/thirsty/hud.lua:48
2017-03-21 05:12:19: WARNING[Main]: Undeclared global variable "HUD_SD_SIZE" accessed at ...wgdoc/.minetest/games/Survival_game/mods/thirsty/hud.lua:56
2017-03-21 05:12:19: ACTION[Main]:         .__               __                   __   
2017-03-21 05:12:19: ACTION[Main]:   _____ |__| ____   _____/  |_  ____   _______/  |_ 
2017-03-21 05:12:19: ACTION[Main]:  /     \|  |/    \_/ __ \   __\/ __ \ /  ___/\   __\
2017-03-21 05:12:19: ACTION[Main]: |  Y Y  \  |   |  \  ___/|  | \  ___/ \___ \  |  |  
2017-03-21 05:12:19: ACTION[Main]: |__|_|  /__|___|  /\___  >__|  \___  >____  > |__|  
2017-03-21 05:12:19: ACTION[Main]:       \/        \/     \/          \/     \/        
2017-03-21 05:12:19: ACTION[Main]: World at [/home/dawgdoc/.minetest/worlds/1st_Look less vines and biome_lib]
2017-03-21 05:12:19: ACTION[Main]: Server for gameid="Survival" listening on 0.0.0.0:62254.
2017-03-21 05:12:26: ERROR[Main]: generateImage(): Could not load image "snow_snow.png" while building texture
2017-03-21 05:12:26: ERROR[Main]: generateImage(): Creating a dummy image for "snow_snow.png"
2017-03-21 05:12:26: ERROR[Main]: generateImage(): Could not load image "hiking_illuminated_pole_sign_bottom_.png" while building texture
2017-03-21 05:12:26: ERROR[Main]: generateImage(): Creating a dummy image for "hiking_illuminated_pole_sign_bottom_.png"
2017-03-21 05:12:27: ACTION[Server]: singleplayer [127.0.0.1] joins game. 
2017-03-21 05:12:27: ACTION[Server]: singleplayer joins game. List of players: singleplayer
2017-03-21 05:12:27: WARNING[Server]: Deprecated usage of statbar without size!
2017-03-21 05:12:27: WARNING[Server]: Deprecated usage of statbar without size!
2017-03-21 05:12:27: WARNING[Server]: core.env:[...] is deprecated and should be replaced with core.[...]
2017-03-21 05:12:28: WARNING[Emerge-0]: Undeclared global variable "pr" accessed at ...minetest/games/Survival_game/mods/railcorridors/init.lua:336
2017-03-21 05:12:28: WARNING[Emerge-0]: Assignment to undeclared global "pr" inside a function at ...minetest/games/Survival_game/mods/railcorridors/init.lua:337.
2017-03-21 05:12:32: WARNING[Server]: nodeupdate: deprecated, please use core.check_for_falling instead
2017-03-21 05:12:32: WARNING[Server]: active block modifiers took 234ms (longer than 200ms)
2017-03-21 05:12:35: WARNING[Server]: nodeupdate: deprecated, please use core.check_for_falling instead
2017-03-21 05:12:38: WARNING[Server]: nodeupdate: deprecated, please use core.check_for_falling instead
2017-03-21 05:12:38: WARNING[Server]: active block modifiers took 287ms (longer than 200ms)
2017-03-21 05:12:45: WARNING[Server]: active block modifiers took 215ms (longer than 200ms)
2017-03-21 05:12:48: WARNING[Server]: active block modifiers took 238ms (longer than 200ms)
2017-03-21 05:12:59: WARNING[Server]: active block modifiers took 302ms (longer than 200ms)
2017-03-21 05:13:00: WARNING[Server]: active block modifiers took 225ms (longer than 200ms)
2017-03-21 05:13:12: WARNING[Server]: active block modifiers took 258ms (longer than 200ms)
2017-03-21 05:13:16: WARNING[Server]: active block modifiers took 281ms (longer than 200ms)
I looked at your gethub page, but the biome_lib mod did not have an active link. I was hoping to just pull the file and add it in.

I will play a bit and see if it is anything like the first dozen LP videos in your series, or if my version is more broken than I realize.

Edit: I am running MT 0.4.15 on LInuxMint from the Ubuntu PPA.

Re: [Game] Survival 0.1

Posted: Mon Mar 27, 2017 01:39
by Nathan.S
Dawgdoc, I use a submodule for Mobs_redo and Biome_lib, unfortunately they don't seem to get included in the archive when downloaded, which I don't understand. Because I make no changes to those two mods I didn't think it would be necessary to include them directly, but you're not the first person to have this problem. I may change them so when downloading the subgame they will be included and everything will 'just work'. I am stopping active development on this subgame, as the (2017-03-21 05:12:38: WARNING[Server]: active block modifiers took 287ms (longer than 200ms)) errors are getting out of hand. The subgame has a lot of mods, and much code is probably redundant, and hacky. By starting with a completely fresh game and coding everything myself, I can reduce the number of ABMs and make things run smoother and with fewer problems.

My new subgame will be very similar to this, (honestly mostly just a complete rewrite.) but hopefully work better and have a more fluid feel to it. I haven't yet decided on a name, but it will at some point end up on a server, which a heavy team play dynamic. When I get something together to share I'll update this post to let people know where to look for updates.

Re: [Game] Survival 0.1

Posted: Tue Mar 28, 2017 01:38
by dawgdoc
Thank you for the update. I noticed in the .gitmodules file that you had annotated mobs_redo. I was working on the assumption that I wasn't getting it since I don't have a git account.

After you made the changes to the drink functions I retrieved the biome_lib mod and added it. Along the same thought I downloaded plantlife_modpack and pulled the vines mod and also added it. No errors resulted from either addition. I noticed that you added in a helicopter mod. Is this pulled from the Simple Helicopter mod [helicopter]?

I am considering registering for a git-hub account and learning enough to keep my game, sub-games, mods, etc. synced. I am thinking I may start with the few mods in this sub-game as my learning base; specifically mobs_redo, plantlife_modpack, and biome-lib. These seem to get updated on a somewhat regular basis. If that works I will expand my git activities.

EDIT: I hope you are beginning to feel better.

Re: [Game] Survival 0.1

Posted: Tue Mar 28, 2017 12:51
by Nathan.S
If you use the command line and clone the repo to your machine you can use a flag, --recursive, I believe, and it pull pull submodules, but I'm not that versed in Git to know for sure.

I added the helicopter mod just for my youtube playlist on this subgame, for the last episode, but I had issues with it, when using it my screen would just go black, not sure what was causing that, as I just did a mod review on it a while back and had no problems there. probably a compatibility issue with something.

I'm feeling much better, took a week, but I'm finally back to normal. :)

Re: [Game] Survival 0.1

Posted: Thu Apr 20, 2017 01:40
by Pablo.R
Nathan, I think that maybe you must delete the glow mod to get rid of the " active block modifiers took 287ms (longer than 200ms)" messages. The ABMs of the glow mod generated a lot of memory problems in my computer so I deleted it, and now the game run smoothly.

Re: [Game] Survival 0.1

Posted: Thu Apr 20, 2017 08:01
by azekill_DIABLO
weird glow mod can be modified to avoid any error, just put lnger intervals

Re: [Game] Survival 0.1

Posted: Fri Apr 21, 2017 03:38
by dawgdoc
azekill_DIABLO wrote:weird glow mod can be modified to avoid any error, just put lnger intervals
Are you speaking of changes in the init.lua, specifically --

Code: Select all

219 	interval = 40.0,
220  	chance = 10,
221  	action = function(pos, node, active_object_count, active_object_count_wider)
222  		if math.random() < 0.3 then
223  	   		add_shrooms(pos)
224  		else

and

Code: Select all

282 	interval = 2.0,
283  	chance = 300,
284  	action = function(pos, node, active_object_count, active_object_count_wider)
285  		if minetest.get_timeofday() > 0.74 or minetest.get_timeofday() < 0.22 then

If these are the areas you spoke of changing to integers (?), would something like this work?

Code: Select all

222          if math.random() * 10 < 3 then
and 
[code]285                if minetest.get_timeofday() * 100 > 74 or minetest.get_timeofday() * 100 < 22 then
Please forgive me if I am way off base, the last CS class I had was in 1979. It was Basic, not VBasic, QBasic, or anything else with the word Basic in it.

Re: [Game] Survival 0.1

Posted: Fri Apr 21, 2017 11:47
by azekill_DIABLO
oh, no need to be complicated, just put a far bugger interval and a bit smaller chance it will be good :)

Re: [Game] Survival 0.1

Posted: Sun Apr 23, 2017 14:40
by Nathan.S
Just to make everybody aware, I'm halting work on this subgame.

I'm currently working on recreating the game entirely from scratch, well almost entirely. The game play will be mostly the same, but things will hopefully run smoother with fewer abms and better functions controlling stuff. I haven't created a new topic for it, but the code is on Github and you can check it out here, https://github.com/NathanSalapat/new-subgame though I should mention that it's very basic right now.