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
I would be eternally greatful if you could find the time, energy and desire to fix this.
I used the github src and the error is something about 'icomparable'
when you say copy example? you do mean eveyrthing up until "advanced users only" or up until getblocks? i dont fully understand anymore what i can be doing wrong. i even copied it piece by piece seeying if it would change. iam totaly clueless atm
this is when i replace the menu with the ship explorer module. it does load up the lcd, it show me the Basic >Actions< but then the script stops with the exception.
i did load the test world again since i did some adding and removing block to make sure i was back at the basic. but still came up. did i miss something?
ty again for taking the time to explain :D
The source for my ship explorer example is here: https://raw.githubusercontent.com/rockyjvec/EasyAPI/master/modules/EasyMenu/examples/ShipExplorer.cs
It's a little old so it still requires a timer block.
For closing all doors you could do something like this:
Add the following to your menu wherever you want it. I did it right above the Do Nothing menu item:
new EasyMenuItem("Toggle all doors", toggleDoors),
Finally, add the toggleDoors function. I added it right before the toggleDoor function:
public bool toggleDoors(EasyMenuItem item)
{
Blocks.ApplyAction("Open"); // equivalent to EasyCommand Blocks ApplyAction Open
return false;
}
uhhm do you have a link to your ship explorer script? i saw it in the vid en in the documentation.
but i cant seem to find it on your githud :(
it looks awesome.
lets keep your test world as a mutual example.
iam trying to get to add a ""EasyCommand Blocks ApplyAction Open" but as a single menu item.
iam not that good with csharp, so its baveling me. i managed to add refineries. add more door. etc etc. but a simple close open all doors eludes me..
could you give me a example or quick guidelines on how to program it. me and my ship would be deeply apreciative :D
ofc if you want i could show you the finished product when its done.
any idea on what i need to do to fix it? :|
Can it be because i hafe a lot of lcd's on the ship?
I have only commands related to the display of the menu itself.
The button panel in the world has "Noone" privatship so arguments just simly didn't work.
Have you updated the tutorial as well? Because I didn't found any information about how the Menu works without changing timer delay but with programming block arguments (as it is now in the test world)
How is it going with this bug?
I know how it happens since it's not only scripts that stopped to work after last update...
Sorry, a bug was introduced in the Space Engineers API which broke almost all of my scripts. They have been working on fixing the bug but it is not fixed yet. We'll see if today's update fixes it. As soon as it's fixed I will make the changes to fix the menu script. Basically no generic classses work anymore since the bug was introduced. I've been testing it every update to see if it has is fixed.
How is it going?)
Thanks for answering=)
I sent you a friend request because I have a cool small-ship-gone-wild project that is friends-only for now and wanted to show it to you and ask for advice, if you don't mind.
What is the status of the script now?
I really want to implement it to my next small-ship-gone-wild build.
GridTerminalSystem.GetBlocks(Blocks);" Having trouble with block groups however.
"sandbox.modapi.ingame.imygridterminalsystem does notcontain a definition for 'blocks' and no extension method 'blocks' accepting a first argument of type sandbox.modapi.ingame. imygridterminalsystem could not be found, are you missing a using directive or an assembly reference?"
Any idea what to do?
or do you need a ram like the values of the timer to work like that?
Oh yeah, and to use it, just put "Up", "Down", "Choose", and "Back" for the parameters in the PB. You will also need to copy the latest version of EasyAPI to the end of that script which you can get here: https://raw.githubusercontent.com/rockyjvec/EasyAPI/master/EasyAPI.cs (copy it starting at the "Advanced users only beyond this point" line)
this script is a work of art. Thanks for this.
i have very little coding experience but i have have managed to run your script without a problem.
But i have a question/suggestion:
since we can now give parameters when running the PB, is it posible to let the script run with parameters like "up", "down", "enter" and "back" instead of changing values on the TB?
i believe that would make things a bit easier to setup and more user friendly.