Vending Machine GUI

Stare in awe at the fascinating machinations of the TNM team during the last two years of production, this was our private forum.

Moderator: TNM Team

User avatar
Jonas
Off Topic Productions
Off Topic Productions
Posts: 14224
Joined: Sat Apr 24, 2004 9:21 pm
Location: Hafnia

Vending Machine GUI

Post by Jonas »

W00Ters, so... Shane and I have decided to create an interface for the vending machines. It'll be pretty versatile, he'll make one machine with open properties so we can insert item names, class names, prices, icons, and vending machine skins into it so the one machine will basically sell anything we want it to. Then we'll make some subclasses of that with all the defaults we think we'll need. Here are 8 machines we'll need:

note from fub: finished (or those being "borrowed" from hdtp)ones had a red asterisk next to them.

*1: Drink machine:
4 kinds of soda (Nuke, Zapp, Blast, and that last one)
4 kinds of forty

*2: Food machine:
Candybar
Soy food
(And whatever other food you feel like skinning)

*3: Ammunition machine:
Battery
Tranq darts
10 mm
7.62 mm
Shells

*4: Grenade machine:
LAM
Gas grenade
EMP grenade
Scrambler

5: Weapon mod machine:
Scope
Laser
Silencer

6: Tool machine:
Multitool
Lockpick

*7: Equipment machine:
Nightvision goggles
Rebreathers
Gas masks

*8: Cigarette machine (different mesh):
I don't recall how many different cig skins are in the game. We may need to snatch up the HDTP skins for them.

Machines 3 through 7 are specifically for the weapon shop. The other three can be used anywhere.

Of course dispensing sodas and forty's will require us to code up the different skin variations. We can go about this in two ways:
  1. Code up four different classes and make each of them heal you more than the other. Nuke will heal 2 pts, Zapp 4, Blast 6, and the last one 8. The price will of course also rise. Each of these will need seperate belt and inventory icons.
  2. Code up one new class with an option for changing the skin and make the vending machine set this option. That means all the different sodas will stack into 1 slot, and the only time you see their skin variations is if you throw them away (I discovered with the chemical bottles that the game actually does this, although Shane still thinks it's a figment of my imagination). With this solution, all four sodas should cost and heal the same.
Now, of course we need new skins for some of these. We're basing them all on the HDTP vending machines, but we won't need a skin for the drink dispenser as Metche and Phas already made that. Nor do we need a new skin for the cigarette dispenser. That means we need the following skins:
  • Food
  • Ammunition
  • Grenades
  • Weapons
  • Tools
  • Equipment
Functionality

Here's what we need the dispenser GUI to display:

We need it to scale according to how many items are on sale. For each icon, it needs to display an icon, a name, a price, and a description. Naturally, it needs to check your cash when you try to buy an item, and refuse to give you the item if you lack the funds.

I think the current plan is to display a list of items and prices and then a larger menu with an icon and a description of the currently selected item.

Shane and I will each be designing a concept for the interface and comparing them in this thread. Chris (Bell, aka. Breadfan) will be doing the skins for the machines themselves and possibly some of the icons. I will probably also be helping out with the icons, and I'll help Shane calibrate the GUI.

And it will rawk.
Last edited by Jonas on Sat Nov 25, 2006 12:38 am, edited 3 times in total.
Jonas Wæver
Chief Poking Manager of TNM

I've made some videogames:
Expeditions: Rome
Expeditions: Viking
Expeditions: Conquistador
Clandestine
User avatar
Jonas
Off Topic Productions
Off Topic Productions
Posts: 14224
Joined: Sat Apr 24, 2004 9:21 pm
Location: Hafnia

Post by Jonas »

Hey Shane, if we get our graphics artists to make broken versions of each of the vending machines, could you code them up to do funny things when you shoot them?

For example:
1) If you damage them a little, they start sparking.
2) If you damage them further, they'll start smoking and maybe they'll eject a few random items from their list. They will no longer call up their GUI when frobbed.
3) If you damage them even more, they'll blow up and their skin will be replaced with the damaged version.

Interactivity++ 8)
Jonas Wæver
Chief Poking Manager of TNM

I've made some videogames:
Expeditions: Rome
Expeditions: Viking
Expeditions: Conquistador
Clandestine
User avatar
ZeroPresence
The Nameless Mod
The Nameless Mod
Posts: 618
Joined: Mon Oct 17, 2005 7:29 pm
Location: Florida, USA
Contact:

Post by ZeroPresence »

Jonas, that's a really good idea and everyone will notice it and think its disgustingly awesome. Players always notice all the little details. (The ones that matter anyway)

quick question, I'm gonna ask in two places to make sure its noticed, has anyone seen me on MSN the past week?
User avatar
Trestkon
Off Topic Productions
Off Topic Productions
Posts: 2820
Joined: Sat Apr 24, 2004 9:03 pm
Location: Canada
Contact:

Post by Trestkon »

