Enhanced Functionality!

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Message
Author
User avatar
jduartedj
Posts: 599
Joined: Sat Dec 19, 2009 12:18 am
Location: Lisbon
Contact:

Enhanced Functionality!

#1 Post by jduartedj » Wed Nov 03, 2010 10:56 pm

As of my usage of rom-bot i found that a few extra features would greatly increase our bot experience (mine at least), as so I' posting a set of features I think would enhance bot createpath and bot lua scripts.
Also I am available to help with coding/testing these features if any developer is willing to pursue their programming.

createpath.lua
[Approved r534] allow to restart without saving! (trash waypoint)
allow adding a WP/HP w/ comment.
in-game waypoint editing (create a specific editpath.lua file maybe?)
--adding points
--changing points
--deleting points

bot.lua
[SLOPPY WORKAROUND - NOT submitted]allow to change path w/o restarting
Speed up backpack item logging by backgrounding it (is it really needed to be done b4 choosing the waypoint?)
[Solved r517] RBAssist will stick my WASD operation keyboard keys, any solution for that?


this is what i got so far! any more will b posted here!

EDIT:
I got another 2 issue to improve functionality:
1 - The first is to make the script recognize when we run a return path so when you load it it doesn't look for "_return_return" and instead looks for the main path, so if you load a return path it will run it and then continue in the main path.
2 - The second is a the making of 3-D waypoints! Yes i know it sounds silly but I've have some issues specially in the Kal Turok Ant Hive, specifically when i load the path it finds a return waypoint that is close yet it is WAY above the bot, so in 3D the waypoint would be further!

EDIT2:
1 - [Solved]Title bar information "X min till level up" not working.
2 -

Code: Select all

[/b]Include the Waypoint path file in the title bar!
EDIT3:
3- make "2 -" optional.
(Include the bot name in title bar as an option,  already exists but not as an option so it's dropped)
Last edited by jduartedj on Sat Dec 04, 2010 4:04 pm, edited 9 times in total.
Thanks for reading! :D

Some of you might find this useful: RoM-bot Wiki
User Functions Repository (and other useful files): Addon Repo
Latest SVN updates: SVN updates

uelkfr
Posts: 8
Joined: Wed Sep 01, 2010 10:30 am

Re: Enhanced Functionality!

#2 Post by uelkfr » Wed Nov 03, 2010 11:26 pm

jduartedj wrote:createpath.lua
allow to restart without saving! (trash waypoint)
CTRL-L, UP, ENTER - solution found :)

User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: Enhanced Functionality!

#3 Post by rock5 » Thu Nov 04, 2010 12:26 am

jduartedj wrote:createpath.lua
To make it really really versatile and easy to use, it needs a GUI. Micromacro doesn't have GUI capability. If it did I would probably make it.
jduartedj wrote:bot.lua
Speed up backpack item logging by backgrounding it (is it really needed to be done b4 choosing the waypoint?)
I'm not sure if micromacro can multithread or not but if it can, that would be a good idea. Probably, though, it would have to finish before starting the waypoint script anyway.
jduartedj wrote:RBAssist will stick my WASD operation keyboard keys, any solution for that?
I haven't looked at RBAssist for quite awhile now. It did occasionally interfere with WASD. There is no helping that. If you are having excessive interference I'll look into it once the servers come back up.
  • Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
  • I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
  • How to: copy and paste in micromacro
    ________________________
    Quote:
    • “They say hard work never hurt anybody, but I figure, why take the chance.”
          • Ronald Reagan

User avatar
botje
Posts: 656
Joined: Wed Oct 27, 2010 7:17 am

Re: Enhanced Functionality!

#4 Post by botje » Thu Nov 04, 2010 2:28 am

well... seeying im a programmer too, i could provide you with a gui...

if ya give me a list of commands used in createpath, i could proberly whip something up xd

Botje

User avatar
jduartedj
Posts: 599
Joined: Sat Dec 19, 2009 12:18 am
Location: Lisbon
Contact:

Re: Enhanced Functionality!

#5 Post by jduartedj » Thu Nov 04, 2010 8:28 am

Thx for all the replies :D

