Hi,
I have a problem with my map.
I try for it, the new system with mapinfo.lua
Here, there are my map, and some ingame screenshot.
The problem is ingame with a construction. In screenshot, you can see that the grid for construction is black and build ETA is black too but it must be green. This problem is only with my map.
What is the problem or have you suggestion to repair it?
thank's
problem with map creation with LUA mapinfo [solved]
Moderator: Moderators
problem with map creation with LUA mapinfo [solved]
Last edited by divergent on 28 Feb 2015, 23:39, edited 1 time in total.
- Silentwings
- Posts: 3720
- Joined: 25 Oct 2008, 00:23
Re: problem with map creation with LUA mapinfo
I would guess that some of the lua you have included in your map is broken, and leaking some GL which breaks the healthbar/eta rendering. Likely something in your LuaGaia folder.
Re: problem with map creation with LUA mapinfo
works normal for me.
things to try:
-different settings / posting your settings
-typing into chat:
/luaui disable
/cheat
/luarules disable
-removing Lua stuff from your map (esp. the gfx things)
things to try:
-different settings / posting your settings
-typing into chat:
/luaui disable
/cheat
/luarules disable
-removing Lua stuff from your map (esp. the gfx things)
Re: problem with map creation with LUA mapinfo
You have fogStart and fogEnd in mapinfo.lua set to 1. If I change the start to 0.99 the error is gone on my system.
Another error:
Here's two lines from my infolog.txt starting your map:
In mapinfo.lua the part after:
has been deleted. So the two gadgets for fog and precipitation fail. Would remove them completely, if you don't want them...
Another error:
Here's two lines from my infolog.txt starting your map:
Code: Select all
[f=0000000] Error: Failed to load: gui_dualfog_gadget.lua ([string "LuaGaia/Gadgets/gui_dualfog_gadget.lua"]:35: DualFog-Gadget: Can't find settings in mapinfo.lua!)
[f=0000000] Error: Failed to load: precipitation.lua ([string "LuaGaia/Gadgets/precipitation.lua"]:54: Precipitation-Gadget: Can't find settings in mapinfo.lua!)
Code: Select all
custom = {
Re: problem with map creation with LUA mapinfo
Thank's for answer,
Qray, i've removed gadget fog and precipitation
So, I have only FP_featureplacer.lua, which load correctly. I have 4 geovent placed.
I've this tree in LuaFolder:
Luafolder
|-Gadgets
| |-FP_featureplacer.lua
|-draw.lua
|-main.llua
in mapinfo.lua
After this edit, i've always the problem of ETA rendering
Qray, i've removed gadget fog and precipitation
So, I have only FP_featureplacer.lua, which load correctly. I have 4 geovent placed.
I've this tree in LuaFolder:
Luafolder
|-Gadgets
| |-FP_featureplacer.lua
|-draw.lua
|-main.llua
in mapinfo.lua
Code: Select all
local mapinfo = {
name = "USA Invasion",
shortname = "USAinvasion",
description = "USA invasion by robot from east coast",
author = "divergent86",
version = "1.0",
modtype = 3, --// 1=primary, 0=hidden, 3=map
depend = {},
depend = {"Map Helper v1"},
replace = {},
maphardness = 10000,
notDeformable = false,
gravity = 130,
tidalStrength = 50,
maxMetal = 5000,
extractorRadius = 40.0,
voidWater = false,
autoShowMetal = true,
smf = {
minheight = -95,
maxheight = 955,
},
sound = {
preset = "default",
passfilter = {
gainlf = 1.0,
gainhf = 1.0,
},
reverb = {
},
},
resources = {
},
splats = {
texScales = {0.02, 0.02, 0.02, 0.02},
texMults = {1.0, 1.0, 1.0, 1.0},
},
atmosphere = {
minWind = 40,
maxWind = 100,
fogStart = 1,
fogEnd = 1,
fogColor = {0, 0, 0},
sunColor = {1.0, 1.0, 1.0},
skyColor = {0, 0, 0},
skyDir = {0, 0, -1},
skyBox = "",
cloudDensity = 0,
cloudColor = {0, 0, 0},
},
grass = {
bladeWaveScale = 1.0,
bladeWidth = 0.32,
bladeHeight = 4.0,
bladeAngle = 1.57,
bladeColor = {0.59, 0.81, 0.57},
},
lighting = {
sunStartAngle = 0.0,
sunOrbitTime = 1440.0,
sunDir = {0.0, 1.0, 2.0, 1e9},
groundAmbientColor = {0.9, 0.9, 0.7},
groundDiffuseColor = {0.7, 0.7, 0.5},
groundSpecularColor = {0.1, 0.1, 0.1},
groundShadowDensity = 0.8,
unitAmbientColor = {0.4, 0.4, 0.4},
unitDiffuseColor = {0.7, 0.7, 0.7},
unitSpecularColor = {0.7, 0.7, 0.7},
unitShadowDensity = 0.8,
specularExponent = 100.0,
},
water = {
damage = 0.0,
repeatX = 0.0,
repeatY = 0.0,
absorb = {0.0, 0.0, 0.0},
baseColor = {0.0, 0.0, 0.0},
minColor = {0.0, 0.0, 0.0},
ambientFactor = 1.0,
diffuseFactor = 1.0,
specularFactor = 1.0,
specularPower = 20.0,
planeColor = {0.0, 0.4, 0.0},
surfaceColor = {0.75, 0.8, 0.85},
surfaceAlpha = 0.55,
diffuseColor = {1.0, 1.0, 1.0},
specularColor = {0.5, 0.5, 0.5},
fresnelMin = 0.2,
fresnelMax = 0.8,
fresnelPower = 4.0,
reflectionDistortion = 1.0,
blurBase = 2.0,
blurExponent = 1.5,
perlinStartFreq = 8.0,
perlinLacunarity = 3.0,
perlinAmplitude = 0.9,
windSpeed = 1.0,
shoreWaves = true,
forceRendering = false,
},
teams = {
[0] = {startPos = {x = 2000, z = 3000}},
[1] = {startPos = {x = 3500, z = 5192}},
},
terrainTypes = {
[0] = {
name = "Great Plains",
hardness = 0.9,
receiveTracks = true,
moveSpeeds = {
tank = 1.0,
kbot = 1.0,
hover = 1.0,
ship = 1.0,
},
},
[10] = {
name = "High Plains",
hardness = 1.0,
receiveTracks = true,
moveSpeeds = {
tank = 1.0,
kbot = 1.0,
hover = 1.0,
ship = 1.0,
},
},
[20] = {
name = "Great Lakes",
hardness = 0.9,
receiveTracks = true,
moveSpeeds = {
tank = 0.9,
kbot = 0.9,
hover = 1.0,
ship = 1.0,
},
},
[30] = {
name = "Appalachian Mounstains",
hardness = 1.1,
receiveTracks = false,
moveSpeeds = {
tank = 1.0,
kbot = 0.9,
hover = 1.0,
ship = 1.0,
},
},
[40] = {
name = "Rocky Mounstains",
hardness = 1.3,
receiveTracks = false,
moveSpeeds = {
tank = 0.9,
kbot = 1.0,
hover = 1.0,
ship = 1.0,
},
},
[50] = {
name = "West Coast",
hardness = 0.8,
receiveTracks = true,
moveSpeeds = {
tank = 0.9,
kbot = 0.9,
hover = 1.0,
ship = 1.0,
},
},
[60] = {
name = "Atlantic Ocean",
hardness = 1,
receiveTracks = true,
moveSpeeds = {
tank = 1.0,
kbot = 1.0,
hover = 1.0,
ship = 1.0,
},
},
[70] = {
name = "Pacific Ocean",
hardness = 1,
receiveTracks = true,
moveSpeeds = {
tank = 1.0,
kbot = 1.0,
hover = 0.9,
ship = 0.9,
},
},
},
custom = {},
}
--------------------------------------------------------------------------------
-- Helper
local function lowerkeys(ta)
local fix = {}
for i,v in pairs(ta) do
if (type(i) == "string") then
if (i ~= i:lower()) then
fix[#fix+1] = i
end
end
if (type(v) == "table") then
lowerkeys(v)
end
end
for i=1,#fix do
local idx = fix[i]
ta[idx:lower()] = ta[idx]
ta[idx] = nil
end
end
lowerkeys(mapinfo)
--------------------------------------------------------------------------------
return mapinfo
Re: problem with map creation with LUA mapinfo
divergent wrote:in mapinfo.luaCode: Select all
fogStart = 1, fogEnd = 1,
qray wrote:You have fogStart and fogEnd in mapinfo.lua set to 1. If I change the start to 0.99 the error is gone on my system.
Re: problem with map creation with LUA mapinfo
Thank's qray, it's OK!
I will try a skybox now!
I will try a skybox now!
Re: problem with map creation with LUA mapinfo [solved]
just FYI, your map hardness value is ridiculously high. Typical ranges are like 150 (very soft) to 600 or so for rock and things like that.
edit: you have 'not deformable' set to false also, which means it will never get craters from weapons. That's fine if it's what you intended, but again just fyi.
edit: you have 'not deformable' set to false also, which means it will never get craters from weapons. That's fine if it's what you intended, but again just fyi.
Re: problem with map creation with LUA mapinfo [solved]
Thank's aeonios for your tips, i set up my map, for map hardness, i have put 200 and i regulate for different terrrain type. for metal, i had put 5000 for test, now it's 10, the T1 metal extractor give only 2.5.
I continue to work this map, it will release next week i thing
I continue to work this map, it will release next week i thing