22
« on: April 28, 2009, 06:24:11 AM »
Feel free to move this if I posted in the wrong forum...
Now I recall the day when there was that goofy *variablename and that went to the registry I believe, which I hate that. Philosophically, stay out of my registry. Practically it's no fun to try and extract data from when using external apps.
So then folks started writing to files and who does love the DOS flash and the sweet speed of that process. I didn't like this either.
I then recall someone starting to exec stuff like exe or vbs files, but then you had to either code the receiver app to accept a bajillion commands or you had to concatenate the send then unbundle the concatenation at the receiver.
I always hated most of those, because it was not easy to keep track of changes and the like.
I'm a Application Architect and Database Programmer. So I like stuff stored in relational databases. What I did was leverage the send HTTPPost and a localhost website that interacts with a database. I like this because I can quickly create data repositories and I have front-ends to look at the database and change settings or analyze data, etc.
As an example. I am mostly stealing CyperPopes radar and Papua Rune Wall Mining. No code is reused but I did use their code as my study guide. My mining routine will find all the rune books in your pack with a keyword in them. It will then start the day by mining all the spots in those books. Similar to Papua. I mine all spots the first time around. I modified it to pick one tile in each resource grid within my reach. Once I hit ore i log the x,y,z,tile,facet as a mineable location. So on future visits we only mine the mineable spots. I log all ore that is extracted (by color) as well as granite and gems. After the first loop of the day (visiting each book and rune within) it sends me all the ores that were found and then I tell it which spots to mine that day. I have only run this two days so far, but imagine I could analyze the data to possible determine if there is a pattern to how they spawn the ore. But how I use the data is not the topic.
Btw, this works really well for storing different settings for different characters.
Since I like this method of persistent data and assume not everyone is sitting at home with a SQL server and IIS or the ability to code IIS. How do I really post useful scripts?
And besides it being less portable, what other gotcha do you think I'm in for?