Installera Steam
logga in
|
språk
简体中文 (förenklad kinesiska)
繁體中文 (traditionell kinesiska)
日本語 (japanska)
한국어 (koreanska)
ไทย (thailändska)
Български (bulgariska)
Čeština (tjeckiska)
Dansk (danska)
Deutsch (tyska)
English (engelska)
Español – España (spanska – Spanien)
Español – Latinoamérica (spanska – Latinamerika)
Ελληνικά (grekiska)
Français (franska)
Italiano (italienska)
Bahasa Indonesia (indonesiska)
Magyar (ungerska)
Nederlands (nederländska)
Norsk (norska)
Polski (polska)
Português (portugisiska – Portugal)
Português – Brasil (portugisiska – Brasilien)
Română (rumänska)
Русский (ryska)
Suomi (finska)
Türkçe (turkiska)
Tiếng Việt (vietnamesiska)
Українська (ukrainska)
Rapportera problem med översättningen
I think TChange setting should be put in another panel as it is confusing (I thought that it is related to Value/Area/Timer settings)
So, for DeadlyCold workaround, it can be entered without changing lua script with:
Value=-0.2
Area=0.02
Timer=10times/day
I am just playing with SaltWaterWorld setting, great to see heated steam creeping to my base, I enjoy your mod very much, good work :)
public static HashSet<int> RandomTilesPercentAll(float tileamountpercenti, float variance = 0f)
double fnum2 = (double)Grid.CellCount * (num * 0.0099999997764825821);
int num2 = (int)(fnum2);
double frest2 = fnum2 - num2;
while (hashSet.Count < num2 || hashSet.Count == num2 && MapManipulate.randomi.NextDouble() < frest2)
// and removing hashSet.First<int>() from logging
even without that patch, lua scripts can be modified as a workaround (although it will use more cpu power)
Example for 256 x 384 map (multiply 0.0004 by 2.55 (1 / (256*384*0.0004*0.01)) and divide -10 by 2.55)
From:
function DeadlyCold()
for v in RandomTilesPercentAll(0.0004) do
AddToCell(v,"Temperature",-10)
end
end
To:
for v in RandomTilesPercentAll(0.00102) do
AddToCell(v,"Temperature",-3.92)
I must admit that i did not really test the techlevels regularly i will see if i can find the problem.
If you want to experiment you can make a copy of the lua files as in the description and edit the techlevel stuff its plaintext.
Not working In ONI (without DLC):
Temperature panel settings: T value=-10, T change=warm, T area=0.01, T timer=10/day
InvalidOperationException: Sequence contains no elements, System.Linq.Enumerable.First
in RandomTilesPercentAll
Log.DeepLog(string.Concat(new object[] ..., hashSet.First<int>()
Also, I think there is too low argument in call to RandomTilesPercentAll
function Warm()
for v in RandomTilesPercentAll(0.0004) do
AddToCell(v,"Temperature",0.5)
end
0.0004% of 384*384 is almost 0 tiles (0.59), so that exception is thrown immediately
Technology settings: Tech level=early, diff=expensive key techs
Error in WattsonMessage.WattsonMessage.OnSpawn
System.InvalidCastException: Specified cast is not valid.
at PlanScreen.OnResearchComplete
With tech level=disabled works fine