people playing: 94, servers online: 32, games played: 135,480,369 Top Player: Shmevin

  Toribash Community » Toribash » Mods » Third party
Register FAQ General Rules Community
Reply
 
Thread Tools Display Modes
Old May 7, 2017   #1
Kitty
 
5th Dan Black Belt
Join Date: Feb 2014
Posts: 498
Clan: Originals



[WIP] MARKET TOOLS
Just wanted to start a little project to practice my Java skills.

Currently can:
- Perform searches of items (CASE SENSITIVE!).

To Do:
- Show potential deals on marketplace.
- Get market items in real time.
- Calculate the average price of an item.
- Searches not case sensitive
- more??

Download Here

To use:
1. Download files
3. Run Start.bat

ALL FILES ARE SAFE.
My way or no way, totalatarian.
(Better fencer than Icky.)

Last edited by Kitty; May 13, 2017 at 05:26 AM.. Reason: update
Kitty is offline   Reply With Quote
Old May 8, 2017   #2
MrMiyagy
Senior Member
 
Master Belt
Join Date: Jul 2014
Posts: 702



This is really confusing to download and run, not gonna lie to you. What am I suppose to do, I have them all extracted and I tried running Start Batch file, but it load a command prompt them closes.

This is a great idea, just wish it could be more user friendly? No offense to you.

Image 
Psychology, the way to win Toribash games.
MrMiyagy is offline   Reply With Quote
Old May 9, 2017   #3
Lite
Super Moderator
 
7th Dan Black Belt
Join Date: Jan 2012
Posts: 3,811
Clan: Hidden



Don't extract Tool.jar, it should work then.

Well there isn't much to say about this... it's just a text file searcher, I like the idea tho.

Tips:
Use OkHttp and JSoup libraries together to have real time market listings, use okhttp to request the market page and jsoup to parse the response html, doing so will allow you to have a real time market items list without much effort.

Use regex to search items, if you manage to write the correct regex, users will be able to search for an item by only using part of their name and it could be case insensitive aswell.

Feel free to contact me on IRC if you need help
Lite is offline   Reply With Quote
Old May 9, 2017   #4
Fran
Member
 
2nd Dan Black Belt
Join Date: Jul 2011
Posts: 447
Clan: duck



Originally Posted by Lite View Post
Don't extract Tool.jar, it should work then.

Well there isn't much to say about this... it's just a text file searcher, I like the idea tho.

Tips:
Use OkHttp and JSoup libraries together to have real time market listings, use okhttp to request the market page and jsoup to parse the response html, doing so will allow you to have a real time market items list without much effort.

Use regex to search items, if you manage to write the correct regex, users will be able to search for an item by only using part of their name and it could be case insensitive aswell.

Feel free to contact me on IRC if you need help

No need to parse HTML when there's a REST API (http://forum.toribash.com/tori_market.php?format=json)
Fran is offline   Reply With Quote
Old May 9, 2017   #5
Kitty
 
5th Dan Black Belt
Join Date: Feb 2014
Posts: 498
Clan: Originals



Originally Posted by Lite View Post
Don't extract Tool.jar, it should work then.

Well there isn't much to say about this... it's just a text file searcher, I like the idea tho.

Tips:
Use OkHttp and JSoup libraries together to have real time market listings, use okhttp to request the market page and jsoup to parse the response html, doing so will allow you to have a real time market items list without much effort.

Use regex to search items, if you manage to write the correct regex, users will be able to search for an item by only using part of their name and it could be case insensitive aswell.

Feel free to contact me on IRC if you need help

Thanks for the advice Lite, i'm very much a noob at this stuff, but ill look into your suggestions!
My way or no way, totalatarian.
(Better fencer than Icky.)
Kitty is offline   Reply With Quote
Old May 9, 2017   #6
MrMiyagy
Senior Member
 
Master Belt
Join Date: Jul 2014
Posts: 702



Wait, Life, are you saying delete everything reinstall it and don't extract the files? I guess it's not a far file, but I didn't extract it yet and it still didn't work when I tried it...
Psychology, the way to win Toribash games.
MrMiyagy is offline   Reply With Quote
Old May 9, 2017   #7
Kitty
 
5th Dan Black Belt
Join Date: Feb 2014
Posts: 498
Clan: Originals



you have java installed? just download all files and run the start file
My way or no way, totalatarian.
(Better fencer than Icky.)
Kitty is offline   Reply With Quote
Old May 10, 2017   #8
MrMiyagy
Senior Member
 
Master Belt
Join Date: Jul 2014
Posts: 702



I have Java of course, but still it doesn't work for my laptop when I go to open it. It shows a control panel, then it closes instantly.
Psychology, the way to win Toribash games.
MrMiyagy is offline   Reply With Quote
Old May 13, 2017   #9
Kitty
 
5th Dan Black Belt
Join Date: Feb 2014
Posts: 498
Clan: Originals



UPDATE
I learned a lot while working on this update.
Huge shout out to Lite for making great suggestions and helping me with this update.

You now must give your user credentials for the program to work.

Currently can:
- log into your account
- Get items from the first page of the market in realtime

To Do:
- create a GUI
- Show potential deals on marketplace.
- Get market items in real time.
- Calculate the average price of an item.
- Implement effective searches
- format item data in a useful way

To use:
1. Download files
3. Run Start.bat

Download Here

please share any suggestions or ideas, thanks!
My way or no way, totalatarian.
(Better fencer than Icky.)

Last edited by Kitty; May 13, 2017 at 06:06 AM..
Kitty is offline   Reply With Quote
Old May 13, 2017   #10
Thor
Senior Member
 
Suck My Belt
Join Date: Jun 2015
Posts: 628
Clan: Damned



Nice thing to be added - more "readable" info about each item
GUI would be a nice thing yea

And the main thing - an ability to buy on ever sell your items (controlling user inventory).

Seems hard to be done but worth it, great idea!

E: noticed that it does not actually show items in market real-time. As i updated the market page, there were 2 new items placed, but the CMD screen doesnt see it. It seems to scan the market after login and pause.
Yet it needs to be done - make it refresh its data each # seconds so as someone put an item in the market, it will be displayed on the screen.
<nike1612> hi thor!
<[Damned]Thor> hi me

Last edited by Thor; May 13, 2017 at 07:01 PM..
Thor is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 11:50 AM.




Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
ragdoll fighting game physics fighting game ragdoll fighting physics funmotion joints martial arts karate pc mac free game turn based game