@uelkfr: That isnt really a solution... I was thinking somthing like press NUM8 and it asks for waypoint 1 again simply discarding changes.
This comes in the same thread as being able to chose a different path in bot.luw w/o stopping the script because the main idea would indeed be not stopping the script until you have what you want done!

@rock5 & botje: A GUI occured to my also and like Rock5 said (i though so also) MM doesn't support GUI, not directly anyway!
There a 2 ways of doing a solution to this but non is straightforward : a) use a in-game GUI b)create a windows GUI that then links to the MM window

@rock5: about Multi-thread, I did pose that parenthesis question in my post because I don't know if by backgrounding it we're gaining time with all the steps up to the actual script or it is not worth it because it would make us wait almost the same time when we started the script. In this matter I'm convinced that I'm right and would reduce the waiting time to half at least, plus if one would be 'browsing' the Waypoint list that would definitively give time for the bag to load. In my opinion its a matter of MM supporting multi-thread and if it does i think there would be more applications for it in rom-bot. ;)
The RBAssist script does interefere a LOT with my WASD operation and I simply don't use it because of that, I can't move properly anywhere. I guess it would have a number of factors into account that may or may not depend on the user's PC speed and so.


Just to be sure there ain't nothing yet that does this?:
allow to change path w/o restarting
(the script)
Thanks for reading! :D

Some of you might find this useful: RoM-bot Wiki
User Functions Repository (and other useful files): Addon Repo
Latest SVN updates: SVN updates

swietlowka
Posts: 316
Joined: Wed Jun 16, 2010 8:16 am

Re: Enhanced Functionality!

#6 Post by swietlowka » Thu Nov 04, 2010 8:51 am

those changes would nice to see really

User avatar
botje
Posts: 656
Joined: Wed Oct 27, 2010 7:17 am

Re: Enhanced Functionality!

#7 Post by botje » Thu Nov 04, 2010 11:51 am

actually, creating a program to write waypoints is fairly simple.

just have to follow same structure as MM.

ps. only thing that could be challenging would be the retrieval of targetted NPC's etc.

botje

User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: Enhanced Functionality!

#8 Post by rock5 » Thu Nov 04, 2010 10:24 pm

jduartedj wrote: Just to be sure there ain't nothing yet that does this?:
allow to change path w/o restarting
(the script)
Do you mean like 'loadPaths()'?
  • Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
  • I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
  • How to: copy and paste in micromacro
    ________________________
    Quote:
    • “They say hard work never hurt anybody, but I figure, why take the chance.”
          • Ronald Reagan

User avatar
jduartedj
Posts: 599
Joined: Sat Dec 19, 2009 12:18 am
Location: Lisbon
Contact:

Re: Enhanced Functionality!

#9 Post by jduartedj » Thu Nov 04, 2010 11:34 pm

rock5 wrote:
jduartedj wrote: Just to be sure there ain't nothing yet that does this?:
allow to change path w/o restarting
(the script)
Do you mean like 'loadPaths()'?

NOT at all! Like while rom/bot.lua is still running, manually switch form Waypoint path file 1 to waypoint path file 2!
instead of pressing CTRL+L, UP, ENTER, DEL(Wait for script loading), and path nr again, just pressing 1 key(exit current path key) + path nr!


it should be fairly easy to return to the waypoint files menu without restarting the bot.lua script right?
Thanks for reading! :D

Some of you might find this useful: RoM-bot Wiki
User Functions Repository (and other useful files): Addon Repo
Latest SVN updates: SVN updates

User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: Enhanced Functionality!

#10 Post by rock5 » Fri Nov 05, 2010 1:00 am

In what situation would you use it?
  • Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
  • I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
  • How to: copy and paste in micromacro
    ________________________
    Quote:
    • “They say hard work never hurt anybody, but I figure, why take the chance.”
          • Ronald Reagan

User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: Enhanced Functionality!

#11 Post by rock5 » Fri Nov 05, 2010 1:32 am

jduartedj wrote:The RBAssist script does interefere a LOT with my WASD operation and I simply don't use it because of that, I can't move properly anywhere. I guess it would have a number of factors into account that may or may not depend on the user's PC speed and so.
It is whenever RoMScript is used that it can interfere with the keyboard. I can change the trigger to a keypress instead of a macro but unfortunately player:checkSkills() also uses RoMScript when getting buff data. If you don't use any skills that have buff or debuff requirements you can edit out the "self:updateBuffs()" line in player.lua.

