Armorsmith Archive

Thread: Any coders out there? (C++ type)

Shiro_Okami
Wed Jul 27, 2005 4:13 am
#1

Thinking it would be nice to have a small program (plugin if you will) that would run in your taskbar and collect certain info from SWGCraft's database then save it as a notes.txt so you could view your crafters current resources in the game with /note.

I'm no coder but seems this sort of project wouldn't get too hairy and would be very useful.


Any thoughts?



Shiro' Okami
~-=<GoK>=-~
Gathering Of Kith

Master Ranger*Master Rifleman
Alt: Kana' Master Armorsmith
-=[S&K]=-
Dropoff:Thrifty @ 2620 -5100 Tatooine

BigfootKC
Wed Jul 27, 2005 4:24 am
#2

its a good idea, i know other pages have used swgcraft info, so it shold indeed be doable. It might be tricky editing the notepad without deleting what you allready have in it. But you can always run windowed swg and have the program in a window. Somebody do this!



Poti's Protection ~"~ Armor with no artificial additives of any kind!


Find me on Tatooine, near Bestine in Mos Bahamut (-1691 -6540)
Puttley
Wed Jul 27, 2005 5:14 am
#3

i also think that the notepad contents is loaded and locked as you first start playing - so editing might not change anything...though it was a while ago when i tried
Shiro_Okami
Wed Jul 27, 2005 2:03 pm
#4

Aye, it's loaded from the profiles folder at login and doesnt update until you login again. But people like me are almost constantly logging in and out between accounts anyway. Plus it'd still be nice to have the latest info at your disposal without having to tab out which for me takes a while.


Also, I use dual display and my resolution is 2048x768, this doesn't support windowed mode.


I'm pretty positive this is doable, i've seen simular plugins that basicly do the same thing. We just need a knowledgable coder.





Shiro' Okami
~-=<GoK>=-~
Gathering Of Kith

Master Ranger*Master Rifleman
Alt: Kana' Master Armorsmith
-=[S&K]=-
Dropoff:Thrifty @ 2620 -5100 Tatooine

Grendelwyf
Wed Jul 27, 2005 2:32 pm
#5

it's not hard at all to do, it's just a matter of what data you're wanting. the guy at swgcraft offers realtime data in xml format, so it'd just be a matter of pulling it down from there, parsing it, and spitting out what you want it to show.




Buliwyf - Master Rifleman/Master CM
Hrungnir - Master Armorsmith(+125 Exp/+122 Assembly)
Valhalla Armory Coronet, Corellia (540, -5212)
"I gotta have my {VA}"
mu6sta9ng
Wed Jul 27, 2005 5:50 pm
#6


I have a stand alone program that pulls resource data off SWG craft already and stores it in a csv file that updates itself hourly that I run on my server here at home, and anotherprogram that I gave up that does lots of neat things but was never finished. It's either in java, VB, or C++ - i cant remember. It would be quite simple (heh, maybe) to update the ingame notepad.

Message Edited by mu6sta9ng on 07-27-2005 05:51 PM

Shaar
Wed Jul 27, 2005 7:40 pm
#7

Notes.txtis NOT loaded and locked on login. I alt-tab out and put stuff in my notepad all the time while playing. Just open it up, edit and save and then I got it ingame as well.


And the idea sounds great, if someone can accomplish this it would be awsome.


Denate
Wed Jul 27, 2005 11:10 pm
#8

Think i will whip that up right now, btw, .Net handles XML WAY better then C++.



Will post when im done, and a link to dload.




Denate Andreson
Teras Kasi Elder

Etaned Andreson
Master Medic

Nichole
Master Structures Trader

BigfootKC
Thu Jul 28, 2005 1:47 am
#9



Denate wrote:
Think i will whip that up right now, btw, .Net handles XML WAY better then C++.
Will post when im done, and a link to dload.





ur the man.

dunno if its possible, but can you do it so we can chose which resources we want displayed?

like i know in the search function of the swgcraft you get a dropdown of all the resources, maybe you could do the same.

Like we chose we want 10 resources monitored and we get a window with 10 lines of dropdown boxes then we chose the resource from the menu and the stats show.

or is we just want to monitor hides on every planet we can chose that too.

Maybe make it update 4 times a day? or will that put too great a load on the server? maybe just once a day.



Poti's Protection ~"~ Armor with no artificial additives of any kind!


Find me on Tatooine, near Bestine in Mos Bahamut (-1691 -6540)
Denate
Thu Jul 28, 2005 5:04 am
#10

Well, after some very careful consideration, and actual usage of this thing, notes.txt is a REALLY bad way to do this.


One reason, if people actually save notes, like me.... they will get overwritten.


So, i have the app dump an alias file that you can load via /load servername.txt


then, you have the available alias's setup one for each planet.


example:

/naboo


will display all resources in /echo format, meaning they will print to your active chat window.


currently the server has a few options, i will expand on them as i get some more feedback, if it wasn't almost 5am, i would work on some more of them tonight, but i just wanted to get it out there for you guys to start breaking and letting me know whats up.


Server - Server you wanna report on, will dump an servername.txt to your SWG folder for loading via /load servername.txt


SWG Path - Guess what this is?


Checkbox to only show verified resources on SWGCraft


Days to considera resource old (i.e. you can override the swg calc, defaults at 7)


how often to check for update - This ONLY checks the last updated time on swgcraft, this is a 10byte file that is provided by the site to find out when changes have been made.


HEX Planet code - used in the /echo for the alias, just in case you have trouble seeing it with the default color


HEX Resource code - used in the /echo for the alias, just in case you have trouble seeing it with the default color


Screenshot of App in Beta Form:

*toolazy to make clicky right now






Denate Andreson
Teras Kasi Elder

Etaned Andreson
Master Medic

Nichole
Master Structures Trader

Denate
Thu Jul 28, 2005 5:05 am
#11


gah, sorry to double post, i will be adding the resource filters yes, just not yet in this version.



*also, it does cache the information locally, so don't worry about it bogging down the system too hard on SWGCraft.com


Message Edited by Denate on 07-28-2005 05:16 AM



Denate Andreson
Teras Kasi Elder

Etaned Andreson
Master Medic

Nichole
Master Structures Trader

Shiro_Okami
Thu Jul 28, 2005 5:27 am
#12

Fantastic work!


Thanks so much to everyone for bumping and adding thoughts and special thanks to Denate for getting the project started.





Shiro' Okami
~-=<GoK>=-~
Gathering Of Kith

Master Ranger*Master Rifleman
Alt: Kana' Master Armorsmith
-=[S&K]=-
Dropoff:Thrifty @ 2620 -5100 Tatooine

BigfootKC
Thu Jul 28, 2005 5:44 am
#13

hah! thats amazing!

Thank you! Great work

So will we have to copy the text manually? or will it appear in the spatial?

Will it be possible to have it in a window also? - i play windowed so i can monitor the boards and do w/e while just crafting anyway.



Poti's Protection ~"~ Armor with no artificial additives of any kind!


Find me on Tatooine, near Bestine in Mos Bahamut (-1691 -6540)
Page 1 of 4
Previous Next