[INACTIVE][ECON] TradeCraft v0.7 - Chest/Gold Based Economy! [531]

Discussion in 'Inactive/Unsupported Plugins' started by mjmr89, Mar 11, 2011.

     
  1. Offline

    mjmr89

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    TradeCraft - Chest/Gold Based Economy
    Version: 0.7

    Features
    • Make infinite shops - place gold or items in the chest, right click the sign, and watch the magic happen!
    • Become entrepreneurs! Have a lot of extra goods? Create a shop to let people easily buy or sell!
    • Change the currency if you don't like gold
    Download and Source

    All credit for the core of this mod goes to the github user jdiamond (injektilo on the hey0 forums). All I'm doing is porting it at the moment, but I'll probably add more features down the road. I haven't been able to test it extensively so far, so expect problems! If you don't have Permissions, it will resort to only letting ops make or destroy shops, but all players can buy/sell at shops. The TradeCraft.txt and TradeCraft.properties files are IN the jar, open it up with a archive manager program and extract them to the same folder as your craftbukkit.jar. I know they should be in something like plugins/TradeCraft, and I'll change that soon.

    For the readme, please go to the source page and look there. It is also included in the jar file if you open it with an archive manager.

    Permissions:
    • TradeCraft.canBuy
    • TradeCraft.canSell
    • TradeCraft.canMakeInfShops
    • TradeCraft.canMakePlayerShops
    • TradeCraft.canDestroyShops
    Commands:
    • /setCurrency - use the id number, or the material name (using _ as spaces)
    • /displayCurrency - Shows the current currency
    • /canPlayer - debugging info if there are problems with permissions - outputs to the console.
    • /myShops - displays the personal shops you have and their current inventory/gold
    To Do:
    • Repair shops? Some basic structure is in the old hmod plugin, could probably get it working without too much trouble.
    • iConomy interaction? For example, back up iConomy $$$ with gold or something? Not sure how that would work out, or if people would find it useful.
    If theres any more comments or questions, please let me know!
    kenneth123, ydido and Digi like this.
  2.  
  3. Offline

    Montag

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    If you have a space in the name of the tradecraft.txt file, such as "soul sand", I think it won't work although I'm not 100% certain. Here's what yours should look similar to:
    Code:
    GlowstoneDust,348,1:3,1:2
    
    Netherrack,87,32:1,48:1
    
    Soulsand,88,12:1,18:1
  4. Offline

    JoeMearman

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Oh cheers, I got it fixed, just some misplaced spaces. duhhhh
  5. Offline

    Red_Pepper_rus

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    My nick is "Red_Pepper_rus". I tried to write on a sign -Red_Pepper_ru-, -Red-, -Pepper-... This is not working!

    Where administrators must to set aliases or nicknames for players for use on
    signs?
  6. Offline

    phaed

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    add:

    currency-id: 266

    to the .properties file.
  7. Offline

    Mr_Mellow

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Id like a big list of items. I want to be able to sell pretty much everything besides netherstones, lava,tnt,sulphur. stuff like that. i couldnt be bothered to write up a whole text file for it.
  8. Offline

    ArmEagle

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    You'll have to setup buy/sell values anyway (or disable them). You're really better off taking a few minutes and creating the list yourself.
  9. Offline

    Digi

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    That's only required for infinite shops... so if he wants an infinite shop of something he can just add values.

    Still, this plugin doesn't support Item:Type (like various wool/log/dye types).

    I uploaded my tradecraft.txt which contains most items.
  10. Offline

    ydido

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    So i install this plugin on my server and I try to make a player shop. I put the chest down and the sign and I write this on the sign,

    [Sand]
    Buy for 32:1
    sell for 32:1
    -ydido-

    and thats it. then i try to deposit gold, by placing in the chest and right-clicking the sign. Nothing happens, and the gold is still in the chest.

    Please help
    Ydido
  11. Offline

    Luke2012

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Just to make sure, you mean gold ingot right? Also be sure to include your craftbukkit version, its easier for the plugin developer :)
  12. Offline

    ydido

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Yes gold ingots, and I think My build is b556. I may be looking at the wrong number.
  13. Offline

    ArmEagle

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    That seems right. I'm not sure, but maybe "sell" has to be capitalized to "Sell".

    And sand is in the default config file, so that isn't the problem either.

    Otherwise I can't think of any issues, except checking the server log.
  14. Offline

    ydido

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    This is the only thing on the server log
    2011-03-26 09:30:08 [WARNING] Error reading TradeCraft.txt
  15. Offline

    ydido

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    OK now I restarted my server and this popped up.
    2011-03-26 11:58:09 [SEVERE] Could not load plugins/TradeCraft\(1\).jar in plugins: null
    org.bukkit.plugin.InvalidPluginException
    at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:69)
    at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:159)
    at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:107)
    at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:61)
    at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:204)
    at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:191)
    at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:131)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:246)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    Caused by: java.util.zip.ZipException: error in opening zip file
    at java.util.zip.ZipFile.open(Native Method)
    at java.util.zip.ZipFile.<init>(ZipFile.java:131)
    at java.util.jar.JarFile.<init>(JarFile.java:150)
    at java.util.jar.JarFile.<init>(JarFile.java:114)
    at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:56)
    ... 8 more
  16. Offline

    ArmEagle

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    That's weird stuff. I'd try and remove all TradeCraft config files and then try again.
  17. Offline

    ydido

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    removed all the config files, and restarted. same deal...
    2011-03-26 14:54:34 [SEVERE] Could not load plugins/TradeCraft\(1\).jar in plugins: null
    org.bukkit.plugin.InvalidPluginException
    at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:69)
    at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:159)
    at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:107)
    at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:61)
    at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:204)
    at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:191)
    at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:131)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:246)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    Caused by: java.util.zip.ZipException: error in opening zip file
    at java.util.zip.ZipFile.open(Native Method)
    at java.util.zip.ZipFile.<init>(ZipFile.java:131)
    at java.util.jar.JarFile.<init>(JarFile.java:150)
    at java.util.jar.JarFile.<init>(JarFile.java:114)
    at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:56)
    ... 8 more
  18. Offline

    Digi

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    "TradeCraft(1).jar" ? Do you have two copies of the same plugin in there ?
  19. Offline

    ydido

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    I took away the first 1.
  20. Offline

    megamix34

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Hi !

    Can you add suport with colored wool ?

    when i add IDs in TradeCraft.txt :

    Code:
    orange,      35:1,   10:1,  15:1
    magenta,     35:2,   10:1,  15:1
    light_blue,  35:3,   10:1,  15:1
    yellow,      35:4,   10:1,  15:1
    lime,        35:5,   10:1,  15:1
    pink,        35:6,   10:1,  15:1
    gray,        35:7,   10:1,  15:1
    light_gray,  35:8,   10:1,  15:1
    cyan,        35:9,   10:1,  15:1
    purple,      35:10,  10:1,  15:1
    blue,        35:11,  10:1,  15:1
    brown,       35:12,  10:1,  15:1
    green,       35:13,  10:1,  15:1
    red,         35:14,  10:1,  15:1
    black,       35:15,  10:1,  15:1

    Console log say :

    Code:
    2011-03-27 00:49:27 [WARNING] Failed to parse line number 17 in TradeCraft.txt: orange, 35:1, 10:1, 15:1
    2011-03-27 00:49:27 [WARNING] Failed to parse line number 18 in TradeCraft.txt: magenta, 35:2, 10:1, 15:1
    2011-03-27 00:49:27 [WARNING] Failed to parse line number 19 in TradeCraft.txt: light_blue, 35:3, 10:1, 15:1
    2011-03-27 00:49:27 [WARNING] Failed to parse line number 20 in TradeCraft.txt: yellow, 35:4, 10:1, 15:1
    2011-03-27 00:49:27 [WARNING] Failed to parse line number 21 in TradeCraft.txt: lime, 35:5, 10:1, 15:1
    2011-03-27 00:49:27 [WARNING] Failed to parse line number 22 in TradeCraft.txt: pink, 35:6, 10:1, 15:1
    2011-03-27 00:49:27 [WARNING] Failed to parse line number 23 in TradeCraft.txt: gray, 35:7, 10:1, 15:1
    2011-03-27 00:49:27 [WARNING] Failed to parse line number 24 in TradeCraft.txt: light_gray, 35:8, 10:1, 15:1
    2011-03-27 00:49:27 [WARNING] Failed to parse line number 25 in TradeCraft.txt: cyan, 35:9, 10:1, 15:1
    2011-03-27 00:49:27 [WARNING] Failed to parse line number 26 in TradeCraft.txt: purple, 35:10, 10:1, 15:1
    2011-03-27 00:49:27 [WARNING] Failed to parse line number 27 in TradeCraft.txt: blue, 35:11, 10:1, 15:1
    2011-03-27 00:49:27 [WARNING] Failed to parse line number 28 in TradeCraft.txt: brown, 35:12, 10:1, 15:1
    2011-03-27 00:49:27 [WARNING] Failed to parse line number 29 in TradeCraft.txt: green, 35:13, 10:1, 15:1
    2011-03-27 00:49:27 [WARNING] Failed to parse line number 30 in TradeCraft.txt: red, 35:14, 10:1, 15:1
    2011-03-27 00:49:27 [WARNING] Failed to parse line number 31 in TradeCraft.txt: black, 35:15, 10:1, 15:1
    How can i do it ?
  21. Offline

    ArmEagle

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    That's simply not supported yet.
  22. Offline

    ydido

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    can anyone fix my problem?
  23. Offline

    ArmEagle

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    so, you removed the (1) part in the TradeCraft jar filename? I assume the error message changed accordingly. Any chance the TradeCraft.jar is corrupt? Can you open it with a zip client? (a jar is kinda like a zip file, if you change the extension to .zip you should be able to open it)

    Maybe try redownloading the .jar
  24. Offline

    ydido

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    this is the only thing that popped up
    Error reading TradeCraft.txt


    I don't have a tradecraft.txt. were would i put it?
  25. Offline

    ArmEagle

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    For now it should be in the main folder, containing the craftbukkit.jar file.
    Give not to the capitalization of the filename TradeCraft.txt

    The plugin should have created default files though. The above one, but also TradeCraft.data (initially empty, containing player shop data) and TradeCraft.properties (no idea). Maybe you need to remove all three for it to generate all of them again.
  26. Offline

    ydido

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    It has loaded fully!
  27. Offline

    ydido

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Done, it works!
    thank you for helping me!
  28. Offline

    aheath4

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    this looks like a great plugin! But i need your help.

    begin essay :/

    Im trying it on my server atm but the actuall shop creating/buying/selling is not working. We have the basic commands like displaycurrency/myshops etc so its obviously works. However im using servercraft.co as a host so its hard for me to configure everything. I have basic access to the files so i can type in permissions and such. However i can only upload .jar files or ymcl and the jar file in the dl pack doesn't seem to generate links. i have downloaded it several times. Im not sure if im installing it correctly. Please could you sort of tell me what to do lol
  29. Offline

    ArmEagle

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Well, the plugin creates a few files in the main path of the gameserver installation. You really need the TradeCraft.txt there, since that matches names to object IDs and sets default (unlimited store) buy/sell ratios.
    You can add more items yourself of course. But with that file in place you should at least be able to setup a shop for sand (infinite shop sign would just read [sign]. Try that an go from there.
  30. Offline

    ydido

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    how can I make it so everyone can make shops?
    and how can I sell cakes?
  31. Offline

    ArmEagle

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    If you run the permissions mod, add rights to normal users as explained in the README contained in the .jar. Then everyone should be able to place their own signs over a chest.

    To add cake, you'll just have to edit the TradeCraft.txt in the main folder and add that to the list (check http://www.minecraftwiki.net/wiki/Data_values for the item IDs).
  32. Offline

    ydido

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Can you sell discs
    I tried putting it into my Tradecratf.txt with cake and cake works but discs don't.

Share This Page