[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

    airsoftinva

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Yep I cant get it to work for me for some reason

    EDIT: Never mind sorry, I got it working.

    Planning on loving all over your plugin, thank you!
  4. Offline

    gsand

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    It still sells you 3 of that item for 1 gold
  5. Offline

    ArmEagle

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Ok, I'll look into that too.
  6. Offline

    airsoftinva

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    For some reason I can't get it to buy or sell diamond pick axes or seeds (which is one of the reasons i got this for)

    Will it even work for these? I've added the names and data values in the tradecraft.txt folder and I've got the exhange rates set but it just wont work.

    I'm running the latest version of craftbukkit
  7. Offline

    airsoftinva

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Yep, i cannont get any other item not in the txt file already to work...
    Any ideas?? I like this plugin a lot but im dissapointed atm.
  8. Offline

    Digi

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    It works with all items except those that require damage values (colors for wool, dye, etc)
    First make sure you got ArmEagle's version, then make sure you got TradeCraft.txt in plugins/TradeCraft/ and then make sure you don't have spaces in the item names.
  9. Offline

    ArmEagle

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    You mention "the tradecraft.txt folder", but I assume you meant to say "file" there. Are you editing the TradeCraft.txt inside the plugins/TradeCraft/ folder, or the old one which is in the root of the game folder?




    On another notice. I still figuring new stuff about the script. And some stuff simply doesn't make sense yet. I do have an idea about how to change a few things. But I need to find the right time and mood to rework some of the code and add several of the features on the TODO list.
  10. Offline

    airsoftinva

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Well I downloaded it how it said to in the readme. The tradecraft.txt folder is in my root folder. I add in a new item but it doesnt work in game. Do you know how i can fix this?
  11. Offline

    ArmEagle

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Yes, remove the tradecraft.txt (and .properties and .data) files in that root folder.
    Then go into plugins/TradeCraft/ and edit the .txt there.
  12. Offline

    ArmEagle

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Sorry that this isn't all really clear. But initially I assumed mjmr89 would just pickup the changes (or make them himself) and I could step away again. Though I should probably have contacted him directly myself. Unless something changes, I think my next version (whenever it comes out) will be an actual new version posted in its own thread. Up to now it was mostly a matter of keeping the plugin as it was working with newer versions (with a few small changes).
  13. Offline

    airsoftinva

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Clear enough it works now. Thank you so much my users are STOKED!
  14. Offline

    SAGE221

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    When i run it i get this.

    F:\Documents and Settings\Josh\Desktop\Bukkit>ECHO OFF
    20:55:25 [INFO] Starting minecraft server version Beta 1.4
    20:55:25 [INFO] Loading properties
    20:55:25 [WARNING] server.properties does not exist
    20:55:25 [INFO] Generating new properties file
    20:55:25 [INFO] Starting Minecraft server on *:25565
    20:55:25 [INFO] This server is running Craftbukkit version git-Bukkit-0.0.0-646-
    gb61ef8c-b670jnks (MC: 1.4)
    20:55:25 [INFO] Preparing level "world"
    20:55:25 [INFO] Preparing start region
    20:55:26 [INFO] 144 recipes
    20:55:27 [INFO] Preparing spawn area: 56%
    20:55:27 [SEVERE] ebean.properties not found
    20:55:27 [INFO] DataSourcePool [OPBlock] autoCommit[false] transIsolation[SERIAL
    IZABLE] min[2] max[20]
    20:55:27 [INFO] SubClassFactory parent ClassLoader [org.bukkit.plugin.java.Plugi
    nClassLoader]
    20:55:28 [INFO] Entities enhanced[0] subclassed[1]
    20:55:28 [INFO] [iWatch] iWatch version 0.5 is enabled!
    20:55:28 [INFO] [iWatch] Settings Loaded!
    20:55:28 [INFO] [iZone : 5.7] Enabled!
    20:55:28 [INFO] [iZone : 5.7] Loaded 0 zones out of 0
    20:55:28 [INFO] Lockette version 1.3.4 is being enabled! Yay!
    20:55:28 [INFO] Lockette: Detected craftbukkit build [670] ok.
    20:55:28 [INFO] Lockette: Using ops file for admin permissions.
    20:55:28 [INFO] Lockette: Ready to protect your containers.
    20:55:28 [INFO] PlgSetspawn version 4.0 is enabled!
    20:55:28 [INFO] Loaded 18 configs
    20:55:28 [INFO] Loaded 0 shops
    20:55:28 [SEVERE] BLOCK_RIGHTCLICKED loading TradeCraft v0.7 (Is it up to date?)
    java.lang.NoSuchFieldError: BLOCK_RIGHTCLICKED
    at com.mjmr89.TradeCraft.TradeCraft.onEnable(TradeCraft.java:72)
    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:127)
    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader
    .java:578)
    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManage
    r.java:216)
    at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:115)
    at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:93)
    at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:215)
    at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:202)
    at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:142)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:257)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:375)
    20:55:28 [INFO] Done (0.232s)! For help, type "help" or "?"
    Hep please D:
  15. Offline

    ArmEagle

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

    SAGE221

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Thank you so much! ive been at this for hours!
    Your great! :)
  17. Offline

    Juze

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Please update to latest RB to be moved back to releases.
  18. Offline

    ArmEagle

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    I guess I'll have to make my own thread with my modified more up-to-date version soon. Will do that when I get some more features in.

    But till then I know the people who need it can find it here.
  19. Offline

    Montag

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    This is by far my favorite plugin. I'm extremely happy it's working for CB617.
  20. Offline

    Hanii Puppy

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    I can't get this plugin to work - the text commands work and everything, but when I place a sign with the correct text, the sign won't do anything. added and configured the tradecraft properties file and craftcraft.txt in the server folder and assigned permissions in the permissions plugin. Am I missing anything?
  21. Offline

    Digi

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    If you're using the latest RB, see ArmEagle's version from within the thread's replies.
  22. Offline

    ArmEagle

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    (Re)move the TradeCraft.txt from the server folder to the plugins/TradeCraft/ folder.

    I know.. I really need to work on the planned changes and just create a new thread. But other stuff is pulling harder at me atm.
  23. Offline

    Hanii Puppy

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Still not working - also, when I create a TradeCraft folder in the plugins folder and move TradeCraft.txt there, I get this in the console when starting up:

    22:22:22 [WARNING] Error reading TradeCraft.txt

    I get the same results from using the JAR file from here as I do from here.
  24. Offline

    ArmEagle

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

    Hanii Puppy

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Aha, it's working perfectly now :D

    Thankyou ^_^
  26. Offline

    Tacobeam87

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    [SEVERE] Could not pass event PLAYER_INTERACT to TradeCraft java.lang.NullPointerException at com.mjmr89.TradeCraft.TradeCraftChest.<init>(TradeCraftChest.java:24) at com.mjmr89.TradeCraft.TradeCraftShop.<init>(TradeCraftShop.java:15) at com.mjmr89.TradeCraft.TradeCraftItemShop.<init>(TradeCraftItemShop.java:10) at com.mjmr89.TradeCraft.TradeCraftInfiniteShop.<init>(TradeCraftInfiniteShop.java:11) at com.mjmr89.TradeCraft.TradeCraft.getShopFromSignBlock(TradeCraft.java:277) at com.mjmr89.TradeCraft.TradeCraftPlayerListener.onPlayerInteract(TradeCraftPlayerListener.java:23) at org.bukkit.plugin.java.JavaPluginLoader$9.execute(JavaPluginLoader.java:252) at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59) at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:255) at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:162) at net.minecraft.server.ItemInWorldManager.a(ItemInWorldManager.java:208) at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:477) at net.minecraft.server.Packet15Place.a(SourceFile:57) at net.minecraft.server.NetworkManager.a(NetworkManager.java:198) at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:72) at net.minecraft.server.NetworkListenThread.a(SourceFile:100) at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:368) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:283) at net.minecraft.server.ThreadServerApplication.run(SourceFile:375)

    Get that whenever i try to interact with a store
  27. Offline

    ArmEagle

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    For CraftBukkit 617 or newer, download the jar from this post http://forums.bukkit.org/threads/in...old-based-economy-531.8071/page-5#post-189031
  28. Offline

    L24D

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    I'm still using the older one (0.81AE), and it works great.. cb670... but it's having a problem reading all my entries... i made a complete list of EVERY item in MC, but it will only mess up on these few items:

    2011-04-18 15:19:21 [WARNING] Failed to parse line number 18 in plugins\TradeCraft\TradeCraft.txt: GoldOre, 14, 1:8 1:8
    2011-04-18 15:19:21 [WARNING] Failed to parse line number 19 in plugins\TradeCraft\TradeCraft.txt: IronOre, 15, 1:2 1:2
    2011-04-18 15:19:21 [WARNING] Failed to parse line number 20 in plugins\TradeCraft\TradeCraft.txt: CoalOre, 16, 1:1 1:1
    2011-04-18 15:19:21 [WARNING] Failed to parse line number 22 in plugins\TradeCraft\TradeCraft.txt: RedWoodLog, 17:1, 2:1, 2:1
    2011-04-18 15:19:21 [WARNING] Failed to parse line number 23 in plugins\TradeCraft\TradeCraft.txt: BirchLog, 17:2, 4:3, 4:3
    2011-04-18 15:19:21 [WARNING] Failed to parse line number 28 in plugins\TradeCraft\TradeCraft.txt: Glass, 20, 2:1 2:1
    2011-04-18 15:19:21 [WARNING] Failed to parse line number 29 in plugins\TradeCraft\TradeCraft.txt: LapisOre, 21, 1:4 1:4
    2011-04-18 15:19:21 [WARNING] Failed to parse line number 30 in plugins\TradeCraft\TradeCraft.txt: LapisBlock, 22, 1:36 1:36
    2011-04-18 15:19:21 [WARNING] Failed to parse line number 36 in plugins\TradeCraft\TradeCraft.txt: OrangeWool, 35:1, 3:1, 3:1
    2011-04-18 15:19:21 [WARNING] Failed to parse line number 37 in plugins\TradeCraft\TradeCraft.txt: MagWool, 35:2, 3:1, 3:1
    2011-04-18 15:19:21 [WARNING] Failed to parse line number 38 in plugins\TradeCraft\TradeCraft.txt: LtBlueWool, 35:3, 3:1, 3:1
    2011-04-18 15:19:21 [WARNING] Failed to parse line number 39 in plugins\TradeCraft\TradeCraft.txt: YellowWool, 35:4, 3:1, 3:1
    2011-04-18 15:19:21 [WARNING] Failed to parse line number 40 in plugins\TradeCraft\TradeCraft.txt: LtGreenWool, 35:5, 3:1, 3:1
    2011-04-18 15:19:21 [WARNING] Failed to parse line number 41 in plugins\TradeCraft\TradeCraft.txt: PinkWool, 35:6, 3:1, 3:1
    2011-04-18 15:19:21 [WARNING] Failed to parse line number 42 in plugins\TradeCraft\TradeCraft.txt: GreyWool, 35:7, 3:1, 3:1
    2011-04-18 15:19:21 [WARNING] Failed to parse line number 43 in plugins\TradeCraft\TradeCraft.txt: LtGreyWool, 35:8, 3:1, 3:1
    2011-04-18 15:19:21 [WARNING] Failed to parse line number 44 in plugins\TradeCraft\TradeCraft.txt: CyanWool, 35:9, 3:1, 3:1
    2011-04-18 15:19:21 [WARNING] Failed to parse line number 45 in plugins\TradeCraft\TradeCraft.txt: PurpleWool, 35:10, 3:1, 3:1
    2011-04-18 15:19:21 [WARNING] Failed to parse line number 46 in plugins\TradeCraft\TradeCraft.txt: BlueWool, 35:11, 3:1, 3:1
    2011-04-18 15:19:21 [WARNING] Failed to parse line number 47 in plugins\TradeCraft\TradeCraft.txt: BrownWool, 35:12, 3:1, 3:1
    2011-04-18 15:19:21 [WARNING] Failed to parse line number 48 in plugins\TradeCraft\TradeCraft.txt: DkGrnWool, 35:13, 3:1, 3:1
    2011-04-18 15:19:21 [WARNING] Failed to parse line number 49 in plugins\TradeCraft\TradeCraft.txt: RedWool, 35:14, 3:1, 3:1
    2011-04-18 15:19:21 [WARNING] Failed to parse line number 50 in plugins\TradeCraft\TradeCraft.txt: BlackWool, 35:15, 3:1, 3:1
    2011-04-18 15:19:21 [WARNING] Failed to parse line number 58 in plugins\TradeCraft\TradeCraft.txt: 2Sandslab, 43:1, 2:1, 2:1
    2011-04-18 15:19:21 [WARNING] Failed to parse line number 59 in plugins\TradeCraft\TradeCraft.txt: 2CobSlab, 43:2, 1:1, 1:1
    2011-04-18 15:19:21 [WARNING] Failed to parse line number 61 in plugins\TradeCraft\TradeCraft.txt: SandSlab, 44:1, 4:1, 4:1
    2011-04-18 15:19:21 [WARNING] Failed to parse line number 62 in plugins\TradeCraft\TradeCraft.txt: WoodSlab, 44:2, 2:1, 2:1
    2011-04-18 15:19:21 [WARNING] Failed to parse line number 63 in plugins\TradeCraft\TradeCraft.txt: CobSlab, 44:3, 2:1, 2:1
    2011-04-18 15:19:21 [WARNING] Failed to parse line number 75 in plugins\TradeCraft\TradeCraft.txt: DiamondOre, 56, 1:16 1:16
    2011-04-18 15:19:21 [WARNING] Failed to parse line number 78 in plugins\TradeCraft\TradeCraft.txt: Crops 59, 8:1, 8:1
    2011-04-18 15:19:21 [WARNING] Failed to parse line number 122 in plugins\TradeCraft\TradeCraft.txt: Charcoal, 263:1, 1:1, 1:1
    2011-04-18 15:19:21 [WARNING] Failed to parse line number 168 in plugins\TradeCraft\TradeCraft.txt: IronBoots, 309, 1:8 1:8
    2011-04-18 15:19:21 [WARNING] Failed to parse line number 213 in plugins\TradeCraft\TradeCraft.txt: BrownDye, 351:3, 4:1, 4:1
    2011-04-18 15:19:21 [WARNING] Failed to parse line number 225 in plugins\TradeCraft\TradeCraft.txt: BoneMeal, 351:14, 16:1, 16:1

    i listed all the entries the same way, so there is no "obvious" reason for this to happen... any ideas?

    [edit]: And of course, when i pasted it, it screwed up the formatting.. so there's probably no way to tell what's up :/

    [EDIT2]: Alright, there was nothing wrong with a few of them, just missed a couple of commas... it just seems like the item ids with colons separating them are throwing it for a loop. ex: red wool... 35:14. everything else works great. if you get a chance, have a look at that? would be super appreciated :D. thanks!
  29. Offline

    ArmEagle

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Well, colored wool, etc. is not supported yet. On hind sight I think I should have worked on that first. But I wanted to change some other things first. Maybe I'll roll that back and work on this first since it's a clear missing feature.
  30. Offline

    L24D

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Oh, okay... :p
    sorry about throwing a second post on you, but...
    I did find some "normal" items that don't work either... just now...

    2011-04-18 16:49:13 [WARNING] Failed to parse line number 15 in plugins\TradeCraft\TradeCraft.txt: LavaStat 11, 0:0, 1:4
    2011-04-18 16:49:13 [WARNING] Failed to parse line number 24 in plugins\TradeCraft\TradeCraft.txt: Leaves 18, 0:0, 0:0
    2011-04-18 16:49:13 [WARNING] Failed to parse line number 34 in plugins\TradeCraft\TradeCraft.txt: BedBlock, 26, 1:10 1:10
    2011-04-18 16:49:13 [WARNING] Failed to parse line number 78 in plugins\TradeCraft\TradeCraft.txt: Crops 59, 8:1, 8:1
    2011-04-18 16:49:13 [WARNING] Failed to parse line number 79 in plugins\TradeCraft\TradeCraft.txt: Soil 60, 0:0, 0:0
    2011-04-18 16:49:13 [WARNING] Failed to parse line number 94 in plugins\TradeCraft\TradeCraft.txt: Rstorchoff 75, 4:1, 4:1
    2011-04-18 16:49:13 [WARNING] Failed to parse line number 200 in plugins\TradeCraft\TradeCraft.txt: Slimeball 341, 1:1, 1:1

    ids: 11, 18, 26, 59, 60, 75, and 341
    they're normal items, but they still cannot be read. :p
    Just wanted to throw that your way, so you know about it :). thanks again!
  31. Offline

    ArmEagle

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    You need to place a comma after the item name. A comma is required between all the different 'columns'.
  32. Offline

    L24D

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    oh, whoops... i seriously didn't do that, did i? *walks away embarassed* :oops:

    sorry... i'm fighting with another plugin, at the same time... trying to figure out why it's breaking all my commands.

Share This Page