Project Working Vending Machine

paddy2

Addon Developer
Addon Developer
Joined
Jul 21, 2012
Messages
384
Reaction score
1
Points
18
Location
Kent, UK
Following on from PennyBlacks Vending machine I have opened a thread to talk about and maybe get put together a working vending machine for use on moons and planets, within the accommodation modules.

I have used the UCGO frame work to make a maintainance gantry, a rotating plant and a packageable Solar plant. I don't have any C++ skills. Surely together we can come up with something?
 
I am game. Really I think all you would need is a mesh for the vending machine. The vending machine would be a vessel. The ummu goes up to it. Switch to the vending machine and select from the list as you would in the UCGO vessel and swicth back to the Ummu. Press enter that make the vending machine vend. It puts the cargo aka product on the ground. If you wanted it to be above the ground you would need to adjust touchdown points. Also you would need meshes for the products.
 
A UCGO "car" could have 4 drawers which open ( meshes which move) to reveal meals!

Any other ideas folks or does this distract from the true purpose of Orbiter?
 
I think that is possible. You can move the cargo slot so the food in a tray would move out. But it might affect the unloading point.
 
I have a variety of cans...

picture.php


If you would like to use them, I can sort them out and pm them to you if you want to make a series of them tomorrow. They are the same size as the can in my UCGO vending machine. I got carried away... what can I say. :thumbup:

You can use the the UCGO vending machine and edit the dds to suit your requirements also.

---------- Post added at 17:42 ---------- Previous post was at 17:40 ----------

Any other ideas folks or does this distract from the true purpose of Orbiter?

People need to do other things when they land, so it all adds to the environment.
 
hey folks, nice idea but i was wondering, once your ummu has grabbed the dispensed can is there any way to use it?
 
hey folks, nice idea but i was wondering, once your ummu has grabbed the dispensed can is there any way to use it?

Maybe a UMMU action area for the can that calls a self delete when the user presses enter. It could be rather hairy though, possibly crash causing.
 
That I am not sure. I don't think you can refuel the ummu. I guess you will need a recycle bin.
 
Still working on Luna2 and 3 so this will not happen tomorrow but in answer to PennyBlack; by all means PM me the files kind sir.
 
I got one to work. But have run into an issue. Right now I have the ability to select which slot the cargo is in. BUT not sure if I can have it say slot 1 diet cola where diet cola is the cargo for slot 1.
Code:
if(key==OAPI_KEY_3)
    {
        if(iSelectedCargo>-1)
        iSelectedCargo--;
		if(iSelectedCargo==0) sprintf(SendHudMessage(),"Product1 Selected");
		if(iSelectedCargo==1) sprintf(SendHudMessage(),"Product2 Selected");
		if(iSelectedCargo==2) sprintf(SendHudMessage(),"Product3 Selected");
		if(iSelectedCargo==3) sprintf(SendHudMessage(),"Product4 Selected");


        return 1;
    }

Right now you can press 3/4 to scroll through the slots. But no description of what is in that slot
 
I have a feature request: before this is done can we have an argument about pop/soda? I feel this is going too smoothly. Thanks.
 
One thought I had about the selection. Is what if the product was displayed. So on the mesh it had a spot for slot 1,2,3,4,5,6,... And the product was shown there. Then you could visually see what it was and the slot.

You would be limited to the number of spots on the front.
Better would be to show what the cargo description is based on the slot number. But I couldn't find that in the sdk
 
I have a feature request: before this is done can we have an argument about pop/soda? I feel this is going too smoothly. Thanks.

Only if you also allow for the third variant: There are those that use the name Coke generically. As in, if they get up from the couch and you say, "Hey, while you're up can you get me a Coke?" you need to be prepared to answer the question, "Sure, what kind do you want?"
 
What with Gattispilot and PennyBlack it seems this has legs. ( oh why I had to open my big mouth!!)

Still need more input folks
 
Working Vending Machine

Sorry, but I see a huge flaw in that concept.

A vending machine never works. Or rarely. Or not correctly count your money. :rofl:

So you have to include a high failure rate and a low hardware reliability factor. :lol:
 
How else are we going to fund these moon bases???
 
Hey this is close. But the one thing I don't know how to do is code the machine to only select a certain cargo.

I haven't seen in the sdk a string that stores what cargo is loaded?
 
Back
Top