Rename to Jules Verne's Mysterious Island
@@ -1,7 +1,7 @@
|
|||||||
title = Tungston's Game
|
title = Jules Verne's Mysterious Island
|
||||||
author = TungstonMiner
|
author = TungstonMiner
|
||||||
description = Realism-oriented survival simulation
|
description = Survive and thrive on Jules Verne's mysterious island
|
||||||
first_mod = tmg_first
|
first_mod = jvmi_first
|
||||||
last_mode tmg_last
|
last_mode jvmi_last
|
||||||
allowed_mapgens = singlenode
|
allowed_mapgens = singlenode
|
||||||
default_mapgen = singlenode
|
default_mapgen = singlenode
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
-- Constants ---------------------------------------------------------------------------------------
|
-- Constants ---------------------------------------------------------------------------------------
|
||||||
|
|
||||||
tmg_constants = { -- luacheck: globals tmg_constants
|
jvmi_constants = { -- luacheck: globals jvmi_constants
|
||||||
ALTITUDE = {
|
ALTITUDE = {
|
||||||
SKY = 256,
|
SKY = 256,
|
||||||
MOUNTAIN = 128,
|
MOUNTAIN = 128,
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
-- Imports & Exports -------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
local core = _G["core"]
|
||||||
|
|
||||||
|
local path = core.get_modpath("jvmi_constants")
|
||||||
|
dofile(path.."/constants.lua")
|
||||||
|
|
||||||
|
|
||||||
|
-- Script ------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
core.log("info", "jvmi_constants loaded")
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
name = jvmi_constants
|
||||||
|
title = Jules Verne's Mysterious Island / Constants
|
||||||
|
description = defined shared values across mods
|
||||||
|
author = tungstonminer
|
||||||
@@ -2,21 +2,20 @@
|
|||||||
|
|
||||||
local core = _G["core"]
|
local core = _G["core"]
|
||||||
|
|
||||||
tmg_first = {} -- luacheck: globals tmg_first
|
|
||||||
|
|
||||||
|
|
||||||
-- Private Functions -------------------------------------------------------------------------------
|
-- Private Functions -------------------------------------------------------------------------------
|
||||||
|
|
||||||
local private = {}
|
local private = {}
|
||||||
|
|
||||||
function private.register_mapgen_aliases()
|
function private.register_mapgen_aliases()
|
||||||
core.register_alias("mapgen_stone", "tmg_nodes:stone")
|
core.register_alias("mapgen_stone", "jvmi_nodes:stone")
|
||||||
core.register_alias("mapgen_water_source", "tmg_nodes:water_source")
|
core.register_alias("mapgen_water_source", "jvmi_nodes:water_source")
|
||||||
core.register_alias("mapgen_river_water_source", "tmg_nodes:water_source")
|
core.register_alias("mapgen_river_water_source", "jvmi_nodes:water_source")
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
-- Script ------------------------------------------------------------------------------------------
|
-- Script ------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
core.log("info", "Tungston's Game initializing")
|
|
||||||
private.register_mapgen_aliases()
|
private.register_mapgen_aliases()
|
||||||
|
|
||||||
|
core.log("info", "jvmi_first loaded")
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
name = jvmi_first
|
||||||
|
title = Jules Verne's Mysterious Island / First
|
||||||
|
description = set up game basics
|
||||||
|
author = tungstonminer
|
||||||
@@ -3,6 +3,6 @@
|
|||||||
local core = _G["core"]
|
local core = _G["core"]
|
||||||
|
|
||||||
|
|
||||||
-- Registrations -----------------------------------------------------------------------------------
|
-- Script ------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
core.register_mapgen_script(core.get_modpath("tmg_mapgen").."/mapenv.lua")
|
core.log("info", "jvmi_last loaded")
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
name = jvmi_last
|
||||||
|
title = Jules Verne's Mysterious Island / Last
|
||||||
|
description = complete game setup
|
||||||
|
author = tungstonminer
|
||||||
@@ -0,0 +1,15 @@
|
|||||||
|
-- Imports & Exports -------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
local core = _G["core"]
|
||||||
|
|
||||||
|
local path = core.get_modpath("jvmi_mapgen")
|
||||||
|
|
||||||
|
|
||||||
|
-- Registrations -----------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
core.register_mapgen_script(path.."/mapenv.lua")
|
||||||
|
|
||||||
|
|
||||||
|
-- Script ------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
core.log("info", "jvmi_mapgen loaded")
|
||||||
@@ -5,10 +5,10 @@ local math = _G["math"]
|
|||||||
local VoxelArea = _G["VoxelArea"]
|
local VoxelArea = _G["VoxelArea"]
|
||||||
|
|
||||||
-- Since this script runs inside the mapgen environment, the constants won't be in the global table,
|
-- Since this script runs inside the mapgen environment, the constants won't be in the global table,
|
||||||
-- so we need to run the file manually.
|
-- yet, so we need to run the file manually.
|
||||||
local tmg_constants_path = core.get_modpath("tmg_constants")
|
local jvmi_constants_path = core.get_modpath("jvmi_constants")
|
||||||
dofile(tmg_constants_path.."/constants.lua")
|
dofile(jvmi_constants_path.."/constants.lua")
|
||||||
local C = _G["tmg_constants"]
|
local C = _G["jvmi_constants"]
|
||||||
local A = C.ALTITUDE
|
local A = C.ALTITUDE
|
||||||
|
|
||||||
|
|
||||||
@@ -126,7 +126,7 @@ end
|
|||||||
function private.fill_bedrock(area, fill_min, fill_max)
|
function private.fill_bedrock(area, fill_min, fill_max)
|
||||||
if fill_min.y > A.BEDROCK then return end
|
if fill_min.y > A.BEDROCK then return end
|
||||||
|
|
||||||
local bedrock_id = core.get_content_id("tmg_nodes:bedrock")
|
local bedrock_id = core.get_content_id("jvmi_nodes:bedrock")
|
||||||
local stone_id = core.get_content_id("mapgen_stone")
|
local stone_id = core.get_content_id("mapgen_stone")
|
||||||
|
|
||||||
for x = fill_min.x, fill_max.x do
|
for x = fill_min.x, fill_max.x do
|
||||||
@@ -247,8 +247,6 @@ end
|
|||||||
|
|
||||||
-- Registrations -----------------------------------------------------------------------------------
|
-- Registrations -----------------------------------------------------------------------------------
|
||||||
|
|
||||||
private.prepare_terrain_table()
|
|
||||||
|
|
||||||
core.register_on_generated(function(voxels, fill_min, fill_max)
|
core.register_on_generated(function(voxels, fill_min, fill_max)
|
||||||
local emerged_min, emerged_max = voxels:get_emerged_area()
|
local emerged_min, emerged_max = voxels:get_emerged_area()
|
||||||
local area = VoxelArea(emerged_min, emerged_max)
|
local area = VoxelArea(emerged_min, emerged_max)
|
||||||
@@ -262,3 +260,8 @@ core.register_on_generated(function(voxels, fill_min, fill_max)
|
|||||||
voxels:calc_lighting()
|
voxels:calc_lighting()
|
||||||
voxels:update_liquids()
|
voxels:update_liquids()
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
|
||||||
|
-- Script ------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
private.prepare_terrain_table()
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
name = jvmi_mapgen
|
||||||
|
title = Jules Verne's Mysterious Island / Map Generation
|
||||||
|
description = do the work of actually generating the map
|
||||||
|
author = tungstonminer
|
||||||
|
depends = jvmi_nodes
|
||||||
@@ -5,22 +5,22 @@ local core = _G["core"]
|
|||||||
|
|
||||||
-- Constants ---------------------------------------------------------------------------------------
|
-- Constants ---------------------------------------------------------------------------------------
|
||||||
|
|
||||||
local S = core.get_translator("tmg_nodes")
|
local S = core.get_translator("jvmi_nodes")
|
||||||
|
|
||||||
|
|
||||||
-- Registrations -----------------------------------------------------------------------------------
|
-- Registrations -----------------------------------------------------------------------------------
|
||||||
|
|
||||||
core.register_node("tmg_nodes:bedrock", {
|
core.register_node("jvmi_nodes:bedrock", {
|
||||||
description = S("Bedrock"),
|
description = S("Bedrock"),
|
||||||
drop = "",
|
drop = "",
|
||||||
is_ground_content = false,
|
is_ground_content = false,
|
||||||
sounds = { footstep = "tmg_nodes_stone" },
|
sounds = { footstep = "jvmi_nodes_stone_footstep" },
|
||||||
tiles = {"tmg_nodes_bedrock.png"},
|
tiles = {"jvmi_nodes_bedrock.png"},
|
||||||
})
|
})
|
||||||
|
|
||||||
core.register_node("tmg_nodes:stone", {
|
core.register_node("jvmi_nodes:stone", {
|
||||||
description = S("Stone"),
|
description = S("Stone"),
|
||||||
drop = "tmg_nodes:stone",
|
drop = "jvmi_nodes:stone",
|
||||||
sounds = { footstep = "tmg_nodes_stone" },
|
sounds = { footstep = "jvmi_nodes_stone_footstep" },
|
||||||
tiles = {"tmg_nodes_stone.png"},
|
tiles = {"jvmi_nodes_stone.png"},
|
||||||
})
|
})
|
||||||
@@ -2,9 +2,11 @@
|
|||||||
|
|
||||||
local core = _G["core"]
|
local core = _G["core"]
|
||||||
|
|
||||||
|
local path = core.get_modpath("jvmi_nodes")
|
||||||
|
|
||||||
|
|
||||||
-- Script ------------------------------------------------------------------------------------------
|
-- Script ------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
local path = core.get_modpath("tmg_nodes")
|
|
||||||
dofile(path.."/earthlike.lua")
|
dofile(path.."/earthlike.lua")
|
||||||
dofile(path.."/liquid.lua")
|
dofile(path.."/liquid.lua")
|
||||||
|
core.log("info", "jvmi_nodes loaded")
|
||||||
@@ -1,29 +1,29 @@
|
|||||||
-- Imports & Exports -------------------------------------------------------------------------------
|
-- Imports & Exports -------------------------------------------------------------------------------
|
||||||
|
|
||||||
local core = _G["core"]
|
local core = _G["core"]
|
||||||
local tmg_constants = _G["tmg_constants"]
|
local jvmi_constants = _G["jvmi_constants"]
|
||||||
|
|
||||||
|
|
||||||
-- Constants ---------------------------------------------------------------------------------------
|
-- Constants ---------------------------------------------------------------------------------------
|
||||||
|
|
||||||
local S = core.get_translator("tmg_nodes")
|
local S = core.get_translator("jvmi_nodes")
|
||||||
|
|
||||||
|
|
||||||
-- Registrations -----------------------------------------------------------------------------------
|
-- Registrations -----------------------------------------------------------------------------------
|
||||||
|
|
||||||
core.register_node("tmg_nodes:water_flowing", {
|
core.register_node("jvmi_nodes:water_flowing", {
|
||||||
description = S("Flowing Water"),
|
description = S("Flowing Water"),
|
||||||
drawtype = tmg_constants.DRAW_TYPE.FLOWING_LIQUID,
|
drawtype = jvmi_constants.DRAW_TYPE.FLOWING_LIQUID,
|
||||||
tiles = {{
|
tiles = {{
|
||||||
name = "tmg_nodes_water_flowing_animated.png",
|
name = "jvmi_nodes_water_flowing_animated.png",
|
||||||
animation = {
|
animation = {
|
||||||
type = tmg_constants.ANIMATION_TYPE.VERTICAL_FRAMES,
|
type = jvmi_constants.ANIMATION_TYPE.VERTICAL_FRAMES,
|
||||||
aspect_w = 16,
|
aspect_w = 16,
|
||||||
aspect_h = 16,
|
aspect_h = 16,
|
||||||
length = 5.0,
|
length = 5.0,
|
||||||
},
|
},
|
||||||
}},
|
}},
|
||||||
sounds = { footstep = { name = "tmg_nodes_water_footstep" } },
|
sounds = { footstep = { name = "jvmi_nodes_water_footstep" } },
|
||||||
is_ground_content = false,
|
is_ground_content = false,
|
||||||
use_texture_alpha = "blend",
|
use_texture_alpha = "blend",
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
@@ -34,22 +34,22 @@ core.register_node("tmg_nodes:water_flowing", {
|
|||||||
buildable_to = true,
|
buildable_to = true,
|
||||||
drop = "",
|
drop = "",
|
||||||
drowning = 4,
|
drowning = 4,
|
||||||
liquidtype = tmg_constants.LIQUID_TYPE.FLOWING,
|
liquidtype = jvmi_constants.LIQUID_TYPE.FLOWING,
|
||||||
liquid_alternative_flowing = "tmg_nodes:water_flowing",
|
liquid_alternative_flowing = "jvmi_nodes:water_flowing",
|
||||||
liquid_alternative_source = "tmg_nodes:water_source",
|
liquid_alternative_source = "jvmi_nodes:water_source",
|
||||||
liquid_viscosity = tmg_constants.VISCOSITY.XX_FAST,
|
liquid_viscosity = jvmi_constants.VISCOSITY.XX_FAST,
|
||||||
liquid_range = 7,
|
liquid_range = 7,
|
||||||
waving = tmg_constants.WAVING.LIQUID_LIKE,
|
waving = jvmi_constants.WAVING.LIQUID_LIKE,
|
||||||
post_effect_color = "#033C5CCC",
|
post_effect_color = "#033C5CCC",
|
||||||
groups = {},
|
groups = {},
|
||||||
})
|
})
|
||||||
|
|
||||||
core.register_node("tmg_nodes:water_source", {
|
core.register_node("jvmi_nodes:water_source", {
|
||||||
description = S("Water"),
|
description = S("Water"),
|
||||||
drawtype = "liquid",
|
drawtype = "liquid",
|
||||||
waving = tmg_constants.WAVING.LIQUID_LIKE,
|
waving = jvmi_constants.WAVING.LIQUID_LIKE,
|
||||||
tiles = {{
|
tiles = {{
|
||||||
name = "tmg_nodes_water_source_animated.png",
|
name = "jvmi_nodes_water_source_animated.png",
|
||||||
animation = {
|
animation = {
|
||||||
type = "vertical_frames",
|
type = "vertical_frames",
|
||||||
aspect_w = 16,
|
aspect_w = 16,
|
||||||
@@ -57,9 +57,9 @@ core.register_node("tmg_nodes:water_source", {
|
|||||||
length = 5.0,
|
length = 5.0,
|
||||||
}
|
}
|
||||||
}},
|
}},
|
||||||
sounds = { footstep = { name = "tmg_nodes_water_footstep" } },
|
sounds = { footstep = { name = "jvmi_nodes_water_footstep" } },
|
||||||
is_ground_content = false,
|
is_ground_content = false,
|
||||||
use_texture_alpha = tmg_constants.TEXTURE_ALPHA.BLEND,
|
use_texture_alpha = jvmi_constants.TEXTURE_ALPHA.BLEND,
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
walkable = false,
|
walkable = false,
|
||||||
pointable = false,
|
pointable = false,
|
||||||
@@ -68,9 +68,9 @@ core.register_node("tmg_nodes:water_source", {
|
|||||||
drop = "",
|
drop = "",
|
||||||
drowning = 4,
|
drowning = 4,
|
||||||
liquidtype = "source",
|
liquidtype = "source",
|
||||||
liquid_alternative_flowing = "tmg_nodes:water_flowing",
|
liquid_alternative_flowing = "jvmi_nodes:water_flowing",
|
||||||
liquid_alternative_source = "tmg_nodes:water_source",
|
liquid_alternative_source = "jvmi_nodes:water_source",
|
||||||
liquid_viscosity = tmg_constants.VISCOSITY.XX_FAST,
|
liquid_viscosity = jvmi_constants.VISCOSITY.XX_FAST,
|
||||||
liquid_renewable = true,
|
liquid_renewable = true,
|
||||||
liquid_range = 7,
|
liquid_range = 7,
|
||||||
post_effect_color = "#033C5CCC",
|
post_effect_color = "#033C5CCC",
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
name = jvmi_nodes
|
||||||
|
title = Jules Verne's Mysterious Island / Nodes
|
||||||
|
description = define the nodes which make up the world
|
||||||
|
author = tungstonminer
|
||||||
|
depends = jvmi_constants
|
||||||
|
Before Width: | Height: | Size: 190 B After Width: | Height: | Size: 190 B |
|
Before Width: | Height: | Size: 188 B After Width: | Height: | Size: 188 B |
|
Before Width: | Height: | Size: 647 B After Width: | Height: | Size: 647 B |
|
Before Width: | Height: | Size: 438 B After Width: | Height: | Size: 438 B |
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
local core = _G["core"]
|
local core = _G["core"]
|
||||||
local dump = _G["dump"]
|
local dump = _G["dump"]
|
||||||
local C = _G["tmg_constants"]
|
local C = _G["jvmi_constants"]
|
||||||
|
|
||||||
-- Constants ---------------------------------------------------------------------------------------
|
-- Constants ---------------------------------------------------------------------------------------
|
||||||
|
|
||||||
@@ -20,7 +20,7 @@ local SINGLEPLAYER_PRIVS = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
-- Private Functions -------------------------------------------------------------------------------
|
-- Private -----------------------------------------------------------------------------------------
|
||||||
|
|
||||||
local private = {}
|
local private = {}
|
||||||
|
|
||||||
@@ -133,4 +133,4 @@ end)
|
|||||||
|
|
||||||
-- Script ------------------------------------------------------------------------------------------
|
-- Script ------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
core.log("info", "Tungston's Game initialization complete")
|
core.log("info", "jvmi_player loaded")
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
name = jvmi_player
|
||||||
|
title = Jules Verne's Mysterious Island / Player
|
||||||
|
description = configuring the player and his abilities
|
||||||
|
author = tungstonminer
|
||||||
|
depends = jvmi_constants
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
-- Imports & Exports -------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
local core = _G["core"]
|
|
||||||
|
|
||||||
local path = core.get_modpath("tmg_constants")
|
|
||||||
dofile(path.."/constants.lua")
|
|
||||||
@@ -1,4 +0,0 @@
|
|||||||
name = tmg_constants
|
|
||||||
title = Tungston's Game / Constants
|
|
||||||
description = defined shared values across mods
|
|
||||||
author = tungstonminer
|
|
||||||
@@ -1,4 +0,0 @@
|
|||||||
name = tmg_first
|
|
||||||
title = Tungston's Game / First
|
|
||||||
description = set up game basics
|
|
||||||
author = tungstonminer
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
name = tmg_last
|
|
||||||
title = Tungston's Game / Last
|
|
||||||
description = complete game setup
|
|
||||||
author = tungstonminer
|
|
||||||
depends = tmg_constants
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
name = tmg_mapgen
|
|
||||||
title = Tungston's Game / Map Generation
|
|
||||||
description = do the work of actually generating the map
|
|
||||||
author = tungstonminer
|
|
||||||
depends = tmg_nodes
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
name = tmg_nodes
|
|
||||||
title = Tungston's Game / Nodes
|
|
||||||
description = define the nodes which make up the world
|
|
||||||
author = tungstonminer
|
|
||||||
depends = tmg_constants
|
|
||||||
@@ -0,0 +1,46 @@
|
|||||||
|
# DATES ############################################################################################
|
||||||
|
|
||||||
|
The story opens at 1865-03-23 16:00 with our heros floating over the Pacific to the northeast of (the yet unnamed) Lincoln Island in a rapidly deteriorating hot air balloon. By 18:00, the balloon had finally deposited four of them on land, and be whisked off again by the wind.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# GAME MECHANICS ###################################################################################
|
||||||
|
|
||||||
|
## Hunger ######################################################################
|
||||||
|
|
||||||
|
A major component of the game will be to find enough quality food to stay alive. As such, the player's hunger bar should drop to empty even with no activity in the course of a single in-game day. They should also not be able to replenish more than a fraction of their hunger bar all at once. When the player's hunger bar is low, they should suffer certain effects (e.g., slowness). When the hungar bar is completely empty, these should be magnified. They should also take damage at a rate which will cause them to lose a full health bar over the course of three in-game days if they don't manage to eat something.
|
||||||
|
|
||||||
|
|
||||||
|
## Swimming ####################################################################
|
||||||
|
|
||||||
|
The player should only be able to swim for a relatively short time before becoming fatigued and sinking to the bottom of the water. There should also be some kind of mechanic whereby they are pushed about by the water so that rivers push them downstream, and an outgoing tide may make it very difficult to swim back to shore.
|
||||||
|
|
||||||
|
|
||||||
|
## Temperature #################################################################
|
||||||
|
|
||||||
|
The player should be affected by temperature. There should be a wide band over which they suffer no adverse affects, but outside of that range, things become increasingly dangerous. For example:
|
||||||
|
|
||||||
|
* Mild cold: hunger increased, stumbling movement
|
||||||
|
* Moderate cold: mild + chance to drop tools, work slowed
|
||||||
|
* Extreme cold: moderate + active damage at intervals, movement slowed
|
||||||
|
|
||||||
|
* Mild heat: thirst increased
|
||||||
|
* Moderate heat: mild + movement slowed, sunburn (damage amplified)
|
||||||
|
* Extreme heat: moderate + vomiting (hunger & thirst drop suddenly), stumbling movement
|
||||||
|
|
||||||
|
|
||||||
|
## Thirst ######################################################################
|
||||||
|
|
||||||
|
Even more important to the survival aspect of the game than hunger is thirst. The player will have a thirst meter along with a hunger meter which will become depleted from full twice every in-game day.
|
||||||
|
|
||||||
|
There should be three classes of water source: fresh, stagnant, and salt water. The former is found in moving streams and rivers, and may be drunk directly without consequence. The second is found in ponds and has a small probability of causing a fever effect (increased thirst, slowness, etc.). It may be purified by boiling. The last makes up the oceans surrounding the island, and will cause a major increase in thirst when drunk. It may be purified with some kind of still.
|
||||||
|
|
||||||
|
The player should be able to create various kinds of containers for carrying water around (e.g., leather water skins, pottery cups, glass bottles, etc.).
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# FOUND OBJECTS ####################################################################################
|
||||||
|
|
||||||
|
## The Balloon #################################################################
|
||||||
|
|
||||||
|
Late in the story, the heros find the remains of the balloon trapped in a tree on the far side of the island. They carefully pull it down, and thereby obtain an inexhaustible supply of canvas cloth for making clothes and linens, thread for sewing, and a large amount of rope.
|
||||||