Code: Select all

	if( deltaTime(getTime(), self.LastBuffUpdateTime) > 500 ) then
		-- self:updateBuffs();
	end;
Actually I could probably disable player:updateBuffs() from the RBAssist script.

I'll change the trigger to a keypress. Any preference as to what key to use as the trigger?

With the above 2 changes there should be 0 keyboard interruptions.
  • Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
  • I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
  • How to: copy and paste in micromacro
    ________________________
    Quote:
    • “They say hard work never hurt anybody, but I figure, why take the chance.”
          • Ronald Reagan

User avatar
jduartedj
Posts: 599
Joined: Sat Dec 19, 2009 12:18 am
Location: Lisbon
Contact:

Re: Enhanced Functionality!

#12 Post by jduartedj » Fri Nov 05, 2010 5:30 pm

rock5 wrote: I'll change the trigger to a keypress. Any preference as to what key to use as the trigger?

With the above 2 changes there should be 0 keyboard interruptions.

Not personally, no. Just think of a logic key that everyone can sue correctly!
Thanks for reading! :D

Some of you might find this useful: RoM-bot Wiki
User Functions Repository (and other useful files): Addon Repo
Latest SVN updates: SVN updates

User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: Enhanced Functionality!

#13 Post by rock5 » Fri Nov 05, 2010 9:33 pm

Updated RBAssist in revision 517.

No more annoying interruptions unless you have skills with player buff requirements.

And it uses a keypress (default SHIFT) instead of a macro
  • Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
  • I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
  • How to: copy and paste in micromacro
    ________________________
    Quote:
    • “They say hard work never hurt anybody, but I figure, why take the chance.”
          • Ronald Reagan

User avatar
jduartedj
Posts: 599
Joined: Sat Dec 19, 2009 12:18 am
Location: Lisbon
Contact:

Re: Enhanced Functionality!

#14 Post by jduartedj » Fri Nov 05, 2010 11:08 pm

rock5 wrote:Updated RBAssist in revision 517.

No more annoying interruptions unless you have skills with player buff requirements.

And it uses a keypress (default SHIFT) instead of a macro

Thank you very much! I will test it ASAP. ;)

EDIT: I tested it and it works much much better now! Thanks!
Thanks for reading! :D

Some of you might find this useful: RoM-bot Wiki
User Functions Repository (and other useful files): Addon Repo
Latest SVN updates: SVN updates

User avatar
jduartedj
Posts: 599
Joined: Sat Dec 19, 2009 12:18 am
Location: Lisbon
Contact:

Re: Enhanced Functionality!

#15 Post by jduartedj » Mon Nov 15, 2010 8:03 am

1 - I've found out that the "XXXmin till level up" in the title bar doesn't work!! --Idk how to fix it because idk where it is!

Also

2 - A good idea would be to include the name of the waypoint file in the title bar also, I sometimes need to know which one I'm running and can't.

EDIT: Read the updates on the topic main post!
Thanks for reading! :D

Some of you might find this useful: RoM-bot Wiki
User Functions Repository (and other useful files): Addon Repo
Latest SVN updates: SVN updates

User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: Enhanced Functionality!

#16 Post by rock5 » Mon Nov 15, 2010 10:34 am

jduartedj wrote:1 - I've found out that the "XXXmin till level up" in the title bar doesn't work!! --Idk how to fix it because idk where it is!
I fixed that but it looks like Administrator changed it back to the wrong value with his last update. moneyPtr too.

Try it now. rev 519.
  • Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
  • I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
  • How to: copy and paste in micromacro
    ________________________
    Quote:
    • “They say hard work never hurt anybody, but I figure, why take the chance.”
          • Ronald Reagan

User avatar
jduartedj
Posts: 599
Joined: Sat Dec 19, 2009 12:18 am
Location: Lisbon
Contact:

Re: Enhanced Functionality!

#17 Post by jduartedj » Mon Nov 15, 2010 12:19 pm

