Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
At line 100, simply add ·· // ··
imageName = warningImage;
}
}
At this line, add the 2 slash ===> //screen.ShowTextureOnScreen();
if (imageName != screen.CurrentlyShownImage)
{
screen.AddImageToSelection(imageName);
screen.RemoveImageFromSelection(screen.CurrentlyShownImage);
Hope it helps. Greetings
Similar problem:
Program(100,35): Error: 'IMyTextPanel' does not contain a definition for
'ShowTextureOnScreen' and no accessible extension method
'ShowTextureOnScreen' accepting a first argument of type
'IMyTextPanel' could be found (are you missing a using directive or an
assembly reference?)
I'm no programmer nad trying to figure it out =/
Any suggestion?
Thanks
Was just trying to make this one not be broken :p
I'll use your other script on new ships, i'll stay with my dirty edit for this one as i don't want to go find all lcd and all other things to redo the config... i'll unsub from this one
It work even better as it round all tanks type as one...
If Morphik allow it i could publish it... until then (or if there is no answer at the end of 2020)
if i do publish it i'll link this one and the jump one in the description... And if someone who is more skilled can then make a cleaner version...
replace
currentLevel = tank.FilledRatio;
by
currentLevel = (float) tank.FilledRatio;
and
currentLevel = tank.FilledRatio;
by
currentLevel = (float) tank.FilledRatio;
That worked for me, script was able to compile, and I get the correct output numbers in the terminal when I look at the programmable block.
I still can't get anything on LCDs though... it's as if it can't get the images...(yes I subscribed to the related mods)
Now, it throws an error about missing a cast on line 57 and 73, not sure why all of a sudden!
Any chance for a fix?
Thank you!
My tank name is Hydrogen Tank tnk#000 and LCD panel is LCD Panel LCD_Tank#000
Here is that script that will show the average of all tanks on one (or more) LCD's
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=835036636
@Trebot5007 Delete this from lines 62 to 67
if (!_tanks [a].IsWorking) {
// If new Image == null, load former image
if (screen.CurrentlyShownImage != warningImage) {
_imagename = warningImage;
}
}
It's where I want to have each tank seperate this code cannot. Still using it eitherway though :D
I do however have a script saved locally that takes the average of all Oxygen tanks on the grid and displays to one LCD, and does the same with Hydrogen tank to another LCD, I can publish that and link it here if you like.
Heya... any chance you'd consider adding the jump drive script in here and making it one script to do all 3?
IE: I have 5 tanks but would like only 1 screen to view the average fill of them
Can a single Program and timer block be used to control multiple screens for multiple tanks?
Or will I need 4 Program and timer blocks for 4 tanks?