MacKenzieHnC’s Shop Inventory Generator

By bradknowles, in Star Wars: Edge of the Empire RPG

Here’s let’s start a new thread for discussing this code.

Thanks!

There is an issue that I know of where if you have Java 7 and 8 installed simultaneously (more common than you'd think) it won't run. Though I think there's another issue, but I can't figure out what it is and the dude who was having it fell of the earth. Are you running it on Mac?

Yeah, I probably do have multiple versions of Java installed.

And yes, I am trying to run this program on a Mac.

Please let me know what additional information I can provide that may be helpful.

Thanks!

Hey, so just figured out that this was here (moments after starting a new thread). Is there a way to delete the one I just made?

And I hope that's the only problem right now, but I'm pretty new to coding, so I'm just kinda rolling with the punches. Let me know if uninstalling Java 7 is not sufficient to fix the problem.

Everything's in the same folders as when you downloaded it, yeah? Also, I just posted a new version of it a couple days ago, so see if that boots up.

And for those of you who are just tuning in:

Hey, so I made an shop inventory generator to try and cut down the amount of time it takes to roll for specific items. It's got a bunch of neat features like different kinds of shops (legitimate, shady, or black market) and you can edit the odds that a specific kind of item will show up in each shop-type.

https://drive.google.com/open?id=0B-NH_1muHOc7MjVGdkpNb2VsRlU

There's an .exe and a .jar (so if you're running a Mac, it should still work fine. Download the whole folder, and create a shortcut if you want the program on your desktop or something (the original needs to stay in the folder, though the folder can be wherever). Check it out, see if you like it, and if you have any problems, suggestions, or even ideas for a totally different program, email me at [email protected] . Enjoy, and happy RPing!

__How It Works__
---The program does a d100 roll plus modifiers against the item's rarity multiplied by 10
---The three shop types have different settings for nonrestricted, restricted, and lightsaber items. You can change the modifiers (positive numbers make the item more likely to show up and negatives make them less likely), so be sure to fiddle with the settings.
---Each point in Streetwise gives +5 to the roll starting at level 2 (0 streetwise = -10, 2 streetwise = 0, 4 streetwise = +10)
---Boost die are worth +5 a piece, and setbacks are worth -5.
---And finally, there's a markup option so you can choose a percentage range for the prices of each item. Just set the markups to 0 in the settings if you want stock prices.

(p.s. If there's any items missing, just send me an list. And if anybody out there cares enough to put a description for each gear item, I'd be happy to include it in the program to save even more time flipping through books, so you can spend more time actually playing.)

(p.p.s. There is a known issue where the program will not run if you have Java 7 and 8 installed simultaneously (which is more common of a problem than you'd think). So if you're having trouble running it, odds are that that's the issue. Let me know if you run into any other problems)

Edited by MacKenzieHnC

Oh! There was one guy who I know was having an issue where the program ran except for the last line where it actually opens the file it creates. if you know Java at all, I use the Desktop.getDesktop() command, which I think is a Java 7 command, which could be the issue.

The point being: check to see if "Shop Inventory.html" changes. I'm working through all kinds of fixes right now to get this thing running smoothly, and a new release is on the way with a feature for turning on and off the various source books, but I backed myself into a bit of a corner with this code and I have a lot of sifting to do.

No, we can’t delete threads once we’ve created them.

We can go back and edit posts to remove content from them, or to direct people to a different thread, but we can’t delete the thread itself.

I’ll give the new version a try. If that still bombs, I’ll see if I can figure out how to eliminate the older versions of Java, so that I keep only one installed.

Thanks!

I can't get it to actually produce anything. I click on "Click to Generate Shop", go through the prompts, and nada. I'm guessing I'm doing something wrong? :)

Oh, and resizing the window doesn't resize the content.

Edited by OggDude

Hmm. No. I don’t have Java 7 installed at all. Only Java 8. I had the JDK for 8u25 and the JRE for 8u73 installed, but I have purged both of those and now have only the JDK for 8u73.

Still no dice.

Managed to get it running.

Seems quite nice, but i don't like the fact that a single die roll is used for the entire shop.

This Roll will either make the shop too good (with everything you can dream of available) or useless (nothing in it, at all)

A roll for each item would be better, or even better, a first roll to set the shop 'speciality' (like, +20% for weapons, +5% armors, -30% everything else for an armory/weapon dealer) and then a roll a D50 for each items.

Right now it's more like rolling a D10, and make available all items with rarity<result.

Edited by Uthanono

I tried running the jar version on Xubuntu but no luck.