Space Engineers

Space Engineers

Automatic LCDs 2
Torahelia Feb 6, 2018 @ 7:02am
Need help with modded item shown with 0 in stock
I am using this Mod for my LCD stuffs:
http://steamcommunity.com/sharedfiles/filedetails/?id=822950976
and this Weapon Mod:
http://steamcommunity.com/sharedfiles/filedetails/?id=970804258
and since i would like to see my overall ammo statistics i would like to display how many of "XAmmo" i have, since this is ammo out of the MWI Mod, i have no problem displaying it as long as i have at least 1 in stock, but when i take the last one out (by shooting/manually) my Display wont display it anymore; also i would like to display it with quota;
currently using this line:
Inventory * +AM_Mag:100,AF_Mag:100
to display Ammo in storage, not only Turrets on purpose. How can i manage to let it show even when count reaches 0, tried with Missing command line instead and have the same issues.
Can anybody help? I tried to look for modded items diskussion as mentioned in Guide but couldnt find it, if someone could point me the right way it would be really helpful.
< >
Showing 1-10 of 10 comments
Kham Feb 6, 2018 @ 7:29am 
This happens because the script doesn't have any item details by default for non vanilla items and without that it can't display details about items you don't have in the inventory because it doesn't know that type of item exists.
MMaster did provide a section in the script where you can add a number of modded items with quotas and it will then display those items all the time. You can find the section around line 190 along with a couple of examples of how to enter the details.

Let me know if you have any problems. :)
Torahelia Feb 6, 2018 @ 8:50am 
thy, will try right away. My go to solution so far was me thinking about hiding a small cargo somewhere with 1 of them in it so that it won't drop below 1, but would be annoying solution.
Torahelia Feb 6, 2018 @ 9:42am 
did check, works so far but just to be clear: "subtype" is the items name given by modder? (using it like this and it works, just wanna know for potential future stuffs) Also is there a distinction between "displayname" and "shortname" besides capital letter? some stuffs dont even seems to have shortname in script...
Kham Feb 6, 2018 @ 10:18am 
subType is indeed the unique identifier each item is given by the modder. Display name can be whatever you want it to really, it's just for a more friendly listing than AM_Mag for example.

As for shortname, to be honest I'm not sure what that is used for. I remember reading that he recommended not changing that when making translations but I'm not sure what it's actually used for in the script or if it's even needed. If MMaster notices this thread, perhaps he can enlighten us both on that one. :)
Torahelia Feb 6, 2018 @ 11:58am 
Well since its a shortname of another mod, i dont think i will bother too much with it, vanilla ammo uses identical string for displayname and shortname, so i will just do the same if script needs it somewhere.

All in all things are coming along quite nice and i think this will be my first ship i will upload just for fun. Thanks again for the clarification!
Kham Feb 6, 2018 @ 12:14pm 
You're welcome bud, glad it's working out for you. Just a tip by the way, it's wise to keep a copy of any items you add to the script in a text file locally so you can quickly add them back in again when the script gets updated.

If you upload the ship, let me know and I'll go check it out. Always like to see how other people design their stuff to see if I can take any pointers. :)
Torahelia Feb 7, 2018 @ 12:30pm 
You really motivated me to get this thing done... putting more time in it than i would like to admit, since im not the most efficient "engineer". Well run into the major problem that i ran my flightests empty and small cargo check gave me the middlefinger doubling the weight of the whole ship, depending on inventory settings^^. Well i think the aesthetics gonna suffer a little with the additional 10-50 thrusters^^. think i should be done tomorrow, since i build "bilinual" i rename most stuffs for english people now instead of my mashup-names... but it should be pretty userfriendly when im finished (not wanna say idiotproof but random guys should be able to work with it easy)
Torahelia Feb 8, 2018 @ 4:07pm 
here Kham, the link since you denied Friend request i'll send it to you here http://steamcommunity.com/sharedfiles/filedetails/?id=1295172762
Kham Feb 9, 2018 @ 1:33am 
Sorry man, I declined the request because I didn't recognise the name and I get a ridiculous amount of friend requests from people I don't know. I kept thinking I'd seen the avatar somewhere but couldn't think where. :P
I'll check out the ship, the screenshots look pretty cool!
Torahelia Feb 9, 2018 @ 2:50am 
no offense taken and thanks again with the help
< >
Showing 1-10 of 10 comments
Per page: 1530 50