ZeroPresence wrote:quick question, I'm gonna ask in two places to make sure its noticed, has anyone seen me on MSN the past week?
Nope, we've been wondering where you were, actually.
-Life does not snap to the x-axis
that guy
The Nameless Mod
The Nameless Mod
Posts: 1312
Joined: Mon Apr 26, 2004 1:54 am
Location: Perth, Western Australia

Post by that guy »

Do you think its a little overpowered allowing the player to steal from the vending machines? what is the disadvantage?
User avatar
Jonas
Off Topic Productions
Off Topic Productions
Posts: 14224
Joined: Sat Apr 24, 2004 9:21 pm
Location: Hafnia

Post by Jonas »

I don't think players should be allowed to steal from the vending machines.

And Chris: No I haven't seen you online this week either.
Jonas Wæver
Chief Poking Manager of TNM

I've made some videogames:
Expeditions: Rome
Expeditions: Viking
Expeditions: Conquistador
Clandestine
User avatar
Trestkon
Off Topic Productions
Off Topic Productions
Posts: 2820
Joined: Sat Apr 24, 2004 9:03 pm
Location: Canada
Contact:

Post by Trestkon »

Jonas wrote:eject a few random items from their list. They will no longer call up their GUI when frobbed.
That's pretty much stealing.
-Life does not snap to the x-axis
User avatar
Moonbo
Off Topic Productions
Off Topic Productions
Posts: 556
Joined: Fri Oct 21, 2005 4:52 pm
Location: NY
Contact:

Post by Moonbo »

yeah, I agree...maybe just spit out random debris (rock gibs, etc).?

-Gelo
But you should walk having internal dignity. Be a wonderful person who can dance pleasantly to the rhythm of the universe.
-Sun Myung Moon
User avatar
Jonas
Off Topic Productions
Off Topic Productions
Posts: 14224
Joined: Sat Apr 24, 2004 9:21 pm
Location: Hafnia

Post by Jonas »

Oh. Well in that case the disadvantage should be obvious: The machine will stop working. You may get 1 or 2 random items, but you won't be able to buy anything again. Note the may.
Jonas Wæver
Chief Poking Manager of TNM

I've made some videogames:
Expeditions: Rome
Expeditions: Viking
Expeditions: Conquistador
Clandestine
User avatar
Trestkon
Off Topic Productions
Off Topic Productions
Posts: 2820
Joined: Sat Apr 24, 2004 9:03 pm
Location: Canada
Contact:

Post by Trestkon »

But if you can't afford it anyway then you could just blow it up and hope for the best, if it doesn't work you could reload the map and try again. I donno, we could try it and see, it might work either way.
-Life does not snap to the x-axis
User avatar
ZeroPresence
The Nameless Mod
The Nameless Mod
Posts: 618
Joined: Mon Oct 17, 2005 7:29 pm
Location: Florida, USA
Contact:

Post by ZeroPresence »

ok, that's as I feared. I've been on every day actually. My buddylist or connection... or... something is messing up, if I get online and I can actually see others online I'll IM them. Till then.
User avatar
Trestkon
Off Topic Productions
Off Topic Productions
Posts: 2820
Joined: Sat Apr 24, 2004 9:03 pm
Location: Canada
Contact:

Post by Trestkon »

Frickpants.

Have you tried re-installing? Or re-adding us? Or voodoo spells?
-Life does not snap to the x-axis
User avatar
Smoke39
The Nameless Mod
The Nameless Mod
Posts: 69
Joined: Mon Oct 17, 2005 6:09 pm

Post by Smoke39 »

If you decide to make the sodas stack, you can have my implementation of it. The skin changes in your hand, as well, so you won't just see them when you throw them away (assuming you actually select it to use it). I think there's also a comment in my code for where to change the icon, so that should be simple to add once the icons are available.
User avatar
ZeroPresence
The Nameless Mod
The Nameless Mod
Posts: 618
Joined: Mon Oct 17, 2005 7:29 pm
Location: Florida, USA
Contact:

Post by ZeroPresence »

So, anyone have any idea what may cause this:

About a month ago my computer started acting really slow. Such as... when Windows is starting up it takes at least a minute or two, and when windows loads up and it starts loading everything in the quickbar it takes forever for that to finish, too. Games, such as Battlefield 2, take REALLY long. About 5-10 minutes to load up a server. Planetside, takes at least two minutes to load, as opposed to half a minute before this crap started. I scanned for viruses, clean, not even any warnings. I scanned for spyware, and everyone has SOME, deleted it. I have no clue what's wrong at all... I think this is contributing to my problems with MSN, though.

EDIT: Oh yeah, I defragged already a couple times, too.
User avatar
Jonas
Off Topic Productions
Off Topic Productions
Posts: 14224
Joined: Sat Apr 24, 2004 9:21 pm
Location: Hafnia

Post by Jonas »

Smoke39 wrote:If you decide to make the sodas stack, you can have my implementation of it.
Yes please!
Jonas Wæver
Chief Poking Manager of TNM

I've made some videogames:
Expeditions: Rome
Expeditions: Viking
Expeditions: Conquistador
Clandestine
Post Reply