rock5 wrote:
jduartedj wrote:1 - I've found out that the "XXXmin till level up" in the title bar doesn't work!! --Idk how to fix it because idk where it is!
I fixed that but it looks like Administrator changed it back to the wrong value with his last update. moneyPtr too.

Try it now. rev 519.
thx ill try it l8r
Thanks for reading! :D

Some of you might find this useful: RoM-bot Wiki
User Functions Repository (and other useful files): Addon Repo
Latest SVN updates: SVN updates

User avatar
jduartedj
Posts: 599
Joined: Sat Dec 19, 2009 12:18 am
Location: Lisbon
Contact:

Re: Enhanced Functionality!

#18 Post by jduartedj » Thu Dec 02, 2010 11:54 pm

rock5 wrote:In what situation would you use it?
As regarding this post I would use it yes, in many situations I find my self spend too much time while switching from 1 waypoint file to another because I have to wait for the reload, select char, press del, bag inventory... if I simply want to change paths manually using some kind of interrupt to return to the waypoints menu would be good thus preserving the player information bag inv. etc....
Thanks for reading! :D

Some of you might find this useful: RoM-bot Wiki
User Functions Repository (and other useful files): Addon Repo
Latest SVN updates: SVN updates

User avatar
jduartedj
Posts: 599
Joined: Sat Dec 19, 2009 12:18 am
Location: Lisbon
Contact:

Re: Enhanced Functionality!

#19 Post by jduartedj » Fri Dec 03, 2010 12:27 am

rock5 wrote:
jduartedj wrote:bot.lua
Speed up backpack item logging by backgrounding it (is it really needed to be done b4 choosing the waypoint?)
I'm not sure if micromacro can multithread or not but if it can, that would be a good idea. Probably, though, it would have to finish before starting the waypoint script anyway.
I've done a bit of researching and found out that MM (or lua for that matter) doesn't have Multi-Tasking (or yet it does support cooperative multi-tasking which is totally bogus and not parallel at all). Yet There are a few ways of achieving real multi-tasking: My favorite was Lua Lanes, assuming MM runs on lua engine this should also be possible to add to MM. check it out here Lua Lanes doesn't seem too difficult to implement. In case you want to explore other options here are a few more Multi-Tasking implmentation to lua: http://lua-users.org/wiki/MultiTasking

The best application to this is that it would make much simpler the development of real-time game events!By calling out a listening thread that either reads the events directly from the game's memory or using igf to monitor such events and then write them to somewhere we know it's safe and fast, so passing a macro would do, maybe using a specific memory chunk with an address that could be passed in the bot's start. idk about lua but in C it would be equivalent to doing a malloc with size X and returning the address of the pointer to the thread, then the thread would use a memory read function to check on that value. it should be safe if 1 only writes and 1 only reads such memory.
But i've aleady written a lot. I could work on this but Admin would have to be involved regarding MM issues and the thread 'patch'.
Thanks for reading! :D

Some of you might find this useful: RoM-bot Wiki
User Functions Repository (and other useful files): Addon Repo
Latest SVN updates: SVN updates

User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: Enhanced Functionality!

#20 Post by rock5 » Fri Dec 03, 2010 5:27 am

jduartedj wrote:
rock5 wrote:In what situation would you use it?
As regarding this post I would use it yes, in many situations I find my self spend too much time while switching from 1 waypoint file to another because I have to wait for the reload, select char, press del, bag inventory... if I simply want to change paths manually using some kind of interrupt to return to the waypoints menu would be good thus preserving the player information bag inv. etc....
I think I understand what you mean. You basically mean doing a loadPath but being able to choose the file first. Of the top of my head I think it could be done. It would just require the waypoint selection part of bot.lua to be turned into a function so we can call it before doing a loadPath. I'm not sure how the interrupt would work but I think it should be an extra option when you pause the script.
eg.

Code: Select all

Paused. (DEL) to continue, (CTRL+L) exit to shell, (CTRL+C) quit (CTRL+W) load new waypoint file
  • Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
  • I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
  • How to: copy and paste in micromacro
    ________________________
    Quote:
    • “They say hard work never hurt anybody, but I figure, why take the chance.”
          • Ronald Reagan

Post Reply

Who is online

Users browsing this forum: No registered users and 14 guests